Remove __P and P_ from .c and .m files and definition of P_
[bpt/emacs.git] / src / ChangeLog
CommitLineData
383e0970
J
12010-07-02 Jan Djärv <jan.h.d@swipnet.se>
2
f57e2426
J
3 * lisp.h:
4 * atimer.h: Remove define for P_.
5
6 * alloc.c: Remove __P and P_ from .c and .m files.
7 * atimer.c:
8 * buffer.c:
9 * callint.c:
10 * category.c:
11 * charset.c:
12 * chartab.c:
13 * cm.c:
14 * coding.c:
15 * composite.c:
16 * data.c:
17 * dired.c:
18 * dispnew.c:
19 * doc.c:
20 * editfns.c:
21 * emacs.c:
22 * eval.c:
23 * fileio.c:
24 * filelock.c:
25 * fns.c:
26 * font.c:
27 * fontset.c:
28 * frame.c:
29 * ftfont.c:
30 * ftxfont.c:
31 * gmalloc.c:
32 * gtkutil.c:
33 * image.c:
34 * indent.c:
35 * intervals.c:
36 * keyboard.c:
37 * keymap.c:
38 * lread.c:
39 * marker.c:
40 * menu.c:
41 * minibuf.c:
42 * print.c:
43 * process.c:
44 * scroll.c:
45 * search.c:
46 * sound.c:
47 * strftime.c:
48 * syntax.c:
49 * sysdep.c:
50 * term.c:
51 * terminal.c:
52 * textprop.c:
53 * unexalpha.c:
54 * w32console.c:
55 * w32fns.c:
56 * w32font.c:
57 * w32menu.c:
58 * w32term.c:
59 * w32uniscribe.c:
60 * window.c:
61 * xdisp.c:
62 * xfaces.c:
63 * xfns.c:
64 * xfont.c:
65 * xftfont.c:
66 * xmenu.c:
67 * xselect.c:
68 * xterm.c: Likewise.
69
383e0970 70 Remove P_ and __P macros.
f57e2426
J
71 * atimer.h: Remove P_ and __P macros.
72 * buffer.h:
383e0970
J
73 * category.h:
74 * ccl.h:
75 * character.h:
76 * charset.h:
77 * cm.h:
78 * coding.h:
79 * composite.h:
80 * dispextern.h:
81 * disptab.h:
82 * font.h:
83 * fontset.h:
84 * frame.h:
85 * gtkutil.h:
86 * indent.h:
87 * intervals.h:
88 * keyboard.h:
89 * keymap.h:
90 * lisp.h:
91 * macros.h:
92 * md5.h:
93 * menu.h:
94 * msdos.h:
95 * nsterm.h:
96 * puresize.h:
97 * region-cache.h:
98 * syntax.h:
99 * syssignal.h:
100 * systime.h:
101 * termhooks.h:
102 * w32term.h:
103 * widget.h:
104 * window.h:
105 * xgselect.h:
106 * xsettings.h:
107 * xterm.h: Likewise.
108
98601119
DN
1092010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
110
d9170db5
DN
111 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
112
98601119
DN
113 Cleanup old code.
114 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
115 * syssignal.h: Remove code for Lynx, not supported anymore.
116 * vm-limit.c: Remove unused code the depends on emacs not being
117 defined and NO_LIM_DATA being defined.
118 * mem-limits.h: Remove dead code.
119
1f984e12
J
1202010-07-01 Jan Djärv <jan.h.d@swipnet.se>
121
c49d071a
J
122 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
123
9d5405ec
J
124 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
125 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
126
7a18115b
J
127 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
128 parameters, they are already absolute.
129
581a8100
J
130 * nsterm.m (x_set_window_size, initFrameFromEmacs): Renamed
131 FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
132
133 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGH
134
135 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar): Update
136 FRAME_TOOLBAR_HEIGHT.
137
1f984e12
J
138 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar): Add
139 BLOCK/UNBLOCK_INPUT so asserts don't trigger.
140
c1ef4455
CY
1412010-06-30 Chong Yidong <cyd@stupidchicken.com>
142
143 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
144 check default-frame-alist.
145
ce8f5a9a
AS
1462010-06-30 Andreas Schwab <schwab@linux-m68k.org>
147
148 * process.c (create_process): Avoid using invalid file descriptors.
149
150 * callproc.c (child_setup): Avoid closing a file descriptor twice.
151
bf935339
J
1522010-06-30 Jan Djärv <jan.h.d@swipnet.se>
153
154 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
155 Improve documentation. Return font regardless of use_system_font.
156 (syms_of_xsettings): Improve documentation for font-use-system-font.
157
769e9d47
KH
1582009-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
159
160 * xftfont.c (xftfont_open): Check font width one by one also when
161 spacing is dual.
162
163 * ftfont.c (ftfont_open): Ditto.
164
6259c2ec
GM
1652010-06-30 Glenn Morris <rgm@gnu.org>
166
a46007e9
GM
167 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
168
6259c2ec
GM
169 * Makefile.in (CANNOT_DUMP): Update for configure name change.
170
171 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
172 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
173 * s/darwin.h (SYSTEM_MALLOC):
174 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
175
5d1d3d04
J
1762010-06-29 Jan Djärv <jan.h.d@swipnet.se>
177
178 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
179 (ns_get_screen): Don't assign integer to f.
180 (Fx_display_color_cells): Declarations before statements.
181
e547b051
J
1822010-06-28 Jan Djärv <jan.h.d@swipnet.se>
183
5fc8e5bc
J
184 * xfns.c (x_default_font_parameter): Remove got_from_system
185 (Bug#6526).
186
e547b051
J
187 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
188 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
189 defines based on what configure finds.
190
191 * xterm.c (XTflash): Use gtk_widget_get_window.
192 (xg_scroll_callback): Use gtk_adjustment_get_upper and
193 gtk_adjustment_get_page_size.
194 (handle_one_xevent): Use gtk_widget_get_mapped.
195 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
196 messages.
197
198 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
199
200 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
201 HAVE_GTK_FILE_SELECTION_NEW.
202
203 * gtkutil.c (xg_display_open, xg_display_close): Remove
204 HAVE_GTK_MULTIDISPLAY, it is always defined.
205 (xg_display_open): Return type is void.
206 (gtk_widget_set_has_window)
207 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
208 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
209 (gtk_adjustment_set_page_increment)
210 (gtk_adjustment_get_step_increment): #define these if not found
211 by configure.
212 (remove_submenu): New define based on Gtk+ version.
213 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
214 gtk_widget_get_window.
215 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
216 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
217 (create_dialog): Use gtk_dialog_get_action_area and
218 gtk_dialog_get_content_area.
219 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
220 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
221 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
222 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
223 g_object_ref and g_object_unref.
224 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
225 gtk_widget_get_sensitive.
226 (xg_update_submenu): Use remove_submenu.
227 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
228 properties instead to get old x and y position.
229 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
230 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 231 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
232 (xg_get_tool_bar_widgets): New function.
233 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
234 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
235 (toolbar_set_orientation): New #define based on if configure
236 finds gtk_orientable_set_orientation.
237 (xg_create_tool_bar): Call toolbar_set_orientation.
238 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
239 instead of gtk_box_pack_start_defaults.
240
b9229673
CY
2412010-06-28 Chong Yidong <cyd@stupidchicken.com>
242
243 * cmds.c (Fdelete_backward_char): Move into Lisp.
244
bbc803b0
DN
2452010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
246
247 * s/freebsd.h (BSD4_2): Remove redundant definition.
248 bsd-common.h defines it already.
249
6431f2e6
CY
2502010-06-27 Chong Yidong <cyd@stupidchicken.com>
251
252 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
253 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
254 tool-bar-mode, which are now set using these X resources at
255 startup, to determine the defaults (Bug#2249).
256
257 * w32fns.c (Fx_create_frame):
258 * nsfns.m (Fx_create_frame): Likewise.
259
260 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
261
8c079ebb
JB
2622010-06-24 Juanma Barranquero <lekktu@gmail.com>
263
264 * gtkutil.c (xg_update_scrollbar_pos):
265 Avoid C99 mid-block variable declaration.
266
e9b7ab96
JD
2672010-06-22 Jan Djärv <jan.h.d@swipnet.se>
268
bc869eca
JD
269 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
270
2b7e356a 271 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
272
273 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
274 if height is less than scroll bar min size.
275 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
276
e9b7ab96
JD
277 * xfns.c (x_default_font_parameter): Try to open font from system
278 before using it (bug#6478). Rename got_from_gconf to got_from_system.
279
32a679fd
JD
2802010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
281
282 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
283
70c4cfbb
EZ
2842010-06-20 Eli Zaretskii <eliz@gnu.org>
285
286 * xdisp.c (try_scrolling): When scroll-conservatively is set to
287 most-positive-fixnum, be extra accurate when scrolling window
288 start, to avoid missing the cursor line.
289
ad5a12b5
EZ
2902010-06-19 Eli Zaretskii <eliz@gnu.org>
291
292 * xdisp.c (try_scrolling): Compute the limit for searching point
293 in forward scroll from scroll_max, instead of an arbitrary limit
294 of 10 screen lines. See
295 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
296 and
297 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
298 for details.
299
2a64315a 3002010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
301
302 * editfns.c (Fbyte_to_string): Pacify compiler.
303
288cf4e9
SM
3042010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
305
306 * lread.c (read1): Phase out old-style backquotes a bit more.
307
6e6e5760
EZ
3082010-06-12 Eli Zaretskii <eliz@gnu.org>
309
cbc4fd20
EZ
310 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
311 bidimirror.h.
312
313 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
314
317fbf33
EZ
315 * bidi.c (bidi_initialize): Remove explicit initialization of
316 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 317 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 318 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
319
320 * biditype.h: New file.
321
cbc4fd20
EZ
322 * bidimirror.h: New file.
323
6e6e5760
EZ
324 * window.c (syms_of_window): Doc fix (bug#6409).
325
4176cba2
RF
3262010-06-12 Romain Francoise <romain@orebokech.com>
327
328 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
329 ediff-hook.
330
cb4bfcb5
GM
3312010-06-10 Glenn Morris <rgm@gnu.org>
332
64c60c2f
GM
333 * editfns.c (Fbyte_to_string): Pacify compiler.
334
cb4bfcb5
GM
335 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
336
e454a4a3
SM
3372010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
338
339 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
340 Check `object's type before accessing its guts.
341
c1b1acc2
DN
3422010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
343
344 * s/usg5-4.h: Fix previous change.
345 Suggested by Lawrence Mitchell <wence@gmx.li>
346
657d4c0b
AS
3472010-06-08 Andreas Schwab <schwab@linux-m68k.org>
348
349 * minibuf.c (Fall_completions): Add more checks.
350
9b27fd9f
JB
3512010-06-08 Juanma Barranquero <lekktu@gmail.com>
352
353 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
354
a99ebb40
DN
3552010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
356
d7c5d87d
DN
357 * lread.c (X_OK): Remove, unused.
358
0263a941
DN
359 * dispnew.c: Remove obsolete comment.
360
a99ebb40
DN
361 Remove INCLUDED_FCNTL.
362 * xterm.c (INCLUDED_FCNTL):
363 * callproc.c (INCLUDED_FCNTL):
364 * alloc.c (INCLUDED_FCNTL):
365 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
366 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
367
13b5221f
MR
3682010-06-07 Martin Rudalics <rudalics@gmx.at>
369
370 * window.c (Fselect_window): Move `record_buffer' up to the
371 beginning of this function, so the buffer gets recorded
372 even if the selected window does not change.
373 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
374
5220357f
JB
3752010-06-07 Juanma Barranquero <lekktu@gmail.com>
376
377 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
378 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
379
3085237c
DN
3802010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
381
382 Remove BSTRING related code, all platforms define it.
383 * s/usg5-4.h (BSTRING): Remove definition.
384 * s/template.h (BSTRING):
385 * s/msdos.h (BSTRING):
386 * s/ms-w32.h (BSTRING):
387 * s/hpux10-20.h (BSTRING):
388 * s/gnu-linux.h (BSTRING):
389 * s/darwin.h (BSTRING):
390 * s/cygwin.h (BSTRING):
391 * s/bsd-common.h (BSTRING):
392 * s/aix4-2.h (BSTRING): Likewise.
393 * sysdep.c: Remove code depending on BSTRING not being defined.
394
409f2919
JB
3952010-06-05 Juanma Barranquero <lekktu@gmail.com>
396
397 Remove obsolete macro BASE_LEADING_CODE_P.
398 * character.h (BASE_LEADING_CODE_P): Remove.
399 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
400 * buffer.c (Fset_buffer_multibyte):
401 * indent.c (scan_for_column, compute_motion):
402 * insdel.c (count_combining_before, count_combining_after):
403 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
404
087fc47a
JB
4052010-06-04 Juanma Barranquero <lekktu@gmail.com>
406
407 Turn `directory-sep-char' into a noop.
408
409 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
410 (DIRECTORY_SEP): Define unconditionally.
411
412 * s/ms-w32.h (DIRECTORY_SEP): Remove.
413
414 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
415 call dostounix_filename directly.
416
417 * fileio.c (CORRECT_DIR_SEPS): Remove.
418 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
419 (Fsubstitute_in_file_name): Use dostounix_filename instead.
420 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
421 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
422
423 * w32proc.c (CORRECT_DIR_SEPS): Remove.
424 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
425
0eb7675e
AS
4262010-06-03 Andreas Schwab <schwab@linux-m68k.org>
427
428 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
f07b083d 429 address. (Bug#6346)
0eb7675e 430
78edd3b7
JB
4312010-06-03 Juanma Barranquero <lekktu@gmail.com>
432
433 * ccl.c (Fccl_program_p): Fix typo in docstring.
434
eb697db5
DN
4352010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
436
437 Move UNEXEC definition to autoconf.
438 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
439 * s/sol2-10.h (UNEXEC):
440 * s/irix6-5.h (UNEXEC):
441 * s/hpux10-20.h (UNEXEC):
442 * s/gnu-linux.h (UNEXEC):
443 * s/darwin.h (UNEXEC):
444 * s/cygwin.h (UNEXEC):
445 * s/bsd-common.h (UNEXEC):
446 * s/aix4-2.h (UNEXEC):
447 * m/alpha.h (UNEXEC): Likewise.
448 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
449
aa3830c4
JB
4502010-06-03 Juanma Barranquero <lekktu@gmail.com>
451
452 Remove obsolete pre-unicode2 macros.
453 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
454 * composite.c (composition_reseat_it):
455 * data.c (Faset):
456 * fns.c (Ffillarray):
457 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
458 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
459
d234d13e
JL
4602010-06-03 Juri Linkov <juri@jurta.org>
461
462 * buffer.c (Fother_buffer): Add CHECK_FRAME.
463 (Fswitch_to_buffer): Remove unused variable `err'.
464
0d4bcf4d
GM
4652010-06-03 Glenn Morris <rgm@gnu.org>
466
e23dc1e2
GM
467 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
468
05b09564
GM
469 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
470 now that AH_BOTTOM does it.
471
824e2978
GM
472 * m/hp800.h (HAVE_ALLOCA):
473 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
474
0d4bcf4d
GM
475 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
476 Remove NOT_C_CODE tests, it is always true now.
477
c55d2abf
DN
4782010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
479
08a494a3
DN
480 Fix config.h includes.
481 * xsettings.c:
482 * xgselect.c:
483 * nsterm.m:
484 * nsselect.m:
485 * nsimage.m:
486 * nsfont.m:
487 * nsfns.m:
488 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
489 other files do.
490
75934b1d
DN
491 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
492
9f32a766
DN
493 * s/sol2-6.h: Remove obsolete comments.
494
c55d2abf
DN
495 Remove unnecessary alloca.h includes.
496 * keymap.c: Do not include alloca.h, config.h does that.
497 * sysdep.c: Likewise. Do not define fwrite, not used.
498
06ac62b4
SM
4992010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
500
501 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
502 the HAVE_TERMIO where it belongs (bug#6149).
503
1ab8293c
SM
5042010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
505
506 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
507 of bug#6305).
508
6dcfd253
EZ
5092010-05-30 Eli Zaretskii <eliz@gnu.org>
510
511 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
512 state is always cached (bug#6306).
513
6d26bbb2
EZ
5142010-05-29 Eli Zaretskii <eliz@gnu.org>
515
06fa4a23
EZ
516 Fix cursor motion in bidi-reordered continued lines.
517 * xdisp.c (try_cursor_movement): Backup to non-continuation line
518 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
519 over continuation lines in bidi-reordered buffers. Return
520 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
521 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
522
f5783df3
MA
5232010-05-28 Michael Albinus <michael.albinus@gmx.de>
524
525 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
526
7d56b2dd
KH
5272010-05-28 Kenichi Handa <handa@m17n.org>
528
529 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
530 Don't sheck SPEC if it is nil.
531 (font_list_entities): Call font_delete_unmatched if
b925d231 532 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 533
e58d4ff7
GM
5342010-05-28 Glenn Morris <rgm@gnu.org>
535
536 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
537
f1a5d776
CY
5382010-05-27 Chong Yidong <cyd@stupidchicken.com>
539
540 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
541 whether to trash.
542 (internal_delete_file, Frename_file): Callers changed.
543 (delete_by_moving_to_trash): Doc fix.
544 (Fdelete_directory_internal): Don't move to trash.
545
546 * callproc.c (delete_temp_file):
547 * buffer.c (Fkill_buffer): Callers changed.
548
549 * lisp.h: Update prototype.
550
f44a59e6
CY
5512010-05-27 Chong Yidong <cyd@stupidchicken.com>
552
553 * xdisp.c (redisplay_window): After redisplay, check if point is
554 still valid before setting it (Bug#6177).
555
81ac4f35
GM
5562010-05-27 Glenn Morris <rgm@gnu.org>
557
558 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
559 Convert comments to Makefile format.
560
561 * Makefile.in (bootstrap-clean): No more Makefile.c.
562
ccd89fb3
GM
5632010-05-26 Glenn Morris <rgm@gnu.org>
564
90278cb6
GM
565 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
566 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
567
ccd89fb3
GM
568 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
569 Remove.
570 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
571
b7050583
KH
5722010-05-26 Kenichi Handa <handa@m17n.org>
573
574 * composite.c (composition_compute_stop_pos): Fix condition for
575 backward scanning.
576
e5458003
GM
5772010-05-25 Glenn Morris <rgm@gnu.org>
578
c345fe90
GM
579 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
580 Move before TEMACS_LDFLAGS.
581 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
582 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
583
2e0689ab
GM
584 * Makefile.in (NOT_C_CODE): No longer define.
585 (config.h): No longer include.
586
8009a5e8
GM
587 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
588 variables it may reference.
589
e5458003
GM
590 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
591 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
592
10f72a37
KH
5932010-05-25 Kenichi Handa <handa@m17n.org>
594
595 * dispextern.h (struct composition_it): New members rule_idx and
596 charpos.
597
598 * xdisp.c (set_iterator_to_next): While scanning backward, assume
599 that the character positions of IT point the last character of the
600 current grapheme cluster.
601 (next_element_from_composition): Don't change character positions
602 of IT.
603 (append_composite_glyph): Set glyph->charpos to
604 it->cmp_it.charpos.
605
606 * composite.c (autocmp_chars): Change the first argument to RULE,
607 and try composition with RULE only.
608 (composition_compute_stop_pos): Record the index number of the
609 composition rule in CMP_IT->rule_idx.
610 (composition_reseat_it): Call autocmp_chars repeatedly until the
611 correct rule of the composition is found.
612 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
613 is at the last character of the current grapheme cluster when
614 CMP_IT->reversed_p is nonzero.
615
171eda53 6162010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 617
171eda53
SM
618 * editfns.c (Fbyte_to_string): New function.
619
66a9f7f4
SM
6202010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
621
622 * process.c (Fmake_network_process): Set :host to nil if it's not used.
623 Suggested by Masatake YAMATO <yamato@redhat.com>.
624
d8c315d1
EZ
6252010-05-23 Eli Zaretskii <eliz@gnu.org>
626
171eda53 627 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 628
f5b416d2 6292010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
630
631 * s/netbsd.h: If terminfo is found, use it in preference to
632 termcap. (Bug#6190) [Backport from trunk]
633
0416466c
EZ
6342010-05-19 Eli Zaretskii <eliz@gnu.org>
635
11117830 636 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
637
638 * dispextern.h (struct glyph_row): New members minpos and maxpos.
639 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
640 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
641 and maxpos members instead of start.pos and end.pos, respectively.
642
643 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
644 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
645 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
646 (try_window_reusing_current_matrix, try_window_id):
647 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
648 (init_from_display_pos, init_iterator): Use EMACS_INT for
649 character and byte positions.
66a9f7f4 650 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
651 arguments for minimum and maximum buffer positions seen by
652 display_line for this row. Don't use iterator to find the
653 position following the maximum one; instead, increment the
11117830
EZ
654 position found by display_line directly. Fix logic; eol_pos
655 should be tested before the rest. Handle the case of characters
656 delivered from display vector (bug#6036). Fix tests related to
657 it->method. Handle the truncated_on_right_p rows.
658 (RECORD_MAX_MIN_POS): New macro.
659 (display_line): Use it to record the minimum and maximum buffer
660 positions for glyphs in the row being assembled. Record the
661 position of the newline that terminates the line. If word wrap is
662 in effect, restore minimum and maximum positions seen up to the
663 wrap point, when iterator returns to it.
664 (try_window_reusing_current_matrix): Give up if in bidi-reordered
665 row and cursor not already at point. Restore original pre-bidi
666 code for unidirectional buffers.
d36fe237
EZ
667
668 * dispnew.c (increment_row_positions, check_matrix_invariants):
669 Increment and check row->start.pos and row->end.pos, in addition
670 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
671
11117830
EZ
672 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
673 Display truncated_on_left_p and truncated_on_right_p flags.
674 Formatting fixes.
675 (pmtxrows): Display the ordinal number of each row. Don't display
676 rows beyond the last one.
677
678 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
679 it is not copied by bidi_copy_it.
680
6e83d800
EZ
6812010-05-22 Eli Zaretskii <eliz@gnu.org>
682
683 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
684 (Bug#6237)
685
110683ad
CY
6862010-05-22 Chong Yidong <cyd@stupidchicken.com>
687
688 * image.c (Fimage_flush): Rename from image-refresh.
689
98fe5161
CY
6902010-05-21 Chong Yidong <cyd@stupidchicken.com>
691
692 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
693 just one window.
694
695 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
696 (clear_image_cache): If the number of cached images is unusually
697 large, decrease the cache eviction delay (Bug#6230).
698
e8752c66
GM
6992010-05-21 Glenn Morris <rgm@gnu.org>
700
66dbf213
GM
701 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
702 Move these rules to ns.mk.
703 * ns.mk: New file.
704
04384b2d
GM
705 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
706
e8752c66
GM
707 * Makefile.in (CANNOT_DUMP): New, set by configure.
708 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
709
2e2bbddb
JL
7102010-05-20 Juri Linkov <juri@jurta.org>
711
712 * fileio.c (Fdelete_file): Change interative spec to use
713 `read-file-name' like in `find-file-read-args' where the default
714 value is `default-directory' instead of `buffer-file-name'.
715 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
716
31c4aaf6
KR
7172010-05-20 Kevin Ryde <user42@zip.com.au>
718
719 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
720 (Voverriding_terminal_local_map, Vsystem_key_alist)
721 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
722
9d5cf9b6
GM
7232010-05-20 Glenn Morris <rgm@gnu.org>
724
725 * Makefile.in (DEPDIR): New constant.
726 (DEPFLAGS): Set with configure, not cpp.
727 (MKDEPDIR): New, set by configure.
728 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
729 (clean): Use $DEPDIR.
730 (deps_frag): Include from configure.
731 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
732 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
733
ead6f8f5
EZ
734 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
735 reallocation of the cache. (Bug#6210)
736
7f34aec3
GM
7372010-05-19 Glenn Morris <rgm@gnu.org>
738
d494e8f2
GM
739 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
740
c1d0dcfd
GM
741 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
742 (GNULIB_VAR): Remove.
743 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
744
745 * m/ibms390x.h (LINKER):
746 * m/macppc.h (LINKER) [GNU_LINUX]:
747 * s/aix4-2.h (ORDINARY_LINK):
748 * s/cygwin.h (LINKER):
749 * s/darwin.h (ORDINARY_LINK):
750 * s/gnu.h (ORDINARY_LINK):
751 * s/netbsd.h (LINKER):
752 * s/usg5-4.h (ORDINARY_LINK):
753 Move to configure.
754
7f34aec3
GM
755 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
756
754790b6
CY
7572010-05-18 Chong Yidong <cyd@stupidchicken.com>
758
759 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
760 prevent stack overflow if number of arguments is too large
761 (Bug#6214).
762
161e44d1
JB
7632010-05-18 Juanma Barranquero <lekktu@gmail.com>
764
765 * charset.c (load_charset_map_from_file): Don't call close after fclose.
766
be4ff9da
GM
7672010-05-18 Glenn Morris <rgm@gnu.org>
768
9539dc5d
GM
769 * s/gnu-linux.h: Combine two conditionals.
770
771 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
772 $(POST_ALLOC_OBJ).
773
40dc6bf4
GM
774 * Makefile.in (RALLOC_OBJ): New, set by configure.
775 (rallocobj): Replace with the previous variable.
776 (otherobj): Use $RALLOC_OBJ.
777
778 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
779 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
780
be4ff9da
GM
781 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
782 (gmallocobj, vmlimitobj): Replace with previous two variables.
783 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
784
16455a85
GM
7852010-05-17 Glenn Morris <rgm@gnu.org>
786
787 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
788 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
789
5fdb7468
GM
7902010-05-16 Glenn Morris <rgm@gnu.org>
791
7ca1f3f9
GM
792 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
793
7541dad5
GM
794 * Makefile.in (clean): Get rid of HAVE_NS conditional.
795
da53fab9
GM
796 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
797 trailing "/".
798
b02a6645
GM
799 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
800 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
801
8877ca0f
GM
802 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
803 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
804 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
805 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
806 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
807
5fdb7468
GM
808 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
809 Remove ${STARTFLAGS}, nothing ever sets it.
810
95adb4b1
DN
8112010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
812
813 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
814
676b6304
GM
8152010-05-16 Glenn Morris <rgm@gnu.org>
816
9beab9ce
GM
817 * Makefile.in (LIBX_BASE): Always define.
818
8a95f0e7
GM
819 * Makefile.in (LIBX_OTHER): Move out of cpp section.
820
676b6304
GM
821 * Makefile.in (LIBXT): Always define.
822
6e546d18
GM
8232010-05-15 Glenn Morris <rgm@gnu.org>
824
4235ca47 825 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 826
6e546d18
GM
827 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
828 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
829
8c5ff6dd
KR
8302010-05-15 Ken Raeburn <raeburn@raeburn.org>
831
560bb7ae 832 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
833 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
834
8b4eb796
KR
835 * emacs.c (main): Initialize initial-environment and
836 process-environment before generating from env, not after.
837
8c5ff6dd
KR
838 Handle --version reasonably in CANNOT_DUMP configuration.
839 * emacs.c (emacs_version, emacs_copyright): New string variables.
840 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
841 (syms_of_emacs): Defvar them, and initialize them from the C
842 string variables.
843 (main): If initialization hasn't been done, print initial version
844 info from the C strings, instead of starting an interactive session.
845
dbd3f723
EZ
8462010-05-15 Eli Zaretskii <eliz@gnu.org>
847
d20e1419
EZ
848 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
849 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
850 (bidi_paragraph_init): Remove redundant assertion that we are at
851 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
852
853 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
854 (syms_of_xdisp): Defsubr it.
855
d36fe237
EZ
856 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
857
dbd3f723
EZ
858 * Makefile.in: Fix MSDOS-related comments.
859
02be533b
GM
8602010-05-15 Glenn Morris <rgm@gnu.org>
861
1a82cca9
GM
862 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
863 (really-lwlib, really-oldXMenu): Always define.
864 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
865
3df7b338
GM
866 * Makefile.in: Simplify cpp conditional.
867
2b5f541b
GM
868 * Makefile.in (${ns_appdir}): Simplify using umask.
869
02be533b
GM
870 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
871
4e2db1fe
SM
8722010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
873
874 * eval.c (specbind): Remove left-over duplicate test.
875 Disallow let-binding frame-local vars. Add comment.
876
4b292a22
EZ
8772010-05-14 Eli Zaretskii <eliz@gnu.org>
878
2fe72643 879 Make the cache of bidi iterator states dynamically allocated.
1edbd309 880 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
881 (bidi_init_it): Call it.
882 (bidi_cache_iterator_state): Enlarge the cache if needed.
883
4e2db1fe 884 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
885 bidi_get_next_char_visually. All callers changed.
886
82ebc97b
KH
8872010-05-14 Kenichi Handa <handa@m17n.org>
888
889 * dispextern.h (struct composition_it): New member reversed_p.
890
891 * composite.c (composition_compute_stop_pos): Search backward if
892 ENDPOS < CHARPOS.
893 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
894 Set CMP_IT->reversed_p.
b4b6e17e 895 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 896
4e2db1fe
SM
897 * xdisp.c (set_iterator_to_next):
898 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
899 scanning backward. Call composition_compute_stop_pos if scan
900 direction is changed.
901 (next_element_from_buffer): Call composition_compute_stop_pos with
902 negative ENDPOS if we are scanning backward.
903 (next_element_from_composition): Pay attention to
904 IT->cmp_it.reversed_p.
905
0e5d7800
KH
9062010-05-14 Kenichi Handa <handa@m17n.org>
907
560bb7ae 908 * font.c (font_range): Return the range for the font found at first.
0e5d7800 909
cb027b32
GM
9102010-05-14 Glenn Morris <rgm@gnu.org>
911
177b0288
GM
912 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
913
fbc00890
GM
914 * Makefile.in (mktime, X11, register): Move undefs to configure.
915
f14d1dfd
GM
916 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
917 (MSDOS_X_OBJ): New variable.
918 (MSDOS_SUPPORT_REAL): New constant.
919 (MSDOS_SUPPORT): Set as a variable, not with cpp.
920 (obj): Use MSDOS_X_OBJ.
921 (lisp): Use MSDOS_SUPPORT as a variable.
922
11842bd8
GM
923 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
924 (GPM_MOUSE_SUPPORT): Now it's a constant.
925 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
926 not cpp.
927
489d31a4 928 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 929 (ns_appresdir): Remove, unused.
e20f1f07 930
489d31a4
GM
931 * Makefile.in (SHELL): Move outside cpp section.
932
cb027b32
GM
933 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
934
5a903aa9
GM
9352010-05-13 Glenn Morris <rgm@gnu.org>
936
3369c79f
GM
937 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
938 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
939
d5e982a6
GM
940 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
941 HAVE_WINDOW_SYSTEM must be too.
942
6192e163
GM
943 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
944 (lisp): Remove WINNT_SUPPORT.
945
472c5d6b
GM
946 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
947 Let configure set these variables (to empty) in this case as well.
948
0116466b
GM
949 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
950 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
951
5a903aa9
GM
952 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
953 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
954 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
955 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
956 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 957 the values output by configure.
5a903aa9
GM
958 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
959
1a0d7c06
GM
9602010-05-12 Glenn Morris <rgm@gnu.org>
961
b5457f14
GM
962 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
963 (LINKER_WAS_SPECIFIED): Remove.
964
1a0d7c06
GM
965 * Makefile.in (LIB_GCC): Set using configure, not cpp.
966 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
967 * m/arm.h (LIB_GCC) [GNU_LINUX]:
968 * s/cygwin.h (LIB_GCC):
969 * s/freebsd.h (LIB_GCC):
970 * s/gnu-linux.h (LIB_GCC):
971 * s/msdos.h (LIB_GCC):
972 * s/netbsd.h (LIB_GCC):
973 Move to configure.
974
3ffd4615 9752010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
976
977 * ftfont.c: Fix incorrect parentheses of #if condition for
978 definining M17N_FLT_USE_NEW_FEATURE.
979
acddf8ae
GM
9802010-05-11 Glenn Morris <rgm@gnu.org>
981
982 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
983 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
984
ae5e04fa
EZ
9852010-05-10 Eli Zaretskii <eliz@gnu.org>
986
987 * xdisp.c (init_iterator): Don't turn on bidi reordering in
988 unibyte buffers. See
989 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
990
7490175b
GM
9912010-05-10 Glenn Morris <rgm@gnu.org>
992
97efb629
GM
993 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
994 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
995 (LIBES): Use LIBS_SYSTEM as a variable.
996 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
997 * s/aix4-2.h (LIBS_SYSTEM):
998 * s/freebsd.h (LIBS_SYSTEM):
999 * s/hpux10-20.h (LIBS_SYSTEM):
1000 * s/sol2-6.h (LIBS_SYSTEM):
1001 * s/unixware.h (LIBS_SYSTEM):
1002 Move to configure.
1003
7490175b
GM
1004 * s/aix4-2.h (MAIL_USE_LOCKF):
1005 * s/bsd-common.h (MAIL_USE_FLOCK):
1006 * s/darwin.h (MAIL_USE_FLOCK):
1007 * s/gnu-linux.h (MAIL_USE_FLOCK):
1008 * s/irix6-5.h (MAIL_USE_FLOCK):
1009 * s/template.h (MAIL_USE_FLOCK):
1010 Move to configure.
1011
0235128c 10122010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
1013
1014 * Version 23.2 released.
1015
0235128c 10162010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
1017
1018 * composite.c (autocmp_chars): Save point as marker before calling
1019 auto-composition-function (Bug#5984).
1020
1021 * lisp.h (restore_point_unwind): Add prototype.
1022
1023 * fileio.c (restore_point_unwind): Remove static attribute.
1024
0235128c 10252010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
1026
1027 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
1028 new feature of libotf and m17n-flt.
0235128c
SM
1029 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
1030 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
1031 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
1032 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
1033 that OUT is NULL. Use OTF_drive_gsub_with_log and
1034 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
1035 OTF_drive_gpos.
1036 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
1037 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
1038 Setup mflt_enable_new_feature and mflt_try_otf.
1039
4721152c
J
10402010-05-08 Jan Djärv <jan.h.d@swipnet.se>
1041
1042 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
1043
1044 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
1045 box and toolbar (Bug #6139).
1046 (xg_create_tool_bar): Remove comment (Bug #6139).
1047 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
1048 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
1049
ee0a16cf
JB
10502010-05-08 Juanma Barranquero <lekktu@gmail.com>
1051
1052 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
1053 Update dependencies.
1054
96d79611
EZ
10552010-05-08 Eli Zaretskii <eliz@gnu.org>
1056
1057 * fringe.c (update_window_fringes): Set up truncation bitmaps for
1058 R2L lines.
1059
40c17879
GM
10602010-05-08 Glenn Morris <rgm@gnu.org>
1061
7b42b29f
GM
1062 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
1063
40c17879
GM
1064 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
1065 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
1066 (termcapobj): Replace with TERMCAP_OBJ.
1067 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
1068 (LIBES): Use LIBS_TERMCAP as a variable.
1069
1070 * s/freebsd.h (osreldate.h): No longer include, since this file
1071 does not use __FreeBSD_version any more.
1072
1073 * s/aix4-2.h (TERMINFO):
1074 * s/cygwin.h (TERMINFO):
1075 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1076 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
1077 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1078 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1079 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
1080 * s/irix6-5.h (TERMINFO):
1081 * s/netbsd.h (LIBS_TERMCAP):
1082 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
1083 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
1084 * s/usg5-4.h (TERMINFO):
1085 Move to configure.
1086
94b612ad
SM
10872010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
1088
1089 * eval.c (unbind_to): Don't unbind a local binding into the global
1090 binding when the local binding disappeared. Inversely, don't unbind
1091 a global binding into a newly created local binding.
1092 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
1093 can specify the frame to use, when applicable. Adjust callers.
1094
15e12598 10952010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 1096 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
1097
1098 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
1099
f724825e
EZ
11002010-05-07 Eli Zaretskii <eliz@gnu.org>
1101
5cba3209
EZ
1102 * w32fns.c: Include w32.h.
1103 (Fw32_shell_execute): Decode the error message before passing it
1104 to `error'. (Bug#6126)
1105
d16bdfc3
EZ
1106 * msdos.c (dos_set_window_size):
1107 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
1108 instead of `XSYMBOL (foo)->value'.
1109
59d93e87
EZ
11102010-05-07 Eli Zaretskii <eliz@gnu.org>
1111
9fdec8bc
EZ
1112 Fix the MS-DOS build, broken by autoconfiscation.
1113
1114 * Makefile.in: Don't use Make-style comments past the "start of
1115 cpp stuff" line.
1116 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
1117
1118 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
1119 edited directly by msdos/sed1v2.inp).
f724825e 1120
2f86b22b
GM
11212010-05-07 Glenn Morris <rgm@gnu.org>
1122
1123 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
1124 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
1125 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
1126 move out of cpp section.
1127 * s/freebsd.h (LD_SWITCH_SYSTEM):
1128 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
1129 * s/netbsd.h (LD_SWITCH_SYSTEM):
1130 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
1131
49ebbd65
DN
11322010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
1133
1134 Define LIB_STANDARD and START_FILES using autoconf.
1135 * s/usg5-4.h (LIB_STANDARD):
1136 * s/netbsd.h (START_FILES):
1137 * s/irix6-5.h (LIB_STANDARD):
1138 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
1139 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
1140 * s/freebsd.h (START_FILES):
1141 * s/darwin.h (START_FILES):
1142 * s/cygwin.h (START_FILES):
1143 * s/aix4-2.h (LIB_STANDARD):
1144 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
1145 * Makefile.in (STARTFILES): Rename to START_FILES, define using
1146 autoconf, not cpp.
1147
d43c06d6
DN
11482010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
1149
28823648
DN
1150 Remove NEED_BSDTTY and NEED_UNISTD_H.
1151 * s/hpux10-20.h (NEED_BSDTTY): Remove.
1152 * s/aix4-2.h (NEED_UNISTD_H): Remove.
1153 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
1154 <sys/ptyio.h> and <unistd.h>.
1155
aca00430
DN
1156 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
1157
d43c06d6
DN
1158 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
1159 * s/gnu.h (START_FILES): Remove empty definition.
1160
3e56b11d
JD
11612010-05-06 Jan Djärv <jan.h.d@swipnet.se>
1162
1163 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
1164
e3cf0cde
GM
11652010-05-06 Glenn Morris <rgm@gnu.org>
1166
1167 * Makefile.in (CPP, LN_S): Remove unused variables.
1168
774b9a60
SM
11692010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
1170
1171 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
1172
4ab92842
LM
11732010-05-05 Lawrence Mitchell <wence@gmx.li>
1174
1175 * m/sparc.h: Fix typo in earlier change.
1176
178f2507
SM
11772010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
1178
1179 Misc tweaks.
1180 * eval.c (Fdefvaralias): Remove unintended nested if.
1181 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
1182
80f00217 11832010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
1184
1185 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
1186
ef03a4e6
DN
11872010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
1188
58eb6cf0
DN
1189 Remove BSD_PGRPS.
1190 * s/bsd-common.h (BSD_PGRPS): Remove undef.
1191 * s/gnu-linux.h (BSD_PGRPS): Remove.
1192 * term.c (dissociate_if_controlling_tty):
1193 * sysdep.c (narrow_foreground_group, widen_foreground_group)
1194 (init_sys_modes, reset_sys_modes):
1195 * emacs.c (main):
1196 * callproc.c (Fcall_process, child_setup): Remove code depending
1197 on BSD_PGRPS.
1198
ef03a4e6
DN
1199 Remove POSIX_SIGNALS.
1200 * s/usg5-4.h (POSIX_SIGNALS):
1201 * s/netbsd.h (POSIX_SIGNALS):
1202 * s/msdos.h (POSIX_SIGNALS):
1203 * s/ms-w32.h (POSIX_SIGNALS):
1204 * s/hpux11.h (POSIX_SIGNALS):
1205 * s/gnu.h (POSIX_SIGNALS):
1206 * s/gnu-linux.h (POSIX_SIGNALS):
1207 * s/freebsd.h (POSIX_SIGNALS):
1208 * s/darwin.h (POSIX_SIGNALS):
1209 * s/cygwin.h (POSIX_SIGNALS):
1210 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
1211 * s/unixware.h:
1212 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
1213 * process.c (create_process):
1214 * syssignal.h:
1215 * sysdep.c (wait_for_termination, init_signals):
1216 * process.c (create_process):
1217 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
1218 remove all code that assumes the contrary.
1219
49628785
GM
12202010-05-04 Glenn Morris <rgm@gnu.org>
1221
27a2cdfc
GM
1222 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
1223 variable.
1224 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
1225 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
1226 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
1227 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
1228 LD_SWITCH_SYSTEM_tmp.
1229 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
1230 New variables, set by configure.
1231
eb21eab5
GM
1232 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
1233 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
1234 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
1235 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
1236 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
1237
49628785
GM
1238 * s/aix4-2.h (C_SWITCH_SYSTEM):
1239 * m/alpha.h (C_SWITCH_MACHINE):
1240 Move to configure.in.
1241 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
1242 New variables, set by configure.
1243 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
1244 $c_switch_machine and $c_switch_system.
1245
7dff330b
DN
12462010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
1247
1248 * s/hpux10-20.h (LIB_STANDARD): New definition.
1249 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
1250 on it, not used anymore.
1251
53967e09
CY
12522010-05-03 Chong Yidong <cyd@stupidchicken.com>
1253
1254 * eval.c (internal_condition_case_n): Rename from
1255 internal_condition_case_2.
1256 (internal_condition_case_2): New function.
1257
1258 * xdisp.c (safe_call): Use internal_condition_case_n.
1259
1260 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
1261 (internal_delete_file, Frename_file): Callers changed.
1262
1263 * buffer.c (Fkill_buffer):
1264 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
1265
1266 * lisp.h: Update prototypes.
1267
3dee6fdb
GM
12682010-05-03 Glenn Morris <rgm@gnu.org>
1269
1270 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
1271 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
1272 (LIBXT): Set with configure, not cpp.
1273 (LIBX): Remove.
1274 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
1275
a101e0fb
DN
12762010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
1277
1278 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
1279 The FreeBSD is not needed, the default works, Solaris version is
1280 not needed, and the remaining case is not supported by configure.
1281
f63d0028
JD
12822010-05-02 Jan Djärv <jan.h.d@swipnet.se>
1283
1284 * xsmfns.c (CHDIR_OPT): New define.
1285 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
1286 restarting emacs.
1287
1288 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
1289 shut_down_emacs.
1290
1291 * emacs.c (USAGE1): Mention --chdir.
1292 (main): Handle --chdir.
1293 (standard_args): Add --chdir.
1294 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
1295 #5552).
1296
e4814a9f
DN
12972010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
1298
cd03c74a
DN
1299 Remove LD_SWITCH_MACHINE.
1300 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
1301 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
1302
c3a398a1
DN
1303 Clean up IRIX code.
1304 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
1305 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
1306
87e7285c
DN
1307 Clean up AIX code.
1308 * m/ibmrs6000.inp: Remove file, unused.
1309 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
1310 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
1311 definition ...
1312 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
1313
80f00217
JB
1314 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
1315 unused.
e4814a9f 1316
59ca28de
EZ
13172010-05-01 Eli Zaretskii <eliz@gnu.org>
1318
197daef4
EZ
1319 Emulate POSIX_SIGNALS on MS-Windows.
1320
1321 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
1322 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
1323
1324 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
1325 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
1326 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
1327
80f00217
JB
1328 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
1329 New stubs.
197daef4 1330
af7c7572
EZ
1331 Miscellaneous fixes of bidi display.
1332
59ca28de
EZ
1333 * xdisp.c (find_row_end): New function, refactored from display_line.
1334 (display_line): Use it.
017ea819
EZ
1335 (extend_face_to_end_of_line): In almost-filled rows, extend only
1336 if the row is R2L and not continued.
166e930d 1337 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 1338 Preserve overlay and string info in row->end.
166e930d
EZ
1339 (insert_left_trunc_glyphs): Support addition of left truncation
1340 glyphs to R2L rows.
b47e0dcf 1341 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
1342 glyph between adjacent windows. Fix a crash when a display string
1343 is continued to the next line. Don't return zero if cursor was
1344 found by `cursor' property of a display string.
b47e0dcf
EZ
1345 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
1346 test for that explicitly.
59ca28de 1347
7acac9f4
GM
13482010-05-01 Glenn Morris <rgm@gnu.org>
1349
1350 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
1351 for clarity.
1352 (OTHER_OBJ): Remove.
1353 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
1354 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
1355
45841e65
KK
13562010-05-01 Karel Klíč <kklic@redhat.com>
1357
1358 * fileio.c (Ffile_selinux_context): Context functions may return null.
1359
afc61943
DN
13602010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
1361
80f00217 1362 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 1363
5a1bb006
GM
13642010-04-30 Glenn Morris <rgm@gnu.org>
1365
1366 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
1367 (OTHER_OBJ): Define as a separate variable, for clarity.
1368
210af043
J
13692010-04-30 Jan Djärv <jan.h.d@swipnet.se>
1370
1371 * xsettings.c: include limits.h and update file comment.
1372
0a7df391
GM
13732010-04-30 Glenn Morris <rgm@gnu.org>
1374
d5096f16
GM
1375 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
1376 Set with configure, not cpp.
1377 (LIBW): Remove, replace with $TOOLKIT_LIBW.
1378
7eb1ac33
GM
1379 * Makefile.in (mallocobj): Remove.
1380 (otherobj): Simplify using @OTHER_OBJ@.
1381
517d086b
GM
1382 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
1383 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
1384 Don't bother making nsgui.h dependency platform-specific.
1385
0a7df391
GM
1386 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
1387
d6d23852
SM
13882010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
1389
d2630aef
SM
1390 * process.c (read_process_output, exec_sentinel): Don't burp if the
1391 sentinel/filter kills the current buffer (bug#6060).
1392
f9dddf52 1393 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
1394 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
1395 Remove unused var `args'.
1396 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
1397 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
1398 * doc.c (store_function_docstring): Use XSETCAR.
1399
f1e3642a
GM
14002010-04-28 Glenn Morris <rgm@gnu.org>
1401
faf535f8
GM
1402 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
1403 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
1404
c40f9449
GM
1405 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
1406
658f86ca
GM
1407 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
1408 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
1409
bc0b5f61
GM
1410 * Makefile.in (FONT_OBJ): New, set by configure.
1411 (FONT_DRIVERS): Use $FONT_OBJ.
1412
294c50a0
GM
1413 * Makefile.in (LIBXMU): Set with configure, not cpp.
1414 * s/aix4-2.h (LIBXMU):
1415 * s/hpux10-20.h (LIBXMU):
1416 Remove definition, now set in configure.
1417
e6ec4e99
GM
1418 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
1419
f1e3642a
GM
1420 * m/amdx86-64.h [i386]: Move this test to configure.in.
1421
c6ea2936
GM
14222010-04-27 Glenn Morris <rgm@gnu.org>
1423
8fdac2c3
GM
1424 * Makefile.in (LIBXTR6): Set with configure, not cpp.
1425 * s/unixware.h (NEED_LIBW): Remove definition.
1426
986fb647
GM
1427 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
1428 (TOOLKIT_LIBW): New, set by configure.
1429 (@X_TOOLKIT_TYPE@): No longer define it.
1430
c6ea2936
GM
1431 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
1432 (MOTIF_LIBW): Set with configure, not cpp.
1433 * s/aix4-2.h (LIB_MOTIF):
1434 * s/gnu-linux.h (LIB_MOTIF):
1435 * s/unixware.h (LIB_MOTIF): Move to configure.in.
1436
aaa36002
DN
14372010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
1438
1439 Reduce CPP usage.
1440 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
1441 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
1442 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
1443 definitions and undefs. Inline definitions in the only user.
1444 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 1445
b678dd8b
GM
14462010-04-27 Glenn Morris <rgm@gnu.org>
1447
76cda504
GM
1448 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
1449 since the defaults (set by the system file) are fine in most cases.
1450 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
1451 * m/ibms390x.h (START_FILES, LIB_STANDARD):
1452 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
1453 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
1454 Remove definitions, since they are set correctly in s/gnu-linux.h.
1455 * s/freebsd.h (START_FILES, LIB_STANDARD):
1456 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
1457 * s/hpux10-20.h (START_FILES):
1458 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
1459 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
1460
b678dd8b
GM
1461 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
1462 (MOTIF_LIBW): Use $LIBXP.
1463 (otherobj): Use $WIDGET_OBJ.
1464
9452ded1
DN
14652010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
1466
7e10844c
DN
1467 * Makefile.in (LIBS_MACHINE): Remove, unused.
1468
9452ded1
DN
1469 Use autoconf instead of cpp for LIB_MATH.
1470 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
1471 * s/cygwin.h (LIB_MATH): Likewise.
1472 * Makefile.in (LIB_MATH): Do not define with cpp.
1473 (LIBES): Use autoconf for LIB_MATH.
1474
fcebfc6a
KH
14752010-04-26 Kenichi Handa <handa@m17n.org>
1476
1477 * composite.c (Ffind_composition_internal): Fix the return value
1478 for an automatic composition.
1479
39e2ad1b
DN
14802010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
1481
1482 Remove all NO_ARG_ARRAY uses.
1483 * fns.c (concat2, concat3, nconc2):
1484 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
1485 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
1486 * m/xtensa.h (NO_ARG_ARRAY):
1487 * m/template.h (NO_ARG_ARRAY):
1488 * m/sparc.h (NO_ARG_ARRAY):
1489 * m/sh3.h (NO_ARG_ARRAY):
1490 * m/mips.h (NO_ARG_ARRAY):
1491 * m/macppc.h (NO_ARG_ARRAY):
1492 * m/iris4d.h (NO_ARG_ARRAY):
1493 * m/intel386.h (NO_ARG_ARRAY):
1494 * m/ibms390x.h (NO_ARG_ARRAY):
1495 * m/ibms390.h (NO_ARG_ARRAY):
1496 * m/ibmrs6000.h (NO_ARG_ARRAY):
1497 * m/ia64.h (NO_ARG_ARRAY):
1498 * m/hp800.h (NO_ARG_ARRAY):
1499 * m/arm.h (NO_ARG_ARRAY):
1500 * m/amdx86-64.h (NO_ARG_ARRAY):
1501 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
1502
adf4f59c
EZ
15032010-04-25 Eli Zaretskii <eliz@gnu.org>
1504
6bdf5d65
EZ
1505 * xdisp.c (display_line): Don't assume 2nd call to
1506 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
1507 (iterate_out_of_display_property): New function, body from pop_it.
1508 (pop_it): Use it.
adf4f59c 1509
dfbbda83
GM
15102010-04-24 Glenn Morris <rgm@gnu.org>
1511
1512 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
1513 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
1514 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
1515 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
1516
2d4018aa
EZ
15172010-04-24 Eli Zaretskii <eliz@gnu.org>
1518
a49884a6
EZ
1519 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
1520 use `get_next_display_element' and `set_iterator_to_next' to
1521 advance to the next character, when looking for the character that
1522 begins the next row.
1523
76db6fcc 1524 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
1525 definition of "struct Lisp_Symbol".
1526
70eab5c1
GM
15272010-04-24 Glenn Morris <rgm@gnu.org>
1528
1529 * Makefile.in (CRT_DIR): New variable, set by configure.
1530 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
1531 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
1532
1ad4cc3d
DN
15332010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1534
e769f484
DN
1535 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
1536
4196ff33
DN
1537 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
1538
879b0ee4
DN
1539 Remove redundant flags.
1540 * s/freebsd.h (C_SWITCH_SYSTEM):
1541 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
1542 * s/netbsd.h (C_SWITCH_SYSTEM):
1543 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
1544 of these.
1545
03cbbcb8
DN
1546 Simplify m/intel386.h.
1547 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
1548 user: ecrt0.c.
1549 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
1550 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
1551 the only user: s/unixware.h.
1552 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
1553 from m/intel386.h.
1554 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
1555 moved here from m/intel386.h.
1556
1ad4cc3d
DN
1557 * m/mips.h: Remove #if 0 code.
1558
8785b888
EZ
15592010-04-23 Eli Zaretskii <eliz@gnu.org>
1560
728588cc
EZ
1561 Fix display of composed characters from L2R scripts in bidi buffers.
1562 * xdisp.c (set_iterator_to_next, next_element_from_composition):
1563 After advancing IT past the composition, resync the bidi iterator
1564 with IT's position. (Bug#5977)
1565
a63f80b4
DN
15662010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1567
1568 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
1569 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
1570
ff5dec5c
SM
15712010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
1572
1573 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
1574
8785b888
EZ
15752010-04-23 Eli Zaretskii <eliz@gnu.org>
1576
58ccf243 1577 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
1578 * xdisp.c (pop_it): When the stack is popped after displaying
1579 from a string, bidi-iterate to exit from the text portion covered
1580 by the `display' property or overlay. (Bug#5988, bug#5920)
1581
feeb1604
DN
15822010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1583
8e324eb6
DN
1584 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
1585 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
1586
809fcaba
DN
1587 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
1588 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
1589
ed710380
DN
1590 Simplify STARTFILES definition.
1591 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
1592 relying on Makefile.in to define it.
1593 * s/cygwin.h (START_FILES): Likewise.
1594 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
1595
feeb1604
DN
1596 Clean up Solaris code.
1597 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
1598 (LIB_MOTIF): Remove, configure takes care of this.
1599 (NOT_USING_MOTIF): Remove, unused.
1600 * xrdb.c: Remove #if 0-ed #include.
1601 (SYSV): Remove conditional for old SysV.
1602 * sysdep.c (closedir): Remove conditional code for Solaris,
1603 Solaris has closedir.
1604
a0d0b563
JD
16052010-04-22 Jan Djärv <jan.h.d@swipnet.se>
1606
1607 * xsettings.c (read_and_apply_settings): Check if current_font is
1608 NULL before strcmp (Bug#6001).
1609
56bae7c7
DN
16102010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
1611
1612 Clean up HP-UX files.
1613 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
1614 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
1615 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
1616 * s/hpux10-20.h: ... to the only user, here.
1617
372b7a95
EZ
16182010-04-21 Eli Zaretskii <eliz@gnu.org>
1619
1620 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
1621 use buffer-local values of paragraph-start and paragraph-separate.
1622 <paragraph_start_re, paragraph_separate_re>: Rename from
1623 fallback_paragraph_start_re and fallback_paragraph_separate_re.
1624 (Bug#5992)
1625
f904c0f9
JD
16262010-04-21 Jan Djärv <jan.h.d@swipnet.se>
1627
1628 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
1629 current_tool_bar_style are new.
1630 (store_config_changed_event): Rename from store_font_changed_event.
1631 (XSETTINGS_TOOL_BAR_STYLE): New define.
1632 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
1633 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
1634 HAVE_XFT.
1635 (something_changedCB): store_font_changed_event is now
1636 store_config_changed_event
1637 (parse_settings): Rename from parse_xft_settings. Read
1638 non-xft xsettings outside #ifdef HAVE_XFT.
1639 (read_settings): Renamed from read_xft_settings.
1640 (apply_xft_settings): Take current settings as parameter. Do not
1641 call read_(xft)_settings.
1642 (read_and_apply_settings): New function.
1643 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
1644 read_and_apply_settings if there are settings to be read.
1645 (init_xsettings): Renamed from init_xfd_settings.
1646 Call read_and_apply_settings unconditionally.
1647 (xsettings_initialize): Call init_xsettings.
1648 (Ftool_bar_get_system_style): New function.
1649 (syms_of_xsettings): Define Qmonospace_font_name and
1650 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 1651 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 1652 dynamic-setting.
31a01b90 1653 Move misplaced HAVE_GCONF
f904c0f9
JD
1654
1655 * xsettings.h (Ftool_bar_get_system_style): Declare.
1656
1657 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
1658 Qtext, Qboth, Qboth_horiz are new.
1659 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
1660 Vtool_bar_style, tool_bar_max_label_size.
1661
1662 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
1663
1664 * keyboard.c: QClabel is new.
1665 (parse_tool_bar_item): Take out QClabel from tool bar items.
1666 Try to construct a label if ther is no QClabel.
1667 (syms_of_keyboard): Intern :label as QClabel.
1668
1669 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
1670 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
1671 New.
1672
1673 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
1674 dynamic-setting.el.
1675
1676 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
1677 (xg_make_tool_item, xg_show_toolbar_item): New function.
1678 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
1679 Call xg_make_tool_item to make a tool bar item.
1680 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
1681
1682 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
1683 into account for toolbars.
1684
c632dfda
JD
16852010-04-21 Jan Djärv <jan.h.d@swipnet.se>
1686
1687 * data.c (make_blv): Declarations before code (Bug#5993).
1688
10efe302
GM
16892010-04-21 Glenn Morris <rgm@gnu.org>
1690
1691 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
1692 Define using autoconf, not cpp.
1693 (LIBXSM): New variable, set by autoconf.
1694 (LIBXT): Use $LIBXSM.
1695
4285ac5a
DN
16962010-04-21 Dan Nicolaescu <local_user@dannlt>
1697
3ec759e7
DN
1698 Remove NOMULTIPLEJOBS, unused.
1699 * s/template.h (NOMULTIPLEJOBS):
1700 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
1701
4285ac5a
DN
1702 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
1703 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
1704 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
1705 detects -znocombreloc and passes it to the linker
1706 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
1707
2807228d
GM
17082010-04-21 Glenn Morris <rgm@gnu.org>
1709
1710 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
1711
574c05e2
KK
17122010-04-21 Karel Klíč <kklic@redhat.com>
1713
1714 * Makefile.in (LIBSELINUX_LIBS): New.
1715 (LIBES): Add $LIBSELINUX_LIBS.
1716 * eval.c, lisp.h (call7): New function.
1717 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
1718 (Ffile_selinux_context, Fset_file_selinux_context):
1719 New functions.
1720 (Fcopy_file): New parameter preserve-selinux-context.
1721 (Frename_file): Preserve selinux context when renaming by copy-file.
1722
91eac4bb 17232010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 1724 Eli Zaretskii <eliz@gnu.org>
91eac4bb 1725
50426a04
JB
1726 Don't depend on cm.c or termcap.c on Windows, use stubs.
1727 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
1728 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
1729 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
1730 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
1731 (sys_tputs, sys_tgetstr): New stubs.
1732 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
1733 (tputs, tgetstr): New; define to sys_*.
91eac4bb 1734
938efb77
JB
17352010-04-20 Juanma Barranquero <lekktu@gmail.com>
1736
1737 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
1738
b4bf28b7
SM
17392010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1740
8b1e1112
SM
1741 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
1742 Just signal a warning rather than an error when inside a let.
1743 (Fmake_variable_frame_local): Add the same test.
1744
933ac235
SM
1745 * font.c (syms_of_font): Make the style table vars read-only.
1746
b4bf28b7
SM
1747 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
1748 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
1749
1750 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
1751
93d68d0c
EZ
17522010-04-20 Eli Zaretskii <eliz@gnu.org>
1753
1754 Fix R2L paragraph display on TTY.
1755
1756 * xdisp.c (unproduce_glyphs): New function.
1757 (display_line): Use it when produced glyphs are discarded from R2L
1758 glyph rows.
1759 (append_composite_glyph): In R2L rows, prepend the glyph rather
1760 than appending it.
1761
1762 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
1763 rather than append it. Set up the resolved_level and bidi_type
1764 attributes of the appended glyph.
283ccc18
EZ
1765 (produce_special_glyphs): Mirror the backslash continuation
1766 character in R2L lines.
93d68d0c 1767
283ccc18 1768 Implement display of R2L paragraphs in GUI sessions.
26cdf528 1769
283ccc18
EZ
1770 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
1771 append_stretch_glyph.
1772 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
1773 off-by-one error in computing x at end of text in the row.
1774 (append_stretch_glyph): In reversed row, prepend the glyph rather
1775 than append it. Set resolved_level and bidi_type of the glyph.
1776 (extend_face_to_end_of_line): If the row is reversed, prepend a
1777 stretch glyph whose width is such that the rightmost glyph will be
1778 drawn at the right margin of the window. Fix off-by-one error on
1779 TTY frames in testing whether a line needs face extension. Fix
1780 face extension at ZV. If this is the last glyph row, use
1781 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
1782 region face.
1783 (set_cursor_from_row, display_line): Use
26cdf528
EZ
1784 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
1785 row->continuation_lines_width.
283ccc18
EZ
1786 (next_element_from_buffer): Don't call bidi_paragraph_init if we
1787 are at ZV. Fixes a crash when reseated to ZV by
1788 try_window_reusing_current_matrix.
45903529
EZ
1789 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
1790 which happens with R2L glyph rows. Fixes a crash when inserting a
1791 character at end of an R2L line.
283ccc18
EZ
1792 (set_cursor_from_row): Don't be fooled by truncated rows: don't
1793 treat them as having zero-width characters. Improve comments.
1794 Don't reverse pos_before and pos_after for reversed glyph rows.
1795 Set cursor.x to negative value when the cursor might be on the
1796 left fringe.
1797 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
1798 left fringe, not the right one.
f951a506
EZ
1799 (notice_overwritten_cursor, draw_phys_cursor_glyph)
1800 (erase_phys_cursor): For reversed cursor_row, support cursor on
1801 the left fringe.
1802
283ccc18
EZ
1803 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
1804 of continuation indicators on the fringes.
1805 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
1806 left fringe.
1807
f951a506
EZ
1808 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
1809 draw cursor on the left fringe.
1810
1811 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
1812 cursor on the left fringe.
1813
f951a506
EZ
1814 * dispnew.c (update_text_area): Handle reversed desired rows when
1815 the cursor is on the left fringe.
1816 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
1817 below, not by 0, for when the cursor is on the left fringe.
1818
3bb49aaf
JD
18192010-04-20 Jan Djärv <jan.h.d@swipnet.se>
1820
1821 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
1822 widget is a scrollbar.
1823
c0be27fd
KH
18242010-04-20 Kenichi Handa <handa@m17n.org>
1825
1826 * charset.c (char_charset): Consider Vcharset_non_preferred_head
1827 only when the arg CHARSET_LIST is nil.
1828
ce5b453a
SM
18292010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1830
1831 Make variable forwarding explicit rather the using special values.
1832 Basically, this makes the structure of buffer-local values and object
1833 forwarding explicit in the type of Lisp_Symbols rather than use
1834 special Lisp_Objects for that. This tends to lead to slightly more
1835 verbose code, but is more C-like, simpler, and makes it easier to make
1836 sure we handled all cases, among other things by letting the compiler
1837 help us check it.
1838 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
1839 Removing forwarding objects.
1840 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
1841 (struct Lisp_Symbol): Make the various forms of variable-forwarding
1842 explicit rather than hiding them inside Lisp_Object "values".
1843 (XFWDTYPE): New macro.
1844 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
1845 (XBUFFER_LOCAL_VALUE): Remove.
1846 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
1847 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
1848 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
1849 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
1850 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
1851 Remove the Lisp_Misc_* header.
1852 (struct Lisp_Buffer_Local_Value): Redefine.
1853 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
1854 (struct Lisp_Misc_Any): Add filler to get the right size.
1855 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
1856 Lisp_Intfwd.
1857 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
1858 (DEFVAR_KBOARD): Allocate a forwarding object.
1859 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
1860 (let_shadows_global_binding_p): New function.
1861 (union Lisp_Val_Fwd): New type.
1862 (make_blv): New function.
1863 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
1864 (store_symval_forwarding, swap_in_global_binding, Fboundp)
1865 (swap_in_symval_forwarding, find_symbol_value, Fset)
1866 (let_shadows_buffer_binding_p, set_internal, default_value)
1867 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
1868 (Fkill_local_variable, Fmake_variable_frame_local)
1869 (Flocal_variable_p, Flocal_variable_if_set_p)
1870 (Fvariable_binding_locus):
1871 * xdisp.c (select_frame_for_redisplay):
1872 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
1873 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
1874 * frame.c (store_frame_param):
1875 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
1876 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
1877 value structure.
1878 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
1879 (clone_per_buffer_values): Only adjust markers into the current buffer.
1880 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
1881 (Fbuffer_local_value, set_buffer_internal_1)
1882 (swap_out_buffer_local_variables):
1883 Adapt to the new symbol value structure.
1884 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
1885 (defvar_per_buffer): Take a new arg for the fwd object.
1886 (buffer_lisp_local_variables): Return a proper alist (different fix
1887 for bug#4138).
1888 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
1889 (Fgarbage_collect): Don't handle buffer_defaults specially.
1890 (mark_object): Handle new symbol value structure rather than the old
1891 special Lisp_Misc_* objects.
1892 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
1893 * term.c (set_tty_color_mode):
1894 * bidi.c (bidi_initialize): Don't access the ->value field directly.
1895 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
1896 a buffer_local_flags.
1897 * print.c (print_object): Get rid of impossible forwarding objects.
1898
fd3998ff
EZ
18992010-04-19 Eli Zaretskii <eliz@gnu.org>
1900
1901 * bidi.c (bidi_get_type, bidi_get_category)
1902 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
1903 (bidi_type_of_next_char, bidi_level_of_next_char):
1904 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 1905
e42cd1a7
JB
19062010-04-19 Juanma Barranquero <lekktu@gmail.com>
1907
1908 * dired.c (Ffile_attributes): Fix typo in docstring.
1909
6e104790 19102010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
1911
1912 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
1913 NSInteger (Bug#5811).
1914
6e104790 19152010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
1916
1917 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
1918 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
1919
6e104790 19202010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
1921
1922 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
1923
6e104790
SM
19242010-04-19 Chong Yidong <cyd@stupidchicken.com>
1925
1926 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
1927 terminal frames (Bug#5837).
1928
37dcfea0
EZ
19292010-04-19 Eli Zaretskii <eliz@gnu.org>
1930
d1da276f
EZ
1931 * .gdbinit (xsubchartable): New command.
1932
37dcfea0
EZ
19332010-04-19 Eli Zaretskii <eliz@gnu.org>
1934
1935 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 1936 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
1937 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
1938 and
1939 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
1940
e9515805
SM
19412010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
1942
1943 * alloc.c (Fpurecopy): Hash-cons if requested.
1944 (syms_of_alloc): Update purify-flag docstring.
1945
22aa44a8
JD
19462010-04-18 Jan Djärv <jan.h.d@swipnet.se>
1947
1948 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
1949 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
1950
ebb5722e
EZ
19512010-04-17 Eli Zaretskii <eliz@gnu.org>
1952
1953 Fix a crash when an NSM character is inserted at BEGV.
1954
1955 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
1956 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
1957 NEUTRAL_B or UNKNOWN_BT.
1958
0f4442ef
EZ
19592010-04-16 Eli Zaretskii <eliz@gnu.org>
1960
1961 * xdisp.c (set_cursor_from_row): Don't consider possibility of
1962 other rows with cursor unless they are different from this row and
1963 this row is part of a continued line. (Bug#5943)
1964
7d4e45f8
DN
19652010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
1966
1967 * s/freebsd.h: Restore osreldate.h include.
1968 Suggested by Naohiro Aota.
1969
5ba5ec85
J
19702010-04-16 Jan Djärv <jan.h.d@swipnet.se>
1971
1972 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
1973
20af301d
CY
19742010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
1975
1976 * s/cygwin.h: Avoid linking against static libgcc.
1977
a4b000fb
JL
19782010-04-15 Juri Linkov <juri@jurta.org>
1979
1980 * window.c: Add Qscroll_command.
1981 Remove Vscroll_preserve_screen_position_commands.
1982 (window_scroll_pixel_based, window_scroll_line_based): Check the
1983 `scroll-command' property on the last command instead of searching
1984 the last command in Vscroll_preserve_screen_position_commands.
1985 (syms_of_window): Initialize and staticpro `Qscroll_command'.
1986 Put Qscroll_command property on Qscroll_up and Qscroll_down.
1987 (scroll-preserve-screen-position): Doc fix.
1988 (Vscroll_preserve_screen_position_commands): Remove variable.
1989
bc319ba4
DN
19902010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
1991
6bb24457
DN
1992 * xdisp.c (message): Do not use NO_ARG_ARRAY.
1993
19d4c244
DN
19942010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
1995
1996 Reduce cpp use in Makefile.in.
1997 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
1998 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
1999 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
2000 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
2001 (CRT0_COMPILE): Remove, inline it in the only user.
2002
32129746
JL
20032010-04-14 Juri Linkov <juri@jurta.org>
2004
2005 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
2006 `scroll-up-command' and `M-v' from `scroll-down' to
2007 `scroll-down-command'.
2008
9013a7f8
JL
20092010-04-14 Juri Linkov <juri@jurta.org>
2010
2011 * window.c (Vscroll_preserve_screen_position_commands): New variable
2012 with the default value as the list of Qscroll_down and Qscroll_up.
2013 (window_scroll_pixel_based, window_scroll_line_based): Search the
2014 last command in the list Vscroll_preserve_screen_position_commands
2015 instead of comparing with Qscroll_up and Qscroll_down.
2016
4bef8d26
JD
20172010-04-13 Jan Djärv <jan.h.d@swipnet.se>
2018
92848133
JD
2019 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
2020 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
2021 does that.
2022
4bef8d26
JD
2023 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
2024 to zero.
2025
58b963f7
SM
20262010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2027
84164a0d
SM
2028 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
2029
2b0a91e7
SM
2030 Try to solve the problem of spurious EOF chars in long lines of text
2031 sent to interactive subprocesses.
2032 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
2033 (system_process_attributes): Remove unused var `ttotal'.
2034 * process.c (send_process): Don't bother breaking long line with EOF
2035 chars when talking to ttys any more.
2036 (wait_reading_process_output): Output a warning when called in such
2037 a way that it could block without being interruptible.
2038
58b963f7
SM
2039 Try to detect file modification within the same second.
2040 * buffer.h (struct buffer): New field modtime_size.
2041 * buffer.c (reset_buffer): Initialize it.
2042 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
2043 (Fverify_visited_file_modtime): Check it.
2044 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
2045 (Fset_visited_file_modtime): Set (or clear) it.
2046
01f5787b
SM
20472010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
2048
2049 * process.c (status_notify): Remove unused var `ro'.
2050
83725342
JD
20512010-04-12 Jan Djärv <jan.h.d@swipnet.se>
2052
2053 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
2054 more than one visual (Bug#5938).
2055
b9465836
DN
20562010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
2057
50426a04
JB
2058 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
2059 Undefine.
b9465836 2060
8d9c8ece
DN
20612010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
2062
b1f52161
DN
2063 Remove C_SWITCH_SYSTEM_TEMACS.
2064 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
2065 (malloc, realloc, free): Use emacs, not temacs for conditional
2066 definition.
2067
2068 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
2069 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
2070
8d9c8ece
DN
2071 Use autoconf, not cpp for some variables.
2072 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
2073 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
2074 (ALL_CFLAGS): Use them as make variables.
2075 (really-lwlib, really-oldXMenu): Do not pass them.
2076
1ecb2d3f
JD
20772010-04-11 Jan Djärv <jan.h.d@swipnet.se>
2078
2079 * xmenu.c (apply_systemfont_to_dialog): New.
2080 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
2081
3a4fa2f2
SM
20822010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
2083
97e53006
SM
2084 * process.c (exec_sentinel): Preserve current-buffer.
2085
3a4fa2f2
SM
2086 * process.c (read_process_output): Move the save-current-buffer to
2087 apply to both the filter and the non-filter branches.
2088
88df7221
DN
20892010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
2090
2091 * s/msdos.h (UNEXEC): New definition.
2092
5634ff85
YM
20932010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2094
6eff5c3d
YM
2095 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
2096 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
2097
2098 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
2099 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
2100 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
2101 TRY_WINDOW_CHECK_MARGINS.
2102
2103 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
2104 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
2105 width only when it is for padding.
5634ff85 2106
b13aef54
J
21072010-04-09 Jan Djärv <jan.h.d@swipnet.se>
2108
2109 * xfns.c (Fx_show_tip): Call try_window in a loop until
2110 fonts_changed_p is zero (Bug#2423).
2111
21d28484
EZ
21122010-04-08 Eli Zaretskii <eliz@gnu.org>
2113
2114 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
2115 the end of TEXT_AREA. (Bug#5856)
2116
0269ef77
JD
21172010-04-08 Jan Djärv <jan.h.d@swipnet.se>
2118
2119 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
2120 HAVE_GCONF.
2121
5930fe97
EZ
21222010-04-08 Eli Zaretskii <eliz@gnu.org>
2123
2124 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
2125 prev.orig_type, for resolving type of NSM. (Bug#5858)
2126
99852628
JD
21272010-04-08 Jan Djärv <jan.h.d@swipnet.se>
2128
2129 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
2130 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
2131 in current_font.
2132 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
2133 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
2134 New functions.
2135 (syms_of_xsettings): Initialize current_font.
2136 defsubr Sfont_get_system_normal_font.
99852628
JD
2137
2138 * xsettings.h (Ffont_get_system_normal_font,
2139 xsettings_get_system_normal_font): Declare.
2140
2141 * xfns.c (extern xlwmenu_default_font): Remove.
2142 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
2143 to xlwmenu.c.
2144
2145 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
2146 menu items in UTF-8.
2147
2148 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
2149 (apply_systemfont_to_menu): New function.
2150 (set_frame_menubar, create_and_show_popup_menu): Call
2151 apply_systemfont_to_menu.
2152
7fc874c4
J
21532010-04-07 Jan Djärv <jan.h.d@swipnet.se>
2154
2155 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
2156 FRAME_LINE_TO_PIXEL_Y.
2157
2158 * xterm.c (x_set_window_size_1): Don't add border_width/height to
2159 pixelwidth/height.
2160
863bf481
DN
21612010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
2162
5e5a3b92
DN
2163 Simplify code for HP machines.
2164 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
2165 for GNU_LINUX, not needed.
2166 (UNEXEC, NEED_BSDTTY): Move definitions...
2167 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
2168
863bf481
DN
2169 * m/iris4d.h (UNEXEC): Move definition ...
2170 * s/irix6-5.h (UNEXEC): ... here.
2171
3e6bec3b
JD
21722010-04-04 Jan Djärv <jan.h.d@swipnet.se>
2173
2174 * xfns.c (set_machine_and_pid_properties): New function.
2175 (Fx_create_frame): Call set_machine_and_pid_properties.
2176
2912322b
SM
21772010-04-03 Eli Zaretskii <eliz@gnu.org>
2178
1502b819
EZ
2179 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
2180 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
2181 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
2182
2912322b
SM
2183 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
2184 in this function. (Bug#5703)
2185
21862010-04-03 Chong Yidong <cyd@stupidchicken.com>
2187
2188 * nsterm.h: Fix last change.
2189
c435b432
DN
21902010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
2191
a568f507
DN
2192 * m/intel386.h (NO_REMAP): Move definition ...
2193 * s/msdos.h (NO_REMAP): ... here.
2194
4cd9f6c2
DN
2195 * m/vax.h (CRT0_DUMMIES): Remove, unused.
2196
c435b432
DN
2197 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
2198 used on those platforms.
2199
42a2c622
DN
22002010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
2201
2202 Remove extern errno declarations.
2203 * xterm.c:
2204 * xrdb.c:
2205 * w32term.c:
2206 * unexec.c:
2207 * unexaix.c:
2208 * sysdep.c:
2209 * process.c:
2210 * lread.c:
2211 * keyboard.c:
2212 * floatfns.c:
2213 * filelock.c:
2214 * fileio.c:
2215 * emacs.c (main):
2216 * ecrt0.c:
2217 * dispnew.c:
2218 * callproc.c:
2219 * buffer.c: Remove errno extern declarations.
2220 * s/netbsd.h (NEED_ERRNO): Remove.
2221
8224f93d
DN
22222010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
2223
2224 Remove all uses of LIBX11_SYSTEM.
2225 * Makefile.in (LIBX11_SYSTEM): Remove.
2226 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
2227 instead.
2228
814062c7
EZ
22292010-04-01 Eli Zaretskii <eliz@gnu.org>
2230
ed68db4d
EZ
2231 Remove support for DJGPP v1.x (bug#5813).
2232
2233 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
2234 * s/msdos.h:
2235 * unexec.c (make_hdr, copy_text_and_data):
2236 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 2237 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
2238 (IT_set_terminal_modes, __write, _rename, gethostname)
2239 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
2240 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
2241 the value of __DJGPP__.
ed68db4d
EZ
2242 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
2243 compatibility code.
8224f93d
DN
2244 * lread.c:
2245 * gmalloc.c (memalign):
2246 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
2247 * emacs.c (main):
2248 * dosfns.c (init_dosfns):
ed68db4d
EZ
2249 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
2250
52f4d8d5
EZ
22512010-04-01 Eli Zaretskii <eliz@gnu.org>
2252
814062c7
EZ
2253 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
2254 string with `cursor' property comes from an `after-string'
2255 overlay. (Bug#5816)
2256
0dc2e11d
GM
22572010-04-01 Glenn Morris <rgm@gnu.org>
2258
2259 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
2260 Define as Makefile variables.
2261 (LIBX): Use above variables rather than directly using autoconf.
2262
1d29df59
DN
22632010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
2264
2265 Clean up BSD_SYSTEM use.
2266 * xterm.c:
2267 * process.c:
2268 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
2269 for including <sys/ioctl.h>.
2270 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
2271 code is only used for MSDOS.
2272
1546c559
JL
22732010-03-31 Juri Linkov <juri@jurta.org>
2274
2275 * image.c: Add `Qextension_data'.
2276 (syms_of_image): Initialize and staticpro `Qextension_data'.
2277 (Fimage_metadata): Rename from `Fimage_extension_data'.
2278 (gif_load): Put GIF extension data to the property
2279 `Qextension_data'.
2280
6521c534
CY
22812010-03-31 Chong Yidong <cyd@stupidchicken.com>
2282
2283 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
2284 * nsterm.h: Fix prototype.
2285
52c30783
EZ
22862010-03-31 Eli Zaretskii <eliz@gnu.org>
2287
2288 * xdisp.c (highlight_trailing_whitespace): Support highlight of
2289 trailing whitespace in right-to-left rows.
2290
855a0da7
SM
22912010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
2292
2293 Get rid of the direct_output optimizations.
2294 * keyboard.c (nonundocount): Remove extern declaration.
2295 (command_loop_1): Remove brittle optimisation for cheap and
2296 common operations.
2297 * xdisp.c (redisplay_internal): Don't bother checking
2298 redisplay_performed_directly_p any more.
2299 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
2300 any more.
2301 * dispnew.c (redisplay_performed_directly_p)
2302 (direct_output_for_insert, direct_output_forward_char):
2303 * dispextern.h (redisplay_performed_directly_p)
2304 (direct_output_for_insert, direct_output_forward_char): Remove.
2305 * cmds.c (nonundocount): Make it static.
2306
85738751 23072010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
2308
2309 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
2310
85738751 23112010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
2312
2313 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
2314 invisible (Bug#5766).
2315
85738751 23162010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 2317
855a0da7
SM
2318 * xdisp.c (x_consider_frame_title, update_window_cursor):
2319 Remove HAVE_NS conditionals.
194d44e7 2320 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
2321
2322 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
2323 filename for the title.
2324 (ns_set_doc_edited): Do nothing if the selected window is a
2325 minibuffer window.
2326
2327 * nsterm.h: Add prototypes for ns_set_name_as_filename and
2328 ns_set_doc_edited.
2329
2330 * nsterm.m: Remove unneeded prototype.
2331
85738751 23322010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
2333
2334 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
2335 in the DOC file. (Bug#5336)
2336
85738751 23372010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
2338
2339 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
2340
75d1428c
SM
23412010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
2342
2343 * window.c (keys_of_window): Remove redundant/overridden bindings.
2344
82043cfb
EZ
23452010-03-30 Eli Zaretskii <eliz@gnu.org>
2346
2347 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
2348 Restore original behavior when the iterator is not bidi_p.
2349
b5dd0ae7
DN
23502010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
2351
2352 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
2353
bd924a5d
EZ
23542010-03-30 Eli Zaretskii <eliz@gnu.org>
2355
2356 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
2357 are outside the range of cached character positions.
2358
3580374b
JB
23592010-03-30 Juanma Barranquero <lekktu@gmail.com>
2360
2361 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
2362
a7b02820
EZ
23632010-03-30 Eli Zaretskii <eliz@gnu.org>
2364
2365 Initial support for bidirectional editing.
2366
2367 * Makefile.in (obj): Include bidi.o.
2368 (bidi.o): New target.
2369
2370 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
2371 ($(BLD)/bidi.$(O)): New target.
2372
2373 * bidi.c: New file.
2374
2375 * buffer.h (struct buffer): New members bidi_display_reordering
2376 and bidi_paragraph_direction.
2377
2378 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
2379 and bidi_paragraph_direction.
2380 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
2381 and bidi-paragraph-direction.
2382 (Fbuffer_swap_text): Swap the values of
2383 bidi_display_reordering and bidi_paragraph_direction.
2384
2385 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
2386 (bidi_type_t, bidi_dir_t): New types.
2387 (bidi_saved_info, bidi_stack, bidi_it): New structures.
2388 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
2389 prev_stop, base_level_stop, and eol_pos.
2390 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
2391 (IT_STACK_SIZE): Enlarge to 5.
2392 (struct glyph_row): New member reversed_p.
2393 <string_buffer_position>: Update prototype.
2394 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
2395 glyph_row if bidi_it.paragraph_dir == R2L.
2396 (struct glyph): New members resolved_level and bidi_type.
2397
2398 * dispnew.c (direct_output_forward_char): Give up if we need bidi
2399 processing or buffer's direction is right-to-left.
2400 (prepare_desired_row): Preserve the reversed_p flag.
2401 (row_equal_p): Compare the reversed_p attributes as well.
2402
2403 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
2404 bidi_init_it and set it->paragraph_embedding from the current
2405 buffer's value of bidi_paragraph_direction.
2406 (reseat_1): Initialize bidi_it.first_elt.
2407 (set_iterator_to_next, next_element_from_buffer): Use the value of
2408 paragraph_embedding to determine the paragraph direction.
2409 (set_iterator_to_next): Under bidi reordering, call
2410 bidi_get_next_char_visually. Call bidi_paragraph_init if the
2411 new_paragraph flag is set in the bidi iterator.
2412 (next_element_from_buffer): If bidi_it.first_elt is set,
2413 initialize paragraph direction and find the first character to
2414 display in the visual order. If reseated to a middle of a line,
2415 prime the bidi iterator starting at the line's beginning. Handle
2416 the situation where we overstepped stop_charpos due to
2417 non-linearity of the bidi iteration. Likewise for when we back up
2418 beyond the previous stop_charpos. When moving across stop_charpos,
2419 record it in prev_stop.
2420 (display_line): Set row->end and it->start for the next row to the
2421 next character in logical order. Always extend reversed_p rows to
2422 the end of line, even if they end at ZV. Copy the reversed_p flag
2423 to the next glyph row. Keep calling set_cursor_from_row for
2424 bidi-reordered rows even if we already have a possible candidate
2425 for cursor position. Set row_end after all the row's glyphs have
2426 been produced, by looping over the glyphs. Record the position
2427 after EOL in it->eol_pos, and use it to set end_pos of the last
2428 row produced for a continued line.
2429 <Qright_to_left, Qleft_to_right>: New variables.
2430 (syms_of_xdisp): Initialize and staticpro them.
2431 (string_buffer_position_lim): New function.
2432 (string_buffer_position): Most of code moved to
2433 string_buffer_position_lim. Last argument and return value are
2434 now EMACS_INT; all callers changed.
2435 (set_cursor_from_row): Rewritten to support bidirectional text and
2436 reversed glyph rows.
2437 (text_outside_line_unchanged_p, try_window_id): Disable
2438 optimizations if we are reordering bidirectional text and the
2439 paragraph direction can be affected by the change.
2440 (append_glyph, append_composite_glyph)
2441 (produce_image_glyph, append_stretch_glyph): Set the
2442 resolved_level and bidi_type members of each glyph.
2443 (append_glyph): If the glyph row is reversed, prepend the glyph
2444 rather than appending it.
2445 (handle_stop_backwards): New function.
2446 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
2447 (reseat): call handle_stop_backwards to recompute prev_stop and
2448 base_level_stop for the new position.
2449 (handle_invisible_prop): Under bidi iteration, skip invisible text
2450 using bidi_get_next_char_visually. If we are `reseat'ed, init the
2451 paragraph direction. Update IT->prev_stop after skipping
2452 invisible text.
2453 (move_it_in_display_line_to): New variables prev_method
2454 and prev_pos. Compare for strict equality in
2455 BUFFER_POS_REACHED_P.
2456 (try_cursor_movement): Examine all the candidate rows that occlude
2457 point, to return the best match. If rows are bidi-reordered
2458 and point moved backwards, back up to the row that is not a
2459 continuation line, and start looking for a suitable row from
2460 there.
2461
2462 * term.c (append_glyph): Reverse glyphs by pre-pending them,
2463 rather than appending, if the glyph_row's reversed_p flag is set.
2464 Set the resolved_level and bidi_type members of each glyph.
2465
2466 * .gdbinit (pbiditype): New command.
2467 (pgx): Use it to display bidi level and type of the glyph.
2468 (pitx): Display some bidi information about the iterator.
2469 (prowlims, pmtxrows): New commands.
2470
32a8894e
DN
24712010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
2472
2473 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
2474 * s/usg5-4.h (LIBS_DEBUG):
2475 * s/irix6-5.h (C_DEBUG_SWITCH):
2476 * s/gnu-linux.h (LIBS_DEBUG):
2477 * s/darwin.h (LIBS_DEBUG):
2478 * s/bsd-common.h (LIBS_DEBUG):
2479 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
2480 * m/iris4d.h (LIBS_DEBUG):
2481 * m/hp800.h (LIBS_DEBUG): Remove definitions.
2482
2483 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
2484 (LIBS_DEBUG): Remove definition.
2485
649dbf36
CY
24862010-03-27 Chong Yidong <cyd@stupidchicken.com>
2487
2488 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
2489 Windows.
2490
cad4261f
YM
24912010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2492
2493 * process.c (Fmake_network_process): Don't call turn_on_atimers around
2494 `connect' (Bug#5723).
2495
cd591dbc
HE
24962010-03-25 Helmut Eller <eller.helmut@gmail.com>
2497
2498 * process.c (Fmake_network_process): Call `select' for interrupted
2499 `connect' rather than creating new socket (Bug#5173).
2500
e867cb5d 25012010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
2502
2503 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
2504
2505 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
2506
2507 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
2508
e867cb5d 25092010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
2510
2511 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
2512 XLoadQueryFont.
2513
e867cb5d 25142010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
2515
2516 * coding.c (decode_coding_ccl): Fix previous change for the
2517 multibyte case.
fb608df3
KH
2518 (encode_coding_ccl): Don't setup ccl program here. Fix for the
2519 case that the output buffer is fullfilled.
2520 (encode_coding): Setup ccl program here.
fbdc1721 2521
5845f0ed
DN
25222010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
2523
814fb708
DN
2524 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
2525
5845f0ed
DN
2526 Simplify LIBS_MACHINE definitions.
2527 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
2528 * m/iris4d.h (LIBS_MACHINE): Likewise.
2529 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
2530 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 2531 * s/netbsd.h: Remove commented out code.
5845f0ed 2532
b7064064
DN
25332010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
2534
df7734b2
DN
2535 Remove dead code dealing with POSIX_SIGNALS.
2536 * atimer.c (set_alarm): Remove dead code, all USG systems define
2537 POSIX_SIGNALS.
2538 * data.c (arith_error): Likewise.
2539 * keyboard.c (input_available_signal, handle_user_signal)
2540 (interrupt_signal): Likewise.
2541 * process.c (sigchld_handler): Likewise.
2542 (create_process): Remove if 0 code. Remove HPUX conditional when
2543 !defined (POSIX_SIGNALS), it cannot be true.
2544 * syssignal.h: Remove USG5_4 and USG conditionals when
2545 !POSIX_SIGNALS, they cannot be true.
2546
b7064064
DN
2547 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
2548 NO_SOCK_SIGIO, not used anymore.
2549
55da5ee3
DN
25502010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
2551
0be96e3a
DN
2552 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
2553 support vax on BSDs.
2554
55da5ee3
DN
2555 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
2556 * s/aix4-2.h (ORDINARY_LINK): ... here.
2557
c0282183
AS
25582010-03-21 Andreas Schwab <schwab@linux-m68k.org>
2559
82c3d67a
AS
2560 * Makefile.in (abs_builddir): Define.
2561 (bootstrap_exe): Use it.
2562 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 2563
3613edce
SM
25642010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
2565
2566 * Makefile.in (bootstrap_exe): Use an absolute name.
2567
7f110ddc
DN
25682010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2569
22e87574
DN
2570 Remove support for old GNU/Linux using libc version 5.
2571 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
2572 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
2573
05a670e6
DN
2574 Consolidate redundant definitions in s/bsd-common.h.
2575 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2576 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2577 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
2578 doing it in all files that include this one.
2579 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2580 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2581 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2582 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2583 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2584 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2585 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2586 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2587 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2588
2968f561
DN
2589 Consolidate redundant definitions.
2590 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
2591 it's undefined in all files that include this one.
2592 (POSIX_SIGNALS): Define here instead of doing it in all files that
2593 include this one.
2594 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2595 (POSIX_SIGNALS): Do not define.
2596 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2597 (POSIX_SIGNALS): Do not define.
2598 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2599 (POSIX_SIGNALS): Do not define.
2600
15d25dc0
DN
2601 Remove support for old UNIX System V systems.
2602 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
2603 * s/usg-5-4-2.h: Remove.
2604
07e339e4
DN
2605 Remove support for Solaris on PPC and for old versions.
2606 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
2607 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
2608 that cancel each other.
2609 * s/sol2-3.h:
2610 * s/sol2-4.h:
2611 * s/sol2-5.h: Remove.
2612 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
2613 (NO_REMAP): Remove, unused.
2614 (UNEXEC): Move definition ...
2615 * s/aix4-2.h (UNEXEC): ... here.
2616
7f110ddc
DN
2617 * s/openbsd.h: Remove support for non-ELF and for systems that do
2618 not support shared libraries.
2619 * s/netbsd.h:
2620 * s/freebsd.h: Likewise.
2621
605f35cd
DN
26222010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2623
2624 Remove non-working support for lynxos 3.0.
2625 * s/lynxos.h: Remove file.
2626
2627 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
2628 COFF_BSD_SYMBOLS, nothing defines it anymore.
2629
aed71cf4
DN
26302010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2631
2632 Remove obsolete uses of HAVE_SHM.
2633 * emacs.c (standard_args):
2634 (Fdump_emacs):
2635 (syms_of_emacs): Remove code depending on HAVE_SHM.
2636
2637 * alloc.c: Remove HAVE_SHM dependent definition.
2638
2639 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
2640
aded53ff
GM
26412010-03-18 Glenn Morris <rgm@gnu.org>
2642
17284745
GM
2643 * emacs.c (USAGE4): Hard-code bug address.
2644 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
2645 (bug_reporting_address): Remove.
2646 (main): Don't call bug_reporting_address.
2647
aded53ff
GM
2648 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
2649 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
2650
303500aa
CY
26512010-03-15 Chong Yidong <cyd@stupidchicken.com>
2652
2653 * xfns.c (Fx_create_frame):
2654 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
2655 on left.
2656
cef3058f
CY
26572010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
2658
2659 * editfns.c (Fformat): Account for string precision when computing
2660 field width (Bug#5710).
2661
a647d59d
CY
26622010-03-12 Chong Yidong <cyd@stupidchicken.com>
2663
4fa42018
CY
2664 * xfns.c (Fx_create_frame): Set default to Qright.
2665
a647d59d
CY
2666 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
2667 all window systems.
2668
6da23aaa
EZ
26692010-03-12 Eli Zaretskii <eliz@gnu.org>
2670
a96f6398 2671 These changes remove termcap.c from the build on Posix platforms.
83d02def 2672 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
2673 (MSDOS_OBJ): ...to here.
2674 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
2675 now identical to when LIBS_TERMCAP is defined.
2676
2677 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
2678
2679 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
2680
a96f6398 2681 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 2682
288f9fc0
CY
26832010-03-10 Chong Yidong <cyd@stupidchicken.com>
2684
2685 * Branch for 23.2.
2686
d48cd3f4
SM
26872010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
2688
2689 Cleanup setup of gl_state in various parts of the code.
2690 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
2691 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
2692 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
2693 (skip_chars):
2694 * regex.c (regex_compile): Use it.
2695 (re_compile_pattern): Don't set gl_state.current_syntax_table since
2696 it's now set in regex_compile when/if we need it.
2697
618db430
SM
26982010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
2699
c0335e02
SM
2700 Make it possible to C-g in a tight bytecode loop again (bug#5680).
2701 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
2702 (QUIT): Use it to consolidate code and remove redundancy.
2703 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
2704
254c06a8
SM
2705 * regex.c (regex_compile): Setup gl_state as well.
2706
618db430
SM
2707 * syntax.c (skip_chars): Setup gl_state (bug#3823).
2708 (in_classes): Use CONSP before XCAR/XCDR.
2709
233f0c9f
CY
27102010-03-03 Chong Yidong <cyd@stupidchicken.com>
2711
2712 * keymap.c (Fwhere_is_internal): Use Fequal to compare
2713 definitions, so that keyboard macros are correctly handled
2714 (Bug#5481).
2715
75f80e63
EZ
27162010-03-02 Eli Zaretskii <eliz@gnu.org>
2717
2718 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
2719 text that could be relocated inside the call to emacs_mule_char.
2720 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
2721 (CODING_DECODE_CHAR): Add a comment describing its purpose.
2722
dcfb9bc4
KH
27232010-03-02 Kenichi Handa <handa@m17n.org>
2724
fc9a17bc
KH
2725 * character.c (parse_str_as_multibyte): Fix handling of the
2726 multibyte form of raw-bytes.
2727 (str_as_multibyte): Likewise.
2728
dcfb9bc4
KH
2729 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
2730 form of raw-bytes.
2731
412c01b6
CY
27322010-02-28 Chong Yidong <cyd@stupidchicken.com>
2733
2734 * charset.c (load_charset_map_from_file)
2735 (load_charset_map_from_vector): Zero out allocated
2736 charset_map_entries before using them.
2737
df7e1ea0
AS
27382010-02-27 Andreas Schwab <schwab@linux-m68k.org>
2739
2740 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
2741
fe69a722
CY
27422010-02-27 Chong Yidong <cyd@stupidchicken.com>
2743
4ed28cf4
CY
2744 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
2745 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 2746
7379cfce
KH
27472010-02-26 Kenichi Handa <handa@m17n.org>
2748
f88cc4d6
KH
2749 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
2750
7379cfce
KH
2751 * xdisp.c (reseat_to_string): Fix previous change.
2752
cf2fdcfb
CY
27532010-02-26 David Reitter <david.reitter@gmail.com>
2754
2755 * nsfont.m (nsfont_draw): ns_antialias_text should be a
2756 Lisp_Object (Bug#4736).
2757
cc6c7c75
KH
27582010-02-25 Kenichi Handa <handa@m17n.org>
2759
2760 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
2761
32e737d7
JD
27622010-02-24 Jan Djärv <jan.h.d@swipnet.se>
2763
2764 * xterm.c (XTflash): Move declarations before statements.
2765
2766 * gtkutil.c (xg_get_gdk_display): Remove (unused).
2767 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
2768 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
2769 (xg_create_tool_bar): Remove unused variables.
2770 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 2771 (xg_create_frame_widgets): Remove variable grav.
32e737d7 2772
676cae9f
CY
27732010-02-21 Chong Yidong <cyd@stupidchicken.com>
2774
2775 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
2776
886cc2b8
SM
27772010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
2778
2779 * term.c (fatal): Add a final \n if needed (bug#5596).
2780
ddb2d8e2
CY
27812010-02-18 Chong Yidong <cyd@stupidchicken.com>
2782
2783 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
2784
2a4f8d3d
GM
27852010-02-18 Glenn Morris <rgm@gnu.org>
2786
2787 * callint.c (Finteractive): Doc fix.
2788
ebaf11b6
KH
27892010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
2790
886cc2b8
SM
2791 * coding.c (record_conversion_result):
2792 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
2793 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
2794 memory allocation error.
2795
d0396581
KH
27962010-02-17 Kenichi Handa <handa@m17n.org>
2797
886cc2b8
SM
2798 * coding.c (decode_coding_ccl): Don't setup ccl program here.
2799 Fix for the case that the output buffer is fullfilled.
d0396581
KH
2800 (decode_coding): Setup ccl program here. Keep looping when the
2801 decoder stopped because the output buffer is
2802 fullfilled (bug#5534).
2803
2804 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
2805
98599f74
JD
28062010-02-13 Jan Djärv <jan.h.d@swipnet.se>
2807
471e4f04 2808 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 2809 bug #5571.
886cc2b8 2810 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 2811 overdrawn.
98599f74 2812
182659ae
JD
28132010-02-10 Jan Djärv <jan.h.d@swipnet.se>
2814
2815 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
2816 doing_interact here.
2817 (ice_connection_closed): New function.
2818 (x_session_check_input, smc_die_CB, ice_io_error_handler)
2819 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
2820 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
2821 returns I/O error.
2822 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
2823 bug #5512.
2824
9be32c4e 28252010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
2826
2827 * nsfont.m (nsfont_open): The system's value for the font descent
2828 is negative, so round it down to avoid clipping.
2829
a2f3eb19
CY
28302010-02-06 Chong Yidong <cyd@stupidchicken.com>
2831
2832 * charset.c (load_charset_map_from_file)
2833 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 2834 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 2835
3088147c
CY
28362010-02-05 Chong Yidong <cyd@stupidchicken.com>
2837
2838 * charset.c (load_charset_map_from_file): Allocate large
2839 charset_map_entries structure on the heap rather than the stack.
2840 (Bug#5526).
2841
b57d9029
KH
28422010-01-31 Kenichi Handa <handa@m17n.org>
2843
2844 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 2845 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 2846
c67d885b
CY
28472010-01-31 Chong Yidong <cyd@stupidchicken.com>
2848
2849 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
2850 <deactivated@gmail.com> (Bug#3605).
2851
8fab2362
CY
28522010-01-31 David De La Harpe Golden <david@harpegolden.net>
2853
2854 * fileio.c (Frename_file): Correctly rename symlinks to
2855 directories (Bug#5496).
2856
cb2a62f2
CY
28572010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
2858
2859 * nsterm.m (ns_ring_bell): Handle visible bell like X.
2860
944c7a26
AS
28612010-01-30 Andreas Schwab <schwab@linux-m68k.org>
2862
2863 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
2864
c024ac08
CY
28652010-01-29 Chong Yidong <cyd@stupidchicken.com>
2866
2867 * frame.c (DEFAULT_ROWS): Change default to 35.
2868
2869 * xfns.c (x_default_font_parameter): Change default XFT font to
2870 monospace-10 (Bug#3643).
2871
af93af83
EZ
28722010-01-29 Eli Zaretskii <eliz@gnu.org>
2873
2874 * w32inevt.c (key_event): Remove unnecessary comparison of
2875 event->uChar.AsciiChar with 128.
2876
ca0eb708
CY
28772010-01-28 Chong Yidong <cyd@stupidchicken.com>
2878
b242dbfc
CY
2879 * fileio.c (Frename_file): Fix last change (Bug#5487).
2880
ca0eb708
CY
2881 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
2882
2883 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
2884
45d45af5
JD
28852010-01-28 Jan Djärv <jan.h.d@swipnet.se>
2886
2887 * xfns.c (Fx_create_frame): Remove window size matching code from
2888 2010-01-15.
a73f9c9d 2889 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 2890
7e233730
JR
28912010-01-27 Jason Rumney <jasonr@gnu.org>
2892
2893 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 2894 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 2895
86e893e3
KH
28962010-01-27 Kenichi Handa <handa@m17n.org>
2897
2898 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 2899 pattern string (Bug#4209).
86e893e3 2900
8719abec
CY
29012010-01-27 David De La Harpe Golden <david@harpegolden.net>
2902
2903 * fileio.c (Frename_file): Call copy-directory and
2904 delete-directory for directories, in order to handle cross-device
2905 renaming (Bug#3353).
2906
844794c8
JD
29072010-01-25 Jan Djärv <jan.h.d@swipnet.se>
2908
aa3e13b5 2909 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 2910 sizes 24 and 10. Bug #3643.
844794c8 2911
bd4b5750
SM
29122010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
2913
8dc1adf6 2914 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
2915 * keymap.c (shadow_lookup): Add `remap' arg.
2916 (describe_map, describe_vector): Update calls to shadow_lookup.
2917 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
2918 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
2919 perform remapping during shadow_lookup check of remapped_sequences.
2920
285d07e2
CY
29212010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
2922
2923 * image.c (png_load): Use png_sig_cmp instead of the obsolete
2924 png_check_sig, which has been removed in libpng 1.4.
2925
c6d09b8d
CY
29262010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
2927
2928 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
2929 lacks this header file).
2930
3d782998
YM
29312010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2932
2933 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
2934 as in Emacs 22.
2935
2aff7c53
YM
29362010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2937
2938 * lisp.h (make_pure_string): String pointer arg now points to const.
2939
2940 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
2941 args now point to const.
2942
74327f7a
EZ
29432010-01-22 Eli Zaretskii <eliz@gnu.org>
2944
2945 * lread.c (Fload): Don't treat files without .elc extension as
2946 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
2947 them. (bug#5303)
2948
4d1e6632
KH
29492010-01-20 Kenichi Handa <handa@m17n.org>
2950
2951 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
2952 treat the source as actual byte sequence.
2953
1fdede8f
AM
29542010-01-19 Alan Mackenzie <acm@muc.de>
2955
2956 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 2957 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
2958 `signal_after_change_p' to `coherent_change_p', and make the
2959 invocation of `modify_region' conditional on it.
2960
67477f30
JD
29612010-01-19 Jan Djärv <jan.h.d@swipnet.se>
2962
2963 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
2964 for debug purpose.
2965 (syms_of_xsettings): Declare xft-settings.
2966
244b023e
CY
29672010-01-18 Chong Yidong <cyd@stupidchicken.com>
2968
2969 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
2970
617364fe
CY
29712010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
2972
2973 * xterm.c (event_handler_gdk): Block input (Bug#5037).
2974
4fe22cdf
CY
29752010-01-16 Chong Yidong <cyd@stupidchicken.com>
2976
2977 * emacs.c (standard_args): Adjust arg priorities to reflect how
2978 they are processed in startup.el.
2979
e118d2be
AS
29802010-01-16 Andreas Schwab <schwab@linux-m68k.org>
2981
2982 * Makefile.in (lisp, shortlisp): Update.
2983
523ae620
SM
29842010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
2985
2986 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
2987 code, link the new kboard into all_kboard before running Lisp code,
2988 and protect the new terminal with GCPRO (Bug#5365).
2989 (x_term_init): Remove unused var `atom'.
2990 (x_delete_display, x_delete_terminal): Remove unused var `i'.
2991
f0d13888
JD
29922010-01-15 Jan Djärv <jan.h.d@swipnet.se>
2993
2994 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
2995 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
2996 to find out usable size of the desktop. Don't make frames larger than
ac146f82 2997 this. Bug #3643.
f0d13888 2998
cc320f07
KH
29992010-01-15 Kenichi Handa <handa@m17n.org>
3000
3001 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
3002
7ffdf101
CY
30032010-01-15 Chong Yidong <cyd@stupidchicken.com>
3004
3005 * nsterm.m (Qnone): Define.
3006
3007 * nsfns.m (Qnone): Move definition to nsterm.m.
3008
d12bd917
KH
30092010-01-14 Kenichi Handa <handa@m17n.org>
3010
3011 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
3012 systems.
3013
d9a7c140
KH
30142010-01-14 Kenichi Handa <handa@m17n.org>
3015
3016 Make auto-composition work on all buffers even if they are
3017 fundamental mode.
3018
3019 * composite.c (Vauto_composition_mode): New variable.
3020 (composition_compute_stop_pos): Check Vauto_composition_mode
3021 instead of Vauto_composition_function.
3022 (composition_adjust_point, Ffind_composition_internal): Likewise.
3023 (syms_of_composite): Declare Lisp variable
3024 "auto-composition-mode" here.
3025
63286bb2
CY
30262010-01-13 Chong Yidong <cyd@stupidchicken.com>
3027
3028 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
3029 during call to vendor-specific-keysyms (Bug#5365).
3030
c2623ee7
YM
30312010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3032
3033 * keyboard.c (input_available_signal) [SYNC_INPUT]:
3034 Call SIGNAL_THREAD_CHECK (Bug#5333).
3035
3036 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
3037 Call SIGNAL_THREAD_CHECK.
3038
0b5397c2
SM
30392010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
3040
3041 Try to fix bug#5314. This is probably not the final word, tho.
3042 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
3043 recent-auto-save-p as a side-effect.
3044 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
3045 * buffer.c (Fkill_buffer, reset_buffer):
3046 * editfns.c (Fsubst_char_in_region):
3047 * fileio.c (Finsert_file_contents, Fdo_auto_save)
3048 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
3049
dc954cb2
KH
30502010-01-13 Kenichi Handa <handa@m17n.org>
3051
3052 Display buffer name, etc. in mode line by composing correctly.
3053
3054 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
3055 STRING is not nil.
0b5397c2 3056 (display_mode_element): Adjust for the change of
dc954cb2
KH
3057 decode_mode_spec and display_line.
3058 (decode_mode_spec): Change arg MULTIBYTE to STRING.
3059 (display_string): Handle the case that STRING is non-null and
3060 LISP_STRING is not nil.
3061
0b5397c2
SM
3062 * xterm.c (x_draw_composite_glyph_string_foreground):
3063 Pay attention to s->face->overstrike.
dc954cb2
KH
3064
3065 * composite.c (composition_reseat_it): Don't check PT if STRING is
3066 non nil.
3067
4a00eaca
YM
30682010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3069
3070 * keyboard.c (read_char): Don't apply previous change when current
3071 buffer is unchanged by command execution.
3072
60abb287
JD
30732010-01-12 Jan Djärv <jan.h.d@swipnet.se>
3074
3075 * keyboard.c (read_char): Return after executing from special map.
3076
893db5bc
GM
30772010-01-12 Glenn Morris <rgm@gnu.org>
3078
3079 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
3080 bug-gnu-emacs rather than emacs-pretest-bug.
3081
4d03ece0
CY
30822010-01-11 Chong Yidong <cyd@stupidchicken.com>
3083
3084 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
3085 initializing the Lisp variables that depend on them.
3086
1df47e38
YM
30872010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3088
3089 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
3090 Clear areas that will not be updated after change of menu bar lines.
3091 Clear the menu bar window's current matrix when the window gets empty.
3092
2f1c6384
CY
30932010-01-09 Chong Yidong <cyd@stupidchicken.com>
3094
e398c61c
CY
3095 * intervals.h, textprop.c (extend_property_ranges): Return value
3096 and args changed. Discard properties that begin at or after the
3097 new end (Bug#5306).
3098
3099 * editfns.c (Fformat): Caller changed.
3100
e5a29a10
CY
3101 * nsterm.m (ns_set_default_prefs): Delete function.
3102 (syms_of_nsterm): Initialize ns_command_modifier,
3103 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
3104 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
3105
2f1c6384
CY
3106 * xdisp.c (pos_visible_p): Check for invisible text at the correct
3107 position (Bug#4040).
3108
d427a9fa
EZ
31092010-01-09 Eli Zaretskii <eliz@gnu.org>
3110
3111 * editfns.c (Ffloat_time): Doc fix.
3112
21b9df2f
JD
31132010-01-09 Jan Djärv <jan.h.d@swipnet.se>
3114
3115 * xfns.c (Fx_create_frame): Don't create frame larger than display
3116 by default bug#3643.
3117
4b00d3b1
YM
31182010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3119
3120 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
3121 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
3122 windows above internal border.
3123
3124 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
3125 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
3126 windows above internal border.
3127
3128 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
3129 tool bar windows specially.
3130
3131 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
3132
3133 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
3134 specially.
3135 (XTflash): Take account of menu bar height.
3136
3137 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
3138 specially.
3139
5075d853
JD
31402010-01-08 Jan Djärv <jan.h.d@swipnet.se>
3141
ac146f82 3142 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
3143 also be true before we can return early (bug #5339).
3144
474217c8
CY
31452010-01-06 David Reitter <david.reitter@gmail.com>
3146
3147 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
3148 (Fns_display_usable_bounds): Rewrite, computing bounds properly
3149 (Bug#3233).
3150
c0e6d47d
JD
31512010-01-06 Jan Djärv <jan.h.d@swipnet.se>
3152
d0cf45b7
JD
3153 * font.c (font_open_entity): Enable chache and call cached_font_ok
3154 for the driver if defined.
3155 (QCuser_spec): New symbol.
3156 (font_spec_from_name): Save name as user-spec.
3157 (font_load_for_lface): Keep user-spec instead of name.
3158 (font_open_by_name): Save name as user-spec.
3159 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 3160 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
3161
3162 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
3163 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
3164 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
3165
3166 * font.h (struct font_driver): Add cached_font_ok.
3167
c0e6d47d
JD
3168 * xterm.c (x_clear_frame): Queue draw for scroll bars.
3169
7c583cd8
JD
31702010-01-05 Jan Djärv <jan.h.d@swipnet.se>
3171
3172 * xterm.c (x_new_font): Move code for setting rows/cols before
3173 resizing ...
ac146f82 3174 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
3175
3176 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
3177 (xg_frame_resized, xg_frame_set_char_size):
3178 Call xg_clear_under_internal_border.
7c583cd8 3179 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 3180
03f77f0a
CY
31812010-01-05 Chong Yidong <cyd@stupidchicken.com>
3182
3183 * keyboard.c (read_key_sequence): Catch keyboard switch after
3184 making a new tty frame (Bug#5095).
3185
2a1ef5be
KH
31862010-01-05 Kenichi Handa <handa@m17n.org>
3187
3188 * fontset.c (fontset_find_font): Fix getting the frame pointer.
3189
e3eb1dae
SM
31902010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
3191
3192 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
3193 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
3194 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
3195
777013f2
MA
31962010-01-03 Michael Albinus <michael.albinus@gmx.de>
3197
3198 * dbusbind.c (xd_add_watch): Improve debug message.
3199 (xd_remove_watch): Improve debug message. If DATA is the session
3200 bus, unset D-Bus session environment.
3201 (Fdbus_init_bus): Pass the bus as argument to
3202 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 3203
8932b1c2
CY
32042010-01-01 Chong Yidong <cyd@stupidchicken.com>
3205
87231e2c
CY
3206 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
3207
4801c5fa
CY
3208 * lread.c (syms_of_lread): Make it clearer that these are the
3209 names of loaded files (Bug#5068).
3210
8932b1c2
CY
3211 * eval.c (run_hook_with_args): Handle the case where the global
3212 value has the obsolete single-function form (Bug#5026).
3213
11e3c684
CY
32142009-12-27 Chong Yidong <cyd@stupidchicken.com>
3215
3216 * minibuf.c (Fall_completions): Minor optimization.
3217
5b28ce35
EZ
32182009-12-26 Eli Zaretskii <eliz@gnu.org>
3219
5ce6e4f4
JB
3220 * .gdbinit (pgx): Fix display of composite glyphs.
3221 Display cmp.from and cmp.to as well.
3222 (pitx): Fix last change.
5b28ce35 3223
bcffff46
KH
32242009-12-25 Kenichi Handa <handa@m17n.org>
3225
3226 * composite.h (composition_adjust_point): Update prototype.
3227
3228 * composite.c (composition_reseat_it): Don't make a composition
3229 spanning over point.
3230 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
3231 composable characters.
3232 (composition_adjust_point): New arg NEW_PT. Callers changed.
3233
3234 * keyboard.c (command_loop_1): Force redisplay if the last point
3235 was within a composition.
3236 (adjust_point_for_property): Don't adjust point for automatic
3237 composition when called after buffer modification.
3238
3f670e9a
EZ
32392009-12-19 Eli Zaretskii <eliz@gnu.org>
3240
5ce6e4f4
JB
3241 * .gdbinit (pitx): Don't use enum names, use their values.
3242 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
3243 (pgx): Don't use enum names, use their values.
3244 (pitmethod): New helper command.
3245 (pitx): Use it to display iteration method.
3246 (pgrowit): New command.
3247
ad903955
EZ
3248 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
3249
3f670e9a
EZ
3250 Update dependencies in Makefile.in.
3251
3252 * Makefile.in (alloc.o): Depend on termhooks.h.
3253 (atimer.o): Depend on blockinput.h.
3254 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
3255 and frame.h.
3256 (callint.o): Depend on systime.h, coding.h, and composite.h.
3257 (callproc.o): Depend on buffer.h.
3258 (casefiddle.o): Don't depend on charset.h.
3259 (casetab.o): Depend on character.h.
3260 (ccl.o): Depend on composite.h.
3261 (chartab.o): Depend on ccl.h.
3262 (cm.o): Depend on dispextern.h.
3263 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
3264 (coding.o): Don't depend on $(INTERVALS_H).
3265 (composite.o): Don't depend on dispextern.h explicitly (it's in
3266 $(INTERVALS_H)). Depend on ccl.h.
3267 (data.o): Depend on systime.h, coding.h, composite.h,
3268 dispextern.h, font.h, and ccl.h.
3269 (dired.o): Depend on composite.h.
3270 (dispnew.o): Depend on coding.h. Don't depend explicitly on
3271 composite.h (it's in $(INTERVALS_H)).
3272 (doc.o): Depend on systime.h, coding.h, and composite.h.
3273 (editfns.o): Don't depend explicitly on dispextern.h.
3274 (emacs.o): Depend on frame.h and coding.h.
3275 (eval.o): Depend on coding.h, composite.h, and xterm.h.
3276 (fileio.o): Depend on frame.h and commands.h. Don't depend
3277 explicitly on dispextern.h.
3278 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
3279 composite.h.
3280 (fns.o): Don't depend on termhooks.h.
3281 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
3282 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
3283 coding.h, $(INTERVALS_H), window.h, xterm.h.
3284 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
3285 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
3286 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
3287 fontset.h, ccl.h, and ftfont.h.
3288 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
3289 (gtkutil.o): Depend on dispextern.h and composite.h.
3290 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
3291 termhooks.h, and ccl.h.
3292 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
3293 (intervals.o): Depend on systime.h and coding.h.
3294 (keyboard.o): Depend on composite.h and coding.h.
3295 (keymap.o): Depend on coding.h and frame.h.
3296 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
3297 (macros.o): Depend on systime.h, coding.h, and composite.h.
3298 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
3299 and atimer.h.
3300 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
3301 dispextern.h explicitly.
0b5397c2
SM
3302 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
3303 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
3304 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
3305 (regex.o): Don't depend on charset.h.
3306 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
3307 (search.o): Don't depend explicitly on composite.h.
3308 (sound.o): Depend on atimer.h and systime.h.
3309 (syntax.o): Don't depend explicitly on composite.h.
3310 (sysdep.o): Depend on coding.h and composite.h.
3311 (term.o): Depend on xterm.h and buffer.h.
3312 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
3313 (textprop.o): Don't depend on dispextern.h explicitly.
3314 (undo.o): Depend on dispextern.h.
3315 (window.o): Depend on coding.h and termhooks.h. Don't depend on
3316 dispextern.h and composite.h explicitly.
3317 (xdisp.o): Depend on ccl.h.
3318 (xfaces.o): Depend on coding.h and ccl.h.
3319 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
3320 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
3321 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
3322 ftfont.h.
3323 (xgselect.o): New dependency.
3324 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
3325 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
3326 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
3327 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
3328 (xsmfns.o): Depend on frame.h and dispextern.h.
3329 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
3330 sysselect.h.
3331
7a6f7fea
AS
33322009-12-19 Andreas Schwab <schwab@linux-m68k.org>
3333
3334 * font.c (Fclear_font_cache): Pass correct cache argument to
3335 font_clear_cache.
3336
f4c21026
AS
33372009-12-16 Andreas Schwab <schwab@linux-m68k.org>
3338
3339 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
3340 twice.
3341
f7ab0997
CY
33422009-12-15 Chong Yidong <cyd@stupidchicken.com>
3343
3344 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
3345 calling file-remote-p. Reported by Jim Meyering.
3346
fa8e045a
MA
33472009-12-15 Michael Albinus <michael.albinus@gmx.de>
3348
3349 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 3350 avoid compiler warnings. (Bug #5217)
fa8e045a 3351
a63dba42
KH
33522009-12-14 Kenichi Handa <handa@m17n.org>
3353
3354 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
3355 in 8-bit encoding.
3356
5ce6e4f4 33572009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
3358
3359 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
3360 tooltip windows.
3361
223e5fc6
JD
33622009-12-13 Jan Djärv <jan.h.d@swipnet.se>
3363
36acb2a7
JD
3364 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
3365 Xatom_net_window_type.
3366
3367 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
3368 Xatom_net_window_type.
3369
b8f00677
JD
3370 * xterm.c (my_log_handler): New function.
3371 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 3372 so we can filter out buggy messages. (Bug #5120).
b8f00677 3373
e5f0bc9a
JD
3374 * xterm.c (xg_scroll_callback): Parameter list changed,
3375 use parameter GtkScrollType to determine scroll/line/page.
3376 Only allow dragging if a button < 4 is grabbed (bug #5177).
3377 (xg_end_scroll_callback): New function.
3378 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
3379 xg_create_scroll_bar.
3380
3381 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
3382 (scroll_end_callback): Remove.
3383 (xg_create_scroll_bar): Add parameter end_callback, bind it to
3384 button-release-event. Replace value-changed event with change-value,
3385 bug #5177,
3386 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
3387 bug #5177.
3388
3389 * gtkutil.h (XG_LAST_SB_DATA): Remove.
3390 (xg_create_scroll_bar): Add GCallback end_callback.
3391
223e5fc6
JD
3392 * xftfont.c (QClcdfilter): New variable.
3393 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
3394 (syms_of_xftfont): Initialize QClcdfilter.
3395
3c055b77
JD
33962009-12-12 Jan Djärv <jan.h.d@swipnet.se>
3397
3398 * xsettings.c (struct xsettings): Add member seen.
3399 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 3400 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
3401 (apply_xft_settings): Only update Xft settings with what member seen
3402 indicates as new.
3403
05fe33ff
EZ
34042009-12-12 Eli Zaretskii <eliz@gnu.org>
3405
3406 * dispextern.h (struct text_pos): Use EMACS_INT;
3407 (struct glyph): Use EMACS_INT for charpos.
3408 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
3409 region_beg_charpos, region_end_charpos,
3410 redisplay_end_trigger_charpos, and also for
3411 iterator_stack_entry.end_charpos and
3412 iterator_stack_entry.stop_charpos.
3413
e8d7886a
JD
34142009-12-12 Jan Djärv <jan.h.d@swipnet.se>
3415
5ce6e4f4 3416 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
3417 (xg_create_scroll_bar): Call scroll_end_callback on button release
3418 event (bug #5177).
3419 (xg_event_is_for_scrollbar): != replaced with ==.
3420
d0db2ec8
KH
34212009-12-12 Kenichi Handa <handa@m17n.org>
3422
3423 * ftfont.c (struct ftfont_info): New member matrix.
3424 (ftfont_open): Setup xftfont_info->matrix.
3425 (MFLTFontFT): New member matrix.
3426 (FLOOR, CEIL, ROUND): New macros.
3427 (ftfont_get_metrics): Handle matrix transformation.
3428 (ftfont_shape_by_flt): New arg matrix. Callers changed.
3429
3430 * xftfont.c (struct xftfont_info): New member matrix.
3431 (xftfont_open): Setup xftfont_info->matrix.
3432
34332009-12-10 Kenichi Handa <handa@m17n.org>
3434
3435 * xdisp.c (append_space_for_newline): Consider face-remapping.
3436
2cc7b62f
AS
34372009-12-09 Andreas Schwab <schwab@linux-m68k.org>
3438
b87dd913
AS
3439 * xsettings.c: Include "keyboard.h".
3440
eba5eb94
AS
3441 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
3442
2cc7b62f
AS
3443 Fix implicit function declarations.
3444 * cmds.c: Include "frame.h".
3445 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
3446 * frame.h: Move declaration of delete_frame outside of
3447 HAVE_WINDOW_SYSTEM.
3448
a4ef73c8
CY
34492009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
3450
3451 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
3452
3453 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
3454 GTK builds.
3455
944a300c
AS
34562009-12-07 Andreas Schwab <schwab@linux-m68k.org>
3457
3458 * unexelf.c (unexec): Don't search for .data twice.
3459
022eef62
CY
34602009-12-05 Chong Yidong <cyd@stupidchicken.com>
3461
426ac949
CY
3462 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
3463 if push failed.
3464 (handle_line_prefix): Set avoid_cursor_p here. Check return value
3465 of push_display_prop (Bug#5000).
3466
022eef62
CY
3467 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
3468 value of font_list_entities (Bug#5085).
3469
be95bee9
JB
34702009-12-04 Juanma Barranquero <lekktu@gmail.com>
3471
3472 Fix `string-to-number' to deal consistently with integers and floats.
3473 * lread.c (isfloat_string): New argument ignore_trailing to accept all
3474 trailing characters, not just whitespace.
3475 (read1): Pass new arg 0 to keep old behavior.
3476 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
3477 trailing chars, as it is already done for integers. Doc fixes.
3478 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
3479
24c2d7ce
EZ
34802009-12-04 Eli Zaretskii <eliz@gnu.org>
3481
0b5397c2
SM
3482 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
3483 Delete unused enumeration value.
24c2d7ce 3484
7e694795
EZ
34852009-12-03 Eli Zaretskii <eliz@gnu.org>
3486
3487 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
3488
84b31826
SM
34892009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
3490
3491 * process.c (Fmake_network_process): Fix up the tests for
3492 "connectionless socket", so they DTRT for seqpacket sockets as well.
3493
f00c449b
SM
34942009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
3495
3496 * process.c (Qseqpacket): New symbol.
3497 (HAVE_SEQPACKET): New macro.
3498 (Fmake_network_process): Accept new :type `seqpacket'.
3499 (init_process): Add `seqpacket' feature when applicable.
3500 (syms_of_process): Initialize Qseqpacket.
3501
8096a0ff
YM
35022009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3503
3504 * font.c (font_load_for_lface, font_open_by_name): Don't store name
3505 if entity is Qnil.
3506
3e0de07f
SM
35072009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
3508
3509 * print.c (print_preprocess): Preprocess the key_and_value table of
3510 hashtables, even tho they're "hidden" (bug#5082).
3511
abeafb2a
JD
35122009-11-29 Jan Djärv <jan.h.d@swipnet.se>
3513
3514 * frame.c (frame_make_pointer_invisible)
3515 (frame_make_pointer_visible): Declare f before statements.
3516
4bf47195
EZ
35172009-11-28 Eli Zaretskii <eliz@gnu.org>
3518
3519 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
3520 omitted dependencies on lisp.h.
3521
c525b3f2
JD
35222009-11-27 Jan Djärv <jan.h.d@swipnet.se>
3523
ece2d4ed
JD
3524 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
3525 is NULL.
3526
3527 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
3528
3529 * frame.c (frame_make_pointer_invisible)
3e0de07f 3530 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
3531 frame.
3532
c525b3f2
JD
3533 * search.c (simple_search): Remove warning by making *p const.
3534
2f00e299
DN
35352009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
3536
3537 * xdisp.c (power_letter): Remove duplicate const.
3538
084b049b
JD
35392009-11-25 Jan Djärv <jan.h.d@swipnet.se>
3540
a1fadc6f
JD
3541 * term.c (delete_tty): Remove check for last terminal (bug#4970).
3542
5ce6e4f4 3543 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
3544 defaults (bug #5025).
3545
28259cac
SM
35462009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
3547
3548 * insdel.c (adjust_markers_for_delete): Move it in the
3549 right direction! (bug#4803)
3550
e8e14166
YM
35512009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3552
3553 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
3554
3555 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
3556
86677b58
GM
35572009-11-24 Glenn Morris <rgm@gnu.org>
3558
3559 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
3560
581e51e8
JD
35612009-11-23 Jan Djärv <jan.h.d@swipnet.se>
3562
cfc86c7a
JD
3563 * Makefile.in: Must create deps for ecrt0.o in its rule.
3564
581e51e8
JD
3565 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
3566 because that is what Gtk+ font dialog understands.
3567
3568 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
3569 of Fcopy_sequence.
3570 (font_open_by_name): Put name given into QCname for font-object returned.
3571
3572 * frame.c (x_set_font): Save original font name as frame parameter
3573 font-parameter.
3574
3575 * xsettings.c (set_default_xft_settings): New function.
3576 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
3577 is found.
3578
8b264ecb
AS
35792009-11-22 Andreas Schwab <schwab@linux-m68k.org>
3580
3581 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
3582 searching backwards through multibyte buffer.
3583
872870b2
JD
35842009-11-21 Jan Djärv <jan.h.d@swipnet.se>
3585
3586 * xterm.c: #include xgselect.h.
3587 (x_initialize): Call xgselect_initialize.
3588
3589 * xsettings.c (something_changedCB): C++ comments => C comments.
3590 (init_gconf): Do not deal with any GLib file descriptors, xg_select
3591 does that now.
3592
3593 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
3594 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
3595 (scroll_bar_button_cb): Remove.
5ce6e4f4 3596 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
3597 event.
3598 (xg_create_scroll_bar): Don't bind button-press-event and
3599 button-release-event.
3600
3601 * process.c: Include xgselect.h if defined (USE_GTK) ||
3602 defined (HAVE_GCONF).
3603 (wait_reading_process_output): Call xg_select for the same condition.
3604
3605 * xgselect.c (xg_select): New function to better integrate with
3606 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
3607
3608 * xgselect.h: New file, declare xg_select, xgselect_initialize.
3609
3610 * Makefile.in (XOBJ): Add xgselect.o.
3611
62a6e103
AS
36122009-11-21 Andreas Schwab <schwab@linux-m68k.org>
3613
0b5397c2
SM
3614 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
3615 Remove ignored second argument. All callers changed.
62a6e103
AS
3616 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
3617 (RE_STRING_CHAR_AND_LENGTH): Likewise.
3618 * xdisp.c (string_char_and_length): Likewise.
3619
b0ca0f33
DN
36202009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
3621
3622 * xterm.c (x_new_font):
3623 * print.c (print_object):
3624 * cmds.c (Fself_insert_command): Move declarations before statements.
3625
dd5a6279
CY
36262009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
3627
3628 * s/cygwin.h: Remove unneeded linker flags.
3629
4a8e097d
JD
36302009-11-20 Jan Djärv <jan.h.d@swipnet.se>
3631
0d1d0d26
JD
3632 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
3633
3634 * xsettings.h: Declare xsettings_get_system_font.
3635
3636 * xsettings.c (xsettings_get_system_font): New function.
3637 (init_gconf): No use initiating gconf unless we have Xft also.
3638 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
3639 HAVE_GCONF.
3640
4a8e097d
JD
3641 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
3642 add a blank entry so it doesn't collapse into nothing.
3643
8ab1650e
SM
36442009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
3645
3646 * lread.c (Funintern): Comment out last change.
3647
82c602f0
RS
36482009-11-19 Richard Stallman <rms@gnu.org>
3649
3650 * lread.c (Funintern): Error if symbol is t or nil.
3651
87e32266
SM
36522009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
3653
3654 * insdel.c (make_gap_larger): Don't make as many assumptions about the
3655 representation of Lisp integers.
3656 Reported by MJ Chan <mjchan.inbox@gmail.com>.
3657
1b9ac145
AS
36582009-11-17 Andreas Schwab <schwab@linux-m68k.org>
3659
3660 * lisp.h: Remove declaration of Ffont_get_system_font.
3661 * xfns.c: Move include of "xsettings.h".
3662 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
3663
dfb3c4c6
JD
36642009-11-17 Jan Djärv <jan.h.d@swipnet.se>
3665
87e32266
SM
3666 * xsettings.c (something_changedCB, Ffont_get_system_font):
3667 Check use_system_font.
dfb3c4c6
JD
3668 (syms_of_xsettings): DEFVAR font-use-system-font.
3669
9370c1d8
AS
36702009-11-17 Andreas Schwab <schwab@linux-m68k.org>
3671
25fe851a
AS
3672 * xfns.c (x_default_font_parameter): Remove dead assignment.
3673
9370c1d8
AS
3674 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
3675
637fa988
JD
36762009-11-17 Jan Djärv <jan.h.d@swipnet.se>
3677
87e32266 3678 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 3679 not have FC_LCD_*. #define them if not there.
a6eb20d8 3680
87e32266 3681 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 3682
637fa988
JD
3683 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
3684
3685 * xterm.c (handle_one_xevent): Call xft_settings_event for
3686 ClientMessage, PropertyNotify and DestroyNotify.
3687 (x_term_init): If we have XFT, get DPI from Xft.dpi.
3688 Call xsettings_initialize.
3689
3690 * xftfont.c (xftfont_fix_match): New function.
3691 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
3692 Call xftfont_fix_match after XftFontMatch.
3693
3694 * xfont.c (xfont_driver): Initialize all members.
3695
87e32266
SM
3696 * xfns.c (x_default_font_parameter):
3697 Try font from Ffont_get_system_font.
637fa988
JD
3698 Do not get font from x_default_parameter if we got one from
3699 Ffont_get_system_font.
87e32266 3700 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
3701
3702 * w32font.c (w32font_driver): Initialize all members.
3703
3704 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
3705
3706 * lisp.h: Declare syms_of_xsettings.
3707
87e32266
SM
3708 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
3709 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
3710
3711 * ftfont.c (ftfont_filter_properties): New function.
3712
3713 * frame.c (x_set_font): Remove unused variable lval.
3714
87e32266 3715 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
3716
3717 * font.c (font_put_extra): Don't return if val is nil, it means
3718 boolean option is off.
3719 (font_parse_fcname): Collect all extra properties in extra_props
3720 and call filter_properties for all drivers with extra_props and
3721 font as parameter.
87e32266
SM
3722 (font_open_entity): Do not use cache, it does not pick up new
3723 fontconfig settings like hinting.
637fa988
JD
3724 (font_load_for_lface): If spec had a name in it, store it in entity.
3725
a73f9c9d 3726 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
3727
3728 * config.in: HAVE_GCONF is new.
3729
3730 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
3731 xsettings.o is new.
3732
5a942932
KH
37332009-11-17 Kenichi Handa <handa@m17n.org>
3734
3735 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
3736 back to the default font in case that no suitable font is found.
3737
b7c7a4d1
SM
37382009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
3739
3740 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
3741 Suggested by Chad Brown <yandros@mit.edu>.
3742 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
3743
072f1e39
JD
37442009-11-16 Jan Djärv <jan.h.d@swipnet.se>
3745
3746 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
3747
5d1e70a2
AS
37482009-11-14 Andreas Schwab <schwab@linux-m68k.org>
3749
87e32266 3750 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 3751
a53cfbe5
JD
37522009-11-14 Jan Djärv <jan.h.d@swipnet.se>
3753
473a99b7
JD
3754 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
3755 has a parent.
3756
a53cfbe5 3757 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 3758 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
3759
3760 * config.in: Generated (AUTO_DEPEND).
3761
f04bb9b2
MA
37622009-11-13 Michael Albinus <michael.albinus@gmx.de>
3763
b7c7a4d1 3764 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
3765 Vdbus_registered_functions_table, because it contains also
3766 properties. Fix docstring.
b7c7a4d1 3767 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 3768
8f11f7ec
SM
37692009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
3770
3771 * alloc.c (mark_object): Don't reprocess marked strings.
3772 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
3773 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
3774
8a605fe8
KH
37752009-11-13 Kenichi Handa <handa@m17n.org>
3776
8f11f7ec 3777 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
3778 semantics of Vword_combining_categories.
3779 (Vword_combining_categories): Describe the slight change of the
3780 semantics.
3781
241c4680
EZ
37822009-11-13 Eli Zaretskii <eliz@gnu.org>
3783
3784 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
3785
3786 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
3787
5d58e44c
SM
37882009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
3789
3790 * xdisp.c (syms_of_xdisp): Fix typo in last change.
3791
5e13f9d3
JB
37922009-11-12 Juanma Barranquero <lekktu@gmail.com>
3793
3794 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
3795
cf54c754
DR
37962009-11-11 David Reitter <david.reitter@gmail.com>
3797
3798 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
3799 variables to fix 2009-11-09 change.
3800
a4ada374
DN
38012009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
3802
91433552
DN
3803 * process.c (ifflag_def): Make flag_sym constant.
3804 (Fnetwork_interface_info): Use a constant pointer.
3805 (ifflag_table):
3806 * xfns.c (cursor_bits):
3807 * xdisp.c (power_letter):
3808 * termcap.c (speeds, esctab):
3809 * sysdep.c (baud_convert):
3810 * keyboard.c (lispy_accent_codes, modifier_names):
3811 * image.c (xbm_format, xpm_format, pbm_format, png_format)
3812 (jpeg_format, tiff_format, gif_format, svg_format)
3813 (interlace_start, interlace_increment, gs_format):
3814 * gtkutil.c (separator_names):
3815 * fringe.c (swap_nibble):
3816 * fns.c (base64_value_to_char, base64_char_to_value):
3817 * fileio.c (make_temp_name_tbl):
3818 * coding.c (suffixes): Make constant.
3819
f4265f6c
DN
3820 * frame.c (make_initial_frame):
3821 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
3822 build_string.
3823 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
3824
04420943
DN
3825 * s/freebsd.h:
3826 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
3827
0a5d24ae
DN
3828 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
3829 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
3830
a4ada374
DN
3831 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
3832 * xterm.c (syms_of_xterm):
3833 * xfaces.c (syms_of_xfaces):
3834 * xdisp.c (syms_of_xdisp):
3835 * lread.c (syms_of_lread):
3836 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
3837 build_string.
91433552 3838
a4ada374
DN
3839 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
3840
af98fc7f
SM
38412009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3842
8ab1650e 3843 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 3844
e90292a9
JD
38452009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3846
3847 * keyboard.h: Declare timer_check.
3848
3849 * keyboard.c (timer_check_2): New function that does what the old
3850 timer_check did.
3851 (timer_check): Call timer_check_2 until -1 or a non-zero time is
3852 returned, i.e. don't return -1 with timers pending.
3853
3854 * process.c: Remove extern declaration of timer_check.
3855
3856 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
3857 even if timer_check returned -1.
3858
af98fc7f
SM
3859 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
3860 xg_dialog_data.
e90292a9
JD
3861 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
3862 the event loop.
3863 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
3864 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
3865 Destroy the dialog after xg_dialog_run.
3866
045b83c0
SM
38672009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3868
3869 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
3870
1fb99a3a
JD
38712009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3872
3873 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
3874
04e452cb
JB
38752009-11-09 Juanma Barranquero <lekktu@gmail.com>
3876
3877 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
3878
ef7417fd
SM
38792009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
3880
3881 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
3882 w32menu.c, and nsmenu.m.
3883 Simplify the obsolete case where position is nil.
3884 (cleanup_popup_menu): New function, moved from nsmenu.m.
3885 (struct skp): Remove slot `notreal'.
3886 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
3887 adjust callers.
3888 (single_menu_item): Adjust call to parse_menu_item.
3889 (syms_of_menu): Defsubr x-popup-menu.
3890 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
3891 (keymap_panes): Don't export any more.
3892 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
3893 (xmenu_show): Declare.
3894 * keyboard.c (parse_menu_item): Remove arg `notreal'.
3895 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
3896 * keyboard.h (parse_menu_item): Update declaration.
3897 * xmenu.c (Fx_popup_menu): Remove.
3898 (syms_of_xmenu): Don't defsubr x-popup-menu.
3899 * w32menu.c (Fx_popup_menu): Remove.
3900 (syms_of_w32menu): Don't defsubr x-popup-menu.
3901 * nsmenu.m (cleanup_popup_menu): Remove.
3902 (ns_menu_show): Rename from ns_popup_menu and remove all the code
3903 moved to menu.c's Fx_popup_menu.
3904 (Fx_popup_menu): Remove.
3905 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
3906 menu_items (it's done in menu.c already).
3907
424d6179
SM
39082009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
3909
3910 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
3911 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
3912
c0df13a6 39132009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
3914
3915 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 3916 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
3917 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
3918 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
3919
2de9f71c
SM
39202009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
3921
3922 Let integers use up 2 tags to give them one extra bit and thus double
3923 their range.
3924 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
3925 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
3926 New macros.
3927 (enum Lisp_Type): Use them. Give explicit values.
3928 (Lisp_Type_Limit): Remove.
3929 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
3930 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
3931 Pay attention to USE_2_TAGS_FOR_INTS.
3932 (INTEGERP): Use LISP_INT_TAG_P.
3933 * fns.c (internal_equal): Simplify the default case.
3934 (sxhash): Use case_Lisp_Int.
3935 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
3936 any more.
3937 (Ftype_of): Use case_Lisp_Int.
3938 (store_symval_forwarding): Take into account the fact that Ints can
3939 now have more than one tag.
3940 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
3941 buffer_slot_type_mismatch):
3942 * xfaces.c (face_attr_equal_p):
3943 * print.c (print_object):
3944 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
3945 Use case_Lisp_Int.
3946
323637a2
EZ
39472009-11-06 Eli Zaretskii <eliz@gnu.org>
3948
7ac65b38
EZ
3949 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
3950
323637a2
EZ
3951 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
3952 warning.
3953
e511451f
JD
39542009-11-06 Jan Djärv <jan.h.d@swipnet.se>
3955
3956 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
3957
3958 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
3959
3960 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
3961 ButtonPressRelease and MotionNotify (bug#4870).
3962
5e2327cf
DN
39632009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
3964
5adc433e
DN
3965 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
3966
d67b4f80
DN
3967 * xterm.c (syms_of_xterm):
3968 * xselect.c (syms_of_xselect):
3969 * xmenu.c (syms_of_xmenu):
3970 * xfns.c (syms_of_xfns):
3971 * xfaces.c (syms_of_xfaces):
3972 * xdisp.c (syms_of_xdisp):
3973 * window.c (syms_of_window):
3974 * w32fns.c (syms_of_w32fns):
3975 * undo.c (syms_of_undo):
3976 * textprop.c (syms_of_textprop):
3977 * terminal.c (syms_of_terminal):
3978 * syntax.c (syms_of_syntax):
3979 * sound.c (syms_of_sound):
3980 * search.c (syms_of_search):
3981 * print.c (syms_of_print):
3982 * minibuf.c (syms_of_minibuf):
3983 * macros.c (syms_of_macros):
3984 * keymap.c (syms_of_keymap, initial_define_key)
3985 (initial_define_lispy_key):
3986 * keyboard.c (syms_of_keyboard):
3987 * insdel.c (syms_of_insdel):
3988 * image.c (syms_of_image):
3989 * fringe.c (syms_of_fringe):
3990 * frame.c (syms_of_frame):
3991 * fontset.c (syms_of_fontset):
3992 * fns.c (syms_of_fns):
3993 * fns.c (syms_of_fns):
3994 * fileio.c (syms_of_fileio):
3995 * fileio.c (syms_of_fileio):
3996 * eval.c (syms_of_eval):
3997 * doc.c (syms_of_doc):
3998 * dispnew.c (syms_of_display):
3999 * dired.c (syms_of_dired):
4000 * dbusbind.c (syms_of_dbusbind):
4001 * data.c (syms_of_data):
4002 * composite.c (syms_of_composite):
4003 * coding.c (syms_of_coding):
4004 * cmds.c (syms_of_cmds):
4005 * charset.c (define_charset_internal, syms_of_character):
4006 * ccl.c (syms_of_ccl):
4007 * category.c (syms_of_category, init_category_once):
4008 * casetab.c (syms_of_casetab):
4009 * casefiddle.c (syms_of_casefiddle):
4010 * callint.c (syms_of_callint):
4011 * bytecode.c (syms_of_bytecode):
4012 * buffer.c (keys_of_buffer, syms_of_buffer):
4013 * alloc.c (syms_of_alloc):
4014 * process.c (syms_of_process, init_process):
4015 * lread.c (syms_of_lread, init_obarray):
4016 * font.c (build_style_table):
4017 * emacs.c (syms_of_emacs, main): Replace calls to intern with
4018 intern_c_string, calls to make_pure_string with
4019 make_pure_c_string. Use pure_cons instead of Fcons.
4020
5e2327cf
DN
4021 * process.c (socket_options): Make it const.
4022 (set_socket_option, init_process): Use a const pointer.
4023
4024 * lread.c (intern_c_string): New function.
4025 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
4026 (defvar_int): Uset it. Make the name const char*.
4027
4028 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
4029 (defvar_int): Update prototypes.
4030 (DEFUN, EXFUN): Support for prototypes is now required.
4031 (intern_c_string): New prototype.
4032 (struct Lisp_Subr): Make symbol_name constant.
4033
4034 * font.c (struct table_entry): Remove unused member. Make NAMES
4035 constant.
4036 (weight_table, slant_table, width_table): Make constant.
4037
4038 * emacs.c (struct standard_args): Make name and longname constant.
4039
4040 * character.h (DEFSYM): Use intern_c_string.
4041
a56eaaef
DN
40422009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
4043
4044 * alloc.c (make_pure_c_string): New function.
4045
4046 * eval.c (Fautoload): Purecopy all arguments.
4047
f6a07420
KH
40482009-11-05 Kenichi Handa <handa@m17n.org>
4049
4050 * fileio.c (Finsert_file_contents): Be sure set coding-system of
4051 the buffer in case of replace.
4052
5d28d4b1
DN
40532009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
4054
4055 * puresize.h (BASE_PURESIZE): Increase to 1620000.
4056
b349d111
SM
40572009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
4058
d528b1ce
SM
4059 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
4060 when applicable (bug#4851).
4061
b349d111
SM
4062 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
4063 (P_): Support for prototypes is now required.
4064
c38eb027
CY
40652009-10-31 Chong Yidong <cyd@stupidchicken.com>
4066
4067 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
4068 (Bug#4827).
4069
0405f8d9
EZ
40702009-10-30 Eli Zaretskii <eliz@gnu.org>
4071
d528b1ce 4072 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 4073
ca0a881a
DN
40742009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
4075
4076 * puresize.h (BASE_PURESIZE): Increase to 1470000.
4077
d528b1ce
SM
4078 * lread.c (Fload): Purecopy the file name when building
4079 Vpreloaded_file_list.
ca0a881a 4080
47e0e0e4
JR
40812009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
4082
4083 * w32fns.c (syms_of_w32fns): Change default value of
4084 w32-scroll-lock-modifier to nil. (Bug#2827)
4085
057bce6f
JB
40862009-10-26 Juanma Barranquero <lekktu@gmail.com>
4087
782a943e 4088 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 4089
242bc74c
AS
40902009-10-26 Andreas Schwab <schwab@redhat.com>
4091
4092 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
4093
522d013a
JB
40942009-10-26 Juanma Barranquero <lekktu@gmail.com>
4095
4096 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
4097 For delta < 0, skip check that only makes sense when the mini-window
4098 is going to be enlarged. (Bug#4534)
4099
18060980
CY
41002009-10-25 Chong Yidong <cyd@stupidchicken.com>
4101
4102 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
4103 string in menu maps (Bug#4471).
4104
fec8f0fe
CY
41052009-10-24 Chong Yidong <cyd@stupidchicken.com>
4106
4107 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
4108 FRAME_NS_VIEW on terminal frames (Bug#4765).
4109
10d66ec0
AS
41102009-10-24 Andreas Schwab <schwab@linux-m68k.org>
4111
1cae01f7
AS
4112 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
4113 DBUS_TYPE_UINTnn separately to get proper sign extension.
4114
58a12889
AS
4115 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
4116 can properly handle unsigned types.
d528b1ce 4117 (make_uid, make_gid): Remove.
58a12889 4118
987c9327
AS
4119 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
4120 types again.
4121
522d013a 4122 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
4123 (system_process_attributes): Likewise.
4124
905a9ed3
DN
41252009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
4126
4127 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
4128
4129 * eval.c (Fautoload): Purecopy the filename. Simplify.
4130
4131 * category.c (Fdefine_category): Purecopy docstring.
4132
a599b3e8
AS
41332009-10-23 Andreas Schwab <schwab@linux-m68k.org>
4134
7b792fc9
AS
4135 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
4136
a599b3e8
AS
4137 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
4138
b35ac83e
CY
41392009-10-23 Chong Yidong <cyd@stupidchicken.com>
4140
4141 * window.c (Fwindow_edges, Fwindow_pixel_edges)
4142 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
4143 (Bug#4775).
4144
e8903e00
SM
41452009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
4146
4147 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
4148 (init_fileio_once):
4149 * lisp.h (init_fileio_once): Remove.
4150 * emacs.c (main): Don't call init_fileio_once.
4151
8f43cbf3
DN
41522009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
4153
4154 * puresize.h (BASE_PURESIZE): Increase to 1430000.
4155
26898943
AS
41562009-10-21 Andreas Schwab <schwab@linux-m68k.org>
4157
4158 * doprnt.c (doprnt): Fix overflow check.
4159
5c646d5a
JD
41602009-10-21 Jan Djärv <jan.h.d@swipnet.se>
4161
3132a7ea
JD
4162 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
4163
5c646d5a
JD
4164 * xterm.h (x_wait_for_event): Declare it.
4165
4166 * xterm.c (pending_event_wait): New variable.
4167 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
4168 see pending_event_wait.eventtype.
4169 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
4170 (x_new_font): Call change_frame_size with new rows/columns before we
4171 try to resize the frame.
5c646d5a 4172 (x_wait_for_event): New function.
d528b1ce
SM
4173 (x_set_window_size_1): Don't change gravity unless change_gravity
4174 is set.
5c646d5a
JD
4175 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
4176 don't change frame size, instead wait for the ConfigureNotify.
4177 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
4178 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
4179 (x_initialize): Initialize pending_event_wait.
4180
4181 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
4182 size.
4183
4184 * widget.c (EmacsFrameSetValues): Add comment.
4185 (EmacsFrameSetCharSize): Just call x_set_window_size.
4186
4187 * gtkutil.c (xg_frame_set_char_size): Flush events and call
4188 x_wait_for_event.
d528b1ce 4189 (flush_and_sync): Remove again.
5c646d5a
JD
4190 (xg_get_font_name): Suggest monospace if no previous font is known.
4191
e9c1637d
SM
41922009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
4193
4194 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 4195 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 4196
5a72cccb
YM
41972009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4198
4199 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
4200 processing pending events when event is filtered for input method.
ab04798f 4201 (Bug#3681)
5a72cccb 4202
2629aa37
JB
42032009-10-20 Juanma Barranquero <lekktu@gmail.com>
4204
4205 * fns.c: Add #endif accidentally removed in previous change.
4206
c3417a74
DN
42072009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
4208
4209 * fns.c: Remove code for unsupported system: MAC_OS.
4210 * image.c: Likewise. Include setjmp.h.
4211
9685cef2
JD
42122009-10-19 Jan Djärv <jan.h.d@swipnet.se>
4213
4214 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
4215 pixel -1 (bug #4742).
4216
d7306fe6
DN
42172009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
4218
019d2c4c
DN
4219 * process.c (create_pty): Remove conditionals for no longer
4220 supported systems: UNIPLUS and RTU.
4221
ee6bacd4
DN
4222 * xterm.c:
4223 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
4224
d7306fe6
DN
4225 * alloc.c: Do not define struct catchtag.
4226 * eval.c: Move struct catchtag definition ...
4227 * lisp.h: ... here.
4228
4229 * image.c: Move png.h #include earlier to avoid warnings.
4230
4231 * xterm.c:
4232 * xsmfns.c:
4233 * xselect.c:
4234 * xrdb.c:
4235 * xmenu.c:
4236 * xftfont.c:
4237 * xfont.c:
4238 * xfns.c:
4239 * xfaces.c:
4240 * xdisp.c:
4241 * window.c:
4242 * widget.c:
4243 * w32xfns.c:
4244 * w32uniscribe.c:
4245 * w32term.c:
4246 * w32select.c:
4247 * w32reg.c:
4248 * w32proc.c:
4249 * w32menu.c:
4250 * w32inevt.c:
4251 * w32heap.c:
4252 * w32font.c:
4253 * w32fns.c:
4254 * w32console.c:
4255 * w32.c:
4256 * w16select.c:
4257 * vm-limit.c:
4258 * unexsol.c:
4259 * unexec.c:
4260 * unexcw.c:
4261 * unexaix.c:
4262 * undo.c:
4263 * tparam.c:
4264 * textprop.c:
4265 * terminfo.c:
4266 * terminal.c:
4267 * termcap.c:
4268 * term.c:
4269 * syntax.c:
4270 * sound.c:
4271 * sheap.c:
4272 * search.c:
4273 * scroll.c:
4274 * region-cache.c:
4275 * regex.c:
4276 * ralloc.c:
4277 * process.c:
4278 * print.c:
b024548b
DN
4279 * nsterm.m:
4280 * nsselect.m:
4281 * nsmenu.m:
4282 * nsimage.m:
4283 * nsfont.m:
4284 * nsfns.m:
d7306fe6
DN
4285 * msdos.c:
4286 * minibuf.c:
4287 * menu.c:
4288 * marker.c:
4289 * macros.c:
4290 * keymap.c:
4291 * keyboard.c:
4292 * intervals.c:
4293 * insdel.c:
4294 * indent.c:
4295 * gtkutil.c:
4296 * ftxfont.c:
4297 * ftfont.c:
4298 * fringe.c:
4299 * frame.c:
4300 * fontset.c:
4301 * font.c:
4302 * fns.c:
4303 * floatfns.c:
4304 * filelock.c:
4305 * fileio.c:
4306 * emacs.c:
4307 * editfns.c:
4308 * dosfns.c:
4309 * doprnt.c:
4310 * doc.c:
4311 * dispnew.c:
4312 * dired.c:
4313 * dbusbind.c:
4314 * data.c:
4315 * composite.c:
4316 * coding.c:
4317 * cmds.c:
4318 * cm.c:
4319 * chartab.c:
4320 * charset.c:
4321 * character.c:
4322 * ccl.c:
4323 * category.c:
4324 * casetab.c:
4325 * casefiddle.c:
4326 * callproc.c:
4327 * callint.c:
4328 * bytecode.c:
4329 * buffer.c:
4330 * atimer.c: Include setjmp.h. (Bug#4643)
4331
fd5f21e6
SM
43322009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
4333
4c0354d7
SM
4334 Remove leftover table unibyte_to_multibyte_table.
4335 * character.c (unibyte_to_multibyte_table): Remove.
4336 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
4337 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
4338 * character.h (UNIBYTE_TO_CHAR): New macro.
4339 (MAKE_CHAR_MULTIBYTE): Use it.
4340 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
4341 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
4342 (message_dolog, set_message_1):
4343 * search.c (Freplace_match):
4344 * editfns.c (Fcompare_buffer_substrings):
4345 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
4346 (concat):
4347 * insdel.c (copy_text, count_size_as_multibyte):
4348 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
4349 * term.c (produce_glyphs):
4350 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
4351 * regex.c (RE_CHAR_TO_MULTIBYTE):
4352 * cmds.c (internal_self_insert):
4353 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
4354
fd5f21e6
SM
4355 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
4356
4418646e
DN
43572009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
4358
4359 * puresize.h (BASE_PURESIZE): Increase to 1310000.
4360
35f5c1d2
JB
43612009-10-16 Juanma Barranquero <lekktu@gmail.com>
4362
4363 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
4364
a0cd8f6b
AR
43652009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
4366
4367 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
4368 still needed under Tiger.
4369
4370 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
4371
4372 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
4373 __Apple__.
4374
4375 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
4376
01a8d3fa
KH
43772009-10-15 Kenichi Handa <handa@m17n.org>
4378
4379 * print.c (print_object): Escape a symbol like "2E10" too.
4380
bf6c75c9 43812009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
4382
4383 Cleanups and changes for 64-bit compile under Snow Leopard.
4384 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
4385
4386 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
4387
c5959062 4388 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
4389 (ns_findfonts, nsfont_list_family): Use long format in printf, and
4390 cast argument.
4391 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 4392 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
4393
4394 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
4395
4396 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
4397 where appropriate.
4398
4399 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
4400 where appropriate.
6e4780c5
JB
4401 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
4402 Use stringWithUTF8String.
bf6c75c9
AR
4403 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
4404
6e4780c5
JB
4405 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
4406 Add formal protocol mention to inheritance.
bf6c75c9
AR
4407 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
4408
6e4780c5
JB
4409 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
4410 Fix printf format.
bf6c75c9
AR
4411 (ns_query_color): Use CGFloat where appropriate.
4412 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 4413 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
4414 argument.
4415
3d87f118
AR
4416 * config.in (NS_HAVE_NSINTEGER): Drop.
4417
a95c8102
AR
4418 * dbusbind.c (dbus-method-return-internal)
4419 (dbus-method-error-internal): Use long format in printf, and cast
4420 argument.
4421
4422 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
4423 in printf, and cast argument.
4424
6873acca 4425 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
4426 cast argument.
4427
9ec6f100
GM
44282009-10-11 Glenn Morris <rgm@gnu.org>
4429
4430 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
4431
5be883cd
JD
44322009-10-08 Jan Djärv <jan.h.d@swipnet.se>
4433
4434 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
4435 menu bar with a small width so it doesn't enlarge the frame.
4436
d7a39b51
JB
44372009-10-08 Juanma Barranquero <lekktu@gmail.com>
4438
4439 * fontset.c (Fset_fontset_font): Fix typos in error messages.
4440
0c2b6f8e
GM
44412009-10-06 Glenn Morris <rgm@gnu.org>
4442
4443 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
4444 SOME_MACHINE_LISP (this enters indirectly via DOC).
4445
e02131a2
EZ
44462009-10-05 Eli Zaretskii <eliz@gnu.org>
4447
4448 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
4449
b4744254
EZ
44502009-10-04 Eli Zaretskii <eliz@gnu.org>
4451
4452 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
4453 Doc fix.
4454
dbf64827
JB
44552009-10-03 Martin Rudalics <rudalics@gmx.at>
4456
4457 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
4458
e9a0aef8
MA
44592009-10-02 Michael Albinus <michael.albinus@gmx.de>
4460
d528b1ce 4461 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
4462 used anymore outside fileio.c.
4463
4464 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
4465
64eb2b56
JB
44662009-10-01 Juanma Barranquero <lekktu@gmail.com>
4467
4468 * lisp.h (Qdelete_directory_internal):
4469 Declare, instead of Qdelete_directory.
4470
4471 * w32fns.c (Fsystem_move_file_to_trash): Use it.
4472
9d28c33e
SM
44732009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
4474
4475 * eval.c (Fcalled_interactively_p): Add `kind' argument.
4476
9d8f3bd9
MA
44772009-10-01 Michael Albinus <michael.albinus@gmx.de>
4478
9d28c33e 4479 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
4480 Fdelete_directory. It is not a command anymore. It has no file
4481 name handler.
4482
9694740b
SM
44832009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
4484
4485 * xdisp.c (get_next_display_element): Use an enum in last change.
4486
748e162f
KH
44872009-09-28 Kenichi Handa <handa@m17n.org>
4488
9694740b 4489 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
4490 unibyte_display_via_language_environment in handling
4491 Vnobreak_char_display.
4492
17efd58d
AR
44932009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
4494
4495 * nsterm.h (ns_app_name): New extern variable.
4496
4497 * nsterm.m (ns_app_name): New variable.
4498 (ns_term_init): Set and use it.
4499 (ns_term_shutdown): Use it.
4500
4501 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
4502 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
4503
4504 * nsfns.m (ns_set_name_iconic, ns_set_name)
4505 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
4506 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
4507
9694740b
SM
4508 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
4509 Remove double-casting in client_data comparison.
31c2d412 4510
3208cb35
YM
45112009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4512
4513 * keyboard.c (make_lispy_event): Remember last wheel direction.
4514 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
4515
b7d552d6
GM
45162009-09-26 Glenn Morris <rgm@gnu.org>
4517
4518 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
4519 internal.elc. Add term/pc-win.elc.
4520 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
4521 term/x-win.elc.
4522 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
4523 term/w32-win.elc.
4524 (NS_SUPPORT): New.
4525 (lisp): Add NS_SUPPORT.
4526 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
4527
4ff670a8
DR
45282009-09-25 David Reitter <david.reitter@gmail.com>
4529
4530 * nsmenu.m (EmacsMenu-clear): Recognize application menu
4531 on Mac OS X 10.6+ (bug#4513).
4532
feabfb6c
JB
45332009-09-24 Juanma Barranquero <lekktu@gmail.com>
4534
4535 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
4536 some parts of Emacs code (like font selection) don't grok them.
4537 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 4538
de59072a
AS
45392009-09-24 Andreas Schwab <schwab@redhat.com>
4540
4541 * coding.c (decode_coding_iso_2022): Fix operator precedence.
4542
a489517b
JB
45432009-09-24 Juanma Barranquero <lekktu@gmail.com>
4544
4545 * dired.c (Fdirectory_files): Fix typo in docstring.
4546
0592970c
AR
45472009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4548
4549 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
4550 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
4551 (EmacsScroller-setPosition:portion:whole:): Remove -display call
4552 under GNUstep.
4553 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
4554
4555 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
4556 glyph advancement.
4557
48e8a88b
AR
45582009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4559
4560 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 4561 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
4562
4563 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
4564 deleted (bug #4492).
4565
e14f0a78
AR
4566 * nsfont.m (Vns_reg_to_script): New lisp variable.
4567 (syms_of_nsfont): Declare it.
4568 (ns_registry_to_script): New function.
4569 (ns_get_req_script): Call it.
4570 (ns_findfonts): Don't give up on non-unicode registry.
4571
4572 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
4573
5b650faa
SM
45742009-09-20 Tom Tromey <tromey@redhat.com>
4575
4576 * eval.c (find_handler_clause): Make stack-trace-on-error work in
4577 batch mode (bug#4228).
4578
a489517b 45792009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
4580
4581 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 4582 carefully. (Bug #4339)
0bae4e09 4583
fcfe06f3
CY
45842009-09-18 Chong Yidong <cyd@stupidchicken.com>
4585
d798ba87 4586 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 4587
31642728
AR
45882009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
4589
4590 * emacs.c (inhibit_x_resources): Update doc string for NS.
4591 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 4592 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
4593
4594 * nsterm.h (ns_no_defaults): Remove.
4595
4596 * nsterm.m (ns_no_defaults): Remove.
4597 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
4598 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
4599 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
4600 don't update the NSWindow itself.
4601 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 4602 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
4603
4604 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
4605 ns_use_qd_smoothing.
4606
4607 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
4608 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 4609 (x-close-connection): Drop PSFlush() under OS X.
a489517b 4610 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 4611
8686ac71
JB
46122009-09-17 Juanma Barranquero <lekktu@gmail.com>
4613
4614 * emacs.c (inhibit_x_resources): New variable.
4615 (main) [HAVE_NS]: Don't process --quick command line option.
4616 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
4617
4618 * lisp.h (inhibit_x_resources): Declare it extern.
4619
4620 * w32reg.c (x_get_string_resource):
4621 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
4622
e227ba05
EZ
46232009-09-17 Eli Zaretskii <eliz@gnu.org>
4624
362654a6
JB
4625 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
4626 Add lisp/term/internal.elc.
e227ba05 4627
742d40e8
SM
46282009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
4629
4630 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
4631 (bug#4461).
4632
005bd5a2
DN
46332009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
4634
4635 * puresize.h (BASE_PURESIZE): Increase to 1290000.
4636
4637 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
4638 (OBJECTS_MACHINE): Remove, unused.
4639
f9af9719
SM
46402009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
4641
4642 * frame.c (x_get_resource_string): Remove unused.
4643
0307c7d2
JD
46442009-09-15 Jan Djärv <jan.h.d@swipnet.se>
4645
4646 * xterm.c (x_new_font): Call change_frame_size before calling
4647 x_set_window_size, in case frame size won't change.
4648
4649 * frame.c (x_set_font): Remove dead code.
4650
428b13d6
SM
46512009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
4652
4653 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
4654
5766c380
SM
46552009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4656
4657 * lread.c (Fload): Don't output a message after loading an obsolete
4658 package any more (done in Lisp now).
4659
2fd0161b
CY
46602009-09-12 Chong Yidong <cyd@stupidchicken.com>
4661
4662 * fns.c (syms_of_fns): Doc fix (Bug#4227).
4663
bc5e75b6
SM
46642009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4665
4666 * keymap.c (Fwhere_is_internal): Use nconc2.
4667
c31c985e
AM
46682009-09-11 Alan Mackenzie <acm@muc.de>
4669
4670 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
4671 batch mode.
4672
78012bd2
AS
46732009-09-11 Andreas Schwab <schwab@linux-m68k.org>
4674
4675 * xdisp.c (display_mode_element): Detect cycles.
4676
9d889332
SM
46772009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4678
4679 * keymap.c (where_is_internal): Don't erroneously return nil right after
4680 filling the cache.
4681 (where_is_internal_1): Fix up typo.
4682
7ab5d780
GM
46832009-09-11 Glenn Morris <rgm@gnu.org>
4684
4685 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
4686 share a common doc-string.
4687
5238a749
SM
46882009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4689
66d77eda
SM
4690 * keymap.c (get_keymap): Return the actual keymap symbol rather than
4691 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
4692
5238a749
SM
4693 * keymap.c (QCadvertised_binding): New constant.
4694 (syms_of_keymap): Initialize it.
4695 (Fwhere_is_internal): Try and use bindings from :advertised-binding
4696 if applicable.
4697
19f48442
SM
46982009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
4699
50d4ba39
SM
4700 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
4701 (parse_menu_item): Streamline since bindings are recomputed all the
4702 time anyway. Don't bother checking Vdefine_key_rebound_commands any
4703 more and don't support lmenu's menu-alias any more either.
4704
a88a5372
SM
4705 * keymap.c (where_is_internal_data): Make noindirect a boolean.
4706 (where_is_internal): Strip it down to only traverse the keymaps.
4707 Move the cache handling from Fwhere_is_internal to here.
4708 (Fwhere_is_internal): Move the handling of remapping and the choice of
4709 the best binding from where_is_internal to here.
4710 Unify the cached/noncached paths, so remapping is also handled
4711 correctly when the cache is used, and so the cache can be used to
4712 speed up remap-handling when applicable.
4713 Give preference to non-remapped bindings.
4714 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
4715 non-remapped bindings.
4716 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
4717 command remapping.
4718
19f48442
SM
4719 * xdisp.c (display_mode_element): Move list length limit from 50 to
4720 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
4721
599498c3 47222009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
4723
4724 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
4725
f9b7b5ac
SM
47262009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
4727
a53af587
JB
4728 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
4729 (Bug#4334)
4730
f9b7b5ac
SM
4731 * keymap.c (where_is_internal): Filter out shadowed remappings.
4732 Assume that where_is_internal returns unshadowed bindings to simplify
4733 the code and get rid of the gotos. Use ASIZE.
4734
04f4b72d
JD
47352009-09-04 Jan Djärv <jan.h.d@swipnet.se>
4736
4da146f2
JD
4737 * xterm.c (x_focus_changed): If we get a focusout and pointer
4738 is invisible, make it visible.
4739
04f4b72d
JD
4740 * xterm.h: Remove condition for declaration of
4741 x_*_window_to_frame.
4742
7cef7ce3
SM
47432009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
4744
4745 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
4746 initial terminal as well.
4747
a54fa5b7
JD
47482009-09-02 Jan Djärv <jan.h.d@swipnet.se>
4749
4750 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 4751 x_menubar_window_to_frame.
a54fa5b7 4752
50426a04 4753 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
4754 (XTmouse_position): Do not return valid positions
4755 for clicks in the menubar and the toolbar for Gtk+.
4756
4757 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
4758 if the widget for the event has the same top level as a frame,
4759 return the frame.
4760 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
4761 internal windows, bug #4122.
4762 (x_non_menubar_window_to_frame): Remove.
4763
5a021dd0
GM
47642009-09-02 Glenn Morris <rgm@gnu.org>
4765
4766 * buffer.c (default-major-mode): Move most of the doc from here...
4767 (major-mode): ... to here.
4768
548fe2f3
NR
47692009-08-30 Nick Roberts <nickrob@snap.net.nz>
4770
4771 * process.c (wait_reading_process_output): Keep the descriptor
4772 when pty is used by a non-child process, e.g., in I/O buffer of
4773 GDB this allows inferior to be restarted.
4774
e0840eef
EZ
47752009-08-29 Eli Zaretskii <eliz@gnu.org>
4776
4777 * xdisp.c (redisplay_internal): Remove redundant test and collapse
4778 both branches into one.
4779
82e98df4
SM
47802009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
4781
4782 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
4783 (main): Use enable-multibyte-characters rather than
4784 default-enable-multibyte-characters. Output a warning message when
4785 running a unibyte session.
4786
890617cb
YM
47872009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4788
4789 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
4790 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
4791 (copy_data_segment): Also copy __program_vars section.
4792 (copy_dyld_info) [LC_DYLD_INFO]: New function.
4793 (dump_it) [LC_DYLD_INFO]: Use it.
4794
4795 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
4796
e7adeadc
EZ
47972009-08-28 Eli Zaretskii <eliz@gnu.org>
4798
4799 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
4800 $(SRC)/buildobj.h.
4801 (buildobj.h): Renamed from $(SRC)/buildobj.h.
4802 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
4803 $(SRC)/buildobj.h.
4804 (clean): Add buildobj.h.
4805
3ed8bbdc
TZ
48062009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
4807
4808 * print.c (print_object): Set escapeflag to 1 when printing
4809 hashtable keys and values.
4810
155a6764
SM
48112009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
4812
4813 * lread.c (read_integer): Use doubles (and potentially return a float
4814 number) as we do in string-to-number.
4815 (read1): Use strtol to read integers, signal errors on strtol's
4816 overflow and use floats if strtol's output is too large for
4817 Elisp integers.
4818
877610de
EZ
48192009-08-27 Eli Zaretskii <eliz@gnu.org>
4820
4821 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
4822 (make-buildobj-SH): Fix last change.
4823 (SRC): Move to before where it's first used.
4824
ef73e7be
KH
48252009-08-27 Kenichi Handa <handa@m17n.org>
4826
550c8289
KH
4827 * process.c (send_process): Use encode_coding_object instead of
4828 encode_coding_string to perform eol-conversion even if the string
4829 is unibyte.
4830
60afa08d
KH
4831 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
4832 character.
4833
ef73e7be 4834 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 4835 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 4836
7b3a82d7
DN
48372009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
4838
5654bf63
DN
4839 * callproc.c (Fcall_process): Remove always true #if.
4840
7b3a82d7
DN
4841 * lisp.h: Replace #if 0 code for checking with text pointing to
4842 the --enable-checking configure flag.
4843
4844 * emacs.c (main): Mention the --enable-profiling configure flag
4845 instead of using CFLAGS.
4846
878bde49
KR
48472009-08-26 Ken Raeburn <raeburn@raeburn.org>
4848
4849 * Makefile.in (buildobj.h): New target.
4850 (doc.o): Depend on it.
4851 (temacs${EXEEXT}): Don't generate buildobj.lst.
4852 (mostlyclean): Delete buildobj.h, not buildobj.lst.
4853 * makefile.w32-in ($(SRC)/buildobj.h): New target.
4854 ($(BLD)/doc.$(O)): Depend on it.
4855 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
4856 provided by Eli Zaretskii.)
4857 ($(TEMACS)): Don't generate buildobj.lst.
4858 * doc.c: Include buildobj.h.
4859 (buildobj): New static variable.
4860 (Fsnarf_documentation): Use it, instead of opening and reading
4861 buildobj.lst.
4862
1574224c
MA
48632009-08-25 Michael Albinus <michael.albinus@gmx.de>
4864
4865 * dbusbind.c (Fdbus_call_method)
4866 (Fdbus_call_method_asynchronously): Use English numeric format for
4867 timeout values in doc string.
4868
d9da2f45
KH
48692009-08-25 Kenichi Handa <handa@m17n.org>
4870
ef73e7be
KH
4871 * alloc.c (mark_char_table): New function.
4872 (mark_object): Use mark_char_table for a char-table.
4873
d9da2f45
KH
4874 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
4875 (CHAR_TABLE_REF): Use it.
4876
c8edcc01
KR
48772009-08-23 Ken Raeburn <raeburn@raeburn.org>
4878
4879 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
4880 before invoking the newly build emacs to check for load-path
4881 shadowing.
4882
7763401b
GM
48832009-08-22 Glenn Morris <rgm@gnu.org>
4884
4885 * Makefile.in (bootstrap_exe): New variable.
4886 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
4887 Use ${bootstrap_exe}.
4888
729eadda
EZ
48892009-08-22 Eli Zaretskii <eliz@gnu.org>
4890
4891 * coding.h (encode_coding_string): Don't encode unibyte strings.
4892 (Bug#4047)
4893
eb4c6ace
MA
48942009-08-22 Michael Albinus <michael.albinus@gmx.de>
4895
4896 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
4897
4898 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
4899 intended as hotfix only.
4900 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
4901
36e34d1b
AR
49022009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4903
4904 * nsterm.m (ns_get_color): Update documentation properly for last
4905 change, and clean up loose ends in the code left by it. Fix
4906 longstanding bug with 16-bit hex parsing, and add support for
4907 yet another X11 format (rgb:r/g/b) for compatibility.
4908 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
4909 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
4910
f983eb8a
SM
49112009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
4912
4913 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
4914
3f56d3c6
MA
49152009-08-20 Michael Albinus <michael.albinus@gmx.de>
4916
4917 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
4918 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
4919 (xd_initialize, xd_pending_messages): Check, whether
4920 $DBUS_SESSION_BUS_ADDRESS is set.
4921
fb641d68
YM
49222009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4923
4924 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
4925
4926 * nsterm.m (ns_get_color): Remove incompatible color formats again.
4927
cf59a374
GM
49282009-08-20 Glenn Morris <rgm@gnu.org>
4929
4930 * emacs.c (system-type): Doc fix.
4931
1373f3be
SM
49322009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
4933
4934 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
4935 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
4936
058ed861
MA
49372009-08-18 Michael Albinus <michael.albinus@gmx.de>
4938
1373f3be
SM
4939 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
4940 New functions.
058ed861
MA
4941 (xd_initialize): Revert change from 2009-08-16.
4942
563a866e 49432009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
4944
4945 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 4946 font-group vector, return nil.
5fc05db0 4947
e42bdf01
CY
49482009-08-17 Chong Yidong <cyd@stupidchicken.com>
4949
4950 * process.c (status_notify): Don't perform redisplay.
4951 (Fdelete_process, list_processes_1, process_send_signal):
4952 Expliticly perform redisplay.
4953 (wait_reading_process_output): Always check process status, but
4954 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
4955
4230ab74
KR
49562009-08-17 Ken Raeburn <raeburn@raeburn.org>
4957
1373f3be 4958 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
4959 (XFLOAT_INIT): New macro for storing a float value.
4960 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
4961 * fns.c (sxhash): Copy out the value of a float in order to
4962 examine its bytes.
4963 * dbusbind.c (xd_append_arg): Likewise.
4964
4230ab74
KR
4965 * emacs.c (main): Don't call syms_of_data twice.
4966
a0645cdd
MA
49672009-08-16 Michael Albinus <michael.albinus@gmx.de>
4968
4969 * dbusbind.c (xd_initialize): Add connection file descriptor to
4970 input_wait_mask, in order to let select() detect, whether a new
4971 message has been arrived.
ca4f31ea 4972 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 4973
485db0ba
MA
49742009-08-15 Michael Albinus <michael.albinus@gmx.de>
4975
1373f3be
SM
4976 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
4977 New functions.
485db0ba
MA
4978
4979 * lisp.h (xd_pending_messages): Declare.
4980
4981 * keyboard.c (readable_events): Call xd_pending_messages.
4982
b5b98ff4
CY
49832009-08-15 Chong Yidong <cyd@stupidchicken.com>
4984
1373f3be 4985 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 4986
f8354c6e
CY
4987 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
4988
b5b98ff4
CY
4989 * buffer.c (set_buffer_internal_1)
4990 (swap_out_buffer_local_variables): Check for unbound local
4991 variables (Bug#4138).
4992
8b9fc636
EZ
49932009-08-14 Eli Zaretskii <eliz@gnu.org>
4994
4995 * process.c (create_pty): Fix last change.
4996
ce959360
CY
49972009-08-13 Chong Yidong <cyd@stupidchicken.com>
4998
4999 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
5000 (xbm_load_image): Caller changed.
64b807c9 5001 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 5002
c7baf7e9
NR
50032009-08-13 Nick Roberts <nickrob@snap.net.nz>
5004
5005 * process.c (create_pty): New function.
5006 (Fstart_process): Use it to allow Emacs to just associate a pty
5007 with the buffer. See associated change in gdb-mi.el.
5008 (list_processes_1): Deal with no program name.
5009 (start_process_unwind): Use pid == -2 to mean no process.
5010
1ac9108a
SM
50112009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
5012
5013 * cmds.c (nonundocount): New global variable.
5014 (keys_of_cmds): Initialize it.
5015 (Fself_insert_command): Use it to combine upto 20 sequential chars
5016 into a single undo entry, just like the Qself_insert_command code in
5017 keyboard.c does.
5018 Call frame_make_pointer_invisible, also like the Qself_insert_command
5019 code in keyboard.c does.
5020 * keyboard.c (command_loop_1): Use the new global nonundocount rather
5021 than its own local replacement for it.
5022
e267324c
KR
50232009-08-10 Ken Raeburn <raeburn@raeburn.org>
5024
1ac9108a 5025 * fns.c (concat): Don't re-set string length to its current value.
77437343 5026
1ac9108a
SM
5027 * coding.h (decode_coding_string, encode_coding_string):
5028 Use SBYTES macro.
f0bed503 5029
1ac9108a 5030 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
5031 (doprnt): Merge with doprnt1, discarding lispstrings code.
5032 * lisp.h (doprnt_lisp): Don't declare.
5033
416e006d
JL
50342009-08-07 Juri Linkov <juri@jurta.org>
5035
5036 * puresize.h (BASE_PURESIZE): Increase to 1270000.
5037
6f7d5780
DN
50382009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
5039
5040 * print.c (syms_of_print): Undo previous change.
5041
f19a0f5b
TZ
50422009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
5043
5044 * lread.c (read1, syms_of_lread): Read hashtables back from the
5045 readable format.
5046
5047 * print.c (print_preprocess, print_object): Print hashtables fully
5048 and readably.
5049 (syms_of_print): Provide 'hashtable-print-readable.
5050
b9173dc2
AR
50512009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5052
5053 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
5054 no family set.
5055 (nsfont_open): Handle case when entity has no family.
5056
1586503c
AR
50572009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5058
5059 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
5060 element, not a list, for match case.
5061
087048cd
KH
50622009-07-28 Kenichi Handa <handa@m17n.org>
5063
5064 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
5065 rigidly.
5066
5067 * xfont.c (xfont_list_pattern): Don't ignore the return value of
5068 font_parse_xlfd. Check font properties more rigidly.
5069
780c2506
DN
50702009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
5071
31fd7c5c
JB
5072 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
5073 bsd-common.h.
780c2506 5074
a8c0cc18
KH
50752009-07-27 Kenichi Handa <handa@m17n.org>
5076
5077 * xfaces.c (face_with_height): Call font_clear_prop.
5078
4fbe2306
CY
50792009-07-26 Chong Yidong <cyd@stupidchicken.com>
5080
111d9af3
CY
5081 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
5082
5083 * xterm.c (x_term_init): Use Qx.
5084
4fbe2306
CY
5085 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
5086
1ac9108a 5087 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
5088 (ns_get_color): Revert 2009-07-16 change.
5089
beb0b7f9
EZ
50902009-07-25 Eli Zaretskii <eliz@gnu.org>
5091
5092 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 5093 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 5094
2baf5e76
KR
50952009-07-25 Ken Raeburn <raeburn@raeburn.org>
5096
1ac9108a
SM
5097 * coding.h (decode_coding_string, encode_coding_string):
5098 Use SCHARS macro.
8890e5f5 5099
2baf5e76 5100 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 5101 (load_depth): Delete.
2baf5e76
KR
5102 (Qload_in_progress): New variable.
5103 (load_unwind): Don't reference load_depth or load_in_progress.
5104 (Fload): Likewise; specbind Qload_in_progress instead.
5105 (init_lread): Don't initialize load_depth.
5106 (syms_of_lread): Initialize and protect Qload_in_progress.
5107
1395c6f5
AR
51082009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5109
5110 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
5111
4e2f36cf
AR
51122009-07-23 Yavor Doganov <yavor@gnu.org>
5113
5114 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
5115
5dd9a6f7
AR
51162009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5117
5118 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
5119 Bugs 3792, 3720, 2402.
5120 (ns_lookup_indexed_color): Check for bad index.
5121 (ns_index_color): Init unused slot to 0.
5122 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
5123 Bug 3714, possibly 3082.
5dd9a6f7 5124
c902b920
JR
51252009-07-22 Jason Rumney <jasonr@gnu.org>
5126
1ac9108a
SM
5127 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
5128 Position IME window at cursor (Bug#2570).
c902b920
JR
5129 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
5130 (globals_of_w32fns): Dynamically load functions required above.
5131
5132 * w32term.c (w32_draw_window_cursor): Send message to reposition
5133 any IME window.
5134
090101cf
CY
51352009-07-21 Chong Yidong <cyd@stupidchicken.com>
5136
5137 * fileio.c: Revert 2009-07-16 changes.
5138 (Vauto_save_include_big_deletions): New variable.
5139 (Fdo_auto_save): Disable auto-save only if
5140 auto-save-include-big-deletions is nil.
5141
e6583e3d
CY
51422009-07-21 Chong Yidong <cyd@stupidchicken.com>
5143
5144 * xdisp.c (move_it_to): For continued lines ending in a tab, take
5145 the overflowed pixels into account (Bug#3879).
5146
ece435a5
KR
51472009-07-21 Ken Raeburn <raeburn@raeburn.org>
5148
5149 * lread.c (load_depth): New variable.
5150 (Fload, load_unwind, init_lread): Set it to the load recursion
5151 depth; set load_in_progress as a simple boolean based on the
5152 current load_depth. (Bug#3892)
5153
40b2d973
AR
51542009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5155
5156 * nsfont.m (ns_has_attribute): Remove.
5157 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
5158
10be7e0d
JL
51592009-07-18 Juri Linkov <juri@jurta.org>
5160
5161 * process.c (Fset_process_query_on_exit_flag): Mention killing
5162 a buffer in docstring.
5163
fa055055
KH
51642009-07-17 Kenichi Handa <handa@m17n.org>
5165
5166 * casetab.c (shuffle): Fix the logic of setting up the cycle.
5167
042f7b69
YM
51682009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5169
5170 * nsfns.m (Fns_set_alpha): Remove function.
5171 (syms_of_nsfns): Don't defsubr it.
5172
5173 * nsterm.m (ns_get_color): Remove incompatible color formats.
5174 (ns_color_to_lisp): Generate #rrggbb color format string.
5175
4be941e3
RS
51762009-07-16 Richard Stallman <rms@gnu.org>
5177
5178 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
5179 (Fset_buffer_auto_saved): Handle save_length = -2.
5180
4e6b227d
CY
51812009-07-16 Chong Yidong <cyd@stupidchicken.com>
5182
5183 * xterm.c (Qx_gtk_map_stock): New var.
5184
5185 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
5186 of calling intern each time.
5187
a1856973
YM
51882009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5189
5190 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
5191 does tiling.
5192
5193 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
5194
497e54d8
KH
51952009-07-14 Kenichi Handa <handa@m17n.org>
5196
72d36834
KH
5197 * font.c (font_vconcat_entity_vectors): New function.
5198 (struct font_sort_data): New member font_driver_preference.
5199 (font_compare): Check font_driver_preference.
5200 (font_sort_entities): The format of the first argument changed.
5201 (font_delete_unmatched): Likewise.
5202 (font_list_entities): The return type changed.
5203 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
5204 (font_find_for_lface): Adjuste for the above changes.
5205 Don't suppress the checking of C even if the repertory supports it.
5206 (Flist_fonts): Adjust for the above changes.
72d36834 5207
1ac9108a
SM
5208 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
5209 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
5210 Reject a font who has adstyle property that is different from a
5211 langname derived from registry property.
1ac9108a 5212 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 5213
b6046155
EZ
52142009-07-13 Eli Zaretskii <eliz@gnu.org>
5215
5216 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
5217 local copy of dirfilename.
5218
fb6b6049
KH
52192009-07-13 Kenichi Handa <handa@m17n.org>
5220
e2402a5e
KH
5221 * chartab.c (sub_char_table_ref_and_range): Fix the range check
5222 against max_char.
5223
fb6b6049
KH
5224 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
5225 calling XSYMBOL (sym).
5226
65156807
EZ
52272009-07-11 Eli Zaretskii <eliz@gnu.org>
5228
1ac9108a
SM
5229 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
5230 New function.
5231 (directory_files_internal) [WINDOWSNT]:
5232 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
5233 the filesystem of the directory is fast or slow.
5234
5235 * w32.c (logon_network_drive): Don't assume PATH is an absolute
5236 file name.
5237 (is_slow_fs): New function.
5238 (stat): Use it to determine whether to issue more system calls to
5239 get accurate file attributes, when w32-get-true-file-attributes is
5240 `local'.
5241
e0ab5fcf
JD
52422009-07-10 Jan Djärv <jan.h.d@swipnet.se>
5243
5244 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 5245 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
5246 parameter font-parameter as default to the font dialog.
5247
784ceded
KH
52482009-07-10 Kenichi Handa <handa@m17n.org>
5249
5250 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
5251
fb8edc0b
EZ
52522009-07-09 Eli Zaretskii <eliz@gnu.org>
5253
1ac9108a 5254 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 5255
fb8edc0b
EZ
5256 * w32.c (stat): Treat UNC file names as residing on remote
5257 drives. (Bug#3542)
5258
635c75b1
KH
52592009-07-09 Kenichi Handa <handa@m17n.org>
5260
5261 * fontset.c (fontset_find_font): Fix previous change.
5262
c1d5ce94
MA
52632009-07-08 Michael Albinus <michael.albinus@gmx.de>
5264
5265 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
5266 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
5267 error flag.
5268
edb61b39
KH
52692009-07-08 Kenichi Handa <handa@m17n.org>
5270
374bf7e4
KH
5271 * fontset.c (fontset_find_font): Fix the logic of handling
5272 charset_matched.
5273 (font_for_char): Delete unused var.
5274 (generate_ascii_font_name): Delete it.
5275
edb61b39
KH
5276 * coding.h (JIS_TO_SJIS2): Fix the code range check.
5277
5278 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
5279 (encode_coding_sjis): Fix the code range check.
5280
0f3f018c
CY
52812009-07-07 Chong Yidong <cyd@stupidchicken.com>
5282
5283 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
5284 (Fexpand_file_name): Copy string data properly (Bug#3772).
5285
fcaf6f3a
JD
52862009-07-07 Jan Djärv <jan.h.d@swipnet.se>
5287
5288 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
5289 first MapNotify.
5290
6809ca75
KH
52912009-07-07 Kenichi Handa <handa@m17n.org>
5292
5293 * character.h (unibyte_has_multibyte_table): Delete extern.
5294 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
5295
5296 * charset.c (Fset_charset_priority): Update charset_unibyte.
5297 (syms_of_charset): Initialize charset_unibyte.
5298
5299 * character.c (unibyte_has_multibyte_table): Delete it.
5300 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
5301 charset_unibyte.
5302 (multibyte_char_to_unibyte_safe): Likewise.
5303 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
5304
1ac9108a 5305 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
5306 (x_produce_glyphs): Likewise.
5307
5308 * .gdbinit (xcharset): Fix the treating $arg0.
5309
ad9e2d54
EZ
53102009-07-04 Eli Zaretskii <eliz@gnu.org>
5311
5312 Emulation of `getloadavg' on MS-Windows.
50426a04 5313 * w32.c: Include float.h.
ad9e2d54
EZ
5314 (g_b_init_get_native_system_info, g_b_init_get_system_times)
5315 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
5316 (get_native_system_info, get_system_times): New functions.
5317 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
5318 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
5319 (globals_of_w32): Initialize g_b_init_get_native_system_info,
5320 g_b_init_get_system_times, and num_of_processors.
5321
0a3472c7
JR
53222009-07-03 Jason Rumney <jasonr@gnu.org>
5323
5324 * w32term.c (w32_initialize): Use standard types.
5325
80904120
EZ
53262009-07-03 Eli Zaretskii <eliz@gnu.org>
5327
5328 * dired.c (Ffile_attributes): Decode user and group names by the
5329 locale's encoding. (Bug#3443)
5330
6978862d
DN
53312009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
5332
f8d23104
DN
5333 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
5334 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
5335
5336 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
5337
5338 * term.c (init_tty): Remove spurious #ifdef.
5339
6978862d
DN
5340 * m/mips.h: Mention this file is also used for netbsd.
5341 * m/pmax.h: Remove file.
5342
e044e4fc
JD
53432009-07-03 Jan Djärv <jan.h.d@swipnet.se>
5344
5345 * xterm.h (struct x_display_info): Add invisible_cursor.
5346 (struct x_output): Add current_cursor.
5347
5348 * xterm.c (XTtoggle_invisible_pointer): New function.
5349 (x_define_frame_cursor): Don't define cursor if invisible or the
5350 same as before. Set current_cursor.
5351 (x_create_terminal): Set toggle_invisible_pointer_hook.
5352
5353 * xfns.c (make_invisible_cursor): New function.
5354 (x_set_mouse_color): Call make_invisible_cursor.
5355 Set current_cursor.
5356 (x_window): Set current_cursor.
5357
5358 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
5359
5360 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
5361 inserting a character.
5362 (read_avail_input): Call frame_make_pointer_visible.
5363
5364 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
5365 (frame_make_pointer_invisible, frame_make_pointer_visible):
5366 New functions.
e044e4fc
JD
5367 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
5368
5369 * frame.h: Declare frame_make_pointer_invisible and
5370 frame_make_pointer_visible.
5371 (struct frame): Add pointer_invisible.
5372
574c8efa
JD
53732009-07-02 Jan Djärv <jan.h.d@swipnet.se>
5374
7b507248
JD
5375 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
5376 frame isn't visible.
5377 (xg_frame_resized): If width/height is -1, get size of window
5378 from X server.
5379
5380 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
5381 for MapNotify.
5382
835bdaa7 5383 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 5384 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 5385 (flush_and_sync): Reintroduce.
574c8efa 5386
3f1c6666 53872009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 5388
31fd7c5c 5389 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
5390
5391 * xterm.c (x_handle_net_wm_state): Also look for sticky.
5392 (x_term_init): Initialize Xatom_net_wm_state_sticky.
5393
5394 * frame.h: Declare Qsticky.
5395
cad9ef74
JD
5396 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
5397
5398 * nsfns.m (ns_frame_parm_handlers): Ditto.
5399
5400 * frame.c: Declare Qsticky.
5401 (frame_parms): Add sticky.
5402
5403 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
5404
5405 * xterm.h: Declare x_set_sticky.
5406
5407 * xterm.c (x_set_sticky): New function.
5408
69b16610
JD
5409 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
5410 (xg_tool_bar_menu_proxy): Attach enter/leave events to
5411 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
5412
5413 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
5414
5415 * frame.c: Qmaximized is new.
5416 (x_set_frame_parameters): Do not handle fullscreen specially.
5417 Only set width and height if explicitly set.
5418 (x_set_fullscreen): Handle Qmaximized.
5419 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
5420 (syms_of_frame): Initialize Qmaximized.
5421
1ac9108a
SM
5422 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
5423 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
5424
5425 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
5426 for Expose event. Add call to x_check_fullscreen for MapNotify event.
5427 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
5428 set gravity to NorthWestGravity when USE_GTK.
5429 (set_wm_state): New function.
31fd7c5c 5430 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
5431 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
5432 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 5433 or the case when no window manager is running. That means remove calls
3f1c6666
JD
5434 to x_real_positions and x_fullscreen_adjust.
5435
5436 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
5437 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
5438 flush_and_sync.
5439 (xg_height_changed): New function.
5440 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
5441 and gtk_window_set_policy. Set frame gravity after parsing the
5442 geometry string.
3f1c6666
JD
5443 (xg_update_frame_menubar, free_frame_menubar)
5444 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
5445 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
5446 Remove calls to xg_frame_set_char_size.
5447
fd503d99
KH
54482009-07-01 Kenichi Handa <handa@m17n.org>
5449
5450 * keyboard.c (decode_keyboard_code): New function.
5451 (tty_read_avail_input): Decode the input bytes if necessary.
5452
1ac9108a
SM
5453 * coding.c (setup_coding_system):
5454 Initialize coding->carryover_bytes to 0.
fd503d99
KH
5455 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
5456 use Qno_conversion.
5457
24ed93fb
YM
54582009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5459
5460 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
5461
99061dfc
CY
54622009-06-30 Chong Yidong <cyd@stupidchicken.com>
5463
1ac9108a 5464 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 5465
ff90fbde
JR
54662009-06-30 Jason Rumney <jasonr@gnu.org>
5467
5468 * w32term.c (w32_initialize): Use GetModuleHandle for library that
5469 is already loaded.
5470 Set user model ID if supported (bug#1849).
5471
5f445726
JM
54722009-06-29 Jim Meyering <meyering@redhat.com>
5473
5474 Remove useless if-before-xfree test.
5475 * nsfont.m (nsfont_close): Remove useless test.
5476 * term.c (delete_tty): Likewise.
5477 * w32.c (system_process_attributes): Likewise.
5478 * w32font.c (w32font_close): Likewise.
5479 * xfaces.c (x_free_gc): Likewise.
5480 * xselect.c (buffer): Likewise.
5481
b9607587
AS
54822009-06-28 Andreas Schwab <schwab@linux-m68k.org>
5483
5484 * process.c (send_process): Keep decoded string in a local
5485 variable and protect it from GC. (Bug#3521)
5486
89ba96f4
EZ
54872009-06-28 Eli Zaretskii <eliz@gnu.org>
5488
5489 * term.c (create_tty_output) [MSDOS]: #ifdef away.
5490 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
5491
098a1589
CY
54922009-06-28 Chong Yidong <cyd@stupidchicken.com>
5493
485422be
CY
5494 * xdisp.c (start_display, handle_face_prop)
5495 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
5496 (redisplay_window, try_window_id, produce_image_glyph):
5497 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 5498
098a1589
CY
5499 * xterm.c (x_update_window_begin, x_new_focus_frame)
5500 (x_scroll_bar_handle_click, handle_one_xevent)
5501 (handle_one_xevent, XTread_socket, x_focus_on_frame)
5502 (x_make_frame_visible, x_make_frame_invisible)
5503 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
5504 code chunks that are now obsolete.
5505
78c38319
MA
55062009-06-28 Michael Albinus <michael.albinus@gmx.de>
5507
5508 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
5509 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
5510 for hours, when optimzation is enabled.
5511 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
5512 (xd_read_message): Make them static.
5513
4189ed40
CY
55142009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
5515
5516 * term.c (turn_on_face): Allow simultaneously bold and dim
5517 terminal faces (Bug#3530).
5518
cd9b5e16
CY
55192009-06-27 Chong Yidong <cyd@stupidchicken.com>
5520
4e23bedb
CY
5521 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
5522
cd9b5e16
CY
5523 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
5524 truncation glyphs (Bug#3686).
5525
07cc3c35
GM
55262009-06-27 Glenn Morris <rgm@gnu.org>
5527
5528 * m/pmax.h: Restore file, with only netbsd portions.
5529
31fd7c5c 55302009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 5531
cd9b5e16 5532 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 5533
42d4a64f
KH
55342009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
5535
5536 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
5537 the arg FORCE_SYMBOL.
5538
930fe55b 55392009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
5540
5541 * fontset.c (fontset_find_font): When a usable rfont_def is found
5542 in a fallback font-group, make it the first element of the group.
5543
57ebc3fd
CY
55442009-06-24 Chong Yidong <cyd@stupidchicken.com>
5545
5546 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
5547
f084f942
KH
55482009-06-24 Kenichi Handa <handa@m17n.org>
5549
5550 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
5551 set for C.
5552 (fontset_font): Record the availability of a font for C both in
5553 the realized fontsets of the current one and the default one.
5554
2f686c87
DN
55552009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
5556
5557 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
5558 conditional, it is always defined on AIX.
5559
666e158e
MB
55602009-06-23 Miles Bader <miles@gnu.org>
5561
5562 * window.c (Vrecenter_redisplay): New variable.
5563 (syms_of_window): Initialize it.
5564 (Qtty): New extern declaration.
5565 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
5566
c6da7cd2
JM
55672009-06-23 Jim Meyering <meyering@redhat.com>
5568
1ac9108a
SM
5569 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
5570 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 5571 pointer dereferences are guaranteed to be valid.
c6da7cd2 5572
678dca3d
KH
55732009-06-23 Kenichi Handa <handa@m17n.org>
5574
74d75424
KH
5575 * emacs.c (main): Call init_font ().
5576
5577 * font.h (Vfont_log): Extern it.
5578 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
5579
5580 * font.c (font_sort_entities, font_list_entities)
5581 (font_matching_entity, font_open_entity)
5582 (font_close_object): Change font_add_log to FONT_ADD_LOG.
5583 (Vfont_log): Delete static.
5584 (font_log_env_checked): Delete this variable.
5585 (font_add_log): Don't check font_log_env_checked.
5586 (font_deferred_log): Check Vfont_log.
5587 (init_font): New function.
5588
678dca3d
KH
5589 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
5590
5591 * w32font.c: Change font_add_log to FONT_ADD_LOG.
5592
5593 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
5594
5595 * xfont.c: Change font_add_log to FONT_ADD_LOG.
5596
5597 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
5598 (face_for_char): Don't call font_deferred_log here.
5599 (font_for_char): Likewise.
5600
8a668709
CY
56012009-06-22 Chong Yidong <cyd@stupidchicken.com>
5602
9a01ee33
CY
5603 * w32term.c (x_draw_glyph_string): Use the glyph string's width
5604 rather than its background_width for drawing the overline and
5605 underline (Bug#489).
5606
5607 * xterm.c (x_draw_glyph_string): Use the glyph string's width
5608 rather than its background_width for drawing the overline and
5609 underline (Bug#489).
ec7c9926
CY
5610 (xg_default_icon_file): New variable.
5611 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
5612 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 5613
8a668709
CY
5614 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
5615 (load_overlay_strings): Remove externs.
5616 (fast_find_position): Function deleted.
5617 (mouse_face_from_buffer_pos): New function, based on
5618 fast_find_position. Correctly handle before-strings,
5619 display-strings, and after-strings (Bug#1220).
5620 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
5621
4d4c02d8
CY
56222009-06-21 Chong Yidong <cyd@stupidchicken.com>
5623
1ac9108a 5624 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
5625 (move_it_in_display_line_to, move_it_in_display_line_to)
5626 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
5627
70243478
CY
56282009-06-21 Chong Yidong <cyd@stupidchicken.com>
5629
5630 * Branch for 23.1.
5631
13087e59
JR
56322009-06-21 Jason Rumney <jasonr@gnu.org>
5633
5634 * w32term.c (keyboard_codepage): New static variable.
5635 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
5636 (w32_read_socket) [WM_CHAR]: Use it to decode character
5637 input (bug#3237).
5638 (w32_initialize): Initialize it.
5639 (codepage_for_locale): New function.
5640
4735b74e
KR
56412009-06-20 Ken Raeburn <raeburn@raeburn.org>
5642
5643 * process.c (status_message): Pass Faset index argument as a lisp
5644 object, so as to work with USE_LISP_UNION_TYPE.
5645
0e727afa
YM
56462009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5647
5648 * coding.c (Ffind_coding_systems_region_internal):
5649 Cache checked characters.
5650
cf299835
KH
56512009-06-18 Kenichi Handa <handa@m17n.org>
5652
1ac9108a 5653 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 5654
90f20d94
AS
56552009-06-18 Andreas Schwab <aschwab@redhat.com>
5656
5657 * xdisp.c (redisplay_internal): Check that the frame is still
5658 live after redisplay of its windows.
5659 (redisplay_windows): Check that the window is still live.
5660
7f1faf1c
KH
56612009-06-17 Andreas Schwab <schwab@linux-m68k.org>
5662
5663 * coding.c (detect_coding_utf_16): Fix previous change.
5664
cc13543e
KH
56652009-06-16 Kenichi Handa <handa@m17n.org>
5666
5667 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
5668 UTF-16 by checking the dispersion of Eth and Oth bytes.
5669
977b85f4
AS
56702009-06-15 Andreas Schwab <schwab@linux-m68k.org>
5671
5672 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
5673
66bd43d1
KH
56742009-06-15 Kenichi Handa <handa@m17n.org>
5675
5676 * process.c (status_message): Fix previous change. Be sure to
5677 decode a localized string.
5678
cb5ca9c5
YM
56792009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5680
5681 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
5682 add comment explaining why.
5683
ec7709ba 56842009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 5685
ec7709ba 5686 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 5687
4b7f335c
AR
56882009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
5689
5690 * nsfont.m (ns_attribute_value): Remove.
5691 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
5692 (ns_has_attribute): Shrink the normal range.
5693 (ns_findfonts): Don't worry about requested spec in determining
5694 need for synthItal.
e41820ee 5695 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 5696
73b26103
SZ
56972009-06-14 Seiji Zenitani <zenitani@mac.com>
5698
5699 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
5700
5753e4da
KH
57012009-06-11 Kenichi Handa <handa@m17n.org>
5702
5703 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
5704 overhang for the static composition case.
5705
3561b671
KH
57062009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5707
5753e4da
KH
5708 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
5709 overhang for the automatic composition case.
5710
3561b671
KH
5711 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
5712 composition case.
5713
852bbd41
CY
57142009-06-10 Chong Yidong <cyd@stupidchicken.com>
5715
5716 * xdisp.c (get_next_display_element): When handling wrap-prefix
5717 and line-prefix, treat \n as a control character (bug#3502).
5718
9903d1e6
KH
57192009-06-10 Kenichi Handa <handa@m17n.org>
5720
5721 * font.c (font_parse_family_registry): Fix for one-char foundry.
5722 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
5723
0bcbaaaa
CY
57242009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
5725
5726 * process.c (status_message): Fix handling of multibyte signal
5727 string (Bug#3499).
5728
40aa3f13
JM
57292009-06-09 Jim Meyering <meyering@redhat.com>
5730
1f80c7e2
CY
5731 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
5732 color name is missing.
40aa3f13 5733
72d51285
KH
57342009-06-09 Kenichi Handa <handa@m17n.org>
5735
5736 * charset.c (Fmap_charset_chars): In docstring, state clearly that
5737 FROM-CODE and TO-CODE are codepoints of CHARSET.
5738
c1d04d84
AR
57392009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
5740
5741 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
5742
57432009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
5744
5745 Changes to support :script/:lang/:otf in NS font driver.
5746 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
5747 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
5748 indicate not part of font driver interface, and change callers.
5749 (ns_get_family): Remove pointless null check.
5750 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
5751 ns_spec_to_descriptor, ns_descriptor_to_entity.
5752 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
5753 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
5754 (ns_spec_to_descriptor, ns_descriptor_to_entity)
5755 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
5756 (ns_get_req_script, ns_accumulate_script_ranges)
5757 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
5758 New functions.
5759 (nsfont_list, nsfont_match): Use ns_findfonts.
5760 (nsfont_open): Use font descriptor instead of traits.
5761 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
5762 (dump_glyphstring): Rename to ns_dump_glyphstring.
5763
c7eb9816
AR
5764 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
5765
c1d04d84
AR
5766 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
5767
5768 * fontset.c (fontset_from_font): Remove NS-specific code.
5769
ec7709ba 57702009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
5771
5772 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
5773 nonactive windows.
5774
31fd7c5c 57752009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 5776
1ac9108a 5777 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 5778
68852c13 57792009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
5780
5781 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
5782
6756cd1d
CY
57832009-06-07 Chong Yidong <cyd@stupidchicken.com>
5784
5785 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
5786 account for the overflowing of newlines into the last glyph on the
5787 display line (Bug#3482).
5788
28bf482a
DR
57892009-06-05 David Reitter <david.reitter@gmail.com>
5790
ec7709ba
JB
5791 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
5792 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
5793 Fns_selection_exists_p, Fns_selection_owner_p.
5794
fdb55376
JR
57952009-06-03 Jason Rumney <jasonr@gnu.org>
5796
5797 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
5798 available. (Bug#3379)
5799
05129fbe
KH
58002009-05-29 Kenichi Handa <handa@m17n.org>
5801
1ac9108a
SM
5802 * coding.c (get_translation_table):
5803 Check Venable_character_translation.
05129fbe 5804
ec7709ba 58052009-05-26 David Reitter <david.reitter@gmail.com>
15891144 5806
ec7709ba
JB
5807 * nsterm.m (ns_raise_frame): Only raise frame if visible.
5808 (x_make_frame_visible): Move frame to front rather than calling
15891144 5809 ns_raise_frame().
ec7709ba 5810 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 5811 isn't key window.
ec7709ba 5812 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
5813 drawRect may be called by NSView even if the frame is hidden.
5814
ec7709ba
JB
5815 * nsfns.m (Fx_create_frame): Follow other ports in
5816 determining visibility; default to t. Ensure async_visible is set.
15891144 5817
21f73755
EZ
58182009-05-23 Eli Zaretskii <eliz@gnu.org>
5819
5820 * dired.c (Ffile_attributes): Doc fix.
5821
34001e41
CY
58222009-05-22 Chong Yidong <cyd@stupidchicken.com>
5823
5824 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
5825
46306a17
SM
58262009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
5827
5828 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
5829 and xfont_scratch_props.
5830 (syms_of_xfont): Do it here instead.
5831 (xfont_find_ccl_program): Delete, unused.
5832 (xfont_open): Delete unused var `i'.
5833
ef6e0694
KH
58342009-05-21 Kenichi Handa <handa@m17n.org>
5835
5836 * fontset.c (Qlatin): Don't make it static.
5837
46306a17
SM
5838 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
5839 New functions.
ef6e0694
KH
5840 (xfont_scripts_cache, xfont_scratch_props): New variables.
5841 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
5842 (xfont_list_pattern): Argument changed. Callers changed.
5843 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
5844 (xfont_list): Don't reject a font spec with :script property.
5845 (xfont_has_char): Fix setting of encoding.
5846 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
5847 xfont_scratch_props.
5848
58492009-05-19 Kenichi Handa <handa@m17n.org>
5850
46306a17 5851 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
5852 Callers changed.
5853
58542009-05-18 Kenichi Handa <handa@m17n.org>
5855
5856 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
5857
ac71ced7
SM
58582009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
5859
5860 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
5861 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
5862
1c6d1051
YM
58632009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5864
5865 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
5866 (x_delete_terminal): Dissociate resource database from display and
5867 then call XrmDestroyDatabase before closing display.
5868
9b9b779c
AR
58692009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
5870
5871 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
5872 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
5873 whether selected frame is viable before raising it (based on patch
5874 by David Reitter), and improve commentary.
5875 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 5876
cccd42d5
KH
58772009-05-15 Kenichi Handa <handa@m17n.org>
5878
5879 * font.c (Ffont_spec): Check arguments.
5880
337fbd17
CY
58812009-05-14 Chong Yidong <cyd@stupidchicken.com>
5882
5883 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
5884 weight when testing attributes (Bug#3282).
5885
47a6002f
JD
58862009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5887
5888 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
5889 what we expect to get in the next ConfigureNotify event.
5890
9cb363db
YM
5891 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
5892 before Xft one (Bug#1696).
5893
b9126609
CY
58942009-05-07 David Reitter <david.reitter@gmail.com>
5895
5896 * nsfns.m (Fx_display_planes): Compute bitplanes using
5897 NSBitsPerPixelFromDepth (Bug#3207).
5898
27a69fd9
CY
58992009-05-10 Chong Yidong <cyd@stupidchicken.com>
5900
5901 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
5902
00f37552
TTN
59032009-05-10 Ulrich Mueller <ulm@gentoo.org>
5904
5905 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
5906
2d82a920
DR
59072009-05-07 David Reitter <david.reitter@gmail.com>
5908
ec7709ba
JB
5909 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
5910 Respect mouse face background.
2d82a920 5911
46b0d52d
DR
59122009-05-07 David Reitter <david.reitter@gmail.com>
5913
ec7709ba
JB
5914 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
5915 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
5916 in ns_update_begin and ns_update_end.
5917
ce1b23bb
SM
59182009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5919
5996e1b7
SM
5920 * nsfns.m (ns_get_screen): Rewrite.
5921 Don't presume selected-frame is of type `ns'.
5922
ba98e3a0
SM
5923 * font.c (font_update_drivers): Sanity fallback to avoid disabling
5924 all drivers.
5925
ce1b23bb
SM
5926 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
5927
bcda200f
YM
59282009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5929
5930 * keyboard.h (add_user_signal): Fix typo in extern.
5931
5932 * lisp.h (add_user_signal): Remove extern.
5933
5934 * unexelf.c (unexec): Consider a section to precede the .bss section
5935 if its addresses overlap that of .bss.
5936 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
5937 instead of dumping process.
5938
864660a2
SM
59392009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5940
5941 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
5942
50da4e56
SM
59432009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
5944
5945 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
5946
51520a1a
DN
59472009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
5948
5949 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
5950 any statements.
5951
409ea3a1
AS
59522009-05-02 Andreas Schwab <schwab@linux-m68k.org>
5953
59c4c60f
AS
5954 * process.c (read_process_output): Make sure the current buffer is
5955 always restored.
5956
409ea3a1
AS
5957 * coding.c (record_conversion_result): Don't modify
5958 Vlast_code_conversion_error for successful result.
5959 (alloc_destination): Don't clobber conversion result. (Bug#1650)
5960
56f00ed2
KH
59612009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
5962
5963 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 5964 (load_charset_map): Remove unnecessary code.
56f00ed2 5965
4491c9d2
DR
59662009-04-30 David Reitter <david.reitter@gmail.com>
5967
35f5b128 5968 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
5969 through f24.
5970
6970f632
CY
59712009-04-30 Chong Yidong <cyd@stupidchicken.com>
5972
5973 * xfaces.c (face_at_buffer_position): New arg base_face_id.
5974
5975 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
5976 face_at_buffer_position.
5977 (face_before_or_after_it_pos, get_next_display_element)
5978 (note_mouse_highlight): Update face_at_buffer_position call.
5979
5980 * term.c (term_mouse_highlight):
5981 * msdos.c (IT_note_mouse_highlight):
5982 * fontset.c (Finternal_char_font):
35f5b128 5983 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
5984
5985 * dispextern.h (face_at_buffer_position): Update prototype.
5986
0c616f63
KH
59872009-04-30 Kenichi Handa <handa@m17n.org>
5988
35f5b128 5989 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 5990
ad3aaf33
AS
59912009-04-29 Andreas Schwab <schwab@linux-m68k.org>
5992
5993 * callproc.c (Fcall_process): Fix GC protection. Make sure
5994 current buffer is always restored.
5995
c3c963a0
YM
59962009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5997
5998 * atimer.c (init_atimer): Also clear stopped_atimers.
5999
6000 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
6001
7e3386cb
YM
6002 * process.c (create_process): Clean up merger residues of
6003 2008-07-17 change.
6004
91f68422
CY
60052009-04-29 Ulrich Mueller <ulm@gentoo.org>
6006
6007 * lread.c (Vread_circle): New variable.
6008 (read1): Disable recursive read if Vread_circle is nil.
6009
24b34550
KH
60102009-04-29 Kenichi Handa <handa@m17n.org>
6011
6012 * fontset.h (set_default_ascii_font): Delete extern.
6013
6014 * fontset.c (set_default_ascii_font): Delete this unused function.
6015
6016 * frame.c (x_set_font): When ARG is a font-object, check if the
6017 font-object matches with the ASCII font-spec of the frame's
9c358bda 6018 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 6019
77bf07e1
AS
60202009-04-28 Andreas Schwab <schwab@linux-m68k.org>
6021
6022 * fns.c (Flocale_info): Protect vector from GC during decoding.
6023
6024 * process.c (Fstart_process): Protect argv strings from GC during
6025 encoding.
6026
2c55aacf
AS
60272009-04-27 Andreas Schwab <schwab@linux-m68k.org>
6028
6029 * sysdep.c: Include <ctype.h>.
6030
b892d3c9
DR
60312009-04-27 David Reitter <david.reitter@gmail.com>
6032
35f5b128 6033 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
6034 Remove commented-out code.
6035
9d0644c4
JB
60362009-04-26 Johan Bockgård <bojohan@gnu.org>
6037
6038 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
6039
b7053016
JR
60402009-04-25 Jason Rumney <jasonr@gnu.org>
6041
6042 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
6043
4e8231f3
YM
60442009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6045
6046 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
6047 Swap bytes in short integer if fringe bitmap width > 8.
6048
493dcf2c
KH
60492009-04-23 Kenichi Handa <handa@m17n.org>
6050
6051 * xfaces.c (Fx_list_fonts): If a font size is specified in
6052 PATTERN, set it in returned scalable fonts.
6053
401e9e57
CY
60542009-04-22 Chong Yidong <cyd@stupidchicken.com>
6055
708e05dc
CY
6056 * keyboard.c (Fset_input_meta_mode): Doc fix.
6057
6058 * dispnew.c (Fsend_string_to_terminal): Doc fix.
6059
1ac9108a 6060 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
6061
6062 * coding.c (Fterminal_coding_system): Doc fix.
6063
6064 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
6065 (Fx_display_pixel_height, Fx_display_planes)
6066 (Fx_display_color_cells, Fx_server_max_request_size)
6067 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
6068 (Fx_display_mm_height, Fx_display_mm_width)
6069 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
6070 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
6071 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
6072 (check_x_display_info): Handle terminal objects instead of
6073 terminal ids.
6074
401e9e57
CY
6075 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
6076 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
6077 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
6078 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 6079
df80c7f0
KH
60802009-04-21 Kenichi Handa <handa@m17n.org>
6081
5a8f12af 6082 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 6083 (font_score): Check AVGWIDTH too.
908567ef 6084
df80c7f0
KH
6085 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
6086 worst case.
1ac9108a
SM
6087 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
6088 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 6089
705af33f
JR
60902009-04-19 Jason Rumney <jasonr@gnu.org>
6091
6092 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 6093 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
6094
6095 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
6096 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
6097 get_phys_cursor_geometry.
6098
b71ac3dd 6099 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
6100 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
6101 using get_phys_cursor_geometry.
6102
6103 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
6104 correctly calculated.
6105
dc2933eb
JD
61062009-04-19 Jan Djärv <jan.h.d@swipnet.se>
6107
1ac9108a
SM
6108 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
6109 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
6110 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
6111 is deprecated.
6112
973e7849
AS
61132009-04-18 Andreas Schwab <schwab@linux-m68k.org>
6114
6115 * font.c (font_put_frame_data): Use xfree instead of free.
6116
314d66f4
JB
61172009-04-17 Juanma Barranquero <lekktu@gmail.com>
6118
6119 * w32font.c (Qja, Qko): Remove declarations.
6120 (syms_of_w32font): Don't DEFSYM them.
6121
cf702558
CY
61222009-04-17 Chong Yidong <cyd@stupidchicken.com>
6123
6124 * font.c (Qja, Qko): Move definitions here from ftfont.c.
6125
6126 * font.h (Qja, Qko): Extern them.
6127
6128 * ftfont.c (Qja, Qko): Remove declarations.
6129
6130 * xfont.c (Qja, Qko): Remove declarations.
6131
b50504f5
KH
61322009-04-17 Kenichi Handa <handa@m17n.org>
6133
bde25748
KH
6134 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
6135 string from a vector to handle Latin-1 characters correctly.
6136
b50504f5
KH
6137 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
6138 entity even if the cache hits.
6139
f4646fff
AS
61402009-04-16 Andreas Schwab <schwab@linux-m68k.org>
6141
6142 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 6143 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 6144
e7deaab0
AS
6145 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
6146 * lisp.h: Adjust prototypes.
6147
0a0e7d49
CY
61482009-04-16 Chong Yidong <cyd@stupidchicken.com>
6149
6150 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
6151 change (Bug#3003).
6152
3c908a57
KH
61532009-04-16 Kenichi Handa <handa@m17n.org>
6154
1ac9108a 6155 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
6156
6157 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
6158 adstyle.
6159
6160 * ftfont.c (Qja, Qko): Don't make them static.
6161 (enum ftfont_cache_for): New enum.
6162 (fc_charset_table): Undo the previous change.
6163 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
6164 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
6165 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
6166 non-scarable font, try to get AVERAGE_WIDTH.
6167 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
6168 Change ft_face_cache from a list of a hash-table. Don't check
6169 `ja' and `ko' adstyle here.
6170 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
6171 FTFONT_CACHE_FOR_CHARET.
6172 (ftfont_get_charset): Undo the previous change.
1ac9108a 6173 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
6174 (ftfont_close): Likewise.
6175 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
6176
6177 * font.c (font_sort_entites): Change the meaning of the arg
6178 BEST-ONLY. Don't optimize for VEC of lenght 1.
6179 (font_select_entity): Just return the value of font_sort_entites.
6180
6181 * xfaces.c (merge_face_vectors): Reflect font properties in
6182 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
6183 font_clear_prop if a face attribute doesn't change.
6184
3c908a57
KH
6185 * charset.h (charset_ksc5601): Extern it.
6186
6187 * charset.c (charset_ksc5601): New variable.
6188 (Fdefine_charset_internal): Set charset_ksc5601.
6189 (init_charset_once): Initialize charset_ksc5601 to -1.
6190
d65859c3
DN
61912009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
6192
6193 * fileio.c (history_delete_duplicates): Remove unused declaration.
6194
6195 * callint.c (history_delete_duplicates): New declaration.
6196 (Fcall_interactively): Remove command history duplicates when
6197 history_delete_duplicates is true.
6198
3ba010e5
EZ
61992009-04-14 Eli Zaretskii <eliz@gnu.org>
6200
6201 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
6202
06f19b91
KH
62032009-04-14 Kenichi Handa <handa@m17n.org>
6204
6205 * font.c (Ffont_info): Fix docstring. Fix the second element of
6206 the returned value (bug#2949).
6207
2cce8bfc
CY
62082009-04-14 Chong Yidong <cyd@stupidchicken.com>
6209
6210 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
6211
d156542d
KH
62122009-04-14 Kenichi Handa <handa@m17n.org>
6213
6214 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
6215 encoding charset is ascii_compatible.
6216
6217 * charset.c (Fdefine_charset_internal): Make charset
6218 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
6219 code_offset is 0, and covers all ASCII characters.
6220
86fa089e
SM
62212009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
6222
6223 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
6224 (ns_string_to_pasteboard_internal):
6225 * nsmenu.m (process_dialog):
6226 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
6227 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
6228 * lisp.h (Fx_load_color_file): Declare.
6229
a8a3728b
KH
62302009-04-13 Kenichi Handa <handa@m17n.org>
6231
1ac9108a 6232 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
6233 (font_select_entity): Suppress the code to optimize for the same
6234 kind of fonts.
6235 (font_load_for_lface): Get a font that supports at least ASCII
6236 characters.
6237
6238 * ftfont.c (Qja, Qko): New variables.
6239 (fc_charset_table): Delete uniquifier data for iso8859-1.
6240 (ftfont_get_latin1_charset): New function.
6241 (get_adstyle_property): New function.
6242 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
6243 bitmap fonts.
6244 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
6245 Delete iso-8859-1 range from the charset of fonts whose adstyle is
6246 `ko' or `ja'.
6247 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 6248 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
6249 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
6250 property.
6251 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
6252 (syms_of_ftfont): DEFSYM Qja and Qko.
6253
483670b5
KH
62542009-04-09 Kenichi Handa <handa@m17n.org>
6255
12b55765
KH
6256 * charset.c (map_charset_chars): For a charset of `superset'
6257 method, fix calculation of code range.
6258
483670b5
KH
6259 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
6260 from the list of extra properties.
6261 (font_clear_prop): Be sure to delete `:name' font property.
6262
57d3b93b
KH
62632009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6264
b4b2c2ca
YM
6265 * dispnew.c (redraw_overlapping_rows): Fix detection of
6266 overlapping for topmost and bottommost rows.
6267
1ac9108a 6268 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 6269
472c3609
JR
62702009-04-06 Jason Rumney <jasonr@gnu.org>
6271
6272 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
6273
ab193662
KH
62742009-04-06 Kenichi Handa <handa@m17n.org>
6275
6276 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
6277
6278 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
6279
0c26f026
KH
62802009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6281
6282 * ftfont.c (ftfont_open): Fix checking of the return value of
6283 FT_Load_Char. Fix setting font->underline_thickness.
6284
e173bbce
CY
62852009-04-04 Chong Yidong <cyd@stupidchicken.com>
6286
6287 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
6288 (Fterminal_parameters, Fterminal_parameter)
6289 (Fset_terminal_parameter): In doc string, refer to terminal
6290 objects rather than terminal ids.
6291
693a2698
EZ
62922009-04-04 Eli Zaretskii <eliz@gnu.org>
6293
6294 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
6295 ret_lim_data. (Bug#2867)
6296
d5221487
CY
62972009-04-03 Chong Yidong <cyd@stupidchicken.com>
6298
6299 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
6300 so they don't get wider than the window, matching 2006-01-23
6301 change to the partner function in xdisp.c (Bug#2800).
6302
223509a3
KH
63032009-04-03 Kenichi Handa <handa@m17n.org>
6304
6305 * print.c (print_object): Make each lowest sub_char_table start a
6306 new line (Bug#2866).
6307
74fcd0b1
KH
63082009-04-02 Kenichi Handa <handa@m17n.org>
6309
6310 * fontset.c (fontset_font): Record no-font when a fontset
6311 explicitly tells not to try another font-specs.
6312
c542407d
SM
63132009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
6314
6315 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
6316
e3869731
KH
63172009-03-30 Kenichi Handa <handa@m17n.org>
6318
d8d2f142
KH
6319 * fontset.c (fontset_from_font): Specify only registry in a
6320 font-spec for all characters supported by that registry.
6321
e3869731
KH
6322 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
6323 even if HAVE_M17N_FLT is not defined.
6324
5da5f805
CY
63252009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
6326
6327 * ftfont.c: Conditionalize prototyping and use of
6328 ftfont_variation_glyphs.
6329
ab226c50
SM
63302009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
6331
9628fed7
SM
6332 * frame.c (delete_frame): Work around compiler bug.
6333
6334 * editfns.c (general_insert_function): Adjust to insdel.c changes.
6335 * insdel.c (prepare_to_modify_buffer, signal_before_change):
6336 Some more EMACS_INT.
6337 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
6338
6339 * xdisp.c (dump_glyph): Fix typo.
6340
ae19ba7c
SM
6341 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
6342 (adjust_markers_gap_motion, adjust_markers_for_delete)
6343 (adjust_markers_for_insert, adjust_point)
6344 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
6345 (make_gap, copy_text, count_size_as_multibyte, insert)
6346 (insert_and_inherit, insert_before_markers)
6347 (insert_before_markers_and_inherit, insert_1)
6348 (count_combining_before, count_combining_after, insert_1_both)
6349 (insert_from_string, insert_from_string_before_markers)
6350 (insert_from_string_1, insert_from_gap, insert_from_buffer)
6351 (insert_from_buffer_1, adjust_after_replace)
6352 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
6353 (replace_range_2, del_range, del_range_1, del_range_byte)
6354 (del_range_both, del_range_2, modify_region)
6355 (prepare_to_modify_buffer, signal_before_change)
6356 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
6357 for buffer positions and sizes.
6358 * lisp.h: Adjust prototypes accordingly.
6359
6360 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
6361 (non_regular_inserted, non_regular_nbytes, read_non_regular)
6362 (Finsert_file_contents): Use EMACS_INT for buffer positions.
6363
ab226c50
SM
6364 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
6365
46dfb8fb
JD
63662009-03-27 Jan Djärv <jan.h.d@swipnet.se>
6367
6368 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
6369 lines and columns so we keep the same pixel height and width.
6370
6371 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
6372 the property _NET_WM_STATE has changed.
46dfb8fb
JD
6373 (x_handle_net_wm_state): New function to update frame parameter
6374 fullscreen.
6375 (x_term_init): Initialize atoms for _NET_WM_STATE.
6376
6377 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
6378
d347e494
SM
63792009-03-27 Kevin Ryde <user42@zip.com.au>
6380
6381 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
6382 Gpm_GetEvent as an error that justifies closing the filedescriptor.
6383 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
6384 (Fgpm_mouse_stop): Pass that new parameter.
6385 * termhooks.h (close_gpm): Adjust prototype.
6386
84db11d6
SM
63872009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
6388
c95a5008
SM
6389 * lisp.h (Fx_focus_frame): Declare.
6390
84db11d6
SM
6391 * callint.c (Fcall_interactively): For '^' just delegate the work to
6392 handle-shift-selection.
6393 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
6394
0a1958d6
CY
63952009-03-24 Chong Yidong <cyd@stupidchicken.com>
6396
0bfdff23
CY
6397 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
6398
0a1958d6
CY
6399 * data.c (Qinteractive_form): New variable.
6400 (Finteractive_form): Use it.
6401
6402 * eval.c (Fcommandp): Use Qinteractive_form.
6403
58aec0d6
JR
64042009-03-24 Jason Rumney <jasonr@gnu.org>
6405
6406 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
6407 Calculate total size precisely. Decode environment variables
6408 before substituting. (Bug#38)
6409
553dd618
KH
64102009-03-24 Kenichi Handa <handa@m17n.org>
6411
6412 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 6413 encoding (Bug#2722).
553dd618 6414
c39ea606
JD
64152009-03-23 Jan Djärv <jan.h.d@swipnet.se>
6416
6417 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
6418 that gdpy is set.
6419
bc9b2b5e
AM
64202009-03-22 Alan Mackenzie <acm@muc.de>
6421
6422 * callint.c (Finteractive): Clarify the doc string - even
6423 promptless elements need \n separators.
6424
9f995a76
JR
64252009-03-22 Jason Rumney <jasonr@gnu.org>
6426
6427 * w32term.c (syms_of_w32term): Doc fix for
6428 x-use-underline-position-properties.
6429
22749e9a
EZ
64302009-03-21 Eli Zaretskii <eliz@gnu.org>
6431
6432 * w32.c (getpwuid): Change argument type to unsigned.
6433 (struct w32_id): Change type of `rid' member to unsigned.
6434 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
6435 argument ID to unsigned. All callers changed.
6436 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
6437
e00553bf
EZ
64382009-03-20 Eli Zaretskii <eliz@gnu.org>
6439
6440 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
6441 negative, produce a float value.
6442
6443 * dired.c (make_uid, make_gid): New functions.
6444 (Ffile_attributes): Use them to avoid negative UID and GID.
6445
f761d6b6
JB
64462009-03-20 Juanma Barranquero <lekktu@gmail.com>
6447
6448 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
6449 (syms_of_keyboard) <command-hook-internal, input-method-function>:
6450 Fix typos in docstrings.
6451
d507f8d7
KH
64522009-03-19 Kenichi Handa <handa@m17n.org>
6453
6454 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
6455 changed, use font_load_for_lface to get a new font object.
6456 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
6457
6458 * frame.c (x_set_font): Handle the case that ARG is a cons.
6459
c68845e0
GM
64602009-03-19 Glenn Morris <rgm@gnu.org>
6461
6462 * fileio.c (Fsubstitute_in_file_name): Doc fix.
6463
bfa49dd1
CY
64642009-03-19 Chong Yidong <cyd@stupidchicken.com>
6465
6466 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
6467
8458d4c1
KH
64682009-03-19 Kenichi Handa <handa@m17n.org>
6469
6470 * charset.c (load_charset_map_from_file): When a mapfile can't be
6471 loaded, signal an error.
6472
78e7d1fe
EZ
64732009-03-18 Eli Zaretskii <eliz@gnu.org>
6474
6475 * dired.c (Ffile_attributes): Make sure UID and GID are always
6476 positive, even if the value is too large for a positive EMACS_INT.
6477 Doc fix.
6478
6479 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
6480
5da9fdfa
YM
64812009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6482
6483 * xmenu.c (xdialog_show): Move Fredisplay call ...
6484 (Fx_popup_dialog): ... here.
6485
7519c40d
SM
64862009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
6487
6488 * dired.c (file_name_completion): Disable the first optimization just
6489 installed, since it is not implemented correctly.
6490
2cd298e2
SM
64912009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
6492
6493 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 6494 only if the entry can affect bestmatch.
2cd298e2
SM
6495 Stop the search early, as Ftry_completion already does.
6496
48d37adf
CY
64972009-03-17 Chong Yidong <cyd@stupidchicken.com>
6498
e10c9c93 6499 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 6500
9286b16a
CY
65012009-03-15 Chong Yidong <cyd@stupidchicken.com>
6502
6503 * keyboard.c (parse_menu_item): Don't display remappings as menu
6504 equivalent bindings (Bug#788).
6505
f7b146dc
JR
65062009-03-15 Jason Rumney <jasonr@gnu.org>
6507
6508 * w32term.h (WM_EMACS_PAINT): New message.
6509 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
6510 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
6511 before passing to lisp thread. (Bug#950)
6512
f761d6b6 65132009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 6514
d93f9575
CY
6515 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
6516 variable as it was never reset.
6517 (ns_term_init): Remove initialization of Lisp-settable defaults
6518 and ns_expand_space.
6519 (-setPanelFromDefaultValues): Remove ns_expand_space.
6520 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
6521 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
6522 i.e. no additional spacing, similar to Carbon port.
6523
d93f9575
CY
6524 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
6525 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 6526
305018ec
JD
65272009-03-14 Jan Djärv <jan.h.d@swipnet.se>
6528
6529 * sound.c (alsa_configure): Remove call to deprecated
6530 snd_pcm_sw_params_set_xfer_align.
6531
f761d6b6 65322009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
6533
6534 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
6535 after clicking in a detached tool bar.
6536 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
6537
46e722a9
SM
65382009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
6539
348db3dd
SM
6540 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
6541 int/Lisp_Object mixup).
46e722a9 6542
a3d16f39
KH
65432009-03-13 Kenichi Handa <handa@m17n.org>
6544
6545 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 6546 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
6547 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
6548 (set_fontset_font): Change ARG to a vector. Handle range_list in
6549 ARG correctly.
6550 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 6551 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
6552 the above change.
6553 (fontset_from_font): Fix previous change.
fe24f56a 6554 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
6555 entry. If FONTSET is the default fontset, don't set the extra
6556 slot of the returning char-table.
6557
b066e6b6
JB
65582009-03-12 Juanma Barranquero <lekktu@gmail.com>
6559
6560 * nsfns.m (Fx_close_connection): Doc fix.
6561 (Fns_do_applescript): Reflow docstring.
6562 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
6563 (Fx_display_pixel_width, Fx_display_pixel_height)
6564 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
6565 Fix typos in docstrings.
6566 (Fns_set_alpha): Fix typos in error messages.
6567
d472514e 65682009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 6569
d472514e 6570 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
6571 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
6572 were used for such events.
6573
d472514e
JB
6574 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
6575 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 6576
d472514e 6577 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
6578 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
6579
fb930676
KH
65802009-03-11 Kenichi Handa <handa@m17n.org>
6581
ff85581a
KH
6582 * font.h (font_open_by_spec): Extern it.
6583
c50b7e98
KH
6584 * font.c (font_open_by_spec): New function.
6585 (font_open_by_name): Use font_open_by_spec.
6586
fb930676
KH
6587 * frame.c (x_set_font): When ARG is a font-object, don't alter the
6588 fontset of the frame.
6589
6590 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
6591 modify the default font of frames that use this fontset.
6592 (num_auto_fontsets): New variable.
6593 (fontset_from_font): Use num_auto_fontsets to decide a fontset
6594 name. Be sure to set FONTSET_ASCII to the correct font name.
6595 (update_auto_fontset_alist): New function.
6596
df4e8455
JB
65972009-03-11 Juanma Barranquero <lekktu@gmail.com>
6598
6599 * makefile.w32-in: Update dependencies.
6600
0a375797
AR
66012009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6602
6603 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
6604
61313fa3
SM
66052009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
6606
6607 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
6608
b55103fb
CY
66092009-03-10 Chong Yidong <cyd@stupidchicken.com>
6610
6611 * lread.c (Feval_buffer): Doc fix.
6612
dde2559c
KH
66132009-03-09 Kenichi Handa <handa@m17n.org>
6614
6615 * charset.c (Qfile_name_handler_alist): Extern it.
6616 (load_charset_map_from_file): Temporarily bind
6617 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
6618
df4e8455 66192009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 6620
47f588bb
GM
6621 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
6622 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 6623
4ddf94bd
AR
66242009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6625
4c9bdfc2
AR
6626 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
6627 (x_set_window_size): Change back to calculated method of setting
6628 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
6629 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
6630 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
6631
fe41ae9e
AR
6632 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
6633
4c9bdfc2
AR
6634 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
6635 accelerator in parens under GNUstep.
6636
825d0875
KH
66372009-03-06 Kenichi Handa <handa@m17n.org>
6638
6639 These changes are to detect incorrect composition sequence without
f3b3be74 6640 looking ahead the source. (Bug#2370)
825d0875
KH
6641
6642 * coding.h: Include "composite.h".
6643 (enum compisition_state): New enum.
6644 (struct compisition_status): New struct.
6645 (struct iso_2022_spec): New member cmp_status.
6646 (struct emacs_mule_spec): New struct.
6647 (struct coding_system): New members ctext_extended_segment_len and
6648 embedded_utf_8. Change the union member
6649 spec.emacs_mule_full_support to spec.emacs_mule.
6650
6651 * coding.c (CODING_ISO_CMP_STATUS): New macro.
6652 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 6653 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
6654 (ADD_COMPOSITION_DATA): New arg nbytes.
6655 (emacs_mule_char): New arg cmp_status.
6656 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
6657 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
6658 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
6659 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
6660 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
6661 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
6662 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
6663 (EMACS_MULE_COMPOSITION_END): New macro.
6664 (emacs_mule_finish_composition): New function.
6665 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
6666 (decode_coding_emacs_mule): Avoid long looking ahead while
6667 handling composition.
6668 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
6669 (ENCODE_COMPOSITION_RULE): New macro.
6670 (finish_composition): New function.
6671 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
6672 (DECODE_COMPOSITION_START): New implementation.
6673 (DECODE_COMPOSITION_END): Likewise.
6674 (STORE_COMPOSITION_RULE): New macro.
6675 (decode_coding_iso_2022): Avoid long looking ahead while handling
6676 composition, CTEXT extended segment, and embedded UTF-8.
6677 (setup_coding_system): For a coding of type iso-2022, reset
6678 CODING_ISO_EXTSEGMENT_LEN (coding) and
6679 CODING_ISO_EMBEDDED_UTF_8 (coding).
6680 (get_translation): Delete arguments last_block, from_nchars,
6681 to_nchars. Callers changed.
6682 (produce_chars): Don't modify charbuf. Adjusted for the change of
6683 get_translation.
98a326f7 6684 (produce_composition): Adjust for the new annotation sequence.
825d0875 6685 (handle_composition_annotation): Likewise.
98a326f7 6686 (consume_chars): Adjust for the change of get_translation.
825d0875 6687
ccbc4452
AR
66882009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
6689
4ddf94bd 6690 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 6691
988a7ddb
KH
66922009-03-05 Kenichi Handa <handa@m17n.org>
6693
6694 * font.c (font_select_entity): New function.
6695 (font_find_for_lface): Use font_select_entity to select a font.
6696
6697 * fontset.c (fontset_find_font): If a font found without
a8a3728b 6698 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
6699 font with C restriction.
6700
98a326f7 67012009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 6702
be1bce46 6703 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 6704
10ea2b82
JR
67052009-03-04 Jason Rumney <jasonr@gnu.org>
6706
2c93b248 6707 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 6708 characters that have already been read. (Bug#2569)
2c93b248 6709
10ea2b82
JR
6710 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
6711 Log an error message if check_image_size failed.
6712 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 6713 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 6714
71a0c011
EZ
67152009-03-02 Eli Zaretskii <eliz@gnu.org>
6716
6717 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
6718 when decoding process output.
6719
2f63bba8
RS
67202009-03-01 Richard M Stallman <rms@gnu.org>
6721
6722 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
6723
6724 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
6725
0a9564cb
EZ
67262009-02-28 Eli Zaretskii <eliz@gnu.org>
6727
6728 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
6729 (decode_coding_emacs_mule, decode_coding_iso_2022)
6730 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6731 (decode_coding_raw_text, decode_coding_charset)
6732 (setup_coding_system, decode_eol, decode_coding, consume_chars):
6733 Honor inhibit-eol-conversion. (Bug #2186)
6734
449148b3
JR
67352009-02-28 Jason Rumney <jasonr@gnu.org>
6736
6737 * coding.c (detect_coding_charset): If not checking latin extra,
6738 fail on characters between 0x80 and 0xA0. (Bug#2354)
6739
a4aee864
EZ
67402009-02-28 Eli Zaretskii <eliz@gnu.org>
6741
6742 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 6743 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 6744
d88bee5a
GM
67452009-02-27 Glenn Morris <rgm@gnu.org>
6746
6747 * callint.c (Finteractive): Doc fix.
6748
a808f22d
KH
67492009-02-27 Kenichi Handa <handa@m17n.org>
6750
6751 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
6752
caf8d60c
CY
67532009-02-27 Chong Yidong <cyd@stupidchicken.com>
6754
6755 * font.c (font_style_to_value): Set value for unknown symbols to
6756 100 instead of 255.
b61137ea
CY
6757 (weight_table, slant_table, width_table): Treat "unspecified" as
6758 the default value.
caf8d60c 6759
1a0de25c
JB
67602009-02-26 Juanma Barranquero <lekktu@gmail.com>
6761
6762 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
6763
8fc45744
JB
67642009-02-25 Juanma Barranquero <lekktu@gmail.com>
6765
107bd7d1
JB
6766 * lread.c (Fload): Stop checking Vloads_in_progress and signal
6767 error as soon as a recursive load is detected.
8fc45744 6768
f097e223
AR
67692009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6770
6771 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
6772 before caching.
6773
8810a12f
KH
67742009-02-24 Kenichi Handa <handa@m17n.org>
6775
6776 * fontset.c (fontset_find_font): Fix the condition for checking
6777 unavailable font.
6778
2c7d1565
GM
67792009-02-24 Glenn Morris <rgm@gnu.org>
6780
6781 * xfaces.c (Finternal_set_font_selection_order): Remove leading
6782 whitespace that confuses documentation.
6783
a20878b6
MB
67842009-02-23 Miles Bader <miles@gnu.org>
6785
6786 * process.c (Flist_system_processes, Fprocess_attributes)
6787 (syms_of_process): Rename `system-process-attributes' to
6788 `process-attributes'.
6789
b3b58c01
AS
67902009-02-22 Andreas Schwab <schwab@linux-m68k.org>
6791
1b3b981b
AS
6792 * coding.h (struct coding_system): Make safe_charsets a pointer to
6793 unsigned char.
6794 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
6795 being 255.
6796 (SAFE_CHARSET_P): Likewise.
6797 (setup_iso_safe_charsets): Properly setup safe_charsets.
6798 (Fdefine_coding_system_internal): Likewise.
6799 (setup_coding_system): Likewise. Remove unneeded casts.
6800 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
6801 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
6802 unneeded casts.
6803
b3b58c01
AS
6804 * insdel.c (del_range_2): Don't modify gap contents when called
6805 from decode_coding_object. (Bug#1809)
6806
0b6f228c
CY
68072009-02-21 Chong Yidong <cyd@stupidchicken.com>
6808
6809 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
6810 Qfont_object.
6811 (Ftype_of): Recognize font objects.
6812
6813 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
6814
6815 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
6816 moved to data.c.
6817
52f8870b
AR
68182009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6819
6820 * nsterm.m (x_make_frame_invisible): Unset async_visible,
6821 async_iconified. Based on a patch by Christian Lynbech
6822 <christian.lynbech@tieto.com>.
6823 (EmacsView-windowDidMiniaturize:): Unset async_visible.
6824
7087d5e9
GM
68252009-02-20 Glenn Morris <rgm@gnu.org>
6826
6827 * syntax.c (Fskip_chars_forward): Fix doc typo.
6828
41d2ceef
CY
68292009-02-20 Chong Yidong <cyd@stupidchicken.com>
6830
6831 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
6832
1a3b7ca6
CY
68332009-02-19 Chong Yidong <cyd@stupidchicken.com>
6834
6835 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
6836
73cce38d
KH
68372009-02-19 Kenichi Handa <handa@m17n.org>
6838
6839 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 6840 Don't overflow coding->carryover. (Bug#2370)
73cce38d 6841
a51092ee
DN
68422009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
6843
6844 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
6845
c423ecca
KH
68462009-02-18 Kenichi Handa <handa@m17n.org>
6847
6848 * font.c (font_check_otf_features): Fix handling of `nil' element.
6849 (Ffont_spec): Describe :lang and :otf in the docstring.
6850
4c1958f4
AS
68512009-02-16 Andreas Schwab <schwab@suse.de>
6852
6853 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
6854 string.
6855
5704f39a
KH
68562009-02-16 Kenichi Handa <handa@m17n.org>
6857
6858 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 6859 (Bug#1723)
5704f39a 6860
8f0085aa
CY
68612009-02-14 Chong Yidong <cyd@stupidchicken.com>
6862
a057d86a 6863 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
6864
6865 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
6866 (handle_line_prefix): Suppress wrapping of wrap prefixes.
6867
aff01dd9
EZ
68682009-02-14 Eli Zaretskii <eliz@gnu.org>
6869
6870 * msdos.c (MAX_SCREEN_BUF): New macro.
6871 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
6872 Encode the entire run of glyphs sharing the same face, instead of
6873 doing that one glyph at a time (fixes a bug with displaying
6874 double-size characters).
6875
ba301db3
AR
68762009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
6877
6878 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
6879
6880 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
6881 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 6882 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
6883
6884 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 6885 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 6886
51d861de
SM
68872009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
6888
ac146f82 6889 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
6890 invisible areas.
6891
7fed8996
JR
68922009-02-12 Jason Rumney <jasonr@gnu.org>
6893
631ea4fb
JR
6894 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
6895 (add_font_entity_to_list): Call check_face_name even when family
6896 is unspecified.
6897
cb4a3e42
JR
6898 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6899 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 6900 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 6901
7fed8996 6902 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 6903 raster fonts. (Bug#2219)
7fed8996 6904
895416e3
KH
69052009-02-12 Kenichi Handa <handa@m17n.org>
6906
6907 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
6908 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
6909 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 6910 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
6911 (find_automatic_composition): While looking forward and backward,
6912 check static composition. Fix where to stop looking forward.
6913 (composition_adjust_point): Fix checking of static composition.
6914 (Fcomposition_get_gstring): Pay attention to
1dacf998 6915 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
6916
6917 * lisp.h (fast_looking_at): Extern it.
6918
6919 * search.c (fast_looking_at): New function.
6920
51d861de 6921 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
6922 <struct glyph>.u.cmp.to.
6923 (append_composite_glyph): Likewise.
6924
51d861de 6925 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
6926 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
6927 composition.
51d861de 6928 (append_composite_glyph): Adjust for the change of
895416e3
KH
6929 <strcut glyph>.u.cmp.to.
6930
8510724d
JB
69312009-02-11 Juanma Barranquero <lekktu@gmail.com>
6932
6933 * casetab.c (init_casetab_once):
6934 * coding.c (ALLOC_CONVERSION_WORK_AREA):
6935 * font.c (font_update_lface):
6936 * fontset.c (Fnew_fontset):
6937 * ftfont.c (ftfont_drive_otf):
6938 * xfont.c (xfont_open):
6939 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
6940
294fa707
SM
69412009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
6942
6943 * fileio.c (Fwrite_region): !NILP -> CONSP.
6944
b5bfebec
AS
69452009-02-10 Andreas Schwab <schwab@suse.de>
6946
6947 * process.c (send_process): Properly relocate pointer into data
adab88bd 6948 when using encoded data. (Bug#2272)
b5bfebec 6949
cb84a2be
KH
69502009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
6951
6952 * coding.c (detect_coding_charset): Fix previous change.
6953
89e09428
JR
69542009-02-08 Jason Rumney <jasonr@gnu.org>
6955
6956 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 6957 disappeared while hourglass was displayed. (Bug #2193)
89e09428 6958
4470a277
AS
69592009-02-07 Andreas Schwab <schwab@suse.de>
6960
6961 * unexelf.c (unexec): Fix error message.
6962
3175b12a
AR
69632009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
6964
6965 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 6966 when modal window is active. (Bug #2152)
3175b12a
AR
6967 (applicationShouldTerminate:): Remove now-unneeded while loop
6968 around NSRunAlertPanel.
6969
6970 * nsmenu.m (popupSession): New file-global variable.
6971 (pop_down_menu): End the popupSession before closing dialog.
6972 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
6973 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
6974 don't query NSApp for events (just sleep instead).
6975
8434d0b8
EZ
69762009-02-07 Eli Zaretskii <eliz@gnu.org>
6977
51d861de
SM
6978 * coding.c (syms_of_coding) <translation-table-for-input>:
6979 Modify doc string to discourage use for character code unification.
8434d0b8 6980
aa82edfd
CY
69812009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6982
6983 * atimer.c (run_timers): Update pending_atimers.
6984
2d283c7c
CY
69852009-02-06 Chong Yidong <cyd@stupidchicken.com>
6986
eb306cab
CY
6987 * image.c (svg_load_image): Fix last change.
6988
2d283c7c
CY
6989 * xfns.c (Fx_create_frame): Signal an error if no font is
6990 found (Bug#2147).
6991
4d8e170e
JB
69922009-02-05 Juanma Barranquero <lekktu@gmail.com>
6993
6994 * character.c (syms_of_character) <script-representative-chars>:
6995 Fix typo in docstring.
6996
c96169a0
AR
69972009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6998
6999 * nsmenu.m (pop_down_menu): New function.
7000 (ns_popup_dialog): Call it on unwind.
7001 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
7002 call timer_check() (Bug#2154).
7003 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
7004 handling_signal is set.
7005 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
7006
31fd7c5c 7007 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
7008
7009 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
7010
7011 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
7012
51d861de
SM
7013 * keyboard.c (poll_for_input_1, handle_async_input):
7014 Set handling_signal under HAVE_NS.
c96169a0 7015
aacd8ba1
GM
70162009-02-04 Glenn Morris <rgm@gnu.org>
7017
7018 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
7019
4cb75c4b
KH
70202009-02-04 Kenichi Handa <handa@m17n.org>
7021
7022 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
7023
7024 * charset.c (Fchar_charset): New optional arg restriction.
7025
7026 * coding.h (coding_system_charset_list): Extern it.
7027
7028 * coding.c (coding_system_charset_list): New function.
7029
7030 * composite.c: Include coding.h and termhooks.h.
7031 (composition_gstring_p): Fix for the terminal case.
7032 (composition_gstring_width): Likewise.
7033 (fill_gstring_body): Likewise.
7034 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
7035 the frame.
7036 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
7037 is within a composition.
867d4bb3 7038 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
7039
7040 * term.c (encode_terminal_code): Fix handling of composition.
7041 (produce_composite_glyph): For static composition, get pixel_width
7042 from struct composition.
7043
826ba17e
AS
70442009-02-02 Andreas Schwab <schwab@suse.de>
7045
7046 * unexelf.c (unexec): Handle unaligned bss offset.
7047
8ad093db
AR
70482009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7049
7050 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
7051 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 7052
8ad093db
AR
7053 * keyboard.c (handle_interrupt): Don't call
7054 quit_throw_to_read_char() under NS.
d0a76a6e 7055
8ad093db
AR
7056 * blockinput.h: Remove NS-specific code.
7057
4d18a7a2
DN
70582009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
7059
db878925
DN
7060 * dispnew.c (window_change_signal): Don't try to get the size of a
7061 suspended tty frame.
7062 * term.c (Fresume_tty): Resize if the size has changed while the
7063 tty was suspended.
7064
4d18a7a2
DN
7065 * alloc.c (mark_stack): Properly conditionalize previous change.
7066
8984df7c
JB
70672009-01-30 Juanma Barranquero <lekktu@gmail.com>
7068
7069 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
7070 * w32term.c (w32_read_socket) [SYNC_INPUT]:
7071 Remove; this code is not used on Windows.
7072
75f4f1ac
EZ
70732009-01-30 Eli Zaretskii <eliz@gnu.org>
7074
7075 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
7076 EOLs that also has stray ^M characters.
7077
07a1e794
JB
70782009-01-30 Juanma Barranquero <lekktu@gmail.com>
7079
7080 * atimer.c (run_timers, alarm_signal_handler):
7081 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
7082 * w32inevt.c (w32_console_read_socket):
7083 * w32term.c (w32_read_socket):
7084 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
7085
a8b11cc9
CY
70862009-01-30 Chong Yidong <cyd@stupidchicken.com>
7087
7088 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
7089 Initialize it as a relative filename pattern.
7090 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
7091 (Fcall_process_region): Simplify temp file creation using
7092 temporary-file-directory.
7093
c279587b
EZ
70942009-01-29 Eli Zaretskii <eliz@gnu.org>
7095
7096 * msdos.c: Rename pending_signals to msdos_pending_signals.
7097 (sig_suspender, sigprocmask): Adjust.
7098
a8fe3242
CY
70992009-01-29 Chong Yidong <cyd@stupidchicken.com>
7100
7101 * keyboard.c (pending_signals): New var.
7102 (poll_for_input, input_available_signal, init_keyboard): Set it.
7103 (process_pending_signals): New function.
7104
7105 * lisp.h (QUIT): Check pending_signals instead of
7106 interrupt_input_pending. Use process_pending_signals.
7107
51d861de 7108 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 7109
51d861de 7110 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
7111
7112 * sysdep.c (emacs_write): Use process_pending_signals.
7113
7114 * xterm.c (XTread_socket): Update pending_signals.
7115
7116 * w32term.c (w32_read_socket): Update pending_signals.
7117
7118 * w32inevt.c (w32_console_read_socket): Update pending_signals.
7119
6570a1c4
KH
71202009-01-29 Kenichi Handa <handa@m17n.org>
7121
7122 * xftfont.c (xftfont_has_char): New function.
7123 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
7124
d72a4afa
AR
71252009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7126
7127 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
7128 under GNUstep.
7129 (ns_query_color): New declaration.
7130
7131 * nsterm.m (ns_confirm_quit): New variable.
7132 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
7133 (EmacsApp-applicationShouldTerminate:): Use it.
7134 (EmacsPrefsController): Let user set it.
7135 (ns_query_color): New function.
7136 (ns_defined_color): Use it.
7137 (ns_initialize): Drop.
7138 (ns_term_init): Add two lines from ns_initialize(), and set
7139 input_interrupt_mode to nil.
7140
7141 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 7142 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 7143
9fe78804
KH
71442009-01-28 Kenichi Handa <handa@m17n.org>
7145
7146 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
7147 (fontset_get_font_group): Remember that no font-group is specified
7148 for C.
9fe78804 7149
fa57de36
CY
71502009-01-27 Chong Yidong <cyd@stupidchicken.com>
7151
930600e9
CY
7152 * fns.c (concat): Check for string overflow (bug#1787).
7153
fa57de36
CY
7154 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
7155 Quadruple undo limits (bug#1501).
7156
7179ce7b
KH
71572009-01-27 Kenichi Handa <handa@m17n.org>
7158
7159 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
7160 directly use GT_Get_Char_index.
7161
7162 * xftfont.c (struct xftfont_info): New member `index'.
7163
7164 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 7165 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 7166
5be8fcc0
CY
71672009-01-26 Kenichi Handa <handa@m17n.org>
7168
7169 * fontset.c (fontset_find_font): Fix handling of non-cons return
7170 value of fontset_get_font_group.
7171 (fontset_font): Revert last change.
7172
19ae3e61
JR
71732009-01-26 Jason Rumney <jasonr@gnu.org>
7174
7175 * w32font.c (w32font_list_internal): Return quickly if registry is
7176 unknown. Simplify final return.
7177 (add_font_entity_to_list): Break complex logic down into more
7178 manageable chunks. Move unknown registry check to
7179 w32font_list_internal.
7180
8612b71a
AR
71812009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
7182
7183 Changes to remove Feval calls from GUI under NS.
7184
d8038940
JB
7185 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
7186 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
7187 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
7188
7189 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
7190 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
7191 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
7192 instead of NON_ASCII_KEYSTROKE_EVENT.
7193 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
7194 (EmacsApp-applicationShouldTerminate:): Query user.
7195 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
7196 instead of Feval.
7197
7198 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
7199
7200 * keyboard.c (kbd_buffer_get_event): Check for it.
7201 (keys_of_keyboard): Define lispy keys for
7202 ns-put/unput-working-text.
7203
7204 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
7205 versions.
7206 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
7207
6288ae55
CY
72082009-01-25 Chong Yidong <cyd@stupidchicken.com>
7209
7210 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 7211 setting current_buffer directly. (Bug#2044)
6288ae55 7212
289e7f8f
CY
72132009-01-24 Chong Yidong <cyd@stupidchicken.com>
7214
5ce87308 7215 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 7216 any work. (Bug#1952, bug#1990).
5ce87308 7217
64cc3cf6 7218 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 7219
b3243e6f
AR
72202009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7221
7222 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
7223 (ns_no_defaults): New declaration.
7224 (main): Use it.
e0d2e69a 7225
d900b2af 7226 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 7227
d900b2af 7228 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 7229
d900b2af
AR
7230 * nsterm.m (ns_no_defaults): New variable.
7231 (ns_initialize): Don't read defaults when ns_no_defaults.
7232 (EmacsView-readSelectionFromPasteboard:)
7233 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 7234 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
7235 (ns_dumpglyphs_stretch): New function.
7236 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 7237 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 7238
e0d2e69a
AR
7239 * nsimage.m (setPixmapData:): Set to ignore image DPI.
7240
3ac71f5d
CY
72412009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
7242
7243 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
7244 call for Sparc64.
7245
3fe53a83
AR
72462009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7247
7248 * nsfns.m:
7249 * nsgui.h:
7250 * nsmenu.m:
7251 * nsselect.m:
7252 * nsterm.h:
7253 * nsterm.m: Remove '23' comments that indicated code added during
7254 update from emacs-20 -> emacs-23.
7255
10f87c6f 72562009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
7257
7258 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 7259 ns_alternate_modifier. (Bug#1217)
a3b53a85 7260
c7cef62d
AR
7261 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
7262 Display all shortcuts, including those w/o super modifier.
7263
575fb8bd
AR
7264 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
7265
918b848b
CY
72662009-01-22 Chong Yidong <cyd@stupidchicken.com>
7267
7268 * fileio.c (Vwrite_region_post_annotation_function)
7269 (Vwrite_region_annotation_buffers): New vars.
7270 (build_annotations_unwind): Just reset
7271 Vwrite_region_annotation_buffers.
7272 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
7273 Call write-region-post-annotation-function.
7274 (build_annotations): Add to Vwrite_region_annotation_buffers if
7275 buffer changes.
7276
a39e2539
AR
72772009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7278
7279 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
7280 Tiger.
51d861de
SM
7281 * nsfns.m (ns_do_applescript):
7282 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 7283
35ed44db
AR
72842009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
7285
7286 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
7287
cbe0b5bf
AR
72882009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7289
7290 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 7291
6049d3a0
AR
7292 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
7293
7294 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
7295 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
7296 handle Ctrl-tab. (Bug#1841)
7297 (ns_get_color): Use unsigned long long for scanned hex string value.
7298 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 7299 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 7300 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 7301 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 7302 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 7303 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 7304 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 7305
d3810c21 7306 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 7307 DPI. (Bug#1316)
d3810c21
AR
7308 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
7309 values in onTiger section.
4c7077c3 7310
e301e634
CY
73112009-01-19 Chong Yidong <cyd@stupidchicken.com>
7312
7f82490b
CY
7313 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
7314 Check return value of font_spec_from_name.
64cc3cf6 7315 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
7316
7317 * font.c (font_spec_from_name): Return Qnil if font name could not
7318 be parsed.
7319 (font_parse_name): Treat a `?' character as part of an XLFD.
7320
e301e634
CY
7321 * fns.c (Fsubstring): Doc fix.
7322
1c0db158
KH
73232009-01-19 Kenichi Handa <handa@m17n.org>
7324
51d861de 7325 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
7326 (ftfont_list): Likewise.
7327
acf20901
JB
73282009-01-18 Juanma Barranquero <lekktu@gmail.com>
7329
fff4e459
JB
7330 * dbusbind.c (Fdbus_register_signal):
7331 * process.c (conv_sockaddr_to_lisp):
7332 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
7333
acf20901
JB
7334 * callproc.c (Fgetenv_internal): Doc fix.
7335
e7abcdfb
CY
73362009-01-16 Chong Yidong <cyd@stupidchicken.com>
7337
7338 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
7339 it is not even used.
7340
b60861e6
GM
73412009-01-16 Glenn Morris <rgm@gnu.org>
7342
7343 * font.c (Ffont_variation_glyphs): Silence compiler.
7344
8db52afe
JB
73452009-01-15 Juanma Barranquero <lekktu@gmail.com>
7346
7347 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
7348 Reported by David Robinow <drobinow@gmail.com>.
7349
4cddb209
KH
73502009-01-15 Kenichi Handa <handa@m17n.org>
7351
51d861de 7352 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 7353
f247f67b
JR
73542009-01-14 Jason Rumney <jasonr@gnu.org>
7355
7356 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 7357 never a fontset. (Bug#1562)
f247f67b 7358
f56a4450
KH
73592009-01-14 Kenichi Handa <handa@m17n.org>
7360
7361 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 7362 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 7363
4e99855e
CY
73642009-01-13 Chong Yidong <cyd@stupidchicken.com>
7365
7366 * font.c (font_clear_prop): If clearing the family, clear the font
7367 width index too.
7368
fff4e459 7369 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 7370
24f01470
JB
73712009-01-12 Juanma Barranquero <lekktu@gmail.com>
7372
7373 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
7374 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
7375 functions, use sizeof.
7376
a41240a3
MR
73772009-01-12 Martin Rudalics <rudalics@gmx.at>
7378
7379 * keyboard.c (read_char): Fix case where last_nonmenu_event
7380 returned a bad value with submenus. (Bug#447)
7381
944636b8
CY
73822009-01-12 Chong Yidong <cyd@stupidchicken.com>
7383
7384 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
7385 family, clear the font width index too.
7386
0dad7c6f
JR
73872009-01-11 Jason Rumney <jasonr@gnu.org>
7388
7389 * keyboard.c (cmd_error_internal): Exit when errors occur before
7390 frame creation and not in daemon mode. (Bug#1836)
7391
7c2363af
CY
73922009-01-10 Chong Yidong <cyd@stupidchicken.com>
7393
7394 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
7395 of a display vector, backtrack.
7396 (try_window_reusing_current_matrix): Check glyph type before
7397 referencing charpos member.
7398
97b1b294
EZ
73992009-01-10 Eli Zaretskii <eliz@gnu.org>
7400
7401 Fix Bug #876:
7402
7403 * coding.c (inhibit_null_byte_detection): New variable.
7404 (detect_coding, detect_coding_system): Don't pay attention to null
7405 bytes if inhibit_null_byte_detection is non-zero.
51d861de 7406 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
7407 <inhibit-iso-escape-detection>: Doc fix.
7408
4624b6e3
JR
74092009-01-09 Jason Rumney <jasonr@gnu.org>
7410
7411 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 7412 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
7413 Only report Unicode Plane 2 fonts as unicode-sip.
7414
323b840c
CY
74152009-01-09 Chong Yidong <cyd@stupidchicken.com>
7416
51d861de
SM
7417 * xfaces.c (Fx_font_family_list): Delete function.
7418 Move compatibility version to faces.el.
323b840c 7419
51d861de 7420 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 7421
eba7400d
MR
74222009-01-09 Martin Rudalics <rudalics@gmx.at>
7423
7424 * frame.c (x_set_frame_parameters): Remember requested value for
7425 fullscreen before it's reset by the parameter handler.
7426
4b09796d
GM
74272009-01-09 Glenn Morris <rgm@gnu.org>
7428
7429 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 7430 (last_command_event): ... and update all users.
4b09796d
GM
7431 (last_input_char): For clarity, rename to...
7432 (last_input_event): ... and update all users.
7433 (last-command-char, last-input-char): Move to subr.el as aliases.
7434 * cmds.c, commands.h: Update for last_command_char rename.
7435
14ccea62
CY
74362009-01-08 Chong Yidong <cyd@stupidchicken.com>
7437
51d861de 7438 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 7439
5f004711
JR
74402009-01-08 Jason Rumney <jasonr@gnu.org>
7441
7442 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
7443 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
7444 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
7445 Don't declare.
fff4e459 7446 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
7447 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
7448
b71f6f73
KH
74492009-01-07 Kenichi Handa <handa@m17n.org>
7450
50b06221 7451 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 7452 remember the coding system used for decoding in
50b06221
KH
7453 coding_system (Bug#1039).
7454
b71f6f73 7455 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 7456 breaking the loop. (Bug#870)
b71f6f73
KH
7457 (decode_coding_utf_16, decode_coding_emacs_mule)
7458 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7459 (decode_coding_charset): Likewise.
7460
56f668f7
MR
74612009-01-05 Martin Rudalics <rudalics@gmx.at>
7462
7463 * frame.c (x_set_frame_parameters): Make sure height (width) get
7464 applied when fullwidth (fullheight) is set. (Bug#1522)
7465
5da9424d
JB
74662009-01-04 Juanma Barranquero <lekktu@gmail.com>
7467
7468 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
7469 (utc_base): Declare as ULONGLONG, not long double.
7470 (convert_time_raw): Delete.
7471 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
7472 (initialize_utc_base): New function.
7473 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
7474 (convert_from_time_t): Use initialize_utc_base; compute result with
7475 64-bit arithmetic.
7476 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
7477
c4605e09
EZ
74782009-01-03 Eli Zaretskii <eliz@gnu.org>
7479
9acef61c 7480 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
7481 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
7482 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
7483 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
7484 [!subprocesses]: Define.
7485 (syms_of_process) [!subprocesses]: Intern and staticpro them.
7486 (Flist_system_processes, Fsystem_process_attributes)
7487 [!subprocesses]: Call list_system_processes and
7488 system_process_attributes instead of returning Qnil.
7489
9acef61c
JB
7490 * dosfns.c (system_process_attributes, list_system_processes):
7491 New functions.
c4605e09
EZ
7492
7493 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
7494
7495 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
7496 Don't use the default (no-op) implementation.
7497
8b7d0a16
JR
74982009-01-03 Jason Rumney <jasonr@gnu.org>
7499
a6d46bc1
JR
7500 * keyboard.c (parse_modifiers_uncached): Wheel events are
7501 clicks (bug#687).
7502
8b7d0a16
JR
7503 * w32term.c (x_query_colors, x_query_color): New functions.
7504
7505 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
7506 (svg_load_image): Cast returned pointers from dynamically loaded
7507 functions. Eliminate W32 specific code.
7508
bfe11752
DN
75092009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
7510
89e2438a
DN
7511 * nsfns.m (x_set_foreground_color, x_set_background_color)
7512 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
7513 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
7514 x_ prefix instead of ns_. Update references.
7515 (syms_of_nsfns): Add a FIXME comment.
7516
7517 * nsterm.m (x_set_cursor_type): New prototype.
7518 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
7519
bfe11752
DN
7520 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
7521 for Solaris instead of incorrectly providing Qutime and Qcutime.
7522
031da700
EZ
75232009-01-02 Eli Zaretskii <eliz@gnu.org>
7524
7525 * w32.c (process_times): Compute sum of utime and stime.
7526 (system_process_attributes): Add Qtime to the alist.
7527
7528 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
7529 and add them to the alist.
7530
7531 * process.c (top level) <Qtime, Qctime>: New variables.
7532 (syms_of_process): staticpro them.
7533 (Fsystem_process_attributes): Add their documentation to the doc
7534 string.
7535
7536 * process.h: Declare Qtime and Qctime.
7537
df23bf08
JR
75382009-01-02 Jason Rumney <jasonr@gnu.org>
7539
9acef61c 7540 * image.c (Qgobject): New symbol.
df23bf08
JR
7541 (syms_of_image): Initialize it.
7542 (init_svg_functions): Load some functions from gobject library.
7543
5bbdf7aa
DN
75442009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
7545
7546 * frame.c (make_terminal_frame): Remove redundant code and useless
7547 block.
7548
63136da6
AS
75492009-01-01 Andreas Schwab <schwab@suse.de>
7550
7551 * process.c (conv_sockaddr_to_lisp): Add workaround for
7552 getsockname bug on BSD.
7553
9ef69046
CY
75542009-01-01 Chong Yidong <cyd@stupidchicken.com>
7555
d6fafbe0
CY
7556 * xfns.c (x_create_tip_frame): Set border width of the X window.
7557
51d861de 7558 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 7559
f9c34147
JR
75602009-01-01 Jason Rumney <jasonr@gnu.org>
7561
9acef61c 7562 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
7563 Don't block input, as per earlier xterm.c changes.
7564
f5497e45
AR
75652008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
7566
7567 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
7568 (ns_appkit_version_int): New function.
7569 (x-server-version): Use ns_appkit_version_int and follow 21+
7570 convention of returning 3 integers.
7571
c19cab20
KH
75722008-12-30 Kenichi Handa <handa@m17n.org>
7573
7574 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
7575 (CHAR_SURROGATE_PAIR_P): New macro.
7576
7577 * font.h (struct font_driver): New member get_variation_glyphs.
7578
9acef61c 7579 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
7580 (Ffont_variation_glyphs): New function.
7581 (syms_of_font): Defsubr it.
7582
7583 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
7584 ftfont_variation_glyphs.
7585 (setup_otf_gstring): New function.
7586 (ftfont_drive_otf): Use it.
7587 (ftfont_shape_by_flt): Handle variation selector.
7588 (ftfont_variation_glyphs): New function.
7589
28cd591f
MR
75902008-12-30 Martin Rudalics <rudalics@gmx.at>
7591
7592 * frame.c (Vemacs_iconified): Remove.
7593
7f714baf
JR
75942008-12-30 Jason Rumney <jasonr@gnu.org>
7595
7596 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 7597 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 7598
9d2d22ab
CY
75992008-12-30 Chong Yidong <cyd@stupidchicken.com>
7600
7601 * indent.c (Fvertical_motion): Don't advance iterator if we have
7602 reseated to the desired position.
7603
7604 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
7605 checking for pos match.
7606
545312c2
KH
76072008-12-30 Kenichi Handa <handa@m17n.org>
7608
1ede3eb6
KH
7609 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
7610 just get the low 8-bit of the code.
7611
545312c2
KH
7612 * font.c (font_intern_prop): Validate str as multibyte.
7613
bd7bbf29
DN
76142008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
7615
31e0750e
DN
7616 * dispextern.h (struct face): Move lface and hash from the middle
7617 of bitfields.
7618
bd7bbf29
DN
7619 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
7620
b5672e7c
DN
76212008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
7622
7623 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
7624 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
7625 instead of intervals.h.
7626
d704470f
AS
76272008-12-26 Andreas Schwab <schwab@suse.de>
7628
7629 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
7630 cons.
7631
54b33868
MR
76322008-12-26 Martin Rudalics <rudalics@gmx.at>
7633
7634 * textprop.c (Qminibuffer_prompt): New variable.
7635 (syms_of_textprop): Initialize it.
7636 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
7637 in minibuffer-prompt face. (Bug#1662)
7638
40b615d6
JR
76392008-12-25 Jason Rumney <jasonr@gnu.org>
7640
7641 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
7642
baae5c2d
JR
76432008-12-24 Jason Rumney <jasonr@gnu.org>
7644
7645 * ralloc.c (r_alloc_reset_variable): New function.
7646
7647 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 7648 record of what points where. (Bug#716)
baae5c2d 7649
a9051c88
DN
76502008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
7651
7652 * minibuf.c (read_minibuf): Follow the non-interactive case when
7653 running as a daemon, before detaching.
7654
8b146312
AS
76552008-12-22 Andreas Schwab <schwab@suse.de>
7656
7657 * buffer.c (init_buffer): Use realloc instead of xrealloc.
7658 * gtkutil.c (free_widget_value): Use xfree instead of free.
7659
56f2de10
MR
76602008-12-22 Martin Rudalics <rudalics@gmx.at>
7661
7662 * frame.c (delete_frame): New function derived from
7663 Fdelete_frame to handle Qnoelisp value for FORCE argument.
7664 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
7665 (Fdelete_frame): Call delete_frame. Remove line from doc-string
7666 saying that FORCE non-nil doesn't run `delete-frame-functions'.
7667 * frame.h: Extern delete_frame.
7668 * window.c (window_loop):
7669 * terminal.c (delete_terminal):
7670 * xterm.c (x_connection_closed):
7671 * xfns.c (Fx_hide_tip):
9acef61c 7672 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 7673
1fc200d6
JR
76742008-12-21 Jason Rumney <jasonr@gnu.org>
7675
7676 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
7677 when character maps to .notdef character.
7678
5e252df2
SM
76792008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
7680
7681 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
7682
99b72cc4
JR
76832008-12-20 Jason Rumney <jasonr@gnu.org>
7684
7685 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 7686 a graphical frame on Windows. (Bug#1325)
99b72cc4 7687
acc49a52
JD
76882008-12-20 Jan Djärv <jan.h.d@swipnet.se>
7689
7690 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
7691
6ea15123
CY
76922008-12-20 Chong Yidong <cyd@stupidchicken.com>
7693
7694 * minibuf.c (Fread_buffer): Doc fix.
7695
b2dab6c8
JR
76962008-12-20 Jason Rumney <jasonr@gnu.org>
7697
54ea0c87 7698 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 7699 server name in UNC paths. (Bug#719)
54ea0c87 7700
b2dab6c8 7701 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 7702 charbuf. (Bug#1035)
b2dab6c8 7703
6d1921be
DN
77042008-12-19 Daniel Engeler <engeler@gmail.com>
7705
7706 * sysdep.c (serial_configure): Fix typo.
7707
53934c98
DN
77082008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
7709
7710 * sysdep.c: Include alloca.h.
f4f634e8
DN
7711 (system_process_attributes): Add implementation for Solaris.
7712
7713 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 7714
06e111a6
DN
77152008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
7716
7717 Reorganize implementation of Flist_system_processes and
7718 Fsystem_process_attributes. No functional changes.
7719 * process.c: Don't #include pwd.h, grp.h and limits.h.
7720 (Flist_system_processes): Just call list_system_processes.
7721 (Fsystem_process_attributes): Just call system_process_attributes.
7722 (procfs_list_system_processes, time_from_jiffies)
7723 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
7724 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
7725
7726 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
7727 (list_system_processes): Rename from
7728 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
7729 Provide a do nothing implementation.
7730 (system_process_attributes): Rename from
7731 procfs_list_system_processes.
7732 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 7733 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
7734
7735 * w32.c (list_system_processes): Rename from
7736 w32_list_system_processes.
7737 (system_process_attributes): Rename from
7738 w32_system_process_attributes.
7739
7740 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
7741
7742 * process.h (w32_list_system_processes)
7743 (w32_system_process_attributes): Remove.
362654a6
JB
7744 (list_system_processes, system_process_attributes):
7745 New prototypes.
06e111a6 7746
6a705b23
KH
77472008-12-19 Kenichi Handa <handa@m17n.org>
7748
7749 * xfont.c (xfont_decode_coding_xlfd): New function.
7750 (xfont_encode_coding_xlfd): New function.
7751 (xfont_list_pattern): Decode XLFD by iso-8859-1.
7752 (xfont_list): Decode and encode XLFD by iso-8859-1.
7753 (xfont_match): Likewise.
7754 (xfont_list_family): Likewise.
7755 (xfont_open): Likewise.
7756
d66c0241 7757 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
7758 names are utf-8.
7759
d66c0241 7760 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
7761 names are utf-8.
7762
5a130941
JD
77632008-12-18 Jan Djärv <jan.h.d@swipnet.se>
7764
7765 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
7766 changed.
bfd20325
JD
7767 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
7768 clicked on a detached tool bar button.
5a130941 7769
fd95644b
DN
77702008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
7771
7772 * emacs.c (main): Print and error and exit when no data is read
7773 from the pipe.
7774
e6eee6ae
JR
77752008-12-17 Jason Rumney <jasonr@gnu.org>
7776
7777 * w32font.c (w32font_has_char): Always return -1.
7778
a35dd56b
KH
77792008-12-16 Kenichi Handa <handa@m17n.org>
7780
7781 * font.c (font_open_entity): Fix previous change.
7782
0e3635c2
DN
77832008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
7784
7785 * process.c: Include <limits.h>.
7786
d4835507 77872008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
7788
7789 * font.c (font_update_drivers): Fix mistake in reconstructing the
7790 driver list.
7791
77922008-12-16 Chong Yidong <cyd@stupidchicken.com>
7793
7794 * font.c (font_clear_cache): Fix format of font cache data.
7795
e2cbc401
CY
77962008-12-15 Chong Yidong <cyd@stupidchicken.com>
7797
7798 * xftfont.c (xftfont_open): Free Xft font pattern if
7799 XftFontOpenPattern fails.
7800
7801 * xterm.c (x_free_frame_resources): Remove extraneous call to
7802 free_frame_faces.
7803
b131d535
CY
78042008-12-13 Chong Yidong <cyd@stupidchicken.com>
7805
7806 * xterm.c (x_delete_display): Move xim_close_dpy call to
7807 x_delete_terminal.
7808 (x_delete_terminal): Call xim_close_dpy.
7809
e6df5336
JR
78102008-12-13 Jason Rumney <jasonr@gnu.org>
7811
7812 * w32font.c (intern_font_name): New function.
7813 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
7814 (w32font_open_internal, Fx_select_font): Decode font name.
7815 (fill_in_logfont, list_all_matching_fonts): Encode font name.
7816
7817 * w32font.h (intern_font_name): Declare new function.
7818
7819 * w32uniscribe.c (add_opentype_font_name_to_list):
7820 Use intern_font_name.
7821
20d68145
CY
78222008-12-13 Chong Yidong <cyd@stupidchicken.com>
7823
9f2554de
CY
7824 * frame.c (Fdelete_frame): Call free_font_driver_list.
7825
3d9bec9a
CY
7826 * font.c (free_font_driver_list): Implement missing function.
7827
20d68145
CY
7828 * w32term.c (w32_term_init): Don't initialize the image cache
7829 here; it will be done in init_frame_faces.
7830
7831 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
7832 (struct x_display_info): Remove unused member null_pixel. New
7833 member xim_callback_data.
7834
7835 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
7836 (xim_initialize): Save pointer to callback function data.
7837 (xim_close_dpy): Free callback function data. Call XCloseIM,
7838 reverting 2008-11-04 change by David Smith.
7839 (x_term_init): Don't initialize the image cache here; it will be
7840 done in init_frame_faces. Remove ancient "null_pixel" cruft.
7841 (x_delete_display): Free x_dnd_atoms member.
7842
96f9306b
KH
78432008-12-13 Kenichi Handa <handa@m17n.org>
7844
6dec9044
JB
7845 * font.c (font_rescale_ratio): Moved from xfaces.c.
7846 Argument type changed. Handle a font-spec too.
96f9306b 7847 (font_score): Check Vface_font_rescale_alist.
6dec9044 7848 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
7849
7850 * xfaces.c (font_rescale_ratio): Moved to font.c.
7851
8d5b4964
CY
78522008-12-13 Chong Yidong <cyd@stupidchicken.com>
7853
7854 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
7855
e6df5336
JR
78562008-12-12 Jason Rumney <jasonr@gnu.org>
7857
7858 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
7859 Vwindow_system_version to the real w32 major version.
7860
97c6058a
DN
78612008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
7862
7863 * term.c (init_tty): Move setting the terminal name before the
7864 potential user: maybe_fatal.
7865
ec4e88d7
CY
78662008-12-11 Chong Yidong <cyd@stupidchicken.com>
7867
d4835507
JB
7868 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
7869 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 7870
b4233ec9
JR
78712008-12-11 Jason Rumney <jasonr@gnu.org>
7872
8ec71e23 7873 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 7874 SYMBOL_CHARSET. (Bug#547)
8ec71e23 7875
b4233ec9 7876 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 7877 size for surrogates. (Bug#1096, bug#872)
b4233ec9 7878
011a0143
JB
78792008-12-11 Juanma Barranquero <lekktu@gmail.com>
7880
7881 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
7882
3c309f34
JB
78832008-12-11 Juanma Barranquero <lekktu@gmail.com>
7884
7885 * process.c (Fsystem_process_attributes, syms_of_process):
7886 Fix typo in name of Ssystem_process_attributes.
7887 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
7888
fedc6ab5
JB
78892008-12-11 Juanma Barranquero <lekktu@gmail.com>
7890
7891 * syntax.c (Fmodify_syntax_entry): Doc fix.
7892
ba3de0e8
JB
78932008-12-10 Juanma Barranquero <lekktu@gmail.com>
7894
7895 * font.c (Ffont_spec): Move usage to end of docstring.
7896
174f1c74
JR
78972008-12-10 Jason Rumney <jasonr@gnu.org>
7898
7899 * w32font.c (Qcham): New symbol.
7900 (font_supported_scripts): Add cham, and comments for other new
7901 scripts in bitfield from OpenType spec.
9d32f818
JR
7902 (add_font_entity_to_list): Limit unicode-sip fonts to those that
7903 contain characters beyond the bmp.
174f1c74 7904
7b649478
KH
79052008-12-10 Kenichi Handa <handa@m17n.org>
7906
7907 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 7908 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
7909 Qunicode_sip.
7910
2133e2d1
JB
79112008-12-10 Juanma Barranquero <lekktu@gmail.com>
7912
7913 * coding.c (QCdefault_char): Rename from QCdefalut_char.
7914 (Fcoding_system_put): Use QCdefault_char.
7915 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
7916
9af886ee
CY
79172008-12-09 Chong Yidong <cyd@stupidchicken.com>
7918
74d819eb
CY
7919 * xftfont.c (syms_of_xftfont): Fix typo.
7920
4ccfa1c0 7921 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 7922
7c19d3ae
DN
79232008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
7924
7925 * emacs.c (main): Close daemon_pipe on exec.
7926
567826bb
CY
79272008-12-08 Chong Yidong <cyd@stupidchicken.com>
7928
7929 * termchar.h (struct tty): New members termcap_term_buffer and
7930 termcap_strings_buffer.
7931
7932 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 7933 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
7934 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
7935 All callers changed.
7936 (init_tty): Store termcap data and string buffers in new struct
7937 tty members termcap_term_buffer and termcap_strings_buffer.
7938 (delete_tty): Free them.
4ccfa1c0 7939 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 7940
aa96c42b
SZ
79412008-12-07 Seiji Zenitani <zenitani@mac.com>
7942
7943 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 7944 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 7945
b7e1d896
CY
79462008-12-06 Chong Yidong <cyd@stupidchicken.com>
7947
7948 * coding.c (make_conversion_work_buffer): Disable buffer
7949 modification hooks in the work buffer.
7950
b5ec91a5
EZ
79512008-12-05 Eli Zaretskii <eliz@gnu.org>
7952
7953 * process.c (procfs_system_process_attributes): If `nread' has a
7954 negative value, assign zero to it.
7955
a5d2a52b
CY
79562008-12-05 Chong Yidong <cyd@stupidchicken.com>
7957
68c5540b 7958 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 7959
7bf1bb21
KH
79602008-12-05 Kenichi Handa <handa@m17n.org>
7961
7962 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
7963 second character is a combining character.
7964
2fdc7d00
EZ
79652008-12-05 Eli Zaretskii <eliz@gnu.org>
7966
7967 * process.c (procfs_system_process_attributes): Don't use cmd,
7968 cmdsize, and q without initializing them first.
7969
bf6bfba8
JR
79702008-12-04 Jason Rumney <jasonr@gnu.org>
7971
7972 * w32font.c (w32font_draw): Initialize orig_clip before getting
7973 it, and delete it when finished.
7974
a3b1a468
DN
79752008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
7976
7977 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
7978 case when running as a daemon before detaching.
7979
8b8be8eb
JB
79802008-12-03 Juanma Barranquero <lekktu@gmail.com>
7981
805f2638 7982 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 7983
b1bde622
KH
79842008-12-03 Kenichi Handa <handa@m17n.org>
7985
e500c47d
KH
7986 * font.c (font_at): Set `multibyte' at first.
7987
ca516334
KH
7988 * coding.c (decode_coding_charset): Check type of an element of
7989 vector VALIDS.
7bf1bb21 7990 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 7991
4ccfa1c0 7992 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
7993 (font_for_char): Likewise.
7994
1e5ecd37
CY
79952008-12-03 Chong Yidong <cyd@stupidchicken.com>
7996
d5b01609 7997 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
7998 (font_update_lface): Handle fonts with corrupted size specs,
7999 i.e. non-int and non-float.
d5b01609 8000
11e3a6e4 8001 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 8002 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 8003 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 8004
ab06788b
CY
8005 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
8006
1e5ecd37 8007 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 8008 underline_minimum_offset for underline position.
1e5ecd37 8009
63c125ab
DN
80102008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
8011
8012 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
8013
8014 * character.c (c_string_width): Specify the type for LEN.
8015
3a8406e1
KH
80162008-12-03 Kenichi Handa <handa@m17n.org>
8017
4ccfa1c0 8018 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 8019 (decode_coding_utf_8): Likewise.
4ccfa1c0 8020 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 8021 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 8022
651df7d9
CY
80232008-12-02 Chong Yidong <cyd@stupidchicken.com>
8024
8025 * keyboard.c (make_lispy_position): Only use PT if the selected
8026 window is current.
8027
1f625c6c
AS
80282008-12-02 Andreas Schwab <schwab@suse.de>
8029
f7741ce9
AS
8030 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
8031
1f625c6c
AS
8032 * doprnt.c (doprnt1): Fix size of charbuf.
8033
92bc2678
CY
80342008-12-02 Chong Yidong <cyd@stupidchicken.com>
8035
8036 * keyboard.c (timer_check): Revert last change.
8037
93b9e8cc
JB
80382008-12-02 Juanma Barranquero <lekktu@gmail.com>
8039
8040 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
8041
fd7a37d5
JB
80422008-12-01 Juanma Barranquero <lekktu@gmail.com>
8043
8044 * makefile.w32-in: Update dependencies.
8045 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
8046
c115043b
AS
80472008-12-01 Andreas Schwab <schwab@suse.de>
8048
8049 * font.c (register_font_driver): Use xmalloc.
8050 (font_put_frame_data): Likewise.
8051
f5668d2a
CY
80522008-12-01 Chong Yidong <cyd@stupidchicken.com>
8053
860d96be
CY
8054 * xfaces.c (realize_x_face): Make abort condition clearer.
8055
f5668d2a
CY
8056 * gtkutil.c (update_frame_tool_bar): Initialize variable.
8057
379c17e7
CY
80582008-11-30 Chong Yidong <cyd@stupidchicken.com>
8059
8060 * keyboard.c (timer_check): After a timer runs, ensure that the
8061 selected window's buffer is current.
8062
35f36d65
JB
80632008-11-30 Juanma Barranquero <lekktu@gmail.com>
8064
f952c61c
JB
8065 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
8066 It was accidentally restored by the Unicode merge.
8067
35f36d65
JB
8068 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
8069
b23077df
JB
80702008-11-29 Juanma Barranquero <lekktu@gmail.com>
8071
8072 * w32proc.c: Include "coding.h".
8073 (Fw32_short_file_name): Encode filename passed to Windows API.
8074 (Fw32_long_file_name): Encode filename passed to Windows API and
8075 decode back the result. (Bug#1433)
8076
b8ebe9dd
KH
80772008-11-29 Kenichi Handa <handa@m17n.org>
8078
8cc53f96
KH
8079 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
8080 not before accessing it.
8081
b8ebe9dd
KH
8082 * charset.c (Fdefine_charset_internal): After calculating
8083 min_char, max_char, and fastmap, copy the charset structure again.
8084 (encode_char): Fix the previous change.
8085
59bc82c0
SZ
80862008-11-28 Seiji Zenitani <zenitani@mac.com>
8087
8088 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
8089
8090 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
8091
8092 * nsterm.m (x_set_frame_alpha): New function.
8093
32247e3d
EZ
80942008-11-27 Eli Zaretskii <eliz@gnu.org>
8095
8096 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
8097
b003e5ff
JB
80982008-11-27 Juanma Barranquero <lekktu@gmail.com>
8099
8100 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
8101 pointer to check_face_name.
8102
708550f5
KH
81032008-11-27 Kenichi Handa <handa@m17n.org>
8104
8105 * category.h (SET_CATEGORY_SET): Call set_category_set.
8106 (set_category_set): Extern it.
8107
8108 * category.c (hash_get_category_set): New function.
8109 (Fmodify_category_entry): Adjusted for the change of
8110 char_table_ref_and_range. Call hash_get_category_set to get a
8111 category set to store in the table.
8112
8113 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
8114 Funify_charset.
8115
2ae37cf0 8116 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
8117 (DECODE_CHAR): Check if the decoder vector is ready.
8118 (ENCODE_CHAR): Check if the encoder char-table is ready.
8119 (maybe_unify_char): Extern it.
8120
8121 * charset.c (Vchar_unified_charset_table): Delete it.
8122 (inhibit_load_charset_map): New variable.
8123 (temp_charset_work): New variable.
8124 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
8125 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
8126 New macros.
8127 (load_charset_map): Meaning of control_flag changed. If
8128 inhibit_load_charset_map is nonzero, setup a table in
8129 temp_charset_work.
8130 (load_charset): New argument control_flag.
8131 (map_charset_for_dump): New function.
8132 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
8133 map_charset_for_dump.
8134 (Fdefine_charset_internal): If the charset method is MAP, load
8135 mapping tables by calling load_charset.
8136 (Funify_charset): Don't load a mapping table but directly set
8137 Vchar_unify_table.
8138 (maybe_unify_char): New function.
8139 (decode_char): Don't handle the deleted method MAP_DEFERRED.
8140 Handle the case of inhibit_load_charset_map being nonzero.
8141 (encode_char): Don't handle the deleted method MAP_DEFERRED.
8142 Handle the case of inhibit_load_charset_map being nonzero.
8143 (Fclear_charset_maps): Just free temp_charset_work.
8144 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
8145 variable.
8146
8147 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
8148 change of char_table_ref_and_range.
8149 (char_table_ref_and_range): Change the meaning of argument FROM
8150 and TO. Now the caller must provide initial values for *FROM
8151 and *TO.
8152
8153 * fontset.c (fontset_add): Adjusted for the change of
8154 char_table_ref_and_range.
8155 (fontset_get_font_group): Likewise.
8156 (Ffontset_info): Likewise.
8157
8158 * keymap.c (describe_vector): Adjusted for the change of
8159 char_table_ref_and_range. For char-table, put boundary between
8160 non-ASCII and 8-bit characters.
8161
8162 * print.c (print_object): For bool-vector, delete unnecessary
8163 check of ASCII_BYTE_P.
8164
9196133b
JR
81652008-11-26 Jason Rumney <jasonr@gnu.org>
8166
8167 * w32font.c (w32font_open_internal): Don't include external
9acef61c 8168 leading in font height. (Bug#879)
9196133b 8169
9f688acf
GM
81702008-11-26 Glenn Morris <rgm@gnu.org>
8171
8172 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
8173 redefinition with ifdef. (Bug#1383)
8174
90d19aff
AR
81752008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8176
8177 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
8178
4ccfa1c0 81792008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
8180
8181 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
8182 New EmacsView methods.
8183 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
8184 Fixes bug #1048,1357,1414.
8185
81862008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8187
8188 Fix bug #1362.
8189 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
8190 is not an indexed color.
8191 * nsterm.m (free_indexed_color): Add argument checking.
8192 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
8193
e7d5ecb3
CY
81942008-11-24 Chong Yidong <cyd@stupidchicken.com>
8195
8196 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
8197 Document confirm-after-completion value for
8198 minibuffer-completion-confirm.
8199
c285743c
JR
82002008-11-24 Jason Rumney <jasonr@gnu.org>
8201
8202 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
8203 warning.
8204
b0857706
JR
82052008-11-23 Jason Rumney <jasonr@gnu.org>
8206
8207 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
8208 restored before returning.
8209
8210 * w32font.c (check_face_name): New function.
8211 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 8212 fonts. (Bug#642)
b0857706 8213
ee50ff07
MR
82142008-11-22 Martin Rudalics <rudalics@gmx.at>
8215
8216 * buffer.c (Fswitch_to_buffer): Reword and mention new option
8217 confirm-nonexistent-file-or-buffer in doc-string.
8218
b8ff72fa
SM
82192008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
8220
8221 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
8222 Fix copy/paste typo. Add checks.
8223
cee53ed4
KH
82242008-11-21 Kenichi Handa <handa@m17n.org>
8225
8226 * coding.c (detect_coding_iso_2022): Reject invalid composition
8227 sequence.
8228 (DECODE_COMPOSITION_START): If the current source is the last
8229 block, and the current composition doesn't end, regard this
8230 sequence as invalid.
8231 (decode_coding_iso_2022): Handle invalid composition sequence.
8232
f6ef1e65
MR
82332008-11-20 Martin Rudalics <rudalics@gmx.at>
8234
8235 * window.c (coordinates_in_window): Don't return
8236 ON_VERTICAL_BORDER for the rightmost position of a mode/header
8237 line when the window is not the rightmost one. (Bug#1372)
8238
e08b1705
MR
82392008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
8240
8241 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
8242
ad98e89f
EZ
82432008-11-15 Eli Zaretskii <eliz@gnu.org>
8244
8245 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
8246 and bright_bg if noninteractive is non-zero.
8247
fb098a4b
CY
82482008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8249
8250 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
8251 x_draw_glyph_string_background.
8252
8253 * w32term.c (x_draw_glyph_string): Likewise.
8254
ce952b6e
CY
82552008-11-15 Chong Yidong <cyd@stupidchicken.com>
8256
8257 * xterm.c (x_draw_glyph_string): Stop drawing the background of
8258 the next glyph string once past the overhang width.
8259
8260 * nsterm.m (ns_draw_glyph_string): Likewise.
8261
8262 * w32term.c (x_draw_glyph_string): Likewise.
8263
26ea7079
CY
82642008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
8265
8266 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
8267 double file close.
8268
1c33c906
MR
82692008-11-14 Martin Rudalics <rudalics@gmx.at>
8270
8271 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
8272 dedicated status of window before attempting to display another
8273 buffer in it.
8274
8fc29035
JB
82752008-11-14 Juanma Barranquero <lekktu@gmail.com>
8276
8277 * msdos.c (Fmsdos_long_file_names):
8278 (syms_of_msdos) <dos-unsupported-char-glyph>:
8279 * dosfns.c (Fint86): Fix typos in docstrings.
8280
55fb4286
EZ
82812008-11-14 Eli Zaretskii <eliz@gnu.org>
8282
8283 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
8284
3fda0315
KY
82852008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
8286
8287 * puresize.h (BASE_PURESIZE): Increase to 1260000.
8288
7e849c17
CY
82892008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
8290
8291 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
8292
8293 * frame.h: Negative alpha means "don't touch".
8294
8295 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
8296
8297 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
8298
b9fd67bd
DN
82992008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
8300
8301 * hftctl.c:
8302 * chpdef.h:
8303 * acldef.h: Remove files used only for systems no longer supported.
8304
8305 * Makefile.in: Fix .o alphabetical ordering.
8306 (hftctl.o): Remove dependency, file removed.
8307 (keymap.o, print.o): Depend on charset.h.
8308
d5998e03
KH
83092008-11-10 Kenichi Handa <handa@m17n.org>
8310
2ae37cf0 8311 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 8312
be70e183
CY
83132008-11-08 Chong Yidong <cyd@stupidchicken.com>
8314
8315 * dired.c (file_name_completion): If completion_ignore_case is
8316 enabled, ignore case when checking completion-regexp-list.
8317
7cf94eac
EZ
83182008-11-08 Eli Zaretskii <eliz@gnu.org>
8319
8320 * vm-limit.c (get_lim_data): Fix last change.
8321
ee107a89
KH
83222008-11-08 Kenichi Handa <handa@m17n.org>
8323
8324 * character.c (Fget_byte): New function.
8325 (syms_of_character): Defsubr Fget_byte.
8326
5fd15622
CY
83272008-11-07 Chong Yidong <cyd@stupidchicken.com>
8328
8329 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
8330 cursor position is valid after scrolling.
8331
13d62fad
JB
83322008-11-06 Juanma Barranquero <lekktu@gmail.com>
8333
8334 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
8335
a1dd2936
GM
83362008-11-06 Glenn Morris <rgm@gnu.org>
8337
8338 * xterm.c (handle_one_xevent): Don't let popup menus cause
8339 mouse-autoselect-window related window switching. (Bug#1261)
8340
860cd236
CY
83412008-11-04 David Smith <davidsmith@acm.org> (tiny change)
8342
8343 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
8344
653a3150
AS
83452008-11-04 Andreas Schwab <schwab@suse.de>
8346
8347 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
8348
870f5cac
CY
83492008-11-03 Chong Yidong <cyd@stupidchicken.com>
8350
8351 * xfns.c (Fx_wm_set_size_hint): New function.
8352
1e02f3cb
MR
83532008-11-03 Martin Rudalics <rudalics@gmx.at>
8354
8355 * textprop.c (Fprevious_single_char_property_change): Return 0
8356 when there's no change in a string. (Bug#1301)
8357
e630dfc6
MR
83582008-11-02 Martin Rudalics <rudalics@gmx.at>
8359
8360 * frame.c (do_switch_frame): New argument NORECORD passed to
8361 Fselect_window.
8362 (Fselect_frame): New argument NORECORD passed to
8363 do_switch_frame.
8364 (Fset_frame_selected_window): New argument NORECORD passed to
8365 Fselect_frame.
8366 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
8367 in call of do_switch_frame.
8368 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
8369 Handle NORECORD argument in call of Fselect_frame.
8370 * lisp.h (do_switch_frame, Fselect_frame)
8371 (Fset_frame_selected_window): Adjust declarations.
8372 * window.c (select_frame_norecord): New function.
8373 (run_window_configuration_change_hook): Use it and call
8374 Fselect_frame with NORECORD set.
8375 (Fselect_window): Pass NORECORD to Fselect_frame.
8376 (Fset_window_configuration): Handle NORECORD argument in call of
8377 do_switch_frame.
8378 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
8379 Fset_frame_selected_window.
8380 * keyboard.c (command_loop_1): Handle NORECORD in call of
8381 Fselect_frame (currently ifdefd).
8382
9020b223
GM
83832008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
8384
8385 * emacs.c (USAGE2): Untabify.
8386
793ffee8
SM
83872008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
8388
8389 * composite.c (fill_gstring_header): Fix copy/paste typo.
8390
ab6d1131
MR
83912008-10-31 Martin Rudalics <rudalics@gmx.at>
8392
8393 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
8394 (Fother_window): Rename argument and rewrite doc-string.
8395 (select_window_norecord): Fix return value. (Bug#1276)
8396
601a9cf1
JB
83972008-10-30 Juanma Barranquero <lekktu@gmail.com>
8398
8399 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
8400 new frames overriding foreground for tooltips. Based on similar patch
8401 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
8402
813b0652
CY
84032008-10-29 Chong Yidong <cyd@stupidchicken.com>
8404
8405 * emacs.c (Fdaemon_initialized): Initialize nfd.
8406
4414f58f
MR
84072008-10-29 Martin Rudalics <rudalics@gmx.at>
8408
8409 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
8410 (Fwindow_text_height): Clarify doc-strings.
8411 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
8412 doc-string of window-scroll-functions.
8413
ecdcaa09
RS
84142008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
8415
8416 * category.c (syms_of_category): Fix typo in docstring.
8417
23fe745a
JB
84182008-10-28 Juanma Barranquero <lekktu@gmail.com>
8419
8420 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
8421 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
8422 Fix typos in docstrings.
8423
ff808935
DN
84242008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
8425
8426 * emacs.c (daemon_pipe): Make non-static.
8427 (IS_DAEMON): Move definition ...
8428 * lisp.h (IS_DAEMON): ... here.
8429 (daemon_pipe): Declare.
8430 (is_daemon): Remove.
8431 * dispnew.c (init_display): Use IS_DAEMON.
8432
fc012771
SM
84332008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
8434
8435 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
8436 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
8437
8438 * emacs.c (is_daemon): Remove.
8439 (main): Don't set is_daemon.
8440 (IS_DAEMON): New macro.
8441 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 8442 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
8443 parent exits.
8444 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
8445
d8bdbe6f
CY
84462008-10-27 Chong Yidong <cyd@stupidchicken.com>
8447
d1a072bf
CY
8448 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
8449 over-sized glyph, draw it with the default glyph width.
8450
e2e325aa
CY
8451 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
8452 glyph, draw it with the default glyph width.
8453
8454 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
8455 glyph, draw it with the default glyph width.
8456
d8bdbe6f
CY
8457 * xdisp.c (try_scrolling): When computing the distance from the
8458 scroll margin to PT, try moving some distance past the window
8459 bottom before giving up.
8460
7bfac547
MR
84612008-10-27 Martin Rudalics <rudalics@gmx.at>
8462
8463 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
8464 (Fset_window_buffer): Explain in doc-string that a window can be
8465 "strongly" dedicated to its buffer.
8466
4ff029f6
DN
84672008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
8468
8469 * emacs.c (daemon_name): New variable.
8470 (main): Deal with --daemon=SERVER_NAME.
8471 (Fdaemonp): Return a name if one was passed to --daemon.
8472
5790ef40
DN
84732008-10-26 Romain Francoise <romain@orebokech.com>
8474
f9bd0df9 8475 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
8476 (main): Create a pipe before forking, make the parent exit only after
8477 the child has closed its end of the pipe. Move closing the
8478 descriptors ...
8479 (Fdaemon_initialized): ... here. New function.
8480
f5385255
SM
84812008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
8482
4d632321
SM
8483 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
8484 the previous unoptimized table.
8485
f5385255
SM
8486 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
8487 the distinction between non-nil and non-t value of `dedicated'.
8488
6c56a0f3
CY
84892008-10-25 Chong Yidong <cyd@stupidchicken.com>
8490
8491 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 8492 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 8493
fec89261
MR
84942008-10-25 Martin Rudalics <rudalics@gmx.at>
8495
8496 * window.c (Fget_buffer_window, Fdelete_windows_on)
8497 (Freplace_buffer_in_windows): Make buffer argument optional and
8498 rename to buffer_or_name.
8499
34fcddd0
CY
85002008-10-24 Chong Yidong <cyd@stupidchicken.com>
8501
f5385255
SM
8502 * xdisp.c (handle_single_display_spec, handle_display_prop):
8503 Undo 2005-05-16 change.
34fcddd0
CY
8504 (handle_stop): Pop iterator if it's loaded with an empty string.
8505 (get_overlay_strings_1): Don't save iterator if it's loaded with
8506 an empty string (bug#1201).
8507
064766f2
KH
85082008-10-24 Kenichi Handa <handa@m17n.org>
8509
8510 * ftfont.c (ftfont_otf_features): Fix previous change.
8511 (ftfont_otf_capability): Check FeatureList.FeatureCount before
8512 calling ftfont_otf_features.
8513
f9bd0df9 85142008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
8515
8516 * font.c (font_match_p): Fix for the case that a vector of
8517 characters is in script-representative-chars.
8518
1dae9197
MA
85192008-10-24 Michael Albinus <michael.albinus@gmx.de>
8520
8521 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 8522 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
8523 (xd_read_queued_messages): Catch Qdbus_error from the macros.
8524 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 8525 macro. (Bug#1186)
1dae9197 8526
f9bd0df9 85272008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
8528
8529 * s/sol2-10.h: New file.
8530
878a4584
JB
85312008-10-23 Juanma Barranquero <lekktu@gmail.com>
8532
8533 * xdisp.c (fill_glyph_string): Fix typo in source (though the
8534 poor beast has survived 9+ years and the jump from xterm.c!).
8535
cd265ca6
MR
85362008-10-23 Martin Rudalics <rudalics@gmx.at>
8537
8538 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
8539 Reword doc-string.
f5385255 8540 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 8541
472a4dc9
JB
85422008-10-23 Juanma Barranquero <lekktu@gmail.com>
8543
8544 * character.c (syms_of_character) <script-representative-chars>:
8545 <unicode-category-table>: Doc fixes.
8546
159bd5a2
NF
85472008-10-23 Noah Friedman <friedman@splode.com>
8548
8549 * coding.c (make_conversion_work_buffer): Check that
8550 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
8551 Fget_buffer_create.
8552
49f9c344
KH
85532008-10-23 Kenichi Handa <handa@m17n.org>
8554
8555 * font.c (font_add_log): Check the values of extra properties.
8556
12bb3111
MR
85572008-10-22 Martin Rudalics <rudalics@gmx.at>
8558
8559 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
8560 Reword doc-string.
8561 (Fset_window_parameter): Use NILP.
8562 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 8563 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 8564
bbeb4e99
JB
85652008-10-22 Juanma Barranquero <lekktu@gmail.com>
8566
8567 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
8568
85692008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
8570
8571 * nsfns.m (ns_appkit_version): New function.
8572 (x-server-version): Use it.
8573 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
8574 (x-server-vendor): Don't check_ns().
8575
8576 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
8577
a9b555d3
JB
85782008-10-22 Juanma Barranquero <lekktu@gmail.com>
8579
8580 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
8581 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
8582
4626499f
KH
85832008-10-22 Kenichi Handa <handa@m17n.org>
8584
e3681952
KH
8585 * syntax.c (scan_words): Call word_boundary_p instead of comparing
8586 scripts.
8587
4626499f
KH
8588 * category.c (word_boundary_p): Check scripts instead of charset.
8589 Handle nil value in word-separating-categories and
8590 word-combining-categories.
8591 (syms_of_category): Fix docstrings of word-separating-categories
8592 and word-combining-categories.
8593
1560f91a
EZ
85942008-10-21 Eli Zaretskii <eliz@gnu.org>
8595
8596 * coding.c (Fencode_coding_region, Fdecode_coding_region)
8597 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
8598
f4668441
MR
85992008-10-21 Martin Rudalics <rudalics@gmx.at>
8600
8601 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
8602 Rename arg "buffer" to "buffer_or_name".
8603 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
8604 it optional.
8605 (no_switch_window): Remove since the return value is not used.
a9b555d3 8606 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
8607 Consider window as dedicated when Fwindow_dedicated_p returns a
8608 non-nil value.
8609 * lisp.h: Remove prototype for no_switch_window.
8610
fd75ddb2
JD
86112008-10-21 Jan Djärv <jan.h.d@swipnet.se>
8612
8613 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 8614 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 8615
07295713
KH
86162008-10-21 Kenichi Handa <handa@m17n.org>
8617
8618 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
8619 check Vlatin_extra_code_table.
8620
712adc82
EZ
86212008-10-20 Eli Zaretskii <eliz@gnu.org>
8622
8623 * fileio.c (Fset_file_modes): Doc fix.
8624
f549eb0b
MA
86252008-10-19 Michael Albinus <michael.albinus@gmx.de>
8626
8627 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
8628 in arrays.
8629
aac0c6e3
MR
86302008-10-19 Martin Rudalics <rudalics@gmx.at>
8631
8632 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
8633 Mention kill-buffer in doc-string.
8634 (Fset_window_buffer): Reinsert tem check removed in last commit.
8635 (Fenlarge_window, Fshrink_window): Have argument names and
8636 doc-string follow Elisp manual more closely.
8637
86382008-10-18 Eli Zaretskii <eliz@gnu.org>
8639
8640 * fileio.c (Fset_file_modes): Doc fix.
8641
86422008-10-18 Martin Rudalics <rudalics@gmx.at>
8643
8644 * window.c (Fwindow_width, Fset_window_start)
8645 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
8646 (Fdelete_windows_on, Freplace_buffer_in_windows):
8647 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
8648 (Fwindow_dedicated_p): Make window argument optional.
8649 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
8650 (Fset_window_buffer): Respect any non-nil dedicated value for
8651 window. Rename "buffer" argument to "buffer_or_name".
8652
86532008-10-18 Ulrich Mueller <ulm@gentoo.org>
8654
8655 * m/sh3.h: New file, machine description for SuperH.
8656
86572008-10-17 Martin Rudalics <rudalics@gmx.at>
8658
8659 * window.c (Fsplit_window): Rename arg horflag to horizontal.
8660
86612008-10-17 Kenichi Handa <handa@m17n.org>
8662
8663 * ftfont.c (ftfont_otf_features): Fix indexing
8664 gsub_gpos->FeatureList.Feature. Check the validity of indices.
8665
86662008-10-16 Magnus Henoch <mange@freemail.hu>
8667
8668 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
8669 (Fdbus_call_method_asynchronously): Ditto.
8670 This change makes C-h f display the argument list.
8671
86722008-10-16 Chong Yidong <cyd@stupidchicken.com>
8673
8674 * fileio.c (Fexpand_file_name): Doc fix.
8675
8676 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
8677 of :foreground and :background equivalent to unspecified (20.x
8678 compatibility).
8679
86802008-10-15 Eli Zaretskii <eliz@gnu.org>
8681
8682 * buffer.c (syms_of_buffer): Doc fix.
8683
86842008-10-14 Kenichi Handa <handa@m17n.org>
8685
8686 * font.c (font_clear_prop): When clearing font width, clear the
8687 average width field too.
8688
86892008-10-12 Andreas Schwab <schwab@suse.de>
8690
8691 * ftfont.c (ftfont_shape_by_flt): Make static.
8692 * ftfont.h (ftfont_shape_by_flt): Don't declare.
8693
8694 * font.c: Don't include <m17n-flt.h>.
8695
86962008-10-10 Eli Zaretskii <eliz@gnu.org>
8697
8698 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
8699
87002008-10-09 Eli Zaretskii <eliz@gnu.org>
8701
8702 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
8703 away code.
8704
87052008-10-09 Chong Yidong <cyd@stupidchicken.com>
8706
8707 * dispnew.c (update_text_area): Avoid looping due to large glyph
8708 overhangs (bug#1070).
8709
87102008-10-09 Kenichi Handa <handa@m17n.org>
8711
8712 * fontset.c (face_for_char): If face->fontset is negative, just
8713 return ascii_face.
8714
f5385255
SM
8715 * font.c (font_delete_unmatched): Fix previous change.
8716 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
8717
87182008-10-09 Martin Rudalics <rudalics@gmx.at>
8719
8720 * frame.c (Fraise_frame): On text-only terminals select frame in
8721 order to make it visible. (Bug#1061)
8722
87232008-10-08 Chong Yidong <cyd@stupidchicken.com>
8724
8725 * fontset.c (fontset_find_font): Check frame validity.
8726
87272008-10-07 Chong Yidong <cyd@stupidchicken.com>
8728
a9b555d3 8729 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
8730 (xg_display_close): Allow Emacs to close all displays (bug#985).
8731
87322008-10-06 Andreas Schwab <schwab@suse.de>
8733
f5385255 8734 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
8735
87362008-10-06 Chong Yidong <cyd@stupidchicken.com>
8737
f5385255 8738 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 8739
a9b555d3 8740 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
8741
8742 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
8743 during initialization.
8744
87452008-10-04 Eli Zaretskii <eliz@gnu.org>
8746
8747 * xdisp.c (redisplay_internal): If frame switched, redisplay the
8748 whole thing on MSDOS frames as well as on a TTY.
8749
8750 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
8751 well as for TTY.
8752 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
8753 well as on a TTY.
8754
8755 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
8756 as well as for TTY.
8757
8758 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
8759
8760 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
8761 MSDOS frames as well.
8762
87632008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8764
8765 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
8766 correct arguments.
b71ac3dd 8767 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
8768
87692008-10-03 Glenn Morris <rgm@gnu.org>
8770
8771 * emacs.c (USAGE1): Add --daemon.
8772
87732008-10-02 Eli Zaretskii <eliz@gnu.org>
8774
8775 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
8776 100, so it's in percents as advertised.
8777
87782008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8779
8780 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
8781 (ns_output.current_cursor, ns_output.desired_cursor)
8782 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
8783 (FRAME_NEW_CURSOR_COLOR): Remove.
8784
8785 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 8786 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
8787 enumeration (HOLLOW_BOX_CURSOR, etc.).
8788
8789 * nsterm.m (ns_frame_rehighlight): Remove commented code.
8790 (draw_window_cursor): Simplify code.
f5385255
SM
8791 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
8792 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 8793 updates manually.
a9b555d3
JB
8794 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
8795 Use core Emacs cursor types.
aac0c6e3 8796
b8ff72fa 8797 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
8798
87992008-10-02 Martin Rudalics <rudalics@gmx.at>
8800
8801 * process.c (Faccept_process_output): Fix doc-string.
8802
88032008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
8804
8805 * gmalloc.c (__sbrk): Also define for uClibc.
8806
8807 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
8808 for uClibc.
8809
88102008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8811
8812 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
8813 styles.
8814 (nsfont_open): Reenable the cache.
8815
88162008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8817
8818 * font.c (font_matching_entity): Reflect ATTRS in font selection.
8819 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
8820
88212008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
8822
8823 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
8824 a suspended terminal.
8825
88262008-09-30 Michael Albinus <michael.albinus@gmx.de>
8827
8828 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
8829
88302008-09-30 Eli Zaretskii <eliz@gnu.org>
8831
8832 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
8833
88342008-09-30 Chong Yidong <cyd@stupidchicken.com>
8835
8836 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
8837 in a continued line coincides with a line beginning.
8838
88392008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8840
8841 * nsfont.m (nsfont_trait_distance): Fix bug.
8842 (nsfont_list): Return a list rather than a vector (syncs with Handa
8843 changes of 2008-05-14).
8844 (nsfont_open): Improve logging.
8845
88462008-09-29 Andreas Schwab <schwab@suse.de>
8847
8848 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
8849
88502008-09-28 Martin Rudalics <rudalics@gmx.at>
8851
8852 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
8853 name as char-resolve-modifiers.
8854 Reported by: Markus Triska <markus.triska@gmx.at>
8855
88562008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
8857
8858 * dispnew.c (init_display): Return earlier when running as a daemon.
8859
88602008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8861
8862 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
8863
88642008-09-27 Eli Zaretskii <eliz@gnu.org>
8865
8866 * composite.c (Fcomposition_get_gstring)
8867 (Fcompose_region_internal, Fcompose_string_internal)
8868 (Ffind_composition_internal): Doc fix.
8869 (syms_of_composite) <compose-chars-after-function>: Doc fix.
8870 (syms_of_composite) <auto-composition-function>: Doc fix.
8871 (syms_of_composite) <composition-function-table>: Doc fix.
8872
88732008-09-25 Chong Yidong <cyd@stupidchicken.com>
8874
8875 * search.c (wordify): New argument for lax word-ends.
8876 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
8877
88782008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
8879
8880 * lisp.h (is_daemon): Declare.
8881 * dispnew.c (init_display): Do not try to initialize the terminal
8882 when running as a daemon.
8883
88842008-09-22 Chong Yidong <cyd@stupidchicken.com>
8885
8886 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
8887 x_display_pixel_height.
8888
88892008-09-22 Martin Rudalics <rudalics@gmx.at>
8890
8891 * undo.c (record_point): Don't call Fundo_boundary for first
8892 change. (Bug#731)
8893
88942008-09-22 Juanma Barranquero <lekktu@gmail.com>
8895
8896 * emacs.c (Fdaemonp): Doc fix.
8897
88982008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
8899
8900 * emacs.c (main): Place #ifdef in the proper place.
8901
89022008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
8903
8904 * emacs.c (standard_args): Add --daemon.
8905 (main): Disconnect from the terminal when --daemon is passed.
8906 (is_daemon): New variable.
8907 (Fdaemonp): New function.
8908 (syms_of_emacs): Defsubr it.
8909
89102008-09-20 Chong Yidong <cyd@stupidchicken.com>
8911
8912 * xdisp.c (get_next_display_element): Handle string display
8913 correctly when checking for the end of a box run.
8914
89152008-09-20 Glenn Morris <rgm@gnu.org>
8916
8917 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
8918 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
8919 (Frename_file): Avoid copying to trash if a rename involves
8920 a delete. (Bug#964).
8921
89222008-09-20 Eli Zaretskii <eliz@gnu.org>
8923
8924 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
8925 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
8926 frames as well as termcap frames.
8927 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
8928 get_named_tty.
8929
89302008-09-19 Eli Zaretskii <eliz@gnu.org>
8931
8932 * process.c (procfs_system_process_attributes): Fix cmdline in
8933 case /proc/PID/cmdline is empty.
8934
8935 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
8936 x_display_pixel_height.
8937
89382008-09-19 Juanma Barranquero <lekktu@gmail.com>
8939
8940 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
8941
8942 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
8943 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
8944
89452008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
8946
8947 * dispextern.h (struct it): Move line_wrap away from the middle of
8948 bitfields. Move voffset in struct iterator_stack_entry after the
8949 bitfields. Move tab_width near after another short.
8950
89512008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
8952
8953 * frame.h (struct frame): Move alpha from the middle of bitfields.
8954
8955 * window.h (struct window): Move frozen_window_start_p after the
8956 rest of the bitfields to reduce padding.
8957
89582008-09-18 Chong Yidong <cyd@stupidchicken.com>
8959
8960 * xterm.h (x_display_info): Remove `height' and `width' members.
8961
8962 * nsterm.h (ns_display_info): Remove `height' and `width' members.
8963
8964 * w32term.h (w32_display_info): Remove `height', `width',
8965 `height_in', and `width_in' members.
8966
b8ff72fa
SM
8967 * xterm.c (x_display_pixel_height, x_display_pixel_width):
8968 New functions.
aac0c6e3
MR
8969 (x_calc_absolute_position): Use them.
8970 (x_term_init): Omit removed `height' and `width' members.
8971
b8ff72fa
SM
8972 * w32term.c (x_display_pixel_height, x_display_pixel_width):
8973 New functions.
aac0c6e3
MR
8974 (w32_read_socket, x_calc_absolute_position): Use them.
8975 (w32_initialize_display_info, w32_term_init): Omit removed members
8976 of w32_display_info.
8977
b8ff72fa
SM
8978 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
8979 New functions.
8980 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 8981
b8ff72fa
SM
8982 * xterm.c (x_display_pixel_height, x_display_pixel_width):
8983 New functions.
aac0c6e3
MR
8984 (x_calc_absolute_position): Use them.
8985 (x_term_init): Omit removed `height' and `width' members.
8986
8987 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
8988 (compute_tip_xy):
8989 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
8990 * xmenu.c (menu_position_func): Use x_display_pixel_height and
8991 x_display_pixel_width.
8992
89932008-09-18 Kenichi Handa <handa@m17n.org>
8994
8995 * composite.c (fill_gstring_header): Don't check FROM and TO here.
8996 (composition_compute_stop_pos): Fix handling of static composition.
8997 (Fcomposition_get_gstring): Check FROM and TO at first.
8998
89992008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
9000
46e722a9 9001 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
9002 mixup (YAILOM).
9003
90042008-09-17 Chong Yidong <cyd@stupidchicken.com>
9005
9006 * indent.c (Fvertical_motion): Use position reported by iterator
9007 instead of PT for determining screen motion (bug#943).
9008
90092008-09-17 Romain Francoise <romain@orebokech.com>
9010
9011 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
9012
90132008-09-17 Kenichi Handa <handa@m17n.org>
9014
9015 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
9016
9017 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
9018 if necessary.
9019
90202008-09-16 Kenichi Handa <handa@m17n.org>
9021
9022 * coding.c (make_conversion_work_buffer): Avoid calling
9023 Fget_buffer_create if it is not necessary.
9024
90252008-09-15 Martin Rudalics <rudalics@gmx.at>
9026
9027 * window.c (Fselect_window): Don't update window_select_count and
9028 use_time when norecord is not nil.
9029
90302008-09-14 Kenichi Handa <handa@m17n.org>
9031
9032 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
9033 specpdl_ptr.
9034
90352008-09-12 Kenichi Handa <handa@m17n.org>
9036
9037 * indent.c (scan_for_column): Don't handle automatic composition
9038 if the current buffer is not associated with a window.
9039
9040 * composite.c (composition_reseat_it): If the current buffer is
9041 not associated with a window, ignore the automatic composition.
9042 (find_automatic_composition): Likewise.
9043
90442008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
9045
9046 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
9047 (Fgpm_mouse_stop): Use it.
9048 * termhooks.h (close_gpm): Declare.
9049 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
9050 connection if Gpm_GetEvent fails.
9051
9052 * window.c (set_window_buffer): Always preserve current-buffer.
9053
90542008-09-12 Glenn Morris <rgm@gnu.org>
9055
9056 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
9057
90582008-09-11 Glenn Morris <rgm@gnu.org>
9059
9060 * charset.c (charset-map-path): Doc fix.
9061
90622008-09-10 Kenichi Handa <handa@m17n.org>
9063
9064 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
9065
9066 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
9067 compose a grapheme cluster with the preceding base glyph.
9068
9069 * composite.c (composition_compute_stop_pos): Fix previous change.
9070 Reset cmp_it->id to -1 at first.
9071
90722008-09-10 Glenn Morris <rgm@gnu.org>
9073
9074 * Makefile.in (character.o, chartab.o): Fix config.h typo.
9075
90762008-09-09 Chong Yidong <cyd@stupidchicken.com>
9077
9078 * keyboard.c (read_key_sequence): Reapply translation maps when
9079 switching keyboards.
9080
90812008-09-09 Kenichi Handa <handa@m17n.org>
9082
9083 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
9084 characters.
9085
9086 * composite.c (FORWARD_CHAR): Fix calculation
9087 of (POSITION).pos_byte.
9088 (composition_compute_stop_pos): Limit the search of composition to
9089 at most 500 characters ahead. If we reach the limit or find a
9090 newline, set cmp_it->ch to -2 and return 0.
9091 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
9092
90932008-09-08 Kenichi Handa <handa@m17n.org>
9094
9095 * indent.c (Fvertical_motion): Be sure to set
9096 it_overshoot_expected if it.cmp_it.id is non-negative.
9097
90982008-09-07 Andreas Schwab <schwab@suse.de>
9099
9100 * callproc.c (Fcall_process): Don't hold references to string data
9101 across garbage collection. Move initialisation of new_argv down
9102 to avoid compiler bug.
9103
91042008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
9105
9106 * process.c (Fsystem_process_attributes): Doc fix.
9107
91082008-09-07 Chong Yidong <cyd@stupidchicken.com>
9109
9110 * callproc.c (Fcall_process): Canonicalize current directory name.
9111
9112 * xdisp.c (move_it_to): When moving by vpos, ensure that the
9113 iterator advances to the next line if the current line ends in a
9114 continued tab.
9115
91162008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
9117
9118 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
9119 member to point to cmp_from.
9120
9121 * xdisp.c: Doc fix for references to gidx data member.
9122
91232008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
9124
9125 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
9126
91272008-09-07 Kenichi Handa <handa@m17n.org>
9128
9129 * composite.c (FORWARD_CHAR): Check STOP after
9130 incrementing (POSITION).pos.
9131
91322008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
9133
9134 * process.c (Fsystem_process_attributes): Doc fix.
9135
91362008-09-06 Chong Yidong <cyd@stupidchicken.com>
9137
9138 * keyboard.c (Ftop_level): Doc fix.
9139
91402008-09-06 Eli Zaretskii <eliz@gnu.org>
9141
9142 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
9143 minibuffer, don't let lower part of menu invade the echo area.
9144
9145 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
9146 "char *q" to access menu text and advance through it. Revert the
9147 change that displayed ">" instead of ASCII character 0x10.
9148
91492008-09-05 Eli Zaretskii <eliz@gnu.org>
9150
9151 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
9152 toggle boxes and radio buttons on MS-DOS as well.
9153
91542008-09-05 Kenichi Handa <handa@m17n.org>
9155
9156 * composite.c (autocmp_chars): Check lookback count.
9157 (composition_compute_stop_pos): Set cmp_it->lookback.
9158 (composition_reseat_it): Check lookback count.
9159 (struct position_record): New struct.
9160 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
9161 (find_automatic_composition): New function.
9162 (composition_adjust_point): Use find_automatic_composition.
9163
9164 * dispextern.h (struct composition_it): New member lookback.
9165
91662008-09-02 Chong Yidong <cyd@stupidchicken.com>
9167
9168 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
9169 if moving by a single line.
9170
91712008-09-02 Andreas Schwab <schwab@suse.de>
9172
9173 * xterm.c (x_delete_display): Fix merge error.
9174
9175 * fileio.c (Fexpand_file_name): Remove unused variables.
9176
91772008-09-02 Eli Zaretskii <eliz@gnu.org>
9178
9179 * fileio.c (Fexpand_file_name): Copy argument `name' into local
9180 storage on all platforms, not just on DOS_NT.
9181
91822008-09-02 Jason Rumney <jasonr@gnu.org>
9183
b8ff72fa
SM
9184 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
9185 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
9186
91872008-09-01 Chong Yidong <cyd@stupidchicken.com>
9188
9189 * xfaces.c (Finternal_set_alternative_font_family_alist)
9190 (Finternal_set_alternative_font_registry_alist): Properly copy
9191 entire alist structure.
9192
91932008-09-01 Kenichi Handa <handa@m17n.org>
9194
d66c0241 9195 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 9196 representative chars of the script is a vector.
d66c0241
JB
9197 (ftfont_list): Handle the case where the representative chars of
9198 the script is a vector.
aac0c6e3
MR
9199
9200 * character.c (syms_of_character): Docstring of
9201 script-representative-chars fixed.
9202
92032008-08-31 Eli Zaretskii <eliz@gnu.org>
9204
9205 * msdos.c (BUILD_CHAR_GLYPH): New macro.
9206 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
9207 the menu. Allocate larger buffer for `text', to account for
9208 possible ^C characters.
9209
92102008-08-31 Martin Rudalics <rudalics@gmx.at>
9211
9212 * xdisp.c (prepare_menu_bars): Don't call
9213 Vwindow_size_change_functions with arg Qt.
9214
92152008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
9216
9217 * font.h (font_range):
9218 * fileio.c (report_file_error):
46e722a9
SM
9219 * composite.c (composition_update_it): Yet another int/Lisp_Object
9220 mixup (YAILOM).
aac0c6e3
MR
9221
92222008-08-30 Glenn Morris <rgm@gnu.org>
9223
9224 * data.c (Fmake_variable_frame_local): Doc fix.
9225
9226 * frame.c (Fmodify_frame_parameters): Doc fix.
9227
92282008-08-30 Eli Zaretskii <eliz@gnu.org>
9229
9230 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
9231 needed by GetTokenInformation.
9232 (w32_system_process_attributes): Check return values of all system
9233 APIs.
9234
9235 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
9236 only when the state changes.
9237 (IT_update_begin, IT_update_end): Add termscript trace.
9238
9239 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
9240 clipboard is unavailable. Set dst to NULL if it doesn't point to
9241 malloc'ed data.
9242 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
9243 passing random values to xfree.
9244
9245 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 9246 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
9247
92482008-08-29 Jason Rumney <jasonr@gnu.org>
9249
9250 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
9251
92522008-08-29 Eli Zaretskii <eliz@gnu.org>
9253
9254 * composite.c (fill_gstring_body): Avoid compiler warnings.
9255
9256 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
9257 LGLYPH_SET_CODE to avoid compiler warnings.
9258
2ae37cf0 9259 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
9260
9261 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
9262
9263 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
9264 LGLYPH_SET_CODE.
9265
92662008-08-29 Kenichi Handa <handa@m17n.org>
9267
9268 * fileio.c (report_file_error): Don't downcase the first character
9269 of errstring if it is still unibyte.
9270
92712008-08-29 Kenichi Handa <handa@m17n.org>
9272
9273 These changes are to re-implement the automatic composition so
9274 that it doesn't use text properties.
9275
9276 * Makefile.in (ftfont.o): Depend on composite.h.
9277 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
9278
9279 * character.h (Vunicode_category_table): Extern it.
9280
9281 * character.c (Vunicode_category_table): New variable.
9282 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
9283
9284 * chartab.c (optimize_sub_char_table): Perform more greedy
9285 optimization.
9286
b8ff72fa
SM
9287 * composite.h (enum composition_method):
9288 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
9289 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
9290 (Vcomposition_function_table): Extern it.
9291 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
9292 (composition_gstring_put_cache, composition_gstring_from_id)
9293 (composition_gstring_p, composition_gstring_width)
9294 (composition_compute_stop_pos, composition_reseat_it)
9295 (composition_update_it, composition_adjust_point): Extern them.
9296 (Fcomposition_get_gstring): EXFUN it.
9297
d66c0241 9298 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
9299 (Vcomposition_function_table)
9300 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
9301 (gstring_hash_table, gstring_work, gstring_work_headers):
9302 New variables.
aac0c6e3
MR
9303 (gstring_lookup_cache, composition_gstring_put_cache)
9304 (composition_gstring_from_id, composition_gstring_p)
9305 (composition_gstring_width, fill_gstring_header)
9306 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
9307 (composition_reseat_it, composition_update_it)
b8ff72fa 9308 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
9309 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
9310 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 9311 Defsubr composition_get_gstring.
aac0c6e3
MR
9312
9313 * dispextern.h (struct glyph): New union u.cmp. Delete the member
9314 cmp_id.
9315 (struct glyph_string): Delete the member gidx. New members
9316 cmp_id, cmp_from, and cmp_to.
9317 (enum it_method): Delete GET_FROM_COMPOSITION.
9318 (struct composition_it): New struct.
9319 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
9320 Delete c, len, cmp_id, cmp_len in u.comp.
9321
9322 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 9323 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 9324 (enum lglyph_indices): Likewise.
b8ff72fa 9325 (font_range): Adjust extern.
aac0c6e3
MR
9326 (font_fill_lglyph_metrics): Extern it.
9327
9328 * font.c (QCf): New variable.
9329 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
9330 (font_prepare_composition): Delete this function.
9331 (font_range): Type and arguments changed.
9332 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
9333 (font_fill_lglyph_metrics): New function.
b8ff72fa 9334 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 9335 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
9336 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
9337 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
9338
9339 * fontset.h (font_for_char): Extern it.
9340
9341 * fontset.c (font_for_char): New function.
9342
9343 * ftfont.c: Include composite.h.
9344 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 9345 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
9346
9347 * indent.c: Include composite.h and dispextern.h.
9348 (check_composition): Delete this function.
9349 (scan_for_column): Handle composition by
9350 composition_compute_stop_pos, composition_reseat_it, and
9351 composition_update_it.
9352 (compute_motion): Likewise.
9353 (Fvertical_motion): Fix checking of composition.
9354
9355 * keyboard.c (adjust_point_for_property): Check composition by
9356 composition_adjust_point.
9357
b8ff72fa 9358 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
9359 struct glyph_string.
9360
b8ff72fa
SM
9361 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
9362 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
9363 struct glyph.
9364 (produce_composite_glyph): Likewise.
9365
b8ff72fa
SM
9366 * w32term.c (x_draw_composite_glyph_string_foreground):
9367 Adjust for the change of struct glyph_string.
aac0c6e3
MR
9368 (x_draw_glyph_string): Likewise.
9369
9370 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
9371 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
9372
9373 * xdisp.c: Include font.h.
9374 (it_props): Delete the entry for Qauto_composed.
9375 (init_iterator): Initialize it->cmp_it.id to -1.
9376 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 9377 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
9378 (handle_auto_composed_prop): Delete it.
9379 (handle_composition_prop): Handle only static composition.
9380 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
9381 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 9382 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
9383 (pop_it): Likewise.
9384 (get_next_element): Delete next_element_from_composition.
9385 (CHAR_COMPOSED_P): New macro.
9386 (get_next_display_element): For automatic composition, get a face
9387 from the font in the glyph-string.
9388 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 9389 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
9390 (next_element_from_string): Check if the character at the current
9391 position is composed by CHAR_COMPOSED_P.
9392 (next_element_from_buffer): Likewise.
d66c0241
JB
9393 (next_element_from_composition): Adjust for the change of struct it.
9394 Update it->cmp_it.
b8ff72fa
SM
9395 (dump_glyph): Adjust for the change of struct glyph.
9396 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
9397 it and struct glyph. Don't handle automatic composition here.
9398 (fill_gstring_glyph_string): New function.
9399 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 9400 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
9401 (BUILD_GSTRING_GLYPH_STRING): New macro.
9402 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
9403 automatic composition.
b8ff72fa 9404 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 9405 struct glyph.
b8ff72fa 9406 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 9407
b8ff72fa 9408 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
9409 the change of struct glyph_string.
9410 (x_draw_glyph_string): Likewise.
9411
94122008-08-29 Glenn Morris <rgm@gnu.org>
9413
9414 * buffer.c (word-wrap): Doc fix.
9415 * xdisp.c (truncate-partial-width-windows): Doc fix.
9416 Increase default to 50.
9417
94182008-08-29 Chong Yidong <cyd@stupidchicken.com>
9419
9420 * xdisp.c (update_tool_bar_unwind): New function.
9421 (update_tool_bar): Temporarily set selected frame before building
9422 tool-bar items.
9423
94242008-08-28 Michael Albinus <michael.albinus@gmx.de>
9425
9426 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
9427 snprintf, respectively.
9428 (xd_append_arg): Convert strings with Fstring_make_unibyte.
9429
94302008-08-28 Chong Yidong <cyd@stupidchicken.com>
9431
9432 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
9433 LDFLAGS to GNUstep CC invocation.
9434
94352008-08-27 Chong Yidong <cyd@stupidchicken.com>
9436
9437 * indent.c (Fvertical_motion): Revert last change. Handle the
9438 general case where we are moving forward, and PT spans multiple
9439 screen lines.
9440
9441 * eval.c (find_handler_clause): Temporarily increase
9442 max-lisp-eval-depth while printing the backtrace buffer, to
9443 guarantee that help-mode code can run.
9444
94452008-08-27 Eli Zaretskii <eliz@gnu.org>
9446
9447 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
9448 colors under -rv.
9449 (IT_set_frame_parameters): Don't swap foreground and background
9450 colors if `(reverse . t)' is present in the frame properties.
9451 (internal_terminal_init): Call init_frame_faces only for the
9452 initial frame.
9453
94542008-08-27 Andreas Schwab <schwab@suse.de>
9455
9456 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
9457
94582008-08-27 Andreas Schwab <schwab@suse.de>
9459
9460 * search.c (search_buffer): Set char_base to zero only at the end.
9461
94622008-08-27 Kenichi Handa <handa@m17n.org>
9463
b8ff72fa 9464 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
9465
94662008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
9467
9468 * xterm.c (x_term_init): Temporarily hide the partially
9469 initialized terminal while calling vendor-specific-keysyms.
9470
94712008-08-26 Eli Zaretskii <eliz@gnu.org>
9472
9473 * msdos.c (internal_terminal_init): Most initializations done only
9474 once, especially initial_screen_colors[] and termscript open.
9475
94762008-08-26 Chong Yidong <cyd@stupidchicken.com>
9477
9478 * eval.c (Fcondition_case): Doc fix.
9479
9480 * widgetprv.h (EmacsFramePart): Change font member to the new font
9481 struct.
9482
9483 * widget.c: Include character.h and font.h for XSETFONT.
9484 (setup_frame_gcs): Compute X font id from font struct, just once.
9485
94862008-08-26 Eli Zaretskii <eliz@gnu.org>
9487
9488 * term.c (get_named_tty): Fix last change.
9489
94902008-08-26 Chong Yidong <cyd@stupidchicken.com>
9491
9492 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 9493 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
9494
94952008-08-25 Eli Zaretskii <eliz@gnu.org>
9496
9497 * frame.c (do_switch_frame): Mark previously displayed frame as
9498 obscured for FRAME_MSDOS_P frames as well.
9499
95002008-08-24 Eli Zaretskii <eliz@gnu.org>
9501
9502 * frame.c (make_terminal_frame): Initialize f->terminal,
9503 f->terminal->reference_count, and scroll bars on MS-DOS as well.
9504 Set the top frame to newly created frame.
9505 (Fmake_terminal_frame): Reuse the_only_display_info.
9506
9507 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
9508 estimating available memory.
9509
b97439ce 95102008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
9511
9512 * nsterm.m (ns_draw_window_cursor): Don't call
9513 NSDisableScreenUpdates and NSEnableScreenUpdates on
9514 non-NS_IMPL_COCOA systems.
9515
95162008-08-23 Andreas Schwab <schwab@suse.de>
9517
9518 * process.c (procfs_system_process_attributes): Fix use of
9519 uninitialized variables.
9520
95212008-08-23 Eli Zaretskii <eliz@gnu.org>
9522
9523 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
9524
9525 * dispnew.c (init_display): Remove MS-DOS specific conditions for
9526 calling tty-set-up-initial-frame-faces.
9527
b8ff72fa
SM
9528 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
9529 Allow MSDOS frames along with X frames.
aac0c6e3
MR
9530
9531 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
9532 addition to output_termcap.
9533
9534 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
9535
9536 * termchar.h (FRAME_TTY): Support output_msdos_raw.
9537 (struct tty_display_info) [MSDOS]: Add fields related to mouse
9538 highlight.
9539
9540 * process.c [!subprocesses]: Define QCname.
9541 (syms_of_process): Intern and staticpro it.
9542
9543 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
9544 Adjust for changes in encoding/decoding routines.
9545 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
9546 encode_coding and decode_coding.
9547
b8ff72fa 9548 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
9549
9550 * dosfns.c: Include frame.h before termhooks.h.
9551 (dos_cleanup): Use CURTTY ()->termscript instead of a global
9552 variable termscript.
9553
9554 * s/msdos.h (USER_FULL_NAME): Define.
9555 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
9556
9557 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
9558 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
9559 pw->pw_gecos.
9560
9561 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
9562 SELECTED_FRAME as additional (1st) argument.
9563 (tty_read_avail_input): Handle output_msdos_raw in
9564 addition to output_termcap.
9565
9566 * msdos.c: Include frame.h before termhooks.h.
9567 (mouse_on, mouse_off, mouse_moveto, mouse_init)
9568 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
9569 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
9570 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
9571 (IT_set_terminal_modes, IT_reset_terminal_modes)
9572 (IT_set_frame_parameters): Use tty->termscript instead of a global
9573 variable termscript.
9574 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
9575 global variable terminal_coding. Don't refer to
9576 Vnonascii_translation_table.
9577 (internal_terminal_init): Set Vwindow_system in current_kboard.
9578 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
9579 Announce date and time of session start, if termscript is open.
9580 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
9581 term.c:init_tty). Open termscript only of not already open.
9582 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
9583 here instead of dos_ttraw. Don't initialize display if this is an
9584 initial tty. Don't set FRAME_FONT.
9585 (Vwindow_system_version): Bump to 23.
9586 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
9587 is available, set up mouse_position_hook.
9588 (dos_ttraw, IT_set_terminal_modes): If called with initial
9589 terminal, do nothing.
9590 (IT_set_frame_parameters): Handle the Qtty_type frame
9591 parameter by calling internal_terminal_init.
9592 (dos_set_window_size, show_mouse_face)
9593 (clear_mouse_face, IT_note_mode_line_highlight)
9594 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
9595 (dos_rawgetc): Use tty_display_info instead of x_display_info.
9596 (initialize_msdos_display): New function.
9597 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
9598 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
9599 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
9600 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 9601 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
9602 (request_sigio, unrequest_sigio): Don't define, now defined on
9603 sysdep.c.
9604 (IT_write_glyphs): Rewrite to use encode_terminal_code.
9605
9606 * term.c [MSDOS]: Include msdos.h.
9607 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
9608 conditional to DOS_NT. Allow only one call to this function in a
9609 session. Don't allocate a new struct tty_display_info; instead,
9610 reuse the_only_display_info. Call get_tty_size to get screen
9611 dimensions. Call init_baud_rate to set bad_rate.
9612 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
9613 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 9614 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
9615 (get_tty_terminal, get_named_tty, Ftty_type)
9616 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
9617 output_termcap.
b8ff72fa
SM
9618 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
9619 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 9620 only when subprocesses are supported.
aac0c6e3
MR
9621
9622 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
9623 f->output_data.x.
9624 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
9625 terminal devices.
9626
5582fbc7 9627 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
9628 x_output.
9629 (FRAME_FONT): Use output_data.tty.
9630 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
9631 (struct x_display_info): Rename from display_info. Update all users in
9632 msdos.c.
aac0c6e3 9633 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 9634 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
9635 (dos_ttraw): Update prototype.
9636
9637 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
9638 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
9639
96402008-08-23 Jason Rumney <jasonr@gnu.org>
9641
9642 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
9643 (fn_TIFFSetDirectory): New library function used.
9644 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
9645 (tiff_load): Use :index to select among multiple images. Set count
9646 property when multiple images exist.
9647 (gif_format): Use :index, not :image.
9648
96492008-08-23 Chong Yidong <cyd@stupidchicken.com>
9650
9651 * xdisp.c (try_scrolling): Check INT_MAX instead of
9652 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
9653 to obtain INT_MAX.
9654
96552008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
9656
9657 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
9658
96592008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
9660
9661 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
9662 GNUstep library location.
9663
96642008-08-21 Chong Yidong <cyd@stupidchicken.com>
9665
9666 * xfaces.c (x_update_menu_appearance): Check validity of menu font
9667 before using it.
9668
9669 * puresize.h (BASE_PURESIZE): Increase to 1250000.
9670
96712008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9672
9673 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
9674 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
9675 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
9676 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
9677 (EmacsApp-cursor_blink_handler): Remove declaration.
9678 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
9679 match 01 Feb 2008 changes in xterm.c.
9680 (ns_read_socket): Add cast to avoid warning.
9681 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
9682 GNUstep.
9683
96842008-08-20 Chong Yidong <cyd@stupidchicken.com>
9685
9686 * xselect.c (x_get_foreign_selection): Return nil if desired
9687 selection could not be obtained, instead of signalling an error.
9688
96892008-08-20 David Reitter <david.reitter@gmail.com>
9690
9691 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
9692 * nsterm.m: Remove ns-specific code for cursor blinking.
9693 (ns_draw_window_cursor): Clear cursor properly rather than
9694 redrawing the area. Respect width of bar cursors.
9695 These changes enable the use of generic blink-cursor-mode and
9696 generic cursor types in NS and support smooth cursor movements (do
9697 not blink off after command).
9698 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
9699 Nextstep, too.
9700
97012008-08-19 Kenichi Handa <handa@m17n.org>
9702
9703 * font.c (Vfont_log_deferred): New variable.
9704 (font_add_log): Check Vfont_log_deferred.
9705 (font_deferred_log): New function.
9706
9707 * font.h (font_deferred_log): Extern it.
9708
9709 * fontset.c (reorder_font_vector): Use encoding charset of fonts
9710 for sorting.
9711 (face_for_char): Use deferred log.
9712
97132008-08-18 Kenichi Handa <handa@m17n.org>
9714
9715 * fontset.c (face_for_char): Add font log.
9716
9717 * font.c (font_add_log): Add the font properties :script, :lang,
9718 and :otf in the log.
9719
97202008-08-17 Chong Yidong <cyd@stupidchicken.com>
9721
9722 * xdisp.c: Remove dead code.
9723 (handle_invisible_prop, next_overlay_string): Defer call to
9724 setup_for_ellipsis.
9725 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
9726
97272008-08-15 Chong Yidong <cyd@stupidchicken.com>
9728
9729 * xfaces.c (lookup_derived_face): Properly handle possible zero
9730 return value of get_lface_attributes.
9731 (merge_faces): Don't tell lookup_derived_face to signal an error
9732 if face is not found.
9733
9734 * dired.c (Fdirectory_files): Doc fix.
9735
9736 * process.c (make_process): Initialize kill_without_query struct
9737 member.
9738
97392008-08-15 Eli Zaretskii <eliz@gnu.org>
9740
9741 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
9742 Alternative calculation of totphys for Visual Studio 6.
9743
9744 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
9745
9746 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
9747 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
9748 All users changed.
9749 (stat): Only root directory passed to GetDriveType. Allow RAM
9750 disk as well as local fixed disk when w32-get-true-file-attributes
9751 is set to `local'.
9752 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
9753 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
9754 (w32_cached_id, w32_add_to_cache): New functions.
9755 (get_name_and_id): Look account names in the cache before calling
9756 lookup_account_sid.
9757 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
9758 New initialization flags.
9759 (globals_of_w32): Initialize them to zero.
9760 (w32_system_process_attributes): Use w32_cached_id and
9761 w32_add_to_cache.
9762
97632008-08-14 Lawrence Mitchell <wence@gmx.li>
9764
9765 * lread.c (Fread_char, Fread_char_exclusive): If no character
9766 event is read before timeout is reached, return nil, rather than
9767 converting to a number.
9768
97692008-08-14 Chong Yidong <cyd@stupidchicken.com>
9770
9771 * fns.c (use_dialog_box): Doc fix.
9772
9773 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
9774 on OS X.
9775
97762008-08-13 Chong Yidong <cyd@stupidchicken.com>
9777
9778 * frame.c (Qns_parse_geometry): New var.
9779 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
9780
97812008-08-11 Chong Yidong <cyd@stupidchicken.com>
9782
9783 * xdisp.c (x_produce_glyphs): Handle the case when font has no
9784 space character in calculating tabs.
9785
97862008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
9787
9788 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
9789
97902008-08-10 Glenn Morris <rgm@gnu.org>
9791
9792 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
9793 silence gcc "limited range of data type" warnings in some
9794 make_fixnum_or_float calls.
9795
97962008-08-09 Eli Zaretskii <eliz@gnu.org>
9797
9798 * w32.c (w32_system_process_attributes): If the process does not
9799 exist, return nil.
9800
9801 * w32.c: Include thelp32.h, psapi.h and coding.h.
9802 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
9803 declarations.
9804 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
9805 (Process32Next_Proc): New typedefs.
9806 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
9807 (g_b_init_process32_next, g_b_init_open_thread_token)
9808 (g_b_init_impersonate_self, g_b_init_revert_to_self)
9809 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
9810 (g_b_init_get_process_working_set_size)
9811 (g_b_init_global_memory_status_ex): New static variables.
9812 (globals_of_w32): Initialize them.
9813 (create_toolhelp32_snapshot, process32_first, process32_next)
9814 (open_thread_token, impersonate_self, revert_to_self)
9815 (get_process_memory_info, get_process_working_set_size)
9816 (global_memory_status, global_memory_status_ex): New wrapper
9817 functions.
9818 (w32_list_system_processes, w32_system_process_attributes)
9819 (enable_privilege, restore_privilege, ltime, process_times):
9820 New functions.
9821 (convert_time_raw): New function.
9822 (convert_time): Remove conversion of FILETIME into time in 100
9823 nsec units, call convert_time_raw instead.
9824
9825 * process.h (w32_list_system_processes, w32_system_process_attributes):
9826 Add prototypes.
9827 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
9828 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
9829 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
9830 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
9831
9832 * process.c (Fsystem_process_attributes): Doc fix.
9833
98342008-08-08 Chong Yidong <cyd@stupidchicken.com>
9835
9836 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
9837 a continued multi-char glyph; if so, advance to the actual glyph.
9838
98392008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
9840
9841 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
9842
9843 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
9844 (.m.o): Use it.
9845 * config.in: Regenerate.
9846
98472008-08-07 Chong Yidong <cyd@stupidchicken.com>
9848
9849 * xdisp.c (redisplay_window): Revert last change.
9850 (try_window): Check bottom scroll margin too.
9851
98522008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9853
9854 * config.in: Regenerate.
9855
9856 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
9857 -list-load-path-shadows'.
9858 (nsgui.h): Reduce number of things depending on it.
9859
98602008-08-06 Chong Yidong <cyd@stupidchicken.com>
9861
9862 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
9863 instead of window-end which does the wrong thing at eob.
9864 (try_cursor_movement): Minor optimization.
9865 (redisplay_window): If scroll margin is defined, don't assume
9866 window doesn't need scrolling.
9867
98682008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9869
9870 * config.in: Regenerate.
9871
9872 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
9873 (mostlyclean): Don't delete *.d under NS.
9874
9875 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
9876
98772008-08-06 Kenichi Handa <handa@m17n.org>
9878
9879 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
9880
98812008-08-06 Andreas Schwab <schwab@suse.de>
9882
9883 * config.in: Regenerate.
9884
98852008-08-05 Chong Yidong <cyd@stupidchicken.com>
9886
9887 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
9888 forcing a window start.
9889
9890 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
9891 (auto_save_1): Update modtime when auto-save-list-file-name is on.
9892
98932008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9894
9895 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
9896 argument.
9897
98982008-08-05 Juanma Barranquero <lekktu@gmail.com>
9899
9900 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
9901 <scroll-down-aggressively, before-change-functions>:
9902 <after-change-functions>: Reflow docstrings.
9903
99042008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 9905 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
9906
9907 Dock menu customization, based on a patch by Ken Raeburn, plus some
9908 other fixes.
9909 * nsmenu.m (dockMenu): New variable.
9910 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
9911
9912 * nsterm.h (dockMenu): Declare.
9913
9914 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
9915 (ns_term_init): Initialize dockMenu.
9916 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
9917 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
9918 left.
9919
9920 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
9921
99222008-08-04 Chong Yidong <cyd@stupidchicken.com>
9923
9924 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
9925
9926 * config.in: Regenerate.
9927
99282008-08-04 Seiji Zenitani <zenitani@mac.com>
9929
9930 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
9931
99322008-08-04 Chong Yidong <cyd@stupidchicken.com>
9933
9934 * nsterm.h (find_and_call_menu_selection): Fix prototype.
9935
99362008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9937
9938 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
9939
9940 * keyboard.h: Comment an #endif.
9941
9942 * lisp.h (have_menus_p): Adjust comment.
9943
9944 * menu.c (find_and_return_menu_selection): Fix comparison with
9945 client_data.
9946
9947 * nsmenu.m (popup_activated_flag): New variable.
9948 (popup_activated): New function.
9949 (menu-or-popup-active-p): New exported lisp definition.
9950 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
9951 when popup done.
9952 (ns_popup_dialog): Set popup_activated_flag.
9953
9954 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
9955 version for GNUstep (handled by conditional typedef in nsterm.m).
9956 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
9957 in rgb.txt).
9958
9959 * process.c (init_process): Use DARWIN_OS, not DARWIN.
9960
9961 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
9962
9963 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
9964
9965 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
9966 shortcircuit if popup_activated like GTK and X toolkit.
9967
9968 * m/inter386.h: Change DARWIN to DARWIN_OS.
9969
9970 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
9971 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
9972 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
9973 comment on NO_SOCK_SIGIO.
9974
99752008-08-03 Chong Yidong <cyd@stupidchicken.com>
9976
9977 * nsterm.m (windowDidResize): Remove stopModal call.
9978
99792008-08-03 Andreas Schwab <schwab@suse.de>
9980
9981 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
9982 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
9983
99842008-08-02 Chong Yidong <cyd@stupidchicken.com>
9985
9986 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
9987 Don't use uninitialized pointer variable when using getrlimit.
9988
99892008-08-02 Jason Rumney <jasonr@gnu.org>
9990
9991 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
9992
99932008-08-02 Eli Zaretskii <eliz@gnu.org>
9994
9995 * alloc.c (NSTATICS): Bump to 0x640.
9996
9997 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
9998
9999 * lisp.h: Add prototype for directory_files_internal.
10000
10001 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
10002 New functions.
10003 (syms_of_process): Defsubr them. Add initializations for various
10004 Q* symbols used in procfs_system_process_attributes.
10005 (procfs_list_system_processes, procfs_system_process_attributes)
10006 [HAVE_PROCFS]: New functions.
10007 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
10008 (procfs_get_total_memory): New functions.
10009
100102008-08-01 Juanma Barranquero <lekktu@gmail.com>
10011
10012 * xfaces.c (Fx_load_color_file): Fix previous change;
10013 it is #ifdef WINDOWSNT, not WINDOWS_NT.
10014
100152008-08-01 Michael Albinus <michael.albinus@gmx.de>
10016
10017 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
10018
100192008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10020
10021 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
10022
100232008-08-01 Chong Yidong <cyd@stupidchicken.com>
10024
10025 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
10026
10027 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
10028 define NSApplicationDelegateReplySuccess.
10029 (EmacsView -converstationIdentifier): Use long instead of
10030 NSInteger for GNUstep, since it doesn't have NSInteger.
10031
10032 * xmenu.c: Revert last change.
10033
10034 * keyboard.h: Fix last change.
10035
100362008-08-01 Juanma Barranquero <lekktu@gmail.com>
10037
10038 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
10039 on Windows.
10040
100412008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10042
10043 Warning clearing and clean-up in NS port.
10044 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
10045 Add prototypes.
10046 * nsgui.h (FACE_DEFAULT): Remove, unused.
10047 (XGCValues): Change colors to unsigned long.
10048 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
10049 nsterm.m.
10050 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
10051 (ns_list_fonts): Remove, unused.
10052 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
10053 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
10054 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
10055 (nsfont_draw): Compare face colors to 0, not nil.
10056 * nsmenu.m (struct widget_value): Drop unneeded declaration.
10057 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
10058 (-addSubmenuWithTitle:): Use NSMenuItem class.
10059 (ns_popup_menu): Use NO, not NULL, for enabled setting.
10060 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
10061 (ns_clip_to_row): Make gc arg a BOOL.
10062 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
10063 ns_clip_to_row() call.
10064 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
10065 used). Cast FRAME_FONT assignments.
10066 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
10067 (ns_string_to_lispmod): Change arg to const char.
10068 (ns_term_init): Use NSMenuItem class.
10069 (EmacsApp -openFile:): Move to different section of file.
10070 (EmacsApp -application:openFiles:): Don't return a value, call
10071 -replyToOpenOrPrint:.
10072 (EmacsView -keyDown:): Fix up cast.
10073 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
10074 (EmacsView -menuDown:): Cast tag in call to
10075 find_and_call_menu_selection().
10076 (ns_list_fonts): Remove, unused.
10077 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
10078 (ns_fontname_to_xlfd): Make static.
10079 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
10080 Remove prototypes (now in keyboard.h).
10081 (next_menubar_widget_id): Remove, unused.
10082 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
10083 Remove prototypes (now in keyboard.h).
10084 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
10085
100862008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
10087
10088 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
10089 (floatfns.o): Depend on syssignal.h.
10090 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
10091
10092 * systty.h: Fix previous change that removed BSD_TERMIOS.
10093 Add comments to #ifdefs.
10094
100952008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10096
10097 * w32fns.c (w32-load-color-file): Remove.
10098 (x-open-connection): Use renamed Fx_load_color_file.
10099 * xfaces.c (x-load-color-file): Add.
10100 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
10101 Emacs.clr.
10102 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
10103
101042008-07-31 Michael Albinus <michael.albinus@gmx.de>
10105
10106 * dbusbind.c (Fdbus_call_method_asynchronously)
10107 (Fdbus_method_error_internal): New defuns.
10108 (xd_read_message): Handle also reply messages.
10109 (Vdbus_registered_functions_table): Extend docstring.
10110
101112008-07-31 Juanma Barranquero <lekktu@gmail.com>
10112
10113 * keyboard.c (gobble_input): Fix previous change.
10114
101152008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
10116
10117 * bitmaps/README:
10118 * xfns.c:
10119 * termcap.c:
10120 * term.c:
10121 * syswait.h:
10122 * systty.h:
10123 * systime.h:
10124 * syssignal.h:
10125 * sysdep.c:
10126 * process.h:
10127 * process.c:
10128 * print.c:
10129 * ndir.h:
10130 * lread.c:
10131 * keyboard.c:
10132 * getpagesize.h:
10133 * floatfns.c:
10134 * fileio.c:
10135 * emacs.c:
10136 * doc.c:
10137 * dispnew.c:
10138 * dired.c:
10139 * data.c:
10140 * callproc.c:
10141 * buffer.c:
10142 * README:
10143 * Makefile.in:
10144 * s/template.h:
10145 * s/msdos.h:
10146 * m/vax.h: Remove VMS support.
10147 * s/vms.h:
10148 * vlimit.h:
10149 * uaf.h:
10150 * temacs.opt:
10151 * param.h:
10152 * ioctl.h: Remove file.
10153
101542008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
10155
10156 * s/ms-w32.h (MULTI_KBOARD): Remove.
10157 * xterm.c:
10158 * xselect.c:
10159 * xfns.c:
10160 * window.c:
10161 * w32term.c:
10162 * w32fns.c:
10163 * terminal.c:
10164 * termhooks.h:
10165 * term.c:
10166 * sysdep.c:
10167 * keyboard.h:
10168 * keyboard.c:
10169 * frame.h:
10170 * frame.c:
10171 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
10172 * config.in: Regenerate.
10173
101742008-07-30 Jason Rumney <jasonr@gnu.org>
10175
10176 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
10177
10178 * w32font.c (w32font_encode_char): Leave as unicode if in range.
10179 (w32font_open_internal): Get unicode version of textmetrics.
10180 Don't enable or disable glyph indices here.
10181 (w32font_open): Disable use of glyph indices.
10182
10183 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
10184
101852008-07-30 Chong Yidong <cyd@stupidchicken.com>
10186
10187 * minibuf.c (Vread_buffer_function): Doc fix.
10188
101892008-07-30 John Paul Wallington <jpw@pobox.com>
10190
10191 * minibuf.c (read_buffer_completion_ignore_case): New var.
10192 (Fread_buffer): Use it.
10193
101942008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
10195
10196 * systty.h (sensemode): Remove empty #if. Remove reference to
10197 BSD_TERMIOS, unused.
10198
10199 * sysdep.c: Remove reference to DGUX.
10200 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
10201
10202 * config.in: Regenerate.
10203
102042008-07-30 Jason Rumney <jasonr@gnu.org>
10205
10206 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
10207
102082008-07-29 Jason Rumney <jasonr@gnu.org>
10209
10210 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
10211 is populated.
10212 (uniscribe_encode_char): Always use uniscribe.
10213 Avoid using context if cache is populated.
10214
102152008-07-29 Jan Djärv <jan.h.d@swipnet.se>
10216
10217 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
10218 open menu.
10219
10220 * gtkutil.c (menu_nav_ended): Remove.
10221 (create_menus): Remove signal connect for menu_nav_ended.
10222
102232008-07-28 Chong Yidong <cyd@stupidchicken.com>
10224
10225 * xdisp.c (redisplay_window): Check return value of
10226 compute_window_start_on_continuation_line before forcing a window
10227 start.
10228
102292008-07-28 Jason Rumney <jasonr@gnu.org>
10230
10231 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
10232
10233 * w32term.c (w32_enable_unicode_output, cleartype_active):
10234 Remove obsolete display options.
10235 (x_draw_glyph_string_background): Don't use old cleartype_active
10236 workaround.
10237 (w32_initialize): Remove cleartype_active initialization.
10238 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
10239
102402008-07-28 Andreas Schwab <schwab@suse.de>
10241
10242 * lisp.h (init_weak_hash_tables, syms_of_font)
10243 (xd_read_queued_messages, syms_of_dbusbind): Declare.
10244 (remove_hash_entry): Don't declare.
10245 * eval.c (maybe_call_debugger): Make static and move before use.
10246 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
10247 * xdisp.c: Include "gtkutil.h" if USE_GTK.
10248 * xterm.h (x_set_frame_alpha): Declare.
10249
102502008-07-28 Jan Djärv <jan.h.d@swipnet.se>
10251
10252 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
10253 (create_menus): Connect selection-done to menu_nav_ended.
10254
102552008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10256
10257 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
10258 Set Vx_resource_name to a fallback. Replace read of 'buffered'
10259 parameter with read of 'alpha' one.
10260 (Qns_frame_parameter): Remove.
5582fbc7 10261 * nsselect.m (selection-coding-system)
aac0c6e3
MR
10262 (next-selection-coding-system, Vselection_coding_system)
10263 (Vnext_selection_coding_system): Drop.
10264
102652008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10266
10267 * nsfns.m (do-applescript, do_applescript): Rename to
10268 ns-do-applescript, ns_do_applescript, and move within file.
10269
102702008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
10271
10272 Remove support for Mac Carbon.
10273 * mactoolbox.c:
10274 * macterm.h:
10275 * macterm.c:
10276 * macselect.c:
10277 * macmenu.c:
10278 * macgui.h:
10279 * macfns.c:
10280 * mac.c: Remove file.
10281 * s/darwin.h:
10282 * m/intel386.h:
10283 * xfaces.c:
10284 * xdisp.c:
10285 * window.c:
10286 * tparam.c:
10287 * termhooks.h:
10288 * termcap.c:
10289 * term.c:
10290 * syssignal.h:
10291 * sysselect.h:
10292 * sysdep.c:
10293 * process.c:
10294 * lread.c:
10295 * lisp.h:
10296 * keyboard.c:
10297 * image.c:
10298 * fringe.c:
10299 * frame.h:
10300 * frame.c:
10301 * fontset.c:
10302 * font.h:
10303 * font.c:
10304 * fns.c:
10305 * fileio.c:
10306 * emacs.c:
10307 * dispnew.c:
10308 * dispextern.h:
10309 * config.in:
10310 * atimer.c:
2ae37cf0 10311 * Makefile.in: Remove code for Carbon.
aac0c6e3 10312
f0131492 103132008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
10314
10315 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
10316
103172008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10318
10319 * macterm.h (kCGBitmapByteOrder32Host): New define for
10320 non-universal SDKs.
10321
10322 * image.c (mac_create_cg_image_from_image, image_load_image_io)
10323 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
10324
10325 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
10326 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
10327
103282008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
10329
10330 * w32inevt.c: Include dispextern.h.
10331
103322008-07-26 Andreas Schwab <schwab@suse.de>
10333
10334 * print.c (print_object): Fix off-by-one in last change.
10335
103362008-07-25 Juanma Barranquero <lekktu@gmail.com>
10337
10338 * term.c (syms_of_term): Don't initialize default_orig_pair,
10339 default_set_foreground and default_set_background on Windows.
10340
103412008-07-25 Jason Rumney <jasonr@gnu.org>
10342
10343 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
10344 ScriptItemize. Clean up return value checking. Remove unused
10345 variables.
10346 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
10347 shaping engine.
10348
10349 * w32font.c (w32font_has_char): Handle the case where we can't
10350 determine the script for a character.
10351
103522008-07-25 Chong Yidong <cyd@stupidchicken.com>
10353
10354 * term.c (syms_of_term): Initialize default_orig_pair,
10355 default_set_foreground, and default_set_background.
10356
10357 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
10358 clash (bug#86).
10359 (getloadavg): Callers changed.
10360
10361 * image.c (svg_load_image): Fix last change.
10362 (svg_load_image): Use rsvg_handle_get_dimensions to check that
10363 image size is valid. Use g_object_unref instead of deprecated
10364 rsvg_handle_free to free rsvg handle.
10365 (x_from_xcolors): Don't initialize pixmap (silence compiler).
10366
103672008-07-25 Jason Rumney <jasonr@gnu.org>
10368
10369 * w32font.c (w32font_encode_char): Encode characters outside BMP as
10370 surrogates before looking up glyph index.
10371 (w32font_text_extents): Encode as surrogates if falling back to
10372 functions that need UTF-16 wide chars.
10373
10374 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
10375 BMP as surrogates before looking up glyph index.
10376
103772008-07-25 Chong Yidong <cyd@stupidchicken.com>
10378
10379 * image.c (svg_load_image): Check for failure in return value of
10380 rsvg_handle_get_pixbuf. Free rsvg handle when done.
10381
103822008-07-25 Jason Rumney <jasonr@gnu.org>
10383
10384 * w32font.c (Fx_select_font): Reverse sense of second arg.
10385
103862008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
10387
10388 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
10389 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
10390
10391 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
10392 (PURESIZE): Use it.
10393
103942008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
10395
10396 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
10397 * m/alpha.h (TEXT_END):
10398 * m/ibmrs6000.h (TEXT_END):
10399 * m/macppc.h (TEXT_END):
10400 * s/darwin.h (TEXT_END):
10401 * s/msdos.h (TEXT_END): Remove, unused.
10402 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
10403 * s/cygwin.h: Remove comment.
10404
10405 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
10406 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
10407 * m/intel386.h (DOT_GLOBAL_START):
10408 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
10409 (USG): Remove, file not used on USG platforms.
10410
10411 * Makefile.in (HAVE_X11): Remove empty #else.
10412
104132008-07-24 Andreas Schwab <schwab@suse.de>
10414
10415 * fileio.c (Finsert_file_contents): Properly adjust undo list
10416 after format conversion.
10417
104182008-07-24 Jan Djärv <jan.h.d@swipnet.se>
10419
10420 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
10421 (menu_nav_ended): Remove.
10422 (create_menus): Remove signal connect for menu_nav_ended.
10423 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
10424 create_menus.
10425 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
10426
104272008-07-23 Jason Rumney <jasonr@gnu.org>
10428
10429 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
10430 with opened font.
10431 (w32font_open): Set font type to gdi.
10432
10433 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
10434
104352008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
10436
10437 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
10438 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
10439 defines it.
10440 * unexec.c (ADDR_CORRECT): Define unconditionally.
10441
10442 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
10443
10444 * unexec.c: Remove code depending on !COFF and USG, the file is
10445 not used for such systems.
10446
10447 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
10448 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
10449 (LD_SWITCH_SYSTEM_1): Remove, update users.
10450
10451 * s/darwin.h (DATA_END):
10452 * m/intel386.h (DATA_END):
10453 * m/ibmrs6000.h (DATA_END):
10454 * m/alpha.h (DATA_END): Remove, unused.
10455
10456 * config.in: Regenerate.
10457 * s/ms-w32.h (subprocesses): Define unconditionally.
10458 * s/template.h (subprocesses): Update comment.
10459 * s/vms.h (subprocesses):
10460 * s/usg5-4.h (subprocesses):
10461 * s/hpux10-20.h (subprocesses):
10462 * s/gnu-linux.h (subprocesses):
10463 * s/cygwin.h (subprocesses):
10464 * s/bsd-common.h (subprocesses):
10465 * s/aix4-2.h (subprocesses):
10466 * s/darwin.h (subprocesses): Do not define, defined by default now.
10467
10468 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
10469 Remove all references.
10470 (temacs): Add GNUstep specific ld flags.
10471
10472 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
10473 similarly to what X does.
10474
104752008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10476
10477 * nsfns.m (x-list-fonts): Remove.
10478 (syms_of_nsfns): Drop the x-list-fonts declaration.
10479 * nsterm.m: Get rid of remaining "//" comments.
10480
104812008-07-22 Chong Yidong <cyd@stupidchicken.com>
10482
10483 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
10484
10485 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
10486 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
10487 (Fns_own_selection_internal, Fx_disown_selection_internal)
10488 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
10489
10490 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
10491 ... */' style of docstrings. Doc fixes.
10492
104932008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
10494
10495 * terminfo.c (UP, BC, PC): Undo previous change.
10496
10497 * nsfns.m: Rename ns prefixed functions/variables to the
10498 corresponding x versions. Update references.
10499
105002008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
10501
10502 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
10503
105042008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
10505
10506 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
10507 Remove forwarding functions.
10508 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
10509 non-static.
10510 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
10511 non-static.
10512 (ns_frame_parm_handlers): Use the new names.
10513 (syms_of_nsfns): Move to the end of file.
10514
10515 * nsterm.m (syms_of_nsterm): Move to the end of file.
10516
10517 * dispnew.c (init_display): Remove code for X10.
10518
105192008-07-22 Jason Rumney <jasonr@gnu.org>
10520
10521 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
10522 bare drive.
10523
105242008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10525
10526 * nsterm.m (syms_of_nsterm): Remove debugging println.
10527
105282008-07-22 David Reitter <david.reitter@gmail.com>
10529
10530 * nsfns.m (do_applescript, F_do_applescript): NS version of the
10531 Carbon implementation of the same functionality: execute arbitrary
10532 AppleScript code.
10533
105342008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10535
10536 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
10537 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
10538 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
10539 (Fx_display_mm_height, Fx_display_mm_width)
10540 (Fx_display_backing_store, Fx_display_visual_class)
10541 (Fx_display_save_under, Fx_open_connection)
10542 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
10543 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
10544 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
10545 (Fx_display_pixel_width, Fx_display_pixel_height)
10546 (Fx_display_usable_bounds, Fx_display_planes)
10547 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
10548 ... */' style of docstrings.
10549
105502008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
10551
10552 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
10553 on this platform.
10554 (mips):
10555 * m/iris4d.h (mips): Do not define.
10556 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
10557
10558 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
10559
10560 * image.c:
10561 * nsfns.m:
10562 * nsselect.m:
10563 * nsterm.h:
10564 * nsterm.m: Rename ns prefixed functions/variables to the
10565 corresponding x versions. Update references.
10566
10567 * m/ibms390x.h (NO_REMAP): Do not undefine.
10568
10569 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
10570
105712008-07-21 Chong Yidong <cyd@stupidchicken.com>
10572
10573 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
10574 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
10575 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
10576 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
10577 (Fns_display_mm_height, Fns_display_mm_width)
10578 (Fns_display_backing_store, Fns_display_visual_class)
10579 (Fns_display_save_under, Fns_open_connection)
10580 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
10581 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
10582 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
10583 (Fns_display_pixel_width, Fns_display_pixel_height)
10584 (Fns_display_usable_bounds, Fx_display_planes)
10585 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
10586
105872008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
10588
10589 * print.c (print_object): Check print_depth before searching for
10590 circularities.
10591
105922008-07-21 Michael Albinus <michael.albinus@gmx.de>
10593
10594 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
10595 only sprintf.
10596
105972008-07-21 Kenichi Handa <handa@m17n.org>
10598
10599 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
10600
106012008-07-20 Andreas Schwab <schwab@suse.de>
10602
10603 * syntax.c (find_start_pos, find_start_value)
10604 (find_start_value_byte, find_start_begv, find_defun_start)
10605 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
10606
106072008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
10608
10609 * s/sol2-3.h: Insert contents of s/sol2.h.
10610 (LD_SWITCH_SYSTEM): Remove redundant definition.
10611 * s/sol2.h: Remove, unused.
10612
106132008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10614
10615 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
10616
106172008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10618
10619 * Makefile.in (ns_appdir): Fix typo in find command.
10620
106212008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
10622
10623 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
10624
10625 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
10626 added not supported anymore.
10627
10628 * s/usg5-4-2.h (LIBS_SYSTEM):
10629 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
10630
10631 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10632 * s/lynxos.h (GETPGRP_NO_ARG):
10633 * s/hpux10-20.h (NO_SIOCTL_H):
10634 * s/gnu.h (GETPGRP_NO_ARG):
10635 * s/gnu-linux.h (NO_SIOCTL_H):
10636 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10637 * s/cygwin.h (GETPGRP_NO_ARG):
10638 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
10639 (C_DEBUG_SWITCH): Remove duplicate definition.
10640
10641 * m/ibms390.h: Remove boilerplate comments.
10642
10643 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
10644
10645 * process.c (HAVE_SERIAL): Consolidate ifdefs.
10646 (wait_reading_process_output): Remove code for SunOS, platform not
10647 supported anymore. Use SOLARIS2 instead of sun.
10648
106492008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10650
10651 * font.c (font_open_by_name): Under NS, default lface height to zero.
10652 (font_open_for_lface): Under NS, set size based on frame fontsize.
10653 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
10654 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
10655
106562008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10657
10658 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
10659 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
10660 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
10661 YES/NO.
10662 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
10663 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
10664 * Makefile.in (clean): Clear out build destination dir.
10665
106662008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10667
10668 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
10669 xterm, xselect.
10670 * lisp.h: Remove declaration of hash_remove.
10671 * nsgui.h: Remove redefinitions of hash_remove.
10672 * fns.c (hash_remove): Rename to hash_remove_from_table.
10673
106742008-07-19 Seiji Zenitani <zenitani@mac.com>
10675
10676 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
10677 strdup() the family UTF8String before modifying it.
10678
106792008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10680
10681 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
10682 NS_FACE_BACKGROUND with 0 instead of nil.
10683 * nsfont.m (nsfont_draw): Same.
10684
106852008-07-19 Chong Yidong <cyd@stupidchicken.com>
10686
10687 * nsfns.m (ns_set_background_color): Fix crash.
10688
106892008-07-18 Chong Yidong <cyd@stupidchicken.com>
10690
10691 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
10692
106932008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
10694
10695 * puresize.h (BASE_PURESIZE): Increase to 1240000.
10696
106972008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10698
10699 * gtkutil.c: Include <config.h> instead of "config.h".
10700
10701 * lisp.h (Foverlay_buffer): Add EXFUN.
10702
10703 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
10704 child process to complete child_setup. Undo 2005-09-21 change.
10705
10706 * s/darwin.h: Mention setsid after vfork.
10707
107082008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10709
10710 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
10711 Depend on macgui.h.
10712
10713 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
10714 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
10715
10716 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
10717 and f19.
10718 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
10719
10720 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
10721 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
10722 Remove enumerators.
10723
10724 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
10725 Check if FACE_FROM_ID returns NULL.
10726
107272008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
10728
10729 * w32inevt.c (change_frame_size): Remove extern declaration.
10730 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
10731 change_frame_size.
10732
107332008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
10734
10735 * getloadavg.c: Revert last change (2008-07-15).
10736
107372008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
10738
10739 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 10740 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
10741 from configure.
10742
107432008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
10744
10745 * s/sol2.h:
10746 * s/sol2-4.h: Reorganize conditionals.
10747
10748 * ecrt0.c: Remove code depending on m68000, not used anymore.
10749
10750 * fns.c (hash_remove): Make static.
10751 * lisp.h (hash_remove): Don't prototype.
10752
10753 * m/ibmrs6000.h:
10754 * m/ibms390x.h:
10755 * m/macppc.h: Remove boilerplate comments.
10756
10757 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
10758 Solaris, which does not need them.
10759
10760 * m/vax.h: Remove comments about unsupported systems.
10761
10762 * s/darwin.h: Reorganize ifdefs.
10763
107642008-07-17 Andreas Schwab <schwab@suse.de>
10765
10766 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
10767
107682008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
10769
10770 Use SDATA. Follow coding convention of placing operators at
10771 beginning of next line rather than end of previous line, and placing
10772 spaces around infix operators.
10773
10774 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
10775 in case it was defined already.
10776 USE @GNUSTEP_MAKEFILES@ rather than envvars.
10777 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
10778 ns_default.
10779 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
10780 Lisp_Objects.
10781 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
10782 (ns_defined_color, ns_color_to_lisp): Declare.
10783 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
10784 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
10785 it's accepted even with USE_LISP_UNION_TYPE.
10786 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
10787 (update_frame_tool_bar): Remove apparently obsolete tests for
10788 non-integerness of f->tool_bar_lines.
10789 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
10790 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
10791 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
10792 (nsfont_open): Don't confuse NULL for Qnil.
10793 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
10794 * menu.h (find_and_call_menu_selection):
10795 * menu.c (find_and_call_menu_selection): Use just int for vector size.
10796 (find_and_return_menu_selection): Always return something.
10797 * frame.h: Include dispextern.h for Display_Info.
10798 (display_x_get_resource): Declare.
10799
108002008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
10801
10802 * syntax.c: Remove stdio.h include accidentally introduced in
10803 Emacs.app commit.
10804 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
10805 NS_IMPL_COCOA.
10806 * keyboard.c (handle_async_input, input_available_signal): Remove
10807 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
10808
108092008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
10810
10811 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
10812 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
10813 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
10814 Use SDATA.
10815
10816 * keymap.c: Remove all NS-specific code.
10817 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
10818 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
10819 where_is_preferred_modifier, return a different value depending on how
10820 preferred is the binding.
10821 (where_is_internal): Adjust accordingly.
10822 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
10823 Adjust to new preferred_sequence_p.
10824 (syms_of_keymap): Declare `where-is-preferred-modifier'.
10825 * keyboard.c (parse_solitary_modifier): Not static any more.
10826 * keyboard.h (parse_solitary_modifier): Declare.
10827
108282008-07-16 Andreas Schwab <schwab@suse.de>
10829
10830 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
10831 of easymenu.
10832
108332008-07-16 Chong Yidong <cyd@stupidchicken.com>
10834
10835 * xdisp.c (move_it_in_display_line): Account for word wrap, so
10836 that we don't move off the line.
10837
108382008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
10839
10840 * keyboard.c (Qsuper): Remove.
10841 (parse_menu_item): Don't call where_is_internal specially for NS.
10842
108432008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10844
10845 * s/gnu-linux.h: Remove boilerplate comments.
10846
10847 * m/alpha.h (__ELF__): Consolidate conditions.
10848
10849 * m/m68k.h (linux): Use GNU_LINUX instead.
10850 Remove boilerplate comments.
10851
10852 * m/intel386.h: Undo refactoring from previous change.
10853 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
10854 too, remove dead code.
10855 (linux): Use GNU_LINUX instead.
10856
108572008-07-16 Jason Rumney <jasonr@gnu.org>
10858
10859 * w32gui.h: Repeat 26 June changes lost by last change.
10860
108612008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10862
10863 * systty.h: Remove code for Aix on 386, unsupported platform.
10864
10865 * s/ms-w32.h: Remove boilerplate comments.
10866 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
10867
10868 * s/gnu-linux.h (TERM): Remove support.
10869 (HAVE_SYSVIPC): Remove, unused.
10870 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
10871 for this system.
10872
10873 * process.c: Remove support for IRIS, unused.
10874 Remove support for TERM, not relevant anymore.
10875
10876 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
10877 used with the definition.
10878
10879 * s/aix4-2.h (static): Do not undef.
10880
10881 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
10882 only used on Aix.
10883 (HAVE_SYSVIPC): Remove, unused.
10884
10885 * m/hp800.h (CANNOT_DUMP): Do not undef.
10886
10887 * m/alpha.h: Fix comment.
10888
10889 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
10890 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
10891 used by this configuration.
10892 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
10893 * unexec.c: Remove code depending on HPUX and
10894 USG_SHARED_LIBRARIES, not used with this file. Remove code
10895 depending on IRIS, unused. Remove if 0-ed code.
10896
10897 * s/template.h: Remove comments about static.
10898
10899 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
10900 Remove if 0-ed code.
10901 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
10902 were the same as the default.
10903 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
10904 Remove boilerplate comments.
10905 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
10906 (HAVE_SYSVIPC): Remove, unused.
10907 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
10908
10909 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10910 Remove boilerplate comments.
10911 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10912 Remove boilerplate comments.
10913 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10914 Remove boilerplate comments.
10915 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
10916
10917 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
10918 USG systems which do not use DATA_SEG_BITS.
10919 Refactor code. Remove boilerplate comments.
10920
10921 * m/ibms390.h:
10922 * m/m68k.h:
10923 * s/bsd-common.h:
10924 * s/cygwin.h:
10925 * s/darwin.h:
10926 * s/freebsd.h:
10927 * s/gnu.h:
10928 * s/msdos.h: Remove boilerplate comments.
10929
10930 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 10931 do not use this file.
aac0c6e3
MR
10932 (IRIS_4D): Remove, unused.
10933
10934 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 10935 do not use this file.
aac0c6e3
MR
10936 (SIGN_EXTEND_CHAR):
10937 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
10938 * unexmips.c: Remove file, unused.
10939
10940 * editfns.c (Fuser_full_name): Replace the only use of
10941 USER_FULL_NAME with its value.
10942 * config.in: Regenerate.
10943
109442008-07-16 David Reitter <david.reitter@gmail.com>
10945
10946 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
10947 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
10948
109492008-07-16 Glenn Morris <rgm@gnu.org>
10950
10951 * emacs.c (system-type): Doc fix.
10952
109532008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
10954
10955 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
10956 If the cache doesn't work, let's fix it, rather than work around it.
10957
109582008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10959
10960 * Makefile.in: Correct additions for nsfont.o in last commit.
10961 * nsfont.m: New file (forgot last commit).
10962
109632008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
10964
10965 * callproc.c (set_initial_environment): Initialize
10966 Vprocess_environment under CANNOT_DUMP (fixes crash when
10967 batch-compiling for bootstrap).
10968
109692008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 10970 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
10971
10972 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
10973 fix crash due to different init order.
10974
109752008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10976
10977 Changes and additions for NeXTstep windowing system (Cocoa and
10978 GNUstep) support.
10979
10980 * Makefile.in:
10981 * config.in: Support defines and build commands for NS port.
10982 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
10983 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
10984 * dispextern.h: Include nsgui.h and add needed typedefs under NS
10985 windowing.
10986 (struct face): Add synth_ital field.
10987 * dispnew.c: Include nsterm.h when compiling under NS windowing.
10988 (init_display): Initialize Vinitial_window_system to "ns" when so
10989 compiled.
10990 * emacs.c: Include GSConfig.h when compiling under GNUstep.
10991 (display_arg): Use under NS.
10992 (main): Under NS, allocate autorelease pool and handle command line
10993 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
10994 (standard_args): Add NS-specific args.
10995 (shut_down_emacs): Shut down NS terminal if compiled under NS.
10996 * font.c (DEFAULT_ENCODING): New variable.
10997 (font_find_for_lface): Use it.
10998 (syms_of_font): Load syms_of_nsfont under NS.
10999 * font.h: Declare nsfont_driver when compiled under NS.
11000 * fontset.c: When compiling under NS, include nsterm.h.
11001 (fontset_from_font): Autoconstruct fontset under NS.
11002 * frame.c (various): Under NS, include nsterm.h, add Qns window system
11003 symbol, document and use it.
11004 (do_switch_frame): When for_deletion under Cocoa, add
11005 Fraise_frame(Qnil).
11006 (x_set_frame_parameters): Ensure font attribute changes are picked up.
11007 (x_get_arg): Allow "yes" and "no" as boolean values.
11008 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
11009 Qright under Cocoa.
11010 (focus-follows-mouse): Default to 0 under NS.
11011 * frame.h (enum output_method): Add output_ns.
11012 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
11013 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
11014 (FRAME_WINDOW_P): NS-specific definition.
11015 * fringe.c (max_used_fringe_bitmap): Make public.
11016 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
11017 (getloadavg): Use NeXT code under descendant OS's.
11018 * image.c (includes and header section, x_create_bitmap_from_data)
11019 (x_create_bitmap_from_file, free_bitmap_record, image_background)
11020 (image_background_transparent, x_clear_image_1)
11021 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
11022 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
11023 (x_to_xcolors, x_from_xcolors, x_disable_image)
11024 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
11025 other GUIs, including XPM support using code originally written for
11026 Carbon GUI.
11027 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
11028 using NS API.
11029 (image_ascent): Use font metrics macros instead of direct struct field
11030 access.
11031 * keyboard.c (includes): Add nsterm.h when compiling under NS.
11032 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
11033 Also, handle NS as GTK for menu bar purposes.
11034 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
11035 toolkit where they differ.
11036 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
11037 use cachelist, still needed under NS.
11038 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
11039 (struct widget_value): Define it here for menu.c.
11040 * keymap.c (includes): Include modifier internals.
11041 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
11042 NS.
11043 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
11044 support for preferring sequences using certain modifiers, specified by
11045 the FIRSTONLY argument.
11046 * lisp.h (hash_remove): Rename to avoid name clash when compiling
11047 under NS GNUstep implementation.
11048 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
11049 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
11050 * menu.c: Include nsterm.h under NS.
11051 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
11052 (free_menubar_widget_tree_value, update_submenu_strings)
11053 (find_and_call_menu_selection): Treat NS as X and NT.
11054 (find_and_return_menu_selection): New function, used for popup menus.
11055 * nsgui.h:
11056 * nsterm.h:
11057 * nsfns.m:
11058 * nsimage.m:
11059 * nsmenu.m:
11060 * nsselect.m:
11061 * nsterm.m: New files.
11062 * process.c (wait_reading_process_output): Under NS, call ns_select()
11063 instead of plain select().
11064 * syntax.c (char_quoted): Under NS, avoid a crash when called near
11065 beginning of buffer.
11066 * sysselect.h (init_process): Rename when compiling under Cocoa to
11067 avoid name conflict.
11068 * termhooks.h (display_info): Add ns_display_info to union.
11069 * terminal.c (Fterminal_live_p): Add ns to terminal types.
11070 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
11071 COCOA environment.
11072 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
11073 unexec() signature. (Note, this will dump, but the resulting file
11074 crashes; unexosx is used instead; keeping around for reference and
11075 possible aid in getting dump working under GNUstep.)
11076 * w32gui.h (button_type, widget_value): Remove definitions (now in
11077 keyboard.h).
11078 * window.c: Include nsterm.h when compiling under NS.
11079 * xdisp.c (includes): Include nsterm.h when compiling under NS.
11080 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
11081 other GUI windowing systems.
11082 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
11083 GTK.
11084 (x_consider_frame_title): Under NS, set icon type and frame
11085 modified-state indicator; use ns_set_name_as_filename() when using
11086 formatted title.
11087 (update_window_cursor): Make public when compiling under NS.
11088 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
11089 (hourglass_atimer, Vhourglass_delay
11090 * xfaces.c (header section, init_frame_faces, clear_font_table)
11091 (defined_color, unload_color, x_face_list_fonts)
11092 (prepare_face_for_display): Add NS support parallel to other GUIs.
11093 Emulate GCs like other non-X GUIs.
11094 (split_font_name): Don't lowercase font name under NS.
11095 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
11096 under NS.
11097 * s/darwin.h: Add support for compilation under NS.
11098
110992008-07-15 Jason Rumney <jasonr@gnu.org>
11100
11101 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
11102 (w32_show_hourglass): Rename from show_hourglass.
11103 (w32_hide_hourglass): Rename from hide_hourglass.
11104 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
11105 (Vhourglass_delay): Declare extern.
11106 (hourglass_started): Remove.
11107
11108 * xdisp.c (Vhourglass_delay): Remove static.
11109 (hourglass_started, start_hourglass, cancel_hourglass):
11110 Don't include these versions on WINDOWSNT.
11111
111122008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11113
11114 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
11115 variables (formerly in xfns.c).
11116 (show_hourglass, hide_hourglass): New prototypes (same).
11117 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
11118 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
11119 in xfns.c).
11120 (syms_of_xdisp): Declare/initialize display-hourglass,
11121 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
11122 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
11123 formerly in xfns.c.
11124 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
11125 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
11126 (start_hourglass, cancel_hourglass): Remove.
11127 (show_hourglass, hide_hourglass): Remove prototypes and static
11128 modifiers.
11129 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
11130 hourglass_atimer, hourglass_shown_p declaration/initialization.
11131 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
11132 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
11133 (start_hourglass, cancel_hourglass): Remove.
11134 (show_hourglass, hide_hourglass): Remove prototypes and static
11135 modifiers.
11136 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
11137 hourglass_atimer, hourglass_shown_p declaration/initialization.
11138 * w32fns.c (display_hourglass_p, Vhourglass_delay)
11139 (DEFAULT_HOURGLASS_DELAY): Remove.
11140 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
11141 hourglass_shown_p declaration/initialization.
11142
111432008-07-14 Jason Rumney <jasonr@gnu.org>
11144
11145 * w32fns.c (w32_get_arg): Remove wrapper function.
11146 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
11147 directly.
11148 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
11149
111502008-07-14 Kenichi Handa <handa@m17n.org>
11151
11152 * xfont.c (xfont_open): Add workaround for X's bug.
11153
111542008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
11155
11156 * fontset.c: Include <stdio.h> unconditionally.
11157
111582008-07-13 Michael Albinus <michael.albinus@gmx.de>
11159
11160 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
11161 for filtering.
11162
111632008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
11164
11165 * s/vms.h: Use __GNUC__ instead of _GNUC_.
11166
11167 * m/macppc.h:
11168 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
11169
11170 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
11171 (SPECIAL_EMACS_INT):
11172 * m/ia64.h (SPECIAL_EMACS_INT):
11173 * m/amdx86-64.h (SPECIAL_EMACS_INT):
11174 * s/gnu.h (NLIST_STRUCT):
11175 * s/aix4-2.h (X11R5_INHIBIT_I18N):
11176 * s/gnu-linux.h (LINUX):
11177 * s/msdos.h (HAVE_FACES):
11178 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
11179
11180 * systty.h:
11181 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
11182 anymore.
11183
111842008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
11185
11186 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
11187 always defined as int.
11188
11189 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
11190 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
11191 * s/gnu-linux.h (HAVE_WAIT_HEADER):
11192 * s/freebsd.h (HAVE_WAIT_HEADER):
11193 * s/bsd-common.h (HAVE_UNION_WAIT):
11194 * s/aix4-2.h (HAVE_WAIT_HEADER):
11195 * m/mips.h (HAVE_UNION_WAIT):
11196 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
11197 (COFF, static): Do not define, they are undefined later in the file.
11198
11199 * process.c (update_status): Don't use a union.
11200 (status_convert):
11201 (sigchld_handler): Use int instead of WAITTYPE.
11202
112032008-07-12 Chong Yidong <cyd@stupidchicken.com>
11204
11205 * indent.c (Fvertical_motion): Restore hscroll before moving to
11206 goal column.
11207
112082008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
11209
11210 * lisp.h: Remove left over code.
11211
112122008-07-11 Andreas Schwab <schwab@suse.de>
11213
11214 * lisp.h: Fix logic in last change.
11215
11216 * menu.h: New file.
11217 * menu.c: Include it.
11218 * xmenu.c: Likewise.
11219 * Makefile.in: Update dependencies.
11220
112212008-07-11 Kenichi Handa <handa@m17n.org>
11222
11223 * fontset.c (fontset_from_font): Cancel the previous change.
11224
112252008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
11226
11227 * lisp.h:
11228 * w32heap.c:
11229 * emacs.c:
11230 * alloc.c: Replace all references of NO_UNION_TYPE with
11231 USE_LISP_UNION_TYPE.
11232
11233 * m/xtensa.h (NO_UNION_TYPE):
11234 * m/vax.h (NO_UNION_TYPE):
11235 * m/template.h (NO_UNION_TYPE):
11236 * m/sparc.h (NO_UNION_TYPE):
11237 * m/mips.h (NO_UNION_TYPE):
11238 * m/macppc.h (NO_UNION_TYPE):
11239 * m/m68k.h (NO_UNION_TYPE):
11240 * m/iris4d.h (NO_UNION_TYPE):
11241 * m/intel386.h (NO_UNION_TYPE):
11242 * m/ibms390x.h (NO_UNION_TYPE):
11243 * m/ibms390.h (NO_UNION_TYPE):
11244 * m/ibmrs6000.h (NO_UNION_TYPE):
11245 * m/ia64.h (NO_UNION_TYPE):
11246 * m/hp800.h (NO_UNION_TYPE):
11247 * m/arm.h (NO_UNION_TYPE):
11248 * m/amdx86-64.h (NO_UNION_TYPE):
11249 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
11250 defining it the same.
11251
112522008-07-10 Chong Yidong <cyd@stupidchicken.com>
11253
11254 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
11255
112562008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
11257
11258 * fileio.c:
50426a04 11259 * sysdep.c:
aac0c6e3
MR
11260 * systty.h:
11261 * m/ibmrs6000.h:
11262 * m/iris4d.h:
11263 * s/aix4-2.h:
11264 * s/freebsd.h:
11265 * s/gnu-linux.h:
11266 * s/hpux10-20.h:
11267 * s/hpux11.h:
11268 * s/netbsd.h:
11269 * s/sol2-3.h:
11270 * s/sol2-4.h:
11271 * s/sol2.h:
11272 * s/usg5-4.h:
11273 * s/vms.h: Remove references to unused variables.
11274
112752008-07-10 Andreas Schwab <schwab@suse.de>
11276
11277 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
11278 pattern before matching the generic family.
11279
112802008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
11281
11282 * unexec.c:
11283 * s/vms.h:
11284 * s/usg5-4-2.h:
11285 * s/sol2-5.h:
11286 * s/freebsd.h:
11287 * s/darwin.h: Remove dead code.
11288
11289 * m/template.h:
11290 * m/sparc.h:
11291 * m/mips.h:
11292 * m/m68k.h:
11293 * m/iris4d.h:
11294 * m/intel386.h:
11295 * m/ibms390x.h:
11296 * m/ibms390.h:
11297 * m/ia64.h:
11298 * m/hp800.h:
11299 * m/arm.h:
11300 * m/amdx86-64.h: Remove dead code and references to unused
11301 and compiler defined symbols.
11302
11303 * unexmips.c:
11304 * unexelf.c: Remove references to desupported systems.
11305
11306 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
11307
11308 * m/powermac.h: Remove boilerplate comments.
11309 (NO_REMAP): Remove unused definition.
11310
11311 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
11312 define them.
11313
113142008-07-10 Kenichi Handa <handa@m17n.org>
11315
11316 * xfont.c (xfont_open): Log the reason of failure.
11317
113182008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
11319
11320 * fontset.c (fontset_get_font_group):
11321 * font.c (font_check_otf): Specify argument types.
11322
113232008-07-09 Kenichi Handa <handa@m17n.org>
11324
11325 * coding.c (detect_coding_utf_8): Set detect_info->found only when
11326 non-ASCII char is found.
11327
11328 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
11329 (reorder_font_vector): Change the arg preferred_family to font.
11330 Prefer the spec matching with font.
11331 (fontset_get_font_group): New function.
11332 (fontset_find_font): Change the format of an element of a realized
11333 fontset. Use fontset_get_font_group.
11334 (fontset_font): Try the current fontset, the default fontset, the
11335 fallbacks of the current fontset, and the fallbacks of the default
11336 fontset in this order.
11337 (face_for_char): Delete the shortcut to use the current font.
11338 (fontset_from_font): Don't set fonts for Latin in the fontset.
11339
11340 * font.h (font_make_object, font_match_p): Adjust prototypes.
11341
11342 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
11343
11344 * font.c (font_make_object): New arg entity and pixelsize.
11345 (font_check_otf_features, font_check_otf): New functions.
11346 (font_match_p): Check :lang, :script, and :otf properties.
11347
11348 * xfont.c (xfont_open): Adjust it for the change of
11349 font_make_object.
11350 (xfont_text_extents): Fix initial setting of metrics.
11351
11352 * ftfont.c (struct ftfont_info): New member index, delete member
11353 fc_charset_idx. Make the member order compatible with struct
11354 xftfont_info.
11355 (fc_charset_table): Change charset names to registry names.
11356 (ftfont_pattern_entity): Delete the args registry and
11357 fc_charset_idx. Change the value of :font-entity property
11358 to (FONTNAME . INDEX). Always set :registry property to
11359 `iso10646-1'.
11360 (struct ftfont_cache_data): New struct.
11361 (ftfont_lookup_cache): New arg for_face.
11362 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
11363 (ftfont_driver): Set the member otf_capability.
11364 (ftfont_get_charset): Adjust it for the change of
11365 fc_charset_table.
11366 (OTF_TAG_SYM): New macro.
11367 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
11368 for the change of fc_charset_table.
11369 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
11370 ftfont_pattern_entity. Add FC_INDEX to objset.
11371 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
11372 and ftfont_pattern_entity.
11373 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
11374 font_make_object, struct ftfont_info.
11375 (ftfont_has_char): Use ftfont_get_fc_charset.
11376 (ftfont_otf_features, ftfont_otf_capability): New functions.
11377 (ftfont_shape): Use ftfont_get_otf.
11378 (ftfont_text_extents): Fix initial setting of metrics.
11379
11380 * xftfont.c (struct xftfont_info): New member ft_size. Make the
11381 member order compatible with struct ftfont_info.
11382 (xftfont_open): Add FC_CHARSET to the pattern. Set
11383 xftfont_info->ft_size. Don't unlock the face. Check BDF
11384 properties if appropriate.
11385 (xftfont_close): Unlock the face.
11386 (xftfont_anchor_point, xftfont_shape): Deleted.
11387 (syms_of_xftfont): Don't set members anchor_point and shape of
11388 xftfont_driver.
11389
11390 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
11391 font_make_object.
11392
11393 * w32font.c (w32font_open): Adjust it for the change of
11394 font_make_object.
11395 (w32font_open_internal): Don't set properties of font_object here.
11396
113972008-07-08 Chong Yidong <cyd@stupidchicken.com>
11398
11399 * macfns.c (x_create_tip_frame):
11400 * w32fns.c (x_create_tip_frame):
11401 * xfns.c (x_create_tip_frame): Pass parameter argument to
11402 face-set-after-frame-default.
11403
11404 * xfaces.c (Finternal_merge_in_global_face): Save merged
11405 attributes for the default face back into the face vector.
11406
114072008-07-08 Andreas Schwab <schwab@suse.de>
11408
11409 * fontset.h: Declare fontset_from_font. Don't declare
11410 new_fontset_from_font and fontset_from_font_name.
11411 * xterm.c: Include "fontset.h".
11412 * Makefile.in (xterm.o): Update dependencies.
11413
114142008-07-08 Glenn Morris <rgm@gnu.org>
11415
11416 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
11417 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
11418
114192008-07-07 Chong Yidong <cyd@stupidchicken.com>
11420
11421 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
11422 (x_set_frame_parameters): Don't bind it.
11423
114242008-07-07 Juanma Barranquero <lekktu@gmail.com>
11425
11426 * w32fns.c (map_w32_filename): Declare extern.
11427
114282008-07-07 Jason Rumney <jasonr@gnu.org>
11429
11430 * w32term.c (WS_EX_LAYERED): Define if not already.
11431
114322008-07-06 Chong Yidong <cyd@stupidchicken.com>
11433
11434 * xfaces.c (set_font_frame_param): Don't try to set the font
11435 parameter if it is still unspecified in the lface.
11436
114372008-07-05 Chong Yidong <cyd@stupidchicken.com>
11438
11439 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
11440 face if it didn't already exist.
11441
11442 * xdisp.c (try_window_id): Give up if word-wrapping is on.
11443
114442008-07-05 Andreas Schwab <schwab@suse.de>
11445
11446 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
11447
114482008-07-05 Chong Yidong <cyd@stupidchicken.com>
11449
11450 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
11451 word-wrapping.
11452 (IT_DISPLAYING_WHITESPACE): New macro.
11453 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
11454 when word-wrapping. Simplify word-wrapping logic. Use correct
11455 pixel positions when saving copies of the iterator.
11456 (display_line): Use proper wrap point if the last character on a
11457 line was preceded by whitespace.
11458
114592008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
11460
11461 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
11462
114632008-07-04 Kenichi Handa <handa@m17n.org>
11464
11465 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
11466
11467 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
11468
114692008-07-02 Jason Rumney <jasonr@gnu.org>
11470
11471 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 11472 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
11473
11474 * xdisp.c (next_element_from_display_vector): Move assignment out
11475 of if statement.
11476
114772008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
11478
11479 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
11480
11481 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
11482 (syms_of_fileio): Initialize and export them.
11483 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
11484
11485 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
11486 (Fsystem_move_file_to_trash): New function.
11487 (syms_of_w32fns): Export it to lisp.
11488
114892008-07-01 Jason Rumney <jasonr@gnu.org>
11490
11491 * w32font.c (w32font_text_extents): Don't count overhang as part
11492 of width.
11493
114942008-06-30 Miles Bader <miles@gnu.org>
11495
11496 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
11497 Add `avoid_cursor_p' field.
11498
11499 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
11500 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
11501 (append_glyph, append_composite_glyph, produce_image_glyph)
11502 (append_stretch_glyph): Initialize avoid_cursor_p.
11503 (get_it_property): Rename from `get_line_height_property'.
11504 (x_produce_glyphs): Use get_it_property.
11505 (handle_line_prefix, push_display_prop): New functions.
11506 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
11507 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
11508 New variables.
11509 (syms_of_xdisp): Initialize them.
11510
115112008-06-30 Kenichi Handa <handa@m17n.org>
11512
11513 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
11514 XftDefaultSubstitute (they are called in XftFontMatch).
11515 (xftfont_open): Fix args to ftfont_font_format.
11516
11517 * ftfont.c (fc_charset_table): New member lang.
11518 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 11519 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
11520 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
11521 (ftfont_open): Fix args to ftfont_font_format.
11522 (ftfont_font_format): New arg filename.
11523
115242008-06-30 Chong Yidong <cyd@stupidchicken.com>
11525
11526 * xfaces.c (Finternal_merge_in_global_face): If default face was
11527 modified, realize it again. Update the font face attribute.
11528
115292008-06-29 Jason Rumney <jasonr@gnu.org>
11530
11531 * w32term.c (x_set_frame_alpha): Fix logic.
11532
115332008-06-29 Kenichi Handa <handa@m17n.org>
11534
11535 * fontset.c (Finternal_char_font): Return font-object instead of
11536 font-name.
11537
11538 * composite.c (get_composition_id): Fix the width calculation for TAB.
11539
115402008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
11541
11542 * indent.c (Fvertical_motion): Properly handle float column arg.
11543
115442008-06-28 Jason Rumney <jasonr@gnu.org>
11545
11546 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
11547 (pfnSetLayeredWindowAttributes): New function pointer.
11548 (w32_initialize): Initialize it when supported.
11549 (x_set_frame_alpha): New function.
11550
11551 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
11552 (w32_frame_parm_handlers): Set alpha handler.
11553
11554 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
11555
115562008-06-27 Jason Rumney <jasonr@gnu.org>
11557
11558 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
11559 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
11560 (w32_to_x_charset, x_to_w32_charset)
11561 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
11562 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
11563 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
11564 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
11565 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
11566 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
11567 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
11568 (Qw32_charset_unicode): Remove.
11569 (syms_of_w32fns): Update for above changes.
11570
11571 * w32font.c (w32_to_x_charset, x_to_w32_charset)
11572 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
11573 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
11574 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
11575 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
11576 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
11577 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
11578 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
11579 (syms_of_w32font): Update for above changes.
11580
115812008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
11582
11583 * s/usg5-4.h: Fix previous change: keep the correct branch of a
11584 removed #if.
11585 (USG_SHARED_LIBRARIES): Remove duplicate definition.
11586
115872008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 11588 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
11589
11590 * makefile.w32-in (LOCAL_FLAGS):
11591 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
11592
11593 * sysdep.c (_spawnlp, _getpid):
11594 Declare with explicit _cdecl instead of _CRTAPI1.
11595
11596 * editfns.c (Fget_internal_run_time):
11597 Check for WINDOWSNT with #ifdef, not #if.
11598
115992008-06-26 Jason Rumney <jasonr@gnu.org>
11600
11601 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
11602
11603 * w32term.c (x_draw_glyph_string_foreground)
11604 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
11605 Use FONT_HANDLE macro.
11606 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
11607
11608 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
11609 (uniscribe_encode_char): Use FONT_HANDLE macro.
11610
11611 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
11612 (w32font_text_extents): Use precast w32_font.
11613 (w32font_close): Free cached metrics.
11614 (w32font_open_internal): Allocate space for name on stack.
11615
116162008-06-26 Chong Yidong <cyd@stupidchicken.com>
11617
11618 * xdisp.c (extend_face_to_end_of_line): Fix last change.
11619
116202008-06-26 Jason Rumney <jasonr@gnu.org>
11621
11622 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
11623 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
11624
116252008-06-26 Juanma Barranquero <lekktu@gmail.com>
11626
11627 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
11628
116292008-06-26 Jason Rumney <jasonr@gnu.org>
11630
11631 * w32bdf.c, w32bdf.h: Remove obsolete files.
11632
11633 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
11634
11635 * w32gui.h: Don't include w32bdf.h.
11636 (XCharStruct, enum w32_char_font_type, W32FontStruct):
11637 Remove obsolete font support.
11638
11639 * w32font.h (struct w32font_info): Remove compat_w32_font.
11640 Add hfont member.
11641 (FONT_COMPAT): Remove obsolete macro.
11642
11643 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
11644 (w32font_encode_char, w32font_text_extents): Use new hfont member.
11645 (w32font_open_internal): Remove compat code. Set new hfont member.
11646 (Fx_select_font): Use new hfont member.
11647
11648 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
11649 (uniscribe_encode_char): Use new hfont member.
11650
11651 * w32term.c (x_draw_glyph_string_foreground)
11652 (x_draw_composite_glyph_string_foreground): Use new hfont member.
11653 (x_draw_glyph_string): Use metrics in w32font_info.
11654
116552008-06-26 Kenichi Handa <handa@m17n.org>
11656
11657 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
11658
116592008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
11660
11661 * unexnext.c:
11662 * m/ews4800.h:
11663 * m/hp9000s300.h:
11664 * m/ibm370aix.h:
11665 * m/mips-siemens.h:
11666 * m/ncr386.h:
11667 * m/next.h:
11668 * m/pmax.h:
11669 * m/powerpcle.h:
11670 * m/tandem-s2.h:
11671 * s/386bsd.h:
11672 * s/bsd386.h:
11673 * s/bsd4-1.h:
11674 * s/bsd4-2.h:
11675 * s/bsdos2-1.h:
11676 * s/bsdos2.h:
11677 * s/bsdos3.h:
11678 * s/bsdos4.h:
11679 * s/nextstep.h:
11680 * s/ultrix4-3.h:
11681 * s/usg5-0.h:
11682 * s/usg5-2-2.h:
11683 * s/usg5-2.h:
11684 * s/usg5-4-3.h:
11685 * s/ux4800.h:
11686 * s/uxpds.h:
11687 * s/uxpv.h: Remove support for obsolete systems.
11688 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 11689 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
11690 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
11691 Remove, insert contents in s/aix4-2.h.
11692 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
11693 * s/bsd4-3.h: Rename to ...
11694 * s/bsd-common.h: ... this.
11695 * data.c:
11696 * doc.c:
11697 * ecrt0.c:
11698 * emacs.c:
11699 * fileio.c:
11700 * floatfns.c:
11701 * keyboard.c:
11702 * mem-limits.h:
11703 * print.c:
11704 * process.c:
11705 * sysdep.c:
11706 * syssignal.h:
11707 * systty.h:
11708 * syswait.h:
11709 * term.c:
11710 * unexec.c:
11711 * unexelf.c:
11712 * unexhp9k800.c:
11713 * m/hp800.h:
11714 * m/ibmrs6000.h:
11715 * m/mips.h:
11716 * m/vax.h:
11717 * s/darwin.h:
11718 * s/freebsd.h:
11719 * s/gnu.h:
11720 * s/ms-w32.h:
11721 * s/msdos.h:
11722 * s/netbsd.h:
11723 * s/template.h: Remove references to obsolete variables.
11724
11725 * Makefile.in: Add dependencies for all unexec files.
11726 (admindir): Remove unused variable.
11727 (UNEXEC_SRC): Remove references.
11728
117292008-06-25 Chong Yidong <cyd@stupidchicken.com>
11730
11731 * xfns.c (x_default_font_parameter): If Xft is available, first
11732 try Monospace-12 for the default font.
11733
117342008-06-25 Jason Rumney <jasonr@gnu.org>
11735
11736 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
11737
117382008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
11739
11740 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
11741
11742 * buffer.c (syms_of_buffer): Remove default-word-wrap.
11743
117442008-06-25 Juanma Barranquero <lekktu@gmail.com>
11745
11746 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
11747 <scroll-conservatively>: Fix typo in docstring.
11748
11749 * xselect.c (Fx_send_client_event): Doc fix.
11750
117512008-06-25 Kenichi Handa <handa@m17n.org>
11752
11753 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
11754
11755 * font.c (font_parse_fcname): Remove unused variables.
11756 (font_sort_entites): Delete the arg SPEC. Caller changed.
11757 Fix for the case of ! best_only.
11758 (font_delete_unmatched): Check DPI and AVGWIDTH too.
11759
11760 * lisp.h (Fstring_to_unibyte): EXFUN it.
11761
11762 * character.h (str_to_unibyte): Extern it.
11763
11764 * character.c (str_to_unibyte): New function.
11765
11766 * fns.c (Fstring_to_unibyte): New function.
11767 (syms_of_fns): Defsubr it.
11768
117692008-06-24 Kenichi Handa <handa@m17n.org>
11770
11771 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
11772 DPI too.
11773 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
11774
117752008-06-24 Andreas Schwab <schwab@suse.de>
11776
11777 * Makefile.in (${lispsource}loaddefs.el): Rename from
11778 ../lisp/loaddefs.el.
11779 (bootstrap-clean): Do what distclean does but don't remove
11780 Makefile.
11781 (distclean): Depend on bootstrap-clean and remove Makefile.
11782
117832008-06-24 Chong Yidong <cyd@stupidchicken.com>
11784
11785 * buffer.h (struct buffer): New member word_wrap.
11786
11787 * buffer.c (syms_of_buffer): New variables default-word-wrap and
11788 word-wrap.
11789 (init_buffer_once): Initialize them.
11790
11791 * dispextern.h (struct it): Replace bool truncate_lines_p with a
11792 line_wrap enum possessing three possible values.
11793
11794 * termopts.h: Replace truncate_partial_width_windows with
11795 Vtruncate_partial_width_windows.
11796
11797 * dispnew.c (direct_output_for_insert): Avoid direct output when
11798 inserting a space with word wrap on.
11799
11800 * indent.c (compute_motion): Obey integer values of
11801 truncate-partial-width-windows.
11802
11803 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
11804 replacing truncate_partial_width_windows.
11805 (init_iterator): If Vtruncate_partial_width_windows is an integer,
11806 truncate only if the window width is below that integer.
11807 (start_display, resize_mini_window, produce_stretch_glyph)
11808 (display_string, move_it_in_display_line_to): Use line_wrap.
11809 (back_to_previous_visible_line_start, reseat_1): Reset
11810 string_from_display_prop_p.
11811 (display_line): Extend default face to end of line when wrapping.
11812
118132008-06-24 Kim F. Storm <storm@cua.dk>
11814
11815 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
11816 to wrap continued lines at word boundaries.
11817
118182008-06-24 Jason Rumney <jasonr@gnu.org>
11819
11820 * font.c (Ffont_face_attributes): Multiply pixel size before point
11821 conversion to avoid multiplying rounding error.
11822
118232008-06-23 Jason Rumney <jasonr@gnu.org>
11824
11825 * w32term.c (x_draw_glyph_string_background)
11826 (x_draw_glyph_string): Remove old bdf font code.
11827
11828 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
11829
118302008-06-22 Kenichi Handa <handa@m17n.org>
11831
11832 * font.c (font_find_for_lface): Try the adstyle specified in
11833 the property of LFACE_FONT of LFACE (if any).
11834
118352008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 11836 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
11837
11838 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
11839
118402008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
11841
11842 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
11843 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
11844 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
11845 (witness-emacs): Remove.
11846 (lisp, shortlisp): Move loaddefs.el earlier.
11847 (mostlyclean): Forget about witness-emacs.
11848
118492008-06-22 Glenn Morris <rgm@gnu.org>
11850
11851 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
11852 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
11853
118542008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11855
11856 * Makefile.in (PRECOMP): Remove.
11857 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
11858 (witness-emacs): Run `compile-first'.
11859 (.el.elc): Use the new compile-onefile target.
11860
118612008-06-21 Kenichi Handa <handa@m17n.org>
11862
11863 * xftfont.c (xftfont_open): Handle QCembolden only when
11864 FC_EMBOLDEN is defined.
11865
118662008-06-21 Andreas Schwab <schwab@suse.de>
11867
11868 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
11869 (.el.elc): Likewise.
11870
118712008-06-21 Miles Bader <miles@gnu.org>
11872
11873 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
11874 build dir, not the lisp source dir.
11875
118762008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11877
11878 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
11879 (bootstrapclean): Remove.
11880 (.el.elc): New rule.
11881 (PRECOMP): New var.
11882 (../lisp/subdirs.el): Remove.
11883 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
11884 (witness-emacs): New target.
11885 (mostlyclean): Remove witness-emacs as well.
11886 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
11887 Add witness-emacs dependency.
11888
118892008-06-20 Chong Yidong <cyd@stupidchicken.com>
11890
11891 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
11892 defined by the font.
11893
118942008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11895
11896 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
11897 (bootstrap-clean): New target that keeps TAGS around.
11898 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
11899 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
11900
119012008-06-20 Jason Rumney <jasonr@gnu.org>
11902
11903 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
11904 Remove obsolete font code.
11905
11906 * w32font.c (font_matches_spec): Use csb bitfield from font signature
11907 to determine language support.
11908
119092008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11910
11911 * sysdep.c (cfsetspeed): New fun extracted from the code.
11912 (cfmakeraw): Move before first use.
11913
119142008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
11915
11916 * sysdep.c (cfmakeraw): Provide fallback implementation.
11917 (serial_configure): Provide fallback implementation of cfsetspeed.
11918
119192008-06-20 Kenichi Handa <handa@m17n.org>
11920
11921 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
11922 the pattern.
11923
11924 * fontset.c (fontset_from_font): Copy font_spec before changing
11925 the elements.
11926
11927 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
11928
119292008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11930
11931 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
11932 for explicit `font' parameters.
11933
11934 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
11935
119362008-06-19 Kenichi Handa <handa@m17n.org>
11937
11938 * frame.c: Include <ctype.h>.
11939 (x_set_font_backend): Allow spacing characters in the X resource
11940 for FontBackend.
11941
119422008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
11943
11944 * w32fns.c, xfns.c (Qfont_param): New var.
11945 (syms_of_w32fns): Initialize it.
11946 (x_default_font_parameter): Record explicit `font' into
11947 `font-parameter'.
11948
119492008-06-18 Kenichi Handa <handa@m17n.org>
11950
11951 * font.c (font_parse_xlfd): Fix previous change.
11952 (font_parse_fcname): Don't use :fc-unknown-spec.
11953 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
11954 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
11955 (font_add_log): Prepend the driver name to the resulting fonts.
11956
11957 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
11958 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
11959 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
11960
11961 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
11962 (QCembolden): New variables.
11963 (syms_of_xftfont): DEFSYM them.
11964 (xftfont_open): Call XftFontMatch. Don't trust the result of
11965 XftTextExtents8 if the pixel_size is less than 5.
11966
119672008-06-18 Andreas Schwab <schwab@suse.de>
11968
11969 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
11970 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
11971
119722008-06-18 Jason Rumney <jasonr@gnu.org>
11973
11974 * w32font.c (w32font_list, w32font_match): Add logging.
11975
11976 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
11977
119782008-06-17 Chong Yidong <cyd@stupidchicken.com>
11979
11980 * font.c (font_parse_fcname): Store divider characters for
11981 unknown-spec list. For known key symbols, intern using correct
11982 symbol name.
11983
119842008-06-17 Kenichi Handa <handa@m17n.org>
11985
11986 * xfaces.c (realize_default_face): If the frame is not on window
11987 system, set the fontset of face to nil.
11988
119892008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
11990
11991 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
11992
119932008-06-16 Juanma Barranquero <lekktu@gmail.com>
11994
11995 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
11996 (build_font_name_from_vector): Delete externs.
11997
11998 * xfaces.c (struct font_name): Don't declare.
11999
120002008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
12001
12002 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
12003
120042008-06-16 Chong Yidong <cyd@stupidchicken.com>
12005
12006 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
12007
120082008-06-16 Juanma Barranquero <lekktu@gmail.com>
12009
12010 * font.c (Ffont_spec): Fix usage in docstring.
12011 (Ffont_face_attributes): Doc fix.
12012
120132008-06-16 Andreas Schwab <schwab@suse.de>
12014
12015 * font.c (Ffont_face_attributes): Fix definition.
12016
120172008-06-16 Jason Rumney <jasonr@gnu.org>
12018
12019 * font.h (font_style_symbolic_from_value): Remove.
12020
12021 * font.c (font_style_symbolic_from_value): Remove.
12022 (font_style_symbolic): Revert to pre 2008-06-13 version.
12023
12024 * w32font.c (w32_to_fc_weight): New function.
12025 (w32font_full_name, logfont_to_fcname): Use it.
12026
120272008-06-16 Kenichi Handa <handa@m17n.org>
12028
12029 * font.c (font_check_object): Delete it.
12030 (font_clear_cache): Check if a font-object is alive.
12031 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
12032 font-object to nil.
12033 (font_close_object): Don't check FONT_CLOSE_OBJECT.
12034 (font_at): Don't call font_check_object.
12035 (Ffont_get): Return a symbol for :weight, :slant, and :width.
12036
120372008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
12038
12039 * puresize.h (BASE_PURESIZE): Increase to 1230000.
12040
120412008-06-16 Chong Yidong <cyd@stupidchicken.com>
12042
12043 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
12044
120452008-06-15 Chong Yidong <cyd@stupidchicken.com>
12046
12047 * font.c (font_parse_fcname): Only one decimal point.
12048 (font_unparse_fcname): Handle data in family and foundry indices
12049 as symbols, not strings.
12050 (font_unparse_gtkname, Ffont_face_attributes): New functions.
12051
12052 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
12053
12054 * font.h (font_unparse_gtkname): Add prototype.
12055
120562008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
12057
12058 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
12059
120602008-06-15 Andreas Schwab <schwab@suse.de>
12061
12062 * font.c (font_update_drivers): Fix crash when no drivers match.
12063
120642008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
12065
12066 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
12067 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
12068
120692008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
12070
12071 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
12072
120732008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
12074
12075 * process.c (Fserial_process_configure, Fprocess_send_eof):
12076 Use EQ to compare Lisp_Objects.
12077
120782008-06-13 Jason Rumney <jasonr@gnu.org>
12079
12080 * w32fns.c (Fw32_select_font): Remove old font API function.
12081
12082 * w32font.c (logfont_to_fcname): New function.
12083 (Fx_select_font): New font dialog function compatible with
12084 GTK/fontconfig version.
12085
12086 * font.c (font_style_symbolic_from_value): New function.
12087 (font_style_symbolic): Use it.
12088
12089 * font.h (font_style_symbolic_from_value): Declare new function.
12090
120912008-06-13 Juanma Barranquero <lekktu@gmail.com>
12092
12093 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
12094 <font-width-table>: Fix typos in docstrings.
12095
120962008-06-13 Daniel Engeler <engeler@gmail.com>
12097
12098 These changes add serial port access.
12099 * process.c: Add HAVE_SERIAL.
12100 (Fdelete_process, Fprocess_status, Fset_process_buffer)
12101 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
12102 (list_processes_1, select_wrapper, Fstop_process)
12103 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
12104 (status_notify): Modify to handle serial processes.
12105 [HAVE_SERIAL] (Fserial_process_configure)
12106 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
12107 New functions.
12108 * process.h (struct Lisp_Process): Add `type'.
12109 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
12110 New functions.
12111 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
12112 serial ports.
b71ac3dd 12113 (serial_open, serial_configure): New functions.
aac0c6e3
MR
12114 * w32.h: Add FILE_SERIAL.
12115 (struct _child_process): Add ovl_read, ovl_write.
12116
121172008-06-13 Kenichi Handa <handa@m17n.org>
12118
12119 * dispextern.h (enum lface_attribute_index): New member
12120 LFACE_FOUNDRY_INDEX.
12121
12122 * font.c (font_score): Delete arg alternate_families. Check only
12123 weight, slant, width, and size. Ignore the difference of alias
12124 style symbols.
12125 (font_sort_entites): Adjust for the above change. Reflect the
12126 order of font-driver to scores.
12127 (font_list_entities): Don't check alternate_familes here.
12128 (font_clear_prop): Handle foundry.
12129 (font_update_lface): Don't parse "foundry-family" form here.
12130 Handle FONT_FOUNDRY_INDEX.
12131 (font_find_for_lface): Likewise. Handle alternate families here.
12132 If registry is nil, try iso8859-1 and ascii-0.
12133 (font_open_for_lface): Pay attention to size in ENTITY.
12134 (font_open_by_name): Simplify by calling font_load_for_lface.
12135 (free_font_driver_list): Delete it.
12136 (font_update_drivers): Preserve the order of backends.
12137 (syms_of_font): Setting of sort_shift_bits adjusted for the change
12138 of font_score and font_sort_entites.
12139 (font_update_sort_order): Likewise.
12140
12141 * xfaces.c (LFACE_FOUNDRY): New macro.
12142 (check_lface_attrs): Check foundry.
12143 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
12144 (merge_face_vectors): Check foundry.
12145 (merge_face_ref): Likewise.
12146 (Finternal_set_lisp_face_attribute): Likewise.
12147 (x_update_menu_appearance): Likewise.
12148 (Finternal_get_lisp_face_attribute): Likewise.
12149 (lface_hash): Likewise.
12150 (lface_same_font_attributes_p): Likewise.
12151 (x_supports_face_attributes_p): Likewise.
12152 (tty_supports_face_attributes_p): Likewise.
12153 (Finternal_set_alternative_font_family_alist): Intern strings.
12154 (Finternal_set_alternative_font_registry_alist): Downcase strings.
12155 (realize_default_face): Set LFACE_FOUNDRY (lface).
12156
12157 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
12158 font-driver at first.
12159
12160 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
12161
121622008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12163
12164 * lread.c (Fload): Use xfree, not free on saved_doc_string.
12165
121662008-06-12 Jim Meyering <meyering@redhat.com>
12167
12168 Make unexec_free handle NULL the same way free does.
12169 * unexmacosx.c (unexec_free): Ignore a NULL argument.
12170
121712008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
12172
12173 * character.h (CHAR_TO_BYTE_SAFE): New macro.
12174 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
12175 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
12176 (WEAK_ALIAS): Simplify.
12177 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
12178 when searching a unibyte buffer.
12179
121802008-06-12 Chong Yidong <cyd@stupidchicken.com>
12181
12182 * xfns.c (Fx_select_font): Rename from x-font-dialog.
12183
121842008-06-12 Juanma Barranquero <lekktu@gmail.com>
12185
12186 * w32font.c: Include ctype.h.
12187
121882008-06-11 Jason Rumney <jasonr@gnu.org>
12189
12190 * w32font.c (w32font_encode_char): Detect missing glyphs that are
12191 misreported as space.
12192 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
12193 as aliases for registry iso10646-1.
12194
121952008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
12196
12197 * buffer.c (clone_per_buffer_values): Skip `name'.
12198
121992008-06-11 Chong Yidong <cyd@stupidchicken.com>
12200
12201 * font.c (font_parse_fcname): Fix last change; accept decimal
12202 points in font size.
12203
122042008-06-10 Jason Rumney <jasonr@gnu.org>
12205
12206 * w32uniscribe.c (add_opentype_font_name_to_list):
12207 Skip non unicode fonts.
12208
122092008-06-10 Chong Yidong <cyd@stupidchicken.com>
12210
12211 * xfns.c (Fx_font_dialog): New function.
12212
12213 * gtkutil.c (xg_dialog_response_cb): Rename from
12214 xg_file_response_callback.
12215 (pop_down_dialog): Rename from pop_down_file_dialog.
12216 (xg_get_file_name): Callers changed.
12217 (xg_get_font_name): New function.
12218
12219 * gtkutil.h (xg_get_font_name): Insert prototype.
12220
122212008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
12222
12223 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
12224 x_underline_minimum_display_offset.
12225 (syms_of_xdisp): Declare it here rather than in xterm.c.
12226 * dispextern.h (underline_minimum_offset): Declare it.
12227 * w32term.c (x_draw_glyph_string): Use it.
12228 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
12229 (syms_of_xterm): Don't declare it any more.
12230 (x_draw_glyph_string): Adjust to the new name.
12231
8719abec 122322008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
12233
12234 * xterm.c (x_underline_minimum_display_offset): New var.
12235 (x_draw_glyph_string): Use it.
12236 (syms_of_xterm): Declare it.
12237
122382008-06-10 Chong Yidong <cyd@stupidchicken.com>
12239
12240 * font.c (font_parse_fcname): Accept GTK-style font names too.
12241
122422008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
12243
12244 * dired.c (file_name_completion): Don't return t if the match is exact
12245 but with different capitalization.
12246 * minibuf.c (Ftry_completion): Simplify.
12247
12248 * window.c (Vwindow_point_insertion_type): New var.
12249 (set_window_buffer): Use it.
12250 (syms_of_window): Init and export it to Lisp.
12251
122522008-06-10 Kenichi Handa <handa@m17n.org>
12253
12254 * font.h (font_intern_prop): Prototype adjusted.
12255
12256 * font.c (font_intern_prop): New arg force_symbol.
12257 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
12258 Adjust for the change of font_intern_prop.
12259
12260 * ftfont.c (ftfont_pattern_entity):
12261 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
12262 (w32_registry):
12263 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
12264 the change of font_intern_prop.
12265
122662008-06-09 Juanma Barranquero <lekktu@gmail.com>
12267
12268 * w32menu.c (digest_single_submenu): Declare extern.
12269
122702008-06-09 Jason Rumney <jasonr@gnu.org>
12271
12272 * w32term.c (x_make_frame_visible): Use alternate restore flags.
12273
12274 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
12275 (parse_single_submenu): Remove.
12276 (digest_single_submenu): Remove.
12277 (syms_of_w32menu): Don't initialise variables that have moved
12278 to menu.c.
12279 (set_frame_menubar): Sync with version in xmenu.c.
12280 (w32_menu_show): Sync with xmenu_show in xmenu.c.
12281
12282 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
12283 Make static again.
12284
122852008-06-09 Jason Rumney <jasonr@gnu.org>
12286
12287 Changes to w32 files related to the move of common menu code
12288 to menu.c on 2008-06-08 by Chong Yidong.
12289
12290 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
12291 defs to w32gui.h.
12292 (single_keymap_panes, push_menu_item, push_menu_pane):
12293 Make globally visible.
12294
12295 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
12296 (local_free, malloc_widget_value, free_widget_value)
12297 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
12298 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
12299 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
12300 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
12301 (menu_items, menu_items_allocated, menu_items_used)
12302 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
12303 (init_menu_items, finish_menu_items, discard_menu_items)
12304 (grow_menu_items, push_submenu_start, push_submenu_end)
12305 (push_left_right_boundary, push_menu_pane, push_menu_item)
12306 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
12307 (free_menubar_widget_tree_value, parse_single_submenu)
12308 (update_submenu_strings): Remove functions.
12309 (xmalloc_widget_value): Remove and declare extern.
12310
12311 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
12312 (OBJ1): Build it.
12313
12314 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
12315 (local_heap, local_alloc, local_free, malloc_widget_value)
12316 (free_widget_value): Define here.
12317
123182008-06-09 Kenichi Handa <handa@m17n.org>
12319
12320 * font.h (Qascii_0): Extern it.
12321
12322 * font.c (Qascii_0): New variable.
12323 (syms_of_font): DEFSYM it.
12324 (font_open_by_name): If the registry "iso8859-1" fails, try also
12325 "ascii-0".
12326
12327 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
12328
123292008-06-08 Kenichi Handa <handa@m17n.org>
12330
12331 * .gdbinit (xfont): New command.
12332
123332008-06-08 Andreas Schwab <schwab@suse.de>
12334
12335 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
12336 * Makefile.in (menu.o): Update dependencies.
12337
12338 * Makefile.in (obj): Always add menu.o.
12339 * emacs.c (main): Always call syms_of_menu.
12340 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
12341
123422008-06-08 Chong Yidong <cyd@stupidchicken.com>
12343
12344 * Makefile.in: Compile menu.c.
12345
12346 * lisp.h: Declare syms_of_menu.
12347
12348 * emacs.c (main): Call syms_of_menu.
12349
12350 * keyboard.h: Relocate platform-independent menu definitions from
12351 xmenu.c.
12352
12353 * menu.c: New file. Relocate platform-independent menu
12354 definitions from xmenu.c. Suggested by Adrian Robert.
12355
12356 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 12357 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
12358 (menu_items_used, menu_items_n_panes)
12359 (menu_items_submenu_depth): Move to keyboard.h.
12360 (init_menu_items, finish_menu_items, unuse_menu_items)
12361 (discard_menu_items, restore_menu_items, save_menu_items)
12362 (grow_menu_items, push_submenu_start, push_submenu_end)
12363 (push_left_right_boundary, push_menu_pane, push_menu_item)
12364 (keymap_panes, single_keymap_panes, single_menu_item)
12365 (list_of_panes, list_of_items, find_and_call_menu_selection)
12366 (xmalloc_widget_value, free_menubar_widget_value_tree)
12367 (parse_single_submenu, digest_single_submenu)
12368 (update_submenu_strings): Move to menu.c.
12369
123702008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
12371
12372 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
12373
123742008-06-06 Miles Bader <miles@gnu.org>
12375
12376 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
12377 face, not frame default.
12378
123792008-06-05 Martin Rudalics <rudalics@gmx.at>
12380
12381 * window.c (pop_up_windows, pop_up_frames)
12382 (display_buffer_reuse_frames, Vpop_up_frame_function)
12383 (Vdisplay_buffer_function, Veven_window_heights)
12384 (Vspecial_display_buffer_names, Vspecial_display_regexps)
12385 (Vspecial_display_function, Vsame_window_buffer_names)
12386 (Vsame_window_regexps, split_height_threshold)
12387 (Vsplit_window_preferred_function): Move those vars to window.el.
12388 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
12389 (Fdisplay_buffer): Move those functions to window.el.
12390 (syms_of_window): Remove corresponding declarations.
12391 (display_buffer): New function.
12392 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
12393 * dispnew.c (Flast_nonminibuf_frame): New function.
12394 * buffer.c (Fpop_to_buffer): Move to window.el.
12395
123962008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12397
12398 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
12399
124002008-06-05 Kenichi Handa <handa@m17n.org>
12401
12402 * coding.c (detect_coding): Fix previous change.
12403 (detect_coding_system): Likewise.
12404
124052008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12406
12407 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
12408
12409 * keymap.c (Vminibuffer_local_filename_must_match_map):
12410 Rename from Vminibuffer_local_must_match_filename_map.
12411 (syms_of_keymap):
12412 * minibuf.c (Fcompleting_read): Adjust accordingly.
12413 * commands.h: Rename declaration as well.
12414
124152008-06-05 Kenichi Handa <handa@m17n.org>
12416
12417 * font.c (Ffont_spec): Don't use font_parse_family_registry for
12418 family name.
12419 (Ffont_put): Likewise.
12420
12421 * fontset.c (fontset_find_font): Call font_open_for_lface with the
12422 current font-spec.
12423
12424 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
12425 is unspecified.
12426
12427 * xfaces.c (realize_x_face): If the font-related face attributes
12428 are the same as those of default face, realize a new fontset from
12429 default->fontset.
12430 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
12431
124322008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12433
12434 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
12435 (move_it_in_display_line): New wrapper.
12436
12437 * window.c (window_scroll_pixel_based_preserve_x)
12438 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
12439 (window_scroll_pixel_based, window_scroll_line_based):
12440 Use them to preserve column positions.
12441 (syms_of_window): Initialize them.
12442
12443 * indent.c (Fvertical_motion): Extend first arg to allow passing an
12444 (HPOS . VPOS) pair.
12445
12446 * dispextern.h (move_it_in_display_line): Declare.
12447
124482008-06-05 Juanma Barranquero <lekktu@gmail.com>
12449
12450 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
12451 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
12452 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
12453
124542008-06-04 Juanma Barranquero <lekktu@gmail.com>
12455
12456 * window.c (Fset_window_parameter): Doc fix.
12457 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
12458
124592008-06-04 Joakim Verona <joakim@verona.se>
12460
12461 * window.h (struct window): Add new member window_parameters.
12462
12463 * window.c (Fwindow_parameters, Fwindow_parameter)
12464 (Fset_window_parameter): New defuns.
12465 (syms_of_window): Defsubr the new defuns.
12466 (make_window): Initialize window_parameters to nil.
12467
124682008-06-04 John Paul Wallington <jpw@pobox.com>
12469
12470 * eval.c (Fdefmacro): Doc fix.
12471
124722008-06-04 Kenichi Handa <handa@m17n.org>
12473
12474 * coding.c (detect_coding): Fix handling of coding->head_ascii.
12475 Be sure to call setup_coding_system when we find a proper coding system.
12476 (detect_coding_system): Fix handling of coding->head_ascii.
12477
124782008-06-03 Andreas Schwab <schwab@suse.de>
12479
12480 * font.c (font_prop_validate_spacing): Fix last change.
12481
124822008-06-03 Kenichi Handa <handa@m17n.org>
12483
12484 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
12485 (font_parse_fcname): Fix handling of unknown key.
12486
12487 * xfont.c (xfont_list): Try an alias.
12488
12489 * charset.c (char_charset): Return NULL if the arg charset_list is
12490 specified and C doesn't belong to any of them.
12491
124922008-06-02 Chip Coldwell <coldwell@redhat.com>
12493
12494 * font.c (font_pixel_size): Don't take cdr of an integer.
12495
124962008-06-02 Jim Meyering <meyering@redhat.com>
12497
12498 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
12499 * alloc.c (xfree): Return right away for a NULL arg.
12500 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
12501 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
12502 * mac.c (create_apple_event_from_event_ref): Likewise.
12503 (create_apple_event_from_drag_ref, cfstring_create_normalized):
12504 Likewise.
12505 * doprnt.c (doprnt1): Likewise.
12506 * frame.c (frame): Likewise.
12507 * keyboard.c (wipe_kboard): Likewise.
12508 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
12509 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
12510 * term.c (tty_default_color_capabilities, maybe_fatal)
12511 (delete_tty): Likewise.
12512 * w16select.c (string): Likewise.
12513 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
12514 * w32bdf.c (w32_free_bdf_font): Likewise.
12515 * w32fns.c (w32_unload_font): Likewise.
12516 * w32font.c (w32font_close): Likewise.
12517 * window.c (size_window): Likewise.
12518 * xselect.c (receive_incremental_selection): Likewise.
12519 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
12520 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
12521 * w32.c (stat): Likewise.
12522
12523 Remove useless if-before-free tests.
12524 * editfns.c (Fset_time_zone_rule): Likewise.
12525 * lread.c (nosuffix): Likewise.
12526 * ralloc.c (get_bloc): Likewise.
12527 * regex.c (reg_free): Likewise.
12528 * xftfont.c (xftfont_open, xftfont_close): Likewise.
12529 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
12530 * xsmfns.c (smc_save_yourself_CB): Likewise.
12531
125322008-06-02 Kenichi Handa <handa@m17n.org>
12533
12534 * font.c (font_find_for_lface): Handle float font size.
12535 (font_open_for_lface): Likewise.
12536
12537 * xfaces.c (x_supports_face_attributes_p): Check face->font before
12538 comparing the properties.
12539
125402008-06-01 Jason Rumney <jasonr@gnu.org>
12541
12542 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
12543 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
12544 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
12545 Don't add empty script list.
12546 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
12547
125482008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
12549
12550 * Makefile.in (dot, dotdot): Remove, update users.
12551 ".." has been used elsewhere in the file for a long time.
12552 (LIBXT_STATIC): Remove conditional based on unused variable.
12553
125542008-06-01 Miles Bader <miles@gnu.org>
12555
12556 * xfaces.c (Vface_remapping_alist): New variable.
12557 (syms_of_xfaces): Initialize it.
12558 (enum named_merge_point_kind): New type.
12559 (struct named_merge_point): Add `named_merge_point_kind' field.
12560 (push_named_merge_point): Make cycle detection respect different
12561 named-merge-point kinds.
12562 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
12563 Remove face-name alias resolution.
12564 (lface_from_face_name): New definition using
12565 `lface_from_face_name_no_resolve'.
12566 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
12567 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
12568 (get_lface_attributes): New definition that layers face-remapping on
12569 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
12570 (lookup_basic_face): New function.
12571 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
12572 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
12573 `get_lface_attributes'.
12574 (face_at_buffer_position): Use `lookup_basic_face' to lookup
12575 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
12576 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
12577
12578 * xdisp.c (init_iterator): Pass base_face_id through
12579 `lookup_basic_face' when we actually use it as a face-id.
12580 (handle_single_display_prop): Use `lookup_basic_face' to lookup
12581 DEFAULT_FACE_ID.
12582
12583 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
12584 lookup the initial face-id.
12585
12586 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
12587
125882008-06-01 Juanma Barranquero <lekktu@gmail.com>
12589
12590 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
12591 (Fremove_text_properties): Fix typos in docstrings.
12592
125932008-05-31 Kenichi Handa <handa@m17n.org>
12594
12595 * font.c (font_list_entities): Fix the car part of data to be
12596 stored in the cache.
12597
12598 * ftfont.c (ftfont_font_format): Don't use strcasestr.
12599
126002008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
12601
12602 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
12603 Add a `test' argument so another predicate than `equal' can be used.
12604 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
12605 (map_char_table): Remove unused vars `c' and `i'.
12606 * lisp.h (Foptimize_char_table): Adjust declaration.
12607 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
12608
126092008-05-30 Kenichi Handa <handa@m17n.org>
12610
12611 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
12612 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
12613 defined.
12614
126152008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
12616
12617 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
12618 (Fmake_variable_frame_local): Disallow mixing buffer-local and
12619 frame-local settings for the same variable.
12620
126212008-05-30 Kenichi Handa <handa@m17n.org>
12622
12623 * fontset.c (Ffont_info): Move to font.c.
12624 (syms_of_fontset): Delete defsubr of Sfont_info.
12625
12626 * font.c (font_style_to_value, font_score): Delete casting of the
12627 args to xstcasecmp.
12628 (register_font_driver): Increment num_font_drivers only when
12629 registering the driver globally.
12630 (Ffont_info): Move from fontset.c. Handle a font object too.
12631 (syms_of_font): Defsubr Sfont_info.
12632
126332008-05-29 Kenichi Handa <handa@m17n.org>
12634
12635 * coding.h (enum define_coding_utf8_arg_index): New enum.
12636 (enum coding_attr_index): Change coding_attr_utf_16_bom to
12637 coding_attr_utf_bom.
12638 (enum utf_bom_type): Rename from utf_16_bom_type.
12639 (struct utf_16_spec): Adjust for the above change.
12640 (struct coding_system): Add utf_8_bom in `spec' union.
12641
12642 * coding.c (CODING_UTF_8_BOM): New macro.
12643 (enum coding_category): Delete coding_category_utf_8, add
12644 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
12645 coding_category_utf_8_sig.
12646 (CATEGORY_MASK_UTF_8): Delete it.
12647 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
12648 (CATEGORY_MASK_UTF_8_SIG): New macros.
12649 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
12650 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
12651 CATEGORY_MASK_UTF_8_SIG.
12652 (CATEGORY_MASK_UTF_8): New macro.
12653 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
12654 (detect_coding_utf_8): Check BOM.
12655 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
12656 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
12657 (encode_coding_utf_16): Likewise.
12658 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
12659 (detect_coding, detect_coding_system): Handle utf-8-auto.
12660 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
12661 (syms_of_coding): Fix setting up of Vcoding_category_table.
12662
126632008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
12664
12665 * process.c (Faccept_process_output): If `millisec' is non-nil,
12666 `seconds' default to 0.
12667 (wait_reading_process_output): Also return non-nil if we read output
12668 from a non-running process.
12669
126702008-05-29 Jason Rumney <jasonr@gnu.org>
12671
12672 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
12673 `raster' specified.
12674 (add_font_entity_to_list): Allow non-opentype truetype fonts back
12675 in the uniscribe backend, but disallow any font that has no
12676 unicode subrange support.
12677
126782008-05-29 Juanma Barranquero <lekktu@gmail.com>
12679
12680 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
12681 Fix typos in docstrings.
12682
126832008-05-29 Kenichi Handa <handa@m17n.org>
12684
12685 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
12686 (Fx_family_fonts): Set frame correctly.
12687
126882008-05-28 Jason Rumney <jasonr@gnu.org>
12689
12690 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
12691
126922008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
12693
12694 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
12695 calling build_annotations.
12696
126972008-05-28 Juanma Barranquero <lekktu@gmail.com>
12698
12699 * coding.c (Fdecode_coding_region, Fencode_coding_region)
12700 (Fencode_coding_string):
12701 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
12702 <latin-extra-code-table>: Fix typos in docstrings.
12703 (syms_of_coding) <coding-system-alist>: Doc fix.
12704 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
12705
127062008-05-28 Kenichi Handa <handa@m17n.org>
12707
12708 * fontset.c (Ffont_info): Don't call font_close_object.
12709
12710 * font.c (font_parse_family_registry): Use Ffont_put to validate
12711 foundry and family.
12712 (font_delete_unmatched): Don't check spacing.
12713 (font_list_entities): Add spacing to the spec to list fonts.
12714
12715 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
12716 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
12717
12718 * coding.c (encode_coding_raw_text): Fix previous change.
12719 (encode_coding_object): When the dst_object is a buffer and is
12720 different from src_object, move gap to PT.
12721
127222008-05-27 Chong Yidong <cyd@stupidchicken.com>
12723
12724 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
12725
127262008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
12727
12728 * coding.c (encode_coding_raw_text): Set coding->produced_char for
12729 all branches. Compute it differently.
12730
12731 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
12732
127332008-05-27 Juanma Barranquero <lekktu@gmail.com>
12734
12735 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
12736 into "else if () ... else ...".
12737
127382008-05-27 Jason Rumney <jasonr@gnu.org>
12739
12740 * w32font.c (w32font_open_internal): Determine if glyph indices
12741 are likely to work here.
12742
127432008-05-27 Chong Yidong <cyd@stupidchicken.com>
12744
12745 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
12746 draw overlap glyphs with appropriate highlighting.
12747
127482008-05-27 Kenichi Handa <handa@m17n.org>
12749
12750 * xfont.c (xfont_open): Fix calculation of font->average_width.
12751
127522008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
12753
12754 * casefiddle.c (casify_object): Try to guess better whether the
12755 argument is a byte or a char.
12756
127572008-05-26 Andreas Schwab <schwab@suse.de>
12758
12759 * xselect.c (x_reply_selection_request): Properly handle format == 32.
12760 Always send multiples of format size.
12761
12762 * xterm.c (x_set_frame_alpha): Fix type mismatch.
12763
127642008-05-26 Jason Rumney <jasonr@gnu.org>
12765
12766 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
12767 (compute_metrics): Don't set failure if we just cleared the cache.
12768 (w32_weight_table): Remove unused variable.
12769 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
12770 backwards compatibility.
12771
127722008-05-25 Kenichi Handa <handa@m17n.org>
12773
12774 * w32term.c (x_draw_glyph_string):
12775 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
12776
12777 * xfaces.c: Delete unused function prototypes.
12778 (xstrlwr, font_frame): Delete them.
12779 (clear_face_cache): Delete unused variable.
12780
12781 * xftfont.c (xftfont_open): Delete unused variable.
12782 If underline_thickness is not 1, adjust underline_position.
12783
12784 * ftxfont.c (ftxfont_open): Delete unused variable.
12785
12786 * fontset.c (face_for_char): Optimize for the case of no charset
12787 property.
12788
12789 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
12790 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
12791 (otf_open, font_otf_capability, generate_otf_features)
12792 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
12793 Comment out by surrounding "#if 0" and "#endif" for the moment.
12794 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
12795 (syms_of_font): Codes for accessing above commented out.
12796
127972008-05-24 Eli Zaretskii <eliz@gnu.org>
12798
12799 * w32proc.c: Include dispextern.h.
12800
12801 * w32.c: Include dispextern.h.
12802
128032008-05-23 Juanma Barranquero <lekktu@gmail.com>
12804
12805 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
12806 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
12807 Fix typos in docstrings.
12808
128092008-05-23 Jason Rumney <jasonr@gnu.org>
12810
12811 * xsmfns.c: Remove includes that are already included by config.h.
12812
128132008-05-23 Kenichi Handa <handa@m17n.org>
12814
12815 * charset.c (Qemacs, charset_emacs): New variables.
12816 (char_charset): Fix for non-Unicode characters.
12817 (syms_of_charset): Define charset_emacs.
12818
12819 * w32term.c (x_draw_glyph_string): Be sure to update
12820 s->underline_thickness and s->underline_position. Be sure to draw
12821 underline within the current line area.
12822
12823 * xterm.c (x_draw_glyph_string): Be sure to update
12824 s->underline_thickness and s->underline_position. Be sure to draw
12825 underline within the current line area.
12826
12827 * fontset.c: Delete unused variables and add casting for char *
12828 throughout the file.
12829 (fontset_font): Try the fallback fonts of the current fontset
12830 before consulting the default fontset.
12831
12832 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
12833
12834 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
12835
128362008-05-22 Jason Rumney <jasonr@gnu.org>
12837
12838 * font.c: Don't include strings.h.
12839
12840 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
12841
12842 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
12843 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
12844 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
12845 to call xstrcasecmp.
12846
12847 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
12848
12849 * fontset.c (fs_query_fontset): Use xstrcasecmp.
12850
12851 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
12852
12853 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
12854
128552008-05-22 Kenichi Handa <handa@m17n.org>
12856
12857 * puresize.h (BASE_PURESIZE): Increase to 1220000.
12858
12859 * font.c (font_prop_validate_style): Adjust for the format
12860 change of font_style_table.
12861
12862 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
12863 two args.
12864
12865 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
12866 two args.
12867
128682008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
12869
12870 * minibuf.c (keys_of_minibuf): Delete.
12871 * lisp.h (keys_of_minibuf): Delete.
12872 * emacs.c (main): Don't call keys_of_minibuf.
12873
128742008-05-22 Kenichi Handa <handa@m17n.org>
12875
12876 * ftfont.c (ftfont_resolve_generic_family): Rename from
12877 ftfont_list_generic_family. Return a single family for each
12878 generic family.
12879 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
12880 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
12881 Call font_add_log.
12882 (ftfont_match): Call font_add_log.
12883
12884 * font.h (Ffont_xlfd_name): EXFUN adjusted.
12885 (FONT_DEBUG): Define it.
12886 (font_add_log): Extern it.
12887 (font_assert): Rename from xassert.
12888
12889 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
12890 (xfont_list_family): Call font_add_log.
12891 (xfont_match): Likewise.
12892 (memq_no_quit): Delete.
12893
12894 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
12895 call of Ffont_xlfd_name.
12896
12897 * xfaces.c (struct table_entry, slant_table, weight_table)
12898 (swidth_table): Move to font.c.
12899
12900 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
12901 xassert are changed to font_assert. Delete many unused variables.
12902 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
12903 New variables.
12904 (struct table_entry): Move from xfaces.c and modified.
12905 (weight_table, slant_table, width_table): Move from xfaces.c and
12906 contents adjusted for the change of struct table_entry.
12907 (font_style_to_value, font_style_symbolic): Adjust for the
12908 format change of font_style_table.
12909 (font_parse_family_registry): Don't overwrite existing foundry and
12910 family of font_spec.
12911 (font_score): Fix calculation of diff for sizes.
12912 (font_sort_entites): Call font_add_log.
12913 (font_delete_unmatched): Return a newly created list.
12914 (font_list_entities): Fix previous change. Call font_add_log.
12915 (font_matching_entity, font_open_entity, font_close_entity):
12916 Call font_add_log.
12917 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
12918 (Finternal_set_font_style_table): Delete.
12919 (BUILD_STYLE_TABLE): New macro.
12920 (build_style_table): New function.
12921 (Vfont_log, font_log_env_checked): New variables.
12922 (font_add_log): New function.
12923 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
12924 Declare Lisp variables "font-weight-table", "font-slant-table",
12925 "font-width-table", and "font-log". Initialize font_style_table.
12926
129272008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
12928
12929 * xterm.c (x_set_frame_alpha): Move declarations before statements.
12930
129312008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 12932 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
12933
12934 * frame.c (Qalpha): Add a new frame parameter `alpha'.
12935 (Vframe_alpha_lower_limit): New variable.
12936 (x_set_alpha): New function.
12937
12938 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
12939
12940 * xfns.c (x-create-frame, Qalpha):
12941 Initialize the frame parameter `alpha'.
12942 * xterm.c (OPAQUE, OPACITY): New.
12943 (x_set_frame_alpha): New function.
12944 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
12945
12946 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
12947 * w32fns.c (w32_frame_parm_handlers): Likewise.
12948
129492008-05-20 Jason Rumney <jasonr@gnu.org>
12950
12951 * w32font.c (add_font_entity_to_list): Don't add non-opentype
12952 truetype fonts to opentype list.
12953
129542008-05-20 Juanma Barranquero <lekktu@gmail.com>
12955
12956 * fontset.c (Ffontset_info): Doc fix.
12957 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
12958 <ignore-relative-composition>: Fix typos in docstrings.
12959
12960 * font.c (syms-of-font) <font-encoding-alist>:
12961 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
12962 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
12963 (Ffont_otf_alternates): Doc fixes.
12964
129652008-05-20 Kenichi Handa <handa@m17n.org>
12966
12967 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
12968 font.h through out the file.
12969 (FONT_DRIVERS): Rename from FONTOBJ.
12970 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
12971 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
12972
12973 * emacs.c (main): Call syms_of_font unconditionally.
12974
12975 * font.h (find_font_encoding): Extern it.
12976
12977 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
12978 fontset.c.
194d44e7 12979 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
12980 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
12981 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
12982 only when HAVE_WINDOW_SYSTEM is defined.
12983 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
12984 when HAVE_WINDOW_SYSTEM is defined.
12985
12986 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
12987 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
12988
12989 * xfaces.c: Include font.h unconditionally.
12990 (merge_face_ref, merge_face_vectors)
12991 (Finternal_set_lisp_face_attribute): Cancel the previous change.
12992
129932008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
12994
12995 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
12996 indirect_variable.
12997 * eval.c (lisp_indirect_variable): New fun.
12998 (Fuser_variable_p): Use it.
12999
130002008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
13001
13002 * lisp.h (indirect_variable):
13003 * data.c (indirect_variable, let_shadows_buffer_binding_p):
13004 Use Lisp_Symbol pointers rather than Lisp_Object.
13005 Adjust callers.
13006 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
13007 To this end, change calling-convention.
13008
13009 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
13010 if some non-hidden buffers are selected by string&pred.
13011
130122008-05-19 Chong Yidong <cyd@stupidchicken.com>
13013
13014 * process.c (wait_reading_process_output): Always check status
13015 when in batch mode.
13016
130172008-05-19 Kenichi Handa <handa@m17n.org>
13018
13019 * font.c (font_list_entities): Fix handling of cache.
13020 (font_matching_entity): Likewise.
13021
13022 * ftfont.c (cs_iso8859_1): Delete.
13023 (ft_face_cache): New variable.
13024 (struct ftfont_info): New member fc_charset_idx.
13025 (ftfont_build_basic_charsets): Delete.
13026 (fc_charset_table): New variable.
13027 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
13028 . FC_CHARSET_IDX) as :font-entity property in the font entity.
13029 Callers changed.
13030 (ftfont_lookup_cache, ftfont_get_charset): New functions.
13031 (ftfont_spec_pattern): New argument fc_charset_idx.
13032 Check registry more rigidly. Change callers.
13033 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
13034 change of :font-entity property of the font.
13035
13036 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
13037 property of the font.
13038
130392008-05-18 Juanma Barranquero <lekktu@gmail.com>
13040
13041 * coding.c (Fcoding_system_p): Rename argument to match docstring.
13042 (Funencodable_char_position, Fcheck_coding_systems_region)
13043 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
13044 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
13045 (Ffind_operation_coding_system, Fset_coding_system_priority)
13046 (Fcoding_system_eol_type): Doc fixes.
13047
130482008-05-17 Glenn Morris <rgm@gnu.org>
13049
13050 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
13051
130522008-05-16 Eli Zaretskii <eliz@gnu.org>
13053
13054 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
13055 and st_gid.
13056
13057 * frame.c (Fdelete_frame): Don't call font_update_drivers if
13058 HAVE_WINDOW_SYSTEM is not defined.
13059
13060 * xfaces.c (merge_face_ref, merge_face_vectors)
13061 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
13062 HAVE_WINDOW_SYSTEM is defined.
13063 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
13064
130652008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
13066
13067 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
13068
130692008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13070
13071 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
13072
130732008-05-15 Kenichi Handa <handa@m17n.org>
13074
13075 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
13076 preference.
13077
130782008-05-15 Glenn Morris <rgm@gnu.org>
13079
13080 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
13081
130822008-05-15 Chong Yidong <cyd@stupidchicken.com>
13083
13084 * fns.c (init_fns): Don't initialize weak_hash_tables here.
13085 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
13086
13087 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
13088
130892008-05-15 Kenichi Handa <handa@m17n.org>
13090
13091 * ftfont.c (ftfont_list): Downcase family name to check generic
13092 families.
13093
13094 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
13095 font-spec for QCfont value.
13096
13097 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
13098 buffer. Check the return value of it.
13099
131002008-05-14 Jason Rumney <jasonr@gnu.org>
13101
13102 * w32term.c (w32_get_glyph_overhangs): Remove.
13103 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
13104
131052008-05-14 Kenichi Handa <handa@m17n.org>
13106
13107 * font.c (font_prop_validate): Make nil a valid value.
13108 (font_clear_cache): Check if the cached vector of entities is nil
13109 or not.
13110
131112008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13112
13113 * emacs.c (main_thread): Conditionalize on
13114 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
13115 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
13116
13117 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
13118 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
13119 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
13120
131212008-05-14 Kenichi Handa <handa@m17n.org>
13122
13123 * coding.c (detect_coding_iso_2022): Ignore a coding category that
13124 has no corresponding coding system.
13125
131262008-05-14 Jason Rumney <jasonr@gnu.org>
13127
13128 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
13129
13130 * w32font.h (w32font_open_internal): Update declaration.
13131
13132 * w32font.c (w32font_open_internal): Change last argument from
13133 w32font_info struct to font object. Fill in font object from
13134 font_entity. Get Outline metrics if possible. Use them to
13135 calculate underline position and thickness. Use xlfd name as name
13136 property. Don't set codepage.
13137 (w32font_open): Pass font_object to w32font_open_internal. Don't
13138 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
13139 (w32font_draw): Use s->font.
13140 (clear_cached_metrics): Don't clear non-existent blocks.
13141
13142 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
13143 font was not found.
13144 (x_draw_glyph_string): Use underline position and thickness from font.
13145
13146 * w32uniscribe.c (uniscribe_open): Pass font_object to
13147 w32font_open_internal.
13148
131492008-05-14 Kenichi Handa <handa@m17n.org>
13150
13151 These changes are to delete all legacy font-handling codes, and
13152 make Emacs use only font-backends.
13153
13154 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
13155 (frame.o, image.o, print.o): Depend on $(FONTSRC).
13156
13157 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
13158
13159 * charset.h (Vcharset_non_preferred_head)
13160 (Vcurrent_iso639_language): Extern them.
13161
13162 * charset.c (Vcharset_non_preferred_head): New variable.
13163 (Vcurrent_iso639_language): New variable.
13164 (syms_of_charset): Declare it as a Lisp variable.
13165 (char_charset): Don't check non preferred charsets. As a last
13166 resort, return charset_unicode.
13167 (Fset_charset_priority): Update Vcharset_non_preferred_head.
13168
13169 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
13170 conditionals. Don't check enable_font_backend. Delete all codes
13171 used only when USE_FONT_BACKEND is not defined.
13172
13173 * dispextern.h (struct glyph_string): Change type of `font' to
13174 `struct font *'.
13175 (struct glyph_string): New member underline_position and
13176 underline_thickness.
13177 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
13178 (struct face): Change type of `font' to `struct font *'. Remove
13179 members `font_name', `font_info_id'.
13180 (per_char_metric, encode_char): Delete externs.
13181 (calc_pixel_width_or_height): Adjust the prototype.
13182
13183 * emacs.c (enable_font_backend): Delete extern.
13184 (main): Don't set enable_font_backend. Don't check the command
13185 line argument "-disable-font-backend".
13186
13187 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
13188 (enum font_property_index): New members FONT_DPI_INDEX,
13189 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
13190 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
13191 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
13192 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
13193 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
13194 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
13195 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
13196 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
13197 (struct font_spec, struct font_entity): New structs.
13198 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
13199 (struct font): Many members from old "struct font_info" moved to
13200 here. Members font and entity deleted.
13201 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
13202 the new font-related objects.
13203 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
13204 (CHECK_FONT_GET_OBJECT): Likewise.
13205 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
13206 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
13207 (struct font_driver): New members case_sensitive anc check. Type
13208 of the member list and open changed.
13209 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
13210 (font_symbolic_width, font_find_object, font_get_spec)
13211 (font_set_lface_from_name): Delete extern.
13212 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
13213
13214 * font.c: Include <strings.h>.
13215 (enable_font_backend): Delete it.
13216 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
13217 (CHECK_VALIDATE_FONT_SPEC): Delete it.
13218 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
13219 (null_string): Delete it.
13220 (null_vector): Make it static.
13221 (font_family_alist): Delete it.
13222 (Qnormal): Extern it.
13223 (QCextra, QClanguage): Delete it.
13224 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
13225 (font_make_spec, font_make_entity, font_make_object)
13226 (font_intern_prop): Renamed from intern_downcase. Don't downcase
13227 the string. Callers changed.
13228 (font_pixel_size): Adjusted for the format change of font-related
13229 objects.
13230 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
13231 (font_style_to_value, font_style_symbolic): New function.
13232 (build_font_family_alist): Delete it.
13233 (font_registry_charsets): Use Fassoc_string instead of
13234 assq_no_quit.
13235 (font_prop_validate_symbol): Don't return null_string.
13236 (font_prop_validate_style): Adjusted for the change of
13237 style-related values in a font vector.
13238 (font_property_table): Delete entries for QClanguage and
13239 QCantialias, add entries for QCavgwidth.
13240 (get_font_prop_index): Delete the 2nd argument FROM.
13241 (font_prop_validate): Arguments changed.
13242 (font_put_extra): Adjusted for the change of font-related objects.
13243 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
13244 (font_parse_fcname, font_unparse_fcname)
13245 (font_prepare_composition): Likewise.
13246 (font_parse_family_registry): Renamed from font_merge_old_spec.
13247 (otf_open): Delete the 1st arg entity.
13248 (font_otf_capability): Adjusted for the above change.
13249 (font_score): New arg alternate_families. Adjusted for the change
13250 of font-related objects.
13251 (font_sort_entites): New arg best_only.
13252 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
13253 Delete them.
13254 (font_match_p): Check alternate families.
13255 (font_find_object): Delete it.
13256 (font_check_object): New function.
13257 (font_clear_cache): Adjusted for the change of font-related objects.
13258 (font_delete_unmatched): New arg.
13259 (font_list_entities): Call font_driver->list with a spec that
13260 doesn't specify style-related properties.
13261 (font_matching_entity): Arguments changed. Caller changed.
13262 (font_open_entity): Adjusted for the change of font-related objects.
13263 (font_close_object, font_has_char, font_encode_char)
13264 (font_get_name, font_get_spec): Likewise.
13265 (font_spec_from_name, font_clear_prop, font_update_lface):
13266 New functions.
13267 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
13268 (font_prepare_for_face, font_done_for_face, font_open_by_name)
13269 (font_at): Adjusted for the change of font-related objects.
13270 (font_range): New function.
13271 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
13272 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
13273 (Fcopy_font_spec, Fmerge_font_spec): New function.
13274 (Ffont_family_list): Renamed from list-families.
13275 (Finternal_set_font_style_table): Arguments changed.
13276 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
13277 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
13278 change of font-related objects.
13279 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
13280
13281 * fontset.h (struct font_info): Delete it. Most members go to
13282 struct font.
13283 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
13284 (enum FONT_SPEC_INDEX): Delete it.
13285 (font_info, list_fonts_func, load_font_func, query_font_func)
13286 (set_frame_fontset_func, find_ccl_program_func)
13287 (get_font_repertory_func, new_fontset_from_font_name): Delete
13288 externs.
13289 (fontset_from_font_name): Extern it.
13290 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
13291 (FONT_INFO_FROM_FACE): Deleted.
13292 (face_for_font): Adjust prototype.
13293
13294 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
13295 conditionals. Don't check enable_font_backend. Delete all codes
13296 used only when USE_FONT_BACKEND is not defined.
13297 (get_font_info_func, list_font_func, load_font_func)
13298 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
13299 (get_font_repertory_func): Delete them.
13300 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
13301 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
13302 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
13303 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
13304 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
13305 (fontset_compare_rfontdef): New function.
13306 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
13307 rfont-defs by qsort. Adjusted for the change of font-group vector.
13308 (load_font_get_repertory): Deleted.
13309 (fontset_find_font): Use new macros to ref/set elements of
13310 font-def and rfont-def.
13311 (fontset_font): Fix the timing of remembering that no font for C.
13312 (free_face_fontset): Do nothing if the face has no fontset.
13313 (face_suitable_for_char_p): Use new macros to ref/set elements of
13314 rfont-def.
13315 (face_for_char): Likewise. Call face_for_char with font_object.
13316 (fs_load_font): Delete. Delete #pragma surrounding it.
13317 (fs_query_fontset): Use strcasecmp instead of strcmp.
13318 (generate_ascii_font_name): Adjusted for the format change of
13319 font-spec.
13320 (Fset_fontset_font): Likewise. Use new macros to set elements of
13321 font-def.
13322 (Fnew_fontset): Use font_unparse_xlfd to generate
13323 FONTSET_ASCII (fontset).
13324 (new_fontset_from_font_name): Deleted.
13325 (fontset_from_font): Renamed from new_fontset_from_font. Check if
13326 a fontset is already created for the font. FIx updating of
13327 Vfontset_alias_alist.
13328 (fontset_ascii_font): Deleted.
13329 (Ffont_info): Adjusted for the format change of font-spec.
13330 (Finternal_char_font): Likewise.
13331 (Ffontset_info): Likewise.
13332 (syms_of_fontset): Don't check load_font_func.
13333
13334 * fns.c (internal_equal): Handle PREV_FONT.
13335
13336 * frame.h: Delete USE_FONT_BACKEND conditional.
13337
13338 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
13339 conditionals. Don't check enable_font_backend. Delete all codes
13340 used only when USE_FONT_BACKEND is not defined.
13341 (x_set_font): Call x_new_font, not x_new_fontset2.
13342 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
13343 already set for the frame.
13344
13345 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
13346 a font-entity by font_make_entity. Use font_intern_prop instead
13347 of intern_downcase. Use FONT_SET_STYLE to set a style-related
13348 font property. If a font is scalable, set avgwidth property to 0.
13349 Set font-entity property by font_put_extra.
13350 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
13351 (ffont_driver): Adjusted for the change of struct font_driver.
13352 (ftfont_spec_pattern): New function.
13353 (ftfont_list): Return a list, not vector.
13354 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
13355 (ftfont_list_family): Don't downcase names.
13356 (ftfont_free_entity): Deleted.
13357 (ftfont_open): Return a font-object. Adjusted for the change of
13358 struct font. Get underline_thickness and underline_position from
13359 font property. Don't update dpyinfo->smallest_font_height and
13360 dpyinfo->smallest_char_width.
13361 (ftfont_close): Don't free `struct font'.
13362 (ftfont_has_char): Adjusted for the format change of font-entity.
13363 (ftfont_encode_char, ftfont_text_extents): Likewise.
13364
13365 * ftxfont.c (ftxfont_list): Return a list, not vector.
13366 (ftxfont_open): Return a font-object. Adjusted for the change of
13367 struct font. Get underline_thickness and underline_position from
13368 font property. Don't update dpyinfo->smallest_font_height and
13369 dpyinfo->smallest_char_width.
13370 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
13371 (ftxfont_draw): Adjusted for the change of struct font.
13372
13373 * image.c (image_ascent): Don't include "charset.h". Include
13374 "character.h" and "font.h".
13375
13376 * lisp.h (enum pvec_type): New member PREV_FONT.
13377 (Fassoc_string): EXFUN it.
13378
13379 * print.c: Include font.h.
13380 (print_object): Handle font-related objects.
13381
13382 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
13383 conditionals. Don't check enable_font_backend. Delete all codes
13384 used only when USE_FONT_BACKEND is not defined.
13385 (handle_auto_composed_prop): Do nothing if it->f is not on a
13386 window system. Check how many following characters can be
13387 displayed by the same font.
13388 (calc_pixel_width_or_height): Type of the 4th arg is changed to
13389 'struct font *'.
13390 (get_char_face_and_encoding): Assign the whole encoding task to
13391 the `encode-char' method of a font driver.
13392 (fill_composite_glyph_string): Adjusted for the change of `struct
13393 face' and `struct glyph_string'.
13394 (fill_glyph_string): Likewise.
13395 (get_per_char_metric): Arguments changed.
13396 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
13397 and `struct glyph_string'.
13398 (produce_stretch_glyph, calc_line_height_property)
13399 (x_produce_glyphs): Likewise.
13400
13401 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
13402 conditionals. Don't check enable_font_backend. Delete all codes
13403 used only when USE_FONT_BACKEND is not defined. Use
13404 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
13405 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
13406 (Qp): Extern them.
13407 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
13408 Deleted.
13409 (struct font_name): Deleted.
13410 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
13411 (compare_fonts_by_sort_order): New function.
13412 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
13413 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
13414 Deleted.
13415 (Fx_family_fonts): Use font_list_entities, and sort fonts by
13416 compare_fonts_by_sort_order.
13417 (Fx_font_family_list): Call Ffont_family_list.
13418 (face_numeric_value, face_numeric_weight, face_numeric_slant)
13419 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
13420 (face_symbolic_slant, face_symbolic_swidth)
13421 (split_font_name_into_vector, build_font_name_from_vector)
13422 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
13423 (font_rescale_ratio, split_font_name, build_font_name)
13424 (free_font_names, sort_fonts, x_face_list_fonts)
13425 (face_font_available_p, sorted_font_list, cmp_font_names)
13426 (font_list_1, concat_font_list, font_list, remove_duplicates):
13427 Deleted.
13428 (Fx_list_fonts): Use Ffont_list.
13429 (LFACE_AVGWIDTH): Deleted.
13430 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
13431 by FONTP.
13432 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
13433 (set_lface_from_font_name): Delete it.
13434 (set_lface_from_font): Renamed from
13435 set_lface_from_font_and_fontset. Caller changed. Don't set
13436 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
13437 for face.
13438 (merge_face_vectors): Copy font-spec if necessary.
13439 Clear properties of the font-spec if necessary.
13440 (merge_face_ref): Clear properties of the font-spec if necessary.
13441 (Finternal_set_lisp_face_attribute): Likewise.
13442 (set_font_frame_param): Use font_load_for_lface to load a
13443 font-object, and call Fmodify_frame_parameters with it.
13444 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
13445 font name by Ffont_xlfd_name.
13446 (Finternal_lisp_face_attribute_values): Don't check QCweight,
13447 QCslant, and QCwidth.
13448 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
13449 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
13450 Compare fonts by EQ.
13451 (lookup_non_ascii_face): Deleted.
13452 (face_for_font): The 2nd argument changed.
13453 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
13454 Check atomic font properties by case insensitive.
13455 (realize_non_ascii_face): Set face->overstrike correctly.
13456 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
13457 (dump_realized_face): Get font name from
13458 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
13459
13460 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
13461 conditionals. Don't check enable_font_backend. Delete all codes
13462 used only when USE_FONT_BACKEND is not defined.
13463 (xic_create_xfontset): Original code deleted and renamed from
13464 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
13465 (x_make_gc): Don't set GCFont in GCs.
13466 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
13467 opened by "fixed".
13468 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
13469 find_ccl_program_func, query_font_func, set_frame_fontset_func,
13470 get_font_repertory_func.
13471
13472 * xfont.c: Include <stdlib.h> and "ccl.h".
13473 (struct xfont_info): New structure.
13474 (xfont_query_font): Deleted.
13475 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
13476 moved from xterm.c.
13477 (xfont_driver): Adjusted for the change of struct font_driver.
13478 (compare_font_names): New function.
13479 (xfont_list_pattern): Sort font names case insensitively. Make
13480 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
13481 (xfont_list): Return a list, not vector.
13482 (xfont_match): If the font doesn't have QCname property, generate
13483 a name from the other font properties.
13484 (xfont_open): Return a font-object. Adjusted for the change of
13485 struct font. Get underline_thickness and underline_position from
13486 font property. Don't update dpyinfo->smallest_font_height and
13487 dpyinfo->smallest_char_width.
13488 (xfont_close): Don't free struct font.
13489 (xfont_prepare_face): Adjusted for the change of struct font.
13490 (xfont_done_face): Deleted.
13491 (xfont_has_char): Adjusted for the change of struct font.
13492 (xfont_encode_char, xfont_draw): Likewise.
13493 (xfont_check): New function.
13494
13495 * xftfont.c (xftfont_list): Adjusted for the change of `list'
13496 callback function.
13497 (xftfont_match): Adjusted for the format change of font-entity.
13498 (xftfont_open): Adjusted for the format change of font-entity and
13499 font-object. Adjusted for the change of struct font. Return a
13500 font-object. Don't update dpyinfo->smallest_font_height and
13501 dpyinfo->smallest_char_width.
13502 (xftfont_close): Block input while calling XftFontClose.
13503 (xftfont_prepare_face): Don't block input while calling
13504 xftfont_get_colors. Adjusted for the change of struct font.
13505 (xftfont_shape): Return value of error case fixed.
13506
13507 * xrdb.c (x_load_resources): Don't setup a fontset resource.
13508
13509 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
13510 conditionals.
13511 (FONT_WIDTH): Return (f)->max_width.
13512 (struct x_display_info): Delete member `font'.
13513 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
13514 (x_find_ccl_program, x_get_font_repertory): Delete externs.
13515 (struct x_output): Change type of `font' to `struct font *'.
13516
13517 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
13518 conditionals. Don't check enable_font_backend. Delete all codes
13519 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
13520 (x_per_char_metric, x_encode_char): Deleted.
13521 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
13522 (x_compute_glyph_string_overhangs): Adjusted for the change of
13523 `struct face'.
13524 (x_draw_glyph_string_foreground)
13525 (x_draw_composite_glyph_string_foreground): Likewise.
13526 (x_draw_glyph_string): Likewise. Use font->underline_position and
13527 font->underline_thickness.
13528 (x_new_font): Renamed from x_new_fontset2.
13529 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
13530 (x_check_font): Call `check' method of a font driver.
13531 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
13532 (x_query_font, x_get_font_repertory): Deleted.
13533 (x_find_ccl_program): Renamed and moved to xfont.c.
13534 (x_redisplay_interface): Adjusted for the change of `struct
13535 redisplay_interface'.
13536
13537 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
13538 conditionals. Don't check enable_font_backend. Delete all codes
13539 used only when USE_FONT_BACKEND is not defined. Surround non-used
13540 code by "#ifdef OLD_FONT" and "endif".
13541 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
13542
13543 * w32font.h (struct w32font_info): New member.
13544 (FONT_COMPAT): New macro.
13545 (w32font_open_internal): Prototype adjusted.
13546
13547 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
13548 OLD_FONT" and "endif".
13549
13550 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
13551 conditionals. Don't check enable_font_backend. Delete all codes
13552 used only when USE_FONT_BACKEND is not defined.
13553 (w32font_open): Return a font-object. Make a font-object by
13554 font_make_object. Adjusted for the change of struct w32font_info.
13555 (w32font_close): Don't free struct font. Adjusted for the change
13556 of struct w32font_info.
13557 (w32font_encode_char, w32font_text_extents, w32font_draw):
13558 Adjusted for the change of struct w32font_info.
13559 (w32font_draw): Likewise.
13560 (w32font_list_internal): Return a list, not vector.
13561 (w32font_open_internal): Change the 4th arg to font-object.
13562 Adjusted for the change of struct w32font_info and font-object format.
13563 (add_font_name_to_list): Don't downcase names.
13564 (w32_enumfont_pattern_entity): Make a font-entity by
13565 font_make_entity. Adjusted for the format change of font-entity.
13566 Use FONT_SET_STYLE to set a style-related font property. If a
13567 font is scalable, set avgwidth property to 0. Set font-entity
13568 property by font_put_extra.
13569 (font_matches_spec): Adjusted for the format change of font-entity.
13570 (w32_weight_table, w32_decode_weight): New variables.
13571 (w32_encode_weight): New function.
13572 (fill_in_logfont): Adjusted for the format change of font-spec.
13573 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
13574 weight value.
13575 (w32font_driver): Adjusted for the change of struct font_driver.
13576
13577 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
13578 conditionals. Don't check enable_font_backend. Surround non-used
13579 code by "#ifdef OLD_FONT" and "endif".
13580 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
13581 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
13582
13583 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
13584 conditionals. Don't check enable_font_backend. Delete all codes
13585 used only when USE_FONT_BACKEND is not defined. Surround non-used
13586 code by "#ifdef OLD_FONT" and "endif".
13587
13588 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
13589 (uniscribe_open): Return value changed to font-object.
13590 Adjusted for the format change of font-object.
13591 (uniscribe_otf_capability): Adjusted for the change of struct font.
13592 (add_opentype_font_name_to_list): Don't downcase names.
13593 (uniscribe_font_driver): Adjusted for the change of struct
13594 font_driver.
13595
135962008-05-13 Chong Yidong <cyd@stupidchicken.com>
13597
13598 * dispnew.c (update_frame_1): Check if tty output is still valid
13599 before flushing it.
13600
136012008-05-13 Jan Djärv <jan.h.d@swipnet.se>
13602
13603 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
13604 to Gtk+ menus.
13605
136062008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
13607
13608 * dired.c (file_name_completion): Tweak the code so as to always do it
13609 in a single pass. Tighten the scope of some variables.
13610
13611 * dired.c (Qdefault_directory): New var.
13612 (file_name_completion): Use it instead of Fexpand_file_name.
13613 (syms_of_dired): Initialize it.
13614
136152008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
13616
13617 * fileio.c (double_dollars): Remove dead code.
13618
136192008-05-10 Eli Zaretskii <eliz@gnu.org>
13620
13621 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
13622 Mention w32-get-true-file-attributes in doc string.
13623
13624 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
13625
136262008-05-09 Glenn Morris <rgm@gnu.org>
13627
13628 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
13629 2008-04-23.
13630
136312008-05-09 Eli Zaretskii <eliz@gnu.org>
13632
13633 Support for reporting owner and group of each file on MS-Windows:
13634 * dired.c (stat_uname, stat_gname): New functions, with special
13635 implementation for w32.
13636 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
13637
13638 * w32.c: Rename the_passwd_* to dflt_passwd_*.
13639 (dflt_group_name): New static variable.
13640 (dflt_group): Rename from the_group.
13641 (init_user_info): Init dflt_group fields. Get user's group name
13642 from LookupAccountSid.
13643 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
13644 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
13645 New initialization states.
13646 (globals_of_w32): Initialize them to zero. Initialize the default
13647 group name to "None".
13648 (GetFileSecurity_Name): New global var, the name of the function
13649 to call for GetFileSecurity.
13650 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
13651 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
13652 (get_file_security, get_security_descriptor_owner)
13653 (get_security_descriptor_group, is_valid_sid)
13654 (get_file_security_desc, get_rid, get_name_and_id)
13655 (get_file_owner_and_group): New functions.
13656 (stat): Use get_file_security_desc and get_file_owner_and_group to
13657 report the owner and primary group of each file. Don't ignore the
13658 high 32 bits of file's size, now that st_size is 64-bit wide.
13659 Fix test when to get true file attributes.
13660 (init_user_info): Use get_rid instead of equivalent inline code.
13661 (fstat): Don't ignore the high 32 bits of file's size.
13662
136632008-05-09 Chong Yidong <cyd@stupidchicken.com>
13664
13665 * image.c (png_load): Use correct bit-depth for setting background
13666 color.
13667
136682008-05-08 Eli Zaretskii <eliz@gnu.org>
13669
13670 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
13671 epa-hook.elc.
13672
136732008-05-08 Juanma Barranquero <lekktu@gmail.com>
13674
13675 * font.c (Ffont_match_p): Don't use `iff' in docstring.
13676
136772008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
13678
13679 * macfns.c (Fx_create_frame): Make a copy of frame parameters
13680 because the original parameters are in pure storage now.
13681 (mac_window): Remove unused params. Update callers.
13682
136832008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
13684
13685 * lread.c (substitute_object_recurse): Use lower-level primitives.
13686 Don't signal errors when traversing sub-char-tables.
13687 Don't loop over all the possible characters when traversing char-tables.
13688
13689 * print.c (print_preprocess): Add sub-char-tables to the print-table,
13690 just like we do in print.c.
13691
136922008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
13693
13694 * minibuf.c (Ftry_completion): Remove code left over from when we used
13695 scmp instead of Fcompare_strings.
13696
136972008-05-04 Juanma Barranquero <lekktu@gmail.com>
13698
13699 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
13700
137012008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13702
13703 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
13704 Create bitmap context in native byte order.
13705
13706 * macterm.c (XDrawLine)
13707 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
13708 context in native byte order.
13709
137102008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13711
13712 * config.in: Regenerate.
13713
13714 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
13715 New definitions for Image I/O support.
13716 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
13717 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
13718 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
13719 (mac_data_provider_release_data, image_load_image_io)
13720 [USE_MAC_IMAGE_IO]: New functions.
13721 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
13722 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
13723 (init_image_func_pointer) [MAC_OSX]: Remove function.
13724 (image_load_quartz2d) [MAC_OSX]: Check availability of
13725 CGImageCreateWithPNGDataProvider at compile time.
13726 Use lowercase `false' for boolean constant.
13727 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
13728 Use image_load_image_io.
13729 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
13730 Don't check MyCGImageCreateWithPNGDataProvider.
13731 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
13732 Don't call init_image_func_pointer.
13733
13734 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
13735
13736 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
13737 Make variable non-static.
13738 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
13739 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
13740
13741 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
13742 (RED_FROM_ULONG): Mask off higher bits.
13743 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
13744
13745 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
13746 Include AvailabilityMacros.h.
13747 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
13748 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
13749
137502008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
13751
13752 * chartab.c (Fset_char_table_range): If range is t, really set all
13753 chars to that value.
13754
137552008-05-03 Eli Zaretskii <eliz@gnu.org>
13756
13757 * dired.c (Ffile_attributes): Don't allow the device number become
13758 negative.
13759
137602008-05-02 Daiki Ueno <ueno@unixuser.org>
13761
13762 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
13763
137642008-05-02 Juri Linkov <juri@jurta.org>
13765
13766 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
13767 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
13768 DEFAULT argument as a list of default values in docstrings.
13769
137702008-05-01 Chong Yidong <cyd@stupidchicken.com>
13771
13772 * puresize.h (BASE_PURESIZE): Increase to 1210000.
13773
137742008-05-01 Martin Rudalics <rudalics@gmx.at>
13775
13776 * dispnew.c (change_frame_size_1): Preserve small windows when
13777 shrinking frames by calling set_window_height|width with third
13778 arg 2.
13779
13780 * window.h (struct window): Replace field too_small_ok by field
13781 resize_proportionally.
13782
13783 * window.c (make_window): Initialize resize_proportionally.
13784 (enlarge_window): Temporarily set resize_proportionally to make
13785 sure that shrink_windows does scale the window proportionally.
13786 (shrink_windows): When window has resize_proportionally set try
13787 to shrink it proportionally by stealing from other windows.
13788 (struct saved_window, Fset_window_configuration)
13789 (compare_window_configurations): Handle resize_proportionally.
13790 (WINDOW_TOTAL_SIZE): New macro.
13791 (window_min_size, shrink_windows, size_window): Use it.
13792 (check_min_window_sizes): Remove. Invalid values of
13793 window-min-height|width are handled by window_min_size_2 now.
13794 (size_window, Fsplit_window, enlarge_window)
13795 (adjust_window_trailing_edge, grow_mini_window): Don't call
13796 check_min_window_sizes.
13797 (window_min_size_2, window_min_size_1, window_min_size):
13798 New argument safe_p for retrieving "safe" minimum sizes.
13799 (Fdisplay_buffer, Fsplit_window, enlarge_window)
13800 (adjust_window_trailing_edge, grow_mini_window):
13801 Adjust arguments of window_min_size... functions.
13802 (shrink_windows): Argument min_size removed. New argument
13803 safe_p allows shrinking windows to their safe minimum sizes.
13804 Calculate minimum size and decide whether a window shall be
13805 deleted for each window individually.
13806 (size_window): When nodelete_p equals 2, tell shrink_windows to
13807 delete windows only if their new minimum size is no more safe.
13808 (shrink_window_lowest_first): Call window_min_size_1 to make
13809 sure to preserve modeline of bottom-most window when resizing
13810 the minibuffer.
13811 (Fset_window_configuration, Fcurrent_window_configuration)
13812 (compare_window_configurations): Do not handle
13813 window-min-height|width any more.
13814 (syms_of_window): Clarify window-min-height|width doc-strings.
13815
138162008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
13817
13818 * dired.c (file_name_completion): Fix up the encoding/decoding issue
13819 some more. Copy some of the code from Ftry_completions.
13820 Remove special case code that dates back to initial revision when the
13821 slash was only added when necessary and that can't trigger nowadays.
13822
138232008-04-27 Kenichi Handa <handa@m17n.org>
13824
13825 * font.c (font_prop_validate): Signal `error' instead of `font'.
13826
138272008-04-29 Jason Rumney <jasonr@gnu.org>
13828
13829 * w32fns.c (Fw32_battery_status): New defun.
13830 (syms_of_w32fns): Defsubr it.
13831
138322008-04-28 Andreas Schwab <schwab@suse.de>
13833
13834 * dired.c (file_name_completion): Fix another mixing of encoded
13835 and decoded names.
13836
138372008-04-28 Juanma Barranquero <lekktu@gmail.com>
13838
13839 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
13840
138412008-04-27 Juanma Barranquero <lekktu@gmail.com>
13842
13843 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
13844
138452008-04-27 Andreas Schwab <schwab@suse.de>
13846
13847 * dired.c (file_name_completion): Fix inappropriate mixing of
13848 encoded and decoded names.
13849
13850 * xterm.c (XTread_socket): Fix use of uninitialized variable.
13851
13852 * puresize.h (BASE_PURESIZE): Increase to 1200000.
13853
138542008-04-26 Eli Zaretskii <eliz@gnu.org>
13855
13856 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
13857 2008-03-31, it's not needed anymore with `struct stat' definition
13858 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
13859 for the same reasons.
13860
138612008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
13862
13863 * m/sparc.h: Additional redefinitions for GNU/Linux.
13864
138652008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13866
13867 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
13868 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
13869 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
13870 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
13871 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13872 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
13873 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13874 Likewise.
13875
13876 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
13877 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
13878 (mac_ax_number_of_characters): Add externs.
13879 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13880 [USE_MAC_TSM]: Likewise.
13881 (mac_handle_text_input_event) [MAC_OSX]:
13882 Handle kEventTextInputOffsetToPos for no active input area case.
13883 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
13884 (mac_handle_document_access_event)
13885 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
13886 (install_application_handler) [MAC_OSX]: Register handlers for
13887 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
13888 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13889 Register mac_handle_document_access_event.
13890
13891 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
13892 Make functions non-static.
13893
138942008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
13895
13896 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
13897 (read_file_name_completion_ignore_case, insert_default_directory)
13898 (Qdefault_directory): Move to minibuffer.el.
13899 (Fread_file_name): Call the new `read-file-name' instead.
13900
139012008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13902
13903 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
13904 Make function non-static.
13905 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
13906 Remove function.
13907 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
13908 Move to mactoolbox.c.
13909 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
13910
13911 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
13912 (mac_rect_make): New macro.
13913
13914 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
13915 instead of float.
13916 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
13917 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
13918 (XSetBackground) [USE_CG_DRAWING]: Likewise.
13919 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
13920 CGRectMake.
13921 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
13922 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
13923 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
13924 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
13925 instead of WindowRef in argument type.
13926 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
13927 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
13928 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
13929 instead of DISPLAY. All uses changed.
13930 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
13931 (x_calc_absolute_position): Simplify so as not to use
13932 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
13933
13934 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
13935 instead of WindowRef in argument type.
13936 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
13937 [TARGET_API_MAC_CARBON]: Remove externs.
13938 (create_apple_event, mac_event_parameters_to_lisp)
13939 [TARGET_API_MAC_CARBON]: Add externs.
13940
13941 * mactoolbox.c (Vmac_ts_script_language_on_focus)
13942 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
13943 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
13944 is clicked.
13945 (x_activate_menubar): Remove extern for saved_menu_event_location.
13946 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
13947 Move from mac.c.
13948
139492008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13950
13951 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
13952 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
13953
139542008-04-23 Jason Rumney <jasonr@gnu.org>
13955
13956 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
13957 attributes only for local files.
13958
13959 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
13960 default to Qlocal.
13961
139622008-04-22 Juri Linkov <juri@jurta.org>
13963
13964 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
13965 read-buffer-to-switch instead of using the letter "B".
13966
139672008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
13968
13969 * fileio.c (Qdefault_directory): New variable.
13970 (Fread_file_name): Use it to pass `dir' to the completion functions.
13971
139722008-04-20 Chong Yidong <cyd@stupidchicken.com>
13973
13974 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
13975
139762008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
13977
13978 * keyboard.c (Vpre_help_message): Remove.
13979 (show_help_echo): Remove default C code.
13980
13981 * dired.c (directory_files_internal, file_name_completion):
13982 Only call ENCODE_FILE if the string is indeed decoded.
13983
139842008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
13985
13986 * Makefile.in (TOOLKIT_DEFINES): Remove.
13987 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
13988
139892008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13990
13991 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
13992 (mactoolbox.o): New target.
13993
13994 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
13995 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
13996
13997 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
13998 Use mac_set_frame_window_background instead of XSetWindowBackground.
13999 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
14000 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
14001 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
14002 instead of SetWindowTitleWithCFString.
14003 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
14004 Move function to mactoolbox.c.
14005 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
14006 Use mac_set_window_modified instead of SetWindowModified.
14007 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
14008 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
14009 (Fx_focus_frame): Use mac_front_non_floating_window instead of
14010 FrontNonFloatingWindow. Use mac_activate_window instead of
14011 ActivateWindow. Use mac_active_non_floating_window instead of
14012 ActiveNonFloatingWindow.
14013 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
14014 Use mac_show_hourglass and mac_hide_hourglass.
14015 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
14016 instead of GetGlobalMouse.
14017 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
14018 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
14019 Use mac_bring_window_to_front instead of BringToFront.
14020 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
14021 mactoolbox.c.
14022 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
14023 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
14024 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
14025 mactoolbox.c.
14026
14027 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
14028 (XtPointer): Move typedef from macmenu.c.
14029 (enum button_type): Move enum from macmenu.c.
14030 (widget_value): Move typedef from macmenu.c.
14031 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
14032 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
14033 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
14034 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
14035 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
14036 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
14037 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
14038 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
14039 (Selection): Move typedef from macselect.c.
14040 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
14041 macterm.c.
14042 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
14043 (mac_is_window_collapsed, mac_bring_window_to_front)
14044 (mac_send_window_behind, mac_hide_window, mac_show_window)
14045 (mac_collapse_window, mac_front_non_floating_window)
14046 (mac_active_non_floating_window, mac_activate_window)
14047 (mac_move_window_structure, mac_move_window, mac_size_window)
14048 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
14049
14050 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
14051 (enum mac_menu_kind): Move enum to mactoolbox.c.
14052 (min_menu_id): Move variable to mactoolbox.c.
14053 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
14054 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
14055 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
14056 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
14057 [TARGET_API_MAC_CARBON]: Likewise.
14058 (XtPointer): Move typedef to macgui.h.
14059 (enum button_type): Move enum to macgui.h.
14060 (widget_value): Move typedef to macgui.h.
14061 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
14062 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
14063 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
14064 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
14065 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
14066 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
14067 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
14068 (popup_activated_flag): Make variable non-static.
14069 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
14070 (add_menu_item, fill_menu, dispose_menus):
14071 Move functions to mactoolbox.c.
14072 (restore_show_help_function, menu_target_item_handler)
14073 (install_menu_target_item_handler, mac_handle_dialog_event)
14074 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
14075 [TARGET_API_MAC_CARBON]: Likewise.
14076 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
14077 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
14078 (find_and_call_menu_selection, name_is_separator): Make function
14079 non-static.
14080 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
14081 to mactoolbox.c.
14082 (set_frame_menubar): Don't call install_menu_quit_handler.
14083 (menu_item_selection): New variable.
14084 (mac_menu_show): Use create_and_show_popup_menu.
14085 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
14086 selection but set variable menu_item_selection. All uses changed.
14087 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
14088 Call install_menu_quit_handler. Move to mactoolbox.c.
14089
14090 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
14091 (Selection): Move typedef to macgui.h.
14092 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
14093 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
14094 Make variables non-static.
14095 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
14096 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
14097 Make functions non-static.
14098 (Vmac_service_selection) [MAC_OSX]: Likewise.
14099 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
14100 (mac_valid_selection_target_p, mac_clear_selection)
14101 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
14102 (mac_put_selection_value, mac_selection_has_target_p)
14103 (mac_get_selection_value, mac_get_selection_target_list)
14104 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
14105 Move functions to mactoolbox.c.
14106 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
14107 Likewise.
14108 (copy_scrap_flavor_data, mac_handle_service_event)
14109 (install_service_handler) [MAC_OSX]: Likewise.
14110 (syms_of_macselect) <Vmac_dnd_known_types>:
14111 Use mac_dnd_default_known_types.
14112
14113 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
14114 Move to mactoolbox.c.
14115 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
14116 (Fx_selection_owner_p): Add EXFUN.
14117 (install_window_handler, remove_window_handler, XSetWindowBackground):
14118 Remove externs.
14119 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
14120 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
14121 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
14122 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
14123 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
14124 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
14125 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
14126 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
14127 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
14128 (create_and_show_popup_menu, mac_get_selection_from_symbol)
14129 (mac_valid_selection_target_p, mac_clear_selection)
14130 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
14131 (mac_put_selection_value, mac_selection_has_target_p)
14132 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
14133 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
14134 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
14135 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
14136 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
14137 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
14138 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
14139 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
14140 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
14141
14142 * mactoolbox.c: New file.
14143
141442008-04-18 Jason Rumney <jasonr@gnu.org>
14145
14146 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
14147
141482008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
14149
14150 * character.c (Fmultibyte_char_to_unibyte):
14151 Return latin1 chars unchanged.
14152
14153 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
14154 relocated if it points to `name'.
14155
141562008-04-17 Kenichi Handa <handa@m17n.org>
14157
14158 * data.c (Faset): Allow setting a multibyte character in an
14159 ASCII-only unibyte string.
14160
14161 * lisp.h (STRING_SET_MULTIBYTE): New macro.
14162
141632008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
14164
14165 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
14166 done in config.h.
14167
141682008-04-16 Juanma Barranquero <lekktu@gmail.com>
14169
14170 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
14171 (Fchar_direction): Add usage in the docstring.
14172
141732008-04-15 Chong Yidong <cyd@stupidchicken.com>
14174
14175 * keyboard.c (read_key_sequence): Remove always-true checks.
14176
141772008-04-14 Jason Rumney <jasonr@gnu.org>
14178
14179 * w32font.c (w32font_open_internal): Set max_bounds.descent in
14180 compatibility struct, for better underline positioning.
14181
141822008-04-13 David Hansen <david.hansen@gmx.net>
14183
14184 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
14185 string.
14186
141872008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
14188
14189 * m/hp800.h (XUINT, XSET): Remove.
14190
141912008-04-12 Juanma Barranquero <lekktu@gmail.com>
14192
14193 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
14194 previous change.
14195
141962008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
14197
14198 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
14199 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
14200
142012008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
14202
14203 * keymap.h (map_keymap_canonical): Declare.
14204 * xmenu.c (single_keymap_panes): Use it.
14205
142062008-04-11 Glenn Morris <rgm@gnu.org>
14207
14208 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
14209 set the target's value to that of the alias.
14210
142112008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
14212
14213 * term.c (set_tty_color_mode): Left over typo.
14214
142152008-04-10 Michael Albinus <michael.albinus@gmx.de>
14216
14217 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
14218 only after check for file name handler functions. Signal, when
14219 native functionality is not supported.
14220 (syms_of_fileio): Declare it unconditionally.
14221
142222008-04-10 Jason Rumney <jasonr@gnu.org>
14223
14224 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
14225 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
14226
14227 * w32.c (logon_network_drive): Also logon to remote drives that
14228 are mapped to drive letters.
14229
142302008-04-10 Glenn Morris <rgm@gnu.org>
14231
14232 * xdisp.c (truncate-partial-width-windows): Doc fix.
14233
142342008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
14235
14236 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
14237 Move functions to minibuffer.el.
14238 (syms_of_fileio): Don't declare them.
14239
142402008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
14241
14242 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
14243 (syms_of_minibuf): Remove its initialization.
14244
14245 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
14246
142472008-04-09 Juanma Barranquero <lekktu@gmail.com>
14248
14249 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
14250
142512008-04-09 Jason Rumney <jasonr@gnu.org>
14252
14253 * makefile.w32-in (distclean): Delete makefile too.
14254 (maintainer-clean): New target.
14255
14256 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
14257
14258 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
14259 for new font backend and composite cases.
14260
142612008-04-09 Jan Djärv <jan.h.d@swipnet.se>
14262
14263 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
14264 Most of the code moved to run_timers.
14265 (do_pending_atimers): Call run_timers.
14266 (run_timers): New function.
14267
14268 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
14269 run atimers.
14270
14271 * process.c (wait_reading_process_output): The same as above.
14272
142732008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
14274
14275 * minibuf.c (last_exact_completion): Remove variable.
14276 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
14277 (complete_and_exit_1, complete_and_exit_2)
14278 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
14279 (Fdisplay_completion_list, display_completion_list_1)
14280 (Fminibuffer_completion_help, Fself_insert_and_exit)
14281 (Fexit_minibuffer, Fminibuffer_message): Move functions to
14282 minibuffer.el.
14283 (syms_of_minibuf): Remove corresponding initializations.
14284
14285 * keyboard.c (Qdeactivate_mark): New var.
14286 (command_loop_1): Use it to call `deactivate-mark'.
14287 (syms_of_keyboard): Initialize it.
14288
14289 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
14290 to another frame.
14291 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
14292 Don't call set_tty_color_mode.
14293 (store_frame_param): Reset previous_frame rather than call
14294 set_tty_color_mode.
14295 * term.c (set_tty_color_mode): Rewrite.
14296 * dispextern.h (set_tty_color_mode): New type.
14297 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
14298
142992008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
14300
14301 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
14302 for generic chars, which do not exist any more in emacs-unicode.
14303
143042008-04-08 Michael Albinus <michael.albinus@gmx.de>
14305
14306 * coding.c (detect_coding_emacs_mule)
14307 (Ffind_operation_coding_system): Fix typo.
14308
143092008-04-08 Jason Rumney <jasonr@gnu.org>
14310
14311 * w32uniscribe.c (SNAME): Extract only symbol name.
14312
14313 * w32font.h (struct w32_metric_cache): New struct.
14314 (w32font_info): Use it.
14315 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
14316 (CACHE_BLOCKSIZE): New constants.
14317
14318 * w32font.c (Qja, Qko, Qzh): New symbols.
14319 (syms_of_w32font): Initialise them.
14320 (font_matches_spec): Use them to filter by language.
14321 (recompute_cached_metrics): Remove function.
14322 (compute_metrics, clear_cached_metrics): New functions.
14323 (w32font_encode_char): Use them to manage metric cache.
14324 (w32font_text_extents): Cache metrics for all glyphs on demand.
14325 Delay converting glyph indices to WORD until needed.
14326 (w32font_open_internal): Initialize metric cache to empty.
14327 (registry_to_w32_charset): Charset should always be a symbol.
14328 (fill_in_logfont, list_all_matching_fonts): Family should
14329 always be a symbol.
14330
143312008-04-06 Jason Rumney <jasonr@gnu.org>
14332
14333 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
14334 Give up if glyph indices not supported. Use uniscribe obtained
14335 ABC widths for individual metrics. Map glyph clusters back to
14336 characters using fClusterStart flag. Return number of glyphs
14337 produced, not chars processed.
14338 (uniscribe_shape): Map char at FROM to current glyph.
14339
143402008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14341
14342 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
14343 Use SetMenuItemHierarchicalMenu.
14344
143452008-04-05 Jason Rumney <jasonr@gnu.org>
14346
14347 * image.c (pbm_load): Allow color values up to 65535.
14348 Throw an error if max_color_idx is outside the supported range.
14349 Report an error when image size is invalid.
14350 Read two bytes at a time when raw images have max_color_idx above 255.
14351
aac0c6e3
MR
143522008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
14353
14354 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
14355 append "CCL: Quitted" when the CCL program is quitted.
14356 (setup_ccl_program): Initialize ccl->quit_silently to zero.
14357
14358 * ccl.h (struct ccl_program): New member quit_silently.
14359
143602008-04-05 Chong Yidong <cyd@stupidchicken.com>
14361
14362 * search.c (compile_pattern_1): Treat non-nil and non-string of
14363 search-spaces-regexp as nil.
14364
14365 * minibuf.c (Fassoc_string): Tweak docstring.
14366
143672008-04-05 Eli Zaretskii <eliz@gnu.org>
14368
14369 * dired.c (Ffile_attributes): Support inode numbers wider than 32
14370 bits. Remove ugly WINDOWSNT-specific kludge introduced on
14371 2008-03-14 to force inode be positive.
14372
14373 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
14374 _S_* ones, since we now use our own sys/stat.h.
14375 (stat, fstat): Don't mangle the inode number.
14376 (init_user_info): Don't restrict UID and GID to 0-60000 range.
14377
143782008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
14379
14380 * frame.h (struct frame): Give one more bit to `visible' since we use
14381 values larger than 1 to indicate obscured frames on ttys.
14382
14383 * keymap.c (Qkeymap_canonicalize): New var.
14384 (Fmap_keymap_internal): New fun.
14385 (describe_map): Use keymap-canonicalize.
14386
14387 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
14388 (Fundo_boundary): Set them.
14389 (syms_of_undo): Initialize them.
14390 (record_point): Use them instead of last_point_position*.
14391 (last_undo_buffer): Change type.
14392
143932008-04-04 Jason Rumney <jasonr@gnu.org>
14394
14395 * w32font.c (w32font_text_extents): Use font's ascent and descent.
14396 (recompute_cached_metrics): Don't set ascent and descent per char.
14397
14398 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
14399 (uniscribe_check_otf): Add GC protection before consing.
14400 Rearrange loop for counting features.
14401
144022008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
14403
14404 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
14405 buffer with byte-size of source buffer.
14406
144072008-04-03 Chong Yidong <cyd@stupidchicken.com>
14408
14409 * callint.c (Fcall_interactively): Handle temporary region even
14410 when shift-select-mode is off.
14411
144122008-04-03 Jason Rumney <jasonr@gnu.org>
14413
14414 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
14415
144162008-04-03 Kenichi Handa <handa@m17n.org>
14417
14418 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
14419 (CATEGORY_MASK_UTF_16): Likewise.
14420 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
14421 binary file.
14422 (detect_coding): Add null-byte detection for a binary file.
14423 (detect_coding_system): Likewise.
14424
144252008-04-03 Jason Rumney <jasonr@gnu.org>
14426
14427 * w32uniscribe.c: New file.
14428
14429 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
14430
14431 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
14432
14433 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
14434 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
14435 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
14436 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
14437 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
14438 (Qphonetic): New symbols.
14439 (syms_of_w32font): Initialize them.
14440 (font_supported_scripts): Use them.
14441 (w32font_list_family): List all charsets.
14442 (w32font_text_extents, recompute_cached_metrics): Fix metric
14443 calculations.
14444 (w32_enumfont_pattern_entity): Make full_type a DWORD.
14445 Give opentype fonts their own format.
14446 (font_matches_spec): New arguments backend and logfont.
14447 Handle :otf spec for uniscribe backend.
14448 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
14449 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
14450
14451 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
14452 font backend.
14453 (globals_of_w32fns): Initialize uniscribe font backend.
14454
14455 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
14456 dependencies.
14457 (w32uniscribe.$(O)): New file to build.
14458 (FONT_OBJ): Include w32uniscribe.$(O).
14459 (LIBS): Add uniscribe libraries.
14460
14461 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
14462
144632008-04-02 Chong Yidong <cyd@stupidchicken.com>
14464
14465 * callint.c (Vshift_select_mode): New var.
14466 (Finteractive): Document new ^ spec.
14467 (Fcall_interactively): Call handle-shift-selection if the ^ spec
14468 is present.
14469
14470 * keyboard.c (Vthis_command_keys_shift_translated): New var.
14471 (command_loop_1): Avoid running the direct display versions of
14472 forward-char and backward-char if shift-selection may occur.
14473 (read_key_sequence): Set Vthis_command_keys_shift_translated if
14474 shift-translation takes place.
14475
14476 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
14477 avoid clobbering by define-minor-mode.
14478
14479 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
14480 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
14481
14482 * syntax.c (Fforward_word): Add ^ interactive spec.
14483
14484 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
14485 (Fscroll_right): Add ^ interactive spec.
14486
144872008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
14488
14489 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
14490
14491 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
14492
14493 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
14494
144952008-03-31 Juri Linkov <juri@jurta.org>
14496
14497 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
14498
144992008-03-30 Jan Djärv <jan.h.d@swipnet.se>
14500
14501 * gtkutil.c (xg_set_geometry): Fix indentation.
14502 (xg_resize_outer_widget): Remove.
14503 (x_wm_size_hint_off): Fix indentation.
14504 (xg_frame_set_char_size): Call flush_and_sync after
14505 gtk_window_resize.
14506 (x_wm_set_size_hint): Pass NULL as geometry window to
14507 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
14508 Add menu bar and tool bar height to base height.
14509 (xg_update_frame_menubar, free_frame_menubar)
14510 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
14511 (update_frame_tool_bar, free_frame_tool_bar):
14512 Change xg_resize_outer_widget to xg_frame_set_char_size.
14513
145142008-03-30 Michael Albinus <michael.albinus@gmx.de>
14515
14516 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
14517 (Fdbus_call_method): New parameter TIMEOUT.
14518 (dbus-send-signal): Optimize UNGCPRO call.
14519
145202008-03-29 Juri Linkov <juri@jurta.org>
14521
14522 * window.c (Fdisplay_buffer): Move call to
14523 Vsplit_window_preferred_function out of conditions that check
14524 if window is eligible for vertical splitting.
14525 When Vsplit_window_preferred_function is non-nil, call it and use
14526 its non-nil return value as window. Otherwise, continue doing
14527 vertical splitting using Fsplit_window with arg horflag=nil.
14528 (syms_of_window) <Vsplit_window_preferred_function>: Change the
14529 default value from `split-window' to nil.
14530
145312008-03-29 Juri Linkov <juri@jurta.org>
14532
14533 * callint.c (Fcall_interactively): Revert 2008-03-16 change
14534 for interactive code letters 'b' and 'B'.
14535
145362008-03-29 Eli Zaretskii <eliz@gnu.org>
14537
14538 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
14539 multibyte string.
14540
145412008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
14542
14543 * keyboard.c (pending_funcalls): New var.
14544 (timer_check): Run it.
14545 (syms_of_keyboard): Initialize it.
14546 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
14547 (Vdelete_terminal_functions): New vars.
14548 (syms_of_terminal): Initialize them.
14549 (Fdelete_terminal): Run delete-terminal-functions.
14550 * xdisp.c (safe_eval): Rewrite.
14551 (safe_call2): New fun.
14552 * frame.c (Qdelete_frame_functions): New var.
14553 (syms_of_frame): Initialize it.
14554 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
14555 * lisp.h (safe_call2, pending_funcalls): Declare.
14556
145572008-03-28 Andreas Schwab <schwab@suse.de>
14558
14559 * indent.c (Fmove_to_column): Move declaration before statements.
14560
145612008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
14562
14563 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
14564 (struct frame): Use bit fields for boolean vars.
14565
14566 * process.c (server_accept_connection): Simplify naming.
14567 (emacs_get_tty_pgrp): Use SDATA.
14568
14569 * coding.c (decode_coding_object): Fix last change.
14570
145712008-03-27 Jason Rumney <jasonr@gnu.org>
14572
14573 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
14574
145752008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
14576
14577 * charset.c (Fdefine_charset_internal): Change the way of
14578 registering charsets in Vcharset_order_list.
14579 (syms_of_charset): Make the charset `eight-bit' supplementary.
14580
145812008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
14582
14583 * regex.c (EXTEND_BUFFER): Change order of pointer addition
14584 operations, to avoid having the difference between pointers
14585 overflow.
14586
145872008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
14588
14589 * indent.c (check_display_width): New fun.
14590 (scan_for_column): Use it.
14591
14592 * data.c (syms_of_data): Mark most-positive-fixnum and
14593 most-negative-fixnum as constants.
14594
14595 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
14596
14597 * indent.c (scan_for_column): Extract from current_column_1.
14598 Merge with the same code from Fmove_to_column.
14599 (current_column_1, Fmove_to_column): Use it.
14600
146012008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
14602
14603 * keymap.c (map_keymap_internal): New fun.
14604 (map_keymap): Use it.
14605 (Fmap_keymap_internal): New fun.
14606 (Fmap_keymap): Remove left-out test from before make_save_value.
14607
14608 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
14609
14610 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
14611 Use XCAR/XCDR.
14612
14613 * process.h (struct Lisp_Process): Remove filter_multibyte.
14614 * process.c (QCfilter_multibyte): Remove.
14615 (setup_process_coding_systems): Don't use filter_multibyte.
14616 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
14617 (read_process_output): Don't adjust multibyteness to filter_multibyte.
14618 (Fset_process_filter_multibyte): Change the coding-system to
14619 approximate the previous behavior.
14620 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
14621 coding-system.
14622
14623 * coding.c (decode_coding_object): When not decoding into a buffer,
14624 obey the coding system's preference of (uni|multi)byte.
14625
146262008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
14627
14628 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
14629 every char is changed and has a different byte-length.
14630 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
14631 Fix int -> EMACS_INT.
14632
146332008-03-23 David Hansen <david.hansen@gmx.net>
14634
14635 * dbusbind.c (xd_read_message): Remove extra copying of message
14636 strings. Check for NULL `interface' or `member'.
14637
146382008-03-22 Eli Zaretskii <eliz@gnu.org>
14639
14640 * w32.c (readdir): If FindFirstFile/FindNextFile return in
14641 cFileName a file name that includes `?' characters, use the 8+3
14642 alias in cAlternateFileName instead.
14643
146442008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
14645
14646 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
14647
146482008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
14649
14650 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
14651 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
14652 work on current_buffer only instead (that was already the case
14653 for some of the code anyway).
14654 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
14655 (temp_set_point, temp_set_point_both): Use EMACS_INT.
14656 (SET_PT, SET_PT_BOTH): Adjust.
14657 * intervals.h (set_point, temp_set_point, set_point_both)
14658 (temp_set_point_both): Remove redundant declarations.
14659
146602008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
14661
14662 * fileio.c (Finsert_file_contents):
14663 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
14664 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
14665 when buffer != current_buffer anyway.
14666
146672008-03-20 Andreas Schwab <schwab@suse.de>
14668
14669 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
14670 as default.
14671
146722008-03-19 Jason Rumney <jasonr@gnu.org>
14673
14674 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
14675 (syms_of_w32fns): Initialize them.
14676 (HOURGLASS_ID): New constant.
14677 (x_window_to_frame): Don't check hourglass_window.
14678 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
14679 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
14680 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
14681 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
14682 Only change the cursor if hourglass is not active.
14683 (Fx_create_frame): Initialize frame's current_cursor.
14684 (hourglass_atimer): Remove.
14685 (hourglass_started): New function.
14686 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
14687 (show_hourglass): Adapt to w32, changing argument to frame.
14688
14689 * w32term.h (struct w32_output): Remove hourglass_window.
14690 Add current_cursor.
14691
14692 * eval.c (call_debugger, Fsignal):
14693 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
14694 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
14695 (Fexecute_extended_command, cancel_hourglass_unwind):
14696 * minibuf.c (read_minibuf):
14697 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
14698
146992008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
14700
14701 * window.c (run_funs): New fun.
14702 (run_window_configuration_change_hook): Use it to run the buffer-local
14703 and the global part of the hook.
14704
14705 * xdisp.c (format_mode_line_unwind_data): Add window argument.
14706 (unwind_format_mode_line): Restore selected window.
14707 (x_consider_frame_title, Fformat_mode_line): Set selected window.
14708
147092008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
14710
14711 * editfns.c (Fchar_equal): Check they are valid characters.
14712
14713 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
14714
147152008-03-17 Andreas Schwab <schwab@suse.de>
14716
14717 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
14718 against a charset.
14719
14720 * lisp.h (Fbuffer_list): Declare.
14721
147222008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 14723
aac0c6e3
MR
14724 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
14725 handlebox_widget is != 0.
14726
147272008-03-16 Juri Linkov <juri@jurta.org>
14728
14729 * callint.c (Fcall_interactively): For interactive code letters
14730 'b' and 'B' put the buffer list into the list of default "future"
14731 values of the minibuffer.
14732
147332008-03-16 Andreas Schwab <schwab@suse.de>
14734
14735 * keyboard.c (read_key_sequence): Fix downcasing of letters with
14736 modifiers.
14737
14738 * regex.c (re_match_2_internal): Correct matching of a charset
14739 against latin-1 characters.
14740
147412008-03-16 Kenichi Handa <handa@m17n.org>
14742
14743 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
14744 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
14745 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
14746 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
14747 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
14748 CHAR_STRING_ADVANCE.
14749 (produce_chars): Fix for the case that the source and the
14750 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
14751 instead of CHAR_STRING_ADVANCE.
14752 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
14753 STRING_CHAR_ADVANCE.
14754
147552008-03-15 Andreas Schwab <schwab@suse.de>
14756
14757 * regex.c (re_match_2_internal): Correct matching of eight bit
14758 characters in unibyte strings.
14759
147602008-03-15 Martin Rudalics <rudalics@gmx.at>
14761
14762 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
14763 at end of range when it coincides with the end of the buffer.
14764
147652008-03-14 Eli Zaretskii <eliz@gnu.org>
14766
14767 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
14768
14769 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
14770
147712008-03-14 Jason Rumney <jasonr@gnu.org>
14772
14773 * editfns.c (initial_tz): New variable.
14774 (syms_of_editfns): Initialize it.
14775 (Fset_time_zone_rule): Set it when first called.
14776 Use it when TZSTRING is nil.
14777
14778 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
14779 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
14780 (monitor_from_point_fn, get_monitor_info_fn): New globals.
14781 (globals_of_w32fns): Initialize them.
14782 (compute_tip_xy): Use them to position tooltips.
14783
147842008-03-14 Glenn Morris <rgm@gnu.org>
14785
14786 * emacs.c (main): Revert previous change.
14787 (standard_args): Revert -internal-script back to -scriptload,
14788 and remove the long-option form.
14789
147902008-03-13 Glenn Morris <rgm@gnu.org>
14791
14792 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
14793 Remove option -enable-font-backend.
14794
147952008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
14796
14797 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
14798
147992008-03-11 Jan Djärv <jan.h.d@swipnet.se>
14800
14801 * xterm.c (x_connection_closed): For GTK: If this is the last
14802 terminal just exit without closing the display.
14803
148042008-03-11 Jason Rumney <jasonr@gnu.org>
14805
14806 * w32font.c (w32font_full_name): Use floor to round.
14807
f0131492 148082008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
14809
14810 * sound.c (alsa_configure): Declare vol at beginning of block.
14811
14812 * fontset.c (Ffontset_info): Remove extra semicolon.
14813
148142008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
14815
14816 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
14817 size of resulting string.
14818
148192008-03-10 Jason Rumney <jasonr@gnu.org>
14820
14821 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
14822
148232008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14824
14825 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
14826 Don't pretend as if characters with display property haven't been
14827 consumed for string-replacing-string case.
14828
148292008-03-08 Kim F. Storm <storm@cua.dk>
14830
14831 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
14832 (get_next_display_element, next_element_from_string)
14833 (next_element_from_ellipsis, next_element_from_buffer): Use it.
14834
148352008-03-08 Andreas Schwab <schwab@suse.de>
14836
14837 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
14838
148392008-03-06 Jason Rumney <jasonr@gnu.org>
14840
14841 * w32font.c (w32_registry): Take font_type argument. Use ANSI
14842 when charset not specified. Only translate ANSI to unicode when
14843 font_type is truetype.
14844 (w32font_coverage_ok): New function.
14845 (add_font_entity_to_list): Use it to filter unsuitable fonts.
14846
148472008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
14848
14849 * lread.c (Fread_char): Resolve modifiers.
14850 (Fread_char_exclusive): Likewise.
14851
14852 * character.c (char_resolve_modifier_mask): New function.
14853 (char_string): Use char_resolve_modifier_mask.
14854 (Fchar_resolve_modifiers): New function.
14855 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
14856 function.
14857
148582008-03-04 Jason Rumney <jasonr@gnu.org>
14859
14860 * makefile.w32-in: Always include w32font.c in the build.
14861 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
14862
148632008-03-04 Andreas Schwab <schwab@suse.de>
14864
14865 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
14866 (versionclean): Likewise.
14867
148682008-03-04 Juanma Barranquero <lekktu@gmail.com>
14869
14870 * .cvsignore: Add oo.
14871
148722008-03-03 Andreas Schwab <schwab@suse.de>
14873
14874 * coding.c (decode_coding_object): Inhibit gap shrinking while
14875 decoding in place.
14876
148772008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
14878
14879 * w32term.c: Remove unused include "gnu.h".
14880 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
14881
14882 * gnu.h: Rename to ...
14883 * emacs-icon.h: ... this.
14884 * xterm.c: Use emacs-icon.h instead of gnu.h.
14885 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
14886
148872008-03-03 Juanma Barranquero <lekktu@gmail.com>
14888
14889 * w32font.c: Include math.h.
14890
148912008-03-03 Jason Rumney <jasonr@gnu.org>
14892
14893 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
14894 Compute options separately.
14895 (w32font_open_internal): Set glyph_idx before caching metrics.
14896
14897 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
14898 Define if system headers don't.
14899 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
14900 (w32font_encode_char): Don't declare here.
14901
14902 * w32font.c (Quniscribe, QCformat): New symbols.
14903 (syms_of_w32font): Define them.
14904 (w32font_has_char): Indicate uncertainty.
14905 (w32font_encode_char): Encode as glyph point. Make static.
14906 (recompute_cached_metrics): New function.
14907 (w32font_open_internal): Use it. Set font to use glyph points
14908 initially. Set format based on type of font.
14909 (w32font_text_extents, w32font_draw): Optionally use glyph points.
14910 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
14911 on it. Set format based on information available here.
14912 (add_font_entity_to_list): Identify backend based on opentype_only.
14913
149142008-03-02 Andreas Schwab <schwab@suse.de>
14915
14916 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
14917
14918 * coding.c (decode_coding_big5, produce_chars):
14919 Fix typos in last change.
14920
149212008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
14922
14923 * gnu.h: New icon.
14924
149252008-03-02 Kenichi Handa <handa@m17n.org>
14926
14927 * coding.c (decode_coding_utf_8): When eol-type of CODING is
14928 `dos', don't decode '\r' if that is the last in the source.
14929 (decode_coding_utf_16, decode_coding_emacs_mule)
14930 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14931 (decode_coding_raw_text, decode_coding_charset): Likewise.
14932 (produce_chars): Don't decode EOL here. Use EMACS_INT.
14933
149342008-03-01 Jason Rumney <jasonr@gnu.org>
14935
14936 * w32font.c (w32font_full_name): Report point size for scalable fonts.
14937
149382008-03-01 Kim F. Storm <storm@cua.dk>
14939
14940 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
14941
149422008-03-01 Jason Rumney <jasonr@gnu.org>
14943
14944 * w32font.c (w32font_full_name): New function.
14945 (w32font_open_internal): Use it.
14946
149472008-03-01 Kim F. Storm <storm@cua.dk>
14948
14949 * dispnew.c (line_draw_cost): Fix invalid glyph check.
14950
149512008-03-01 Jason Rumney <jasonr@gnu.org>
14952
14953 * font.c (font_unparse_fcname): Increase len when style is a symbol.
14954
149552008-03-01 Jan Djärv <jan.h.d@swipnet.se>
14956
14957 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
14958 xg_frame_resized when the event is for the edit widget.
14959
14960 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
14961
14962 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
14963 set_char_size.
14964 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
14965 operations on widgets here. Just set frame size if needed.
14966 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
14967 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
14968 (x_wm_set_size_hint): Set size hints on the edit widget only, not
14969 the whole frame.
14970 (xg_create_tool_bar): Move attachment of the tool bar to
14971 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
14972 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
14973
149742008-03-01 Jason Rumney <jasonr@gnu.org>
14975
14976 * w32fns.c (w32_msg_pump): Disable debug code.
14977
149782008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14979
14980 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
14981
149822008-02-29 Chong Yidong <cyd@stupidchicken.com>
14983
14984 * xdisp.c (next_overlay_string): Don't set
14985 overlay_strings_at_end_processed_p if we're currently reading from
14986 a display string.
14987
149882008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
14989
14990 * xdisp.c (get_overlay_strings_1): Fix typo.
14991
149922008-02-29 Chong Yidong <cyd@stupidchicken.com>
14993
14994 * xdisp.c (get_overlay_strings_1): Add missing argument type.
14995
149962008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
14997
14998 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
14999
15000 * xdisp.c (display_mode_element): Cancel the previous change.
15001 (decode_mode_spec): Likewise.
15002 (handle_auto_composed_prop): Don't make composition if it->string
15003 is a string.
15004
150052008-02-27 Kim F. Storm <storm@cua.dk>
15006
15007 * lisp.h (GLYPH): Change type from int to struct with separate char
15008 and face_id members.
15009 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
15010 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
15011 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
15012 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
15013 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
15014 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
15015 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
15016 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
15017 handle new Lisp glyph code encoding, either an integer or a cons.
15018
15019 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
15020 (GLYPH_ALIAS): Delete.
15021 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
15022 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
15023 (GLYPH_FROM_CHAR): Replace macro by ...
15024 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
15025
15026 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
15027 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
15028 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
15029 (GLYPH_INVALID_P): New macro.
15030 (spec_glyph_lookup_face): Update prototype.
15031
15032 * dispnew.c (line_draw_cost): Adapt to new glyph type.
15033 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
15034 new glyph code encoding.
15035 (spec_glyph_lookup_face): No return value; update passed glyph instead.
15036 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
15037
15038 * xdisp.c (get_next_display_element, next_element_from_display_vector):
15039 Adapt to new glyph type and new glyph code encoding.
15040
15041 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
15042
15043 * indent.c (current_column, current_column_1, Fmove_to_column)
15044 (compute_motion): Adapt to new glyph code encoding.
15045
15046 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
15047
150482008-02-27 Chong Yidong <cyd@stupidchicken.com>
15049
15050 * process.c (wait_reading_process_output): Check for window
15051 changes caused by timers.
15052 Suggested by Johan Bockgård.
15053
150542008-02-27 Glenn Morris <rgm@gnu.org>
15055
15056 * emacs.c (USAGE1): Add `--disable-font-backend'.
15057
150582008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
15059
15060 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
15061 is made to the buffer.
15062
150632008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
15064
15065 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
15066 (face_at_string_position):
15067 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
15068 (face_at_string_position):
15069 * xdisp.c (display_string, next_overlay_change):
15070 * buffer.h (overlays_at):
15071 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
15072 Update callers.
15073
150742008-02-26 Chong Yidong <cyd@stupidchicken.com>
15075
15076 * editfns.c (Fformat): Doc fix.
15077
150782008-02-26 Juanma Barranquero <lekktu@gmail.com>
15079
15080 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
15081 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
15082 (Ffont_otf_alternates, Fquery_font): Doc fixes.
15083
150842008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
15085
15086 * buffer.c (Fbuffer_swap_text): New function.
15087 (syms_of_buffer): Defsubr it.
15088
150892008-02-25 Chong Yidong <cyd@stupidchicken.com>
15090
15091 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
15092
150932008-02-25 Jason Rumney <jasonr@gnu.org>
15094
15095 * w32font.c (w32font_draw): Draw one character at a time when padding.
15096
150972008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
15098
15099 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
15100 Handle a nil arg. Use run_window_configuration_change_hook.
15101 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
15102 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
15103 Use run_window_configuration_change_hook.
15104
151052008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
15106
15107 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
15108 1-pixel width.
15109
151102008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
15111
15112 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
15113 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
15114 if the glyph in the font is zero pixel with.
15115
15116 * dispextern.h (struct glyph_string): New member padding_p.
15117
15118 * w32font.c (w32font_draw): Pay attention to s->padding_p.
15119
15120 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
15121
15122 * xfont.c (xfont_draw): Pay attention to s->padding_p.
15123
15124 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
15125
15126 * font.c: If the font driver doesn't have `shape' function, return Qnil.
15127
151282008-02-25 Jason Rumney <jasonr@gnu.org>
15129
15130 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
15131
151322008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
15133
15134 Allow fine-grained image-cache flushing.
15135 * dispextern.h (struct image): Add `dependencies' field.
15136 (clear_image_caches): Change arg to Lisp_Object.
15137 * image.c (make_image): Initialize `dependencies' field.
15138 (clear_image_cache): Change arg to allow fine-grained flushing.
15139 Perform the flush even if image-cache-eviction-delay is nil.
15140 (clear_image_caches): Change arg to Lisp_Object.
15141 (Fclear_image_cache): Expand meaning of the argument.
15142 (mark_image): Mark `dependencies' field.
15143 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
15144 (lface_hash): Use XHASH rather than XFASTINT.
15145 (face_at_buffer_position): Fix int -> EMACS_INT position.
15146 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
15147 (select_frame_for_redisplay): Remove code duplication.
15148 (redisplay_internal): Adapt arg to call to clear_image_caches.
15149
151502008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
15151
15152 * s/vms4-0.h:
15153 * s/vms4-2.h:
15154 * s/vms4-4.h:
15155 * s/vms5-5.h: Remove, unused.
15156
15157 * s/irix5-2.h:
15158 * s/irix6-0.h:
15159 * s/riscos5.h:
15160 * s/mach-bsd4-3.h:
15161 * m/mips4.h: Remove files for obsolete systems.
15162
15163 * Makefile.in:
15164 * filelock.c:
15165 * unexmips.c:
15166 * m/hp9000s300.h:
15167 * m/iris4d.h:
15168 * s/aix3-1.h:
15169 * s/hpux.h:
15170 * s/msdos.h:
15171 * s/usg5-0.h:
15172 * s/usg5-2-2.h:
15173 * s/usg5-2.h:
15174 * s/usg5-3.h: Remove references to obsolete variables.
15175
15176 * s/irix5-0.h: Remove, move all the contents ...
15177 * s/irix6-5.h: ... here. Simplify.
15178 * config.in: Regenerate.
15179
151802008-02-24 Jason Rumney <jasonr@gnu.org>
15181
15182 * w32term.c (x_draw_glyph_string_background): Clear the background
15183 manually when cleartype is in use.
15184 (x_draw_glyph_string_foreground): Draw text transparently when
15185 cleartype is in use.
15186
15187 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
15188 a font into it unless we have to.
15189
151902008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
15191
15192 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
15193 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 15194
aac0c6e3
MR
151952008-02-18 Jason Rumney <jasonr@gnu.org>
15196
15197 * w32fns.c (Fw32_shell_execute): Encode parameters.
15198
151992008-02-09 Eli Zaretskii <eliz@gnu.org>
15200
15201 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
15202
152032008-02-05 Juanma Barranquero <lekktu@gmail.com>
15204
15205 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
15206
152072008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
15208
15209 * xterm.c (x_set_offset): Don't change the gravity if
15210 CHANGE_GRAVITY is -1.
15211
152122008-02-23 Chong Yidong <cyd@stupidchicken.com>
15213
15214 * fileio.c (auto_save_error_occurred): New var.
15215 (auto_save_error): Set it.
15216 (Fdo_auto_save): Don't overwrite the error message if an auto-save
15217 error occurred.
15218
152192008-02-23 Eli Zaretskii <eliz@gnu.org>
15220
15221 * w32.c (globals_of_w32): Add initializations for
15222 g_b_init_get_sid_sub_authority and
15223 g_b_init_get_sid_sub_authority_count.
15224
152252008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
15226
15227 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
15228 (font_parse_xlfd): Use them for sanity check.
15229 (Finternal_set_font_style_table): Make sure the table is bijective.
15230
15231 Consolidate the image_cache to the terminal struct.
15232 * termhooks.h (P_): Remove redundant def.
15233 (struct terminal): New field `image_cache'.
15234 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
15235 of FRAME_X_IMAGE_CACHE.
15236 * xterm.h (struct x_display_info): Remove image_cache field.
15237 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15238 * w32term.h (struct w32_display_info): Remove image_cache field.
15239 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15240 * macterm.h (struct mac_display_info): Remove image_cache field.
15241 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15242 * xterm.c (x_term_init):
15243 * w32term.c (w32_term_init):
15244 * macterm.c (mac_term_init): Set the image_cache in the terminal.
15245 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
15246 Remove declarations.
15247 (clear_image_caches, mark_image_cache): New declarations.
15248 * xfaces.c (clear_face_cache):
15249 * xdisp.c (redisplay_internal): Use clear_image_caches.
15250 * image.c (clear_image_cache): Don't check that a frame is on
15251 a window-system before checking if it shares the same cache.
15252 (clear_image_caches): New function.
15253 (Fclear_image_cache): Use it.
15254 (mark_image): Move from allo.c.
15255 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
15256 * alloc.c (mark_image, mark_image_cache): Move to image.c.
15257 (mark_object): Don't call mark_image_cache for frames.
15258 (mark_terminals): Call mark_image_cache.
15259
15260 * lisp.h (Fdelete_terminal): Declare.
15261
15262 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
15263 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
15264 wrong_type_argument.
15265
152662008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
15267
15268 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
15269 malayalam.el, and tamil.el. Add sinhala.el.
15270
152712008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
15272
15273 * xterm.c (x_connection_closed): Consolidate identical tests.
15274 (x_delete_terminal): Don't crash if called via x_connection_closed.
15275
152762008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
15277
15278 * xdisp.c (decode_mode_spec): New arg string.
15279 (display_mode_element): Adjust for the above change.
15280
152812008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
15282
15283 * callint.c (Fcall_interactively): Use AREF.
15284
152852008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
15286
15287 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
15288
152892008-02-18 Jan Djärv <jan.h.d@swipnet.se>
15290
15291 * xfns.c (Fx_show_tip): Set string to " " if empty.
15292
152932008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
15294
15295 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
15296 with Qt.
15297
152982008-02-17 Kenichi Handa <handa@m17n.org>
15299
15300 * ftfont.c (ftfont_shape): Return Lispy number.
15301
15302 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
15303 for GCs.
15304 (Finternal_set_font_selection_order): Call font_update_sort_order
15305 only when enable_font_backend is set.
15306 (realize_x_face): Set face->font_info to that of default face only
15307 when enable_font_backend is set.
15308
15309 * xdisp.c (handle_composition_prop): Set it->c to the fist
15310 character of the composed region.
15311 (fill_composite_glyph_string): Set base_face->font_info to
15312 s->font_info. Get a face for ascii from base_face->ascii_face.
15313 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
15314 with a face already decided.
15315 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
15316 non-negative.
15317 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
15318 call font_prepare_composition unconditionally.
15319
15320 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
15321
15322 * xterm.h (struct x_display_info): New member font.
15323
15324 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
15325 (x_set_mouse_face_gc, x_new_font): Likewise.
15326 (x_term_init): Setup display_info->font.
15327 (x_delete_terminal): Free display_info->font.
15328
15329 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
15330
15331 * ftxfont.c (ftxfont_default_fid): Delete it.
15332 (ftxfont_open): Set xfont->fid to 0.
15333 (ftxfont_end_for_frame): Clear data specific to the frame and the
15334 font-driver.
15335
15336 * xftfont.c (xftfont_default_fid): Delete it.
15337 (xftfont_open): Set xfont->fid to 0.
15338
15339 * fontset.c (FONTSET_OBJLIST): New macro.
15340 (fontset_find_font): Update font-object list of the fontset.
15341 (free_realized_fontset): New function.
15342 (free_face_fontset): Call free_realized_fontset.
15343 (Ffont_info): Call font_close_object only when enable_font_backend
15344 is set.
15345
15346 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
15347 [HAVE_NTGUI]: Include w32term.h.
15348 [MAC_OS]: Include macterm.ch.
15349 (font_otf_ValueRecord): Use make_number.
15350 (font_finish_cache): Fix handling of reference count.
15351 (font_clear_cache): Update num_fonts.
15352 (font_open_entity): Update smallest_char_width and
15353 smallest_font_height of the frame.
15354 (font_close_object): Update num_fonts.
15355 (Fclear_font_cache): Fix finding the target cache data.
15356
153572008-02-16 Glenn Morris <rgm@gnu.org>
15358
15359 * fontset.c (Finternal_char_font): Fix compilation warning.
15360
153612008-02-16 Eli Zaretskii <eliz@gnu.org>
15362
15363 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
15364 instead of char arrays. Enlarge the size of array passed to
15365 get_token_information.
15366
15367 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
15368 warnings.
15369
153702008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
15371
15372 * .gdbinit: Don't set `args', it breaks gdb --args.
15373
153742008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
15375
15376 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
15377 within a narrowed buffer.
15378
153792008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
15380
15381 * coding.c (decode_coding_object, encode_coding_object):
15382 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
15383
153842008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
15385
15386 * coding.c (coding_set_destination): Use BEG_BYTE rather than
15387 hardcoding 1.
15388 (detect_coding_system):
15389 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
15390 (string_char_to_byte, string_byte_to_char, insert_from_gap):
15391 * insdel.c (insert_from_gap):
15392 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
15393 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
15394 (string_to_multibyte):
15395 * character.c (chars_in_text, multibyte_chars_in_text):
15396 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
15397
15398 * character.h (FETCH_STRING_CHAR_ADVANCE)
15399 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
15400 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
15401 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
15402
15403 * casefiddle.c (casify_region): Only call after-change and composition
15404 functions on the part of the region that was changed.
15405
15406 * keyboard.c (read_avail_input):
15407 * frame.c (Fdelete_frame): Call Fdelete_terminal.
15408
154092008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
15410
15411 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
15412 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
15413
154142008-02-11 Juanma Barranquero <lekktu@gmail.com>
15415
15416 * w32menu.c (push_submenu_start, push_submenu_end)
15417 (push_left_right_boundary, push_menu_pane, push_menu_item):
15418 * keyboard.c (read_key_sequence): Don't pass args with side effects
15419 to AREF, it fails when compiling with -DENABLE_CHECKING.
15420
154212008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
15422
15423 * Makefile.in (${lispsource}international/charprop.el):
15424 Delete this target.
15425
15426 * search.c (boyer_moore): Fix incorrect synching of the trunk and
15427 emacs-unicode-2.
15428
154292008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
15430
15431 * terminal.c (Fdelete_terminal): Clean up the `force' path.
15432
154332008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
15434
15435 * frame.c (Qnoelisp): New symbol.
15436 (syms_of_frame): Initialize it.
15437 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
15438 harmless Elisp code, from a strong `force' from x_connection_closed.
15439 * frame.h (Qnoelisp): Declare.
15440 * xterm.c (x_connection_closed): Pass `noelisp'.
15441
15442 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
15443 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
15444 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
15445 rather than `int' for the type of `type'.
15446
154472008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
15448
15449 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
15450
15451 * Makefile.in (GNUC): Remove support for gcc-1.x.
15452
154532008-02-10 Richard Stallman <rms@gnu.org>
15454
15455 * lisp.h (ASET): Use AREF, not ASLOT.
15456
154572008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
15458
15459 * lisp.h (ASET): Check bounds.
15460
154612008-02-10 Glenn Morris <rgm@gnu.org>
15462
15463 * buffer.c (mode-name): Doc fix.
15464
154652008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
15466
15467 * Makefile.in:
15468 * emacs.c:
15469 * gmalloc.c:
15470 * keyboard.c:
15471 * lisp.h:
15472 * m/ibm370aix.h:
15473 * process.c:
15474 * regex.c:
15475 * s/hpux.h:
15476 * sysdep.c:
15477 * sysselect.h:
15478 * systty.h:
15479 * unexec.c:
15480 * w32term.c:
15481 * xsmfns.c:
15482 * xterm.c: Remove code that deals with obsolete variables.
15483
15484 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
15485
15486 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
15487 nothing else needs it anymore.
15488
154892008-02-09 Eli Zaretskii <eliz@gnu.org>
15490
15491 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
15492 instead of unibyte_char_to_multibyte.
15493
154942008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
15495
15496 * s/gnu-linux.h: Remove commented out code.
15497
15498 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
15499
15500 * Makefile.in: Update what RMS says about using autoconf.
15501 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
15502 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
15503 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
15504 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
15505
155062008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
15507
15508 * keymap.c (Fkey_description): Move side effect outside of macro call.
15509
15510 * xfaces.c (Finternal_make_lisp_face):
15511 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
15512
15513 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
15514 (syms_of_fontset): Use ASET.
15515
15516 * fns.c (concat): Move side effect outside of macro call.
15517 (hash_clear): Use ASET.
15518
155192008-02-08 Richard Stallman <rms@gnu.org>
15520
15521 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
15522 If FORCE, and frame has a surrogate minibuffer for another frame,
15523 delete the other frame first.
15524
155252008-02-07 Timo Savola <timo.savola@iki.fi>
15526
15527 * xterm.c (x_detect_focus_change): Handle embed client message.
15528 (handle_one_xevent): Ditto.
15529 (handle_one_xevent): If embedded and we get a button press/release,
15530 request focus.
15531 (xembed_set_info, xembed_send_message): New functions.
15532 (x_make_frame_visible): Call xembed_set_info if embedded.
15533 (x_make_frame_invisible): Call xembed_set_info if embedded.
15534 (x_term_init): Initialize Xatom_XEMBED.
15535 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
15536 (x_iconify_frame): Ditto.
15537
15538 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
15539 (enum xembed_info, enum xembed_message, enum xembed_focus)
15540 (enum xembed_modifier, enum xembed_accelerator): New.
15541 (xembed_set_info, xembed_send_message): Declare.
15542 (FRAME_X_EMBEDDED_P): New.
15543
15544 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
15545 gtk_plug_new.
15546
15547 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
15548 window ID of a frame.
15549 (x_window): Reparent frame if embedded.
15550 (Fx_create_frame): Don't set border width if embedded.
15551
15552 * emacs.c (USAGE3): Add --parent-id.
15553 (standard_args): Ditto.
15554
155552008-02-07 Jan Djärv <jan.h.d@swipnet.se>
15556
15557 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
15558
155592008-02-07 Jim Meyering <meyering@redhat.com>
15560
15561 Use "do...while (0)", not "if (1)...else" in macro definitions.
15562 The latter provokes a warning from gcc about the empty else, when
15563 followed by ";". Also, without that trailing semicolon, it would
15564 silently swallow up any following statement.
15565 * syntax.h (SETUP_SYNTAX_TABLE)
15566 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
15567 * buffer.h (DECODE_POSITION): Likewise.
15568 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
15569 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
15570 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
15571 (FETCH_CHAR_ADVANCE): Likewise.
15572 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
15573
155742008-02-07 Jim Meyering <meyering@redhat.com>
15575
15576 * lread.c [lint]: Don't include <sys/inode.h>.
15577
155782008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
15579
15580 * xselect.c (x_handle_dnd_message):
15581 * xmenu.c (digest_single_submenu, xmenu_show):
15582 * xdisp.c (with_echo_area_buffer_unwind_data)
15583 (format_mode_line_unwind_data, unwind_format_mode_line)
15584 (display_menu_bar):
15585 * eval.c (Ffetch_bytecode):
15586 * doc.c (store_function_docstring):
15587 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
15588 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
15589 * buffer.c (add_overlay_mod_hooklist): Use ASET.
15590
155912008-02-07 Kenichi Handa <handa@m17n.org>
15592
15593 * ftxfont.c (ftxfont_open): Don't set
15594 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
15595
15596 * ftfont.c (ftfont_open): Fix previous change.
15597
155982008-02-06 Jason Rumney <jasonr@gnu.org>
15599
15600 * w32font.c (w32font_text_extents): Fill in lbearing metric.
15601 Use cached metrics for ASCII characters.
15602 (w32font_open_internal): Don't set font's owning_frame.
15603 Cache metrics for ASCII characters.
15604
15605 * w32font.h (struct w32font_info): Add ascii_metrics.
15606 Remove owning_frame.
15607
156082008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
15609
15610 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
15611 to negative value.
15612
15613 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
15614
15615 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
15616
15617 * charset.c (syms_of_charset): Set QCtest and Qeq.
15618
156192008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
15620
15621 * process.c (Fstart_process):
15622 * callproc.c (Fcall_process): Handle the case where
15623 Funhandled_file_name_directory returns nil.
15624
15625 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
15626 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
15627 * font.c (check_gstring): Use them and AREF to access the vector before
15628 we know it's really a gstring.
15629 (Ffont_shape_text): Fix typo.
46e722a9 15630 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
15631
15632 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
15633 Declare.
15634
15635 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
15636
156372008-02-05 Jason Rumney <jasonr@gnu.org>
15638
15639 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
15640 Set smallest_font_height and smallest_char_width in display info.
15641
156422008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
15643
15644 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
15645
156462008-02-05 Miles Bader <miles@gnu.org>
15647
15648 * xfaces.c (get_lface_attributes, merge_named_face)
15649 (lookup_named_face, lookup_derived_face, realize_named_face):
15650 Revert 2008-02-01 change by cyd@stupidchicken.com.
15651
156522008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
15653
15654 * fontset.c (Ffontset_info): Handle the case of inhibitting the
15655 fallback fonts.
15656 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
15657
156582008-02-04 Jason Rumney <jasonr@gnu.org>
15659
15660 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
15661 set full_name.
15662 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
15663
156642008-02-03 Jason Rumney <jasonr@gnu.org>
15665
15666 * makefile.w32-in (OBJ1): Include font.o here.
15667 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
15668
156692008-02-02 Jason Rumney <jasonr@gnu.org>
15670
15671 * makefile.w32-in (temacs): Bump EMHEAP to 21.
15672
156732008-02-01 Jason Rumney <jasonr@gnu.org>
15674
15675 * s/cygwin.h: Define VIRT_ADDR_VARIES.
15676
15677 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
15678
156792008-02-01 Andreas Schwab <schwab@suse.de>
15680
15681 * Makefile.in (shortlisp, lisp): Update for rename of
15682 ../lisp/language/myanmar.el.
15683
156842008-02-01 Chong Yidong <cyd@stupidchicken.com>
15685
15686 * xfaces.c (get_lface_attributes): Delete function.
15687 (merge_named_face, lookup_named_face, lookup_derived_face)
15688 (realize_named_face): Call lface_from_face_name directly, and use
15689 the fact that merge_face_vectors does not alter its FROM argument.
15690
156912008-02-01 Jason Rumney <jasonr@gnu.org>
15692
15693 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
15694 input in the default locale. Handle non-Unicode multibyte input.
15695
156962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15697
15698 * fontset.c (reorder_font_vector): Exclude nil elements from the
15699 font group. Don't try multiple fonts.
15700 (fontset_font): Adjust for the above change.
15701 (Finternal_char_font): Return nil if the found font doesn't
15702 contain the character ch.
15703
15704 * Makefile.in (lisp, shortlisp): Add cham.el.
15705
157062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15707
15708 * font.h (FONTP): Make it return 1 also for a font-object.
15709
15710 * .gdbinit (xfontset): New function.
15711
15712 * font.c (font_find_for_lface): Check if the character C is
15713 supported or not only for the first font.
15714
15715 * fontset.c (reorder_font_vector): Fix typo.
15716 (fontset_find_font): Don't add a font-spec specifying a script.
15717 Use 0 (not Qt) for the indication of empty font-group. Change the
15718 format of RFONT-DEF. Return Qt if no font in the font-group
15719 support the character.
15720 (fontset_font): Adjust for the above change. If no font was
15721 found the character, remember that.
15722 (face_for_char): Adjust for the change of RFONT-DEF.
15723 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
15724 no font for the target.
15725 (Finternal_char_font): Adjust for the change of RFONT-DEF.
15726
157272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15728
15729 * font.c (font_load_for_face): Handle the case that the font in
15730 face->lface is a string.
15731
157322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15733
15734 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
15735
157362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15737
15738 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
15739 Fix previous change. If the frame is not on a window system,
15740 signal an error.
15741
157422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15743
15744 * coding.c (decode_coding_object, encode_coding_object): Adjust
15745 marker positions after conversion.
15746
15747 * lisp.h (struct Lisp_Marker): New member need_adjustment.
15748
157492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15750
15751 * font.c (font_find_for_lface): Fix the handling of the return
15752 value of font_has_char.
15753 (Ffont_shape_text): Fix previous change.
15754
15755 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
15756 (fontset_ref_and_range): Delete it.
15757 (fontset_find_font): Call char_table_ref_and_range instead of
15758 FONTSET_REF_AND_RANGE.
15759 (make_fontset): Don't setup font groups of Latin here.
15760 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
15761 (new_fontset_from_font): Make the specified font the default for
15762 all Latin characters.
15763
157642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15765
15766 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
15767 is on a window system before accessing the fontset of the frame.
15768
157692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15770
15771 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
15772
15773 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
15774 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
15775
15776 * font.c (Ffont_shape_text): If the font driver doesn't have a
15777 shaper function, make zero-width glyphs to have at least one-pixel
15778 width. Fix setting of `to' field of glyphs.
15779
157802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15781
15782 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
15783 glyphs.
15784
15785 * font.h (struct font_driver): Improve docstring of member `shape'.
15786
157872008-02-01 Kenichi Handa <handa@m17n.org>
15788
15789 * composite.c (syms_of_composite): Fix docstring of
15790 auto-composition-function.
15791
15792 * font.h (LGLYPH_SIZE): New macro.
15793
15794 * font.c (Ffont_fill_gstring): Stop filling when a character not
15795 supported by the font is found.
15796 (Ffont_shape_text): When a shape callback function returns nil,
15797 try at most two more times with larger gstring.
15798 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
15799
15800 * xdisp.c (handle_auto_composed_prop): Change the argument to
15801 auto-composition-function.
15802
15803 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
15804 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
15805 Lispy glyph and store it in the lgstring.
15806
15807 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
15808
15809 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
15810
158112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15812
15813 * font.c (Ffont_shape_text): Avoid unnecessary composition.
15814
15815 * fontset.c (Vfont_encoding_charset_alist): New variable.
15816 (syms_of_fontset): DEFVAR it.
15817 (reorder_font_vector, fontset_find_font): Optimize for the case of
15818 no need of reordering.
15819 (face_for_char): Map the charset property by
15820 Vfont_encoding_charset_alist.
15821
158222008-02-01 Jason Rumney <jasonr@gnu.org>
15823
15824 * w32font.c (logfonts_match): Don't check adstyle here.
15825 (font_matches_spec): Check here against physical font instead.
15826 (add_font_entity_to_list): Avoid some substitutions.
15827
15828 * font.c (font_parse_fcname): Default weight and slant to normal.
15829 (font_score): Prefer normal fonts if weight or slant unspecified.
15830 (font_score) [WINDOWSNT]: Scale weight difference down to closer
15831 match freetype scores.
15832
158332008-02-01 Jason Rumney <jasonr@gnu.org>
15834
15835 * w32font.c (w32font_text_extents): Don't use the frame stored in the
15836 font, as it may have been deleted.
15837 (w32_enumfont_pattern_entity): Map generic family to adstyle using
15838 most common hyphenless variation.
15839 (logfonts_match): Check generic family.
15840 (font_matches_spec): Don't check generic family here.
15841 (fill_in_logfont): Set generic family based on adstyle.
15842
15843 * w32font.h (w32font_get_cache): Update declaration.
15844
158452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15846
15847 * ftfont.c (ftfont_get_cache): Adjust the argument type.
15848
15849 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
15850 If none of the new drivers are available, call font_update_drivers
15851 with the old drivers.
15852
15853 * w32font.c (w32font_get_cache): Adjust the argument type.
15854
15855 * xfont.c (xfont_get_cache): Adjust the argument type.
15856
15857 * font.h (struct font_driver): Change argument type of get_cache.
15858
15859 * xftfont.c (xftfont_start_for_frame): Delete prototype.
15860
15861 * font.c (Ffont_get): Fix arguments to Fassoc.
15862 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
15863 (font_clear_cache): New function.
15864 (font_list_entities, font_matching_entity): Use font_get_cache.
15865 (font_update_drivers): Call font_clear_cache when finishing a driver.
15866
15867 * fontset.c (fontset_find_font): Fix previous change.
15868
158692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15870
15871 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
15872 dpyinfo->font_table.
15873 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
15874 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
15875
15876 * font.c (font_at): Handle the case that the arg C is negative.
15877 Handle the unibyte case.
15878 (Ffont_at): Call font_at with the arg C -1.
15879
15880 * xdisp.c (handle_auto_composed_prop): Don't get a character at
15881 the position here, and call font_at with the arg C -1.
15882 Don't check the range of the existing composition at the point.
15883
158842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15885
15886 * fontset.c (fontset_add): New args charset_id and family.
15887 Change caller.
15888 (load_font_get_repertory, fontset_find_font): Assume that
15889 font_spec is always a font-spec object.
15890 (Fset_fontset_font): Always store a font-spec object in a fontset.
15891
15892 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
15893 instead of get_property_and_range.
15894
158952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15896
15897 * xftfont.c (struct xftfont_info): Delete the member ft_face.
15898 (xftfont_open): Don't keep locking face.
15899 (xftfont_close): Don't unlock face.
15900 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
15901
15902 * fontset.c (fontset_find_font): Don't prefer a font of
15903 supplementary charset.
15904
159052008-02-01 Kenichi Handa <handa@m17n.org>
15906
15907 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
15908 script, langsys_tag to langsys, new member script.
15909 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 15910 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
15911 listing to the script specified in that property. Fix arg to
15912 OTF_check_features.
15913
159142008-02-01 Jason Rumney <jasonr@gnu.org>
15915
15916 * w32font.h: New file.
15917
15918 * w32font.c: Include it.
15919 (struct w32font_info): Add owning_frame field. Move to w32font.h.
15920 (w32font_open): Set owning_frame.
15921 (w32font_text_extents): Use owning_frame.
15922 (struct font_callback_data): Add opentype_only field.
15923 (add_font_entity_to_list): Use it to filter fonts.
15924 Don't check against full name.
15925 (w32font_list_internal): New function.
15926 (w32font_list): Use it.
15927 (w32font_match_internal): New function.
15928 (w32font_match): Use it.
15929 (w32font_open_internal): New function.
15930 (w32font_open): Use it.
15931 (w32font_get_cache, w32font_close, w32font_has_char)
15932 (w32font_encode_char, w32font_text_extents, w32font_draw):
15933 Make non-static.
15934
15935 * makefile.w32-in (w32font.o): Depend on w32font.h.
15936
159372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15938
15939 * charset.c (Fdefine_charset_internal): Record a supplementary
15940 charset at the tail of Vcharset_order_list.
15941
15942 * font.c (Ffont_shape_text): Fix the return value.
15943
15944 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
15945
15946 * xdisp.c (handle_auto_composed_prop): Fix previous change.
15947
159482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15949
15950 * ftfont.c (struct OpenTypeSpec): New struct.
15951 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
15952 (ftfont_get_open_type_spec): New function.
15953 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
15954
15955 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
15956
159572008-02-01 Jason Rumney <jasonr@gnu.org>
15958
15959 * w32font.c (add_font_entity_to_list): Compare only the beginning
15960 of full name.
15961
159622008-02-01 Kenichi Handa <handa@m17n.org>
15963
15964 * xdisp.c (handle_auto_composed_prop): Simplify the code.
15965 Never return HANDLED_RECOMPUTE_PROPS.
15966
159672008-02-01 Kenichi Handa <handa@m17n.org>
15968
15969 * font.c (font_gstring_produce): Delete it.
15970
15971 * composite.h (COMPOSITION_METHOD):
15972 Handle COMPOSITION_WITH_GLYPH_STRING.
15973
159742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15975
15976 * xfont.c (Qx): Delete.
15977 (syms_of_xfont): Don't initialize Qx.
15978
15979 * composite.h (enum composition_method):
15980 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
15981
159822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15983
15984 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
15985 (choose_face_font): Accept new form of font-spec.
15986
15987 * frame.h (font_driver_list): Declare it unconditionally.
15988 (struct frame): Define members font_driver_list and font_data_list
15989 unconditionally.
15990
15991 * fontset.c: Include "font.h" unconditionally.
15992 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
15993 (Fset_fontset_font): Accept a font-spec object.
15994
15995 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
15996 PIXEL_SIZE part a wild card.
15997
15998 * dispextern.h (struct glyph_string): Define members clip and
15999 num_clips unconditionally.
16000 (struct face): Define members font_info and extra unconditionally.
16001
16002 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
16003 ftfont_info only when HAVE_LIBOTF is defined.
16004
160052008-02-01 Andreas Schwab <schwab@suse.de>
16006
16007 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
16008 and end.
16009
160102008-02-01 Jason Rumney <jasonr@gnu.org>
16011
16012 * w32font.c (w32font_driver): Add new fields.
16013
160142008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16015
16016 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
16017 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
16018 (LIBES): Add @M17N_FLT_CFLAGS@.
16019
16020 * composite.c (compose_text): Don't treat the new style
16021 composition specially.
16022
16023 * emacs.c (main): Call syms_of_font unconditionally.
16024
16025 * font.h (FONT_ENTITY_NOT_LOADABLE)
16026 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
16027 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
16028 (struct font_driver): New member shape.
16029 (font_registry_charsets): Extern it.
16030 (font_find_for_lface, font_prepare_composition): Adjust prototype.
16031 (font_otf_capability, font_drive_otf): Delete their externs.
16032
16033 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
16034 (font_charset_alist, font_registry_charsets): Move from xfont.c
16035 and rename.
16036 (font_prop_validate_otf): New function.
16037 (font_property_table): Register it for QCotf.
16038 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
16039 (font_drive_otf): Delete.
16040 (font_prepare_composition): New arg F. Adjust for the change of
16041 lispy gstring.
16042 (font_find_for_lface): New arg C.
16043 (font_load_for_face): Adjust for the change of font_find_for_lface.
16044 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
16045 lispy gstring.
16046 (Ffont_shape_text): New function.
16047 (Fopen_font): If the font size is not given, use 12-pixel.
16048 (Ffont_at): New arg STRING.
16049 (syms_of_font): Initalize font_charset_alist.
16050 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
16051 conditionally.
16052
16053 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
16054 fonts of the same font-spec. Change the format of RFONT-DEF.
16055 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
16056 Adjust for the change of RFONT-DEF.
16057 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
16058
16059 * ftfont.h: New file.
16060
16061 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
16062 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
16063 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
16064 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
16065 font_otf_capability and font_drive_otf, set ftfont_shape.
16066 (ftfont_list): Adjust for the change of :otf property value.
16067 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
16068 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
16069 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
16070 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
16071 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
16072 (otf_gstring, gstring, m17n_flt_initialized): New variables.
16073
16074 * w32term.c (x_draw_composite_glyph_string_foreground):
16075 Adjust for the change of lispy gstring.
16076
16077 * xdisp.c (handle_composition_prop): Adjust for the change of
16078 lispy gstring. Call a function for auto-composition with the
16079 third arg it->window.
16080 (fill_composite_glyph_string): Adjust for the change of lispy string.
16081 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
16082
16083 * xfaces.c (set_font_frame_param): Adjust for the change of
16084 font_find_for_lface.
16085
16086 * xfont.c (x_font_charset_alist): Move to font.c and rename.
16087 (xfont_registry_charsets): Likewise. Change caller.
16088 (syms_of_xfont): Don't handle x_font_charset_alist.
16089
16090 * xftfont.c: Include "ftfont.h".
16091 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
16092 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
16093 (xftfont_close) [HAVE_LIBOTF]: Close otf.
16094 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
16095 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
16096 Set xftfont_driver.shape to xftfont_shape.
16097
16098 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
16099 the change of lispy gstring.
16100
161012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16102
16103 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
16104
161052008-02-01 Jason Rumney <jasonr@gnu.org>
16106
16107 * w32font.c (w32font_draw): Fill background manually.
16108
161092008-02-01 Jason Rumney <jasonr@gnu.org>
16110
16111 * font.c (Qfontp): Remove unused symbol.
16112 (QCantialias): New symbol.
16113 (syms_of_font): Define it.
16114 (font_property_table): Set a validator for QCantialias.
16115
16116 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
16117 Define if not already.
16118 (QCfamily): Share with xfaces.c.
16119 (Qstandard, Qsubpixel, Qnatural): New symbols.
16120 (syms_of_w32font): Define them. Don't define QCfamily here.
16121 (w32_antialias_type, lispy_antialias_type): New functions.
16122 (w32_enumfont_pattern_entity): New arg requested_font.
16123 Set antialias parameter if non-default was requested.
16124 (fill_in_logfont): Fill in lfQuality if :antialias specified.
16125
161262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16127
16128 * lread.c (read1): Undo the previous change.
16129
161302008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
16131
16132 * frame.c (Fdelete_frame): Call font_update_drivers only when
16133 USE_FONT_BACKEND is defined.
16134
161352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16136
16137 * font.h (struct font_bitmap): New member bits_per_pixel.
16138 (struct font_driver): New members start_for_frame and end_for_frame.
16139 (struct font_data_list): New struct.
16140 (font_put_frame_data, font_get_frame_data): Extern them.
16141
16142 * frame.h (struct frame): New member font_data_list.
16143
16144 * font.c (font_update_drivers): Call driver->start_for_frame and
16145 driver->end_for_frame at proper timings.
16146 (font_put_frame_data, font_get_frame_data): New functions.
16147 (Ffont_spec): Add usage in the docstring.
16148
16149 * frame.c (make_frame): Initialize f->font_data_list to NULL.
16150 (Fdelete_frame): Call font_update_drivers.
16151
16152 * xftfont.c (struct xftface_info): Delete the member xft_draw.
16153 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
16154 (xftfont_get_xft_draw): New function.
16155 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
16156 (xftfont_end_for_frame): New function.
16157 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
16158
16159 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
16160 Change argument. Cache GCs in the per-frame data.
16161 (struct ftxfont_frame_data): New struct.
16162 (ftxfont_draw_bitmap): New arg gc_fore and flush.
16163 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
16164 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
16165 (ftxfont_end_for_frame): New function.
16166 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
16167
16168 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
16169
161702008-02-01 Kenichi Handa <handa@m17n.org>
16171
16172 * xselect.c (Vselection_coding_system)
16173 (Vnext_selection_coding_system): Delete them.
16174 (syms_of_xselect): Don't declare selection-coding-system and
16175 next-selection-coding-system. They are declared in select.el.
16176
161772008-02-01 Jason Rumney <jasonr@gnu.org>
16178
16179 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
16180
16181 * w32fns.c: Include imm.h.
16182 (get_composition_string_fn, get_ime_context_fn): New optional
16183 system functions.
16184 (globals_of_w32fns): Load them from imm32.dll.
16185 (ignore_ime_char): New flag.
16186 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
16187 WM_IME_ENDCOMPOSITION messages.
16188
16189 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
16190 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
16191
161922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16193
16194 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
16195 (READCHAR_REPORT_MULTIBYTE): New macro.
16196 (readchar): New 2nd arg MULTIBYTE.
16197 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
16198 Make symbol's name multibyte according to the multibyteness of the
16199 source.
16200
162012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16202
16203 * xfaces.c (face_for_overlay_string): Call lookup_face with
16204 correct arguments (fix of synching with the trunk).
16205
162062008-02-01 Kenichi Handa <handa@m17n.org>
16207
16208 * font.c (font_prop_validate_symbol, font_prop_validate_style)
16209 (font_prop_validate_non_neg, font_prop_validate_spacing):
16210 Delete argument prop_index.
16211 (font_property_table): Change arguments to validater. Change Callers.
16212 (font_lispy_object): Delete.
16213 (font_at): Use font_find_object instead fo font_lispy_object.
16214
162152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16216
16217 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
16218 and file names.
16219
162202008-02-01 Jason Rumney <jasonr@gnu.org>
16221
16222 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
16223 (font_matches_spec): Remove debug output.
16224 (add_font_entity_to_list): Avoid using substituted fonts.
16225
162262008-02-01 Jason Rumney <jasonr@gnu.org>
16227
16228 * doc.c (Fsnarf_documentation):
16229 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
16230
162312008-02-01 Miles Bader <miles@gnu.org>
16232
16233 * dispextern.h (struct glyph_row): Only define "clip" field if
16234 HAVE_WINDOW_SYSTEM is defined.
16235
162362008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16237
16238 Fix up multi-tty merge.
16239
16240 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
16241 and indentation.
16242
16243 * xfaces.c (free_realized_face, clear_face_gcs):
16244 Include font_done_for_face in the input_blocked section, just in case.
16245
16246 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
16247 (get_char_face_and_encoding): Undo last change and remove the *other*
16248 duplicate definition (i.e. keep the one that's better scoped and that
16249 includes code for the font-backend).
16250
16251 * terminal.c (create_terminal): Default keyboard_coding to
16252 `no-conversion' and terminal_coding to `undecided'.
16253
16254 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
16255
16256 * fontset.c (free_realized_fontsets): Check that the table entry does
16257 contain a fontset before trying to compare it to `base'.
16258
16259 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
16260 syms_of_charset, and syms_of_coding earlier because init_window_once
16261 now needs Vcoding_system_hash_table to be setup.
16262
16263 * coding.h (default_buffer_file_coding): Remove.
16264
16265 * coding.c (default_buffer_file_coding): Remove.
16266 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
16267 than ->symbol, and use the terminal-local coding system.
16268 (syms_of_coding): Don't setup the coding-systems that are not
16269 terminal-local.
16270 (Fdefine_coding_system_internal): Use XCAR/XCDR.
16271
16272 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
16273 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
16274
16275 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
16276 in chartab.c and were re-added here by mistake.
16277 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
16278
16279 * doc.c (Fsnarf_documentation):
16280 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
16281 src to etc.
16282
16283 * ChangeLog.10: Add mistakenly removed entry.
16284
162852008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
16286
16287 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
16288
162892008-02-01 Miles Bader <miles@gnu.org>
16290
16291 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
16292 Add extra args to FACE_FOR_CHAR.
16293
162942008-02-01 Kenichi Handa <handa@m17n.org>
16295
16296 * keymap.c (where_is_internal_1): If key is a cons, store the copy
16297 in sequence.
16298
16299 * chartab.c (map_sub_char_table, map_char_table): If the range
16300 contains just one character, call the function with that character
16301 even if the depth is not 3.
16302
163032008-02-01 Jason Rumney <jasonr@gnu.org>
16304
16305 * w32font.c (w32font_text_extents): Calculate metrics for the
16306 whole string.
16307
163082008-02-01 Jason Rumney <jasonr@gnu.org>
16309
16310 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
16311
163122008-02-01 Jason Rumney <jasonr@gnu.org>
16313
16314 * w32term.c (x_set_glyph_string_clipping): Use
16315 get_glyph_string_clip_rects.
16316 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
16317 Adjust for the change of struct glyph_string.
16318
16319 * w32font.c (w32font_draw): Do clipping here.
16320
163212008-02-01 Kenichi Handa <handa@m17n.org>
16322
16323 * xftfont.c (xftfont_draw): Adjust for the change of struct
16324 glyph_string.
16325
16326 * xterm.c (x_set_glyph_string_clipping): Use
16327 get_glyph_string_clip_rects.
16328 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
16329 Adjust for the change of struct glyph_string.
16330
16331 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
16332 the resulting clip(s}.
16333 (expose_overlaps): Add arg r. Change callers. Set it to
16334 row->clip temporarily.
16335 (expose_window): Redraw rows overlapping the exposed area.
16336
16337 * dispextern.h (struct glyph_row): New member clip.
16338 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
16339 clip_height, new member clip, and num_clips.
16340
163412008-02-01 Kenichi Handa <handa@m17n.org>
16342
16343 * data.c (Fchar_or_string_p): Fix docstring.
16344
163452008-02-01 Kenichi Handa <handa@m17n.org>
16346
16347 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
16348 create a temporary XftDraw object.
16349
163502008-02-01 Kenichi Handa <handa@m17n.org>
16351
16352 * font.c (Ffontp): Fix docstring.
16353
16354 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
16355 strong evidence of ISO-2022.
16356
163572008-02-01 Kenichi Handa <handa@m17n.org>
16358
16359 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
16360 SYNTAX_ENTRY_FOLLOW_PARENT.
16361
163622008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16363
16364 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
16365 its type.
16366 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
16367 Update to the new type of weak_hash_tables and next_weak.
16368
16369 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
16370 a plain C pointer to Lisp_Hash_Table.
16371
16372 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
16373 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
16374 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
16375 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
16376 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
16377 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
16378 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
16379 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
16380 (GC_EQ): Remove since they've been identical to their non-GC_
16381 alter-egos ever since the markbit was eradicated.
16382
16383 * alloc.c:
16384 * buffer.c:
16385 * buffer.h:
16386 * data.c:
16387 * fileio.c:
16388 * filelock.c:
16389 * fns.c:
16390 * frame.h:
16391 * lisp.h:
16392 * macterm.c:
16393 * print.c:
16394 * process.c:
16395 * w32fns.c:
16396 * w32menu.c:
16397 * w32term.c:
16398 * xfns.c:
16399 * xmenu.c:
16400 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
16401
164022008-02-01 Kenichi Handa <handa@m17n.org>
16403
16404 * chartab.c (map_sub_char_table): Make it work for the top-level
16405 char-table. Fix handling of parent char-table.
16406 (map_char_table): Adjust for the above change.
16407
164082008-02-01 Jason Rumney <jasonr@gnu.org>
16409
16410 * w32font.c (Qgdi): Rename from Qw32.
16411
164122008-02-01 Jason Rumney <jasonr@gnu.org>
16413
16414 * w32bdf.c (get_quoted_string): Make function static.
16415
164162008-02-01 Kenichi Handa <handa@m17n.org>
16417
16418 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
16419 bigger ascent and descent than those of the font, use them as
16420 font's ascent and descent.
16421
164222008-02-01 Kenichi Handa <handa@m17n.org>
16423
16424 * Makefile.in (${lispsource}international/charprop.el): Move this
16425 target within "#ifdef HAVE_UNIDATA" and "#endif".
16426
164272008-02-01 Kenichi Handa <handa@m17n.org>
16428
16429 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
16430 (shortlisp): Add ../lisp/language/tai-viet.el.
16431
164322008-02-01 Ulrich Mueller <ulm@gentoo.org>
16433
16434 * Makefile.in (${lispsource}international/charprop.el): Depend on
16435 temacs${EXEEXT}.
16436
164372008-02-01 Jason Rumney <jasonr@gnu.org>
16438
16439 * w32font.c (w32font_close): Delete the GDI font object.
16440
16441 * w32menu.c: Include character.h.
16442
16443 * w32proc.c: Likewise.
16444
16445 * w32select.c: Likewise.
16446
16447 * makefile.w32-in (w32proc.o): Depend on character.h.
16448
164492008-02-01 Jason Rumney <jasonr@gnu.org>
16450
16451 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
16452
16453 * w32menu.c (syms_of_w32menu): Likewise.
16454
16455 * w32proc.c (syms_of_ntproc): Likewise.
16456
16457 * w32select.c (syms_of_w32select): Likewise.
16458
16459 * w32term.c (syms_of_w32term): Likewise.
16460
164612008-02-01 Jason Rumney <jasonr@gnu.org>
16462
16463 * w32font.c (w32font_draw): Delete brush after using it.
16464
164652008-02-01 Jason Rumney <jasonr@gnu.org>
16466
16467 * w32font.c (w32font_open): Don't set font_idx.
16468 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
16469 to font settings.
16470 (w32font_draw): Fill background explicitly.
16471
164722008-02-01 Jason Rumney <jasonr@gnu.org>
16473
16474 * w32term.c (w32_initialize): Don't call w32font_initialize.
16475
16476 * w32font.c (w32font_info): Remove subranges.
16477 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
16478 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
16479 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
16480 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
16481 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
16482 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
16483 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
16484 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
16485 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
16486 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
16487 New symbols.
16488 (font_callback_data): New struct.
16489 (w32font_list, w32font_match): Use it.
16490 (w32font_open): Don't populate subranges.
16491 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
16492 (w32font_encode_char): Always return unicode code-point as-is.
16493 (w32font_text_extents): Supply a transformation matrix to
16494 GetGlyphOutline. Never look up by glyph index. Avoid looping
16495 twice. Use unicode version of GetTexExtentPoint32 instead of
16496 glyph index version.
16497 (set_fonts_frame): Remove.
16498 (w32_enumfont_pattern_entity): Add frame parameter, use it to
16499 set frame parameter. Use backward compatible fake foundries.
16500 Save generic family in extra slot under QCfamily. Make width slot
16501 constant. Save QCspacing value. Save list of scripts instead of
16502 binary subranges.
16503 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
16504 (add_font_entity_to_list): Use font_callback_data struct. Filter
16505 unwanted fonts.
16506 (add_one_font_entity_to_list): Use font_callback_data struct.
16507 (w32_registry): Default to iso10646_1.
16508 (fill_in_logfont): Use dpi from extra slot. Don't bother with
16509 string font registries. Don't fill in font name if it is a generic
16510 family name, fill family instead. Use spacing, family and script
16511 extra info to fill pitch, family and charset fields.
16512 (list_all_matching_fonts): Use font_callback_data struct.
16513 (unicode_range_for_char): Remove.
16514 (font_supported_scripts): New function.
16515 (w32font_initialize): Remove.
16516 (syms_of_w32font): Update which symbols are defined.
16517
165182008-02-01 Jason Rumney <jasonr@gnu.org>
16519
16520 * font.c (font_pixel_size): Reverse assq_no_quit args.
16521
16522 * w32term.h (FONT_WIDTH): Report max width, not average.
16523 (FONT_MAX_WIDTH): Remove.
16524 (FONT_AVG_WIDTH): New macro.
16525
16526 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
16527 redefinition of FONT_WIDTH.
16528
16529 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
16530 (w32_cache_char_metrics): Use FONT_WIDTH.
16531
16532 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
16533
165342008-02-01 Jason Rumney <jasonr@gnu.org>
16535
16536 * w32font.c (w32font_open): Make lfHeight negative.
16537
16538 * w32fns.c (x_default_font_parameter): Use new style font name.
16539 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
16540
165412008-02-01 Jason Rumney <jasonr@gnu.org>
16542
16543 * w32font.c (QCsubranges): New symbol.
16544 (w32font_open, w32font_has_char): Get subranges from subproperty
16545 of extra.
16546 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
16547 (syms_of_w32font): Define :subranges symbol.
16548
16549 * font.c (font_put_extra): Expose externally.
16550
16551 * font.h (font_put_extra): Move declaration from font.c.
16552
16553 * font.c (Ffont_get): Use font driver to determine otf capability.
16554 (adjust_anchor): Check if driver defines anchor_point before using.
16555
16556 * w32font.c (w32font_open): Handle size, height and pixel_size better.
16557 (w32font_draw): Use options.
16558 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
16559 Fix detection of truetype fonts.
16560 (registry_to_w32_charset): Handle charsets other than iso8859-1
16561 expressed as lisp symbols.
16562 (w32_registry): Express charset as lisp symbol.
16563 (fill_in_logfont): Reverse pixel and point height logic.
16564 Don't set width here. Set quality to default.
16565
16566 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
16567 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
16568
16569 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
16570 Remove redundant loop and allocation.
16571
16572 * makefile.w32-in (font.o, w32font.o): New objects.
16573 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
16574 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
16575
16576 * xdisp.c (fill_composite_glyph_string): Make the first arg to
16577 STORE_XCHARB a valid l-value.
16578
16579 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
16580 calculations for non-Truetype fonts.
16581 (x_draw_glyph_string): Sync with xterm.c.
16582 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
16583 Remove redundant code.
16584 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
16585
16586 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
16587 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
16588
16589 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
16590 (x_to_w32_charset, w32_to_x_charset): Expose externally.
16591
16592 * w32font.c: New file for w32 font backend.
16593
165942008-02-01 Kenichi Handa <handa@m17n.org>
16595
16596 * term.c: Don't include "buffer.h" twice.
16597
165982008-02-01 Kenichi Handa <handa@m17n.org>
16599
16600 * character.c (Funibyte_string): New function.
16601 (syms_of_character): Defsubr it.
16602
166032008-02-01 Jason Rumney <jasonr@gnu.org>
16604
16605 * w32term.c [USE_FONT_BACKEND]:
16606 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
16607 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
16608 (x_draw_glyph_string, x_draw_glyph_string_foreground)
16609 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
16610 (x_free_frame_resources): Sync with xterm.c.
16611
166122008-02-01 Andreas Schwab <schwab@suse.de>
16613
16614 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
16615 char-table size.
16616
166172008-02-01 Kenichi Handa <handa@m17n.org>
16618
16619 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
16620
166212008-02-01 Kenichi Handa <handa@m17n.org>
16622
16623 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
16624 font_otf_gpos, add font_drive_otf.
16625
16626 * fontset.c (fontset_find_font): Pay attention to font size
16627 specified for a font.
16628 (reorder_font_vector): Check contents of font_def.
16629
16630 * font.c (struct otf_list): Delete it.
16631 (otf_list): Make it a lisp variable.
16632 (otf_open): Use lispy otf_list.
16633 (generate_otf_features): Rename from parse_gsub_gpos_spec.
16634 (check_otf_features): New function.
16635 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
16636 New functions.
16637 (font_drive_otf): New function merging font_otf_gsub and
16638 font_otf_gpos.
16639 (font_open_for_lface): New arg spec. Change argument order.
16640 (font_load_for_face): Adjust for the change of font_open_for_lface.
16641 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
16642 Ffont_otf_gpos.
16643 (syms_of_font): Staticpro otf_list. Delete defsubr of
16644 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
16645
16646 * xfaces.c (set_font_frame_param): Adjust for the change of
16647 font_open_for_lface.
16648
16649 * font.h (font_open_for_lface): Adjust prototype.
16650 (struct font_driver): Delete members otf_gsub and otf_gpos, add
16651 member otf_drive.
16652 (font_otf_gsub, font_otf_gpos): Delete externs.
16653 (font_drive_otf): Extern it.
16654
166552008-02-01 Kenichi Handa <handa@m17n.org>
16656
16657 * font.c (font_at): If the window W is not on a window system,
16658 return Qnil.
16659
16660 * coding.c (produce_chars, encode_coding): Don't call
16661 insert_from_gap if no characters to produce.
16662
166632008-02-01 Kenichi Handa <handa@m17n.org>
16664
16665 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
16666 Fclear_face_cache.
16667
16668 * xfaces.c (face_for_font): Check also face->font==font->font.font.
16669
166702008-02-01 Miles Bader <miles@gnu.org>
16671
16672 * emacs.c (main): Change default value of `enable_font_backend' to 1.
16673 Parse "--disable-font-backend" option.
16674 (standard_args): Add "--disable-font-backend" option.
16675
166762008-02-01 Kenichi Handa <handa@m17n.org>
16677
16678 * fontset.c (fontset_find_font): New function.
16679 (fontset_font): Use fontset_find_font.
16680 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
16681 Register the specified font for all Latin characters.
16682 (new_fontset_from_font): Register the specified font for all Latin
16683 characters.
16684 (dump_fontset): For a realized fontset, include the base fontset
16685 name in the returned vector.
16686
166872008-02-01 Kenichi Handa <handa@m17n.org>
16688
16689 * character.h (CHAR_STRING): Cast C to unsigned on calling
16690 char_string.
16691
16692 * character.c (char_string): Type of arg C changed to unsigned.
16693 Signal an error if C is an invalid character code.
16694
16695 * editfns.c (general_insert_function, Fchar_to_string):
16696 Use CHARACTERP, not INTEGERP.
16697
166982008-02-01 Kenichi Handa <handa@m17n.org>
16699
16700 * character.h (MIN_MULTIBYTE_LEADING_CODE)
16701 (MAX_MULTIBYTE_LEADING_CODE): New macros.
16702
16703 * regex.c (analyse_first): Fix for multibyte characters in "case
16704 charset:" and "case categoryspec:".
16705
167062008-02-01 Andreas Schwab <schwab@suse.de>
16707
16708 * Makefile.in (LIBES): Move standard libraries to the end.
16709
167102008-02-01 Kenichi Handa <handa@m17n.org>
16711
16712 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
16713 nonzero, don't shrink the buffer nextb.
16714
16715 * buffer.h (struct buffer_text): New member inhibit_shrinking.
16716
16717 * coding.c (coding_alloc_by_making_gap): New arg offset.
16718 (alloc_destination): Call coding_alloc_by_making_gap with the arg
16719 offset.
16720 (decode_coding_iso_2022): Update coding->safe_charsets.
16721 (decode_coding_gap): Temporarily set
16722 current_buffer->text->inhibit_shrinking to 1.
16723
167242008-02-01 Kenichi Handa <handa@m17n.org>
16725
16726 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
16727 indexing into elements of s->cmp and s->char2b.
16728
167292008-02-01 Juanma Barranquero <lekktu@gmail.com>
16730
16731 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
16732
167332008-02-01 Kenichi Handa <handa@m17n.org>
16734
16735 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
16736 target_multibyte instead of multibyte.
16737 (re_match_2_internal): Call bcmp_translate with target_multibyte.
16738 (bcmp_translate): Change the argument name from multibyte to
16739 target_multibyte.
16740
167412008-02-01 Kenichi Handa <handa@m17n.org>
16742
16743 These changes are to compile a regexp into a pattern that can be
16744 used both for multibyte and unibyte targets.
16745
16746 * Makefile.in (search.o): Depend on charset.h.
16747
16748 * character.c (multibyte_char_to_unibyte_safe): New function.
16749
16750 * search.c: Include "charset.h".
16751 (compile_pattern_1): Delete argument multibyte. Don't set
16752 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
16753 (compile_pattern): Don't compare cp->buf.target_multibyte.
16754 Compare cp->buf.charset_unibyte.
16755 (compile_pattern): Set cp->buf.target_multibyte.
16756
16757 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
16758
16759 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
16760
16761 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
16762 multibyte. Change callers.
16763 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
16764 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
16765 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
16766 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
16767 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
16768 (regex_compile): Make the compiled pattern usable both for
16769 multibyte and unibyte targets.
16770 (analyse_first): Make the fastmap usable both for multibyte and
16771 unibyte targets.
16772 (TRANSLATE_VIA_MULTIBYTE): Delete.
16773 (re_match_2_internal): Pay attention to the case that the
16774 multibyteness of bufp and target may be different.
16775
167762008-02-01 Kenichi Handa <handa@m17n.org>
16777
16778 * xdisp.c (x_produce_glyphs): When a font is not found, make the
16779 empty box occupy at least one column width.
16780
167812008-02-01 Miles Bader <miles@gnu.org>
16782
16783 * Makefile.in: Remove redundant HAVE_XFT clause.
16784
167852008-02-01 Kenichi Handa <handa@m17n.org>
16786
16787 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
16788
167892008-02-01 Kenichi Handa <handa@m17n.org>
16790
16791 * fontset.c (Finternal_char_font): Fix for the case of POSITION
16792 being nil.
16793
167942008-02-01 Kenichi Handa <handa@m17n.org>
16795
16796 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
16797
167982008-02-01 Kenichi Handa <handa@m17n.org>
16799
16800 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
16801
168022008-02-01 Kenichi Handa <handa@m17n.org>
16803
16804 * search.c (simple_search): Fix previous change.
16805
168062008-02-01 Kenichi Handa <handa@m17n.org>
16807
16808 * xftfont.c (ftfont_font_format): Extern declaration.
16809
16810 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
16811
16812 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
16813 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
16814
16815 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
16816 (ftfont_font_format): Fix previous change.
16817
16818 * font.h (Ffont_xlfd_name): EXFUN it.
16819
16820 * font.c (font_parse_xlfd): Fix the array size of `f'.
16821 (register_font_driver): Use EQ to compare driver->type.
16822
16823 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
16824 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
16825 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
16826
168272008-02-01 Kenichi Handa <handa@m17n.org>
16828
16829 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
16830 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
16831
168322008-02-01 Kenichi Handa <handa@m17n.org>
16833
16834 * xfont.c (xfont_open): Set font->format.
16835
16836 * xftfont.c (xftfont_open): Set font->format.
16837
16838 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
16839 (ftfont_list): Include FC_FONTFORMAT in FcObject.
16840 (ftfont_open): Set font->format.
16841 (ftfont_font_format): New function.
16842
16843 * font.h (struct font): New member format.
16844
16845 * font.c (Qopentype): New variable.
16846 (syms_of_font): Defsym it.
16847 (Fquery_font): Change the format of the last element of the return
16848 value.
16849
168502008-02-01 Kenichi Handa <handa@m17n.org>
16851
16852 * xfns.c (xic_create_xfontset): Try the default fontset name as a
16853 last resort.
16854
168552008-02-01 Kenichi Handa <handa@m17n.org>
16856
16857 * coding.c (detect_coding_charset): Fix detection of multi-byte
16858 charset.
16859
168602008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
16861
16862 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
16863
168642008-02-01 Kenichi Handa <handa@m17n.org>
16865
16866 * xdisp.c (get_next_display_element): Set it->face_id for the
16867 first component of a composition.
16868 (x_produce_glyphs): Check if the font is changed or not for composition.
16869
168702008-02-01 Kenichi Handa <handa@m17n.org>
16871
16872 * fontset.c (Qlatin): New variable.
16873 (syms_of_fontset): Define it as a lisp symbol.
16874 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
16875
168762008-02-01 Kenichi Handa <handa@m17n.org>
16877
16878 * font.c (font_unparse_fcname): Pay attention to the case that
16879 some of font property is a null string.
16880
168812008-02-01 Kenichi Handa <handa@m17n.org>
16882
16883 * term.c: Include "composite.h".
16884 (encode_terminal_code): Output all components of composition.
16885 Check the size of encode_terminal_src.
16886 (produce_glyphs): For composition, call produce_composite_glyph.
16887 (append_composite_glyph, produce_composite_glyph): New functions.
16888
16889 * xdisp.c (x_produce_glyphs): In handling composition, if a font
16890 is not found, get font_info from the current ascii face.
16891
168922008-02-01 Kenichi Handa <handa@m17n.org>
16893
16894 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
16895 buffer-file-name to Qnil before calling insert_from_buffer.
16896
16897 * font.c (font_unparse_fcname): Pay attention to the case that
16898 foundry is a null string.
16899
169002008-02-01 Kenichi Handa <handa@m17n.org>
16901
16902 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
16903
16904 * font.c (Qunicode_sip): New variable.
16905 (syms_of_font): Declare it as a Lisp symbol.
16906
16907 * font.h (Qunicode_sip): Extern it.
16908
169092008-02-01 Kenichi Handa <handa@m17n.org>
16910
16911 * composite.c (get_composition_id): Pay attention to TAB component.
16912
16913 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
16914 TAB. Adjust for the change of s->char2b which always points to
16915 the first element of allocated memory.
16916
16917 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
16918
16919 * xdisp.c (handle_composition_prop): Set it->c to the first
16920 non-TAB component.
16921 (fill_composite_glyph_string): Change argument.
16922 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
16923 (x_produce_glyphs): Fix handling of left/right padding.
16924
169252008-02-01 Kenichi Handa <handa@m17n.org>
16926
16927 * coding.c (detect_coding_system): Fix for handling off
16928 inhibit_iso_escape_detection. Fix for the case that no coding
16929 system is defined for a specific coding category.
16930
169312008-02-01 Kenichi Handa <handa@m17n.org>
16932
16933 * font.c (font_matching_entity): Delete unused local var.
16934
16935 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
16936 opening a font.
16937
16938 * fileio.c (Finsert_file_contents): On recovering a file, assume
16939 Unix-like eol.
16940 (choose_write_coding_system): On auto-saving a file, force
16941 Unix-like eol.
16942
16943 * coding.c (setup_coding_system): Fix setting of
16944 coding->common_flags based on eol_type.
16945 (coding_inherit_eol_type): If PARENT is not nil, be sure to
16946 inherit from it.
16947
169482008-02-01 Kenichi Handa <handa@m17n.org>
16949
16950 * alloc.c (NSTATICS): Increas to 0x600.
16951
169522008-02-01 Kenichi Handa <handa@m17n.org>
16953
16954 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
16955 (ftfont_list): Don't check :name property.
16956 (ftfont_match): New function.
16957 (ftfont_pattern_entity): If the pattern doesn't contain
16958 FC_SPACING, don't assume FC_MONO.
16959
16960 * font.h (struct font_driver): New member `match'.
16961 (font_update_drivers): Adjust prototype.
16962
16963 * font.c (font_parse_fcname, font_parse_name): Don't change :name
16964 property of FONT.
16965 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
16966 them unconditionally.
16967 (font_matching_entity): New function.
16968 (font_open_by_name): Try font_matching_entity if exact match is
16969 not found.
16970 (font_update_drivers): Delete the arg FONT. Return a list of
16971 actually used backends. Don't free faces, font caches here.
16972 Don't store data in frame parameters. Don't call x_set_font.
16973 (Ffont_spec): Store :name property as is.
16974 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
16975 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
16976 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
16977 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
16978 Call font->driver->otf_gsub instead of font_otf_gsub.
16979
16980 * frame.c (x_set_font_backend): Do more works that were done in
16981 font_update_drivers before.
16982
16983 * xfont.c (xfont_match): New function.
16984 (xfont_driver): Set xfont_driver.match to xfont_match.
16985 (xfont_draw): Set font in GC if necessary.
16986
16987 * ftxfont.c (ftxfont_match): New function.
16988 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
16989
16990 * xftfont.c (xftfont_match): New function.
16991 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
16992
169932008-02-01 Kenichi Handa <handa@m17n.org>
16994
16995 * font.h (struct font): New member scalable.
16996 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
16997 (font_otf_gsub): Adjust prototype.
16998
16999 * font.c (font_otf_capability): Fix handling of the default langsys.
17000 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
17001 Check the contents of SPEC.
17002 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
17003 (check_gstring): New function.
17004 (REPLACEMENT_CHARACTER): New macro.
17005 (font_otf_gsub): New arg alternate_subst. Be sure to set all
17006 glyph codes of GSTRING.
17007 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
17008 (font_prepare_composition): Set cmp->glyph_len.
17009 (font_open_entity): Set font->scalable.
17010 (Ffont_get): Handle :otf property.
17011 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
17012 functions.
17013 (Fquery_font): Use font->font.full_name.
17014 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
17015 Sfont_otf_alternates.
17016
17017 * ftfont.c (ftfont_open): Set font->font.full_name and
17018 font->font.name properly. Fix calculation of font->font.height
17019 and font->min_width.
17020
17021 * ftxfont.c (ftxfont_create_gcs): New function.
17022 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
17023 (ftxfont_draw_backgrond): Fix filling region.
17024 (ftxfont_default_fid): New function.
17025 (ftxfont_open): Set xfont->fid to the return value of
17026 ftxfont_default_fid.
17027 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
17028 (ftxfont_done_face): Free only GCs that are created by
17029 ftxfont_create_gcs.
17030 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
17031
17032 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
17033 Clip to src->width, etc (not src->clip_XXX).
17034
17035 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
17036 FontBackend frame parameter.
17037
170382008-02-01 Kenichi Handa <handa@m17n.org>
17039
17040 * font.h (struct font_driver_list): New member `on'.
17041 (Fclear_font_cache): EXFUN it.
17042 (font_update_drivers): Extern it.
17043
17044 * font.c (font_unparse_fcname): Fix typo (swidth->width).
17045 (font_list_entities): Check driver_list->on.
17046 (register_font_driver): Initalize `on' member to 0.
17047 (font_update_drivers): New function.
17048 (Fclear_font_cache): Check driver_list->on.
17049
17050 * frame.h (Qfont_backend): Extern it.
17051 (x_set_font_backend): Extern it.
17052
17053 * frame.c (Qfont_backend): New variable.
17054 (frame_parms): New element for font-backend.
17055 (x_set_font_backend): New function.
17056
17057 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
17058 FontBackend frame parameter.
17059 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
17060 x_set_font_backend.
17061
17062 * xfont.c (xfont_list): Don't try listing by :name property if the
17063 name is not for XLFD.
17064
170652008-02-01 Kenichi Handa <handa@m17n.org>
17066
17067 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
17068 (LGLYPH_SET_TO): New macros.
17069 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
17070 element of G is vector or not.
17071 (font_at): Extern it.
17072
17073 * font.c: Include window.h.
17074 (font_lispy_object): New function.
17075 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
17076 end of valid glyph.
17077 (font_close_object): Fix getting (struct font *).
17078 (font_at): New function.
17079 (Ffont_get): If FONT is a font-object, get entity from it.
17080 (Ffont_make_gstring): Initialize elements of glyphs with nil.
17081 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
17082 range check.
17083 (Ffont_at): New function.
17084 (syms_of_font): Defsubr Sfont_at.
17085
17086 * xdisp.c (it_props): Move the entry for Qauto_composed to just
17087 before the entry for Qcomposition.
17088 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
17089 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
17090 the font in gstring.
17091 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
17092 LGLYPH_FORM (g) to detect the end of valid glyph.
17093 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
17094 we are composing with gstring.
17095
17096 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
17097 Check if adjustment is vector or not.
17098
17099 * Makefile.in (font.o): Make it depends on window.h.
17100
171012008-02-01 Kenichi Handa <handa@m17n.org>
17102
17103 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
17104 adjustment is vector or not.
17105
171062008-02-01 Miles Bader <miles@gnu.org>
17107
17108 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
17109
171102008-02-01 Kenichi Handa <handa@m17n.org>
17111
17112 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
17113 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
17114 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
17115
17116 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
17117 (DEVICE_DELTA): Fix typo.
17118 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
17119 LGLYPH format.
17120
17121 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17122 the change of LGLYPH format.
17123
171242008-02-01 Kenichi Handa <handa@m17n.org>
17125
17126 * ftfont.c (ftfont_list): Fix typo.
17127 (ftfont_build_basic_charsets): Don't include letters with diacritics.
17128
171292008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17130
17131 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
17132
17133 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
17134 xftface_info is non-NULL.
17135
171362008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17137
17138 * ftfont.c (ftfont_list): Move misplaced #endif.
17139
171402008-02-01 Kenichi Handa <handa@m17n.org>
17141
17142 * ftfont.c (ftfont_list): Pay attention to the case that
17143 FC_CAPABILITY is not defined.
17144
171452008-02-01 Kenichi Handa <handa@m17n.org>
17146
17147 * xftfont.c (xftfont_open): Set charset related members to -1.
17148
17149 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
17150 QCname.
17151 (ftfont_open): Set charset related members to -1.
17152
17153 * fontset.c (Votf_script_alist): New variable.
17154 (syms_of_fontset): Initialize it.
17155 (fontset_font): Delete unused variable.
17156
17157 * fontset.h (Votf_script_alist): Extern it.
17158
17159 * font.c (font_find_for_lface): Optimize code.
17160
17161 * font.h (font_close_object, font_merge_old_spec): Extern them.
17162
171632008-02-01 Kenichi Handa <handa@m17n.org>
17164
17165 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
17166 (syms_of_font): Initialize them.
17167 (font_pixel_size): Allow float value in dpi.
17168 (font_prop_validate_type): Delete.
17169 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
17170 Change caller.
17171 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
17172 (font_prop_validate_extra): Delete.
17173 (font_prop_validate_spacing): New function.
17174 (font_property_table): Add elements for all known properties.
17175 (get_font_prop_index): Rename from check_font_prop_name. New
17176 argument FROM. Change caller.
17177 (font_prop_validate): Validate all known properties.
17178 (font_put_extra): Delete argument force. Change caller.
17179 (font_expand_wildcards): Make it static. Fix the way of shrinking
17180 the possible range.
17181 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
17182 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
17183 Change caller.
17184 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
17185 (font_parse_fcname): Delete argument merge. Fix parsing of point
17186 size. Don't validate properties values here. Change caller.
17187 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
17188 (font_open_by_name): Delete unused variable.
17189 (Ffont_spec): Likewise. Validate property values.
17190 (Ffont_match_p): New function.
17191
17192 * font.h (QCscalable): Extern it.
17193 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
17194
17195 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
17196
17197 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
17198 (xfont_list_pattern): New function.
17199 (xfont_list): Use xfont_list_pattern.
17200
172012008-02-01 Kenichi Handa <handa@m17n.org>
17202
17203 * font.h (Flist_fonts): EXFUN it.
17204
172052008-02-01 Jason Rumney <jasonr@gnu.org>
17206
17207 * w32term.c (w32_initialize): Add back smoothing_type and
17208 smoothing_enabled definitions.
17209
172102008-02-01 Kenichi Handa <handa@m17n.org>
17211
17212 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
17213 s->face->font on determining underline position.
17214
172152008-02-01 Kenichi Handa <handa@m17n.org>
17216
17217 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
17218 (font_has_char): Accept font-object too.
17219 (font_find_for_lface): Try at first with a size specified in face.
17220
172212008-02-01 Kenichi Handa <handa@m17n.org>
17222
17223 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
17224 font_open_by_name.
17225
172262008-02-01 Kenichi Handa <handa@m17n.org>
17227
17228 * font.h (QCspacing, QCdpi): Extern them.
17229 (enum font_spacing): New enum.
17230 (FONT_PIXEL_SIZE_QUANTUM): New macro.
17231
17232 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
17233 (QCspacing, QCdpi): New variables.
17234 (syms_of_font): Initialize them.
17235 (font_pixel_size): New function.
17236 (font_put_extra): New function.
17237 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
17238 in FONT_EXTRA.
17239 (font_parse_fcname): Handle enumerated values (e.g. bold).
17240 Fix handling font size. Add QCname property that contains only
17241 unknown properties.
17242 (font_score): Change argument. Change caller. Pay attention to
17243 FONT_PIXEL_SIZE_QUANTUM.
17244 (font_sort_entites, font_list_entities, font_find_for_lface)
17245 (font_open_for_lface, font_open_by_name): Fix handling of font size.
17246 (Ffont_spec): Add QCname property that contains only unknown properties.
17247
17248 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
17249 include weight in listing pattern, instead check weight of each
17250 listed font. Don't include scalable in pattern. Pay attention to
17251 FONT_PIXEL_SIZE_QUANTUM.
17252
172532008-02-01 Kenichi Handa <handa@m17n.org>
17254
17255 * font.c (font_parse_fcname): Fix parsing of point-size.
17256 (font_unparse_fcname): Produce symbolic names for style properties.
17257 (font_list_entities): Handle float size correctly.
17258 (font_open_by_name): Prefer `normal' property values if the name
17259 doesn't specify them.
17260
17261 * fontset.c (Finternal_char_font): Use font_get_name, not
17262 Ffont_xlfd_name.
17263
17264 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
17265 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
17266 pattern. Don't force scalable.
17267
17268 * xftfont.c (xftfont_open): For generating a name, start from
17269 96-byte buffer.
17270
172712008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17272
17273 * frame.h (x_new_fontset2): Fix prototype.
17274
172752008-02-01 Kenichi Handa <handa@m17n.org>
17276
17277 * font.h (struct font_driver): Delete member parse_name.
17278 (font_match_p, font_get_spec, font_parse_fcname)
17279 (font_unparse_fcname): Extern them.
17280 (font_get_name): Adjust prototype.
17281
17282 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
17283 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
17284 (font_expand_wildcards): Fix handling ENCODING field. Avoid
17285 unnecessary checks for weight, slant, and swidth.
17286 (font_parse_fcname): New function.
17287 (font_unparse_fcname): New function.
17288 (font_parse_name): New function.
17289 (font_match_p): New function.
17290 (font_get_name): Change return value to Lisp string.
17291 (font_get_spec): New function.
17292 (Qunspecified, Qignore_defface): Don't extern them.
17293 (font_find_for_lface): Assume that LFACE is fully specified.
17294 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
17295 object, use it for FACE.
17296 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
17297 driver->parse_name.
17298 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
17299
17300 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
17301 prototype.
17302
17303 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
17304 argument F. Don't call Fnew_fontset. Instead, directly call
17305 make_fontset.
17306
17307 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
17308
17309 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
17310 of x_new_fontset2.
17311
17312 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
17313 (Qsans__serif): New variables.
17314 (ftfont_generic_family_list): New variable.
17315 (syms_of_ftfont): Initialize the above variables.
17316 (ftfont_pattern_entity): Delete argument NAME.
17317 (ftfont_list_generic_family): New function.
17318 (ftfont_parse_name): Delete this function.
17319 (ftfont_list): Try generic family only when FcFontList found no font.
17320 (ftfont_list_family): Fix args to FcObjectSetBuild.
17321
17322 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
17323 object in attrs[LFACE_FONT_INDEX].
17324 (set_lface_from_font_name): Cancel all changes for font-backend.
17325 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
17326 function.
17327 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
17328 font object in QCfont attribute.
17329 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
17330 (realize_default_face) [USE_FONT_BACKEND]: Call
17331 set_lface_from_font_and_fontset.
17332
17333 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
17334 "fixed", and signal error here if no suitable font was found.
17335
17336 * xfont.c (xfont_parse_name): Delete this function.
17337
17338 * xftfont.c (xftfont_open): Change coding style of error
17339 handling. Generate fontconfig's fontname pattern.
17340
17341 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
17342 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
17343
17344 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
17345 Both args FONTSET and FONT_OBJECT must be existing ones.
17346
173472008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17348
17349 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
17350
173512008-02-01 Kenichi Handa <handa@m17n.org>
17352
17353 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
17354
17355 * font.h (struct font): Fix typo.
17356
17357 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
17358 XLFD_XXX_INDEX.
17359 (enum xlfd_field_mask): New enum.
17360 (intern_font_field): Changed argument. Change caller. If digits
17361 are followed by non-digits, return a symbol.
17362 (font_expand_wildcards): New function.
17363 (font_parse_xlfd): Fix wildcard handling.
17364 (Ffont_spec): If :name is specified, reflect the info in the other
17365 properties.
17366
17367 * ftfont.c (ftfont_pattern_entity): Fix typo.
17368 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
17369 locale.
17370
173712008-02-01 Kenichi Handa <handa@m17n.org>
17372
17373 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
17374
17375 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
17376 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
17377 registry doesn't specify encoding part.
17378 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
17379 (font_open_by_name): At first try parsing the name.
17380 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
17381 as Lisp symbols.
17382
17383 * fontset.c (reorder_font_vector): Pay attention to the case that
17384 the 3rd element of font_def is nil.
17385 (fontset_font): For the default fontset, append one more fontset
17386 elements for a script-based font specification. Don't add script
17387 attribute on finding a font.
17388 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
17389 font name.
17390 (fontset_ascii_font): If a font can't be opened, return nil.
17391
17392 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
17393 (ftfont_pattern_entity): New function.
17394 (ftfont_get_cache): Assume that freetype_font_cache is already
17395 initialized.
17396 (ftfont_list): Handle the case that a file is specified in font
17397 name. Use ftfont_pattern_entity to generate entities.
17398 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
17399 (syms_of_ftfont): Initialize freetype_font_cache.
17400
17401 * xftfont.c (xftfont_open): Make the font name fontconfig's
17402 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
17403 (xftfont_close): Free font->font.name if not NULL.
17404
17405 * xfont.c (xfont_list): If script is specified for a font, return
17406 null_vector.
17407 (xfont_list_family): Declare argument type.
17408
17409 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
17410 name, set LFACE_FONT (lface) to nil.
17411
17412 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
17413 return Qnil.
17414
174152008-02-01 Kenichi Handa <handa@m17n.org>
17416
17417 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
17418 (standard_args): Add "-enable-font-backend".
17419
174202008-02-01 Kenichi Handa <handa@m17n.org>
17421
17422 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
17423 (struct xftdraw_list, xftdraw_list): Delete them.
17424 (register_xftdraw, check_xftdraw): Delete them.
17425 (xftfont_prepare_face): Don't call register_xftdraw.
17426 (xftfont_done_face): Don't call check_xftdraw.
17427 (xftfont_draw): Get background color only when with_background is
17428 nonzero.
17429
17430 * xfont.c (xfont_encode_char): Fix calculation of char2b.
17431
174322008-02-01 Kenichi Handa <handa@m17n.org>
17433
17434 These changes are for the new font handling codes.
17435
17436 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
17437 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
17438 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
17439 (FONTSRC, FONTOBJ): New variables.
17440 (obj): Add $(FONTOBJ).
17441 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
17442 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
17443 @LIBOTF_LIBS@.
17444 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
17445 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
17446
17447 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
17448
17449 * character.h (Vscript_representative_chars): Extern it.
17450
17451 * character.c (Vscript_representative_chars): New variable.
17452 (syms_of_character): Declare it as a Lisp variable.
17453
17454 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
17455 enable_font_backend is nonzero, accept the composition method
17456 COMPOSITION_WITH_GLYPH_STRING.
17457
17458 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
17459 enumeration COMPOSITION_WITH_GLYPH_STRING.
17460
17461 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
17462 members clip_x, clip_y, clip_width, and clip_height.
17463 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
17464
17465 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
17466 --enable-font-backend. Call syms_of_font.
17467
17468 * fns.c (assoc_no_quit): New function.
17469
17470 * fontset.h (FONT_INFO_FROM_FACE): New macro.
17471 (face_for_font, new_fontset_from_font)
17472 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
17473
17474 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
17475 (fontset_font, fontset_ascii, face_for_char)
17476 (make_fontset_for_ascii_face, Ffont_info)
17477 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
17478 is nonzero, use font-backend mechanism.
17479 (find_font_encoding): Make it non-static.
17480 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
17481 New functions.
17482
17483 * frame.h (struct frame): New members resx and resy.
17484 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
17485 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
17486
17487 * frame.c [USE_FONT_BACKEND]: Include "font.h".
17488 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
17489
17490 * lisp.h (assoc_no_quit): Extern it.
17491
17492 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
17493 Through out the file, use FONT_INFO_FROM_FACE instead of
17494 FONT_INFO_FROM_ID, use get_per_char_metric instead of
17495 rif->per_char_metric.
17496 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
17497 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
17498 (get_glyph_face_and_encoding, fill_composite_glyph_string)
17499 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
17500 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
17501 nonzero, use font-backend mechanism.
17502 (get_per_char_metric): New function.
17503
17504 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
17505 (set_lface_from_font_name)
17506 (set_font_frame_param, free_realized_face)
17507 (prepare_face_for_display, clear_face_gcs)
17508 (Finternal_set_font_selection_order, realize_x_face)
17509 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
17510 font-backend mechanism.
17511 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
17512 (load_face_font) [USE_FONT_BACKEND]: Abort.
17513 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
17514 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
17515
17516 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
17517 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
17518 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
17519 nonzero, register all available font drivers. Call
17520 x_default_font_parameter for deciding a font.
17521 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
17522
17523 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
17524 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
17525 (x_set_glyph_string_clipping_exactly)
17526 (x_compute_glyph_string_overhangs)
17527 (x_draw_glyph_string_foreground)
17528 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
17529 (x_free_frame_resources) [USE_FONT_BACKEND]: If
17530 enable_font_backend is nonzero, use font-backend mechanism.
17531 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
17532
175332008-02-01 Kenichi Handa <handa@m17n.org>
17534
17535 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
17536 system_eol_type.
17537 (syms_of_coding): Initialize system_eol_type.
17538
17539 * process.c (Fset_process_coding_system): Inherit system's eol
17540 format if necessary.
17541
175422008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17543
17544 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
17545
175462008-02-01 Kenichi Handa <handa@m17n.org>
17547
17548 * coding.c (decode_eol): Pay attention to buffer relocation in
17549 del_range_2.
17550 (decode_coding): Call decode_eol before restoring undo_list.
17551
175522008-02-01 Kenichi Handa <handa@m17n.org>
17553
17554 * charset.c (Fdefine_charset_internal): Fix setting of
17555 emacs_mule_bytes.
17556
175572008-02-01 Kenichi Handa <handa@m17n.org>
17558
17559 * keyboard.c (read_char): Check if C is a character or not before
17560 looking up Vkeyboard_translate_table.
17561
175622008-02-01 Kenichi Handa <handa@m17n.org>
17563
17564 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
17565 condition to terminate the loop.
17566
175672008-02-01 Kenichi Handa <handa@m17n.org>
17568
17569 * coding.c (produce_composition): Compare charbuf[i] instead of
17570 args[i] against 0.
17571 (Fterminal_coding_system): Use EQ to compare Lisp objects.
17572
175732008-02-01 Kenichi Handa <handa@m17n.org>
17574
17575 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
17576 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
17577 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
17578 detect_coding.
17579 (emacs_mule_char): Handle old style (Emacs 20) component character
17580 of a composition.
17581 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
17582 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
17583 composition rule.
17584 (decode_coding_emacs_mule): Handle invalid bytes correctly.
17585
175862008-02-01 Kenichi Handa <handa@m17n.org>
17587
17588 * coding.c (encode_coding_ccl): Allocate destination dynamically
17589 when necessary.
17590
175912008-02-01 Kenichi Handa <handa@m17n.org>
17592
17593 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
17594 the loop. When quitted, show a proper error message.
17595
175962008-02-01 Kenichi Handa <handa@m17n.org>
17597
17598 * xterm.c (x_set_glyph_string_clipping_exactly): Set
17599 src->clip_head and src->clip_tail temporarily instead of src->hl.
17600
17601 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
17602 character sequence.
17603 (Fccl_execute_on_string): Use ASET, not XSET.
17604
176052008-02-01 Kenichi Handa <handa@m17n.org>
17606
17607 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
17608
176092008-02-01 Kenichi Handa <handa@m17n.org>
17610
17611 * coding.c (decode_coding): Fix the condition of terminating the
17612 decoding loop.
17613
176142008-02-01 Kenichi Handa <handa@m17n.org>
17615
17616 * data.c (Faset): On setting a character bigger than 255 in a
17617 unibyte string, signal an error instead of make the string multibyte.
17618
176192008-02-01 Kenichi Handa <handa@m17n.org>
17620
17621 * charset.c (map_charset_chars): Fix for ascii-compatible charset
17622 made by a mapping table.
17623
176242008-02-01 Kenichi Handa <handa@m17n.org>
17625
17626 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
17627 not.
17628 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
17629 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
17630
17631 * xterm.c (x_draw_composite_glyph_string_foreground): Check
17632 s->face is NULL or not.
17633
176342008-02-01 Kenichi Handa <handa@m17n.org>
17635
17636 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
17637 (x_draw_glyph_string): Fix drawing of right_overhang and
17638 left_overhang around/on cursor.
17639
17640 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
17641
176422008-02-01 Kenichi Handa <handa@m17n.org>
17643
17644 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
17645
176462008-02-01 Kenichi Handa <handa@m17n.org>
17647
17648 * coding.c (Fdefine_coding_system_internal)
17649 (Fdefine_coding_system_alias): Avoid a duplicated element in
17650 Vcoding_system_alist.
17651
176522008-02-01 Kenichi Handa <handa@m17n.org>
17653
17654 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
17655
17656 * coding.c (Qcoding_system_define_form): New variable.
17657 (syms_of_coding): Intern and staticpro it.
17658 (Fcoding_system_p): Check Qcoding_system_define_form.
17659 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
17660
17661 * coding.h (CODING_SYSTEM_P): If ID is not available, call
17662 Fcoding_system_p.
17663 (CHECK_CODING_SYSTEM): If ID is not available, call
17664 Fcheck_coding_system.
17665 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
17666 Try also Fcheck_coding_system.
17667
176682008-02-01 Kenichi Handa <handa@m17n.org>
17669
17670 * coding.c (code_conversion_restore): GCPRO arg.
17671
176722008-02-01 Kenichi Handa <handa@m17n.org>
17673
17674 * character.c (lisp_string_width): Check multibyteness of STRING.
17675
176762008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17677
17678 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
17679 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
17680 (decode_mac_font_name): Use decode_coding_c_string instead of
17681 decode_coding.
17682 (x_load_font): Initialize fontp->fontset to -1. Set
17683 fontp->encoding_type.
17684
176852008-02-01 Kenichi Handa <handa@m17n.org>
17686
17687 * search.c (search_buffer): Give up BM search on case-fold-search
17688 if one of a target character has a case-equivalence of different
17689 byte length even if that target charcter is an ASCII.
17690 (simple_search): Fix calculation of byte length of matched text.
17691 (boyer_moore): Fix handling of case-equivalent multibyte characters.
17692
176932008-02-01 Kenichi Handa <handa@m17n.org>
17694
17695 * coding.c (decode_coding): Fix handling of invalid bytes.
17696
176972008-02-01 Kenichi Handa <handa@m17n.org>
17698
17699 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
17700 Unicode characters.
17701
177022008-02-01 Kenichi Handa <handa@m17n.org>
17703
17704 * coding.c (encode_coding_object): If a pre-write-conversion
17705 function makes a new buffer, kill it.
17706
177072008-02-01 Kenichi Handa <handa@m17n.org>
17708
17709 * coding.c (QCascii_compatible_p): New variable.
17710 (syms_of_coding): Initialize it.
17711 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
17712 calling string_char.
17713 (record_conversion_result): Add `default:' case.
17714 (coding_charset_list): Delete unused variable `coding_type'.
17715 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
17716 property in the plist of the coding system.
17717 (Fcoding_system_put): Check QCascii_compatible_p.
17718
177192008-02-01 Miles Bader <miles@gnu.org>
17720
17721 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
17722 removed calculation of frame `f', as it's now used.
17723
177242008-02-01 Kenichi Handa <handa@m17n.org>
17725
17726 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
17727 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
17728 (UNIDATA): New variable.
17729 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
17730 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
17731 $(RUN_TEMACS) unconditionally.
17732
177332008-02-01 Kenichi Handa <handa@m17n.org>
17734
17735 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
17736 (admindir): New variable.
17737 ($(lispsource)international/charprop.el): New target.
17738
177392008-02-01 Miles Bader <miles@gnu.org>
17740
17741 * character.c (chars-in-region): Remove obsolete function.
17742 (syms_of_character): Remove its initialization.
17743
177442008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
17745
17746 * w32select.c (validate_coding_system)
17747 (setup_windows_coding_system): New functions.
17748 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
17749 setup_windows_coding_system.
17750 (setup_config, Fw32_get_clipboard_data): Use
17751 validate_coding_system.
17752 (Fx_selection_exists): Move call to setup_config to a place
17753 where signals are allowed.
17754
17755 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
17756 (Fcheck_coding_system): Add declarations.
17757
177582008-02-01 Kenichi Handa <handa@m17n.org>
17759
17760 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
17761
177622008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17763
17764 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
17765 string as the second argument for x_new_fontset.
17766
177672008-02-01 Kenichi Handa <handa@m17n.org>
17768
17769 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
17770 (encode_coding_object): Use safe_call instead of call2.
17771
177722008-02-01 Kenichi Handa <handa@m17n.org>
17773
17774 * fontset.c (Fset_fontset_font): Check family element of a given vector.
17775
17776 * Makefile.in (lisp): Include charprop.el.
17777
177782008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17779
17780 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
17781 Not sure if it's unnecessary.
17782
177832008-02-01 Steven Tamm <steventamm@mac.com>
17784
17785 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
17786 some possibly unnecessary fontset checking code that crashed
17787 when creating a new frame.
17788
177892008-02-01 Kenichi Handa <handa@m17n.org>
17790
17791 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
17792 lookup_face.
17793
17794 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
17795
17796 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
17797
177982008-02-01 Kenichi Handa <handa@m17n.org>
17799
17800 * coding.c: Cancel the change done in HEAD on 2008-02-01.
17801 (coding_charset_list): New function.
17802
17803 * coding.h (coding_charset_list): Extern it.
17804
178052008-02-01 Kenichi Handa <handa@m17n.org>
17806
17807 * fontset.c (Fset_fontset_font): Call find_font_encoding with
17808 concatenation of family and registry.
17809
178102008-02-01 Kenichi Handa <handa@m17n.org>
17811
17812 * character.h (BYTE8_STRING): Fix typo.
17813
17814 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
17815 string to multibyte (sync to HEAD).
17816
17817 * casefiddle.c (casify_region): Handle changes in byte-length
17818 using replace_range_2 (sync to HEAD).
17819
178202008-02-01 Andreas Schwab <schwab@suse.de>
17821
17822 * chartab.c (map_char_table): GCPRO table and arg.
17823
178242008-02-01 Kenichi Handa <handa@m17n.org>
17825
17826 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
17827 already at limit.
17828
178292008-02-01 Kenichi Handa <handa@m17n.org>
17830
17831 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
17832 instead of fast_c_string_match_ignore_case.
17833 (find_font_encoding): Change argument to Lisp_Object. Use
17834 fast_string_match_ignore_case instead of
17835 fast_c_string_match_ignore_case. Change caller.
17836
178372008-02-01 Kenichi Handa <handa@m17n.org>
17838
17839 * xdisp.c (get_next_display_element): In unibyte case, decide to
17840 display in octal form by checking a character by
17841 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
17842
17843 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
17844
17845 * character.c (unibyte_has_multibyte_table): New variable.
17846
17847 * character.h (unibyte_has_multibyte_table): Extern it.
17848 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
17849
178502008-02-01 Kenichi Handa <handa@m17n.org>
17851
17852 * coding.c (encode_coding_iso_2022): Fix handling of charset
17853 annotation.
17854
178552008-02-01 Kenichi Handa <handa@m17n.org>
17856
17857 * coding.c (setup_coding_system): If coding_system is nil, use
17858 Qundecided.
17859 (Fterminal_coding_system): Return nil if terminal coding system is
17860 `undecided'.
17861 (syms_of_coding): Define coding-system `undecided' here. Setup
17862 terminal_coding as `undecided'.
17863
178642008-02-01 Kenichi Handa <handa@m17n.org>
17865
17866 * xdisp.c (message_dolog, set_message_1): Call
17867 unibyte_char_to_multibyte with arg type int.
17868
17869 * lread.c (read1): Fix reading of a char-table.
17870
17871 * print.c (print_object): Include sub char-table in circularities
17872 detection.
17873
178742008-02-01 Kenichi Handa <handa@m17n.org>
17875
17876 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
17877 Append the found sequences in car of ARGS instead of prepending.
17878
178792008-02-01 Kenichi Handa <handa@m17n.org>
17880
17881 * fileio.c (report_file_error): Make a unibyte string from
17882 strerror (errorno).
17883 (Fsubstitute_in_file_name): Fix the arg to
17884 unibyte_char_to_multibyte. It is evaluated twice.
17885
178862008-02-01 Kenichi Handa <handa@m17n.org>
17887
17888 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
17889
178902008-02-01 Kenichi Handa <handa@m17n.org>
17891
17892 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
17893 BOM is not found.
17894 (detect_coding, detect_coding_system): Optimization for ISO-2022
17895 when no 8-bit data is found.
17896
178972008-02-01 Jason Rumney <jasonr@gnu.org>
17898
17899 * w32fns.c (x_to_w32_font): Update to use new coding struct.
17900
179012008-02-01 Kenichi Handa <handa@m17n.org>
17902
17903 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
17904 CHARS.
17905
179062008-02-01 Steven Tamm <steventamm@mac.com>
17907
17908 * macterm.c (mac_encode_char): Add charset argument and update
17909 to use encoding_type.
17910 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
17911 switch to pure fontset.
17912 (decode_mac_font_name): Temporarily remove decoding.
17913 (x_font_name_to_mac_font_name): Temporarily remove encoding.
17914 (x_load_font): Temporarily remove encoding.
17915
179162008-02-01 Kenichi Handa <handa@m17n.org>
17917
17918 * xfaces.c (Fface_font): If frame is not on a window system,
17919 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
17920 refer to face->font.
17921 (split_font_name_into_vector, build_font_name_from_vector)
17922 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
17923 when HAVE_WINDOW_SYSTEM is defined.
17924
179252008-02-01 Kenichi Handa <handa@m17n.org>
17926
17927 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
17928 (x_produce_glyphs): Fix setting of members of cmp in case
17929 cmp->glyph_len is zero.
17930
17931 * fontset.c (Fset_fontset_font): Fix docstring.
17932 (Ffontset_info): Make it backward compatible. New arg ALL.
17933
179342008-02-01 Kim F. Storm <storm@cua.dk>
17935
17936 * process.c (read_process_output): Grow decoding_buf when needed;
17937 this could cause a crash in allocate_string and compact_small_strings.
17938
179392008-02-01 Kenichi Handa <handa@m17n.org>
17940
17941 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
17942
179432008-02-01 Kenichi Handa <handa@m17n.org>
17944
17945 * coding.c (setup_coding_system): Set coding->common_flags
17946 correctly for raw-text.
17947 (consume_chars): On encoding unibyte text by raw-text, don't check
17948 multibyte form.
17949 (encode_coding): On encoding by raw-text, never use translation tables.
17950
17951 * fileio.c (e_write): Short cut for the case of no encoding.
17952
179532008-02-01 Kenichi Handa <handa@m17n.org>
17954
17955 * coding.c (detect_coding, detect_coding_system): Delete unused
17956 variables.
17957
179582008-02-01 Kenichi Handa <handa@m17n.org>
17959
17960 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
17961 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
17962
179632008-02-01 Kenichi Handa <handa@m17n.org>
17964
17965 * coding.c (Ffind_coding_systems_region_internal): Include
17966 raw-text and no-conversion in the result.
17967
179682008-02-01 Kenichi Handa <handa@m17n.org>
17969
17970 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
17971 (load_font_get_repertory): Delete unnecessary check of ENCODING of
17972 FONT_DEF.
17973 (font_def_arg, add_arg, from_arg, to_arg): New args.
17974 (set_fontset_font): Change argument.
17975 (Fset_fontset_font): Fix for the case that TARGET is a script
17976 name and charset name.
17977 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
17978
179792008-02-01 Kenichi Handa <handa@m17n.org>
17980
17981 * fontset.c (fontset_font): Rename from fontset_face. Change return
17982 value.
17983 (face_suitable_for_char_p, face_for_char): Adjust for the change
17984 of fontset_font.
17985 (make_fontset_for_ascii_face): Fix setting of the fontset element
17986 for ASCII.
17987 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
17988 to get a font name.
17989 (Ffontset_info): Adjust for the change of fontset_font.
17990
17991 * coding.c (emacs_mule_char): Check invalid code more rigidly.
17992
17993 * character.h (LEADING_CODE_LATIN_1_MIN)
17994 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
17995
179962008-02-01 Kenichi Handa <handa@m17n.org>
17997
17998 * editfns.c (check_translation): New function.
17999 (Ftranslate_region_internal): Handle M:N mapping.
18000
180012008-02-01 Kenichi Handa <handa@m17n.org>
18002
18003 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
18004
180052008-02-01 Kenichi Handa <handa@m17n.org>
18006
18007 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
18008 goto invalid_code.
18009 (decode_coding_iso_2022): Fix handling of invalid designation.
18010
18011 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
18012 after calling code_conversion_save.
18013
180142008-02-01 Kenichi Handa <handa@m17n.org>
18015
18016 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
18017
18018 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
18019
18020 * fontset.c: Include "intervals.h".
18021 (fontset_face): Fix comparing of Lisp_Objects.
18022 (free_face_fontset, new_fontset_from_font_name): Fix
18023 Lisp_Object/int mixup.
18024
18025 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
18026
18027 * coding.c: Add many prototypes for static functions.
18028 (get_translation_table): Allow max_lookup to be NULL.
18029 (decode_coding, Ffind_coding_systems_region_internal)
18030 (Funencodable_char_position, Fcheck_coding_systems_region): Call
18031 get_translation_table with max_lookup NULL.
18032
180332008-02-01 Kenichi Handa <handa@m17n.org>
18034
18035 * coding.c (get_translation_table): Declare it as Lisp_Object.
18036 (LOOKUP_TRANSLATION_TABLE): New macro.
18037 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
18038 instead of CHAR_TABLE_REF.
18039
180402008-02-01 Kenichi Handa <handa@m17n.org>
18041
18042 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
18043 annotation data format.
18044 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
18045 Change arguments FROM and TO to single argument NCHARS. Change caller.
18046 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
18047 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18048 (decode_coding_ccl, decode_coding_charset): Pay attention to
18049 coding->charbuf_used.
18050 (get_translation): New function.
18051 (produce_chars): New arguments translation_table and last_block.
18052 Translate characters here. Return number of carryover chars.
18053 Change caller.
18054 (produce_composition): New argument pos. Change caller.
18055 Adjust for the change of annotation data format.
18056 (produce_charset, produce_annotation): Likewise.
18057 (decode_coding, encode_coding): Don't call translate_chars.
18058 (consume_chars): New arg translation_table. Change caller.
18059 (translate_chars): Delete.
18060 (syms_of_coding): Make translation-table's number of extra slots 2.
18061
180622008-02-01 Kenichi Handa <handa@m17n.org>
18063
18064 * search.c (simple_search): Fix setting this_pos_byte in backward
18065 search.
18066
18067 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
18068 byte sequence.
18069 (detect_coding_ccl): Fix setting of the variable valids.
18070
180712008-02-01 Kenichi Handa <handa@m17n.org>
18072
18073 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
18074
18075 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
18076
18077 * editfns.c (Ftranslate_region_internal): Rename from
18078 Ftranslate_region. Accept a char-table in TABLE.
18079 (syms_of_editfns): Defsubr Stranslate_region_internal.
18080
18081 * xfaces.c (set_lface_from_font_name): If a font is specified for
18082 a frame, generate a fontset from the font.
18083 (build_scalable_font_name): If the scalable font is requested for
18084 a specific size, don't change that size.
18085 (try_font_list): Try a scalable font also in the case that a
18086 pattern string is specified.
18087
180882008-02-01 Kenichi Handa <handa@m17n.org>
18089
18090 * xfaces.c (Fface_font): New optional arg CHARACTER.
18091
180922008-02-01 Kenichi Handa <handa@m17n.org>
18093
18094 * charset.h (CHARSET_OFFSET): New macro.
18095
180962008-02-01 Kenichi Handa <handa@m17n.org>
18097
18098 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
18099
18100 * fontset.c (fontset_face): Handle the case that repertory is a
18101 char-table.
18102 (find_font_encoding): Return nil for unknown encoding.
18103 (Fset_fontset_font): Ignore a font of unknown encoding.
18104
181052008-02-01 Kenichi Handa <handa@m17n.org>
18106
18107 * keymap.c (describe_vector): Handle default value of a char table.
18108
18109 * fontset.c (fontset_face): Handle fallback fonts correctly.
18110 (Ffontset_info): Return infomation about fallback fonts.
18111
181122008-02-01 Kenichi Handa <handa@m17n.org>
18113
18114 * fontset.c (FONTSET_DEFAULT): New macro.
18115 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
18116 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
18117 the case that it is nil.
18118 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
18119 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
18120
18121 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
18122 subset or superset.
18123
181242008-02-01 Kenichi Handa <handa@m17n.org>
18125
18126 * emacs.c (main): Call init_charset after syms_of_XXX.
18127
18128 * charset.c (Vcharset_map_directory): Delete.
18129 (Vcharset_map_path): New variable.
18130 (load_charset_map_from_file): Use Vcharset_map_path instead.
18131 (init_charset): Initialize Vcharset_map_path.
18132 (syms_of_charset): Delete declaration of "charset-map-directory",
18133 add declaration of "charset-map-path".
18134
181352008-02-01 Kenichi Handa <handa@m17n.org>
18136
18137 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
18138 ASCII only string.
18139
18140 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
18141
18142 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
18143 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
18144
181452008-02-01 Kenichi Handa <handa@m17n.org>
18146
18147 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
18148
18149 * coding.c (QCmnemonic, QCdefalut_char)
18150 (QCdecode_translation_table, QCencode_translation_table)
18151 (QCpost_read_conversion, QCpre_write_conversion): New variables.
18152 (get_translation_table): Return a list of translation tables if
18153 necessary.
18154 (decode_coding): Call get_translation_table with ENCODEP 0.
18155 (char_encodable_p): If translation_table is non-nil, always call
18156 translate_char.
18157 (Fdefine_coding_system_internal): Accept list of translation
18158 tables as :encode-translation-table and :decode-translation-table.
18159 (Fcoding_system_put): New function.
18160 (syms_of_coding): Declare new symbols. Defsubr
18161 Scoding_system_put.
18162 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
18163 typically JISX0212.
18164
18165 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
18166 when the charset is superset type.
18167
18168 * character.c (translate_char): Accept list of translation tables.
18169
181702008-02-01 Kenichi Handa <handa@m17n.org>
18171
18172 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
18173 (CODING_ATTR_TRANS_TBL): New macro.
18174
18175 * coding.c (get_translation_table): New function.
18176 (translate_chars): Fix the bug of skipping annotation data.
18177 (decode_coding, encode_coding): Utilize get_translation_table.
18178 (char_encodable_p, Funencodable_char_position): Translate char if
18179 necessary.
18180 (Ffind_coding_systems_region_internal)
18181 (Fcheck_coding_systems_region): Setup translation table for encode
18182 in a coding system attribute vector in advance.
18183 (Fdefine_coding_system_internal): Allow a symbol as translation
18184 table. For shift-jis type coding system, allow 4th charset.
18185
181862008-02-01 Kenichi Handa <handa@m17n.org>
18187
18188 * coding.c (decode_coding_sjis): Check the first byte rigidly.
18189
18190 * xdisp.c (get_next_display_element): Pass -1 as POS to
18191 FACE_FOR_CHAR if displaying a C-string.
18192
181932008-02-01 Kenichi Handa <handa@m17n.org>
18194
18195 * composite.c (get_composition_id): Handle xoff and yoff in a
18196 composition rule.
18197
18198 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
18199 (struct composition): New member lbearing and rbearing.
18200
18201 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
18202 (x_get_glyph_overhangs): Handle a composition glyph.
18203 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
18204
18205 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
18206 composition glyph.
18207
182082008-02-01 Kenichi Handa <handa@m17n.org>
18209
18210 * print.c: Include charset.h.
18211 (Vprint_charset_text_property): New variable.
18212 (Qdefault): Extern it.
18213 (PRINT_STRING_NON_CHARSET_FOUND)
18214 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
18215 (print_check_string_result): New variable.
18216 (print_check_string_charset_prop): New function.
18217 (print_prune_charset_plist): New variable.
18218 (print_prune_string_charset): New function.
18219 (print_object): Call print_prune_string_charset if
18220 Vprint_charset_text_property is not t.
18221 (print_interval): Print nothing if interval->plist is nil.
18222 (syms_of_print): Declare Vprint_charset_text_property as a lisp
18223 variable. Init and staticpro print_prune_charset_plist.
18224
182252008-02-01 Kenichi Handa <handa@m17n.org>
18226
18227 * fontset.c (new_fontset_from_font_name): Use the specified font
18228 for all characters in the new fontset.
18229
18230 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
18231 OBJECT args.
18232
18233 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
18234 OBJECT args for composition too.
18235
18236 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
18237 OBJECT args.
18238
182392008-02-01 Kenichi Handa <handa@m17n.org>
18240
18241 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
18242
18243 * fontset.c (reorder_font_vector): Adjust for the change of
18244 FONT_DEF format.
18245 (fontset_face): New arg id. Change caller.
18246 (face_for_char): New args pos and object.
18247 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
18248 (fs_query_fontset): Check NAME by Fassoc too.
18249 (Fset_fontset_font): Allow non-XLFD font name.
18250 (Ffontset_info): Adjust for the change of FONT_DEF format.
18251
18252 * fontset.h (face_for_char): Adjust prototype.
18253
18254 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
18255 (append_space, extend_face_to_end_of_line)
18256 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
18257 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
18258
18259 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
18260 POS and OBJECT args.
18261
18262 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
18263 POS and OBJECT args.
18264
182652008-02-01 Jason Rumney <jasonr@gnu.org>
18266
18267 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
18268 of GlobalAlloc'ed memory.
18269
182702008-02-01 Kenichi Handa <handa@m17n.org>
18271
18272 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
18273
18274 * charset.h (charset_table_used): Delete extern.
18275
18276 * charset.c (charset_table_used): Make it static.
18277 (map_charset_chars): Fix args to c_function with.
18278
18279 * chartab.c (map_sub_char_table_for_charset): Fix args to
18280 c_function with.
18281
18282 * coding.h (enum coding_result_code): Delete
18283 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
18284
18285 * coding.c (Qinsufficient_source, Qinconsistent_eol)
18286 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
18287 (Vlast_code_conversion_error): New variables.
18288 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
18289 (ONE_MORE_BYTE): Record error if any instead of signaling an
18290 error. If non-ASCII multibyte char is found, return the negative
18291 value of the code. All callers changed to check it.
18292 (ONE_MORE_BYTE_NO_CHECK): Likewise.
18293 (record_conversion_result): New function. Change all codes setting
18294 coding->result to call this function.
18295 (detect_coding_utf_8, decode_coding_utf_8)
18296 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
18297 Don't use the local variable incomplete.
18298 (emacs_mule_char): Change the second arg to `const'.
18299 (decode_coding): Fix of flushing out unprocessed data.
18300 (make_conversion_work_buffer): Fix making of a work buffer.
18301 (decode_coding_object): Return coding->dst_object.
18302
18303 * fontset.c (set_fontset_font): Fix args.
18304
18305 * lisp.h (CHARACTERBITS): Define as 22.
18306
18307 * process.c (send_process): Be sure to set coding->src_multibyte.
18308
18309 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
18310
183112008-02-01 Kenichi Handa <handa@m17n.org>
18312
18313 * xdisp.c (handle_auto_composed_prop): Give limit to
18314 Fnext_single_char_property_change.
18315
183162008-02-01 Kenichi Handa <handa@m17n.org>
18317
18318 * composite.c (syms_of_composite): Don't make the composition hash
18319 table weak.
18320
18321 * fontset.c (Fset_fontset_font): Fix docstring.
18322
18323 * lisp.h (detect_coding_system): Adjust prototype.
18324
18325 * fileio.c (kill_workbuf_unwind): Delete this function.
18326 (Finsert_file_contents): Adjust the call of detect_coding_system.
18327 Get conversion_buffer by code_conversion_save. Use the macro
18328 CODING_MAY_REQUIRE_DECODING. After decoding, update
18329 coding_system.
18330
18331 * coding.h (make_conversion_work_buffer): Delete extern.
18332 (code_conversion_save): Extern it.
18333
18334 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
18335 (CODING_GET_INFO): Delete argument eol_type. Change callers.
18336 (decode_coding_utf_8): Don't do eol converion.
18337 (detect_coding_utf_16): Check coding->src_chars, not
18338 coding->src_bytes. Add heuristics for those that have no signature.
18339 (decode_coding_emacs_mule, decode_coding_iso_2022)
18340 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
18341 Don't do eol converion.
18342 (adjust_coding_eol_type): Return a new coding system.
18343 (detect_coding): Don't detect eol. Fix for utf-16 detection.
18344 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
18345 each change.
18346 (decode_coding): Pay attention to undo_list. Do eol conversion for
18347 all types of coding-systems (if necessary).
18348 (Vcode_conversion_work_buf_list): Delete it.
18349 (Vcode_conversion_reused_workbuf): Rename from
18350 Vcode_conversion_reused_work_buf.
18351 (Vcode_conversion_workbuf_name): New variable.
18352 (reused_workbuf_in_use): New variable.
18353 (make_conversion_work_buffer): Delete the arg DEPTH.
18354 (code_conversion_restore): Change argument to cons.
18355 (code_conversion_save): Delete the argument BUFFER. Change callers.
18356 (detect_coding_system): New argument src_chars. Change callers.
18357 Fix for utf-16 detection.
18358 (init_coding_once): Don't use ISO_carriage_return.
18359 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
18360 reused_workbuf_in_use.
18361
183622008-02-01 Kenichi Handa <handa@m17n.org>
18363
18364 * keymap.c (store_in_keymap): Pay attention to the case that idx
18365 is a cons specifying a character range.
18366
183672008-02-01 Kenichi Handa <handa@m17n.org>
18368
18369 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
18370 HANDLED_RECOMPUTE_PROPS.
18371
18372 * coding.c (Fdefine_coding_system_internal): Fix checking of
18373 ascii compatibility.
18374
183752008-02-01 Kenichi Handa <handa@m17n.org>
18376
18377 * charset.c (find_charsets_in_text): Delete unused locale variable.
18378 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
18379
18380 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
18381 Resync charset_list to Vemacs_mule_charset_list.
18382
18383 * keymap.c (store_in_keymap): Pay attention to the case that idx
18384 is a cons specifying a character range.
18385
183862008-02-01 Kenichi Handa <handa@m17n.org>
18387
18388 * composite.c (update_compositions): Bind inhibit-read-only, etc
18389 to t before calling remove-list-of-text-properties.
18390
18391 * print.c (print_object): Always print ASCII chars as is.
18392
183932008-02-01 Kenichi Handa <handa@m17n.org>
18394
18395 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
18396
18397 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
18398 is a char table.
18399
184002008-02-01 Kenichi Handa <handa@m17n.org>
18401
18402 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
18403
184042008-02-01 Kenichi Handa <handa@m17n.org>
18405
18406 * xfaces.c (set_lface_from_font_name): Fix for the case that
18407 FONTNAME is not fontset name.
18408
184092008-02-01 Kenichi Handa <handa@m17n.org>
18410
18411 * fns.c (base64_encode_1): Fix previous change.
18412
184132008-02-01 Kenichi Handa <handa@m17n.org>
18414
18415 * fontset.c (set_fontset_font): New function.
18416 (Fset_fontset_font): If a font is specified for a charset, use
18417 map_charset_chars to store the font spec in a fontset.
18418
184192008-02-01 Kenichi Handa <handa@m17n.org>
18420
18421 * fontset.c (fontset_face): Create a fallback fontset on demand.
18422 (make_fontset): Don't create a fallback fontset here.
18423 (free_face_fontset): Free a fallback fontset (if any) too.
18424 (n_auto_fontsets): Delete this variable.
18425 (auto_fontset_alist): New variable.
18426 (new_fontset_from_font_name): Check auto_fontset_alist.
18427 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
18428 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
18429 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
18430 Defsubr Sfontset_list_all.
18431
184322008-02-01 Kenichi Handa <handa@m17n.org>
18433
18434 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
18435
184362008-02-01 Kenichi Handa <handa@m17n.org>
18437
18438 * fontset.c (Fnew_fontset): Check NAME more rigidly.
18439
184402008-02-01 Kenichi Handa <handa@m17n.org>
18441
18442 * editfns.c (Fgoto_char): Fix docstring.
18443
184442008-02-01 Kenichi Handa <handa@m17n.org>
18445
18446 * insdel.c (insert_from_gap): Adjust intervals correctly.
18447
184482008-02-01 Jason Rumney <jasonr@gnu.org>
18449
18450 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
18451 (pfnGetFontUnicodeRanges): New dynamically loaded function.
18452 (w32_initialize): Try to load it.
18453 (x_get_font_repertory): Use it if available.
18454 (w32_encode_char): Add shortcut for unicode output.
18455
18456 * w32fns.c (w32_load_system_font): Default charset to -1.
18457 (x_to_w32_charset): Match all fonts for unicode.
18458 (w32_to_x_charset): New parameter matching. Don't return partial
18459 or wildcard charsets.
18460 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
18461 (w32_codepage_for_font): Return CP_UNICODE for unicode.
18462 (w32_to_x_font): Match charset to real charset.
18463 (enum_font_cb2): Always list unicode versions.
18464
18465 * makefile.w32-in (temacs): Increase EMHEAP.
18466
184672008-02-01 Jason Rumney <jasonr@gnu.org>
18468
18469 * w32term.c (w32_encode_char): New charset parameter.
18470 font_info.encoding becomes encoding_type.
18471 (x_get_font_repertory): New function. Warning: stub only!
18472 (x_new_font): Return quickly if font already set.
18473 (x_new_fontset): fontsetname parameter is Lisp_Object.
18474 Use new fs_query_fontset. Try new_fontset_from_font_name.
18475 Use fontset_name for return value.
18476
18477 * w32term.h: Declare x_get_font_repertory.
18478
18479 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
18480 place of find_charset_in_text. Use encode_coding_object in place
18481 of encode_coding.
18482 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
18483 decode_coding.
18484
18485 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
18486 of x_new_fontset.
18487 (w32_load_system_font): Initialize charset as unicode.
18488 font_info.encoding becomes encoding_type.
18489 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
18490 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
18491 (syms_of_w32fns): Set get_font_repertory_func.
18492
18493 * w32console.c: Include character.h. Use terminal_encode_buffer
18494 from term.c.
18495 (write_glyphs): Use new version of encode_terminal_code. Use
18496 encode_coding_object in place of encode_coding.
18497
18498 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
18499 encoding becomes encoding_type.
18500
18501 * term.c (terminal_encode_buffer): Make externally visible.
18502
18503 * makefile.w32-in: Add character.h dependancies.
18504 (character.o, chartab.o): New targets.
18505
185062008-02-01 Kenichi Handa <handa@m17n.org>
18507
18508 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
18509 CODING_ID_EOL_TYPE.
18510
185112008-02-01 Andreas Schwab <schwab@suse.de>
18512
18513 * coding.c (produce_chars): Revert last change.
18514
185152008-02-01 Kenichi Handa <handa@m17n.org>
18516
18517 * charset.h (charset_unicode): Extern it.
18518
18519 * charset.c (string_xstring_p): Check by (C >= 0x100).
18520 (find_charsets_in_text): Change format of the arc CHARSETS. New
18521 arg MULTIBYTE.
18522 (Ffind_charset_region, Ffind_charset_string): Adjust for the
18523 change of find_charsets_in_text.
18524 (Fsplit_char): Fix doc. Never return unknown.
18525
18526 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
18527
18528 * coding.c (Fdefine_coding_system_alias): Update
18529 Vcoding_system_list.
18530
18531 * fontset.c (load_font_get_repertory): Pay attention to the case
18532 that ENCODING of a font is specified by a char-table.
18533
18534 * xterm.c (x_get_font_repertory): Handle the case that the
18535 encoding of font is other than Unicode.
18536
185372008-02-01 Kenichi Handa <handa@m17n.org>
18538
18539 * term.c (encode_terminal_code): Don't handle glyph-table. Check
18540 if a character is encodable by the terminal coding system. If
18541 not, produces proper number of `?'s. Update
18542 terminal_encode_buffer and terminal_encode_buf_size if necessary.
18543 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
18544
185452008-02-01 Kenichi Handa <handa@m17n.org>
18546
18547 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
18548 variables.
18549 (encode_terminal_code): Change argument. Encode multiple
18550 characters at once. Store the result of encoding in
18551 terminal_encode_buffer.
18552 (write_glyphs, insert_glyphs): Adjust for the change of
18553 encode_terminal_code.
18554 (term_init): Initialize terminal_encode_buffer and
18555 terminal_encode_buf_size.
18556
18557 * coding.c (consume_chars): If coding->src_object is nil, don't
18558 check annotation.
18559
185602008-02-01 Kenichi Handa <handa@m17n.org>
18561
18562 * character.c (char_string): Use ASCII_CHAR_P instead of
18563 SINGLE_BYTE_CHAR_P.
18564
185652008-02-01 Kenichi Handa <handa@m17n.org>
18566
18567 * xdisp.c (handle_auto_composed_prop): Check if the last
18568 characters of auto-composed region is newly composed with the
18569 following characters.
18570 (handle_composition_prop): Fix checking of point being inside
18571 composition.
18572
185732008-02-01 Kenichi Handa <handa@m17n.org>
18574
18575 * fns.c (concat): Don't change multibyteness of the result by
18576 concatenating an 8-bit character.
18577
18578 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
18579 multibyteness of the result when newelt is an 8-bit character.
18580
185812008-02-01 Dave Love <fx@gnu.org>
18582
18583 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
18584 EMACS_INT.
18585
18586 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
18587
18588 * xfaces.c (face_numeric_value): Declare dim size_t.
18589 (Finternal_lisp_face_equal_p): Remove unused f.
18590
18591 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
18592 (MATRIX_ROW): Remove unused vars.
18593 (draw_glyphs, x_insert_glyphs, fast_find_position)
18594 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
18595 byte/char counts.
18596
18597 * regex.c (regex_compile): Remove unused var.
18598
18599 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
18600
18601 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
18602 (Faccessible_keymaps, where_is_internal): Remove unused vars.
18603
18604 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
18605
18606 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
18607
18608 * fileio.c (Fwrite_region): Remove unused var.
18609
18610 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
18611 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
18612
18613 * composite.c (Fremove_list_of_text_properties): Declare.
18614
18615 * coding.c (inhibit_pre_post_conversion): Remove (unused).
18616 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
18617 (coding_inherit_eol_type): Remove unused attrs.
18618 (detect_coding): Cast arg of detect_eol.
18619
18620 * charset.c (syms_of_charset): Remove unused var p.
18621 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
18622 byte/char counts.
18623
18624 * casetab.c (set_case_table): Remove unused var.
18625
18626 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
18627 unused vars.
18628
186292008-02-01 Dave Love <fx@gnu.org>
18630
18631 * xterm.c (x_bitmap_mask): Declare.
18632
186332008-02-01 Dave Love <fx@gnu.org>
18634
18635 * xterm.c (x_term_init): Fix type error.
18636
18637 * lisp.h: Add Funibyte_char_to_multibyte.
18638
18639 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
18640 (Fset_coding_system_priority): Doc fix.
18641
18642 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
18643
18644 * indent.c (check_composition): Make start and end EMACS_INT.
18645
18646 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
18647
18648 * xdisp.c (handle_composition_prop, check_point_in_composition):
18649 Make buffer positions EMACS_INT.
18650
18651 * composite.c (find_composition, run_composition_function)
18652 (update_compositions, Ffind_composition_internal): Make buffer
18653 positions EMACS_INT.
18654
18655 * composite.h (find_composition, update_compositions): Make
18656 position args EMACS_INT.
18657
18658 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
18659
18660 * intervals.c (get_property_and_range):
18661 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
18662
18663 * unexalpha.c: Don't include varargs.h.
18664
186652008-02-01 Dave Love <fx@gnu.org>
18666
18667 * coding.h (ENCODE_UTF_8): New.
18668
18669 * Makefile.in (gtkutil.o): Depend on coding.h.
18670
18671 * coding.c (Fset_coding_system_priority): Doc fix.
18672
186732008-02-01 Kenichi Handa <handa@m17n.org>
18674
18675 * fileio.c (Finsert_file_contents): Call setup_coding_system in
18676 the case of auto saving.
18677
186782008-02-01 Andreas Schwab <schwab@suse.de>
18679
18680 * chartab.c (map_char_table, map_char_table_for_charset): Protect
18681 `range' from GC.
18682
186832008-02-01 Kenichi Handa <handa@m17n.org>
18684
18685 * coding.c (decode_coding_sjis): Check bytes more rigidly.
18686
186872008-02-01 Kenichi Handa <handa@m17n.org>
18688
18689 * fileio.c (choose_write_coding_system): Return a decided coding system.
18690 (Fwrite_region): Set Vlast_coding_system_used to the return value
18691 of choose_write_coding_system.
18692
186932008-02-01 Kenichi Handa <handa@m17n.org>
18694
18695 * charset.c (Fset_charset_priority): Pay attention to duplicated
18696 arguments.
18697
18698 * coding.c (QCcategory): New variable.
18699 (syms_of_coding): Defsym it. Set all elements of
18700 Vcoding_category_table and their symbol values.
18701 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
18702 coding-category-XXX, and coding-category-list.
18703 (Fdefine_coding_system_internal): Add category in the plist.
18704
187052008-02-01 Kenichi Handa <handa@m17n.org>
18706
18707 * callproc.c (Fcall_process): Handle carryover correctly.
18708
18709 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
18710 (raw_text_coding_system): Check NILP (coding_system).
18711 (coding_inherit_eol_type): Check NILP (coding_system) and
18712 NILP (parent).
18713 (consume_chars): Fix for the case of raw-text.
18714
18715 * process.c (read_process_output): Handle carryover correctly.
18716
187172008-02-01 Dave Love <fx@gnu.org>
18718
18719 * regex.c (re_search_2): Fix last change.
18720
187212008-02-01 Kenichi Handa <handa@m17n.org>
18722
18723 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
18724 target_multibyte. Even in a unibyte case, return a converted
18725 multibyte char.
18726 (GET_CHAR_AFTER): New macro.
18727 (PATFETCH): Translate via multibyte char.
18728 (HANDLE_UNIBYTE_RANGE): Delete this macro.
18729 (SETUP_MULTIBYTE_RANGE): New macro.
18730 (regex_compile): Setup compiled code so that its multibyteness
18731 matches that of a target. Fix the handling of "[X-YZ]" using
18732 SETUP_MULTIBYTE_RANGE.
18733 (analyse_first) <charset>: For filling fastmap for all multibyte
18734 characters, don't check by BASE_LEADING_CODE_P.
18735 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
18736 the same as RE_MULTIBYTE_P (bufp) now.
18737 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
18738 (TARGET_CHAR_AND_LENGTH): Delete this macro.
18739 (TRANSLATE_VIA_MULTIBYTE): New macro.
18740 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
18741 It is the same as RE_MULTIBYTE_P (bufp) now.
18742 <exactn>: Translate via multibyte.
18743 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
18744 translate it.
18745 <charset, charset_not>: Fetch a character by
18746 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
18747 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
18748 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
18749 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
18750 by GET_CHAR_AFTER.
18751 (bcmp_translate): Likewise.
18752
18753 * search.c (compile_pattern): Check the member target_multibyte,
18754 not the member multibyte of buf.
18755
18756 * lread.c (read1): While reading a string, set force_singlebyte
18757 and force_multibyte correctly.
18758
18759 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
18760 up of unibyte_to_multibyte_table.
18761
187622008-02-01 Kenichi Handa <handa@m17n.org>
18763
18764 * coding.c (setup_coding_system): If coding has
18765 post-read-conversion or pre-write-conversion, set
18766 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
18767 respectively.
18768 (decode_coding_gap): Run post-read-conversion if any.
18769
18770 * fileio.c (Finsert_file_contents): Even if we read into a
18771 unibyte buffer, check if we must decode the result or not.
18772
187732008-02-01 Kenichi Handa <handa@m17n.org>
18774
18775 * coding.c (make_conversion_work_buffer): Change the work buffer
18776 name to the same one as that of Emacs 21.
18777
187782008-02-01 Kenichi Handa <handa@m17n.org>
18779
18780 * coding.h (make_conversion_work_buffer): Adjust prototype.
18781 (code_conversion_restore): Don't extern it.
18782
18783 * coding.c (detected_mask): Delete unused variable.
18784 (decode_coding_iso_2022): Pay attention to the byte sequence of
18785 CTEXT extended segment, and retain those bytes as is.
18786 (decode_coding_ccl): Delete unused variable `valids'.
18787 (setup_coding_system): Delete unused variable `category'.
18788 (consume_chars): Delete unused variable `category'. Make it work
18789 for non-multibyte case.
18790 (make_conversion_work_buffer): Change argument.
18791 (saved_coding): Delete unused variable.
18792 (code_conversion_restore): Don't check saved_coding->destination.
18793 (code_conversion_save): New function.
18794 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
18795 instead of record_unwind_protect.
18796 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
18797 (detect_coding_system): Delete unused variable `mask'.
18798 (Fdefine_coding_system_internal): Delete unused variable id.
18799
18800 * fileio.c (kill_workbuf_unwind): New function.
18801 (Finsert_file_contents): On replacing, call
18802 make_conversion_work_buffer with correct args, and call
18803 record_unwind_protect with the first arg kill_workbuf_unwind.
18804
18805 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
18806
188072008-02-01 Kenichi Handa <handa@m17n.org>
18808
18809 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
18810 (fontset_add): Fix for the case that TO is less than TO1.
18811 (Ffontset_info): Don't use fallback fontset on checking the
18812 default fontset.
18813 (dump_fontset): New function for debugging.
18814
18815 * coding.c (Fdefine_coding_system_internal): Fix for the case that
18816 coding_type is Qcharset.
18817
188182008-02-01 Kenichi Handa <handa@m17n.org>
18819
18820 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
18821 (map_char_table): Don't inherit the value from the parent on
18822 initializing VAL. Adjust for the above change.
18823
188242008-02-01 Kenichi Handa <handa@m17n.org>
18825
18826 * coding.c (Qsignature, Qendian): Delete these variables.
18827 (syms_of_coding): Don't initialize them.
18828 (CATEGORY_MASK_UTF_16_AUTO): New macro.
18829 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
18830 detect_info->found.
18831 (decode_coding_utf_16): Don't detect BOM here.
18832 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
18833 is NOT utf_16_without_bom.
18834 (setup_coding_system): For a coding system of type utf-16, check
18835 if the attribute :endian is Qbig or not (not nil or not), and set
18836 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
18837 (detect_coding): If coding type is utf-16 and BOM detection is
18838 required, detect it.
18839 (Fdefine_coding_system_internal): For a coding system of type
18840 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
18841
188422008-02-01 Kenichi Handa <handa@m17n.org>
18843
18844 * coding.c (coding_set_source): Fix for the case that the current
18845 buffer is different from coding->src_object.
18846 (decode_coding_object): Don't use the conversion work buffer if
18847 DST_OBJECT is a buffer.
18848
188492008-02-01 Dave Love <fx@gnu.org>
18850
18851 * lread.c (read_emacs_mule_char) [len==2]: Index
18852 emacs_mule_charset correctly.
18853
188542008-02-01 Dave Love <fx@gnu.org>
18855
18856 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
18857 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
18858 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
18859 treated specially.)
18860 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
18861 (detected_mask): Remove Big5 bits.
18862
188632008-02-01 Kenichi Handa <handa@m17n.org>
18864
18865 The following changes are to make the font rescaling facility
18866 compatible with Emacs 21.
18867
18868 * xfaces.c (Vface_font_rescale_alist): Rename from
18869 Vface_resizing_fonts.
18870 (struct font_name): Rename member resizing_ratio to rescale_ratio.
18871 (font_rescale_ratio): Rename from font_resizing_ratio.
18872 (split_font_name): Set font->rescale_ratio.
18873 (better_font_p): Pay attention to font->rescale_ratio.
18874 (build_scalable_font_name): Likewise. Change RESX, and RESY
18875 fields.
18876 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
18877
188782008-02-01 Kenichi Handa <handa@m17n.org>
18879
18880 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
18881 (Qutf_16_le): Remove these variables.
18882 (syms_of_coding): Don't DEFSYM them.
18883 (decode_coding_utf_16): Fix handling of BOM.
18884 (encode_coding_utf_16): Fix handling of BOM.
18885
188862008-02-01 Kenichi Handa <handa@m17n.org>
18887
18888 * fileio.c (Finsert_file_contents): On replacing, before decoding
18889 the file into the work buffer, set point of the work buffer to the end.
18890
188912008-02-01 Dave Love <fx@gnu.org>
18892
18893 * coding.c (Fcheck_coding_systems_region): Fix type errors.
18894
188952008-02-01 Dave Love <fx@gnu.org>
18896
18897 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
18898 and fix C types.
18899
189002008-02-01 Kenichi Handa <handa@m17n.org>
18901
18902 * xdisp.c (SKIP_GLYPHS): New macro.
18903 (set_cursor_from_row): Pay attention to string display properties.
18904
18905 * category.c (copy_category_entry): Fix for the case that RANGE
18906 is an integer.
18907
18908 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
18909
18910 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
18911
189122008-02-01 Kenichi Handa <handa@m17n.org>
18913
18914 * charset.c (Fcharset_id_internal): New function.
18915 (syms_of_charset): Defsubr it.
18916
18917 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
18918 with the last arg charset_list acquired from coding.
18919 (Fdefine_coding_system_internal): For ccl-based coding system, fix
18920 the attribute coding_attr_ccl_valids.
18921
18922 * coding.h (enum define_coding_ccl_arg_index): Set the first
18923 member coding_arg_ccl_decoder to coding_arg_max.
18924
18925 * ccl.h (ccl_driver): Adjust prototype.
18926
18927 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
18928 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 18929 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
18930 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
18931 last arg Qnil.
18932
189332008-02-01 Kenichi Handa <handa@m17n.org>
18934
18935 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
18936 call encode_char.
18937
18938 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
18939
189402008-02-01 Dave Love <fx@gnu.org>
18941
18942 * composite.c (syms_of_composite): Make composition_hash_table weak.
18943
189442008-02-01 Kenichi Handa <handa@m17n.org>
18945
18946 * dispextern.h (check_face_attributes, generate_ascii_font_name)
18947 (font_name_registry): Don't extern them.
18948 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
18949
18950 * fontset.h (Qfontset): Don't extern it.
18951 (new_fontset_from_font_name): Extern it.
18952
18953 * fontset.c: Give 8 extra slots to fontset objects.
18954 (Qfontset_info): New variable.
18955 (syms_of_fontset): Defsym it.
18956 (FONTSET_FALLBACK): New macro.
18957 (fontset_face): Try also the default fontset.
18958 (make_fontset): Realize a fallback fontset from the default fontset.
18959 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
18960 using split_font_name_into_vector and build_font_name_from_vector.
18961 (Fset_fontset_font): Access the elements of font_spec by enum
18962 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
18963 name by using split_font_name_into_vector.
18964 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
18965 generate a proper font name from the fontset name. Update
18966 Vfontset_alias_alist.
18967 (n_auto_fontsets): New variable.
18968 (new_fontset_from_font_name): New function.
18969 (Ffont_info): Store the information about fonts generated from the
18970 default fontset in the first extra slot of the returned char-table.
18971
18972 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
18973 (font_name_registry): Delete function.
18974 (split_font_name_into_vector): New function.
18975 (build_font_name_from_vector): New function.
18976 (font_list): The argument REGISTRY is now a list of registry names.
18977 (choose_face_font): If we are choosing an ASCII font, and ATTRS
18978 specifies an explicit font name, return the name as is. Make a
18979 list of registy names.
18980
18981 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
18982 of x_new_fontset.
18983 (Fx_create_frame): Don't call x_new_fontset here. Just use
18984 x_list_fonts to check the existence of fonts.
18985
18986 * xterm.h (x_new_fontset): Adjust prototype.
18987
18988 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
18989 string. Use new_fontset_from_font_name to create a fontset from a
18990 font name.
18991
189922008-02-01 Kenichi Handa <handa@m17n.org>
18993
18994 * syntax.c (Vfind_word_boundary_function_table): New name for
18995 Vnext_word_boundary_function_table.
18996 (find-word-boundary-function-table): New name for
18997 next-word-boundary-function-table.
18998
189992008-02-01 Dave Love <fx@gnu.org>
19000
19001 * Makefile.in: Fix some dependencies.
19002
19003 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
19004 set it to nil before returning.
19005
19006 * composite.c (update_compositions): Fix type error.
19007
19008 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
19009
190102008-02-01 Kenichi Handa <handa@m17n.org>
19011
19012 * xterm.c (x_new_font): Optimize for the case that the font is
19013 already set for the frame.
19014
190152008-02-01 Kenichi Handa <handa@m17n.org>
19016
19017 * chartab.c (char_table_ascii): Check if the char table contents
19018 is sub-char-table or not.
19019 (char_table_set, char_table_set_range): Fix argument to
19020 char_table_ascii.
19021
19022 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
19023 (detect_coding_utf_8, detect_coding_utf_16)
19024 (detect_coding_emacs_mule, detect_coding_iso_2022)
19025 (detect_coding_sjis, detect_coding_big5)
19026 (detect_coding_ccl, detect_coding_charset): Change argument MASK
19027 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
19028 sequence is valid in this coding system. Change callers.
19029 (MAX_ANNOTATION_LENGTH): New macro.
19030 (ADD_ANNOTATION_DATA): New macro.
19031 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
19032 ADD_ANNOTATION_DATA. Change the format of annotation data.
19033 (ADD_CHARSET_DATA): New macro.
19034 (emacs_mule_char): New argument ID. Change callers.
19035 (decode_coding_emacs_mule, decode_coding_iso_2022)
19036 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
19037 Produce charset annotation data in coding->charbuf.
19038 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
19039 to charset annotation data in coding->charbuf.
19040 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
19041 coding->common_flags if the coding system is iso-2022 based and
19042 uses designation.
19043 (produce_composition): Adjust for the new annotation data format.
19044 (produce_charset): New function.
19045 (produce_annotation): Handle charset annotation.
19046 (handle_composition_annotation, handle_charset_annotation): New
19047 functions.
19048 (consume_chars): Handle charset annotation. Utilize the above two
19049 functions.
19050 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
19051 buffer, get the deleted text as a string and set
19052 coding->src_object to that string.
19053 (detect_coding, detect_coding_system): Use the new struct
19054 coding_detection_info.
19055
19056 * coding.h (struct coding_detection_info): New structure.
19057 (struct coding_system): Adjust prototype of the member `detector'.
19058 (CODING_ANNOTATE_CHARSET_MASK): New macro.
19059
190602008-02-01 Kenichi Handa <handa@m17n.org>
19061
19062 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
19063
190642008-02-01 Dave Love <fx@gnu.org>
19065
19066 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
19067 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
19068 to new local and nullify apropos_accumulate before returning.
19069 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
19070
190712008-02-01 Kenichi Handa <handa@m17n.org>
19072
19073 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
19074 correctly.
e3eea1fc 19075
aac0c6e3
MR
190762008-02-01 Dave Love <fx@gnu.org>
19077
19078 * fns.c (Flanginfo): Call synchronize_system_time_locale.
19079
190802008-02-01 Kenichi Handa <handa@m17n.org>
19081
19082 The following changes are to make character composition happen
19083 automatically on displaying.
19084
19085 * Makefile.in (lisp, shortlisp): Add composite.elc.
19086
19087 * composite.h (Qauto_composed, Vauto_composition_function)
19088 (Qauto_composition_function): Extern them.
19089
19090 * composite.c (Vcomposition_function_table)
19091 (Qcomposition_function_table): Delete variables.
19092 (Qauto_composed, Vauto_composition_function)
19093 (Qauto_composition_function): New variables.
19094 (run_composition_function): Don't call
19095 compose-chars-after-function.
19096 (update_compositions): Clear `auto-composed' text property.
19097 (compose_chars_in_text): Delete this function.
19098 (syms_of_composite): Staticpro Qauto_composed and
19099 Qauto_composition_function. Declare Vauto_composition_function as
19100 a Lisp variable.
19101
19102 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
19103
19104 * xdisp.c (it_props): Add an entry for Qauto_composed.
19105 (handle_auto_composed_prop): New function.
19106
19107 * xselect.c (selection_data_to_lisp_data): Don't call
19108 compose_chars_in_text.
19109
191102008-02-01 Dave Love <fx@gnu.org>
19111
19112 * keyboard.c (read_char): Modify checking around use of
19113 Vkeyboard_translate_table.
19114
19115 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
19116 and fix C types.
19117
191182008-02-01 Kenichi Handa <handa@m17n.org>
19119
19120 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
19121 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19122 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
19123 the case that the last byte is '\r' correctly.
19124 (decode_coding): Flush out the unprocessed data correctly.
19125 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
19126
191272008-02-01 Dave Love <fx@gnu.org>
19128
19129 * xterm.c (XTread_socket): Fix changes for defined keysyms.
19130 Add XK_ISO... case.
19131 (xaw_scroll_callback): Revert last change.
19132
191332008-02-01 Kenichi Handa <handa@m17n.org>
19134
19135 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
19136
191372008-02-01 Kenichi Handa <handa@m17n.org>
19138
19139 * xfaces.c (Vface_resizing_fonts): New variable.
19140 (struct font_name): New member `resizing_ratio'.
19141 (font_resizing_ratio): New function.
19142 (split_font_name): Set font->resizing_ratio.
19143 (better_font_p): Pay attention to font->resizing_ratio.
19144 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
19145 RESX, and RESY fields.
19146 (try_alternative_families): Try scalable fonts if
19147 Vscalable_fonts_allowed is not Qt.
19148 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
19149
191502008-02-01 Dave Love <fx@gnu.org>
19151
19152 * xterm.c (xaw_scroll_callback): Cast correctly.
19153
191542008-02-01 Dave Love <fx@gnu.org>
19155
19156 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
19157 (lispy_kana_keys): Comment out.
19158 (make_lispy_event) [XK_kana_A]: Comment out.
19159
19160 * xterm.c (xaw_scroll_callback): Cast call_data.
19161 (XTread_socket): Deal with ASCII keysyms.
19162 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
19163
191642008-02-01 Dave Love <fx@gnu.org>
19165
19166 * xterm.c (Vx_keysym_table): New.
19167 (syms_of_xterm): Initialize it.
19168 (XTread_socket): Use it.
19169 From head: Eliminate incorrect optimization that tried to avoid
19170 decoding the output of X*LookupString.
19171 (x_get_font_repertory): Delete charset declaration.
19172
191732008-02-01 Kenichi Handa <handa@m17n.org>
19174
19175 * coding.c (detect_coding_charset): If only ASCII bytes are found,
19176 return 0.
19177 (Fdefine_coding_system_internal): Setup
19178 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
19179
191802008-02-01 Dave Love <fx@gnu.org>
19181
19182 * coding.c (Fcheck_coding_system): Doc fix.
19183
19184 * editfns.c (Finsert_byte): Return a proper value.
19185
191862008-02-01 Kenichi Handa <handa@m17n.org>
19187
19188 * coding.c (decode_coding): Fix args to translate_chars. Pay
19189 attention to Vstandard_translation_table_for_decode.
19190 (encode_coding): Fix args to translate_chars. Pay attention to
19191 Vstandard_translation_table_for_encode.
19192
19193 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
19194 SINGLE_BYTE_CHAR_P.
19195
19196 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
19197 not by SINGLE_BYTE_CHAR_P.
19198
19199 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
19200 SINGLE_BYTE_CHAR_P.
19201
19202 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
19203 SINGLE_BYTE_CHAR_P.
19204
19205 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
19206 by SINGLE_BYTE_CHAR_P.
19207
19208 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
19209 SINGLE_BYTE_CHAR_P.
19210
192112008-02-01 Dave Love <fx@gnu.org>
19212
19213 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
19214
192152008-02-01 Dave Love <fx@gnu.org>
19216
19217 * fns.c (Flanginfo): Fix typo.
19218
19219 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
19220
192212008-02-01 Kenichi Handa <handa@m17n.org>
19222
19223 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
19224 (detect_coding_emacs_mule, detect_coding_iso_2022)
19225 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
19226 incomplete byte sequence. Don't update *mask when correctly detected.
19227 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
19228 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
19229 (detect_coding, detect_coding_system): Adjust for the changes above.
19230
192312008-02-01 Kenichi Handa <handa@m17n.org>
19232
19233 * character.c (char_string): Rename from
19234 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
19235 (string_char): Rename from string_char.
19236
19237 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
19238 if C is greater than MAX_3_BYTE_CHAR.
19239 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
19240 string_char instead of string_char_with_unification.
19241
192422008-02-01 Dave Love <fx@gnu.org>
19243
19244 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
19245
192462008-02-01 Kenichi Handa <handa@m17n.org>
19247
19248 * keymap.c (push_key_description): Pay attention to force_multibyte.
19249
19250 * regex.c (re_search_2): Fix for the case of unibyte buffer.
19251
192522008-02-01 Dave Love <fx@gnu.org>
19253
19254 * charset.c (define_charset_internal): Rename `supprementary'.
19255
19256 * Makefile.in (lisp, shortlisp): Remove latin-N.
19257
192582008-02-01 Dave Love <fx@gnu.org>
19259
19260 * xfns.c (x_window, x_window): Use use_xim.
19261
19262 * xterm.c (use_xim): Initialize.
19263 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
19264 (x_term_init): Maybe set use_xim.
19265
19266 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
19267
192682008-02-01 Kenichi Handa <handa@m17n.org>
19269
19270 * search.c (search_buffer): Fix case-fold-search of multibyte
19271 characters.
19272 (boyer_moore): Rename the last argument to char_high_bits.
19273
192742008-02-01 Kenichi Handa <handa@m17n.org>
19275
19276 * xdisp.c (display_string): Fix for the case of zero width glyph.
19277
19278 * xfns.c (x_set_font): Change the error message of the case that
19279 x_new_fontset returns Qt.
19280
19281 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
19282 (Finternal_set_lisp_face_attribute): Use signal_error for the
19283 error of invalid fontset.
19284
19285 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
19286 fontset, return Qt.
19287
192882008-02-01 Dave Love <fx@gnu.org>
19289
19290 * unexelf.c (unexec): Make .got handling not SGI-specific.
19291
19292 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
19293
19294 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
19295
19296 * keyboard.c (read_key_sequence): Fix type error.
19297
19298 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
19299 type error.
19300
19301 * fontset.c (fontset_add): Return Lisp_Object.
19302
193032008-02-01 Dave Love <fx@gnu.org>
19304
19305 * charset.h (charset_ordered_list_tick): Declare extern.
19306
193072008-02-01 Kenichi Handa <handa@m17n.org>
19308
19309 The following changes (and some of 2008-02-01 changes of mine) are
19310 for handling syntax, category, and case conversion for unibyte
19311 characters by converting them to multibyte on the fly. With these
19312 changes, we don't have to setup syntax and case tables for unibyte
19313 characters in each language environment.
19314
19315 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
19316 multibyte if necessary.
19317
19318 * bytecode.c (Fbyte_code): Likewise.
19319
19320 * character.h (LEADING_CODE_LATIN_1_MIN)
19321 (LEADING_CODE_LATIN_1_MAX): New macros.
19322 (unibyte_to_multibyte_table): Extern it.
19323 (unibyte_char_to_multibyte): New macro.
19324 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
19325 (CHAR_LEADING_CODE): New macro.
19326 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
19327
19328 * character.c (unibyte_to_multibyte_table): New variable.
19329 (unibyte_char_to_multibyte): Move to character.h and define as macro.
19330 (multibyte_char_to_unibyte): If C is an eight-bit character,
19331 convert it to the corresponding byte value.
19332
19333 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
19334 not 1, signals an error. Update the elements of
19335 unibyte_to_multibyte_table.
19336 (init_charset_once): Initialize unibyte_to_multibyte_table.
19337 (syms_of_charset): Define the charset `iso-8859-1'.
19338
19339 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
19340 as is without converting it to unibyte. In a unibyte buffer,
19341 convert C to multibyte before checking the syntax.
19342
19343 * lisp.h (unibyte_char_to_multibyte): Delete extern.
19344
19345 * minibuf.c (Fminibuffer_complete_word): Use the macro
19346 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
19347
19348 * regex.h (struct re_pattern_buffer): New member target_multibyte.
19349
19350 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
19351 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
19352 that is zero, convert an eight-bit char to multibyte.
19353 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
19354 non-emacs case.
19355 (PATFETCH): Convert an eight-bit char to multibyte.
19356 (HANDLE_UNIBYTE_RANGE): New macro.
19357 (regex_compile): Setup the compiled pattern for multibyte chars
19358 even if the given regex string is unibyte. Use PATFETCH_RAW
19359 instead of PATFETCH in many places. To handle `charset'
19360 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
19361 only for ASCII chars.
19362 (analyse_first) <exactn>: Simplify because the compiled pattern
19363 is multibyte.
19364 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
19365 <charset>: Use CHAR_LEADING_CODE to get leading codes.
19366 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
19367 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
19368 multibyte always 1.
19369 (re_search_2): In emacs, set the locale variable multibyte to 1,
19370 otherwise to 0. New local variable target_multibyte. Check it
19371 to decide the multibyteness of STR1 and STR2. If
19372 target_multibyte is zero, convert unibyte chars to multibyte
19373 before translating and checking fastmap.
19374 (TARGET_CHAR_AND_LENGTH): New macro.
19375 (re_match_2_internal): In emacs, set the locale variable multibyte
19376 to 1, otherwise to 0. New local variable target_multibyte. Check
19377 it to decide the multibyteness of STR1 and STR2. Use
19378 TARGET_CHAR_AND_LENGTH to fetch a character from D.
19379 <charset, charset_not>: If multibyte is nonzero, check fastmap
19380 only for ASCII chars. Call bcmp_translate with
19381 target_multibyte, not with multibyte.
19382 <begline>: Declare the local variable C as `unsigned'.
19383 (bcmp_translate): Change the last arg name to target_multibyte.
19384
19385 * search.c (compile_pattern_1): Don't adjust the multibyteness of
19386 the regexp pattern and the matching target. Set cp->buf.multibyte
19387 to the multibyteness of the regexp pattern. Set
19388 cp->but.target_multibyte to the multibyteness of the matching target.
19389 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
19390 FETCH_STRING_CHAR_ADVANCE.
19391 (Freplace_match): Convert unibyte chars to multibyte.
19392
19393 * syntax.c (char_quoted, back_comment, scan_words)
19394 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
19395 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
19396 unibyte chars to multibyte.
19397 (skip_chars): Delete the arg syntaxp, and move the code for
19398 handling syntaxes to skip_syntaxes. Change callers.
19399 Fix the case that the multibyteness of STRING and the current
19400 buffer doesn't match.
19401 (skip_syntaxes): New function.
19402 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
19403 SINGLE_BYTE_CHAR_P.
19404
194052008-02-01 Kenichi Handa <handa@m17n.org>
19406
19407 * xfaces.c (QCfontset): New variable.
19408 (LFACE_FONTSET): New macro.
19409 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
19410 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
19411 (Finternal_set_lisp_face_attribute)
19412 (Finternal_get_lisp_face_attribute): Handle QCfontset.
19413 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
19414 check also LFACE_FONTSET_INDEX.
19415 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
19416 attrs[LFACE_FONT_INDEX].
19417 (syms_of_xfaces): Intern and staticpro QCfontset.
19418
19419 * dispextern.h (enum lface_attribute_index): New member
19420 LFACE_FONTSET_INDEX.
19421
19422 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
19423
194242008-02-01 Kenichi Handa <handa@m17n.org>
19425
19426 * coding.c (coding_set_destination): Fix coding->destination for
19427 the case converting a region.
19428 (encode_coding_utf_8): Encode eight-bit chars as single byte.
19429 (encode_coding_object): Fix coding->dst_pos and
19430 coding->dst_pos_byte for the case converting a region.
19431
19432 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
19433
19434 * character.h (BYTE8_STRING): New macro.
19435
19436 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
19437
194382008-02-01 Kenichi Handa <handa@m17n.org>
19439
19440 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
19441 characters by octal form.
19442
19443 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
19444
19445 * buffer.h (_fetch_multibyte_char_len): Delete extern.
19446 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
19447 _fetch_multibyte_char_len.
19448 (FETCH_CHAR_AS_MULTIBYTE): New macro.
19449
19450 * casetab.c (set_canon, set_identity, shuffle): Simplify.
19451
19452 * casefiddle.c (casify_object): Simplify. Handle the case that
19453 the case conversion change the byte length.
19454 (casify_region): Likewise.
19455
19456 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
19457
19458 * character.c (_fetch_multibyte_char_len): Delete this variable.
19459 (syms_of_character): Setup Vprintable_chars.
19460
19461 * editfns.c (Fchar_equal): Fix for the unibyte case.
19462 (Finsert_byte): New function.
19463 (syms_of_editfns): Defsubr it.
19464
19465 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
19466 of direct code 0x3ffff.
19467
19468 * search.c (Freplace_match): Fix for the unibyte case.
19469
194702008-02-01 Kenichi Handa <handa@m17n.org>
19471
19472 * lread.c (safe_to_load_p): Fix the logic.
19473
19474 * syntax.c (scan_words): Don't treat characters belonging to
19475 different scripts as constituting a word.
19476
19477 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19478
19479 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
19480
19481 * emacs.c (main): In the case of --unibyte, instead of aborting on
19482 finding non-empty buffer, make it unibyte.
19483
194842008-02-01 Kenichi Handa <handa@m17n.org>
19485
19486 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
19487 to create a fontset.
19488
194892008-02-01 Dave Love <fx@gnu.org>
19490
19491 * character.c (Funibyte_char_to_multibyte): Doc fix.
19492
19493 * xfns.c [HAVE_STDLIB_H]: Fix last change.
19494
194952008-02-01 Kenichi Handa <handa@m17n.org>
19496
19497 * fontset.c (fontset_add): Make the type `int'.
19498 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
19499
19500 * character.c (unibyte_char_to_multibyte)
19501 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
19502 charset_unibyte, not charset_primary.
19503
19504 * charset.h (charset_unibyte): Extern it instead of charset_primary.
19505
19506 * charset.c (charset_unibyte): Rename from charset_primary.
19507 (Funibyte_charset): Rename from Fprimary_charset.
19508 (Fset_unibyte_charset): Rename from Fset_primary_charset.
19509 (syms_of_charset): Adjust for the above changes.
19510
19511 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
19512 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
19513 it->multibyte_p is zero.
19514
19515 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
19516 Delete extern.
19517
195182008-02-01 Kenichi Handa <handa@m17n.org>
19519
19520 * coding.c (Fdefine_coding_system_internal): Fix category setting
19521 for a coding system of type iso-2022.
19522
195232008-02-01 Kenichi Handa <handa@m17n.org>
19524
19525 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
19526
195272008-02-01 Kenichi Handa <handa@m17n.org>
19528
19529 * syntax.c (Vnext_word_boundary_function_table): New variable.
19530 (next-word-boundary-function-table): Declare it as a Lisp variable
19531 in syms_of_syntax.
19532 (scan_words): Call functions in Vnext_word_boundary_function_table
19533 if any.
19534
19535 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
19536
19537 * fontset.c (fs_load_font): If fontp->charset is not negative,
19538 return fontp without setting its members.
19539
195402008-02-01 Dave Love <fx@gnu.org>
19541
19542 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
19543
19544 * m/sparc.h (HAVE_ALLOCA): Delete.
19545
19546 * s/irix6-5.h: Don't include strings.h.
19547 (bcopy, bzero, bcmp): Don't undef.
19548
19549 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
19550
19551 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
19552 (TIOCSIGSEND): Don't test IRIX6.
19553 (bcopy, bzero, bcmp): Define conditionally.
19554
195552008-02-01 Kenichi Handa <handa@m17n.org>
19556
19557 * buffer.c (Qas, Qmake, Qto): New variables.
19558 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
19559 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
19560
19561 * callproc.c (Fcall_process): Don't call insert_1_both directly if
19562 we are inserting a process output into a multibyte buffer.
19563
19564 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
19565 multibyte_char_to_unibyte.
19566
19567 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
19568 by the primary charset, make it eight-bit char.
19569 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
19570
19571 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
19572 (charset_8_bit__control, charset_8_bit_graphic)
19573 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
19574 (define_charset_internal): New function.
19575 (syms_of_charset): Call define_charset_internal for pre-defined
19576 charsets.
19577
19578 * charset.h (charset_8_bit): Extern it.
19579
19580 * coding.c (make_conversion_work_buffer): Adjust for the change
19581 of Fset_buffer_multibyte.
19582 (encode_coding_raw_text): Increment p0 in the loop.
19583
19584 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
19585
19586 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
19587 for the change of Fset_buffer_multibyte.
19588
19589 * fns.c (Fstring_to_multibyte): New function.
19590 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
19591
195922008-02-01 Dave Love <fx@gnu.org>
19593
19594 * xfns.c (x_put_x_image): Declare args.
19595
19596 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
19597 (try_font_list): Declare an arg.
19598
19599 * xdisp.c (message2_nolog, set_message): Declare an arg.
19600
19601 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
19602
19603 * syntax.c (scan_sexps_forward): Declare an arg.
19604
19605 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
19606 Declare an arg.
19607
19608 * lisp.h (Fnew_fontset): Declare.
19609
19610 * keymap.c (push_key_description): Call CHARACTERP correctly.
19611
19612 * fontset.c (fontset_add): Declare args. Call make_number correctly.
19613 (face_for_char): Delete unused vars.
19614 (Fset_fontset_font): Doc fix. Delete unused vars.
19615
19616 * doc.c (Fsubstitute_command_keys): Delete unused vars.
19617
19618 * composite.c (update_compositions): Declare arg.
19619
19620 * cm.c (calccost, cmgoto): Declare args.
19621
19622 * charset.c: Remove `emacs' conditional. Doc fixes.
19623 (map_char_table_for_charset): Declare.
19624
19625 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
19626
19627 * ccl.c: Remove `emacs' conditional.
19628
196292008-02-01 Kenichi Handa <handa@m17n.org>
19630
19631 The following changes are to allow specifying multiple font
19632 patterns for a character range (specified by script or charset).
19633
19634 * Makefile.in (abbrev.o): Depend on syntax.h.
19635 (xfaces.o): Depend on charset.h.
19636
19637 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
19638 SINGLE_BYTE_CHAR_P.
19639
19640 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
19641
19642 * character.h (Vchar_script_table): Extern it.
19643
19644 * character.c (Vscript_alist): Delete.
19645 (Vchar_script_table, Qchar_script_table): New variable.
19646 (syms_of_character): Declare Vchar_script_table as a lisp variable
19647 and initialize it.
19648
19649 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
19650 have property char-table-extra-slots, make no extra slot.
19651
19652 * dispextern.h (struct face): Delete member `charset'.
19653 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
19654 SINGLE_BYTE_CHAR_P.
19655 (choose_face_font, lookup_non_ascii_face, font_name_registry):
19656 Add prototypes.
19657 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
19658 (generate_ascii_font_name): Rename from generate_ascii_font.
19659
19660 * fontset.h (get_font_repertory_func): New prototype.
19661 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
19662 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
19663
19664 * fontset.c (Qprepend, Qappend): New variables.
19665 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
19666 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
19667 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
19668 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
19669 (fontset_ref_and_range, fontset_add, reorder_font_vector)
19670 (load_font_get_repertory): New functions.
19671 (fontset_set): Delete.
19672 (fontset_face): New arg FACE. Return face ID, not face.
19673 Complete re-write to handle new fontset structure. Change caller.
19674 (free_face_fontset): Use ASET istead of AREF (X) = Y.
19675 (face_for_char): Don't call lookup_face.
19676 (make_fontset_for_ascii_face): New arg FACE.
19677 (fs_load_font): New arg CHARSET_ID. Don't check
19678 Vfont_encoding_alist here.
19679 (find_font_encoding): New function.
19680 (list_fontsets): Use STRINGP, not ! NILP.
19681 (accumulate_script_ranges): New function.
19682 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
19683 re-written to handle new fontset structure.
19684 (Ffontset_font): Return a copy of element.
19685 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
19686 docstring of font-encoding-alist.
19687
19688 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
19689 (Fset_fotset_font): Fix arguments to 5.
19690
19691 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
19692
19693 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
19694 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19695 (highlight_trailing_whitespace): Adjust for the change of
19696 lookup_named_face.
19697
19698 * xfaces.c: Include charset.h.
19699 (load_face_font): Delete argument C. Change caller.
19700 (generate_ascii_font_name): Rename from generate_ascii_font.
19701 (font_name_registry): New function.
19702 (cache_face): Store ascii faces before non-ascii faces in buckets.
19703 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
19704 Lookup only ascii faces.
19705 (lookup_non_ascii_face): New function.
19706 (lookup_named_face): Delete argument C. Change caller.
19707 (lookup_derived_face): Delete argument C. Change caller.
19708 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
19709 a string, just call font_list with it.
19710 (choose_face_font): Delete arguments FACE and C. New arg
19711 FONT_SPEC. Change caller.
19712 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
19713 Change caller.
19714 (realize_non_ascii_face): New function.
19715 (realize_x_face): Call load_face_font here.
19716 (realize_tty_face): Delete argument C. Change caller.
19717 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
19718 get a face ID.
19719 (dump_realized_face): Don't print charset of FACE.
19720
19721 * xfns.c (x_set_font): Always call x_new_fontset and
19722 store_frame_parameter.
19723 (Fx_create_frame): Call x_new_fontset, not x_new_font.
19724 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
19725
19726 * xterm.h (x_get_font_repertory): Extern it.
19727
19728 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
19729 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
19730 it->multibyte_p is zero.
19731 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19732 (x_new_fontset): If FONTSETNAME doesn't match any existing
19733 fontsets, create a new one.
19734 (x_get_font_repertory): New function.
19735
197362008-02-01 Kenichi Handa <handa@m17n.org>
19737
19738 * coding.c (Ffind_coding_systems_region_internal): Detect an
19739 ASCII only string correctly.
19740
19741 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
19742 version is 0.
19743
197442008-02-01 Kenichi Handa <handa@m17n.org>
19745
19746 * lread.c: Include "coding.h".
19747 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
19748 (load_each_byte, unread_char): New variables.
19749 (readchar_backlog): Delete.
19750 (readchar): Return a character unless load_each_byte is nonzero.
19751 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
19752 cons. If unread_char is not -1, simply return it.
19753 (unreadchar): Handle the case that readcharfun is
19754 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
19755 (read_multibyte): Delete.
19756 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
19757 (read_emacs_mule_char): New functions.
19758 (Fload): Even if the file doesn't have the extension ".elc", if
19759 safe_to_load_p returns a positive version number, assume that the
19760 file contains bytecompiled code. If the version is less than 22,
19761 load the file while decoding multibyte sequences by emacs-mule.
19762 (readevalloop): Don't use readchar_backlog.
19763 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
19764 (Fread_from_string): Pay attention to the case that STREAM is a cons.
19765 (read_escape): Delete the arg BYTEREP.
19766 (read1): Set load_each_byte to 1 temporarily while handling
19767 #@NUMBER. Don't call read_multibyte.
19768 (read_vector): Call Fread with a cons. If readcharfun is
19769 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
19770 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
19771 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
19772 and Qload_force_doc_strings.
19773
197742008-02-01 Kenichi Handa <handa@m17n.org>
19775
19776 * xdisp.c (face_before_or_after_it_pos): Call
19777 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
19778
197792008-02-01 Kenichi Handa <handa@m17n.org>
19780
19781 * character.h (TRAILING_CODE_P): New macro.
19782 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
19783 (string_char_with_unification): Fix prototype.
19784 (Vscript_alist): Extern it.
19785
19786 * character.c (Vscript_alist): New variable.
19787 (string_char_with_unification, str_as_unibyte)
19788 (string_escape_byte8): Add `const' to local variables.
19789 (syms_of_character): Declare script-alist as a Lisp variable.
19790
19791 * charset.h (Vcharset_ordered_list): Extern it.
19792 (charset_ordered_list_tick): Extern it.
19793 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
19794 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
19795 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
19796 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
19797 (Funify_charset): Adjust for the change of Funify_charset.
19798
19799 * charset.c (charset_ordered_list_tick): New variable.
19800 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
19801 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
19802 deunify intead of unify a charset.
19803 (string_xstring_p): Add `const' to local variables.
19804 (find_charsets_in_text): Add `const' to arguments and local variables.
19805 (encode_char): Adjust for the change of Funify_charset. Fix
19806 detecting of invalid code.
19807 (Fset_charset_priority): Increment charset_ordered_list_tick.
19808 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
19809 and TO_CODE.
19810
19811 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
19812 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
19813 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
19814 (decode_coding_ccl, consume_chars)
19815 (Ffind_coding_systems_region_internal)
19816 (Fcheck_coding_systems_region): Add `const' to local variables.
19817
19818 * print.c (print_object): Use octal form for printing the
19819 contents of a bool vector.
19820
198212008-02-01 Dave Love <fx@gnu.org>
19822
19823 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
19824 <version == 20>: Refuse to load.
19825
198262008-02-01 Dave Love <fx@gnu.org>
19827
19828 * fns.c: Move coding.h.
19829 (Qcodeset, Qdays, Qmonths): New.
19830 (concat): Use CHARACTERP instead of INTEGERP.
19831 (Flocale_codeset): Delete.
19832 (Flanginfo): New function.
19833 (syms_of_fns): Change accordingly.
19834
19835 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
19836
198372008-02-01 Dave Love <fx@gnu.org>
19838
19839 * casetab.c (init_casetab_once, init_casetab_once): Fix
19840 CHAR_TABLE_SET call.
19841
19842 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
19843
19844 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
19845
19846 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
19847 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
19848 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
19849
19850 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
19851
19852 * coding.c (ENCODE_DESIGNATION, decode_eol)
19853 (make_conversion_work_buffer, code_conversion_restore)
19854 (Fdefine_coding_system_internal): Convert Lisp types.
19855 (code_conversion_restore): Use EQ, not ==.
19856 (Fencode_coding_string): Fix code_convert_string call.
19857
19858 * coding.h (code_convert_region): Fix prototype.
19859
19860 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
19861
19862 * fontset.c (fontset_ref, fontset_set, fs_load_font)
19863 (Ffontset_info): Convert Lisp types.
19864
19865 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
19866
19867 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
19868
19869 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
19870
19871 * chartab.c: Include "...h", not <...h> in some cases.
19872
19873 * callproc.c (Fcall_process): Remove unused variables.
19874
198752008-02-01 Dave Love <fx@gnu.org>
19876
19877 * coding.c (Fset_coding_system_priority): Allow null arg list.
19878
198792008-02-01 Dave Love <fx@gnu.org>
19880
19881 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
19882 (Fself_insert_and_exit): Use CHARACTERP.
19883
19884 * callproc.c (Fcall_process): Remove unused vars.
19885
19886 * xterm.c (XTread_socket): Add extra dead keysyms.
19887
19888 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
19889
19890 * dispextern.h: Remove prototypes for redraw_frame,
19891 redraw_garbaged_frames.
19892
19893 * cmds.c (Fself_insert_command): Use CHARACTERP.
19894
19895 * chartab.c (make_sub_char_table): Remove unused var.
19896 (Fset_char_table_default, Fmap_char_table): Doc fix.
19897
19898 * keymap.c (access_keymap): Remove generic char code.
19899 (push_key_description): Use CHARACTERP.
19900
199012008-02-01 Dave Love <fx@gnu.org>
19902
19903 * charset.c: Doc fixes.
19904 (Funify_charset): Extra checking.
19905
199062008-02-01 Dave Love <fx@gnu.org>
19907
19908 * lread.c: Remove some unused variables.
19909 (safe_to_load_p): If safe, return the magic number version byte.
19910 (Fload): Maybe use load-with-code-conversion.
19911
199122008-02-01 Kenichi Handa <handa@m17n.org>
19913
19914 * category.c (Fmodify_category_entry): Don't modify the contents
19915 of category_set for characters out of the range. Avoid
19916 unnecessary modification.
19917
19918 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
19919 Vchar_unify_table. The default value of the table is now nil.
19920
19921 * character.c (syms_of_character): Setup Vchar_width_table for
19922 eight-bit-control and raw-byte chars.
19923
19924 * charset.h (enum define_charset_arg_index): Delete
19925 charset_arg_parents and add charset_arg_subset and
19926 charset_arg_superset.
19927 (enum charset_attr_index): Delete charset_parents and add
19928 charset_subset and charset_superset.
19929 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
19930 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
19931 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
19932 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
19933 (CHARSET_SUPERSET): New macros.
19934 (charset_work): Extern it.
19935 (ENCODE_CHAR): Use charset_work.
19936 (CHAR_CHARSET_P): Adjust for the change of encoder format.
19937 (map_charset_chars): Extern it.
19938
19939 * charset.c (load_charset_map): Set the default value of encoder
19940 and deunifier char-tables to nil.
19941 (map_charset_chars): Change argument. Change callers. Use
19942 map_char_table_for_charset instead of map_char_table.
19943 (Fmap_charset_chars): New optional args from_code and to_code.
19944 (Fdefine_charset_internal): Adjust for the change of
19945 `define-charset' (:parents -> :subset or :superset).
19946 (charset_work): New variable.
19947 (encode_char, syms_of_charset): Adjust for the change of
19948 Fdefine_charset_internal.
19949 (Ffind_charset_string): Setup the vector `charsets' correctly.
19950
19951 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
19952 the previous change.
19953 (char_table_ref_and_range): Adjust for the above change.
19954 (map_sub_char_table_for_charset): New function.
19955 (map_char_table_for_charset): New function.
19956
19957 * keymap.c (describe_vector): Handle a char-table directly here.
19958 (describe_char_table): Delete.
19959
19960 * lisp.h (map_charset_chars): Delete.
19961
199622008-02-01 Dave Love <fx@gnu.org>
19963
19964 * fns.c (count_combining): Comment out (unused).
19965 (Flocale_codeset): New.
19966 (syms_of_fns): Defsubr it.
19967
19968 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
19969 (size_t): Remove.
19970
199712008-02-01 Dave Love <fx@gnu.org>
19972
19973 * Makefile.in (chartab.o): Depend on charset.h.
19974
199752008-02-01 Kenichi Handa <handa@m17n.org>
19976
19977 * character.c (syms_of_character): Set the default value of
19978 Vprintable_chars to Qnil.
19979
199802008-02-01 Dave Love <fx@gnu.org>
19981
19982 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
19983
199842008-02-01 Kenichi Handa <handa@m17n.org>
19985
19986 * charset.c (load_charset_map): Handle the case that from < to
19987 correctly.
19988
19989 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
19990 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
19991 Pay attention to raw-8-bit chars.
19992
199932008-02-01 Kenichi Handa <handa@m17n.org>
19994
19995 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
19996 It is not bytecompiled now.
19997
19998 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
19999 (charset_jisx0208): New variables.
20000 (Fdefine_charset_internal): Setup them if appropriate.
20001 (init_charset_once): Initialize them to -1.
20002
20003 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
20004 (charset_jisx0208): Extern them.
20005
20006 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
20007 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
20008 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
20009 (setup_iso_safe_charsets): Fix arguments to Fassq.
20010 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
20011 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
20012 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
20013 (encode_coding_iso_2022): Change the 1st arg to
20014 ENCODE_ISO_CHARACTER to a variable.
20015
200162008-02-01 Kenichi Handa <handa@m17n.org>
20017
20018 * charset.h (enum define_charset_arg_index): New enums
20019 charset_arg_min_code and charset_arg_max_code.
20020 (struct charset): New member char_index_offset.
20021
20022 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
20023 Take charset->char_index_offset into account.
20024 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
20025 args[charset_arg_max_code]. Setup charset.char_index_offset.
20026 (syms_of_charset): Fix args to Fdefine_charset_internal.
20027
200282008-02-01 Dave Love <fx@gnu.org>
20029
20030 * coding.c (decode_coding_utf_8): Reject overlong sequences.
20031
200322008-02-01 Dave Love <fx@gnu.org>
20033
20034 * coding.c: Doc fixes.
20035 (Fcoding_system_aliases): Fix return value.
20036 (Qmac): Remove (duplicated) definition.
20037
200382008-02-01 Dave Love <fx@gnu.org>
20039
362654a6
JB
20040 * charset.c (Fcharset_priority_list, Fset_charset_priority):
20041 New functions.
aac0c6e3
MR
20042
20043 * character.c (Fstring): Doc fix.
20044
20045 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
20046
362654a6 20047 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
20048 (font-encoding-alist): Doc fix.
20049
200502008-02-01 Dave Love <fx@gnu.org>
20051
20052 * term.c (costs_set): Declare static, non-initialized for pcc.
20053 (encode_terminal_code): Remove unused var.
20054
20055 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
20056 for K&R.
20057
20058 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
20059
20060 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
20061 (suffixes): Move out of make_subsidiaries for K&R.
20062
20063 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
20064
20065 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
20066
200672008-02-01 Dave Love <fx@gnu.org>
20068
20069 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
20070
20071 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
20072
200732008-02-01 Yong Lu <lyongu@asia-infonet.com>
20074
20075 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
20076
20077 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
20078
200792008-02-01 Kenichi Handa <handa@m17n.org>
20080
20081 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
20082 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
20083
200842008-02-01 Kenichi Handa <handa@m17n.org>
20085
20086 * coding.c (decode_coding_charset): Adjust for the change of
20087 Fdefine_coding_system_internal.
20088 (Fdefine_coding_system_internal): For a coding system of
20089 `charset' type, store a list of charset IDs in
20090 `charset_attr_charset_valids' element of coding attributes.
20091
200922008-02-01 Kenichi Handa <handa@m17n.org>
20093
20094 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
20095 (emacs_mule_char): New arg src. Delete arg `composition'. Change
20096 caller. Handle 2-byte and 3-byte charsets correctly.
20097 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
20098 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
20099 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
20100 (DECODE_EMACS_MULE_21_COMPOSITION): Call
20101 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
20102 sequence.
20103 (decode_coding_emacs_mule): Handle composition correctly. Rewind
20104 `src' and `consumed_chars' correctly before calling emacs_mule_char.
20105 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
20106 and alt&rule composition.
20107 (decode_coding_iso_2022): Handle composition correctly.
20108 (init_coding_once): Setup emacs_mule_bytes for private charsets.
20109
20110 * charset.c (Fdefine_charset_internal): Fix bug for the case of
20111 re-defining a charset. If the charset has :emacs-mule-id, setup
20112 emacs_mule_bytes.
20113 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
20114
201152008-02-01 Kenichi Handa <handa@m17n.org>
20116
20117 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
20118 (encode_coding_big5, encode_coding_charset): If coding requires safe
20119 encoding, produce a character specified by
20120 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
20121
201222008-02-01 Dave Love <fx@gnu.org>
20123
20124 * xterm.c (XSetIMValues): Declare.
20125
20126 * process.c: Conditionally include sys/wait.h, pty.h.
20127
20128 * print.c (print_object): Fix print format for 64-bit systems.
20129
20130 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
20131
20132 * buffer.c (emacs_strerror): Declare.
20133
20134 * fontset.c (Fclear_face_cache): Declare.
20135 (accumulate_font_info): Comment-out (unused).
20136 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
20137 variables.
20138
20139 * character.h (string_escape_byte8): Declare.
20140
20141 * charset.c (load_charset_map, load_charset_map_from_file): Remove
20142 unused vars.
20143 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
20144 (Fmap_charset_chars): Doc fix.
20145
20146 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
20147 (Fset_coding_system_priority, Fset_coding_system_priority)
20148 (Fdefine_coding_system_internal): Doc fix.
20149
201502008-02-01 Dave Love <fx@gnu.org>
20151
20152 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
20153
201542008-02-01 Kenichi Handa <handa@m17n.org>
20155
20156 * character.c (string_escape_byte8): Make multibyte string with
20157 correct size.
20158
20159 * charset.c (Fmake_char): Delete unnecessary code.
20160
201612008-02-01 Kenichi Handa <handa@m17n.org>
20162
20163 * xfns.c (x_encode_text): Allocate coding.destination here, and
20164 call encode_coding_object with dst_object Qnil.
20165
20166 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
20167 multibyte form correctly.
20168
20169 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
20170 against Vfont_encoding_alist.
20171
20172 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
20173 handling of charset list.
20174 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
20175 (decode_coding_object): Move point to coding->dst_pos before
20176 calling post-read-conversion function.
20177 (encode_coding_object): Give correct arguments to
20178 pre-write-conversion. Ignore the return value of
20179 pre-write-conversion function. Pay attention to the case that
20180 pre-write-conversion changes the current buffer. If dst_object is
20181 Qt, even if coding->src_bytes is zero, allocate at least one byte
20182 to coding->destination.
20183
20184 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
20185
20186 * charset.c (Fmake_char): Make it more backward compatible.
20187 (Fmap_charset_chars): Fix docstring.
20188
201892008-02-01 Dave Love <fx@gnu.org>
20190
20191 * coding.c: Doc fixes.
20192 (Fdefine_coding_system_alias): Use names, not symbols, in
20193 coding-system-alist.
20194
201952008-02-01 Kenichi Handa <handa@m17n.org>
20196
20197 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
20198 of calling free_realized_face.
20199
202002008-02-01 Yong Lu <lyongu@asia-infonet.com>
20201
20202 * charset.c (read_hex): Don't treat SPC as a comment starter.
20203 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
20204 (Fdecode_char): Fix typo.
20205
202062008-02-01 Kenichi Handa <handa@m17n.org>
20207
20208 * charset.h (struct charset): New member `code_space_mask'.
20209
20210 * coding.c (coding_set_source): Delete the local variable beg_byte.
20211 (encode_coding_charset, Fdefine_coding_system_internal):
20212 Delete the local variable charset.
20213 (Fdefine_coding_system_internal): Setup
20214 attrs[coding_attr_charset_valids] correctly.
20215
20216 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
20217 member to check if CODE is valid or not.
20218 (Fdefine_charset_internal): Initialize `code_space_mask' member.
20219 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
20220 is within the range of charset->min_code and carset->max_code.
20221
202222008-02-01 Dave Love <fx@gnu.org>
20223
20224 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
20225
20226 * dispextern.h (generate_ascii_font): Fix return type.
20227
20228 * xfaces.c (generate_ascii_font): Fix arg declaration.
20229
20230 * coding.c (coding_inherit_eol_type)
20231 (Fset_terminal_coding_system_internal)
20232 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
20233
202342008-02-01 Kenichi Handa <handa@m17n.org>
20235
20236 * coding.c (decode_coding_charset, encode_coding_charset): Handle
20237 multiple charsets correctly.
20238
202392008-02-01 Kenichi Handa <handa@m17n.org>
20240
20241 * search.c (boyer_moore): Fix handling of multibyte character
20242 translation.
20243
20244 * xdisp.c (display_mode_element): When the variable `elt' is
20245 changed, update `this' and `lisp_string'.
20246
202472008-02-01 Kenichi Handa <handa@m17n.org>
20248
20249 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
20250
20251 * callproc.c (Fcall_process): Be sure to give the current buffer
20252 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
20253
20254 * charset.c (struct charset_map_entries): New struct.
20255 (load_charset_map): Rename from parse_charset_map. New args
20256 entries and n_entries. Change caller.
20257 (load_charset_map_from_file): Rename from load_charset_map.
20258 Change caller. New arg control_flag. Call load_charset_map at
20259 the tail.
20260 (load_charset_map_from_vector): New function.
20261 (Fdefine_charset_internal): Setup charset.compact_codes_p.
20262 (encode_char): If the charset is compact, change a character index
20263 to a code point.
20264
20265 * coding.c (coding_alloc_by_making_gap): Check the case that the
20266 source and destination are the same correctly.
20267 (decode_coding_raw_text): Set coding->consumed_char and
20268 coding->consumed to 0.
20269 (produce_chars): If coding->chars_at_source is nonzero, update
20270 coding->consumed_char and coding->consumed before calling
20271 alloc_destination.
20272 (Fdefine_coding_system_alias): Register ALIAS in
20273 Vcoding_system_alist.
20274 (syms_of_coding): Define `no-conversion' coding system at the tail.
20275
20276 * fileio.c (Finsert_file_contents): Set coding_system instead of
20277 val. If the current buffer is multibyte, always call
20278 decode_coding_gap.
20279
20280 * xfaces.c (try_font_list): Give higher priority to fontset's
20281 family than face's family.
20282
202832008-02-01 Kenichi Handa <handa@m17n.org>
20284
20285 * callproc.c (Fcall_process): Be sure to give the current buffer
20286 to decode_coding_c_string.
20287
20288 * xfaces.c (try_font_list): Give a family specified in a fontset
20289 higher priority than a family specified in a face.
20290
202912008-02-01 Kenichi Handa <handa@m17n.org>
20292
20293 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
20294 Fix arguments to insert_from_buffer.
20295
20296 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
20297
202982008-02-01 Kenichi Handa <handa@m17n.org>
20299
20300 * coding.c (produce_chars): Set the variable `multibytep' correctly.
20301 (decode_coding_gap): Set coding->dst_multibyte correctly.
20302
203032008-02-01 Kenichi Handa <handa@m17n.org>
20304
20305 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
20306 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
20307 (encode_coding_utf_16): Substitute coding->default_char for
20308 non-Unicode characters.
20309 (decode_coding): Don't call record_insert here.
20310 (setup_coding_system): Initialize `surrogate' of
20311 coding->spec.utf_16 to 0.
20312 (EMIT_ONE_BYTE): Fix for multibyte case.
20313
20314 * insdel.c (insert_from_gap): Call record_insert.
20315
203162008-02-01 Kenichi Handa <handa@m17n.org>
20317
20318 * casefiddle.c (casify_region): Fix multibyte case.
20319
20320 * character.c (c_string_width): Add return type `int'.
20321 (char_string_with_unification): Delete arg ADVANCED.
20322
20323 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
20324 (CHAR_STRING): Adjust for the change of char_string_with_unification.
20325 (CHAR_STRING_ADVANCE): Make it do-while statement.
20326
20327 * chartab.c (sub_char_table_set_range): Optimize for the case
20328 DEPTH == 3. Add workaround code for a GCC optimization bug.
20329
20330 * charset.c (parse_charset_map): Remove an unused variable.
20331
20332 * coding.c: Delete unused variables.
20333
20334 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
20335 earlier. If inserted is zero and the coding system doesn't
20336 require flushing, don't call decode_coding_gap.
20337
20338 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
20339
203402008-02-01 Kenichi Handa <handa@m17n.org>
20341
20342 The following changes are for using Unicode as an internal
20343 character model, and use UTF-8 format for buffer/string
20344 representation.
20345
20346 * .gdbinit (xchartable): Adjust for the change of char table structure.
20347 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
20348
20349 * Makefile.in (obj): Add character.o and chartab.o.
20350 (lisp, shortlisp): Remove utf-8.elc.
20351 (*.o): For many files, change dependency on charset.h to
20352 character.h, and add dependency on character.h.
20353 (character.o, chartab.o): New targets.
20354
20355 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
20356 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
20357 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
20358 of "charset.h".
20359
20360 * dired.c, filelock.c: Include "character.h".
20361
20362 * alloc.c: Include "character.h" instead of "charset.h".
20363 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
20364 (syms_of_alloc): Remove defsubr for Smake_char_table.
20365
20366 * buffer.c: Include "character.h" instead of "charset.h", don't
20367 include "coding.h".
20368 (Fset_buffer_multibyte): Adjust for UTF-8.
20369
20370 * buffer.h: EXFUN Fbuffer_live_p.
20371
20372 * callproc.c: Include "character.h" instead of "charset.h".
20373 (Fcall_process): Big change for the new code-conversion APIs.
20374
20375 * casetab.c: Include "character.h" instead of "charset.h".
20376 (set_canon, set_identity, shuffle): Adjust for the new
20377 map_char_table spec.
20378 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
20379 accessing the char table structure.
20380
20381 * chartab.c: New file that implements char table.
20382
20383 * category.c: Include "character.h".
20384 (copy_category_entry): New function.
20385 (copy_category_table): Call map_char_table and copy_category_entry.
20386 (Fmake_category_table): Initialize all top-level slots.
20387 (char_category_set): New function.
20388 (modify_lower_category_set): Delete.
20389 (Fmodify_category_entry): Call char_table_ref_and_range.
20390
20391 * category.h (CATEGORY_SET): Just call char_category_set.
20392
20393 * ccl.c: Include "character.h".
20394 (Qccl, Qcclp): New variables.
20395 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
20396 it's less than 256.
20397 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
20398 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
20399 and DST type.
20400 (ccl_driver): Change types of argument, adjust code accordingly.
20401 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
20402 ccl_driver.
20403 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
20404
20405 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
20406 New members src_multibyte, dst_multibyte, consumed, and produced.
20407 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
20408 (CODING_SPEC_CCL_PROGRAM): New macro.
20409 (ccl_driver): Update prototype.
20410 (Qccl, Qcclp, Fccl_program_p): Extern them.
20411 (CHECK_CCL_PROGRAM): New macro.
20412
20413 * character.c, character.h, chartab.c: New files.
20414
20415 * charset.c: Mostly re-written. Move character and multibyte sequence
20416 handling codes to character.c.
20417
20418 * charset.h: Mostly re-written. Move character and multibyte sequence
20419 handling codes to character.h.
20420
20421 * coding.c, coding.h: Mostly re-written.
20422
20423 * composite.c: Include "character.h" instead of "charset.h".
20424 (CHAR_WIDTH): Move to character.h.
20425 (HASH_KEY, HASH_VALUE): Delete.
20426
20427 * composite.h (enum composition_method): Change order of enumeration
20428 symbols.
20429
20430 * data.c: Include "character.h" instead of "charset.h".
20431 (Faref): Call CHAR_TABLE_REF for a char table.
20432 (Faset): Call CHAR_TABLE_SET for a char table.
20433
20434 * dispextern.h (free_realized_face, check_face_attribytes)
20435 (generate_ascii_font): Extern them.
20436 (free_realized_multibyte_face): Delete extern.
20437
20438 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
20439 table structure.
20440
20441 * editfns.c: Include "character.h" instead of "charset.h".
20442 (Fchar_to_string): Always call CHAR_STRING.
20443
20444 * emacs.c (main): Call init_charset_once, init_charset,
20445 syms_of_chartab, and syms_of_character.
20446
20447 * fileio.c: Include "character.h" instead of "charset.h".
20448 (Finsert_file_contents): Big change for the new code-conversion API.
20449 (choose_write_coding_system, Fwrite_region): Likewise.
20450 (build_annotations_2): Delete.
20451 (e_write): Big change for the new code-conversion API.
20452
20453 * fns.c: Include "character.h" instead of "charset.h".
20454 (copy_sub_char_table): Move to chartab.c.
20455 (Fcopy_sequence): Call copy_char_table for a char table.
20456 (concat): Delete codes calling count_multibyte.
20457 (string_char_to_byte, string_byte_to_char): Adjust for the new
20458 multibyte form.
20459 (internal_equal): Adjust for the change of char table structure.
20460 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
20461 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
20462 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
20463 (char_table_translate, optimize_sub_char_table)
20464 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
20465 chartab.c.
20466 (char_table_ref_and_index): Delete.
20467 (HASH_KEY, HASH_VALUE): Move to lisp.h.
20468 (Fmd5): Call preferred_coding_system instead of accessing
20469 Vcoding_category_list. Adjust for the new code-conversion API.
20470 (syms_of_fns): Move defsubr for char table related functions to
20471 chartab.c.
20472
20473 * fontset.c: Mostly re-written.
20474
20475 * fontset.h (struct font_info): Change type of the member encoding_type.
20476 (enum FONT_SPEC_INDEX): New enum.
20477 (fontset_font_pattern, fs_load_font): Update prototype.
20478 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
20479
20480 * indent.c: Include "character.h" instead of "charset.h".
20481 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
20482
20483 * insdel.c: Include "character.h" instead of "charset.h".
20484 (copy_text): Don't refer to Vnonascii_translation_table.
20485 (insert_from_gap): New function.
20486
20487 * keyboard.c: Include "character.h" instead of "charset.h".
20488 (command_loop_1): Never call direct_output_forward_char before
20489 a non-ASCII character.
20490 (read_char): If Vkeyboard_translate_table is a char table, always
20491 translate a character.
20492
20493 * keymap.c: Include "character.h".
20494 (store_in_keymap): Handle the case that IDX is a cons.
20495 (Fdefine_key): Handle the case that KEY is a cons and the car part
20496 is also a cons (range).
20497 (push_key_description): Adjust for the new character code.
20498 (describe_vector): Call describe_char_table for a char table.
20499 (describe_char_table): New function.
20500
20501 * keymap.h (describe_char_table): Extern it.
20502
20503 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
20504 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
20505 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
20506 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
20507 Delete.
20508 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
20509 structure.
20510 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
20511 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
20512 (CHARTAB_SIZE_BITS_3): New macros.
20513 (chartab_size): Extern it.
20514 (struct Lisp_Char_Table): Re-design.
20515 (struct Lisp_Sub_Char_Table): New structure.
20516 (HASH_KEY, HASH_VALUE): Move from fns.c.
20517 (CHARACTERBITS): Define as 22.
20518 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
20519 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
20520 (GC_SUB_CHAR_TABLE_P): New macro.
20521 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
20522 (code_convert_string_norecord): Deleted extern.
20523 (init_character_once, syms_of_character, init_charset)
20524 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
20525
20526 * lread.c: Include "character.h".
20527 (read_multibyte): New arg NBYTES.
20528 (read_escape): Change the meaning of returned *BYTEREP.
20529 (to_multibyte): Delete.
20530 (read1): Adjust the handling of char table and string.
20531
20532 * print.c: Include "character.h" instead of "charset.h".
20533 (print_string): Convert 8-bit raw bytes to octal form by
20534 string_escape_byte8.
20535 (print_object): Adjust for the new multibyte form. Print 8-bit
20536 raw bytes always in octal form. Handle sub char table correctly.
20537
20538 * process.c: Include "character.h" instead of "charset.h".
20539 (read_process_output, send_process): Adjust for the new
20540 code-conversion API.
20541
20542 * puresize.h (BASE_PURESIZE): Increase.
20543
20544 * regex.c: Include "character.h" instead of "charset.h".
20545 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
20546 (regex_compile): Accept a range whose starting and ending
20547 character have different leading bytes.
20548 (analyse_first): Adjust for the above change.
20549
20550 * search.c: Include "character.h" instead of "charset.h".
20551 (search_buffer, boyer_moore): Adjust for the new multibyte form.
20552 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
20553
20554 * syntax.c: Include "character.h" instead of "charset.h".
20555 (syntax_parent_lookup): Delete.
20556 (Fmodify_syntax_entry): Accept a cons as CHAR.
20557 (skip_chars): Adjust for the new multibyte form.
20558 (init_syntax_once): Call char_table_set_range instead of directly
20559 accessing the structure of a char table.
20560
20561 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
20562 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
20563 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
20564 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
20565
20566 * term.c: Include "buffer.h" and "character.h".
20567 (encode_terminal_code, write_glyphs): Adjust for the new
20568 code-conversion API.
20569 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
20570
20571 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
20572
20573 * xdisp.c: Include "character.h".
20574 (get_next_display_element): Adjust for the new multibyte form.
20575 (disp_char_vector): Adjust for the new char table structure.
20576 (decode_mode_spec_coding): Adjust for the new structure of
20577 coding system.
20578 (decode_mode_spec): Adjust for the new code-conversion API.
20579
20580 * xfaces.c: Include "character.h" instead of "charset.h".
20581 (load_face_font): Adjust for the change of choose_face_font and
20582 FS_LOAD_FONT.
20583 (generate_ascii_font): New function.
20584 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
20585 (set_font_frame_param): Adjust for the change of choose_face_font.
20586 (free_realized_face): Make it public.
20587 (free_realized_faces_for_fontset): Rename from
20588 free_realized_multibyte_face. Free also faces realized for ASCII.
20589 (choose_face_font): Change arguments. Adjust for the change of
20590 fontset_font_pattern and FS_LOAD_FONT.
20591
20592 * xfns.c: Include "character.h".
20593 (x_encode_text): Adjust for the new code-conversion API.
20594
20595 * xselect.c: Don't include "charset.h".
20596 (selection_data_to_lisp_data): Adjust for the new code conversion API.
20597
20598 * xterm.c: Include "character.h".
20599 (x_encode_char): New argument CHARSET. Change caller.
20600 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
20601 Call ENCODE_CHAR instead of SPLIT_CHAR.
20602 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
20603 CHAR_WIDTH instead of CHARSET_WIDTH.
20604 (XTread_socket): Adjust for the new code-conversion API.
20605 (x_new_font): Adjust for the change of FS_LOAD_FONT.
20606 (x_load_font): Adjust for the change of struct font.
20607
206082008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
20609
20610 * xfaces.c (face_at_buffer_position): Remove unused vars.
20611
206122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20613
20614 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
20615 Fix overflow checking.
20616
206172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20618
20619 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
20620 Cancel previous change.
20621
206222008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
20623
20624 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
20625 ccl->eight_bit_control. Fix check for buffer overflow.
20626 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
20627 (ccl_driver): Initialize extra_bytes to 0.
20628
206292008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
20630
20631 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
20632 return it ORed with ctrl_modifier.
20633
206342008-01-29 Miles Bader <miles@gnu.org>
20635
20636 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
20637
206382008-01-28 Jason Rumney <jasonr@gnu.org>
20639
20640 * w32.c (stat): Don't double check for networked drive.
20641
206422008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
20643
20644 * window.c (run_window_configuration_change_hook): New function.
20645 Code extracted from set_window_buffer. Set the selected frame.
20646 (set_window_buffer): Use it.
20647 * window.h (run_window_configuration_change_hook): Declare.
20648 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
20649
20650 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
20651
206522008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
20653
20654 * Makefile.in: Remove references to unused macros.
20655
206562008-01-26 Eli Zaretskii <eliz@gnu.org>
20657
20658 * w32.c (g_b_init_get_sid_sub_authority)
20659 (g_b_init_get_sid_sub_authority_count): New static variables.
20660 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
20661 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
20662 (init_user_info): Use them to retrieve uid and gid.
20663 Use 500/513, the Windows defaults, as Administrator's uid/gid.
20664 (fstat): Use pw_uid and pw_gid from the_passwd structure for
20665 st_uid and st_gid of the file.
20666
206672008-01-26 Jason Rumney <jasonr@gnu.org>
20668
20669 * w32.c (logon_network_drive): New function.
20670 (stat): Use it.
20671
206722008-01-26 Chong Yidong <cyd@stupidchicken.com>
20673
20674 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
20675 invisible text covered with an ellipsis.
20676
206772008-01-25 Richard Stallman <rms@gnu.org>
20678
20679 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
20680 jump back to beginning. Move some other initializations after that.
20681 (Qwindow_text_change_functions, Vwindow_text_change_functions):
20682 New variables.
20683 (syms_of_xdisp): Init them.
20684
20685 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
20686
20687 * buffer.c (reset_buffer_local_variables):
20688 Implement `permanent-local-hook'.
20689 (Qpermanent_local_hook): New variable.
20690 (syms_of_buffer): Init and staticpro it.
20691
206922008-01-25 Michael Albinus <michael.albinus@gmx.de>
20693
20694 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
20695
206962008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
20697
20698 * fns.c (Fclrhash): Return TABLE.
20699
207002008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20701
20702 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
20703 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
20704 is set even without positional changes.
20705 (x_scroll_bar_clear): Set bar->redraw_needed_p.
20706
20707 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
20708
207092008-01-23 Jason Rumney <jasonr@gnu.org>
20710
20711 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
20712
20713 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
20714 the unicode range available in MULE by locale-coding-system.
20715 Improve dbcs lead byte detection. Set event timestamp and modifiers
20716 earlier.
20717
207182008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20719
20720 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
20721 [MAC_OSX] (init_mac_osx_environment): Initialize it.
20722 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
20723 when used on child processes.
20724
207252008-01-21 Michael Albinus <michael.albinus@gmx.de>
20726
20727 * dbusbind.c (Fdbus_method_return_internal): Rename from
20728 Fdbus_method_return.
20729 (Fdbus_unregister_object): Move to dbus.el.
20730 (Fdbus_call_method, Fdbus_method_return_internal)
20731 (Fdbus_send_signal): Improve debug messages.
20732
207332008-01-20 Martin Rudalics <rudalics@gmx.at>
20734
20735 * undo.c (undo_inhibit_record_point): New variable.
20736 (syms_of_undo): Initialize it.
20737 (record_point): Don't record point when undo_inhibit_record_point
20738 is set.
20739
207402008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
20741
20742 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
20743
20744 * xdisp.c (Qauto_hscroll_mode): New var.
20745 (syms_of_xdisp): Initialize it.
20746 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
20747 window's buffer.
20748 (hscroll_windows): Don't check automatic_hscrolling_p here.
20749
20750 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
20751 vscroll if we're setting window-buffer to the value it already has.
20752
207532008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
20754
20755 * m/intel386.h: Remove references to XENIX.
20756
207572008-01-17 Andreas Schwab <schwab@suse.de>
20758
20759 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
20760 instead of HAVE_X86_64_LIB64_DIR.
20761 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
20762
207632008-01-17 Glenn Morris <rgm@gnu.org>
20764
20765 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
20766 to HAVE_X86_64_LIB64_DIR.
20767
207682008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
20769
20770 * s/irix3-3.h:
20771 * s/irix4-0.h:
20772 * s/386-ix.h:
20773 * s/domain.h:
20774 * s/hpux9-x11r4.h:
20775 * s/hpux9shxr4.h: Remove files for systems no longer supported.
20776
20777 * sysdep.c: Remove code containing references to symbols defined
20778 by unsupported systems.
20779
207802008-01-16 Glenn Morris <rgm@gnu.org>
20781
20782 * coding.c (select-safe-coding-system-function): Doc fix.
20783
207842008-01-15 Glenn Morris <rgm@gnu.org>
20785
20786 * config.in: Revert 2008-01-13 change: this is a generated file.
20787
207882008-01-13 Tom Tromey <tromey@redhat.com>
20789
20790 * lisp.h: Fix typo.
20791
207922008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
20793
20794 * m/sequent-ptx.h:
20795 * m/sequent.h:
20796 * s/ptx.h:
20797 * s/ptx4-2.h:
20798 * s/ptx4.h: Remove files for systems no longer supported.
20799
20800 * callproc.c (Fcall_process): Fix previous change.
20801
208022008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
20803
20804 * unexsunos4.c: Remove file, system not supported anymore.
20805
20806 * m/mips.h:
20807 * m/intel386.h:
20808 * callproc.c:
20809 * config.in:
20810 * ecrt0.c:
20811 * emacs.c:
20812 * fileio.c:
20813 * frame.c:
20814 * getpagesize.h:
20815 * keyboard.c:
20816 * lread.c:
20817 * process.c:
20818 * puresize.h:
20819 * sysdep.c:
20820 * systty.h:
20821 * syswait.h:
20822 * unexec.c:
20823 * xdisp.c:
20824 * alloc.c: Remove code containing references to symbols defined by
20825 unsupported systems.
20826
208272008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
20828
20829 * coding.c (detect_coding_mask): Fix previous change.
20830
208312008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
20832
20833 * coding.c (detect_coding_iso2022): New arg
20834 latin_extra_code_state. Allow Latin extra codes only
20835 when *latin_extra_code_state is nonzero.
20836 (detect_coding_mask): If there is a NULL byte, detect the encoding
20837 as UTF-16 or binary. If Latin extra codes exist, detect the
20838 encoding as ISO-2022 only when there's no other proper encoding is
20839 found.
20840
208412008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20842
20843 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
20844 #ifdef MAC_OS.
20845
208462008-01-08 Richard Stallman <rms@gnu.org>
20847
20848 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
20849
208502008-01-06 Nick Roberts <nickrob@snap.net.nz>
20851
20852 * keyboard.c (parse_menu_item): Don't enclose key bindings on
20853 menu bar in parentheses.
20854
208552008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
20856
20857 * m/7300.h:
20858 * m/acorn.h:
20859 * m/alliant-2800.h:
20860 * m/alliant.h:
20861 * m/alliant1.h:
20862 * m/alliant4.h:
20863 * m/altos.h:
20864 * m/amdahl.h:
20865 * m/apollo.h:
20866 * m/att3b.h:
20867 * m/aviion-intel.h:
20868 * m/aviion.h:
20869 * m/celerity.h:
20870 * m/clipper.h:
20871 * m/cnvrgnt.h:
20872 * m/convex.h:
20873 * m/cydra5.h:
20874 * m/delta88k.h:
20875 * m/dpx2.h:
20876 * m/dual.h:
20877 * m/elxsi.h:
20878 * m/f301.h:
20879 * m/gould-np1.h:
20880 * m/gould.h:
20881 * m/i860.h:
20882 * m/ibmps2-aix.h:
20883 * m/ibmrt-aix.h:
20884 * m/ibmrt.h:
20885 * m/irist.h:
20886 * m/is386.h:
20887 * m/isi-ov.h:
20888 * m/mega68.h:
20889 * m/mg1.h:
20890 * m/news-r6.h:
20891 * m/news-risc.h:
20892 * m/news.h:
20893 * m/nh3000.h:
20894 * m/nh4000.h:
20895 * m/ns16000.h:
20896 * m/ns32000.h:
20897 * m/nu.h:
20898 * m/orion.h:
20899 * m/orion105.h:
20900 * m/paragon.h:
20901 * m/pfa50.h:
20902 * m/plexus.h:
20903 * m/pyramid.h:
20904 * m/pyrmips.h:
20905 * m/sh3el.h:
20906 * m/sps7.h:
20907 * m/sr2k.h:
20908 * m/stride.h:
20909 * m/sun1.h:
20910 * m/sun2.h:
20911 * m/sun3-68881.h:
20912 * m/sun3-fpa.h:
20913 * m/sun3-soft.h:
20914 * m/sun3.h:
20915 * m/sun386.h:
20916 * m/symmetry.h:
20917 * m/tad68k.h:
20918 * m/tahoe.h:
20919 * m/targon31.h:
20920 * m/tek4300.h:
20921 * m/tekxd88.h:
20922 * m/tower32.h:
20923 * m/tower32v3.h:
20924 * m/ustation.h:
20925 * m/wicat.h:
20926 * m/xps100.h:
20927 * s/cxux.h:
20928 * s/cxux7.h:
20929 * s/dgux.h:
20930 * s/dgux4.h:
20931 * s/dgux5-4-3.h:
20932 * s/dgux5-4r2.h:
20933 * s/esix.h:
20934 * s/esix5r4.h:
20935 * s/hiuxmpp.h:
20936 * s/hiuxwe2.h:
20937 * s/iris3-5.h:
20938 * s/iris3-6.h:
20939 * s/isc2-2.h:
20940 * s/isc3-0.h:
20941 * s/isc4-0.h:
20942 * s/isc4-1.h:
20943 * s/newsos5.h:
20944 * s/newsos6.h:
20945 * s/osf1.h:
20946 * s/osf5-0.h:
20947 * s/riscix1-1.h:
20948 * s/riscix12.h:
20949 * s/sco4.h:
20950 * s/sco5.h:
20951 * s/sunos4-0.h:
20952 * s/sunos4-1.h:
20953 * s/sunos413.h:
20954 * s/sunos4shr.h:
20955 * s/umax.h:
20956 * s/unipl5-2.h:
20957 * s/xenix.h:
20958 * cxux-crt0.s:
20959 * unexapollo.c:
20960 * unexconvex.c:
20961 * unexenix.c:
20962 * unexsni.c: Remove files for systems no longer supported.
20963
20964 * m/intel386.h: Remove references to unsupported systems.
20965
20966 * w32.c (get_emacs_configuration): Remove reference to i860.
20967
20968 * sysdep.c: Remove dead code.
20969
209702008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
20971
20972 * s/rtu.h:
20973 * m/masscomp.h: Remove files. Platform is obsolete.
20974
209752008-01-04 Michael Albinus <michael.albinus@gmx.de>
20976
20977 * dbusbind.c (Fdbus_method_return): New function.
20978 (xd_read_message): Add the serial number to the event.
20979 (Fdbus_register_method): Activate the function.
20980
209812008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
20982
20983 * keyboard.c (read_key_sequence): Fix typo.
20984
209852008-01-03 Michael Albinus <michael.albinus@gmx.de>
20986
20987 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
20988 (xd_signature, xd_append_arg): Handle element type detection for
20989 empty arrays.
20990 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
20991 SDATA () calls; this must be solved more general.
20992 (Fdbus_register_signal): Use SBYTES instead of strlen.
20993
209942008-01-03 Magnus Henoch <magnus@zemdatav>
20995
20996 * dbusbind.c (xd_append_arg): Use unsigned char instead of
20997 unsigned int for byte values (necessary for big-endian platform).
20998 (Fdbus_call_method): Handle the case of no returned arguments.
20999
210002007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
21001
21002 * dbusbind.c (xd_read_message): Use non-static input_event struct.
21003
210042007-12-31 Magnus Henoch <mange@freemail.hu>
21005
21006 * dbusbind.c (xd_signature): Signature of variant is just "v".
21007
210082007-12-30 Michael Albinus <michael.albinus@gmx.de>
21009
21010 * dbusbind.c: Fix several errors and compiler warnings.
21011 Reported by Tom Tromey <tromey@redhat.com>.
21012 (XD_ERROR, XD_DEBUG_MESSAGE)
21013 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
21014 (xd_append_arg): Part for basic D-Bus types rewritten.
21015 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
21016 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
21017 appropriate.
21018 (xd_read_message): Return Qnil. Don't signal an error; it is not
21019 useful during event reading.
21020 (Fdbus_register_signal): Signal an error if the check for
21021 FUNCTIONP fails.
21022 (Fdbus_register_method): New function. The implementation is not
21023 complete, the call of the function signals an error therefore.
21024 (Fdbus_unregister_object): New function, renamed from
21025 Fdbus_unregister_signal. The initial check signals an error, if
21026 the object is not well formed.
21027
210282007-12-30 Richard Stallman <rms@gnu.org>
21029
21030 * textprop.c (get_char_property_and_overlay):
21031 Signal error if POSITION is out of range in a buffer.
21032
210332007-12-29 Martin Rudalics <rudalics@gmx.at>
21034
21035 * w32fns.c (Fx_create_frame): Make copy of frame parameters
21036 because the original parameters are in pure storage now.
21037
210382007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21039
21040 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
21041
210422007-12-22 Eli Zaretskii <eliz@gnu.org>
21043
21044 * callint.c (syms_of_callint) <command-history>: Add reference to
21045 history-length in the doc string.
21046
210472007-12-17 Jason Rumney <jasonr@gnu.org>
21048
21049 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
21050 before passing as wParam.
21051
210522007-12-22 Michael Albinus <michael.albinus@gmx.de>
21053
21054 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
21055 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
21056 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
21057 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
21058 as number.
21059 (Fdbus_call_method): Fix docstring.
21060
210612007-12-21 Michael Albinus <michael.albinus@gmx.de>
21062
21063 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
21064 New macros.
21065 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
21066 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
21067 Simplify.
21068 (xd_signature): New function.
21069 (xd_append_arg): Compute also signatures. Major rewrite.
21070 (xd_retrieve_arg): Make debug messages friendly.
21071 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
21072 Check for signatures of arguments.
21073
210742007-12-19 Michael Albinus <michael.albinus@gmx.de>
21075
21076 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
21077 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
21078 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
21079 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
21080 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
21081 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
21082 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
21083 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
21084 (xd_retrieve_value): Remove. Functionality included in ...
21085 (xd_append_arg): New function.
21086 (Fdbus_call_method, Fdbus_send_signal): Apply it.
21087
210882007-12-16 Michael Albinus <michael.albinus@gmx.de>
21089
21090 * dbusbind.c (top): Include <stdio.h>.
21091 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
21092 dbus_message_new_method_call and dbus_message_new_signal.
21093 (Fdbus_register_signal): Rename unique_name to uname.
21094 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
21095 non-existing unique name. Fix typos in matching rule. Return an
21096 object which is useful in Fdbus_unregister_signal.
21097 (Fdbus_unregister_signal): Reimplementation, in order to remove
21098 only the corresponding entry.
21099 (Vdbus_registered_functions_table): Change the order of entries.
21100 Apply these changes in xd_read_message and Fdbus_register_signal.
21101
211022007-12-16 Andreas Schwab <schwab@suse.de>
21103
21104 * fileio.c (Finsert_file_contents): Fix overflow check to not
21105 depend on undefined integer overflow.
21106
211072007-12-14 Jason Rumney <jasonr@gnu.org>
21108
21109 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
21110 for characters above 127.
21111
211122007-12-13 Jason Rumney <jasonr@gnu.org>
21113
21114 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
21115 before dereferencing array.
21116 (lookup_vk_code): Remove zero comparison.
21117
211182007-12-14 Michael Albinus <michael.albinus@gmx.de>
21119
21120 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
21121 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
21122 Use `unsigned int' instead of `uint'.
21123 (xd_read_message, Fdbus_register_signal): Split expressions into
21124 multiple lines before operators "&&" and "||", according to the
21125 GNU Coding Standards.
21126
211272007-12-14 Eli Zaretskii <eliz@gnu.org>
21128
21129 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
21130
211312007-12-12 Juri Linkov <juri@jurta.org>
21132
21133 * buffer.c (Frename_buffer): In interactive spec replace
21134 `read-buffer' with `read-string' that uses `buffer-name-history'
21135 as history, and the current buffer's name as default.
21136
211372007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
21138
21139 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
21140 manipulating the backtrace manually.
21141 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
21142 (struct backtrace, backtrace_list): Remove.
21143 (command_loop_1): Remove dead var `no_direct'.
21144
21145 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
21146 preserve non-built-in buffer-local variables.
21147 (Fkill_all_local_variables): Don't re-create&re-set permanent
21148 buffer-local variables.
21149
211502007-12-09 Juri Linkov <juri@jurta.org>
21151
21152 * buffer.c (Frename_buffer): Change interactive spec from "s" to
21153 Lisp code that uses `read-buffer' with current buffer as default.
21154
211552007-12-08 Michael Albinus <michael.albinus@gmx.de>
21156
21157 * dbusbind.c (xd_read_message): Generate an event for every
21158 registered handler. There might be several handlers registered
21159 for the same signal.
21160 (Fdbus_register_signal): Don't overwrite a registration for the
21161 same signal. Add a new registration if handlers are different.
21162 (Vdbus_registered_functions_table): Rework doc string.
21163
211642007-12-07 Michael Albinus <michael.albinus@gmx.de>
21165
21166 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
21167 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
21168 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
21169 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
21170 Unify argument lists.
21171 (xd_read_message, Fdbus_register_signal): Reorder and extend event
21172 arguments and hash table keys. Use unique name for service.
21173 (Fdbus_unregister_signal): Remove checks.
21174 (Vdbus_registered_functions_table): Fix doc string.
21175
211762007-12-05 Magnus Henoch <mange@freemail.hu>
21177
21178 * process.c (make_process): Initialize pty_flag to 0.
21179
211802007-12-05 Jason Rumney <jasonr@gnu.org>
21181
21182 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
21183 specified XBMs.
21184
211852007-12-05 Richard Stallman <rms@gnu.org>
21186
21187 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
21188
211892007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21190
21191 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
21192 New variable.
21193 (mac_try_close_socket) [MAC_OSX]: New function.
21194 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
21195 Update cfsockets_for_select. Replace invalid CFRunLoop source.
21196
21197 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
21198 Use mac_try_close_socket.
21199
212002007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21201
21202 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
21203 reloc_base.
21204 (copy_dysymtab): Compute relocation base here.
21205 (rebase_reloc_address) [__ppc64__]: New function.
21206 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
21207 changed.
21208
212092007-12-05 Jason Rumney <jasonr@gnu.org>
21210
21211 * w32proc.c (sys_spawnve): Quote args with wildcards.
21212
212132007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21214
21215 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
21216 __objc_* sections.
21217 (unrelocate) [_LP64]: Set relocation base to address of data segment.
21218
212192007-12-05 Michael Albinus <michael.albinus@gmx.de>
21220
21221 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
21222 Move check for Vdbus_registered_functions_table to
21223 xd_read_queued_messages.
21224 (xd_read_queued_messages): Protect xd_read_message calls by
21225 internal_condition_case_1.
21226
212272007-12-04 Michael Albinus <michael.albinus@gmx.de>
21228
21229 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
21230 Qdbus_system_bus and Qdbus_session_bus, respectively.
21231 (Vdbus_intern_symbols): Remove.
21232 (Vdbus_registered_functions_table): New hash table.
21233 (XD_SYMBOL_INTERN_SYMBOL): Remove.
21234 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
21235 Rewrite in order to manage registered functions by hash table
21236 Vdbus_registered_functions_table.
21237
212382007-12-03 Jan Djärv <jan.h.d@swipnet.se>
21239
21240 * xterm.c: Update URL to Window Manager Specification in comment.
21241
212422007-12-02 Michael Albinus <michael.albinus@gmx.de>
21243
21244 * config.in (HAVE_DBUS): Add.
21245
21246 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
21247 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
21248 (obj): Add $(DBUS_OBJ).
21249 (LIBES): Add $(DBUS_LIBS).
21250 (dbusbind.o): New target.
21251
21252 * dbusbind.c: New file.
21253
21254 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
21255
21256 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
21257 (Qdbus_event): New Lisp symbol.
21258 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
21259 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 21260 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
21261
21262 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
21263
212642007-12-01 Richard Stallman <rms@gnu.org>
21265
21266 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
21267
212682007-11-30 Jason Rumney <jasonr@gnu.org>
21269
21270 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
21271 (w32con_reset_terminal_modes): Clear screen buffer.
21272 (w32_face_attributes): Don't use color indexes that are out of range.
21273 Only reverse the default colors.
21274
21275 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
21276 WINDOWSNT.
21277
21278 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
21279
212802007-11-29 Jason Rumney <jasonr@gnu.org>
21281
21282 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
21283 (w32_face_attributes): Use Vtty_defined_color_alist to determine
21284 if the terminal colors are initialized.
21285 (unspecified_fg, unspecified_bg): Remove unused declarations.
21286
212872007-11-29 Andreas Schwab <schwab@suse.de>
21288
21289 * keyboard.c (apply_modifiers): Fix typo.
21290
212912007-11-29 Richard Stallman <rms@gnu.org>
21292
21293 * keymap.c (Fcurrent_local_map): Doc fix.
21294
212952007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
21296
21297 * s/gnu-kfreebsd.h: New file.
21298
212992007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
21300
21301 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
21302 Don't cast redundantly.
21303
21304 * keyboard.c (KEY_TO_CHAR): New macro.
21305 (parse_modifiers, apply_modifiers): Accept integer arguments.
21306 (read_key_sequence): Use them to unify the "shift->unshift" mapping
21307 for chars and symbol keys.
21308 After doing such remapping, apply function-key-map again.
21309
213102007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
21311
21312 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
21313 compiled anymore.
21314
213152007-11-26 Andreas Schwab <schwab@suse.de>
21316
21317 * process.c (list_processes_1): Fix indentation level of the
21318 command column.
21319
213202007-11-23 Andreas Schwab <schwab@suse.de>
21321
21322 * editfns.c (Fformat): Handle %c specially since it requires the
21323 argument to be of type int.
21324
213252007-11-23 Markus Triska <markus.triska@gmx.at>
21326
21327 * emacs.c (main): Call init_editfns before init_process, since
21328 init_process sets Vprocess_connection_type depending on OS release.
21329
213302007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
21331
21332 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
21333 (find_symbol_value): Use do_symval_forwarding.
21334
21335 * data.c (set_internal): Set the value in the `cons-cell' (for
21336 Buffer_Local_values) not only for frame-local variables.
21337
213382007-11-22 Andreas Schwab <schwab@suse.de>
21339
21340 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
21341 values to sprintf.
21342 * keymap.c (Fsingle_key_description): Likewise.
21343 * print.c (print_object): Likewise.
21344
213452007-11-22 Jan Djärv <jan.h.d@swipnet.se>
21346
21347 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
21348 file for image is nil.
21349
213502007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
21351
21352 * term.c: Include stdarg.h.
21353 (fatal): Implement using varargs.
21354 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
21355
213562007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
21357
21358 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
21359 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
21360 Update call to buffer_slot_type_mismatch.
21361 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
21362 (buffer_slot_type_mismatch): Update.
21363 * buffer.c (buffer_local_types): Remove.
21364 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
21365 (defvar_per_buffer): Set the type in the buffer_objfwd.
21366
213672007-11-21 Jason Rumney <jasonr@gnu.org>
21368
21369 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
21370 CreateFileMapping returns NULL on failure.
21371
213722007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
21373
21374 * search.c (Fset_match_data): Remove the `evaporate' feature.
21375 (unwind_set_match_data): Don't use the `evaporate' feature.
21376
213772007-11-21 Jason Rumney <jasonr@gnu.org>
21378
21379 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
21380
21381 * w32console.c (w32con_write_glyphs): Remove unused variables.
21382
213832007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
21384
21385 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
21386
21387 * s/darwin.h (MULTI_KBOARD): Remove.
21388
21389 * macfns.c (x_create_tip_frame, Fx_create_frame)
21390 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
21391
213922007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
21393
21394 * buffer.c (Fbuffer_local_value): Remove redundant test.
21395 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
21396 than in `current-buffer' to match the comment.
21397 Do the swap using swap_in_global_binding.
21398
21399 * data.c (store_symval_forwarding, set_internal):
21400 * eval.c (specbind): Remove dead code.
21401
21402 * coding.c (detect_coding, Fupdate_coding_systems_internal):
21403 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
21404 Since we do not want to see internal Lisp_*fwd objects here.
21405
214062007-11-18 Jan Djärv <jan.h.d@swipnet.se>
21407
21408 * sysdep.c (init_system_name): Use getaddrinfo if available.
21409
21410 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
21411 (x_scroll_bar_note_movement): start, end, with, height in struct
21412 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
21413
214142007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
21415
21416 * puresize.h (BASE_PURESIZE): Increase to 1190000.
21417
214182007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
21419
21420 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
21421 This undoes Richard's change of 14-Oct-2002.
21422
21423 * alloc.c (allocate_other_vector):
21424 * lisp.h (allocate_other_vector): Remove.
21425
21426 * window.c (struct save_window_data): Move non-lisp data to the end
21427 and make it `int' rather than Lisp_Object.
21428 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
21429 Done wrap/unwrap integer values.
21430 (Fset_window_configuration, compare_window_configurations):
21431 Update use of fields to their new types.
21432
21433 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
21434 Turn integer fields into `int'. Merge x_window_low and x_window_high.
21435 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
21436 (SET_SCROLL_BAR_X_WINDOW): Remove.
21437 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
21438 Access the new x_window field directly.
21439 * xterm.c (x_scroll_bar_create): Use a pseudovector.
21440 Don't wrap/unwrap integers into Lisp_Objects.
21441 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
21442 (x_scroll_bar_report_motion):
21443 Don't wrap/unwrap integers into Lisp_Objects.
21444 (x_term_init): Use SDATA.
21445 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
21446 (x_scroll_bar_set_handle, x_scroll_bar_remove)
21447 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
21448 (x_scroll_bar_report_motion, x_scroll_bar_clear):
21449 * xfns.c (x_set_background_color):
21450 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
21451 Access the new x_window field directly.
21452
21453 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
21454 (allocate_pseudovector): Make non-static.
21455
21456 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
21457 (allocate_pseudovector): Declare.
21458 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
21459
214602007-11-15 Andreas Schwab <schwab@suse.de>
21461
21462 * editfns.c (Fformat): Correctly format EMACS_INT values.
21463 Also take precision into account when formatting an integer.
21464
21465 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
21466
214672007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
21468
21469 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
21470 (syms_of_keyboard): Defsubr it.
21471
21472 * data.c (swap_in_global_binding): Fix longstanding bug where
21473 store_symval_forwarding was not called with the right second argument,
21474 thus causing objfwd-ing from being dropped.
21475
214762007-11-14 Juanma Barranquero <lekktu@gmail.com>
21477
21478 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
21479 (Fx_display_pixel_height, Fx_display_planes)
21480 (Fx_display_color_cells, Fx_server_max_request_size)
21481 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
21482 (Fx_display_visual_class, Fx_display_save_under):
21483 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
21484 (Fx_display_pixel_height, Fx_display_planes)
21485 (Fx_display_color_cells, Fx_server_max_request_size)
21486 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
21487 (Fx_display_mm_height, Fx_display_mm_width)
21488 (Fx_display_backing_store, Fx_display_visual_class)
21489 (Fw32_select_font, Fx_display_save_under):
21490 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
21491 (Fx_display_pixel_height, Fx_display_planes)
21492 (Fx_display_color_cells, Fx_server_max_request_size)
21493 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
21494 (Fx_display_save_under): Fix typos in docstrings.
21495
214962007-11-14 Juanma Barranquero <lekktu@gmail.com>
21497
21498 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
21499 corresponding to deleted entries; they are an implementation detail.
21500 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
21501 Remove variables.
21502 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
21503 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
21504 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
21505 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
21506 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
21507 (Fw32_define_rgb_color, Fw32_load_color_file)
21508 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
21509 Fix typos in docstrings.
21510 (Fx_server_version): Reflow docstring.
21511 (Fw32_shell_execute): Doc fixes.
21512
215132007-11-13 Juanma Barranquero <lekktu@gmail.com>
21514
21515 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
21516 if w32_parse_hot_key returned nil.
21517
215182007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
21519
21520 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
21521
215222007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 21523
aac0c6e3
MR
21524 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
21525
21526 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
21527
21528 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
21529 Remove W32_SCROLL_BAR_CLICK_EVENT.
21530
21531 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
21532 Add MULTIMEDIA_KEY_EVENT.
21533
21534 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
21535 (lispy_multimedia_keys) [WINDOWSNT]: New array.
21536 (make_lispy_event) [WINDOWSNT]: Use it to translate
21537 MULTIMEDIA_KEY_EVENT.
21538
21539 * w32term.h (WM_APPCOMMAND): Define if not already.
21540 (GET_APPCOMMAND_LPARAM): Likewise.
21541
21542 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
21543 WM_APPCOMMAND.
21544
21545 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
21546 (syms_of_w32fns): Export and initialize it.
21547 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
21548
215492007-11-09 Chong Yidong <cyd@stupidchicken.com>
21550
21551 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
21552 twice.
21553
21554 * xdisp.c (handle_face_prop): Fix last change.
21555
215562007-11-09 Richard Stallman <rms@gnu.org>
21557
21558 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
21559 not just for after-strings and before-strings.
21560 Call face_for_overlay_string and pass the overlay to it.
21561 (handle_display_prop): Determine whether property came from an overlay.
21562 Pass OVERLAY arg to handle_single_display_spec.
21563 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
21564 (load_overlay_strings): Fill in it->string_overlays.
21565 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
21566
21567 * xfaces.c (face_for_overlay_string): Function renamed from
21568 face_at_buffer_position_no_overlays, and add arg OVERLAY.
21569
21570 * dispextern.h (struct it): New elt string_overlays.
21571 New elt from_overlay, also in stack.
21572 Rearrange a few elements.
21573 (face_for_overlay_string): Decl renamed from
21574 face_at_buffer_position_no_overlays, and add argument.
21575
215762007-11-09 Richard Stallman <rms@gnu.org>
21577
21578 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
21579 to get the base face for an overlay string.
21580
21581 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
21582
21583 * xfaces.c (face_at_buffer_position_no_overlays): New function.
21584
21585 * xdisp.c (handle_stop): Move some code out of loop.
21586
215872007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21588
21589 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
21590 Fix conversion from Lisp object to ATSUFontID.
21591
215922007-11-09 Jason Rumney <jasonr@gnu.org>
21593
21594 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
21595
215962007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21597
21598 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
21599 Don't assume regions are aligned to page boundary.
21600 (print_load_command_name): Add LC_UUID if defined.
21601
216022007-11-09 Richard Stallman <rms@gnu.org>
21603
21604 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
21605
216062007-11-07 Jason Rumney <jasonr@gnu.org>
21607
21608 * s/windows95.h: Remove.
21609
216102007-11-06 Jan Djärv <jan.h.d@swipnet.se>
21611
21612 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
21613 abort with a message on unhandled store_type values.
21614
216152007-11-01 Jan Djärv <jan.h.d@swipnet.se>
21616
21617 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
21618 Remove HAVE_X11R5 and HAVE_X11R4.
21619
216202007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
21621
21622 * Makefile.in: Remove references to sunfns.c and sunfns.o.
21623
216242007-11-01 Johan Bockgård <bojohan@gnu.org>
21625
21626 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
21627 Don't set s->stippled_p here, since it has already been set by
21628 x_set_glyph_string_gc from x_draw_glyph_string.
21629
216302007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
21631
21632 * sunfns.c: Remove file.
21633
21634 * m/sun386.h:
21635 * m/sun2.h:
21636 * m/sparc.h: Remove Sun windows code.
21637
216382007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
21639
21640 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
21641 (init_keyboard): Set current_kboard's window-system to nil.
21642 (tty_read_avail_input): Typo.
21643 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
21644
216452007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
21646
21647 * s/usg5-4.h:
21648 * s/usg5-3.h:
21649 * s/ptx.h:
21650 * m/is386.h:
21651 * m/ibmps2-aix.h:
21652 * Makefile.in: Remove all mentions of X10.
21653
21654 * dispnew.c (syms_of_display): Don't mention version 10.
21655
216562007-10-28 Juanma Barranquero <lekktu@gmail.com>
21657
21658 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
21659 ($(BLD)/abbrev.$(O)): Remove.
21660
216612007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
21662
21663 Rewrite abbrev.c in Elisp.
21664 * image.c (Qcount): Don't declare as extern.
21665 (syms_of_image): Initialize and staticpro `Qcount'.
21666 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
21667 * emacs.c (main): Don't call syms_of_abbrev.
21668 * Makefile.in (obj): Remove abbrev.o.
21669 (abbrev.o): Remove.
21670 * abbrev.c: Remove.
21671
216722007-10-26 Martin Rudalics <rudalics@gmx.at>
21673
21674 * window.c (window_min_size_2): Don't count header-line.
21675
216762007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
21677
21678 * frame.h (struct frame): Move all bit fields after the first bit
21679 field to take advantage of the available space. Group all the
21680 chars together to reduce wasted space due to padding.
21681
216822007-10-26 Juanma Barranquero <lekktu@gmail.com>
21683
21684 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
21685
21686 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
21687 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
21688 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
21689 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
21690 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
21691 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
21692 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
21693 (last_marked, mark_object_loop_halt): Make static.
21694
21695 * frame.c (syms_of_frame) <delete-frame-functions>:
21696 Fix typo in docstring.
21697
216982007-10-25 Juanma Barranquero <lekktu@gmail.com>
21699
21700 * w32.c (init_environment): Fix tiny memory leak.
21701 (w32_get_resource): Remove unused variable `ok'.
21702
217032007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
21704
21705 Make `window-system' into a keyboard-local variable (rather than
21706 frame-local as done originally by multi-tty).
21707
21708 * keyboard.h (struct kboard): Add Vwindow_system.
21709 * keyboard.c (init_kboard): Set a default for Vwindow_system.
21710 (mark_kboards): Mark Vwindow_system.
21711
21712 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
21713 (init_display): Don't set the obsolete `window-system' frame-param.
21714
21715 * xterm.c (x_term_init):
21716 * w32term.c (w32_create_terminal):
21717 * term.c (init_tty): Set Vwindow_system.
21718 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
21719 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
21720
21721 * xfns.c (Fx_create_frame, x_create_tip_frame):
21722 * w32fns.c (Fx_create_frame, x_create_tip_frame):
21723 * macfns.c (Fx_create_frame):
21724 Don't set the obsolete `window-system' frame-param.
21725
21726 * frame.h (Qwindow_system): Remove.
21727 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
21728 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
21729
217302007-10-24 Richard Stallman <rms@gnu.org>
21731
21732 * frame.c (x_figure_window_size): For fullscreen case,
21733 set USPosition | PPosition without clobbering rest of window_prompting.
21734
21735 * keyboard.c (Fcurrent_idle_time): Doc fix.
21736
21737 * print.c (Fwith_output_to_temp_buffer): Doc fix.
21738
217392007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
21740
21741 * process.c (unwind_request_sigio): Only define if __ultrix__.
21742
21743 * callproc.c (child_setup): Remove spurious *.
21744
21745 * lisp.h (Fget_text_property): Declare.
21746 (have_menus_p): Declare it here rather than in sys-dep header files.
21747 * macterm.h (have_menus_p):
21748 * msdos.h (have_menus_p):
21749 * xterm.h (have_menus_p): Remove.
21750
21751 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
21752 (Fmake_variable_frame_local): Just check the variable's const-ness
21753 rather than checking nil or t.
21754
217552007-10-22 Jason Rumney <jasonr@gnu.org>
21756
21757 * w32fns.c: Include math.h.
21758 (w32_abort): Declaration moved to nt/config.nt.
21759
21760 * s/ms-w32.h (HAVE_STDLIB_H): Define.
21761 (abort): Redefinition moved to nt/config.nt.
21762
21763 * m/windowsnt.h: Remove.
21764
217652007-10-22 Juanma Barranquero <lekktu@gmail.com>
21766
21767 * emacs.c (Fdump_emacs): Fix typo in message.
21768 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
21769 <installation-directory>: Reflow docstring.
21770
217712007-10-22 Juri Linkov <juri@jurta.org>
21772
21773 * minibuf.c: Allow minibuffer default to be a list of default values.
21774 With empty input use the first element of this list as returned default.
21775 (string_to_object)
21776 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
21777 (read_minibuf): If defalt is cons, set histstring to its car.
21778 (Fread_string): If default_value is cons, set val to its car.
21779 (Fread_buffer): If def is cons, use its car.
21780 (Fcompleting_read): If defalt is cons, set val to its car.
21781
217822007-10-21 Michael Albinus <michael.albinus@gmx.de>
21783
21784 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
21785
217862007-10-20 Juanma Barranquero <lekktu@gmail.com>
21787
21788 * doc.c (Fdocumentation): Check for advice in all cases.
21789
217902007-10-19 Chong Yidong <cyd@stupidchicken.com>
21791
21792 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
21793
217942007-10-19 Richard Stallman <rms@gnu.org>
21795
21796 * doc.c (Fdocumentation): Check for and handle an advised function.
21797
217982007-10-19 Juanma Barranquero <lekktu@gmail.com>
21799
21800 * process.c (Fset_process_filter): Doc fix.
21801
218022007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
21803
21804 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
21805 which caused key-translation-map to applied repeatedly (thus breaking
21806 double-mode).
21807
218082007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21809
21810 * xselect.c (x_own_selection, x_handle_selection_clear)
21811 (x_clear_frame_selections):
21812 * w32menu.c (list_of_panes, list_of_items):
21813 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
21814 * textprop.c (validate_plist, interval_has_all_properties)
21815 (interval_has_some_properties, interval_has_some_properties_list)
21816 (add_properties, text_property_list):
21817 * process.c (Fget_buffer_process, list_processes_1, status_notify):
21818 * minibuf.c (Fassoc_string):
21819 * macselect.c (x_own_selection, x_clear_frame_selections)
21820 (Fx_disown_selection_internal):
21821 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
21822 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
21823
218242007-10-17 Chong Yidong <cyd@stupidchicken.com>
21825
21826 * process.c: Link to libs for calling res_init() if available.
21827 (Fmake_network_process): Call res_init() before getaddrinfo or
21828 gethostbyname, if possible.
21829
218302007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21831
21832 * lread.c (read1): Set pvectype for char_tables.
21833
21834 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
21835 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
21836 Add type checks.
21837 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
21838
21839 * alloc.c (free_misc): Use XMISCTYPE.
21840 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
21841
218422007-10-17 Glenn Morris <rgm@gnu.org>
21843
21844 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
21845 (syms_of_minibuf): Add Qcompletion_ignore_case.
21846 * dired.c (Qcompletion_ignore_case): Change to external.
21847 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
21848 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
21849 (Fread_file_name): Use it rather than intern'ing.
21850
21851 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
21852 (Fread_coding_system): Ignore case of user input.
21853
218542007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21855
21856 * xdisp.c (handle_display_prop): Ignore display specs after
21857 replacing one when string text is being replaced.
21858 (handle_single_display_spec): Pretend as if characters with display
21859 property haven't been consumed only when buffer text is being replaced.
21860
218612007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
21862
21863 * xfns.c (Fx_create_frame, Fx_display_list):
21864 * window.c (window_fixed_size_p, enlarge_window)
21865 (shrink_window_lowest_first):
21866 * macterm.c (init_font_name_table):
21867 * macfns.c (Fx_create_frame, Fx_display_list):
21868 * lread.c (close_load_descs):
21869 * keyboard.c (read_char_x_menu_prompt):
21870 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
21871 * coding.c (code_convert_region_unwind): Test the type of an object
21872 rather than just !NILP before extracting data from it.
21873
21874 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
21875
21876 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
21877 (XMISCANY): New macro.
21878 (XMISCTYPE): Use it.
21879 (struct Lisp_Misc_Any): New type.
21880 (union Lisp_Misc): Use it.
21881 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
21882 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
21883 (find_symbol_value, set_internal, default_value, Fset_default)
21884 (Fmake_variable_buffer_local, Fmake_local_variable)
21885 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
21886 (Flocal_variable_if_set_p, Fvariable_binding_locus):
21887 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
21888 * alloc.c (allocate_buffer): Set the size and tag.
21889 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
21890 Use XMISCANY.
21891 (die): Follow the GNU convention for error messages.
21892 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
21893 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
21894 tag any more.
21895 (set_buffer_internal_1):
21896 * frame.c (store_frame_param):
21897 * eval.c (specbind):
21898 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
21899
21900 * doc.c (Fsnarf_documentation): Simplify.
21901
219022007-10-14 Juanma Barranquero <lekktu@gmail.com>
21903
21904 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
21905 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
21906
219072007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
21908
21909 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
21910
219112007-10-14 Juanma Barranquero <lekktu@gmail.com>
21912
21913 * eval.c (do_autoload): Don't save autoloads.
21914
21915 * data.c (Ffset): Save autoload of the function being set.
21916
219172007-10-07 John Paul Wallington <jpw@pobox.com>
21918
21919 * xfns.c (x_create_tip_frame): Set the `display-type' frame
21920 parameter before setting up faces.
21921
219222007-10-13 Eli Zaretskii <eliz@gnu.org>
21923
21924 * ccl.c (Fregister_code_conversion_map):
21925 * keyboard.c (append_tool_bar_item): Reformat last change.
21926
21927 * lisp.h (eabs): Rename from `abs'. All callers changed.
21928
219292007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
21930
21931 * buffer.c (add_overlay_mod_hooklist):
21932 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
21933 * fontset.c (make_fontset):
21934 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
21935 (append_tool_bar_item):
21936 * macmenu.c (grow_menu_items):
21937 * w32menu.c (grow_menu_items):
21938 * xmenu.c (grow_menu_items): Use larger_vector.
21939
219402007-10-13 Eli Zaretskii <eliz@gnu.org>
21941
21942 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
21943 selected frame'' on MSDOS).
21944
219452007-10-12 Martin Rudalics <rudalics@gmx.at>
21946
21947 * frame.c (Qexplicit_name): New variable.
21948 (x_report_frame_params): Report it in parameter alist.
21949 (syms_of_frame): Intern and staticpro it.
21950
219512007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
21952
21953 * macfns.c (x_create_tip_frame): Set terminal for frame.
21954
219552007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
21956
21957 * frame.c (Qenvironment): Remove.
21958 (syms_of_frame) <Qenvironment>: Don't initialize.
21959 (Fdelete_frame): Don't treat the `environment' param specially.
21960 * frame.h (Qenvironment): Don't declare.
21961 * callproc.c (set_initial_environment): Don't set unused frame param.
21962
21963 * frame.c (Fframe_with_environment): Remove.
21964 (syms_of_frame) <Sframe_with_environment>: Don't declare.
21965
21966 * lisp.h (Fframe_with_environment): Don't declare.
21967
219682007-10-10 Juanma Barranquero <lekktu@gmail.com>
21969
21970 * indent.c (indent_tabs_mode, last_known_column)
21971 (last_known_column_modified): Make static.
21972 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
21973
219742007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
21975
21976 * puresize.h (BASE_PURESIZE): Increase to 1170000.
21977
219782007-10-09 Jason Rumney <jasonr@gnu.org>
21979
21980 * w32term.c (x_set_window_size): Disable code that attempts to tell
21981 Lisp code about a size change before it actually happens.
21982
219832007-10-09 Richard Stallman <rms@gnu.org>
21984
21985 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
21986 return HANDLED_RETURN.
21987
219882007-10-08 Martin Rudalics <rudalics@gmx.at>
21989
21990 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
21991 when there's an unread command event.
21992
21993 * frame.c (focus_follows_mouse): Move here from frame.el to allow
21994 window autoselection act appropriately when leaving selected frame.
21995 (syms_of_frame): Initialize focus_follows_mouse.
21996 * frame.h (focus_follows_mouse): Extern it.
21997 * macterm.c (XTread_socket): When focus_follows_mouse is nil
21998 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
21999 * msdos.c (dos_rawgetc): Likewise.
22000 * w32term.c (w32_read_socket): Likewise.
22001 * xterm.c (handle_one_xevent): Likewise.
22002 * xdisp.c (syms_of_xdisp): In doc-string of
22003 mouse-autoselect-window mention focus-follows-mouse.
22004
220052007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22006
22007 * macterm.c (mac_load_query_font): Fix missing return value.
22008 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
22009 Add BLOCK_INPUT.
22010
220112007-10-08 Richard Stallman <rms@gnu.org>
22012
22013 * xdisp.c (get_window_cursor_type): Implement documented behavior
22014 for cursor-in-non-selected-windows = t.
22015
220162007-10-08 Jason Rumney <jasonr@gnu.org>
22017
22018 * w32.c (w32_get_resource): Always close registry keys.
22019
220202007-10-08 Jason Rumney <jasonr@gnu.org>
22021
22022 * makefile.w32-in (LIBS): Add COMCTL32.
22023
22024 * w32fns.c (globals_of_w32fns): Init common controls.
22025
220262007-10-08 Richard Stallman <rms@gnu.org>
22027
22028 * image.c (our_memory_buffer): Rename from omfib_buffer.
22029
220302007-10-08 Richard Stallman <rms@gnu.org>
22031
22032 * buffer.c (Foverlays_at): Doc fix.
22033
220342007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
22035
22036 * fns.c (Fplist_put): Preserve uneven tail data.
22037
220382007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
22039
22040 * termhooks.h (enum event_kind): Remove trailing comma.
22041
22042 * frame.h (enum): Remove trailing comma.
22043
220442007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
22045
22046 * w32proc.c (delete_child): Don't terminate threads of zombies.
22047
220482007-10-08 Martin Rudalics <rudalics@gmx.at>
22049
22050 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
22051
22052 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
22053 last-repeatable-command.
22054 (init_kboard): Initialize Vlast_repeatable_command.
22055 (command_loop_1): Set it to real_this_command unless that was
22056 bound to an input event.
22057 (mark_kboards): Mark it.
22058
220592007-10-08 Richard Stallman <rms@gnu.org>
22060
22061 * eval.c (condition-case): Doc fix.
22062
220632007-10-08 Masatake YAMATO <jet@gyve.org>
22064
22065 * xfaces.c (tty_supports_face_attributes_p): Fix code
22066 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
22067 was copied and not edited.
22068
220692007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
22070
22071 Add new `input-decode-map' keymap and use it for terminal
22072 escape sequences.
22073 * keyboard.h (struct kboard): Add Vinput_decode_map.
22074 Remove Vlocal_key_translation_map.
22075 * keyboard.c (read_key_sequence): Add support for input-decode-map.
22076 (init_kboard): Init input-decode-map.
22077 Replace local-key-translation-map back with key-translation-map.
22078 (syms_of_keyboard): Declare input-decode-map.
22079 Remove local-key-translation-map. Update docstrings.
22080 (mark_kboards): Mark Vinput_decode_map.
22081 Don't mark Vlocal_key_translation_map.
22082 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
22083 Replace local-key-translation-map back with key-translation-map.
22084 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
22085 Bind in input-decode-map rather than function-key-map.
22086
22087 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
22088 This was made redundant by the previous introduction of XSETPVECTYPE.
22089
220902007-10-09 Richard Stallman <rms@gnu.org>
22091
22092 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
22093
220942007-09-29 Richard Stallman <rms@gnu.org>
22095
22096 * eval.c (internal_condition_case_2, internal_condition_case_1)
22097 (internal_condition_case): Reenable abort if x_catching_errors ()
22098 to see if that really happens and why.
22099
221002007-10-06 Andreas Schwab <schwab@suse.de>
22101
22102 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
22103
221042007-10-04 Juanma Barranquero <lekktu@gmail.com>
22105
22106 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
22107
221082007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
22109
22110 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
22111
221122007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
22113
22114 * window.h (struct window):
22115 * window.c (struct save_window_data, struct saved_window):
22116 * termhooks.h (struct terminal):
22117 * process.h (struct Lisp_Process):
22118 * frame.h (struct frame):
22119 * buffer.h (struct buffer):
22120 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
22121 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
22122 The size field of (pseudo)vectors is now unsigned.
22123 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
22124
22125 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
22126 Turn `count' into an integer.
22127
22128 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
22129 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
22130 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
22131 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
22132 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
22133
22134 * alloc.c (allocate_pseudovector): New fun.
22135 (ALLOCATE_PSEUDOVECTOR): New macro.
22136 (allocate_window, allocate_terminal, allocate_frame)
22137 (allocate_process): Use it.
22138 (mark_vectorlike): New function.
22139 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
22140 (mark_terminals): Use it.
22141 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
22142 (Fmake_byte_code): Use XSETPVECTYPE.
22143
22144 * frame.c (Fframe_parameters): Minor simplification.
22145
22146 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
22147
22148 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
22149
22150 * buffer.c (Fget_buffer_create, init_buffer_once):
22151 * lread.c (defsubr):
22152 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
22153
22154 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
22155 defined differently in the m/*.h files.
22156 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
22157 (XSETPVECTYPE): New macro.
22158 (XSETPSEUDOVECTOR): Use it.
22159
22160 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
22161 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
22162
22163 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
22164 * lread.c (defvar_per_buffer):
22165 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
22166
22167 * window.c (candidate_window_p): Only consider as visible frames that
22168 are on the same terminal.
22169
22170 * m/ibms390x.h (MARKBIT): Remove unused macro.
22171
221722007-10-01 Juanma Barranquero <lekktu@gmail.com>
22173
22174 * lread.c (Fload): Fix typo in docstring.
22175
221762007-10-01 Michaël Cadilhac <michael@cadilhac.name>
22177
22178 * floatfns.c (Fexpt): Manually check for overflows, so that a power
22179 of a non-zero value can't yield zero.
22180
221812007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
22182
22183 * term.c (term_clear_mouse_face, term_mouse_highlight)
22184 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
22185
22186 * print.c (safe_debug_print): Use XHASH.
22187
22188 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
22189 Lisp elements such as tags.
22190 (XHASH): New macro.
22191 (EQ): Use it.
22192 (SREF, SSET, STRING_COPYIN): Use SDATA.
22193 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
22194
22195 * alloc.c (mark_terminal): Remove left-over declaration.
22196 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
22197 (allocate_vectorlike): Remove type argument. Adjust callers.
22198 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
22199 Only handle the one remaining MEM_TYPE_VECTORLIKE.
22200
22201 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
22202 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
22203 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
22204 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
22205 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
22206 Use them.
22207
22208 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
22209 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
22210 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
22211
222122007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
22213
22214 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
22215 loaded by default.
22216
222172007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
22218
22219 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
22220 on this tty.
22221 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
22222
22223 * term.c (mouse_face_window): Rename from Qmouse_face_window.
22224 Update all users.
22225 (handle_one_term_event): Use Gpm_DrawPointer.
22226 (Fgpm_mouse_start): Rename from Fterm_open_connection.
22227 Signal errors instead of returning nil. Always return nil.
22228 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
22229 Make it a noop if gpm-mouse was not activated.
22230 (syms_of_term): Update names.
22231
222322007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
22233
22234 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
22235 (init_sys_modes): Check that gpm_tty is the current tty.
22236
22237 * alloc.c (allocate_terminal): Set the vector size to only count the
22238 lisp fields. Initialize those to nil.
22239 (mark_object): Don't treat terminals specially.
22240 (mark_terminal): Remove.
22241 (mark_terminals): Use mark_object instead.
22242
22243 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
22244 the GC to the beginning.
22245
22246 * indent.h:
22247 * indent.c: Use EMACS_INT for ints coming from Elisp data.
22248
22249 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
22250
222512007-09-25 Jason Rumney <jasonr@gnu.org>
22252
22253 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
22254
22255 * w32console.c (create_w32cons_output): Remove.
22256
22257 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
22258
22259 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
22260 (reset_sys_modes): Use reset_terminal_modes_hook.
22261
222622007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
22263
22264 * eval.c (do_autoload): Don't output any message.
22265
222662007-09-24 Juri Linkov <juri@jurta.org>
22267
22268 * emacs.c (standard_args): Change priority of "--no-splash"
22269 from 40 to 3. Add "--no-desktop" with the same priority.
22270
222712007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
22272
22273 * alloc.c (gc_sweep): Check cons cell mark bits word by word
22274 and optimize the case where they are all 1.
22275
222762007-09-23 Johannes Weiner <hannes@saeurebad.de>
22277
22278 * lisp.h (abs): Define if not defined.
22279 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
22280 Don't define `abs', since it's defined in lisp.h.
22281
222822007-09-22 Eli Zaretskii <eliz@gnu.org>
22283
22284 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
22285 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
22286 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
22287 (init_tty): Use DEV_TTY instead of "/dev/tty".
22288 [WINDOWSNT]: No need to protect from NAME arg being null.
22289
222902007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
22291
22292 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
22293 up the tty state.
22294
222952007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
22296
22297 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
22298 (gpm_tty): Change its type.
22299 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
22300 (gpm_tty): Change its type and initialize it.
22301 (Fterm_open_connection): Check the frame is indeed a tty.
22302 Use the new gpm_tty.
22303 (Fterm_close_connection): Use the new gpm_tty.
22304 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
22305 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
22306
223072007-09-21 Juanma Barranquero <lekktu@gmail.com>
22308
22309 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
22310 underline_color, to draw strike-through.
22311
223122007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
22313
22314 * lisp.h (allocate_terminal): Declare.
22315
22316 * window.c (candidate_window_p): Consider frames that are being placed
22317 by the user as somewhere between visible and iconified.
22318 (window_loop): Prefer windows on the current frame.
22319 (Fselect_window): Move the use of select-frame to the beginning so we
22320 can just delegate all the work (it'll call us back anyway).
22321
22322 * frame.c (Qdisplay_environment_variable):
22323 * frame.h (Qdisplay_environment_variable): Delete.
22324
22325 * .gdbinit (xbacktrace): Print the arg's address rather than the value
22326 of the first arg, since that value may be a union.
22327
22328 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
22329 parameter rather than Qdisplay_environment_variable. If all else
22330 fails, look for DISPLAY in initial-environment.
22331
223322007-09-21 Glenn Morris <rgm@gnu.org>
22333
22334 * Makefile.in (emacstool): Remove target.
22335 (lisp, shortlisp): Remove termdev.elc.
22336
223372007-09-21 Markus Triska <markus.triska@gmx.at>
22338
22339 * xterm.c (x_delete_display): Compile session management conditionally.
22340
223412007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
22342
22343 * callproc.c (getenv_internal_1): New function.
22344 (getenv_internal): Use it.
22345 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
22346
22347 * terminal.c (get_terminal): Don't accept ints to represent terminals.
22348 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
22349 (Fset_terminal_parameter): Work with dead terminals as well.
22350 (Fmodify_terminal_parameters): Remove.
22351
22352 * terminal.c (get_terminal): Handle terminals.
22353 Make sure the terminal returned is live.
22354 (create_terminal): Use allocate_terminal.
22355 (mark_terminals): Move to alloc.c.
22356 (delete_terminal): Use terminal->name as liveness status.
22357 NULL out fields after freeing their contents.
22358 Don't deallocate the object.
22359 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
22360 rather than an int.
22361 (Fterminal_live_p): Accept non-integer arguments.
22362 (Fterminal_list): Return terminal objects rather than an ints.
22363
22364 * alloc.c (enum mem_type): New member for `terminal' objects.
22365 (allocate_terminal): New function.
22366 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
22367 Handle terminals.
22368 (mark_terminal): New fun.
22369 (mark_terminals): Move from terminal.c.
22370
22371 * term.c (get_tty_terminal): Don't treat output_initial specially.
22372 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
22373 (delete_tty): Use terminal->name as liveness status.
22374
22375 * termhooks.h (struct terminal): Make it into a pseudovector.
22376 Remove `deleted' replaced by checking `name's nullness.
22377
22378 * print.c (print_object): Handle terminals.
22379
22380 * lisp.h (enum pvec_type): New `terminal' pseudovector.
22381 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
22382
22383 * frame.c (make_terminal_frame):
22384 * keyboard.c (tty_read_avail_input):
22385 * w32term.c (x_delete_terminal):
22386 * xfns.c (Fx_create_frame, x_create_tip_frame):
22387 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
22388
223892007-09-20 Glenn Morris <rgm@gnu.org>
22390
22391 * process.c (Fmake_network_process): Doc fix.
22392
223932007-09-19 Jason Rumney <jasonr@gnu.org>
22394
22395 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
22396
223972007-09-19 Michaël Cadilhac <michael@cadilhac.name>
22398
22399 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
22400 Fix a C warning regarding variable constness.
22401
22402 * xterm.c (handle_one_xevent): Fix a C warning.
22403
224042007-09-18 Jason Rumney <jasonr@gnu.org>
22405
22406 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
22407
224082007-09-17 Jan Djärv <jan.h.d@swipnet.se>
22409
22410 * gtkutil.c (gdpy_def): New variable.
22411 (xg_initialize): Initialize gdpy_def.
22412 (xg_display_close): If no other display exists, set gdpy_def to a
22413 new connection.
22414
224152007-09-16 Jan Djärv <jan.h.d@swipnet.se>
22416
22417 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
22418 when we have no file name for the icon.
22419 (xg_tool_bar_expose_callback): Remove.
22420 (xg_create_tool_bar): Don't connect expose signal to
22421 xg_tool_bar_expose_callback.
22422 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
22423
224242007-09-16 Andreas Schwab <schwab@suse.de>
22425
22426 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
22427 values instead of zapping them.
22428
224292007-09-14 Glenn Morris <rgm@gnu.org>
22430
22431 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
22432 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
22433 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
22434 scope and rename to omfib_buffer for clarity.
22435 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
22436
224372007-09-14 Kenichi Handa <handa@m17n.org>
22438
22439 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
22440
224412007-09-13 Jason Rumney <jasonr@gnu.org>
22442
22443 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
22444
22445 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
22446
22447 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
22448 (mac_term_init): Call here instead, passing rif.
22449
224502007-09-13 Glenn Morris <rgm@gnu.org>
22451
22452 * s/hpux.h: No longer define `static' as nothing.
22453
224542007-09-13 Johan Bockgård <bojohan@gnu.org>
22455
22456 * callint.c (Fcall_interactively): Remove unused var `fun'.
22457
224582007-09-12 Romain Francoise <romain@orebokech.com>
22459
22460 * window.c (prefer_window_split_horizontally, display_buffer):
22461 Revert 2007-09-08 change.
22462
224632007-09-12 Glenn Morris <rgm@gnu.org>
22464
22465 * alloca.c: Remove file.
22466 * Makefile.in (alloca): Do not undef.
22467 (allocaobj, alloca.o): Remove.
22468 (otherobj): Remove allocaobj.
22469 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
22470 * regex.c (C_ALLOCA): Remove all references and code that was only
22471 used when this was defined.
22472 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
22473 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
22474 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
22475
22476 * Makefile.in (SOURCES, unlock, relock): Delete.
22477
22478 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
22479 (menu_grab_callback): All uses changed.
22480
22481 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
22482 (x_reply_selection_request): All uses changed.
22483
224842007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
22485
22486 * lread.c (load_warn_old_style_backquotes): Change message to look
22487 better when it appears in the middle of byte-compiler messages.
22488
224892007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
22490
22491 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
22492
22493 * xterm.c (x_create_terminal): Add comment.
22494
22495 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
22496
224972007-09-10 Richard Stallman <rms@gnu.org>
22498
22499 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
22500
225012007-09-10 Michaël Cadilhac <michael@cadilhac.name>
22502
22503 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
22504 (DEFUN): Document `intspec', use it instead of `prompt'.
22505
22506 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
22507
22508 * data.c (Finteractive_form): If the interactive specification starts
22509 with a `(', use it as a Lisp form.
22510
22511 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
22512 name and file modes.
22513
22514 * callint.c (Fcall_interactively): Comment fixes.
22515
225162007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
22517
22518 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
22519 and compiled functions.
22520
225212007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
22522
22523 * window.c (prefer_window_split_horizontally): New variable.
22524 (display_buffer): Consider splitting window horizontally depending
22525 on prefer_window_split_horizontally.
22526
225272007-09-08 Eli Zaretskii <eliz@gnu.org>
22528
22529 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
22530
225312007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
22532
22533 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
22534
22535 * frame.c (x_set_frame_parameters): Check number is positive before
22536 using XFASTINT.
22537
22538 * window.c (freeze_window_start): Don't presume selected_window holds
22539 a window object.
22540 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
22541
225422007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
22543
22544 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
22545
225462007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
22547
22548 * window.c (Vsplit_window_preferred_function): New var.
22549 (Fdisplay_buffer): Use it.
22550 (syms_of_window): Export, and initialize it.
22551
225522007-09-06 Pixel <pixel@mandriva.com> (tiny change)
22553
22554 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
22555
225562007-09-06 Glenn Morris <rgm@gnu.org>
22557
22558 * gtkutil.c (menu_grab_callback) <cnt>:
22559 * xselect.c (x_reply_selection_request) <cnt>: Move static
22560 variable to file scope.
22561
225622007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
22563
22564 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
22565 consistent values of selected_frame and selected_window.
22566
225672007-09-04 Jason Rumney <jasonr@gnu.org>
22568
22569 * w32console.c (initialize_w32_display): Zero unused hooks.
22570
225712007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
22572
22573 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
22574 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
22575
225762007-09-04 Jason Rumney <jasonr@gnu.org>
22577
22578 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
22579 in w32console.c. Set up input. Remove XXX comments that have been
22580 confirmed as correct.
22581
22582 * s/ms-w32.h (MULTI_KBOARD): Define.
22583
22584 * w32console.c (one_and_only_w32cons): Remove.
22585 (initialize_w32_display): Take terminal argument.
22586
22587 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
22588 initialize_w32_display.
22589 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
22590
22591 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
22592
22593 * keyboard.c (discard_mouse_events): Discard it.
22594 (make_lispy_event): Translate it to a lisp event.
22595 (lispy_wheel_names): Add wheel-left and right events.
22596 (syms_of_keyboard): Enlarge wheel_syms.
22597
22598 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
22599 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
22600
22601 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
22602
22603 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
22604 from WM_MOUSEHWHEEL.
22605 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
22606
22607 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
22608 terminal.
22609
22610 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
22611 keyboard for the terminal.
22612
226132007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
22614
22615 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
22616 (Vresume_tty_hook): Rename from Vresume_tty_functions.
22617 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
22618 and resume-tty-function to resume-tty-hook.
22619 (Fsuspend_tty, Fresume_tty): Use new names.
22620
226212007-09-02 Jan Djärv <jan.h.d@swipnet.se>
22622
22623 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
22624 if it starts with "n:".
22625
226262007-08-31 Jan Djärv <jan.h.d@swipnet.se>
22627
22628 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
22629
226302007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
22631
22632 * frame.h:
22633 * frame.c (Qterm_environment_variable): Remove.
22634 (syms_of_frame): Don't init and staticpro it.
22635
22636 * callproc.c (getenv_internal): Remove special case for $TERM.
22637
22638 * callproc.c (Vinitial_environment): New variable.
22639 (set_initial_environment): Initialize it.
22640 (syms_of_callproc): Declare it.
22641 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
22642 TERM under which a process runs is never related to the TERM in which
22643 Emacs is running.
22644
226452007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
22646
22647 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
22648 * s/darwin.h: ... do it here.
22649
226502007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
22651
22652 * lisp.h (set_initial_environment): Rename from set_global_environment.
22653
22654 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
22655 removed by mistake on the multi-tty branch.
22656
22657 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
22658 (Fmodify_frame_parameters): Return a value.
22659
22660 * image.c (png_load): Comment-out var only used in commented-out code.
22661
22662 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
22663 before passing it to mark_object.
22664
22665 * xfaces.c (internal_resolve_face_name): Return a value.
22666 (internal_resolve_face_name, resolve_face_name_error): Comment out.
22667
22668 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
22669 (x_icon): Comment-out var only used in commented-out code.
22670
226712007-08-29 Romain Francoise <romain@orebokech.com>
22672
22673 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
22674 QUIT hasn't been provided.
22675
226762007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
22677
22678 * callproc.c (child_setup, getenv_internal): Use the
22679 display-environment-variable and term-environment-variable frame params.
22680 (set_initial_environment): Initialise Vprocess_environment.
22681
22682 * config.in: Disable multi-keyboard support on a mac.
22683
22684 * frame.c (Qterm_environment_variable)
22685 (Qdisplay_environment_variable): New variables.
22686 (syms_of_frame): Intern and staticpro them.
22687 (Fmake_terminal_frame): Disable output method test.
22688
22689 * frame.h: Declare them here.
22690
22691 * macfns.c (x_set_mouse_color): Get rif from the frame.
22692 (x_set_tool_bar_lines): Don't use updating_frame.
22693 (mac_window): Add 2 new parameters for consistency with other systems.
22694 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
22695 frame parameters following what is done in X11 and w32. Don't use
22696 FRAME_MAC_DISPLAY_INFO.
22697 (Fx_open_connection, start_hourglass): Remove window-system check.
22698 (x_create_tip_frame): Get the keyboard from the terminal.
22699
22700 * macmenu.c: Reorder includes.
22701 (Fx_popup_menu): Use terminal specific mouse_position_hook.
22702
22703 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
22704 terminal parameter.
22705 (x_clear_frame): Add a frame parameter.
22706 (note_mouse_movement): Get rif from the frame.
22707 (mac_term_init): Initialize the terminal.
22708 (mac_initialize): Make static and move terminal initialization ...
22709 (mac_create_terminal): ... to this new function.
22710
22711 * macterm.h (struct mac_display_info): Add terminal.
22712 (mac_initialize): Delete declaration.
22713
22714 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
22715
22716 * sysdep.c: Comment out text after #endif.
22717
22718 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
22719 is defined. Better initialize ttys in windows. Use terminal
22720 specific mouse_position_hook.
22721
22722 * termhooks.h (union display_info): Add mac_display_info.
22723
22724 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
22725 Set the default minibuffer frame, window_system and the rest of the
22726 frame parameters following what is done in X11.
22727
22728 * w32term.c (w32_initialize): Make static.
22729
22730 * xselect.c (x_handle_selection_clear): Only access
22731 terminal->kboard when MULTI_KBOARD is defined.
22732
22733 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
22734 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
22735
227362007-08-29 Jason Rumney <jasonr@gnu.org>
22737
22738 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
22739 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
22740
22741 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
22742 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
22743
22744 * keyboard.c (restore_kboard_configuration): Only define when
22745 MULTI_KBOARD defined.
22746
22747 * makefile.w32-in: Update dependancies from Makefile.in.
22748 (OBJ1): Add terminal.$(O)
22749
22750 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
22751 Don't define function body.
22752 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
22753
22754 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
22755
22756 * w32.c (request_sigio, unrequest_sigio): Remove.
22757
22758 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
22759 (w32con_clear_frame, w32con_clear_end_of_line)
22760 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
22761 (w32con_delete_glyphs, w32con_set_terminal_window)
22762 (scroll_line, w32_sys_ring_bell): Add frame arg.
22763 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
22764 Add terminal arg.
22765 (PICK_FRAME): Remove.
22766 (w32con_write_glyphs): Use frame specific terminal coding.
22767 (one_and_only_w32cons): New global variable.
22768 (initialize_w32_display): Use it for storing hooks.
22769 (create_w32cons_output): New function.
22770
22771 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
22772 arg a frame.
22773
22774 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
22775 Set window_system.
22776 (x_set_tool_bar_lines): Don't use updating_frame.
22777 (Fx_create_frame): Set terminal and ref count.
22778 (Fx_open_connection): Remove window-system check.
22779
22780 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
22781
22782 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
22783 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
22784 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
22785 Add frame arg.
22786 (x_delete_terminal, w32_create_terminal): New functions.
22787 (w32_term_init): Create a terminal.
22788 (w32_initialize): Move terminal specific initialization to
22789 w32_create_terminal.
22790
22791 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
22792 (w32_clear_rect, w32_clear_area): Use background from frame.
22793 (w32_display_info): Add terminal.
22794 (w32_sys_ring_bell, x_delete_display): Declare here.
22795
22796 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
22797
22798 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
22799
228002007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
22801
22802 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
22803 Fix get_named_tty calls for the controlling tty.
22804
228052007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
22806
194d44e7 22807 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
22808
228092007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
22810
22811 * term.c (tty_insert_glyphs): Add missing first parameter.
22812
228132007-08-29 Károly Lőrentey <karoly@lorentey.hu>
22814
22815 * buffer.c (Fbuffer_list, Fbury_buffer):
22816 Take frame->buried_buffer_list into account.
22817
22818 * cm.c (current_tty): New variable, for cmputc().
22819 (cmputc): Use it.
22820 (cmcheckmagic): Add tty parameter, look up terminal streams there.
22821 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
22822 (cmgoto): Add tty parameter. Pass it on to calccost().
22823 Use emacs_tputs() instead of tputs().
22824
22825 * cm.h (emacs_tputs): New macro to set current_tty, and then call
22826 tputs().
22827 (current_tty): New variable, for cmputc().
22828 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
22829
22830 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
22831 (internal_condition_case, internal_condition_case_1)
22832 (internal_condition_case_2): Don't abort when x_catching_errors.
22833
22834 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
22835 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
22836 prevent crashes caused by bogus longjmps in read_char.
22837
22838 * keymap.h (Fset_keymap_parent): Add EXFUN.
22839
22840 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
22841 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
22842 Remove redundant definition.
22843
22844 * macfns.c (x_set_mouse_color, x_make_gc):
22845 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22846
22847 * w32term.c (x_free_frame_resources):
22848 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22849 (w32_initialize): Use the accessor macros for terminal characteristics.
22850
22851 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
22852 Use the accessor macros for terminal characteristics.
22853 * msdos.c (internal_terminal_init): Use the accessor macros for
22854 terminal characteristics.
22855 (ScreenVisualBell, internal_terminal_init):
22856 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22857
22858 * termopts.h (no_redraw_on_reenter): Declare.
22859
22860 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
22861 (mark_terminals, mark_ttys): Declare.
22862 (Fgarbage_collect): Call them.
22863 (mark_object): Mark buried_buffer_list.
22864
22865 * prefix-args.c: Include stdlib.h for exit.
22866
22867 * syssignal.h: Add comment.
22868
22869 * indent.c: Include stdio.h.
22870
22871 * window.h (Vinitial_window_system): Declare.
22872 (Vwindow_system): Delete declaration.
22873
22874 * fontset.c (Finternal_char_font): Use FRAME_RIF.
22875
22876 * image.c (lookup_image): Don't initialize `c' until the xasserts
22877 have been run.
22878
22879 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
22880 FRAME_FOREGROUND_PIXEL.
22881
22882 * print.c (print_preprocess): Don't lose print_depth levels while
22883 iterating.
22884
22885 * widget.c (update_from_various_frame_slots):
22886 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22887
22888 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
22889 frames.
22890 (window_internal_height): Remove bogus make_number call.
22891 (init_window_once): Call make_terminal_frame with two zero parameters.
22892
22893 * fileio.c (Fread_file_name): Update comment.
22894
22895 * callint.c (Fcall_interactively):
22896 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
22897 Make sure it is correctly unwound.
22898
22899 * xsmfns.c (x_session_close): New function.
22900
22901 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
22902 Delete declarations.
22903
22904 * xterm.h: Remove declaration for x_fully_uncatch_errors.
22905 (x_output): Remove background_pixel and foreground_pixel fields.
22906 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
22907 (x_delete_device, x_session_close): Declare.
22908
22909 * lread.c: Include setjmp.h. Update declaration of `read_char'.
22910 (read_filtered_event): Call `read_char' with a local
22911 `wrong_kboard_jmpbuf'.
22912
22913 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
22914 Don't call single_kboard_state. Use FRAME_RIF.
22915
22916 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
22917 systems.
22918
22919 * lisp.h (set_process_environment): Rename to `set_global_environment'.
22920 (Fframe_with_environment, Fset_input_meta_mode)
22921 (Fset_quit_char): EXFUN.
22922 (x_create_device, tty_output, terminal, tty_display_info): Declare.
22923 (init_sys_modes, reset_sys_modes): Update prototypes.
22924 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
22925
22926 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
22927 Vlocal_key_translation_map, and Vkeyboard_translate_table.
22928 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
22929 Delete declarations.
22930 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
22931 (temporarily_switch_to_single_kboard, tty_read_avail_input):
22932 New declarations.
22933
22934 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
22935 already does that during init_display(). Call syms_of_keymap
22936 before syms_of_keyboard. Call `syms_of_terminal'.
22937 Call set_initial_environment, not set_process_environment.
22938 (shut_down_emacs): Call reset_all_sys_modes() instead of
22939 reset_sys_modes().
22940
22941 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
22942 (internal_resolve_face_name, resolve_face_name_error): New functions.
22943 (resolve_face_name): Protect against loops and errors thrown by Fget.
22944 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
22945 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
22946
22947 * scroll.c: Replace CURTTY() with local variables throughout the
22948 file (where applicable).
22949 (calculate_scrolling, calculate_direct_scrolling)
22950 (scrolling_1, scroll_cost): Use the accessor macros for terminal
22951 characteristics.
22952
22953 * keymap.c (Vfunction_key_map): Remove.
22954 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
22955 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
22956 (Vkey_translation_map): Remove.
22957 (syms_of_keymap): Remove DEFVAR for key-translation-map.
22958 (Fdescribe_buffer_bindings)
22959 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
22960 Update for terminal-local key-translation-map.
22961
22962 * Makefile.in (callproc.o): Update dependencies.
22963 (lisp, shortlisp): Add termdev.elc.
22964 (obj): Add terminal.o.
22965 (terminal.o): Add dependencies.
22966 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
22967 (data.o, fns.o): Add termhooks.h dependency.
22968 (SOME_MACHINE_LISP): Add dnd.elc.
22969 (minibuf.o): Fix typo.
22970 Update dependencies.
22971
22972 * data.c (do_symval_forwarding, store_symval_forwarding)
22973 (find_symbol_value): Use the selected frame's keyboard, not
22974 current_kboard.
22975
22976 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
22977 Vwindow_system.
22978
22979 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
22980 Fmenu_bar_open.
22981 (syms_of_xmenu): Update defsubr.
22982 (mouse_position_for_popup, Fx_popup_menu)
22983 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
22984 (set_frame_menubar, free_frame_menubar)
b97439ce 22985 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
22986 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
22987 an X frame.
22988
22989 * xselect.c (x_own_selection): Abort if not an X frame.
22990 (some_frame_on_display): Check if it is an X frame.
22991 (x_handle_selection_clear): Deal with MULTI_KBOARD.
22992
22993 * coding.c: Include frame.h and termhooks.h.
22994 (terminal_coding, keyboard_coding): Delete.
22995 (Fset_terminal_coding_system_internal)
22996 (Fset_keyboard_coding_system_internal)
22997 (Fkeyboard_coding_system)
22998 (Fterminal_coding_system): Add a terminal parameter.
22999 Get terminal_coding from the terminal.
23000 (init_coding_once): Don't call setup_coding_system here.
23001
23002 * dispextern.h (set_scroll_region, turn_off_insert)
23003 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
23004 (tty_clear_end_of_line, tty_setup_colors)
23005 (delete_tty, updating_frame)
23006 (produce_special_glyphs, produce_glyphs, write_glyphs)
23007 (insert_glyphs): Remove.
23008 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
23009 (tty_turn_off_highlight, get_tty_size): Add declaration.
23010 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
23011
23012 * frame.h (enum output_method): Add output_initial.
23013 (struct x_output): Delete.
23014 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
23015 Access foreground_pixel and background_pixel directly from the frame.
23016 (tty_display): Delete.
23017 (struct frame): Add buried_buffer_list, foreground_pixel,
23018 background_pixel and terminal. Delete kboard.
23019 (union output_data): Add tty.
23020 (FRAME_KBOARD): Get the kboard from the terminal.
23021 (FRAME_INITIAL_P): New macro.
23022 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
23023 (Qterm_environment_variable, Qdisplay_environment_variable)
23024 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
23025 New declarations.
23026
23027 * termchar.h (tty_output, tty_display_info): New structures.
23028 (tty_list): Declare.
23029 (FRAME_TTY, CURTTY): New macros.
23030 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
23031 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
23032 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
23033 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
23034
23035 * callproc.c: Include frame.h and termhooks.h, for terminal
23036 parameters.
23037 (add_env): New function.
23038 (child_setup): Use it.
23039 (child_setup, getenv_internal): Handle the new Vprocess_environment.
23040 (getenv_internal): Fix get_terminal_param call.
23041 (Fgetenv_internal, egetenv): Update doc.
23042 (syms_of_callproc): Initialize Vprocess_environment to nil.
23043 Register and initialize them. Remove obsolete defvars. Update doc
23044 strings.
23045 (child_setup): Handle Vlocal_environment_variables.
23046 (getenv_internal): Add terminal parameter.
23047 Handle Vlocal_environment_variables.
23048 (Fgetenv_internal): Add terminal parameter.
23049 (child_setup, getenv_internal, Fgetenv_internal): Store the local
23050 environment in a frame (not terminal) parameter. Update doc strings.
23051 (set_initial_environment): Rename from set_global_environment.
23052 Store Emacs environment in initial frame parameter.
23053
23054 * xdisp.c (redisplay_internal): Update references to
23055 `previous_terminal_frame'.
23056 (display_mode_line, Fformat_mode_line): Replace calls to
23057 `push_frame_kboard' with `push_kboard'.
23058 (get_glyph_string_clip_rects): Add extra parentheses and
23059 braces to prevent compiler warnings.
23060 (calc_pixel_width_or_height): Add xassert to check that the
23061 frame is alive. Don't call `lookup_image' on a termcap frame.
23062 (message2_nolog, message3_nolog, redisplay_internal)
23063 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
23064 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
23065 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
23066 (Fx_display_pixel_width, Fx_display_pixel_height)
23067 (Fx_display_planes, Fx_display_color_cells)
23068 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
23069 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
23070 (Fx_display_backing_store, Fx_display_visual_class)
23071 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
23072 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
23073
23074 * xfns.c (x_set_foreground_color x_set_background_color)
23075 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
23076 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23077 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
23078 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
23079 terminal that is being deleted.
23080 (Fx_create_frame): Use `store_frame_param' to set `window-system'
23081 frame parameter, and make sure it overrides any user-supplied setting.
23082 (Fx_close_connection, Fx_synchronize): Unify argument names with
23083 the rest of the DEFUNs.
23084
23085 * dispnew.c (Fsend_string_to_terminal): Update call to
23086 `get_tty_terminal'.
23087 (Fredraw_frame, Fsend_string_to_terminal)
23088 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
23089 FRAME_TERMCAP_P and FRAME_TTY.
23090 (window_change_signal): Don't believe width/height values that are
23091 impossibly small.
23092 (Vinitial_window_system): Rename from Vwindow_system.
23093 (termscript, Wcm, rif): Delete.
23094
23095 * termhooks.h (struct terminal): New struct containing the
23096 previously global text display hooks and new members NAME,
23097 DELETED and PARAM_ALIST.
23098 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
23099 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
23100 (FRAME_RIF): New macros.
23101 (get_terminal_param, get_device): New declarations.
23102 (termscript): Delete declaration.
23103
23104 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
23105 (XTflash, x_free_frame_resources, x_scroll_bar_create)
23106 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
23107 FRAME_FOREGROUND_PIXEL.
23108 (x_fully_uncatch_errors): Disable definition.
23109 (x_scroll_bar_expose): Fix reference to foreground pixel.
23110 (XTread_socket): Disable loop on all X displays.
23111 (x_delete_terminal): Don't set terminal->deleted and let
23112 delete_terminal delete the frames on the terminal.
23113 (x_delete_display): Doc update to reflect changes in
23114 delete_terminal.
23115 (x_display_info) <terminal>: Move member earlier in the struct.
23116 (deleting_tty): Remove old variable.
23117 (Fsuspend_tty): Call clear_tty_hooks.
23118 (Fresume_tty, init_tty): Call set_tty_hooks.
23119 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
23120 errors on X frames.
23121 (x_catch_errors_unwind): Abort if x_error_message is NULL.
23122 (handle_one_xevent): Initialize `f' to NULL.
23123 (x_delete_terminal, x_create_terminal): New functions.
23124 (XTset_terminal_modes, XTreset_terminal_modes)
23125 (XTread_socket, x_connection_closed, x_term_init)
23126 (x_term_init, x_delete_display): Add terminal parameter.
23127 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
23128 X connections.
23129
23130 * frame.c: Include termchar.h.
23131 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
23132 (Qwindow_system, Qenvironment, Qterm_environment_variable)
23133 (Qdisplay_environment_variable): New vars.
23134 (Fframep): Deal with output_initial.
23135 (Fframe-live-p): Doc fix.
23136 (Fwindow-system): New function.
23137 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
23138 (make_terminal_frame): Don't create frames on a terminal that is
23139 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23140 (store_frame_param): Check for found_for_frame before calling XFRAME.
23141 (Fmake_terminal_frame): Handle NULL tty names correctly.
23142 (syms_of_frame): Enhance doc string of `default-frame-alist'.
23143 (Fdelete_frame): Remove unused variable `count'. Don't allow other
23144 frames to refer to a deleted frame in their 'environment parameter.
23145 (Fframe_with_environment): New function.
23146 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
23147 (get_future_frame_param): New function.
23148 (Fmake_terminal_frame): Use it.
23149 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
23150
23151 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
23152 * sysdep.c (reset_sys_modes): Update for renames.
23153
23154 * keyboard.c (tty_read_avail_input): New function.
23155 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
23156 (syms_of_keyboard): Defsubr them.
23157 (Fset_input_meta_mode, Fset_quit_char): New functions.
23158 (Fset_input_mode): Split to above functions.
23159 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
23160 parameter. Use it in call to `read_char'.
23161 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
23162 Set wrong_kboard_jmpbuf correctly in recursive calls.
23163 Use current_kboard to access Vkeyboard_translate_table.
23164 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
23165 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
23166 Update longjmp invocations. Remember the original current_kboard,
23167 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
23168 changes it. Comment out unnecessary calls to
23169 `record_single_kboard_state' and `any_kboard_state'.
23170 Update recursive calls.
23171 (wrong_kboard_jmpbuf): Remove global variable.
23172 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
23173 Handle deleted interrupted_kboards correctly; that is a legal
23174 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
23175 and read_char calls. Abort if interrupted_kboard died in read_char.
23176 (any_kboard_state, single_kboard_state)
23177 (push_frame_kboard): Remove function.
23178 (pop_kboard): Switch out of single_kboard mode if the kboard has
23179 been deleted. Remove unused variable. Help debugging by not
23180 changing current_kboard unnecessarily. Set current_kboard to the
23181 kboard of the selected frame when the stored kboard object has
23182 been deleted before pop_kboard.
23183 (temporarily_switch_to_single_kboard): Change first parameter to a
23184 frame pointer. Throw an error when caller wants to change kboards
23185 while in single_kboard mode. Don't push_kboard if we weren't in
23186 single kboard state. Don't pop_kboard if we popped into any
23187 kboard state.
23188 (restore_kboard_configuration): Abort if pop_kboard changed the
23189 kboard in single_kboard mode. Call pop_kboard only after setting
23190 up single_kboard mode.
23191 (Frecursive_edit): Switch to single_kboard mode only in nested
23192 command loops.
23193 (cmd_error, command_loop, command_loop_1, timer_check):
23194 Comment out unnecessary call to `any_kboard_state' and
23195 `record_single_kboard_state'.
23196 (delete_kboard): Exit single_kboard mode if we have just deleted
23197 that kboard. Use FRAME_KBOARD.
23198 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
23199 `fatal_error_signal'.
23200 (record_single_kboard_state): Don't push_kboard if we weren't in
23201 single kboard state. Don't pop_kboard if we popped into any
23202 kboard state.
23203 (push_frame_kboard): Rename to push_kboard.
23204 (kbd_buffer_get_event): Use FRAME_TERMINAL.
23205 (read_avail_input): Read input from all terminals.
23206 (mark_kboards): Also mark Vkeyboard_translate_table.
23207 (kbd_buffer_store_event_hold): Simplify condition.
23208 (read_key_sequence): Reinitialize fkey and keytran at each replay.
23209 (Vkeyboard_translate_table): Move to struct kboard.
23210 (init_kboard): Initialize Vkeyboard_translate_table.
23211 (syms_of_keyboard): Use DEFVAR_KBOARD to define
23212 Vkeyboard_translate_table. Update doc strings. Update docs of
23213 local-function-key-map and function-key-map.
23214
23215 * terminal.c: New file.
23216
23217 * term.c: Include errno.h.
23218 (Vring_bell_function, device_list, initial_device)
23219 (next_device_id, ring_bell, update_begin, update_end)
23220 (set_terminal_window, cursor_to, raw_cursor_to)
23221 (clear_to_end, clear_frame, clear_end_of_line)
23222 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
23223 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
23224 (syms_of_term): Move their initialization to terminal.c.
23225 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
23226 (Ftty_display_color_cells)
23227 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
23228 (clear_tty_hooks, set_tty_hooks)
23229 (init_tty, maybe_fatal): New functions.
23230 (Ftty_type): Return nil if terminal is not on a tty instead of
23231 throwing an error. Doc update.
23232 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
23233 Doc update. Initialize new subrs and variables.
23234 (delete_tty): Use terminal->deleted.
23235 (tty_set_terminal_modes): Rename from set_terminal_modes.
23236 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
23237 (set_scroll_region): Rename to `tty_set_scroll_region'.
23238 (turn_on_insert): Rename to `tty_turn_on_insert'.
23239 (turn_off_insert): Rename to `tty_turn_off_insert'.
23240 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
23241 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
23242 (toggle_highligh): Rename to `tty_toggle_highlight'.
23243 (background_highlight): Rename to `tty_background_highlight'.
23244 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
23245 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
23246 (tty_set_scroll_region, tty_background_highlight)
23247 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
23248 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
23249 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
23250 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
23251 Add static modifier.
23252 (tty_reset_terminal_modes, tty_set_terminal_window)
23253 (tty_set_scroll_region, tty_background_highlight)
23254 (tty_highlight_if_desired, tty_cursor_to)
23255 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
23256 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
23257 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
23258 renames.
23259
232602007-08-28 Jan Djärv <jan.h.d@swipnet.se>
23261
23262 * keyboard.c: Qrtl is new.
23263 (parse_tool_bar_item): Handle :rtl keyword.
23264 (syms_of_keyboard): Intern :rtl keyword.
23265
23266 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
23267
23268 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
23269 so no Lisp code is executed.
23270 (file_for_image, find_rtl_image): New functions.
23271 (xg_get_image_for_pixmap): Use file_for_image.
23272 (update_frame_tool_bar): If direction is RTL, use RTL image if
23273 defined. Use Gtk stock images if defined.
23274
232752007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23276
23277 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
23278 for nonexistent or zero-width glyph in composition glyph.
23279
232802007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
23281
23282 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
23283
23284 * xdisp.c (Finvisible_p): New function.
23285 (syms_of_xdisp): defsubr it.
23286
232872007-08-24 Juanma Barranquero <lekktu@gmail.com>
23288
23289 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
23290 Doc fixes.
23291
232922007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23293
23294 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
23295
232962007-08-24 Martin Rudalics <rudalics@gmx.at>
23297
23298 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
23299 whether decoding has modified buffer contents.
23300
233012007-08-24 Jason Rumney <jasonr@gnu.org>
23302
23303 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
23304 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
23305 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
23306 (init_svg_functions) [HAVE_NTGUI]: New function.
23307 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
23308 (svg_load_image): Use them.
23309 (svg_load_image) [HAVE_NTGUI]: Implement background.
23310
233112007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23312
23313 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
23314 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
23315 (LIBX): Remove @RSVG_LIBS@.
23316 (LIBES): Add $(RSVG_LIBS).
23317
23318 * image.c (svg_load_image): Blend with specified background if exists.
23319 Use IMAGE_BACKGROUND. Add Mac OS Support.
23320
23321 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
23322 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
23323 Remove macros.
23324 [MAC_OSX] (socket_callback): Do nothing.
23325 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
23326 ReceiveNextEvent.
23327 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
23328 socket_callback.
23329 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
23330
233312007-08-22 Glenn Morris <rgm@gnu.org>
23332
23333 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
23334
233352007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
23336
23337 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
23338
23339 * image.c: Add support for SVG images. Some additional comments
23340 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
23341 (svg_image_p): New function to test for SVG image.
23342 (svg_load): New function to load SVG image.
23343 (svg_load_image): New function, helper for svg_load.
23344 (Qsvg): New Lisp_object.
23345 (svg_keyword_index): New enum.
23346 (svg_format): New static `image_keyword' struct.
23347 (svg_type): New static `image_type' struct.
23348 (librsvg/rsvg.h): Include it.
23349
233502007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
23351
23352 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
23353
233542007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
23355
23356 * lread.c (Qold_style_backquotes): New var.
23357 (syms_of_lread): Init and staticpro it.
23358 (load_warn_old_style_backquotes): New fun.
23359 (Fload): Use them to warn about old style backquotes.
23360 (end_of_file_error, Fload): Remove unused vars.
23361
23362 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
23363
23364 * lread.c (Vold_style_backquotes): New var.
23365 (syms_of_lread): Init and export it to Elisp.
23366 (read1): Set it when we find an old-style (back)quote.
23367
233682007-08-22 Jason Rumney <jasonr@gnu.org>
23369
23370 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
23371
233722007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
23373
23374 * puresize.h (BASE_PURESIZE): Increase to 1140000.
23375
233762007-08-19 Richard Stallman <rms@gnu.org>
23377
23378 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
23379
233802007-08-19 Andreas Schwab <schwab@suse.de>
23381
23382 * alloc.c (pure): Round PURESIZE up.
23383
233842007-08-17 Jan Djärv <jan.h.d@swipnet.se>
23385
23386 * xterm.c (handle_one_xevent): Remove check that mouse click is in
23387 active frame.
23388
233892007-08-16 Richard Stallman <rms@gnu.org>
23390
23391 * eval.c (Fcommandp): Add parens to clarify.
23392
23393 * minibuf.c (Fall_completions): Use enum for type of table.
23394
23395 * emacs.c (USAGE2): Improve text.
23396
233972007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
23398
23399 * term.c (tty_default_color_capabilities): Declare static
23400 variables in file scope, to avoid HPUX compiler problem.
23401
234022007-08-13 Jan Djärv <jan.h.d@swipnet.se>
23403
23404 * gtkutil.c (update_frame_tool_bar): Use -1 as index
23405 to gtk_toolbar_insert.
23406
234072007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
23408
23409 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
23410
23411 * insdel.c (reset_var_on_error): New fun.
23412 (signal_before_change, signal_after_change):
23413 Use it to reset (after|before)-change-functions to nil in case of error.
23414 Bind inhibit-modification-hooks to t.
23415 Don't bind (after|before)-change-functions to nil while they run.
23416
234172007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23418
23419 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
23420 filling pixmap with stippled background.
23421
234222007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23423
23424 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
23425 Don't use invisible frame as parent window for repositioning.
23426
234272007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
23428
23429 * print.c (new_backquote_output): Rename from old_backquote_output.
23430 (print): Inverse its logic (according to its name) so as to match the
23431 behavior of new_backquote_flag in lread.c.
23432
234332007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23434
23435 * gmalloc.c (posix_memalign): New function.
23436
23437 * macterm.c (frame_highlight, frame_unhighlight): Don't call
23438 ActivateControl/DeactivateControl here.
23439 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
23440 frame-notice-user-settings is non-nil.
23441 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
23442 for kEventParamFMFontStyle.
23443 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
23444 mac_pass_command_to_system and mac_pass_control_to_system here.
23445 (XTread_socket): Call ActivateControl/DeactivateControl here.
23446 (XTread_socket) [TARGET_API_MAC_CARBON]:
23447 Check mac_pass_command_to_system and mac_pass_control_to_system here.
23448 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
23449 for window repositioning.
23450
234512007-08-08 Glenn Morris <rgm@gnu.org>
23452
23453 * Replace `iff' in doc-strings and comments.
23454
234552007-08-07 Chong Yidong <cyd@stupidchicken.com>
23456
23457 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
23458
234592007-08-07 Martin Rudalics <rudalics@gmx.at>
23460
23461 * fileio.c (Finsert_file_contents): Run format-decode and
23462 after_insert_file_functions on entire buffer when REPLACE is
23463 non-nil and inhibit modification_hooks and point_motion_hooks.
23464 For consistency, run after_insert_file_functions iff something
23465 got inserted. Move signal_after_change and update_compositions
23466 after code running after_insert_file_functions. Make sure that
23467 undo_list doesn't record intermediate steps of the decoding process.
23468
234692007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23470
23471 * emacs.c (main)
23472 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
23473 Call malloc_enable_thread on interactive startup.
23474
23475 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
23476 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
23477 [USE_PTHREAD]: Conditionalize with it.
23478 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
23479 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
23480 New functions.
23481
234822007-08-06 Chong Yidong <cyd@stupidchicken.com>
23483
23484 * xdisp.c (redisplay_window): When restoring original buffer
23485 position, make sure it is still valid.
23486
23487 * image.c (png_load): Ignore png-supplied background color.
23488
234892007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23490
23491 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
23492 Use kCFAbsoluteTimeIntervalSince1970.
23493
23494 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
23495 New variable.
23496 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
23497 event loop should be quit.
23498 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
23499 Quit dialog event loop if quit_dialog_event_loop is set.
23500
23501 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
23502 (Selection): New typedef. Use instead of ScrapRef.
23503 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
23504 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
23505 (mac_clear_selection): Rename from clear_scrap.
23506 (get_flavor_type_from_symbol): New argument SEL and subsume function of
23507 scrap_has_target_type. All uses changed.
23508 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
23509 (mac_selection_has_target_p): New functions.
23510 (mac_put_selection_value): Rename from put_scrap_string.
23511 (mac_get_selection_value): Rename from get_scrap_string.
23512 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
23513 (put_scrap_private_timestamp, scrap_has_target_type)
23514 (get_scrap_private_timestamp): Remove functions.
23515 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
23516 (x_own_selection, x_get_local_selection):
23517 Use mac_valid_selection_value_p.
23518 (x_own_selection): Don't use put_scrap_private_timestamp.
23519 Record OWNERSHIP-INFO into Vselection_alist instead.
23520 (x_get_local_selection): Don't check type if request is local.
23521 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
23522 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
23523
235242007-08-04 Jan Djärv <jan.h.d@swipnet.se>
23525
23526 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
23527 add comment explaining why.
23528
235292007-08-03 Richard Stallman <rms@gnu.org>
23530
23531 * fileio.c (Fvisited_file_modtime): Use make_time.
23532
235332007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
23534
23535 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
23536 build.
23537
235382007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
23539
23540 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
23541
235422007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
23543
23544 * puresize.h (BASE_PURESIZE): Increase to 1130000.
23545
235462007-07-30 Richard Stallman <rms@gnu.org>
23547
23548 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
23549
235502007-07-29 Jan Djärv <jan.h.d@swipnet.se>
23551
23552 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
23553
235542007-07-28 Nick Roberts <nickrob@snap.net.nz>
23555
23556 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
23557 remote default-directory.
23558
23559 * buffer.c (mode-line-format): Update doc string.
23560
235612007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23562
23563 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
23564 scroll bar gap.
23565 (x_scroll_bar_create): Set bar->fringe_extended_p.
23566 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
23567 on frame edge. Check fringe background extension. Don't clear
23568 extended fringe background area.
23569
23570 * w32term.h (struct scroll_bar): New member fringe_extended_p.
23571 (w32_fill_area): Enclose multiple statements with do ... while (0).
23572
23573 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
23574 Extend fringe background to scroll bar gap.
23575 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
23576 Set bar->fringe_extended_p.
23577 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
23578 Put leftmost/rightmost scroll bars on frame edge. Check fringe
23579 background extension. Don't clear extended fringe background area.
23580
23581 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
23582 New member fringe_extended_p.
23583
235842007-07-25 Glenn Morris <rgm@gnu.org>
23585
23586 * Relicense all FSF files to GPLv3 or later.
23587
23588 * COPYING: Switch to GPLv3.
23589
235902007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
23591
23592 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
23593
23594 * data.c (Finteractive_form): Check for the presence of an
23595 `interactive-form' symbol property more thoroughly.
23596
23597 * data.c (Finteractive_form): Use an `interactive-form' property if
23598 present, analogous to the function-documentation property.
23599
236002007-07-24 Jason Rumney <jasonr@gnu.org>
23601
23602 * w32fns.c (x_real_positions): Get real position from OS instead of
23603 calculating it.
23604
236052007-07-23 Jason Rumney <jasonr@gnu.org>
23606
23607 * filelock.c (current_lock_owner): Allow for @ sign in username.
23608
236092007-07-22 Nick Roberts <nickrob@snap.net.nz>
23610
23611 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
23612 remote default-directory.
23613
23614 * buffer.c (mode-line-format): Describe above case in doc string.
23615
236162007-07-20 Eli Zaretskii <eliz@gnu.org>
23617
23618 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
23619 Define if not defined.
23620
236212007-07-18 Jason Rumney <jasonr@gnu.org>
23622
23623 * w32proc.c (w32_executable_type): Handle 64 bit executables.
23624
236252007-07-18 Richard Stallman <rms@gnu.org>
23626
23627 * data.c (Fsetq_default): Doc fix.
23628
23629 * eval.c (Fsetq): Doc fix.
23630
236312007-07-18 Juanma Barranquero <lekktu@gmail.com>
23632
23633 * coding.c (Ffind_operation_coding_system):
23634 * eval.c (For, Fand): Doc fixes.
23635 Reported by Johan Bockgård.
23636
236372007-07-18 Jan Djärv <jan.h.d@swipnet.se>
23638
23639 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
23640
23641 * xterm.h: Declare x_ewmh_activate_frame.
23642
23643 * xterm.c (x_ewmh_activate_frame): New function.
23644 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
23645
236462007-07-17 Martin Rudalics <rudalics@gmx.at>
23647
23648 * window.c (Fdisplay_buffer): If largest or LRU window is the
23649 only window, split it even if it is not eligible for splitting.
23650 This restores the original behavior broken by the 2007-07-15
23651 change.
23652
236532007-07-17 Glenn Morris <rgm@gnu.org>
23654
23655 * abbrev.c (abbrev_check_chars): New function.
23656 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
23657 Call abbrev_check_chars to check abbrev characters are word
23658 constituents. Doc fix.
23659
236602007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
23661
23662 * process.c (Fstart_process, Fmake_network_process)
23663 (read_process_output): Fix up last changes.
23664
236652007-07-16 Eli Zaretskii <eliz@gnu.org>
23666
23667 * makefile.w32-in (clean): Don't delete *~.
23668
236692007-07-16 Andreas Schwab <schwab@suse.de>
23670
23671 * window.c (Fdisplay_buffer): Use NILP.
23672 (Fset_window_scroll_bars): Likewise.
23673
236742007-07-15 Martin Rudalics <rudalics@gmx.at>
23675
23676 * window.c (window_min_size_2): New function.
23677 (window_min_size_1, size_window, Fdisplay_buffer)
23678 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
23679 windows without mode- or header-lines when window-min-height is
23680 too small.
23681 (size_window): Reset nodelete_p after testing it, following an
23682 earlier note by Kim F. Storm.
23683 (display_buffer): Do not set split_height_threshold to twice the
23684 value of window_min_height to avoid changing the value of a
23685 customizable variable. Rather explicitly check whether the
23686 height of the window that shall be splitted is at least as large
23687 as split_height_threshold.
23688 (Fwindow_full_width_p): New defun.
23689 (syms_of_window): Defsubr it.
23690
23691 * window.h: Add EXFUN for Fwindow_full_width_p.
23692
236932007-07-14 Jason Rumney <jasonr@gnu.org>
23694
23695 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
23696
236972007-07-14 Richard Stallman <rms@gnu.org>
23698
23699 * eval.c (maybe_call_debugger): New function.
23700 (find_handler_clause): Use maybe_call_debugger.
23701 Call it when the handler says `debug'.
23702 Eliminate DEBUGGER_VALUE_PTR.
23703 (Fsignal): Eliminate debugger_value.
23704 (Qdebug): New variable.
23705 (syms_of_eval): Initialize it.
23706
237072007-07-14 Juanma Barranquero <lekktu@gmail.com>
23708
23709 * eval.c (Fprogn):
23710 * keyboard.c (Ftrack_mouse):
23711 * print.c (Fwith_output_to_temp_buffer):
23712 * window.c (Fsave_window_excursion): Doc fix.
23713
237142007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
23715
23716 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
23717
237182007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
23719
23720 * process.h (struct Lisp_Process): Turn slots infd, outfd,
23721 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
23722 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
23723 read_output_delay, and read_output_skip from Lisp_Objects to ints.
23724 Remove unused encoding_carryover.
23725 * process.c: Adjust all functions accordingly.
23726
237272007-07-12 Richard Stallman <rms@gnu.org>
23728
23729 * term.c: Include unistd.h only if HAVE_UNISTD_H.
23730
237312007-07-11 Jason Rumney <jasonr@gnu.org>
23732
23733 * makefile.w32-in (LIBS): Include OLE32.
23734
23735 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
23736 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
23737
237382007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
23739
23740 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
23741 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
23742 from a Lisp_Object into a bare pointer.
23743 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
23744 Adjust the code correspondingly.
23745
23746 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
23747
23748 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
23749 (term_show_mouse_face): Remove unused var `j'.
23750 (handle_one_term_event): Remove unused vars `i' and `j'.
23751 Don't cast return value of ttyname since it's not necessary.
23752
237532007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
23754
23755 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
23756 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
23757
23758 * fns.c (map_char_table): Use an array of int for `indices' rather than
23759 an array of Lisp_Objects (which are only ever integers anyway).
23760 (Fmap_char_table): Update caller.
23761 * lisp.h: Update prototype.
23762 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
23763 * fontset.c (Ffontset_info):
23764 * casetab.c (set_case_table): Update callers.
23765
23766 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
23767
23768 * keymap.c (struct accessible_keymaps_data)
23769 (struct where_is_internal_data): New structures.
23770 (accessible_keymaps_1, where_is_internal_1): Use them to change
23771 interface to adhere to the one used by map_keymap.
23772 (Faccessible_keymaps, where_is_internal): Use map_keymap.
23773 (accessible_keymaps_char_table, where_is_internal_2): Remove.
23774
23775 * keymap.h (map_keymap_function_t): More informative prototype.
23776
237772007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
23778
23779 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
23780 (looking_at_1): Don't change search_regs and last_thing_searched
23781 if `inhibit-changing-match-data' is non-nil.
23782 (string_match_1, search_buffer, set_search_regs): Likewise.
23783 (syms_of_search): Add Lisp level definition for
23784 `inhibit-changing-match-data' and set it to nil.
23785 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
23786 start and end of the match, instead of using values in search_regs.
23787
237882007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
23789
23790 * minibuf.c (Fcompleting_read): New value `confirm-only'
23791 for `require-match'.
23792
237932007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
23794
23795 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
23796 part of the 2007-06-27 change to syms_of_fileio.
23797
237982007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23799
23800 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
23801 Check WINDOWP before using XWINDOW. Consolidate return statements.
23802
238032007-06-27 Richard Stallman <rms@gnu.org>
23804
23805 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
23806
238072007-06-27 Juanma Barranquero <lekktu@gmail.com>
23808
23809 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
23810
238112007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23812
23813 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
23814 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
23815 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
23816 (_free_internal, memalign): Use them.
23817 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
23818 Initialize to PTHREAD_MUTEX_INITIALIZER.
23819 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
23820 (morecore_nolock): Rename from morecore. All uses changed.
23821 Use only nolock versions of internal allocation functions.
23822 (_malloc_internal_nolock, _realloc_internal_nolock)
23823 (_free_internal_nolock): New functions created from
23824 _malloc_internal, _realloc_internal, and _free_internal.
23825 (_malloc_internal, _realloc_internal, _free_internal): Use them.
23826 Copy hook value to automatic variable before its use.
23827 (memalign): Copy hook value to automatic variable before its use.
23828
238292007-06-26 Kenichi Handa <handa@m17n.org>
23830
23831 * coding.c (Ffind_operation_coding_system): Docstring improved.
23832 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
23833
238342007-06-25 David Kastrup <dak@gnu.org>
23835
23836 * keymap.c (Fcurrent_active_maps): Add `position' argument.
23837 (Fwhere_is_internal): Adjust call to `current-active-maps' to
23838 cater for additional parameter.
23839
23840 * keymap.h: Adjust number of parameters to `current-active-maps'.
23841
23842 * doc.c (Fsubstitute_command_keys): Adjust call of
23843 `current-active-maps'.
23844
238452007-06-25 David Kastrup <dak@gnu.org>
23846
23847 * callint.c (Fcall_interactively): Make the parsing of interactive
23848 specs somewhat more readable.
23849
238502007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23851
23852 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
23853 to scroll bar gap also when bitmap fills fringe. Draw only foreground
23854 if extended background has already been filled.
23855
238562007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23857
23858 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
23859 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
23860
23861 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
23862 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
23863 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
23864 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
23865 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
23866 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
23867 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
23868 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
23869 Run timers during dialog popup.
23870 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
23871
238722007-06-21 Jason Rumney <jasonr@gnu.org>
23873
23874 * image.c (convert_mono_to_color_image): Swap fore and background.
23875
238762007-06-20 Jason Rumney <jasonr@gnu.org>
23877
23878 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
23879 (w32_free_bdf_font): Unmap memory not handle.
23880
238812007-06-20 Sam Steingold <sds@gnu.org>
23882
23883 * gmalloc.c (__morecore): Fix the declaration to comply with the
23884 definition.
23885
238862007-06-20 Juanma Barranquero <lekktu@gmail.com>
23887
23888 * w32term.c (w32_delete_display): Remove leftover declaration.
23889 (w32_define_cursor, w32_initialize): Make static.
23890
23891 * w32.c (_wsa_errlist): Fix typo in error message.
23892 (init_environment): Ignore any environment variable from the
23893 registry having a null value.
23894
238952007-06-20 Glenn Morris <rgm@gnu.org>
23896
23897 * Makefile.in (LIBGIF): Default to -lgif.
23898
238992007-06-17 Jason Rumney <jasonr@gnu.org>
23900
23901 * w32menu.c (add_menu_item): Don't use multibyte string functions on
23902 unicode strings.
23903
239042007-06-16 Juanma Barranquero <lekktu@gmail.com>
23905
23906 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
23907 Fix typo in docstring.
23908
239092007-06-16 Eli Zaretskii <eliz@gnu.org>
23910
23911 * w32menu.c (add_menu_item): Escape `&' characters in menu items
23912 and their keybindings.
23913
239142007-06-15 Chong Yidong <cyd@stupidchicken.com>
23915
23916 * composite.c (update_compositions): Fix last fix.
23917
239182007-06-14 Jason Rumney <jasonr@gnu.org>
23919
23920 * w32.c (get_process_times_fn): New function pointer.
23921 (globals_of_w32): Intialize it if present in kernel32.dll.
23922 (w32_get_internal_run_time): New function.
23923
23924 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
23925
239262007-06-14 Kenichi Handa <handa@etlken.m17n.org>
23927
23928 * composite.c (update_compositions): Check the validness of
23929 compositions.
23930
239312007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23932
23933 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
23934 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
23935
23936 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
23937 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
23938
23939 * macgui.h (USE_MAC_TOOLBAR): New define.
23940
23941 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
23942 Return immediately unless popup is activated.
23943
23944 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
23945 background to scroll bar gap.
23946 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
23947 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
23948 scroll bars on frame edge. Check fringe background extension.
23949 Don't clear extended fringe background area.
23950 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
23951 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
23952 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
23953 [USE_MAC_TOOLBAR]: New macros.
23954 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
23955 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
23956 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
23957 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
23958 [USE_MAC_TOOLBAR]: New functions.
23959 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
23960 manually if previous repositioning has failed.
23961 (mac_handle_keyboard_event): Use precomputed event kind.
23962 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
23963 as tool bar item click. Handle mouse movement over tool bar items.
23964
23965 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
23966 toolbar_win_gravity.
23967 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
23968 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
23969 Add externs.
23970
23971 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
23972 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
23973
239742007-06-14 Chong Yidong <cyd@stupidchicken.com>
23975
23976 * image.c (search_image_cache): Remove unused variable.
23977
239782007-06-13 Chong Yidong <cyd@stupidchicken.com>
23979
23980 * xfns.c, xmenu.c: Link to xaw3d if available.
23981
239822007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23983
23984 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
23985 frame_foreground and frame_background.
23986
23987 * image.c (lookup_image): Save frame foreground and background colors.
23988 (search_image_cache): Check if saved and current frame colors match.
23989
239902007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
23991
23992 * regex.c (regex_compile): Remove the `regnum' counter.
23993 Use bufp->re_nsub instead. Add support for \(?N:RE\).
23994
239952007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
23996
23997 * term.c: Include intervals.h to declare Fget_text_property.
23998
239992007-06-10 Jason Rumney <jasonr@gnu.org>
24000
24001 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
24002
240032007-06-08 Juanma Barranquero <lekktu@gmail.com>
24004
24005 * callint.c (Fcall_interactively):
24006 * editfns.c (Fdelete_and_extract_region):
24007 * fileio.c (Fread_file_name):
24008 * fns.c (Fmapconcat):
24009 * keyboard.c (cmd_error_internal):
24010 * keymap.c (Fkey_description):
24011 * lread.c (openp):
24012 * minibuf.c (read_minibuf):
24013 * search.c (wordify):
24014 * sunfns.c (sel_read):
24015 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
24016 * xfns.c (x_default_scroll_bar_color_parameter):
24017 * xmenu.c (menu_help_callback):
24018 * xselect.c (Fx_get_atom_name):
24019 * xterm.c (x_term_init): Use empty_unibyte_string.
24020
240212007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
24022
24023 * alloc.c (init_strings): Initialize canonical empty strings.
24024 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
24025 canonical empty string when the requested size is 0.
24026
24027 * emacs.c (empty_unibyte_string): Rename from empty_string.
24028 (empty_multibyte_string): New canonical empty string.
24029 (syms_of_emacs): Don't initialize empty_string.
24030
24031 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
24032 string, if appropriate.
24033 (empty_unibyte_string, empty_multibyte_string): New externs.
24034 (empty_string): Remove extern.
24035
24036 * lread.c (syms_of_lread): Use empty_unibyte_string.
24037
240382007-06-07 Jason Rumney <jasonr@gnu.org>
24039
24040 * s/ms-w32.h: Don't define HAVE_TZNAME.
24041
24042 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
24043
240442007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24045
24046 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
24047
24048 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
24049 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
24050
24051 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
24052 Don't call next handler.
24053 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
24054 Remove argument. Install handler to application.
24055 (set_frame_menubar): Don't change deep_p.
24056 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
24057 FRAME_OUTER_TO_INNER_DIFF_Y.
24058 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
24059 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
24060 [HAVE_DIALOGS]: New macros.
24061 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
24062 Use them.
24063 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
24064
24065 * macselect.c [MAC_OSX] (install_service_handler): Rename from
24066 init_service_handler. All callers changed. Return OSStatus value.
24067
24068 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
24069 All callers changed so as not to call SetPortWindowPort.
24070 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
24071 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
24072 mac_draw_string_common.
24073 (mac_draw_image_string_qd): Likewise.
24074 (mac_draw_string_common): Use them. Add INLINE.
24075 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
24076 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
24077 GetGlobalMouse.
24078 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
24079 and FRAME_OUTER_TO_INNER_DIFF_Y.
24080 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
24081 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
24082 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
24083 repositioning window to mac_handle_window_event.
24084 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
24085 saving window location to mac_handle_window_event
24086 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
24087 (install_menu_target_item_handler): Remove argument in extern.
24088 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
24089 Also accept command events.
24090 (do_keystroke): New function created from XTread_socket.
24091 (init_command_handler): Remove functions.
24092 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
24093 and save window location by kEventWindowShowing and kEventWindowHiding
24094 handlers here. Don't call next handler for window state change and
24095 focus events.
24096 (mac_handle_application_event, mac_handle_keyboard_event)
24097 [TARGET_API_MAC_CARBON]: New functions.
24098 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
24099 kEventWindowShowing and kEventWindowHiding events. Move installation
24100 of mouse, font, text input and menu target item handlers to
24101 install_application_handler.
24102 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
24103 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
24104 New function.
24105 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
24106 Register it.
24107 (XTread_socket) [TARGET_API_MAC_CARBON]:
24108 Consolidate SendEventToEventTarget calls.
24109 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
24110 Move application activation handler to mac_handle_application_event.
24111 Move keyboard handler to mac_handle_keyboard_event.
24112 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
24113 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
24114 init_command_handler. Call install_application_handler.
24115
24116 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
24117 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
24118
241192007-06-07 Glenn Morris <rgm@gnu.org>
24120
24121 * emacs.c (main): Use `emacs-copyright' in --version output.
24122
241232007-06-06 Chong Yidong <cyd@stupidchicken.com>
24124
24125 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
24126
241272007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24128
24129 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
24130
24131 * macgui.h: Replace WindowPtr with WindowRef.
24132
24133 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
24134 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
24135 Replace ControlHandle with ControlRef.
24136 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
24137
24138 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
24139 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
24140 Replace ControlHandle with ControlRef.
24141 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
24142 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
24143
24144 * macterm.h (struct scroll_bar): Rename member control_handle_low
24145 and control_handle_high to control_ref_low and control_ref_high.
24146 All uses changed.
24147 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
24148 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
24149 respectively. All uses changed.
24150 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
24151 (install_window_handler, remove_window_handler): Replace WindowPtr
24152 with WindowRef in externs.
24153
241542007-06-05 Juanma Barranquero <lekktu@gmail.com>
24155
24156 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
24157
241582007-06-03 Nick Roberts <nickrob@snap.net.nz>
24159
24160 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
24161
24162 * frame.c (Fmouse_position, Fmouse_pixel_position):
24163 Condition on HAVE_GPM too.
24164
24165 * term.c (term_mouse_highlight): Remove unused variables.
24166 (Fterm_open_connection): Set gpm_zerobased to 1.
24167 (term_mouse_movement, term_mouse_click, handle_one_term_event):
24168 Use zero based co-ordinates.
24169 (handle_one_term_event): Report a drag as mouse movement too.
24170
24171 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
24172
241732007-06-03 Chong Yidong <cyd@stupidchicken.com>
24174
24175 * image.c (search_image_cache): New function. Require background
24176 color match if background color is unspecified in the image spec.
24177 (uncache_image, lookup_image): Use it.
24178
241792007-06-01 Juanma Barranquero <lekktu@gmail.com>
24180
24181 * window.c (Fshrink_window): Reflow docstring.
24182
241832007-06-02 Chong Yidong <cyd@stupidchicken.com>
24184
24185 * Version 22.1 released.
24186
241872007-06-01 Richard Stallman <rms@gnu.org>
24188
24189 * xfns.c (x_encode_text): Add GCPRO.
24190
241912007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24192
24193 * xfns.c (x_set_name_internal): Save encoded name before
24194 x_encode_text in case string data is relocated.
24195
241962007-05-31 Richard Stallman <rms@gnu.org>
24197
24198 * buffer.c (syms_of_buffer): Doc fix.
24199
242002007-05-30 Nick Roberts <nickrob@snap.net.nz>
24201
24202 * sysdep.c (init_sys_modes): Add rather than replace with
24203 O_NONBLOCK.
24204
24205 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
24206 term_mouse_moveto.
24207
24208 * termhooks.h (term_mouse_moveto): New extern.
24209
24210 * term.c (mouse_face_window): Rename...
24211 (Qmouse_face_window): ...to this.
24212 (term_show_mouse_face, term_clear_mouse_face)
24213 (term_mouse_highlight): Use Qmouse_face_window.
24214 (term_mouse_moveto): New function.
24215 (term_mouse_position): Make it work.
24216 (syms_of_term): Uncomment assignment to mouse_position_hook.
24217 Staticpro Qmouse_face_window.
24218
242192007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24220
24221 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
24222 around current_column call.
24223
242242007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
24225
24226 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
24227 * xdisp.c (next_element_from_buffer):
24228 * window.c (delete_window):
24229 * term.c (term_mouse_highlight):
24230 * msdos.c (getdefdir):
24231 * macterm.c (mac_create_bitmap_from_bitmap_data)
24232 (init_font_name_table):
24233 * fns.c (Fsxhash):
24234 * data.c (Fmake_local_variable):
24235 * ccl.c (ccl_driver): Likewise.
24236
242372007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24238
24239 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
24240 Call mac_wakeup_from_rne on window size change.
24241
242422007-05-25 Chong Yidong <cyd@stupidchicken.com>
24243
24244 * image.c (uncache_image): Fix typo.
24245
242462007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
24247
24248 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
24249
242502007-05-22 Richard Stallman <rms@gnu.org>
24251
24252 * xterm.c (x_connection_closed): Remove NO_RETURN.
24253
242542007-05-22 Martin Rudalics <rudalics@gmx.at>
24255
24256 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
24257
242582007-05-21 Chong Yidong <cyd@stupidchicken.com>
24259
24260 * image.c (uncache_image): New function.
24261 (Fimage_refresh): New function.
24262
242632007-05-20 Jan Djärv <jan.h.d@swipnet.se>
24264
24265 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
24266
242672007-05-20 Nick Roberts <nickrob@snap.net.nz>
24268
24269 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
24270 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
24271
242722007-05-20 Nick Roberts <nickrob@snap.net.nz>
24273
24274 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
24275 conditional on [HAVE_GPM_H].
24276
242772007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
24278
24279 * syntax.c (skip_chars): Update syntax-table only after we checked that
24280 the new location is valid.
24281
242822007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24283
24284 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
24285 mac_get_window_bounds.
24286
242872007-05-20 Nick Roberts <nickrob@snap.net.nz>
24288
24289 * Makefile.in (LIBGPM): Allow it to be set from configure.
24290 If set then link Emacs with it.
24291
24292 * config.in: Regenerate.
24293
24294 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
24295 New externs.
24296
24297 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
24298 Include gpm.h.
24299 (handle_one_term_event, term_gpm): New externs.
24300
24301 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
24302 and allow it to be interrupted by SIGIO.
24303
24304 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
24305 (wait_reading_process_output): Wait on gpm_fd too.
24306 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
24307 (add_gpm_wait_descriptor_called_flag): New variable.
24308 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
24309
24310 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
24311 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
24312 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
24313 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
24314 (make_lispy_event): Add case GPM_CLICK_EVENT.
24315 (read_avail_input): Handle mouse input.
24316
24317 * term.c (write_glyphs_with_face): New function.
24318 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
24319 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
24320 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
24321 (mouse_face_face_id, term_gpm, pos_x, pos_y)
24322 (last_mouse_x, last_mouse_y): New variables.
24323 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
24324 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
24325 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
24326 (Fterm_close_connection): New functions.
24327 (term_init): Initialise mouse_face_window.
24328
243292007-05-19 Chong Yidong <cyd@stupidchicken.com>
24330
24331 * xdisp.c (redisplay_window): If first window line is a
24332 continuation line, recompute the new window start instead of
24333 recentering.
24334
243352007-05-18 Glenn Morris <rgm@gnu.org>
24336
24337 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
24338 Suggested by Alfred M. Szmidt <ams@gnu.org>.
24339
243402007-05-17 Glenn Morris <rgm@gnu.org>
24341
24342 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
24343
243442007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24345
24346 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
24347 dead key repeat and up events.
24348
243492007-05-14 Chong Yidong <cyd@stupidchicken.com>
24350
24351 * image.c (pbm_load): Check image size for monochrome pbm.
24352
243532007-05-13 Chong Yidong <cyd@stupidchicken.com>
24354
24355 * xterm.c (XTread_socket): Revert last change.
24356
243572007-05-12 Chong Yidong <cyd@stupidchicken.com>
24358
24359 * image.c (pbm_load): Correctly check image size for greyscale pbm.
24360
24361 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
24362
243632007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
24364
24365 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
24366 mixup (YAILOM).
24367
243682007-05-07 Andreas Schwab <schwab@suse.de>
24369
24370 * keymap.c (Flookup_key): Fix typo in last change.
24371
243722007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
24373
24374 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
24375 mapping for unibyte strings.
24376
243772007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24378
24379 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
24380 (Fx_popup_dialog) [MAC_OSX]: Likewise.
24381
243822007-04-29 Richard Stallman <rms@gnu.org>
24383
24384 * insdel.c (replace_range): For undo, record insertion first.
24385
243862007-04-29 Andreas Schwab <schwab@suse.de>
24387
24388 * lisp.h (VECSIZE): Use OFFSETOF.
24389
243902007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24391
24392 * xdisp.c (try_window_reusing_current_matrix): Fix number of
24393 disabled lines.
24394
243952007-04-28 Richard Stallman <rms@gnu.org>
24396
24397 * lread.c (read_escape): In a string, \s is always space.
24398
243992007-04-27 Jan Djärv <jan.h.d@swipnet.se>
24400
24401 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
24402
24403 * gtkutil.c (xg_update_menubar, create_menus): Create empty
24404 submenu for menu bar items.
24405
24406See ChangeLog.10 for earlier changes.
24407
24408;; Local Variables:
24409;; coding: utf-8
24410;; add-log-time-zone-rule: t
aac0c6e3
MR
24411;; End:
24412
e3eb1dae 24413 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
24414
24415 This file is part of GNU Emacs.
24416
24417 GNU Emacs is free software: you can redistribute it and/or modify
24418 it under the terms of the GNU General Public License as published by
24419 the Free Software Foundation, either version 3 of the License, or
24420 (at your option) any later version.
24421
24422 GNU Emacs is distributed in the hope that it will be useful,
24423 but WITHOUT ANY WARRANTY; without even the implied warranty of
24424 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24425 GNU General Public License for more details.
24426
24427 You should have received a copy of the GNU General Public License
24428 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
24429
24430;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40