Define USE_LISP_UNION_TYPE using autoconf.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
98601119
DN
12010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2
d9170db5
DN
3 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
4
98601119
DN
5 Cleanup old code.
6 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
7 * syssignal.h: Remove code for Lynx, not supported anymore.
8 * vm-limit.c: Remove unused code the depends on emacs not being
9 defined and NO_LIM_DATA being defined.
10 * mem-limits.h: Remove dead code.
11
1f984e12
J
122010-07-01 Jan Djärv <jan.h.d@swipnet.se>
13
c49d071a
J
14 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
15
9d5405ec
J
16 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
17 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
18
7a18115b
J
19 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
20 parameters, they are already absolute.
21
581a8100
J
22 * nsterm.m (x_set_window_size, initFrameFromEmacs): Renamed
23 FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
24
25 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGH
26
27 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar): Update
28 FRAME_TOOLBAR_HEIGHT.
29
1f984e12
J
30 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar): Add
31 BLOCK/UNBLOCK_INPUT so asserts don't trigger.
32
c1ef4455
CY
332010-06-30 Chong Yidong <cyd@stupidchicken.com>
34
35 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
36 check default-frame-alist.
37
ce8f5a9a
AS
382010-06-30 Andreas Schwab <schwab@linux-m68k.org>
39
40 * process.c (create_process): Avoid using invalid file descriptors.
41
42 * callproc.c (child_setup): Avoid closing a file descriptor twice.
43
bf935339
J
442010-06-30 Jan Djärv <jan.h.d@swipnet.se>
45
46 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
47 Improve documentation. Return font regardless of use_system_font.
48 (syms_of_xsettings): Improve documentation for font-use-system-font.
49
769e9d47
KH
502009-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
51
52 * xftfont.c (xftfont_open): Check font width one by one also when
53 spacing is dual.
54
55 * ftfont.c (ftfont_open): Ditto.
56
6259c2ec
GM
572010-06-30 Glenn Morris <rgm@gnu.org>
58
a46007e9
GM
59 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
60
6259c2ec
GM
61 * Makefile.in (CANNOT_DUMP): Update for configure name change.
62
63 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
64 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
65 * s/darwin.h (SYSTEM_MALLOC):
66 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
67
5d1d3d04
J
682010-06-29 Jan Djärv <jan.h.d@swipnet.se>
69
70 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
71 (ns_get_screen): Don't assign integer to f.
72 (Fx_display_color_cells): Declarations before statements.
73
e547b051
J
742010-06-28 Jan Djärv <jan.h.d@swipnet.se>
75
5fc8e5bc
J
76 * xfns.c (x_default_font_parameter): Remove got_from_system
77 (Bug#6526).
78
e547b051
J
79 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
80 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
81 defines based on what configure finds.
82
83 * xterm.c (XTflash): Use gtk_widget_get_window.
84 (xg_scroll_callback): Use gtk_adjustment_get_upper and
85 gtk_adjustment_get_page_size.
86 (handle_one_xevent): Use gtk_widget_get_mapped.
87 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
88 messages.
89
90 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
91
92 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
93 HAVE_GTK_FILE_SELECTION_NEW.
94
95 * gtkutil.c (xg_display_open, xg_display_close): Remove
96 HAVE_GTK_MULTIDISPLAY, it is always defined.
97 (xg_display_open): Return type is void.
98 (gtk_widget_set_has_window)
99 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
100 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
101 (gtk_adjustment_set_page_increment)
102 (gtk_adjustment_get_step_increment): #define these if not found
103 by configure.
104 (remove_submenu): New define based on Gtk+ version.
105 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
106 gtk_widget_get_window.
107 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
108 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
109 (create_dialog): Use gtk_dialog_get_action_area and
110 gtk_dialog_get_content_area.
111 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
112 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
113 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
114 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
115 g_object_ref and g_object_unref.
116 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
117 gtk_widget_get_sensitive.
118 (xg_update_submenu): Use remove_submenu.
119 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
120 properties instead to get old x and y position.
121 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
122 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 123 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
124 (xg_get_tool_bar_widgets): New function.
125 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
126 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
127 (toolbar_set_orientation): New #define based on if configure
128 finds gtk_orientable_set_orientation.
129 (xg_create_tool_bar): Call toolbar_set_orientation.
130 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
131 instead of gtk_box_pack_start_defaults.
132
b9229673
CY
1332010-06-28 Chong Yidong <cyd@stupidchicken.com>
134
135 * cmds.c (Fdelete_backward_char): Move into Lisp.
136
bbc803b0
DN
1372010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
138
139 * s/freebsd.h (BSD4_2): Remove redundant definition.
140 bsd-common.h defines it already.
141
6431f2e6
CY
1422010-06-27 Chong Yidong <cyd@stupidchicken.com>
143
144 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
145 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
146 tool-bar-mode, which are now set using these X resources at
147 startup, to determine the defaults (Bug#2249).
148
149 * w32fns.c (Fx_create_frame):
150 * nsfns.m (Fx_create_frame): Likewise.
151
152 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
153
8c079ebb
JB
1542010-06-24 Juanma Barranquero <lekktu@gmail.com>
155
156 * gtkutil.c (xg_update_scrollbar_pos):
157 Avoid C99 mid-block variable declaration.
158
e9b7ab96
JD
1592010-06-22 Jan Djärv <jan.h.d@swipnet.se>
160
bc869eca
JD
161 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
162
2b7e356a 163 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
164
165 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
166 if height is less than scroll bar min size.
167 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
168
e9b7ab96
JD
169 * xfns.c (x_default_font_parameter): Try to open font from system
170 before using it (bug#6478). Rename got_from_gconf to got_from_system.
171
32a679fd
JD
1722010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
173
174 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
175
70c4cfbb
EZ
1762010-06-20 Eli Zaretskii <eliz@gnu.org>
177
178 * xdisp.c (try_scrolling): When scroll-conservatively is set to
179 most-positive-fixnum, be extra accurate when scrolling window
180 start, to avoid missing the cursor line.
181
ad5a12b5
EZ
1822010-06-19 Eli Zaretskii <eliz@gnu.org>
183
184 * xdisp.c (try_scrolling): Compute the limit for searching point
185 in forward scroll from scroll_max, instead of an arbitrary limit
186 of 10 screen lines. See
187 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
188 and
189 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
190 for details.
191
2a64315a 1922010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
193
194 * editfns.c (Fbyte_to_string): Pacify compiler.
195
288cf4e9
SM
1962010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
197
198 * lread.c (read1): Phase out old-style backquotes a bit more.
199
6e6e5760
EZ
2002010-06-12 Eli Zaretskii <eliz@gnu.org>
201
cbc4fd20
EZ
202 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
203 bidimirror.h.
204
205 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
206
317fbf33
EZ
207 * bidi.c (bidi_initialize): Remove explicit initialization of
208 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 209 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 210 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
211
212 * biditype.h: New file.
213
cbc4fd20
EZ
214 * bidimirror.h: New file.
215
6e6e5760
EZ
216 * window.c (syms_of_window): Doc fix (bug#6409).
217
4176cba2
RF
2182010-06-12 Romain Francoise <romain@orebokech.com>
219
220 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
221 ediff-hook.
222
cb4bfcb5
GM
2232010-06-10 Glenn Morris <rgm@gnu.org>
224
64c60c2f
GM
225 * editfns.c (Fbyte_to_string): Pacify compiler.
226
cb4bfcb5
GM
227 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
228
e454a4a3
SM
2292010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
230
231 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
232 Check `object's type before accessing its guts.
233
c1b1acc2
DN
2342010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
235
236 * s/usg5-4.h: Fix previous change.
237 Suggested by Lawrence Mitchell <wence@gmx.li>
238
657d4c0b
AS
2392010-06-08 Andreas Schwab <schwab@linux-m68k.org>
240
241 * minibuf.c (Fall_completions): Add more checks.
242
9b27fd9f
JB
2432010-06-08 Juanma Barranquero <lekktu@gmail.com>
244
245 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
246
a99ebb40
DN
2472010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
248
d7c5d87d
DN
249 * lread.c (X_OK): Remove, unused.
250
0263a941
DN
251 * dispnew.c: Remove obsolete comment.
252
a99ebb40
DN
253 Remove INCLUDED_FCNTL.
254 * xterm.c (INCLUDED_FCNTL):
255 * callproc.c (INCLUDED_FCNTL):
256 * alloc.c (INCLUDED_FCNTL):
257 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
258 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
259
13b5221f
MR
2602010-06-07 Martin Rudalics <rudalics@gmx.at>
261
262 * window.c (Fselect_window): Move `record_buffer' up to the
263 beginning of this function, so the buffer gets recorded
264 even if the selected window does not change.
265 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
266
5220357f
JB
2672010-06-07 Juanma Barranquero <lekktu@gmail.com>
268
269 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
270 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
271
3085237c
DN
2722010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
273
274 Remove BSTRING related code, all platforms define it.
275 * s/usg5-4.h (BSTRING): Remove definition.
276 * s/template.h (BSTRING):
277 * s/msdos.h (BSTRING):
278 * s/ms-w32.h (BSTRING):
279 * s/hpux10-20.h (BSTRING):
280 * s/gnu-linux.h (BSTRING):
281 * s/darwin.h (BSTRING):
282 * s/cygwin.h (BSTRING):
283 * s/bsd-common.h (BSTRING):
284 * s/aix4-2.h (BSTRING): Likewise.
285 * sysdep.c: Remove code depending on BSTRING not being defined.
286
409f2919
JB
2872010-06-05 Juanma Barranquero <lekktu@gmail.com>
288
289 Remove obsolete macro BASE_LEADING_CODE_P.
290 * character.h (BASE_LEADING_CODE_P): Remove.
291 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
292 * buffer.c (Fset_buffer_multibyte):
293 * indent.c (scan_for_column, compute_motion):
294 * insdel.c (count_combining_before, count_combining_after):
295 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
296
087fc47a
JB
2972010-06-04 Juanma Barranquero <lekktu@gmail.com>
298
299 Turn `directory-sep-char' into a noop.
300
301 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
302 (DIRECTORY_SEP): Define unconditionally.
303
304 * s/ms-w32.h (DIRECTORY_SEP): Remove.
305
306 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
307 call dostounix_filename directly.
308
309 * fileio.c (CORRECT_DIR_SEPS): Remove.
310 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
311 (Fsubstitute_in_file_name): Use dostounix_filename instead.
312 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
313 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
314
315 * w32proc.c (CORRECT_DIR_SEPS): Remove.
316 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
317
0eb7675e
AS
3182010-06-03 Andreas Schwab <schwab@linux-m68k.org>
319
320 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
f07b083d 321 address. (Bug#6346)
0eb7675e 322
78edd3b7
JB
3232010-06-03 Juanma Barranquero <lekktu@gmail.com>
324
325 * ccl.c (Fccl_program_p): Fix typo in docstring.
326
eb697db5
DN
3272010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
328
329 Move UNEXEC definition to autoconf.
330 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
331 * s/sol2-10.h (UNEXEC):
332 * s/irix6-5.h (UNEXEC):
333 * s/hpux10-20.h (UNEXEC):
334 * s/gnu-linux.h (UNEXEC):
335 * s/darwin.h (UNEXEC):
336 * s/cygwin.h (UNEXEC):
337 * s/bsd-common.h (UNEXEC):
338 * s/aix4-2.h (UNEXEC):
339 * m/alpha.h (UNEXEC): Likewise.
340 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
341
aa3830c4
JB
3422010-06-03 Juanma Barranquero <lekktu@gmail.com>
343
344 Remove obsolete pre-unicode2 macros.
345 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
346 * composite.c (composition_reseat_it):
347 * data.c (Faset):
348 * fns.c (Ffillarray):
349 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
350 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
351
d234d13e
JL
3522010-06-03 Juri Linkov <juri@jurta.org>
353
354 * buffer.c (Fother_buffer): Add CHECK_FRAME.
355 (Fswitch_to_buffer): Remove unused variable `err'.
356
0d4bcf4d
GM
3572010-06-03 Glenn Morris <rgm@gnu.org>
358
e23dc1e2
GM
359 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
360
05b09564
GM
361 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
362 now that AH_BOTTOM does it.
363
824e2978
GM
364 * m/hp800.h (HAVE_ALLOCA):
365 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
366
0d4bcf4d
GM
367 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
368 Remove NOT_C_CODE tests, it is always true now.
369
c55d2abf
DN
3702010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
371
08a494a3
DN
372 Fix config.h includes.
373 * xsettings.c:
374 * xgselect.c:
375 * nsterm.m:
376 * nsselect.m:
377 * nsimage.m:
378 * nsfont.m:
379 * nsfns.m:
380 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
381 other files do.
382
75934b1d
DN
383 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
384
9f32a766
DN
385 * s/sol2-6.h: Remove obsolete comments.
386
c55d2abf
DN
387 Remove unnecessary alloca.h includes.
388 * keymap.c: Do not include alloca.h, config.h does that.
389 * sysdep.c: Likewise. Do not define fwrite, not used.
390
06ac62b4
SM
3912010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
392
393 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
394 the HAVE_TERMIO where it belongs (bug#6149).
395
1ab8293c
SM
3962010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
397
398 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
399 of bug#6305).
400
6dcfd253
EZ
4012010-05-30 Eli Zaretskii <eliz@gnu.org>
402
403 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
404 state is always cached (bug#6306).
405
6d26bbb2
EZ
4062010-05-29 Eli Zaretskii <eliz@gnu.org>
407
06fa4a23
EZ
408 Fix cursor motion in bidi-reordered continued lines.
409 * xdisp.c (try_cursor_movement): Backup to non-continuation line
410 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
411 over continuation lines in bidi-reordered buffers. Return
412 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
413 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
414
f5783df3
MA
4152010-05-28 Michael Albinus <michael.albinus@gmx.de>
416
417 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
418
7d56b2dd
KH
4192010-05-28 Kenichi Handa <handa@m17n.org>
420
421 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
422 Don't sheck SPEC if it is nil.
423 (font_list_entities): Call font_delete_unmatched if
b925d231 424 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 425
e58d4ff7
GM
4262010-05-28 Glenn Morris <rgm@gnu.org>
427
428 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
429
f1a5d776
CY
4302010-05-27 Chong Yidong <cyd@stupidchicken.com>
431
432 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
433 whether to trash.
434 (internal_delete_file, Frename_file): Callers changed.
435 (delete_by_moving_to_trash): Doc fix.
436 (Fdelete_directory_internal): Don't move to trash.
437
438 * callproc.c (delete_temp_file):
439 * buffer.c (Fkill_buffer): Callers changed.
440
441 * lisp.h: Update prototype.
442
f44a59e6
CY
4432010-05-27 Chong Yidong <cyd@stupidchicken.com>
444
445 * xdisp.c (redisplay_window): After redisplay, check if point is
446 still valid before setting it (Bug#6177).
447
81ac4f35
GM
4482010-05-27 Glenn Morris <rgm@gnu.org>
449
450 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
451 Convert comments to Makefile format.
452
453 * Makefile.in (bootstrap-clean): No more Makefile.c.
454
ccd89fb3
GM
4552010-05-26 Glenn Morris <rgm@gnu.org>
456
90278cb6
GM
457 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
458 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
459
ccd89fb3
GM
460 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
461 Remove.
462 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
463
b7050583
KH
4642010-05-26 Kenichi Handa <handa@m17n.org>
465
466 * composite.c (composition_compute_stop_pos): Fix condition for
467 backward scanning.
468
e5458003
GM
4692010-05-25 Glenn Morris <rgm@gnu.org>
470
c345fe90
GM
471 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
472 Move before TEMACS_LDFLAGS.
473 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
474 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
475
2e0689ab
GM
476 * Makefile.in (NOT_C_CODE): No longer define.
477 (config.h): No longer include.
478
8009a5e8
GM
479 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
480 variables it may reference.
481
e5458003
GM
482 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
483 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
484
10f72a37
KH
4852010-05-25 Kenichi Handa <handa@m17n.org>
486
487 * dispextern.h (struct composition_it): New members rule_idx and
488 charpos.
489
490 * xdisp.c (set_iterator_to_next): While scanning backward, assume
491 that the character positions of IT point the last character of the
492 current grapheme cluster.
493 (next_element_from_composition): Don't change character positions
494 of IT.
495 (append_composite_glyph): Set glyph->charpos to
496 it->cmp_it.charpos.
497
498 * composite.c (autocmp_chars): Change the first argument to RULE,
499 and try composition with RULE only.
500 (composition_compute_stop_pos): Record the index number of the
501 composition rule in CMP_IT->rule_idx.
502 (composition_reseat_it): Call autocmp_chars repeatedly until the
503 correct rule of the composition is found.
504 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
505 is at the last character of the current grapheme cluster when
506 CMP_IT->reversed_p is nonzero.
507
171eda53 5082010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 509
171eda53
SM
510 * editfns.c (Fbyte_to_string): New function.
511
66a9f7f4
SM
5122010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
513
514 * process.c (Fmake_network_process): Set :host to nil if it's not used.
515 Suggested by Masatake YAMATO <yamato@redhat.com>.
516
d8c315d1
EZ
5172010-05-23 Eli Zaretskii <eliz@gnu.org>
518
171eda53 519 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 520
f5b416d2 5212010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
522
523 * s/netbsd.h: If terminfo is found, use it in preference to
524 termcap. (Bug#6190) [Backport from trunk]
525
0416466c
EZ
5262010-05-19 Eli Zaretskii <eliz@gnu.org>
527
11117830 528 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
529
530 * dispextern.h (struct glyph_row): New members minpos and maxpos.
531 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
532 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
533 and maxpos members instead of start.pos and end.pos, respectively.
534
535 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
536 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
537 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
538 (try_window_reusing_current_matrix, try_window_id):
539 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
540 (init_from_display_pos, init_iterator): Use EMACS_INT for
541 character and byte positions.
66a9f7f4 542 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
543 arguments for minimum and maximum buffer positions seen by
544 display_line for this row. Don't use iterator to find the
545 position following the maximum one; instead, increment the
11117830
EZ
546 position found by display_line directly. Fix logic; eol_pos
547 should be tested before the rest. Handle the case of characters
548 delivered from display vector (bug#6036). Fix tests related to
549 it->method. Handle the truncated_on_right_p rows.
550 (RECORD_MAX_MIN_POS): New macro.
551 (display_line): Use it to record the minimum and maximum buffer
552 positions for glyphs in the row being assembled. Record the
553 position of the newline that terminates the line. If word wrap is
554 in effect, restore minimum and maximum positions seen up to the
555 wrap point, when iterator returns to it.
556 (try_window_reusing_current_matrix): Give up if in bidi-reordered
557 row and cursor not already at point. Restore original pre-bidi
558 code for unidirectional buffers.
d36fe237
EZ
559
560 * dispnew.c (increment_row_positions, check_matrix_invariants):
561 Increment and check row->start.pos and row->end.pos, in addition
562 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
563
11117830
EZ
564 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
565 Display truncated_on_left_p and truncated_on_right_p flags.
566 Formatting fixes.
567 (pmtxrows): Display the ordinal number of each row. Don't display
568 rows beyond the last one.
569
570 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
571 it is not copied by bidi_copy_it.
572
6e83d800
EZ
5732010-05-22 Eli Zaretskii <eliz@gnu.org>
574
575 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
576 (Bug#6237)
577
110683ad
CY
5782010-05-22 Chong Yidong <cyd@stupidchicken.com>
579
580 * image.c (Fimage_flush): Rename from image-refresh.
581
98fe5161
CY
5822010-05-21 Chong Yidong <cyd@stupidchicken.com>
583
584 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
585 just one window.
586
587 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
588 (clear_image_cache): If the number of cached images is unusually
589 large, decrease the cache eviction delay (Bug#6230).
590
e8752c66
GM
5912010-05-21 Glenn Morris <rgm@gnu.org>
592
66dbf213
GM
593 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
594 Move these rules to ns.mk.
595 * ns.mk: New file.
596
04384b2d
GM
597 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
598
e8752c66
GM
599 * Makefile.in (CANNOT_DUMP): New, set by configure.
600 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
601
2e2bbddb
JL
6022010-05-20 Juri Linkov <juri@jurta.org>
603
604 * fileio.c (Fdelete_file): Change interative spec to use
605 `read-file-name' like in `find-file-read-args' where the default
606 value is `default-directory' instead of `buffer-file-name'.
607 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
608
31c4aaf6
KR
6092010-05-20 Kevin Ryde <user42@zip.com.au>
610
611 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
612 (Voverriding_terminal_local_map, Vsystem_key_alist)
613 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
614
9d5cf9b6
GM
6152010-05-20 Glenn Morris <rgm@gnu.org>
616
617 * Makefile.in (DEPDIR): New constant.
618 (DEPFLAGS): Set with configure, not cpp.
619 (MKDEPDIR): New, set by configure.
620 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
621 (clean): Use $DEPDIR.
622 (deps_frag): Include from configure.
623 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
624 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
625
ead6f8f5
EZ
626 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
627 reallocation of the cache. (Bug#6210)
628
7f34aec3
GM
6292010-05-19 Glenn Morris <rgm@gnu.org>
630
d494e8f2
GM
631 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
632
c1d0dcfd
GM
633 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
634 (GNULIB_VAR): Remove.
635 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
636
637 * m/ibms390x.h (LINKER):
638 * m/macppc.h (LINKER) [GNU_LINUX]:
639 * s/aix4-2.h (ORDINARY_LINK):
640 * s/cygwin.h (LINKER):
641 * s/darwin.h (ORDINARY_LINK):
642 * s/gnu.h (ORDINARY_LINK):
643 * s/netbsd.h (LINKER):
644 * s/usg5-4.h (ORDINARY_LINK):
645 Move to configure.
646
7f34aec3
GM
647 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
648
754790b6
CY
6492010-05-18 Chong Yidong <cyd@stupidchicken.com>
650
651 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
652 prevent stack overflow if number of arguments is too large
653 (Bug#6214).
654
161e44d1
JB
6552010-05-18 Juanma Barranquero <lekktu@gmail.com>
656
657 * charset.c (load_charset_map_from_file): Don't call close after fclose.
658
be4ff9da
GM
6592010-05-18 Glenn Morris <rgm@gnu.org>
660
9539dc5d
GM
661 * s/gnu-linux.h: Combine two conditionals.
662
663 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
664 $(POST_ALLOC_OBJ).
665
40dc6bf4
GM
666 * Makefile.in (RALLOC_OBJ): New, set by configure.
667 (rallocobj): Replace with the previous variable.
668 (otherobj): Use $RALLOC_OBJ.
669
670 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
671 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
672
be4ff9da
GM
673 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
674 (gmallocobj, vmlimitobj): Replace with previous two variables.
675 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
676
16455a85
GM
6772010-05-17 Glenn Morris <rgm@gnu.org>
678
679 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
680 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
681
5fdb7468
GM
6822010-05-16 Glenn Morris <rgm@gnu.org>
683
7ca1f3f9
GM
684 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
685
7541dad5
GM
686 * Makefile.in (clean): Get rid of HAVE_NS conditional.
687
da53fab9
GM
688 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
689 trailing "/".
690
b02a6645
GM
691 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
692 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
693
8877ca0f
GM
694 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
695 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
696 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
697 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
698 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
699
5fdb7468
GM
700 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
701 Remove ${STARTFLAGS}, nothing ever sets it.
702
95adb4b1
DN
7032010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
704
705 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
706
676b6304
GM
7072010-05-16 Glenn Morris <rgm@gnu.org>
708
9beab9ce
GM
709 * Makefile.in (LIBX_BASE): Always define.
710
8a95f0e7
GM
711 * Makefile.in (LIBX_OTHER): Move out of cpp section.
712
676b6304
GM
713 * Makefile.in (LIBXT): Always define.
714
6e546d18
GM
7152010-05-15 Glenn Morris <rgm@gnu.org>
716
4235ca47 717 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 718
6e546d18
GM
719 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
720 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
721
8c5ff6dd
KR
7222010-05-15 Ken Raeburn <raeburn@raeburn.org>
723
560bb7ae 724 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
725 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
726
8b4eb796
KR
727 * emacs.c (main): Initialize initial-environment and
728 process-environment before generating from env, not after.
729
8c5ff6dd
KR
730 Handle --version reasonably in CANNOT_DUMP configuration.
731 * emacs.c (emacs_version, emacs_copyright): New string variables.
732 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
733 (syms_of_emacs): Defvar them, and initialize them from the C
734 string variables.
735 (main): If initialization hasn't been done, print initial version
736 info from the C strings, instead of starting an interactive session.
737
dbd3f723
EZ
7382010-05-15 Eli Zaretskii <eliz@gnu.org>
739
d20e1419
EZ
740 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
741 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
742 (bidi_paragraph_init): Remove redundant assertion that we are at
743 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
744
745 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
746 (syms_of_xdisp): Defsubr it.
747
d36fe237
EZ
748 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
749
dbd3f723
EZ
750 * Makefile.in: Fix MSDOS-related comments.
751
02be533b
GM
7522010-05-15 Glenn Morris <rgm@gnu.org>
753
1a82cca9
GM
754 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
755 (really-lwlib, really-oldXMenu): Always define.
756 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
757
3df7b338
GM
758 * Makefile.in: Simplify cpp conditional.
759
2b5f541b
GM
760 * Makefile.in (${ns_appdir}): Simplify using umask.
761
02be533b
GM
762 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
763
4e2db1fe
SM
7642010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
765
766 * eval.c (specbind): Remove left-over duplicate test.
767 Disallow let-binding frame-local vars. Add comment.
768
4b292a22
EZ
7692010-05-14 Eli Zaretskii <eliz@gnu.org>
770
2fe72643 771 Make the cache of bidi iterator states dynamically allocated.
1edbd309 772 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
773 (bidi_init_it): Call it.
774 (bidi_cache_iterator_state): Enlarge the cache if needed.
775
4e2db1fe 776 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
777 bidi_get_next_char_visually. All callers changed.
778
82ebc97b
KH
7792010-05-14 Kenichi Handa <handa@m17n.org>
780
781 * dispextern.h (struct composition_it): New member reversed_p.
782
783 * composite.c (composition_compute_stop_pos): Search backward if
784 ENDPOS < CHARPOS.
785 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
786 Set CMP_IT->reversed_p.
b4b6e17e 787 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 788
4e2db1fe
SM
789 * xdisp.c (set_iterator_to_next):
790 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
791 scanning backward. Call composition_compute_stop_pos if scan
792 direction is changed.
793 (next_element_from_buffer): Call composition_compute_stop_pos with
794 negative ENDPOS if we are scanning backward.
795 (next_element_from_composition): Pay attention to
796 IT->cmp_it.reversed_p.
797
0e5d7800
KH
7982010-05-14 Kenichi Handa <handa@m17n.org>
799
560bb7ae 800 * font.c (font_range): Return the range for the font found at first.
0e5d7800 801
cb027b32
GM
8022010-05-14 Glenn Morris <rgm@gnu.org>
803
177b0288
GM
804 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
805
fbc00890
GM
806 * Makefile.in (mktime, X11, register): Move undefs to configure.
807
f14d1dfd
GM
808 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
809 (MSDOS_X_OBJ): New variable.
810 (MSDOS_SUPPORT_REAL): New constant.
811 (MSDOS_SUPPORT): Set as a variable, not with cpp.
812 (obj): Use MSDOS_X_OBJ.
813 (lisp): Use MSDOS_SUPPORT as a variable.
814
11842bd8
GM
815 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
816 (GPM_MOUSE_SUPPORT): Now it's a constant.
817 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
818 not cpp.
819
489d31a4 820 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 821 (ns_appresdir): Remove, unused.
e20f1f07 822
489d31a4
GM
823 * Makefile.in (SHELL): Move outside cpp section.
824
cb027b32
GM
825 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
826
5a903aa9
GM
8272010-05-13 Glenn Morris <rgm@gnu.org>
828
3369c79f
GM
829 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
830 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
831
d5e982a6
GM
832 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
833 HAVE_WINDOW_SYSTEM must be too.
834
6192e163
GM
835 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
836 (lisp): Remove WINNT_SUPPORT.
837
472c5d6b
GM
838 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
839 Let configure set these variables (to empty) in this case as well.
840
0116466b
GM
841 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
842 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
843
5a903aa9
GM
844 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
845 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
846 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
847 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
848 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 849 the values output by configure.
5a903aa9
GM
850 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
851
1a0d7c06
GM
8522010-05-12 Glenn Morris <rgm@gnu.org>
853
b5457f14
GM
854 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
855 (LINKER_WAS_SPECIFIED): Remove.
856
1a0d7c06
GM
857 * Makefile.in (LIB_GCC): Set using configure, not cpp.
858 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
859 * m/arm.h (LIB_GCC) [GNU_LINUX]:
860 * s/cygwin.h (LIB_GCC):
861 * s/freebsd.h (LIB_GCC):
862 * s/gnu-linux.h (LIB_GCC):
863 * s/msdos.h (LIB_GCC):
864 * s/netbsd.h (LIB_GCC):
865 Move to configure.
866
3ffd4615 8672010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
868
869 * ftfont.c: Fix incorrect parentheses of #if condition for
870 definining M17N_FLT_USE_NEW_FEATURE.
871
acddf8ae
GM
8722010-05-11 Glenn Morris <rgm@gnu.org>
873
874 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
875 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
876
ae5e04fa
EZ
8772010-05-10 Eli Zaretskii <eliz@gnu.org>
878
879 * xdisp.c (init_iterator): Don't turn on bidi reordering in
880 unibyte buffers. See
881 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
882
7490175b
GM
8832010-05-10 Glenn Morris <rgm@gnu.org>
884
97efb629
GM
885 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
886 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
887 (LIBES): Use LIBS_SYSTEM as a variable.
888 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
889 * s/aix4-2.h (LIBS_SYSTEM):
890 * s/freebsd.h (LIBS_SYSTEM):
891 * s/hpux10-20.h (LIBS_SYSTEM):
892 * s/sol2-6.h (LIBS_SYSTEM):
893 * s/unixware.h (LIBS_SYSTEM):
894 Move to configure.
895
7490175b
GM
896 * s/aix4-2.h (MAIL_USE_LOCKF):
897 * s/bsd-common.h (MAIL_USE_FLOCK):
898 * s/darwin.h (MAIL_USE_FLOCK):
899 * s/gnu-linux.h (MAIL_USE_FLOCK):
900 * s/irix6-5.h (MAIL_USE_FLOCK):
901 * s/template.h (MAIL_USE_FLOCK):
902 Move to configure.
903
0235128c 9042010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
905
906 * Version 23.2 released.
907
0235128c 9082010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
909
910 * composite.c (autocmp_chars): Save point as marker before calling
911 auto-composition-function (Bug#5984).
912
913 * lisp.h (restore_point_unwind): Add prototype.
914
915 * fileio.c (restore_point_unwind): Remove static attribute.
916
0235128c 9172010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
918
919 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
920 new feature of libotf and m17n-flt.
0235128c
SM
921 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
922 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
923 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
924 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
925 that OUT is NULL. Use OTF_drive_gsub_with_log and
926 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
927 OTF_drive_gpos.
928 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
929 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
930 Setup mflt_enable_new_feature and mflt_try_otf.
931
4721152c
J
9322010-05-08 Jan Djärv <jan.h.d@swipnet.se>
933
934 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
935
936 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
937 box and toolbar (Bug #6139).
938 (xg_create_tool_bar): Remove comment (Bug #6139).
939 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
940 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
941
ee0a16cf
JB
9422010-05-08 Juanma Barranquero <lekktu@gmail.com>
943
944 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
945 Update dependencies.
946
96d79611
EZ
9472010-05-08 Eli Zaretskii <eliz@gnu.org>
948
949 * fringe.c (update_window_fringes): Set up truncation bitmaps for
950 R2L lines.
951
40c17879
GM
9522010-05-08 Glenn Morris <rgm@gnu.org>
953
7b42b29f
GM
954 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
955
40c17879
GM
956 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
957 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
958 (termcapobj): Replace with TERMCAP_OBJ.
959 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
960 (LIBES): Use LIBS_TERMCAP as a variable.
961
962 * s/freebsd.h (osreldate.h): No longer include, since this file
963 does not use __FreeBSD_version any more.
964
965 * s/aix4-2.h (TERMINFO):
966 * s/cygwin.h (TERMINFO):
967 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
968 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
969 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
970 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
971 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
972 * s/irix6-5.h (TERMINFO):
973 * s/netbsd.h (LIBS_TERMCAP):
974 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
975 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
976 * s/usg5-4.h (TERMINFO):
977 Move to configure.
978
94b612ad
SM
9792010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
980
981 * eval.c (unbind_to): Don't unbind a local binding into the global
982 binding when the local binding disappeared. Inversely, don't unbind
983 a global binding into a newly created local binding.
984 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
985 can specify the frame to use, when applicable. Adjust callers.
986
15e12598 9872010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 988 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
989
990 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
991
f724825e
EZ
9922010-05-07 Eli Zaretskii <eliz@gnu.org>
993
5cba3209
EZ
994 * w32fns.c: Include w32.h.
995 (Fw32_shell_execute): Decode the error message before passing it
996 to `error'. (Bug#6126)
997
d16bdfc3
EZ
998 * msdos.c (dos_set_window_size):
999 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
1000 instead of `XSYMBOL (foo)->value'.
1001
59d93e87
EZ
10022010-05-07 Eli Zaretskii <eliz@gnu.org>
1003
9fdec8bc
EZ
1004 Fix the MS-DOS build, broken by autoconfiscation.
1005
1006 * Makefile.in: Don't use Make-style comments past the "start of
1007 cpp stuff" line.
1008 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
1009
1010 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
1011 edited directly by msdos/sed1v2.inp).
f724825e 1012
2f86b22b
GM
10132010-05-07 Glenn Morris <rgm@gnu.org>
1014
1015 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
1016 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
1017 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
1018 move out of cpp section.
1019 * s/freebsd.h (LD_SWITCH_SYSTEM):
1020 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
1021 * s/netbsd.h (LD_SWITCH_SYSTEM):
1022 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
1023
49ebbd65
DN
10242010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
1025
1026 Define LIB_STANDARD and START_FILES using autoconf.
1027 * s/usg5-4.h (LIB_STANDARD):
1028 * s/netbsd.h (START_FILES):
1029 * s/irix6-5.h (LIB_STANDARD):
1030 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
1031 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
1032 * s/freebsd.h (START_FILES):
1033 * s/darwin.h (START_FILES):
1034 * s/cygwin.h (START_FILES):
1035 * s/aix4-2.h (LIB_STANDARD):
1036 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
1037 * Makefile.in (STARTFILES): Rename to START_FILES, define using
1038 autoconf, not cpp.
1039
d43c06d6
DN
10402010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
1041
28823648
DN
1042 Remove NEED_BSDTTY and NEED_UNISTD_H.
1043 * s/hpux10-20.h (NEED_BSDTTY): Remove.
1044 * s/aix4-2.h (NEED_UNISTD_H): Remove.
1045 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
1046 <sys/ptyio.h> and <unistd.h>.
1047
aca00430
DN
1048 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
1049
d43c06d6
DN
1050 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
1051 * s/gnu.h (START_FILES): Remove empty definition.
1052
3e56b11d
JD
10532010-05-06 Jan Djärv <jan.h.d@swipnet.se>
1054
1055 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
1056
e3cf0cde
GM
10572010-05-06 Glenn Morris <rgm@gnu.org>
1058
1059 * Makefile.in (CPP, LN_S): Remove unused variables.
1060
774b9a60
SM
10612010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
1062
1063 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
1064
4ab92842
LM
10652010-05-05 Lawrence Mitchell <wence@gmx.li>
1066
1067 * m/sparc.h: Fix typo in earlier change.
1068
178f2507
SM
10692010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
1070
1071 Misc tweaks.
1072 * eval.c (Fdefvaralias): Remove unintended nested if.
1073 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
1074
80f00217 10752010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
1076
1077 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
1078
ef03a4e6
DN
10792010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
1080
58eb6cf0
DN
1081 Remove BSD_PGRPS.
1082 * s/bsd-common.h (BSD_PGRPS): Remove undef.
1083 * s/gnu-linux.h (BSD_PGRPS): Remove.
1084 * term.c (dissociate_if_controlling_tty):
1085 * sysdep.c (narrow_foreground_group, widen_foreground_group)
1086 (init_sys_modes, reset_sys_modes):
1087 * emacs.c (main):
1088 * callproc.c (Fcall_process, child_setup): Remove code depending
1089 on BSD_PGRPS.
1090
ef03a4e6
DN
1091 Remove POSIX_SIGNALS.
1092 * s/usg5-4.h (POSIX_SIGNALS):
1093 * s/netbsd.h (POSIX_SIGNALS):
1094 * s/msdos.h (POSIX_SIGNALS):
1095 * s/ms-w32.h (POSIX_SIGNALS):
1096 * s/hpux11.h (POSIX_SIGNALS):
1097 * s/gnu.h (POSIX_SIGNALS):
1098 * s/gnu-linux.h (POSIX_SIGNALS):
1099 * s/freebsd.h (POSIX_SIGNALS):
1100 * s/darwin.h (POSIX_SIGNALS):
1101 * s/cygwin.h (POSIX_SIGNALS):
1102 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
1103 * s/unixware.h:
1104 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
1105 * process.c (create_process):
1106 * syssignal.h:
1107 * sysdep.c (wait_for_termination, init_signals):
1108 * process.c (create_process):
1109 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
1110 remove all code that assumes the contrary.
1111
49628785
GM
11122010-05-04 Glenn Morris <rgm@gnu.org>
1113
27a2cdfc
GM
1114 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
1115 variable.
1116 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
1117 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
1118 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
1119 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
1120 LD_SWITCH_SYSTEM_tmp.
1121 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
1122 New variables, set by configure.
1123
eb21eab5
GM
1124 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
1125 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
1126 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
1127 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
1128 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
1129
49628785
GM
1130 * s/aix4-2.h (C_SWITCH_SYSTEM):
1131 * m/alpha.h (C_SWITCH_MACHINE):
1132 Move to configure.in.
1133 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
1134 New variables, set by configure.
1135 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
1136 $c_switch_machine and $c_switch_system.
1137
7dff330b
DN
11382010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
1139
1140 * s/hpux10-20.h (LIB_STANDARD): New definition.
1141 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
1142 on it, not used anymore.
1143
53967e09
CY
11442010-05-03 Chong Yidong <cyd@stupidchicken.com>
1145
1146 * eval.c (internal_condition_case_n): Rename from
1147 internal_condition_case_2.
1148 (internal_condition_case_2): New function.
1149
1150 * xdisp.c (safe_call): Use internal_condition_case_n.
1151
1152 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
1153 (internal_delete_file, Frename_file): Callers changed.
1154
1155 * buffer.c (Fkill_buffer):
1156 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
1157
1158 * lisp.h: Update prototypes.
1159
3dee6fdb
GM
11602010-05-03 Glenn Morris <rgm@gnu.org>
1161
1162 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
1163 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
1164 (LIBXT): Set with configure, not cpp.
1165 (LIBX): Remove.
1166 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
1167
a101e0fb
DN
11682010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
1169
1170 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
1171 The FreeBSD is not needed, the default works, Solaris version is
1172 not needed, and the remaining case is not supported by configure.
1173
f63d0028
JD
11742010-05-02 Jan Djärv <jan.h.d@swipnet.se>
1175
1176 * xsmfns.c (CHDIR_OPT): New define.
1177 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
1178 restarting emacs.
1179
1180 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
1181 shut_down_emacs.
1182
1183 * emacs.c (USAGE1): Mention --chdir.
1184 (main): Handle --chdir.
1185 (standard_args): Add --chdir.
1186 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
1187 #5552).
1188
e4814a9f
DN
11892010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
1190
cd03c74a
DN
1191 Remove LD_SWITCH_MACHINE.
1192 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
1193 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
1194
c3a398a1
DN
1195 Clean up IRIX code.
1196 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
1197 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
1198
87e7285c
DN
1199 Clean up AIX code.
1200 * m/ibmrs6000.inp: Remove file, unused.
1201 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
1202 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
1203 definition ...
1204 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
1205
80f00217
JB
1206 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
1207 unused.
e4814a9f 1208
59ca28de
EZ
12092010-05-01 Eli Zaretskii <eliz@gnu.org>
1210
197daef4
EZ
1211 Emulate POSIX_SIGNALS on MS-Windows.
1212
1213 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
1214 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
1215
1216 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
1217 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
1218 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
1219
80f00217
JB
1220 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
1221 New stubs.
197daef4 1222
af7c7572
EZ
1223 Miscellaneous fixes of bidi display.
1224
59ca28de
EZ
1225 * xdisp.c (find_row_end): New function, refactored from display_line.
1226 (display_line): Use it.
017ea819
EZ
1227 (extend_face_to_end_of_line): In almost-filled rows, extend only
1228 if the row is R2L and not continued.
166e930d 1229 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 1230 Preserve overlay and string info in row->end.
166e930d
EZ
1231 (insert_left_trunc_glyphs): Support addition of left truncation
1232 glyphs to R2L rows.
b47e0dcf 1233 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
1234 glyph between adjacent windows. Fix a crash when a display string
1235 is continued to the next line. Don't return zero if cursor was
1236 found by `cursor' property of a display string.
b47e0dcf
EZ
1237 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
1238 test for that explicitly.
59ca28de 1239
7acac9f4
GM
12402010-05-01 Glenn Morris <rgm@gnu.org>
1241
1242 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
1243 for clarity.
1244 (OTHER_OBJ): Remove.
1245 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
1246 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
1247
45841e65
KK
12482010-05-01 Karel Klíč <kklic@redhat.com>
1249
1250 * fileio.c (Ffile_selinux_context): Context functions may return null.
1251
afc61943
DN
12522010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
1253
80f00217 1254 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 1255
5a1bb006
GM
12562010-04-30 Glenn Morris <rgm@gnu.org>
1257
1258 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
1259 (OTHER_OBJ): Define as a separate variable, for clarity.
1260
210af043
J
12612010-04-30 Jan Djärv <jan.h.d@swipnet.se>
1262
1263 * xsettings.c: include limits.h and update file comment.
1264
0a7df391
GM
12652010-04-30 Glenn Morris <rgm@gnu.org>
1266
d5096f16
GM
1267 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
1268 Set with configure, not cpp.
1269 (LIBW): Remove, replace with $TOOLKIT_LIBW.
1270
7eb1ac33
GM
1271 * Makefile.in (mallocobj): Remove.
1272 (otherobj): Simplify using @OTHER_OBJ@.
1273
517d086b
GM
1274 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
1275 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
1276 Don't bother making nsgui.h dependency platform-specific.
1277
0a7df391
GM
1278 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
1279
d6d23852
SM
12802010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
1281
d2630aef
SM
1282 * process.c (read_process_output, exec_sentinel): Don't burp if the
1283 sentinel/filter kills the current buffer (bug#6060).
1284
f9dddf52 1285 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
1286 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
1287 Remove unused var `args'.
1288 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
1289 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
1290 * doc.c (store_function_docstring): Use XSETCAR.
1291
f1e3642a
GM
12922010-04-28 Glenn Morris <rgm@gnu.org>
1293
faf535f8
GM
1294 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
1295 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
1296
c40f9449
GM
1297 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
1298
658f86ca
GM
1299 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
1300 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
1301
bc0b5f61
GM
1302 * Makefile.in (FONT_OBJ): New, set by configure.
1303 (FONT_DRIVERS): Use $FONT_OBJ.
1304
294c50a0
GM
1305 * Makefile.in (LIBXMU): Set with configure, not cpp.
1306 * s/aix4-2.h (LIBXMU):
1307 * s/hpux10-20.h (LIBXMU):
1308 Remove definition, now set in configure.
1309
e6ec4e99
GM
1310 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
1311
f1e3642a
GM
1312 * m/amdx86-64.h [i386]: Move this test to configure.in.
1313
c6ea2936
GM
13142010-04-27 Glenn Morris <rgm@gnu.org>
1315
8fdac2c3
GM
1316 * Makefile.in (LIBXTR6): Set with configure, not cpp.
1317 * s/unixware.h (NEED_LIBW): Remove definition.
1318
986fb647
GM
1319 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
1320 (TOOLKIT_LIBW): New, set by configure.
1321 (@X_TOOLKIT_TYPE@): No longer define it.
1322
c6ea2936
GM
1323 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
1324 (MOTIF_LIBW): Set with configure, not cpp.
1325 * s/aix4-2.h (LIB_MOTIF):
1326 * s/gnu-linux.h (LIB_MOTIF):
1327 * s/unixware.h (LIB_MOTIF): Move to configure.in.
1328
aaa36002
DN
13292010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
1330
1331 Reduce CPP usage.
1332 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
1333 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
1334 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
1335 definitions and undefs. Inline definitions in the only user.
1336 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 1337
b678dd8b
GM
13382010-04-27 Glenn Morris <rgm@gnu.org>
1339
76cda504
GM
1340 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
1341 since the defaults (set by the system file) are fine in most cases.
1342 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
1343 * m/ibms390x.h (START_FILES, LIB_STANDARD):
1344 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
1345 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
1346 Remove definitions, since they are set correctly in s/gnu-linux.h.
1347 * s/freebsd.h (START_FILES, LIB_STANDARD):
1348 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
1349 * s/hpux10-20.h (START_FILES):
1350 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
1351 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
1352
b678dd8b
GM
1353 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
1354 (MOTIF_LIBW): Use $LIBXP.
1355 (otherobj): Use $WIDGET_OBJ.
1356
9452ded1
DN
13572010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
1358
7e10844c
DN
1359 * Makefile.in (LIBS_MACHINE): Remove, unused.
1360
9452ded1
DN
1361 Use autoconf instead of cpp for LIB_MATH.
1362 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
1363 * s/cygwin.h (LIB_MATH): Likewise.
1364 * Makefile.in (LIB_MATH): Do not define with cpp.
1365 (LIBES): Use autoconf for LIB_MATH.
1366
fcebfc6a
KH
13672010-04-26 Kenichi Handa <handa@m17n.org>
1368
1369 * composite.c (Ffind_composition_internal): Fix the return value
1370 for an automatic composition.
1371
39e2ad1b
DN
13722010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
1373
1374 Remove all NO_ARG_ARRAY uses.
1375 * fns.c (concat2, concat3, nconc2):
1376 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
1377 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
1378 * m/xtensa.h (NO_ARG_ARRAY):
1379 * m/template.h (NO_ARG_ARRAY):
1380 * m/sparc.h (NO_ARG_ARRAY):
1381 * m/sh3.h (NO_ARG_ARRAY):
1382 * m/mips.h (NO_ARG_ARRAY):
1383 * m/macppc.h (NO_ARG_ARRAY):
1384 * m/iris4d.h (NO_ARG_ARRAY):
1385 * m/intel386.h (NO_ARG_ARRAY):
1386 * m/ibms390x.h (NO_ARG_ARRAY):
1387 * m/ibms390.h (NO_ARG_ARRAY):
1388 * m/ibmrs6000.h (NO_ARG_ARRAY):
1389 * m/ia64.h (NO_ARG_ARRAY):
1390 * m/hp800.h (NO_ARG_ARRAY):
1391 * m/arm.h (NO_ARG_ARRAY):
1392 * m/amdx86-64.h (NO_ARG_ARRAY):
1393 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
1394
adf4f59c
EZ
13952010-04-25 Eli Zaretskii <eliz@gnu.org>
1396
6bdf5d65
EZ
1397 * xdisp.c (display_line): Don't assume 2nd call to
1398 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
1399 (iterate_out_of_display_property): New function, body from pop_it.
1400 (pop_it): Use it.
adf4f59c 1401
dfbbda83
GM
14022010-04-24 Glenn Morris <rgm@gnu.org>
1403
1404 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
1405 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
1406 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
1407 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
1408
2d4018aa
EZ
14092010-04-24 Eli Zaretskii <eliz@gnu.org>
1410
a49884a6
EZ
1411 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
1412 use `get_next_display_element' and `set_iterator_to_next' to
1413 advance to the next character, when looking for the character that
1414 begins the next row.
1415
76db6fcc 1416 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
1417 definition of "struct Lisp_Symbol".
1418
70eab5c1
GM
14192010-04-24 Glenn Morris <rgm@gnu.org>
1420
1421 * Makefile.in (CRT_DIR): New variable, set by configure.
1422 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
1423 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
1424
1ad4cc3d
DN
14252010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1426
e769f484
DN
1427 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
1428
4196ff33
DN
1429 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
1430
879b0ee4
DN
1431 Remove redundant flags.
1432 * s/freebsd.h (C_SWITCH_SYSTEM):
1433 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
1434 * s/netbsd.h (C_SWITCH_SYSTEM):
1435 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
1436 of these.
1437
03cbbcb8
DN
1438 Simplify m/intel386.h.
1439 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
1440 user: ecrt0.c.
1441 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
1442 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
1443 the only user: s/unixware.h.
1444 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
1445 from m/intel386.h.
1446 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
1447 moved here from m/intel386.h.
1448
1ad4cc3d
DN
1449 * m/mips.h: Remove #if 0 code.
1450
8785b888
EZ
14512010-04-23 Eli Zaretskii <eliz@gnu.org>
1452
728588cc
EZ
1453 Fix display of composed characters from L2R scripts in bidi buffers.
1454 * xdisp.c (set_iterator_to_next, next_element_from_composition):
1455 After advancing IT past the composition, resync the bidi iterator
1456 with IT's position. (Bug#5977)
1457
a63f80b4
DN
14582010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1459
1460 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
1461 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
1462
ff5dec5c
SM
14632010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
1464
1465 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
1466
8785b888
EZ
14672010-04-23 Eli Zaretskii <eliz@gnu.org>
1468
58ccf243 1469 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
1470 * xdisp.c (pop_it): When the stack is popped after displaying
1471 from a string, bidi-iterate to exit from the text portion covered
1472 by the `display' property or overlay. (Bug#5988, bug#5920)
1473
feeb1604
DN
14742010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1475
8e324eb6
DN
1476 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
1477 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
1478
809fcaba
DN
1479 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
1480 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
1481
ed710380
DN
1482 Simplify STARTFILES definition.
1483 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
1484 relying on Makefile.in to define it.
1485 * s/cygwin.h (START_FILES): Likewise.
1486 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
1487
feeb1604
DN
1488 Clean up Solaris code.
1489 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
1490 (LIB_MOTIF): Remove, configure takes care of this.
1491 (NOT_USING_MOTIF): Remove, unused.
1492 * xrdb.c: Remove #if 0-ed #include.
1493 (SYSV): Remove conditional for old SysV.
1494 * sysdep.c (closedir): Remove conditional code for Solaris,
1495 Solaris has closedir.
1496
a0d0b563
JD
14972010-04-22 Jan Djärv <jan.h.d@swipnet.se>
1498
1499 * xsettings.c (read_and_apply_settings): Check if current_font is
1500 NULL before strcmp (Bug#6001).
1501
56bae7c7
DN
15022010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
1503
1504 Clean up HP-UX files.
1505 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
1506 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
1507 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
1508 * s/hpux10-20.h: ... to the only user, here.
1509
372b7a95
EZ
15102010-04-21 Eli Zaretskii <eliz@gnu.org>
1511
1512 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
1513 use buffer-local values of paragraph-start and paragraph-separate.
1514 <paragraph_start_re, paragraph_separate_re>: Rename from
1515 fallback_paragraph_start_re and fallback_paragraph_separate_re.
1516 (Bug#5992)
1517
f904c0f9
JD
15182010-04-21 Jan Djärv <jan.h.d@swipnet.se>
1519
1520 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
1521 current_tool_bar_style are new.
1522 (store_config_changed_event): Rename from store_font_changed_event.
1523 (XSETTINGS_TOOL_BAR_STYLE): New define.
1524 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
1525 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
1526 HAVE_XFT.
1527 (something_changedCB): store_font_changed_event is now
1528 store_config_changed_event
1529 (parse_settings): Rename from parse_xft_settings. Read
1530 non-xft xsettings outside #ifdef HAVE_XFT.
1531 (read_settings): Renamed from read_xft_settings.
1532 (apply_xft_settings): Take current settings as parameter. Do not
1533 call read_(xft)_settings.
1534 (read_and_apply_settings): New function.
1535 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
1536 read_and_apply_settings if there are settings to be read.
1537 (init_xsettings): Renamed from init_xfd_settings.
1538 Call read_and_apply_settings unconditionally.
1539 (xsettings_initialize): Call init_xsettings.
1540 (Ftool_bar_get_system_style): New function.
1541 (syms_of_xsettings): Define Qmonospace_font_name and
1542 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 1543 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 1544 dynamic-setting.
31a01b90 1545 Move misplaced HAVE_GCONF
f904c0f9
JD
1546
1547 * xsettings.h (Ftool_bar_get_system_style): Declare.
1548
1549 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
1550 Qtext, Qboth, Qboth_horiz are new.
1551 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
1552 Vtool_bar_style, tool_bar_max_label_size.
1553
1554 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
1555
1556 * keyboard.c: QClabel is new.
1557 (parse_tool_bar_item): Take out QClabel from tool bar items.
1558 Try to construct a label if ther is no QClabel.
1559 (syms_of_keyboard): Intern :label as QClabel.
1560
1561 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
1562 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
1563 New.
1564
1565 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
1566 dynamic-setting.el.
1567
1568 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
1569 (xg_make_tool_item, xg_show_toolbar_item): New function.
1570 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
1571 Call xg_make_tool_item to make a tool bar item.
1572 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
1573
1574 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
1575 into account for toolbars.
1576
c632dfda
JD
15772010-04-21 Jan Djärv <jan.h.d@swipnet.se>
1578
1579 * data.c (make_blv): Declarations before code (Bug#5993).
1580
10efe302
GM
15812010-04-21 Glenn Morris <rgm@gnu.org>
1582
1583 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
1584 Define using autoconf, not cpp.
1585 (LIBXSM): New variable, set by autoconf.
1586 (LIBXT): Use $LIBXSM.
1587
4285ac5a
DN
15882010-04-21 Dan Nicolaescu <local_user@dannlt>
1589
3ec759e7
DN
1590 Remove NOMULTIPLEJOBS, unused.
1591 * s/template.h (NOMULTIPLEJOBS):
1592 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
1593
4285ac5a
DN
1594 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
1595 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
1596 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
1597 detects -znocombreloc and passes it to the linker
1598 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
1599
2807228d
GM
16002010-04-21 Glenn Morris <rgm@gnu.org>
1601
1602 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
1603
574c05e2
KK
16042010-04-21 Karel Klíč <kklic@redhat.com>
1605
1606 * Makefile.in (LIBSELINUX_LIBS): New.
1607 (LIBES): Add $LIBSELINUX_LIBS.
1608 * eval.c, lisp.h (call7): New function.
1609 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
1610 (Ffile_selinux_context, Fset_file_selinux_context):
1611 New functions.
1612 (Fcopy_file): New parameter preserve-selinux-context.
1613 (Frename_file): Preserve selinux context when renaming by copy-file.
1614
91eac4bb 16152010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 1616 Eli Zaretskii <eliz@gnu.org>
91eac4bb 1617
50426a04
JB
1618 Don't depend on cm.c or termcap.c on Windows, use stubs.
1619 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
1620 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
1621 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
1622 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
1623 (sys_tputs, sys_tgetstr): New stubs.
1624 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
1625 (tputs, tgetstr): New; define to sys_*.
91eac4bb 1626
938efb77
JB
16272010-04-20 Juanma Barranquero <lekktu@gmail.com>
1628
1629 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
1630
b4bf28b7
SM
16312010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1632
8b1e1112
SM
1633 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
1634 Just signal a warning rather than an error when inside a let.
1635 (Fmake_variable_frame_local): Add the same test.
1636
933ac235
SM
1637 * font.c (syms_of_font): Make the style table vars read-only.
1638
b4bf28b7
SM
1639 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
1640 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
1641
1642 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
1643
93d68d0c
EZ
16442010-04-20 Eli Zaretskii <eliz@gnu.org>
1645
1646 Fix R2L paragraph display on TTY.
1647
1648 * xdisp.c (unproduce_glyphs): New function.
1649 (display_line): Use it when produced glyphs are discarded from R2L
1650 glyph rows.
1651 (append_composite_glyph): In R2L rows, prepend the glyph rather
1652 than appending it.
1653
1654 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
1655 rather than append it. Set up the resolved_level and bidi_type
1656 attributes of the appended glyph.
283ccc18
EZ
1657 (produce_special_glyphs): Mirror the backslash continuation
1658 character in R2L lines.
93d68d0c 1659
283ccc18 1660 Implement display of R2L paragraphs in GUI sessions.
26cdf528 1661
283ccc18
EZ
1662 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
1663 append_stretch_glyph.
1664 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
1665 off-by-one error in computing x at end of text in the row.
1666 (append_stretch_glyph): In reversed row, prepend the glyph rather
1667 than append it. Set resolved_level and bidi_type of the glyph.
1668 (extend_face_to_end_of_line): If the row is reversed, prepend a
1669 stretch glyph whose width is such that the rightmost glyph will be
1670 drawn at the right margin of the window. Fix off-by-one error on
1671 TTY frames in testing whether a line needs face extension. Fix
1672 face extension at ZV. If this is the last glyph row, use
1673 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
1674 region face.
1675 (set_cursor_from_row, display_line): Use
26cdf528
EZ
1676 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
1677 row->continuation_lines_width.
283ccc18
EZ
1678 (next_element_from_buffer): Don't call bidi_paragraph_init if we
1679 are at ZV. Fixes a crash when reseated to ZV by
1680 try_window_reusing_current_matrix.
45903529
EZ
1681 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
1682 which happens with R2L glyph rows. Fixes a crash when inserting a
1683 character at end of an R2L line.
283ccc18
EZ
1684 (set_cursor_from_row): Don't be fooled by truncated rows: don't
1685 treat them as having zero-width characters. Improve comments.
1686 Don't reverse pos_before and pos_after for reversed glyph rows.
1687 Set cursor.x to negative value when the cursor might be on the
1688 left fringe.
1689 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
1690 left fringe, not the right one.
f951a506
EZ
1691 (notice_overwritten_cursor, draw_phys_cursor_glyph)
1692 (erase_phys_cursor): For reversed cursor_row, support cursor on
1693 the left fringe.
1694
283ccc18
EZ
1695 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
1696 of continuation indicators on the fringes.
1697 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
1698 left fringe.
1699
f951a506
EZ
1700 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
1701 draw cursor on the left fringe.
1702
1703 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
1704 cursor on the left fringe.
1705
f951a506
EZ
1706 * dispnew.c (update_text_area): Handle reversed desired rows when
1707 the cursor is on the left fringe.
1708 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
1709 below, not by 0, for when the cursor is on the left fringe.
1710
3bb49aaf
JD
17112010-04-20 Jan Djärv <jan.h.d@swipnet.se>
1712
1713 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
1714 widget is a scrollbar.
1715
c0be27fd
KH
17162010-04-20 Kenichi Handa <handa@m17n.org>
1717
1718 * charset.c (char_charset): Consider Vcharset_non_preferred_head
1719 only when the arg CHARSET_LIST is nil.
1720
ce5b453a
SM
17212010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1722
1723 Make variable forwarding explicit rather the using special values.
1724 Basically, this makes the structure of buffer-local values and object
1725 forwarding explicit in the type of Lisp_Symbols rather than use
1726 special Lisp_Objects for that. This tends to lead to slightly more
1727 verbose code, but is more C-like, simpler, and makes it easier to make
1728 sure we handled all cases, among other things by letting the compiler
1729 help us check it.
1730 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
1731 Removing forwarding objects.
1732 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
1733 (struct Lisp_Symbol): Make the various forms of variable-forwarding
1734 explicit rather than hiding them inside Lisp_Object "values".
1735 (XFWDTYPE): New macro.
1736 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
1737 (XBUFFER_LOCAL_VALUE): Remove.
1738 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
1739 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
1740 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
1741 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
1742 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
1743 Remove the Lisp_Misc_* header.
1744 (struct Lisp_Buffer_Local_Value): Redefine.
1745 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
1746 (struct Lisp_Misc_Any): Add filler to get the right size.
1747 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
1748 Lisp_Intfwd.
1749 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
1750 (DEFVAR_KBOARD): Allocate a forwarding object.
1751 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
1752 (let_shadows_global_binding_p): New function.
1753 (union Lisp_Val_Fwd): New type.
1754 (make_blv): New function.
1755 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
1756 (store_symval_forwarding, swap_in_global_binding, Fboundp)
1757 (swap_in_symval_forwarding, find_symbol_value, Fset)
1758 (let_shadows_buffer_binding_p, set_internal, default_value)
1759 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
1760 (Fkill_local_variable, Fmake_variable_frame_local)
1761 (Flocal_variable_p, Flocal_variable_if_set_p)
1762 (Fvariable_binding_locus):
1763 * xdisp.c (select_frame_for_redisplay):
1764 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
1765 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
1766 * frame.c (store_frame_param):
1767 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
1768 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
1769 value structure.
1770 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
1771 (clone_per_buffer_values): Only adjust markers into the current buffer.
1772 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
1773 (Fbuffer_local_value, set_buffer_internal_1)
1774 (swap_out_buffer_local_variables):
1775 Adapt to the new symbol value structure.
1776 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
1777 (defvar_per_buffer): Take a new arg for the fwd object.
1778 (buffer_lisp_local_variables): Return a proper alist (different fix
1779 for bug#4138).
1780 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
1781 (Fgarbage_collect): Don't handle buffer_defaults specially.
1782 (mark_object): Handle new symbol value structure rather than the old
1783 special Lisp_Misc_* objects.
1784 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
1785 * term.c (set_tty_color_mode):
1786 * bidi.c (bidi_initialize): Don't access the ->value field directly.
1787 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
1788 a buffer_local_flags.
1789 * print.c (print_object): Get rid of impossible forwarding objects.
1790
fd3998ff
EZ
17912010-04-19 Eli Zaretskii <eliz@gnu.org>
1792
1793 * bidi.c (bidi_get_type, bidi_get_category)
1794 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
1795 (bidi_type_of_next_char, bidi_level_of_next_char):
1796 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 1797
e42cd1a7
JB
17982010-04-19 Juanma Barranquero <lekktu@gmail.com>
1799
1800 * dired.c (Ffile_attributes): Fix typo in docstring.
1801
6e104790 18022010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
1803
1804 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
1805 NSInteger (Bug#5811).
1806
6e104790 18072010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
1808
1809 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
1810 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
1811
6e104790 18122010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
1813
1814 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
1815
6e104790
SM
18162010-04-19 Chong Yidong <cyd@stupidchicken.com>
1817
1818 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
1819 terminal frames (Bug#5837).
1820
37dcfea0
EZ
18212010-04-19 Eli Zaretskii <eliz@gnu.org>
1822
d1da276f
EZ
1823 * .gdbinit (xsubchartable): New command.
1824
37dcfea0
EZ
18252010-04-19 Eli Zaretskii <eliz@gnu.org>
1826
1827 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 1828 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
1829 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
1830 and
1831 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
1832
e9515805
SM
18332010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
1834
1835 * alloc.c (Fpurecopy): Hash-cons if requested.
1836 (syms_of_alloc): Update purify-flag docstring.
1837
22aa44a8
JD
18382010-04-18 Jan Djärv <jan.h.d@swipnet.se>
1839
1840 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
1841 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
1842
ebb5722e
EZ
18432010-04-17 Eli Zaretskii <eliz@gnu.org>
1844
1845 Fix a crash when an NSM character is inserted at BEGV.
1846
1847 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
1848 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
1849 NEUTRAL_B or UNKNOWN_BT.
1850
0f4442ef
EZ
18512010-04-16 Eli Zaretskii <eliz@gnu.org>
1852
1853 * xdisp.c (set_cursor_from_row): Don't consider possibility of
1854 other rows with cursor unless they are different from this row and
1855 this row is part of a continued line. (Bug#5943)
1856
7d4e45f8
DN
18572010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
1858
1859 * s/freebsd.h: Restore osreldate.h include.
1860 Suggested by Naohiro Aota.
1861
5ba5ec85
J
18622010-04-16 Jan Djärv <jan.h.d@swipnet.se>
1863
1864 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
1865
20af301d
CY
18662010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
1867
1868 * s/cygwin.h: Avoid linking against static libgcc.
1869
a4b000fb
JL
18702010-04-15 Juri Linkov <juri@jurta.org>
1871
1872 * window.c: Add Qscroll_command.
1873 Remove Vscroll_preserve_screen_position_commands.
1874 (window_scroll_pixel_based, window_scroll_line_based): Check the
1875 `scroll-command' property on the last command instead of searching
1876 the last command in Vscroll_preserve_screen_position_commands.
1877 (syms_of_window): Initialize and staticpro `Qscroll_command'.
1878 Put Qscroll_command property on Qscroll_up and Qscroll_down.
1879 (scroll-preserve-screen-position): Doc fix.
1880 (Vscroll_preserve_screen_position_commands): Remove variable.
1881
bc319ba4
DN
18822010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
1883
6bb24457
DN
1884 * xdisp.c (message): Do not use NO_ARG_ARRAY.
1885
19d4c244
DN
18862010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
1887
1888 Reduce cpp use in Makefile.in.
1889 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
1890 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
1891 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
1892 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
1893 (CRT0_COMPILE): Remove, inline it in the only user.
1894
32129746
JL
18952010-04-14 Juri Linkov <juri@jurta.org>
1896
1897 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
1898 `scroll-up-command' and `M-v' from `scroll-down' to
1899 `scroll-down-command'.
1900
9013a7f8
JL
19012010-04-14 Juri Linkov <juri@jurta.org>
1902
1903 * window.c (Vscroll_preserve_screen_position_commands): New variable
1904 with the default value as the list of Qscroll_down and Qscroll_up.
1905 (window_scroll_pixel_based, window_scroll_line_based): Search the
1906 last command in the list Vscroll_preserve_screen_position_commands
1907 instead of comparing with Qscroll_up and Qscroll_down.
1908
4bef8d26
JD
19092010-04-13 Jan Djärv <jan.h.d@swipnet.se>
1910
92848133
JD
1911 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
1912 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
1913 does that.
1914
4bef8d26
JD
1915 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
1916 to zero.
1917
58b963f7
SM
19182010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
1919
84164a0d
SM
1920 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
1921
2b0a91e7
SM
1922 Try to solve the problem of spurious EOF chars in long lines of text
1923 sent to interactive subprocesses.
1924 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
1925 (system_process_attributes): Remove unused var `ttotal'.
1926 * process.c (send_process): Don't bother breaking long line with EOF
1927 chars when talking to ttys any more.
1928 (wait_reading_process_output): Output a warning when called in such
1929 a way that it could block without being interruptible.
1930
58b963f7
SM
1931 Try to detect file modification within the same second.
1932 * buffer.h (struct buffer): New field modtime_size.
1933 * buffer.c (reset_buffer): Initialize it.
1934 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
1935 (Fverify_visited_file_modtime): Check it.
1936 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
1937 (Fset_visited_file_modtime): Set (or clear) it.
1938
01f5787b
SM
19392010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
1940
1941 * process.c (status_notify): Remove unused var `ro'.
1942
83725342
JD
19432010-04-12 Jan Djärv <jan.h.d@swipnet.se>
1944
1945 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
1946 more than one visual (Bug#5938).
1947
b9465836
DN
19482010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
1949
50426a04
JB
1950 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
1951 Undefine.
b9465836 1952
8d9c8ece
DN
19532010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
1954
b1f52161
DN
1955 Remove C_SWITCH_SYSTEM_TEMACS.
1956 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
1957 (malloc, realloc, free): Use emacs, not temacs for conditional
1958 definition.
1959
1960 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
1961 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
1962
8d9c8ece
DN
1963 Use autoconf, not cpp for some variables.
1964 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
1965 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
1966 (ALL_CFLAGS): Use them as make variables.
1967 (really-lwlib, really-oldXMenu): Do not pass them.
1968
1ecb2d3f
JD
19692010-04-11 Jan Djärv <jan.h.d@swipnet.se>
1970
1971 * xmenu.c (apply_systemfont_to_dialog): New.
1972 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
1973
3a4fa2f2
SM
19742010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
1975
97e53006
SM
1976 * process.c (exec_sentinel): Preserve current-buffer.
1977
3a4fa2f2
SM
1978 * process.c (read_process_output): Move the save-current-buffer to
1979 apply to both the filter and the non-filter branches.
1980
88df7221
DN
19812010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
1982
1983 * s/msdos.h (UNEXEC): New definition.
1984
5634ff85
YM
19852010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1986
6eff5c3d
YM
1987 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
1988 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
1989
1990 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
1991 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
1992 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
1993 TRY_WINDOW_CHECK_MARGINS.
1994
1995 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
1996 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
1997 width only when it is for padding.
5634ff85 1998
b13aef54
J
19992010-04-09 Jan Djärv <jan.h.d@swipnet.se>
2000
2001 * xfns.c (Fx_show_tip): Call try_window in a loop until
2002 fonts_changed_p is zero (Bug#2423).
2003
21d28484
EZ
20042010-04-08 Eli Zaretskii <eliz@gnu.org>
2005
2006 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
2007 the end of TEXT_AREA. (Bug#5856)
2008
0269ef77
JD
20092010-04-08 Jan Djärv <jan.h.d@swipnet.se>
2010
2011 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
2012 HAVE_GCONF.
2013
5930fe97
EZ
20142010-04-08 Eli Zaretskii <eliz@gnu.org>
2015
2016 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
2017 prev.orig_type, for resolving type of NSM. (Bug#5858)
2018
99852628
JD
20192010-04-08 Jan Djärv <jan.h.d@swipnet.se>
2020
2021 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
2022 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
2023 in current_font.
2024 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
2025 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
2026 New functions.
2027 (syms_of_xsettings): Initialize current_font.
2028 defsubr Sfont_get_system_normal_font.
99852628
JD
2029
2030 * xsettings.h (Ffont_get_system_normal_font,
2031 xsettings_get_system_normal_font): Declare.
2032
2033 * xfns.c (extern xlwmenu_default_font): Remove.
2034 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
2035 to xlwmenu.c.
2036
2037 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
2038 menu items in UTF-8.
2039
2040 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
2041 (apply_systemfont_to_menu): New function.
2042 (set_frame_menubar, create_and_show_popup_menu): Call
2043 apply_systemfont_to_menu.
2044
7fc874c4
J
20452010-04-07 Jan Djärv <jan.h.d@swipnet.se>
2046
2047 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
2048 FRAME_LINE_TO_PIXEL_Y.
2049
2050 * xterm.c (x_set_window_size_1): Don't add border_width/height to
2051 pixelwidth/height.
2052
863bf481
DN
20532010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
2054
5e5a3b92
DN
2055 Simplify code for HP machines.
2056 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
2057 for GNU_LINUX, not needed.
2058 (UNEXEC, NEED_BSDTTY): Move definitions...
2059 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
2060
863bf481
DN
2061 * m/iris4d.h (UNEXEC): Move definition ...
2062 * s/irix6-5.h (UNEXEC): ... here.
2063
3e6bec3b
JD
20642010-04-04 Jan Djärv <jan.h.d@swipnet.se>
2065
2066 * xfns.c (set_machine_and_pid_properties): New function.
2067 (Fx_create_frame): Call set_machine_and_pid_properties.
2068
2912322b
SM
20692010-04-03 Eli Zaretskii <eliz@gnu.org>
2070
1502b819
EZ
2071 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
2072 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
2073 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
2074
2912322b
SM
2075 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
2076 in this function. (Bug#5703)
2077
20782010-04-03 Chong Yidong <cyd@stupidchicken.com>
2079
2080 * nsterm.h: Fix last change.
2081
c435b432
DN
20822010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
2083
a568f507
DN
2084 * m/intel386.h (NO_REMAP): Move definition ...
2085 * s/msdos.h (NO_REMAP): ... here.
2086
4cd9f6c2
DN
2087 * m/vax.h (CRT0_DUMMIES): Remove, unused.
2088
c435b432
DN
2089 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
2090 used on those platforms.
2091
42a2c622
DN
20922010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
2093
2094 Remove extern errno declarations.
2095 * xterm.c:
2096 * xrdb.c:
2097 * w32term.c:
2098 * unexec.c:
2099 * unexaix.c:
2100 * sysdep.c:
2101 * process.c:
2102 * lread.c:
2103 * keyboard.c:
2104 * floatfns.c:
2105 * filelock.c:
2106 * fileio.c:
2107 * emacs.c (main):
2108 * ecrt0.c:
2109 * dispnew.c:
2110 * callproc.c:
2111 * buffer.c: Remove errno extern declarations.
2112 * s/netbsd.h (NEED_ERRNO): Remove.
2113
8224f93d
DN
21142010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
2115
2116 Remove all uses of LIBX11_SYSTEM.
2117 * Makefile.in (LIBX11_SYSTEM): Remove.
2118 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
2119 instead.
2120
814062c7
EZ
21212010-04-01 Eli Zaretskii <eliz@gnu.org>
2122
ed68db4d
EZ
2123 Remove support for DJGPP v1.x (bug#5813).
2124
2125 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
2126 * s/msdos.h:
2127 * unexec.c (make_hdr, copy_text_and_data):
2128 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 2129 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
2130 (IT_set_terminal_modes, __write, _rename, gethostname)
2131 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
2132 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
2133 the value of __DJGPP__.
ed68db4d
EZ
2134 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
2135 compatibility code.
8224f93d
DN
2136 * lread.c:
2137 * gmalloc.c (memalign):
2138 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
2139 * emacs.c (main):
2140 * dosfns.c (init_dosfns):
ed68db4d
EZ
2141 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
2142
52f4d8d5
EZ
21432010-04-01 Eli Zaretskii <eliz@gnu.org>
2144
814062c7
EZ
2145 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
2146 string with `cursor' property comes from an `after-string'
2147 overlay. (Bug#5816)
2148
0dc2e11d
GM
21492010-04-01 Glenn Morris <rgm@gnu.org>
2150
2151 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
2152 Define as Makefile variables.
2153 (LIBX): Use above variables rather than directly using autoconf.
2154
1d29df59
DN
21552010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
2156
2157 Clean up BSD_SYSTEM use.
2158 * xterm.c:
2159 * process.c:
2160 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
2161 for including <sys/ioctl.h>.
2162 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
2163 code is only used for MSDOS.
2164
1546c559
JL
21652010-03-31 Juri Linkov <juri@jurta.org>
2166
2167 * image.c: Add `Qextension_data'.
2168 (syms_of_image): Initialize and staticpro `Qextension_data'.
2169 (Fimage_metadata): Rename from `Fimage_extension_data'.
2170 (gif_load): Put GIF extension data to the property
2171 `Qextension_data'.
2172
6521c534
CY
21732010-03-31 Chong Yidong <cyd@stupidchicken.com>
2174
2175 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
2176 * nsterm.h: Fix prototype.
2177
52c30783
EZ
21782010-03-31 Eli Zaretskii <eliz@gnu.org>
2179
2180 * xdisp.c (highlight_trailing_whitespace): Support highlight of
2181 trailing whitespace in right-to-left rows.
2182
855a0da7
SM
21832010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
2184
2185 Get rid of the direct_output optimizations.
2186 * keyboard.c (nonundocount): Remove extern declaration.
2187 (command_loop_1): Remove brittle optimisation for cheap and
2188 common operations.
2189 * xdisp.c (redisplay_internal): Don't bother checking
2190 redisplay_performed_directly_p any more.
2191 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
2192 any more.
2193 * dispnew.c (redisplay_performed_directly_p)
2194 (direct_output_for_insert, direct_output_forward_char):
2195 * dispextern.h (redisplay_performed_directly_p)
2196 (direct_output_for_insert, direct_output_forward_char): Remove.
2197 * cmds.c (nonundocount): Make it static.
2198
85738751 21992010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
2200
2201 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
2202
85738751 22032010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
2204
2205 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
2206 invisible (Bug#5766).
2207
85738751 22082010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 2209
855a0da7
SM
2210 * xdisp.c (x_consider_frame_title, update_window_cursor):
2211 Remove HAVE_NS conditionals.
194d44e7 2212 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
2213
2214 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
2215 filename for the title.
2216 (ns_set_doc_edited): Do nothing if the selected window is a
2217 minibuffer window.
2218
2219 * nsterm.h: Add prototypes for ns_set_name_as_filename and
2220 ns_set_doc_edited.
2221
2222 * nsterm.m: Remove unneeded prototype.
2223
85738751 22242010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
2225
2226 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
2227 in the DOC file. (Bug#5336)
2228
85738751 22292010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
2230
2231 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
2232
75d1428c
SM
22332010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
2234
2235 * window.c (keys_of_window): Remove redundant/overridden bindings.
2236
82043cfb
EZ
22372010-03-30 Eli Zaretskii <eliz@gnu.org>
2238
2239 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
2240 Restore original behavior when the iterator is not bidi_p.
2241
b5dd0ae7
DN
22422010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
2243
2244 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
2245
bd924a5d
EZ
22462010-03-30 Eli Zaretskii <eliz@gnu.org>
2247
2248 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
2249 are outside the range of cached character positions.
2250
3580374b
JB
22512010-03-30 Juanma Barranquero <lekktu@gmail.com>
2252
2253 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
2254
a7b02820
EZ
22552010-03-30 Eli Zaretskii <eliz@gnu.org>
2256
2257 Initial support for bidirectional editing.
2258
2259 * Makefile.in (obj): Include bidi.o.
2260 (bidi.o): New target.
2261
2262 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
2263 ($(BLD)/bidi.$(O)): New target.
2264
2265 * bidi.c: New file.
2266
2267 * buffer.h (struct buffer): New members bidi_display_reordering
2268 and bidi_paragraph_direction.
2269
2270 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
2271 and bidi_paragraph_direction.
2272 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
2273 and bidi-paragraph-direction.
2274 (Fbuffer_swap_text): Swap the values of
2275 bidi_display_reordering and bidi_paragraph_direction.
2276
2277 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
2278 (bidi_type_t, bidi_dir_t): New types.
2279 (bidi_saved_info, bidi_stack, bidi_it): New structures.
2280 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
2281 prev_stop, base_level_stop, and eol_pos.
2282 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
2283 (IT_STACK_SIZE): Enlarge to 5.
2284 (struct glyph_row): New member reversed_p.
2285 <string_buffer_position>: Update prototype.
2286 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
2287 glyph_row if bidi_it.paragraph_dir == R2L.
2288 (struct glyph): New members resolved_level and bidi_type.
2289
2290 * dispnew.c (direct_output_forward_char): Give up if we need bidi
2291 processing or buffer's direction is right-to-left.
2292 (prepare_desired_row): Preserve the reversed_p flag.
2293 (row_equal_p): Compare the reversed_p attributes as well.
2294
2295 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
2296 bidi_init_it and set it->paragraph_embedding from the current
2297 buffer's value of bidi_paragraph_direction.
2298 (reseat_1): Initialize bidi_it.first_elt.
2299 (set_iterator_to_next, next_element_from_buffer): Use the value of
2300 paragraph_embedding to determine the paragraph direction.
2301 (set_iterator_to_next): Under bidi reordering, call
2302 bidi_get_next_char_visually. Call bidi_paragraph_init if the
2303 new_paragraph flag is set in the bidi iterator.
2304 (next_element_from_buffer): If bidi_it.first_elt is set,
2305 initialize paragraph direction and find the first character to
2306 display in the visual order. If reseated to a middle of a line,
2307 prime the bidi iterator starting at the line's beginning. Handle
2308 the situation where we overstepped stop_charpos due to
2309 non-linearity of the bidi iteration. Likewise for when we back up
2310 beyond the previous stop_charpos. When moving across stop_charpos,
2311 record it in prev_stop.
2312 (display_line): Set row->end and it->start for the next row to the
2313 next character in logical order. Always extend reversed_p rows to
2314 the end of line, even if they end at ZV. Copy the reversed_p flag
2315 to the next glyph row. Keep calling set_cursor_from_row for
2316 bidi-reordered rows even if we already have a possible candidate
2317 for cursor position. Set row_end after all the row's glyphs have
2318 been produced, by looping over the glyphs. Record the position
2319 after EOL in it->eol_pos, and use it to set end_pos of the last
2320 row produced for a continued line.
2321 <Qright_to_left, Qleft_to_right>: New variables.
2322 (syms_of_xdisp): Initialize and staticpro them.
2323 (string_buffer_position_lim): New function.
2324 (string_buffer_position): Most of code moved to
2325 string_buffer_position_lim. Last argument and return value are
2326 now EMACS_INT; all callers changed.
2327 (set_cursor_from_row): Rewritten to support bidirectional text and
2328 reversed glyph rows.
2329 (text_outside_line_unchanged_p, try_window_id): Disable
2330 optimizations if we are reordering bidirectional text and the
2331 paragraph direction can be affected by the change.
2332 (append_glyph, append_composite_glyph)
2333 (produce_image_glyph, append_stretch_glyph): Set the
2334 resolved_level and bidi_type members of each glyph.
2335 (append_glyph): If the glyph row is reversed, prepend the glyph
2336 rather than appending it.
2337 (handle_stop_backwards): New function.
2338 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
2339 (reseat): call handle_stop_backwards to recompute prev_stop and
2340 base_level_stop for the new position.
2341 (handle_invisible_prop): Under bidi iteration, skip invisible text
2342 using bidi_get_next_char_visually. If we are `reseat'ed, init the
2343 paragraph direction. Update IT->prev_stop after skipping
2344 invisible text.
2345 (move_it_in_display_line_to): New variables prev_method
2346 and prev_pos. Compare for strict equality in
2347 BUFFER_POS_REACHED_P.
2348 (try_cursor_movement): Examine all the candidate rows that occlude
2349 point, to return the best match. If rows are bidi-reordered
2350 and point moved backwards, back up to the row that is not a
2351 continuation line, and start looking for a suitable row from
2352 there.
2353
2354 * term.c (append_glyph): Reverse glyphs by pre-pending them,
2355 rather than appending, if the glyph_row's reversed_p flag is set.
2356 Set the resolved_level and bidi_type members of each glyph.
2357
2358 * .gdbinit (pbiditype): New command.
2359 (pgx): Use it to display bidi level and type of the glyph.
2360 (pitx): Display some bidi information about the iterator.
2361 (prowlims, pmtxrows): New commands.
2362
32a8894e
DN
23632010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
2364
2365 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
2366 * s/usg5-4.h (LIBS_DEBUG):
2367 * s/irix6-5.h (C_DEBUG_SWITCH):
2368 * s/gnu-linux.h (LIBS_DEBUG):
2369 * s/darwin.h (LIBS_DEBUG):
2370 * s/bsd-common.h (LIBS_DEBUG):
2371 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
2372 * m/iris4d.h (LIBS_DEBUG):
2373 * m/hp800.h (LIBS_DEBUG): Remove definitions.
2374
2375 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
2376 (LIBS_DEBUG): Remove definition.
2377
649dbf36
CY
23782010-03-27 Chong Yidong <cyd@stupidchicken.com>
2379
2380 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
2381 Windows.
2382
cad4261f
YM
23832010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2384
2385 * process.c (Fmake_network_process): Don't call turn_on_atimers around
2386 `connect' (Bug#5723).
2387
cd591dbc
HE
23882010-03-25 Helmut Eller <eller.helmut@gmail.com>
2389
2390 * process.c (Fmake_network_process): Call `select' for interrupted
2391 `connect' rather than creating new socket (Bug#5173).
2392
e867cb5d 23932010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
2394
2395 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
2396
2397 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
2398
2399 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
2400
e867cb5d 24012010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
2402
2403 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
2404 XLoadQueryFont.
2405
e867cb5d 24062010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
2407
2408 * coding.c (decode_coding_ccl): Fix previous change for the
2409 multibyte case.
fb608df3
KH
2410 (encode_coding_ccl): Don't setup ccl program here. Fix for the
2411 case that the output buffer is fullfilled.
2412 (encode_coding): Setup ccl program here.
fbdc1721 2413
5845f0ed
DN
24142010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
2415
814fb708
DN
2416 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
2417
5845f0ed
DN
2418 Simplify LIBS_MACHINE definitions.
2419 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
2420 * m/iris4d.h (LIBS_MACHINE): Likewise.
2421 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
2422 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 2423 * s/netbsd.h: Remove commented out code.
5845f0ed 2424
b7064064
DN
24252010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
2426
df7734b2
DN
2427 Remove dead code dealing with POSIX_SIGNALS.
2428 * atimer.c (set_alarm): Remove dead code, all USG systems define
2429 POSIX_SIGNALS.
2430 * data.c (arith_error): Likewise.
2431 * keyboard.c (input_available_signal, handle_user_signal)
2432 (interrupt_signal): Likewise.
2433 * process.c (sigchld_handler): Likewise.
2434 (create_process): Remove if 0 code. Remove HPUX conditional when
2435 !defined (POSIX_SIGNALS), it cannot be true.
2436 * syssignal.h: Remove USG5_4 and USG conditionals when
2437 !POSIX_SIGNALS, they cannot be true.
2438
b7064064
DN
2439 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
2440 NO_SOCK_SIGIO, not used anymore.
2441
55da5ee3
DN
24422010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
2443
0be96e3a
DN
2444 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
2445 support vax on BSDs.
2446
55da5ee3
DN
2447 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
2448 * s/aix4-2.h (ORDINARY_LINK): ... here.
2449
c0282183
AS
24502010-03-21 Andreas Schwab <schwab@linux-m68k.org>
2451
82c3d67a
AS
2452 * Makefile.in (abs_builddir): Define.
2453 (bootstrap_exe): Use it.
2454 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 2455
3613edce
SM
24562010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
2457
2458 * Makefile.in (bootstrap_exe): Use an absolute name.
2459
7f110ddc
DN
24602010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2461
22e87574
DN
2462 Remove support for old GNU/Linux using libc version 5.
2463 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
2464 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
2465
05a670e6
DN
2466 Consolidate redundant definitions in s/bsd-common.h.
2467 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2468 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2469 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
2470 doing it in all files that include this one.
2471 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2472 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2473 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2474 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2475 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2476 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2477 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2478 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2479 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2480
2968f561
DN
2481 Consolidate redundant definitions.
2482 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
2483 it's undefined in all files that include this one.
2484 (POSIX_SIGNALS): Define here instead of doing it in all files that
2485 include this one.
2486 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2487 (POSIX_SIGNALS): Do not define.
2488 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2489 (POSIX_SIGNALS): Do not define.
2490 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2491 (POSIX_SIGNALS): Do not define.
2492
15d25dc0
DN
2493 Remove support for old UNIX System V systems.
2494 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
2495 * s/usg-5-4-2.h: Remove.
2496
07e339e4
DN
2497 Remove support for Solaris on PPC and for old versions.
2498 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
2499 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
2500 that cancel each other.
2501 * s/sol2-3.h:
2502 * s/sol2-4.h:
2503 * s/sol2-5.h: Remove.
2504 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
2505 (NO_REMAP): Remove, unused.
2506 (UNEXEC): Move definition ...
2507 * s/aix4-2.h (UNEXEC): ... here.
2508
7f110ddc
DN
2509 * s/openbsd.h: Remove support for non-ELF and for systems that do
2510 not support shared libraries.
2511 * s/netbsd.h:
2512 * s/freebsd.h: Likewise.
2513
605f35cd
DN
25142010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2515
2516 Remove non-working support for lynxos 3.0.
2517 * s/lynxos.h: Remove file.
2518
2519 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
2520 COFF_BSD_SYMBOLS, nothing defines it anymore.
2521
aed71cf4
DN
25222010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2523
2524 Remove obsolete uses of HAVE_SHM.
2525 * emacs.c (standard_args):
2526 (Fdump_emacs):
2527 (syms_of_emacs): Remove code depending on HAVE_SHM.
2528
2529 * alloc.c: Remove HAVE_SHM dependent definition.
2530
2531 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
2532
aded53ff
GM
25332010-03-18 Glenn Morris <rgm@gnu.org>
2534
17284745
GM
2535 * emacs.c (USAGE4): Hard-code bug address.
2536 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
2537 (bug_reporting_address): Remove.
2538 (main): Don't call bug_reporting_address.
2539
aded53ff
GM
2540 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
2541 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
2542
303500aa
CY
25432010-03-15 Chong Yidong <cyd@stupidchicken.com>
2544
2545 * xfns.c (Fx_create_frame):
2546 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
2547 on left.
2548
cef3058f
CY
25492010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
2550
2551 * editfns.c (Fformat): Account for string precision when computing
2552 field width (Bug#5710).
2553
a647d59d
CY
25542010-03-12 Chong Yidong <cyd@stupidchicken.com>
2555
4fa42018
CY
2556 * xfns.c (Fx_create_frame): Set default to Qright.
2557
a647d59d
CY
2558 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
2559 all window systems.
2560
6da23aaa
EZ
25612010-03-12 Eli Zaretskii <eliz@gnu.org>
2562
a96f6398 2563 These changes remove termcap.c from the build on Posix platforms.
83d02def 2564 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
2565 (MSDOS_OBJ): ...to here.
2566 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
2567 now identical to when LIBS_TERMCAP is defined.
2568
2569 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
2570
2571 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
2572
a96f6398 2573 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 2574
288f9fc0
CY
25752010-03-10 Chong Yidong <cyd@stupidchicken.com>
2576
2577 * Branch for 23.2.
2578
d48cd3f4
SM
25792010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
2580
2581 Cleanup setup of gl_state in various parts of the code.
2582 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
2583 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
2584 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
2585 (skip_chars):
2586 * regex.c (regex_compile): Use it.
2587 (re_compile_pattern): Don't set gl_state.current_syntax_table since
2588 it's now set in regex_compile when/if we need it.
2589
618db430
SM
25902010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
2591
c0335e02
SM
2592 Make it possible to C-g in a tight bytecode loop again (bug#5680).
2593 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
2594 (QUIT): Use it to consolidate code and remove redundancy.
2595 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
2596
254c06a8
SM
2597 * regex.c (regex_compile): Setup gl_state as well.
2598
618db430
SM
2599 * syntax.c (skip_chars): Setup gl_state (bug#3823).
2600 (in_classes): Use CONSP before XCAR/XCDR.
2601
233f0c9f
CY
26022010-03-03 Chong Yidong <cyd@stupidchicken.com>
2603
2604 * keymap.c (Fwhere_is_internal): Use Fequal to compare
2605 definitions, so that keyboard macros are correctly handled
2606 (Bug#5481).
2607
75f80e63
EZ
26082010-03-02 Eli Zaretskii <eliz@gnu.org>
2609
2610 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
2611 text that could be relocated inside the call to emacs_mule_char.
2612 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
2613 (CODING_DECODE_CHAR): Add a comment describing its purpose.
2614
dcfb9bc4
KH
26152010-03-02 Kenichi Handa <handa@m17n.org>
2616
fc9a17bc
KH
2617 * character.c (parse_str_as_multibyte): Fix handling of the
2618 multibyte form of raw-bytes.
2619 (str_as_multibyte): Likewise.
2620
dcfb9bc4
KH
2621 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
2622 form of raw-bytes.
2623
412c01b6
CY
26242010-02-28 Chong Yidong <cyd@stupidchicken.com>
2625
2626 * charset.c (load_charset_map_from_file)
2627 (load_charset_map_from_vector): Zero out allocated
2628 charset_map_entries before using them.
2629
df7e1ea0
AS
26302010-02-27 Andreas Schwab <schwab@linux-m68k.org>
2631
2632 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
2633
fe69a722
CY
26342010-02-27 Chong Yidong <cyd@stupidchicken.com>
2635
4ed28cf4
CY
2636 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
2637 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 2638
7379cfce
KH
26392010-02-26 Kenichi Handa <handa@m17n.org>
2640
f88cc4d6
KH
2641 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
2642
7379cfce
KH
2643 * xdisp.c (reseat_to_string): Fix previous change.
2644
cf2fdcfb
CY
26452010-02-26 David Reitter <david.reitter@gmail.com>
2646
2647 * nsfont.m (nsfont_draw): ns_antialias_text should be a
2648 Lisp_Object (Bug#4736).
2649
cc6c7c75
KH
26502010-02-25 Kenichi Handa <handa@m17n.org>
2651
2652 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
2653
32e737d7
JD
26542010-02-24 Jan Djärv <jan.h.d@swipnet.se>
2655
2656 * xterm.c (XTflash): Move declarations before statements.
2657
2658 * gtkutil.c (xg_get_gdk_display): Remove (unused).
2659 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
2660 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
2661 (xg_create_tool_bar): Remove unused variables.
2662 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 2663 (xg_create_frame_widgets): Remove variable grav.
32e737d7 2664
676cae9f
CY
26652010-02-21 Chong Yidong <cyd@stupidchicken.com>
2666
2667 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
2668
886cc2b8
SM
26692010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
2670
2671 * term.c (fatal): Add a final \n if needed (bug#5596).
2672
ddb2d8e2
CY
26732010-02-18 Chong Yidong <cyd@stupidchicken.com>
2674
2675 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
2676
2a4f8d3d
GM
26772010-02-18 Glenn Morris <rgm@gnu.org>
2678
2679 * callint.c (Finteractive): Doc fix.
2680
ebaf11b6
KH
26812010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
2682
886cc2b8
SM
2683 * coding.c (record_conversion_result):
2684 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
2685 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
2686 memory allocation error.
2687
d0396581
KH
26882010-02-17 Kenichi Handa <handa@m17n.org>
2689
886cc2b8
SM
2690 * coding.c (decode_coding_ccl): Don't setup ccl program here.
2691 Fix for the case that the output buffer is fullfilled.
d0396581
KH
2692 (decode_coding): Setup ccl program here. Keep looping when the
2693 decoder stopped because the output buffer is
2694 fullfilled (bug#5534).
2695
2696 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
2697
98599f74
JD
26982010-02-13 Jan Djärv <jan.h.d@swipnet.se>
2699
471e4f04 2700 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 2701 bug #5571.
886cc2b8 2702 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 2703 overdrawn.
98599f74 2704
182659ae
JD
27052010-02-10 Jan Djärv <jan.h.d@swipnet.se>
2706
2707 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
2708 doing_interact here.
2709 (ice_connection_closed): New function.
2710 (x_session_check_input, smc_die_CB, ice_io_error_handler)
2711 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
2712 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
2713 returns I/O error.
2714 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
2715 bug #5512.
2716
9be32c4e 27172010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
2718
2719 * nsfont.m (nsfont_open): The system's value for the font descent
2720 is negative, so round it down to avoid clipping.
2721
a2f3eb19
CY
27222010-02-06 Chong Yidong <cyd@stupidchicken.com>
2723
2724 * charset.c (load_charset_map_from_file)
2725 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 2726 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 2727
3088147c
CY
27282010-02-05 Chong Yidong <cyd@stupidchicken.com>
2729
2730 * charset.c (load_charset_map_from_file): Allocate large
2731 charset_map_entries structure on the heap rather than the stack.
2732 (Bug#5526).
2733
b57d9029
KH
27342010-01-31 Kenichi Handa <handa@m17n.org>
2735
2736 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 2737 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 2738
c67d885b
CY
27392010-01-31 Chong Yidong <cyd@stupidchicken.com>
2740
2741 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
2742 <deactivated@gmail.com> (Bug#3605).
2743
8fab2362
CY
27442010-01-31 David De La Harpe Golden <david@harpegolden.net>
2745
2746 * fileio.c (Frename_file): Correctly rename symlinks to
2747 directories (Bug#5496).
2748
cb2a62f2
CY
27492010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
2750
2751 * nsterm.m (ns_ring_bell): Handle visible bell like X.
2752
944c7a26
AS
27532010-01-30 Andreas Schwab <schwab@linux-m68k.org>
2754
2755 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
2756
c024ac08
CY
27572010-01-29 Chong Yidong <cyd@stupidchicken.com>
2758
2759 * frame.c (DEFAULT_ROWS): Change default to 35.
2760
2761 * xfns.c (x_default_font_parameter): Change default XFT font to
2762 monospace-10 (Bug#3643).
2763
af93af83
EZ
27642010-01-29 Eli Zaretskii <eliz@gnu.org>
2765
2766 * w32inevt.c (key_event): Remove unnecessary comparison of
2767 event->uChar.AsciiChar with 128.
2768
ca0eb708
CY
27692010-01-28 Chong Yidong <cyd@stupidchicken.com>
2770
b242dbfc
CY
2771 * fileio.c (Frename_file): Fix last change (Bug#5487).
2772
ca0eb708
CY
2773 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
2774
2775 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
2776
45d45af5
JD
27772010-01-28 Jan Djärv <jan.h.d@swipnet.se>
2778
2779 * xfns.c (Fx_create_frame): Remove window size matching code from
2780 2010-01-15.
a73f9c9d 2781 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 2782
7e233730
JR
27832010-01-27 Jason Rumney <jasonr@gnu.org>
2784
2785 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 2786 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 2787
86e893e3
KH
27882010-01-27 Kenichi Handa <handa@m17n.org>
2789
2790 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 2791 pattern string (Bug#4209).
86e893e3 2792
8719abec
CY
27932010-01-27 David De La Harpe Golden <david@harpegolden.net>
2794
2795 * fileio.c (Frename_file): Call copy-directory and
2796 delete-directory for directories, in order to handle cross-device
2797 renaming (Bug#3353).
2798
844794c8
JD
27992010-01-25 Jan Djärv <jan.h.d@swipnet.se>
2800
aa3e13b5 2801 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 2802 sizes 24 and 10. Bug #3643.
844794c8 2803
bd4b5750
SM
28042010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
2805
8dc1adf6 2806 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
2807 * keymap.c (shadow_lookup): Add `remap' arg.
2808 (describe_map, describe_vector): Update calls to shadow_lookup.
2809 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
2810 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
2811 perform remapping during shadow_lookup check of remapped_sequences.
2812
285d07e2
CY
28132010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
2814
2815 * image.c (png_load): Use png_sig_cmp instead of the obsolete
2816 png_check_sig, which has been removed in libpng 1.4.
2817
c6d09b8d
CY
28182010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
2819
2820 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
2821 lacks this header file).
2822
3d782998
YM
28232010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2824
2825 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
2826 as in Emacs 22.
2827
2aff7c53
YM
28282010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2829
2830 * lisp.h (make_pure_string): String pointer arg now points to const.
2831
2832 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
2833 args now point to const.
2834
74327f7a
EZ
28352010-01-22 Eli Zaretskii <eliz@gnu.org>
2836
2837 * lread.c (Fload): Don't treat files without .elc extension as
2838 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
2839 them. (bug#5303)
2840
4d1e6632
KH
28412010-01-20 Kenichi Handa <handa@m17n.org>
2842
2843 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
2844 treat the source as actual byte sequence.
2845
1fdede8f
AM
28462010-01-19 Alan Mackenzie <acm@muc.de>
2847
2848 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 2849 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
2850 `signal_after_change_p' to `coherent_change_p', and make the
2851 invocation of `modify_region' conditional on it.
2852
67477f30
JD
28532010-01-19 Jan Djärv <jan.h.d@swipnet.se>
2854
2855 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
2856 for debug purpose.
2857 (syms_of_xsettings): Declare xft-settings.
2858
244b023e
CY
28592010-01-18 Chong Yidong <cyd@stupidchicken.com>
2860
2861 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
2862
617364fe
CY
28632010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
2864
2865 * xterm.c (event_handler_gdk): Block input (Bug#5037).
2866
4fe22cdf
CY
28672010-01-16 Chong Yidong <cyd@stupidchicken.com>
2868
2869 * emacs.c (standard_args): Adjust arg priorities to reflect how
2870 they are processed in startup.el.
2871
e118d2be
AS
28722010-01-16 Andreas Schwab <schwab@linux-m68k.org>
2873
2874 * Makefile.in (lisp, shortlisp): Update.
2875
523ae620
SM
28762010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
2877
2878 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
2879 code, link the new kboard into all_kboard before running Lisp code,
2880 and protect the new terminal with GCPRO (Bug#5365).
2881 (x_term_init): Remove unused var `atom'.
2882 (x_delete_display, x_delete_terminal): Remove unused var `i'.
2883
f0d13888
JD
28842010-01-15 Jan Djärv <jan.h.d@swipnet.se>
2885
2886 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
2887 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
2888 to find out usable size of the desktop. Don't make frames larger than
ac146f82 2889 this. Bug #3643.
f0d13888 2890
cc320f07
KH
28912010-01-15 Kenichi Handa <handa@m17n.org>
2892
2893 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
2894
7ffdf101
CY
28952010-01-15 Chong Yidong <cyd@stupidchicken.com>
2896
2897 * nsterm.m (Qnone): Define.
2898
2899 * nsfns.m (Qnone): Move definition to nsterm.m.
2900
d12bd917
KH
29012010-01-14 Kenichi Handa <handa@m17n.org>
2902
2903 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
2904 systems.
2905
d9a7c140
KH
29062010-01-14 Kenichi Handa <handa@m17n.org>
2907
2908 Make auto-composition work on all buffers even if they are
2909 fundamental mode.
2910
2911 * composite.c (Vauto_composition_mode): New variable.
2912 (composition_compute_stop_pos): Check Vauto_composition_mode
2913 instead of Vauto_composition_function.
2914 (composition_adjust_point, Ffind_composition_internal): Likewise.
2915 (syms_of_composite): Declare Lisp variable
2916 "auto-composition-mode" here.
2917
63286bb2
CY
29182010-01-13 Chong Yidong <cyd@stupidchicken.com>
2919
2920 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
2921 during call to vendor-specific-keysyms (Bug#5365).
2922
c2623ee7
YM
29232010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2924
2925 * keyboard.c (input_available_signal) [SYNC_INPUT]:
2926 Call SIGNAL_THREAD_CHECK (Bug#5333).
2927
2928 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
2929 Call SIGNAL_THREAD_CHECK.
2930
0b5397c2
SM
29312010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
2932
2933 Try to fix bug#5314. This is probably not the final word, tho.
2934 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
2935 recent-auto-save-p as a side-effect.
2936 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
2937 * buffer.c (Fkill_buffer, reset_buffer):
2938 * editfns.c (Fsubst_char_in_region):
2939 * fileio.c (Finsert_file_contents, Fdo_auto_save)
2940 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
2941
dc954cb2
KH
29422010-01-13 Kenichi Handa <handa@m17n.org>
2943
2944 Display buffer name, etc. in mode line by composing correctly.
2945
2946 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
2947 STRING is not nil.
0b5397c2 2948 (display_mode_element): Adjust for the change of
dc954cb2
KH
2949 decode_mode_spec and display_line.
2950 (decode_mode_spec): Change arg MULTIBYTE to STRING.
2951 (display_string): Handle the case that STRING is non-null and
2952 LISP_STRING is not nil.
2953
0b5397c2
SM
2954 * xterm.c (x_draw_composite_glyph_string_foreground):
2955 Pay attention to s->face->overstrike.
dc954cb2
KH
2956
2957 * composite.c (composition_reseat_it): Don't check PT if STRING is
2958 non nil.
2959
4a00eaca
YM
29602010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2961
2962 * keyboard.c (read_char): Don't apply previous change when current
2963 buffer is unchanged by command execution.
2964
60abb287
JD
29652010-01-12 Jan Djärv <jan.h.d@swipnet.se>
2966
2967 * keyboard.c (read_char): Return after executing from special map.
2968
893db5bc
GM
29692010-01-12 Glenn Morris <rgm@gnu.org>
2970
2971 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
2972 bug-gnu-emacs rather than emacs-pretest-bug.
2973
4d03ece0
CY
29742010-01-11 Chong Yidong <cyd@stupidchicken.com>
2975
2976 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
2977 initializing the Lisp variables that depend on them.
2978
1df47e38
YM
29792010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2980
2981 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
2982 Clear areas that will not be updated after change of menu bar lines.
2983 Clear the menu bar window's current matrix when the window gets empty.
2984
2f1c6384
CY
29852010-01-09 Chong Yidong <cyd@stupidchicken.com>
2986
e398c61c
CY
2987 * intervals.h, textprop.c (extend_property_ranges): Return value
2988 and args changed. Discard properties that begin at or after the
2989 new end (Bug#5306).
2990
2991 * editfns.c (Fformat): Caller changed.
2992
e5a29a10
CY
2993 * nsterm.m (ns_set_default_prefs): Delete function.
2994 (syms_of_nsterm): Initialize ns_command_modifier,
2995 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
2996 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
2997
2f1c6384
CY
2998 * xdisp.c (pos_visible_p): Check for invisible text at the correct
2999 position (Bug#4040).
3000
d427a9fa
EZ
30012010-01-09 Eli Zaretskii <eliz@gnu.org>
3002
3003 * editfns.c (Ffloat_time): Doc fix.
3004
21b9df2f
JD
30052010-01-09 Jan Djärv <jan.h.d@swipnet.se>
3006
3007 * xfns.c (Fx_create_frame): Don't create frame larger than display
3008 by default bug#3643.
3009
4b00d3b1
YM
30102010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3011
3012 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
3013 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
3014 windows above internal border.
3015
3016 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
3017 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
3018 windows above internal border.
3019
3020 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
3021 tool bar windows specially.
3022
3023 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
3024
3025 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
3026 specially.
3027 (XTflash): Take account of menu bar height.
3028
3029 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
3030 specially.
3031
5075d853
JD
30322010-01-08 Jan Djärv <jan.h.d@swipnet.se>
3033
ac146f82 3034 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
3035 also be true before we can return early (bug #5339).
3036
474217c8
CY
30372010-01-06 David Reitter <david.reitter@gmail.com>
3038
3039 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
3040 (Fns_display_usable_bounds): Rewrite, computing bounds properly
3041 (Bug#3233).
3042
c0e6d47d
JD
30432010-01-06 Jan Djärv <jan.h.d@swipnet.se>
3044
d0cf45b7
JD
3045 * font.c (font_open_entity): Enable chache and call cached_font_ok
3046 for the driver if defined.
3047 (QCuser_spec): New symbol.
3048 (font_spec_from_name): Save name as user-spec.
3049 (font_load_for_lface): Keep user-spec instead of name.
3050 (font_open_by_name): Save name as user-spec.
3051 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 3052 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
3053
3054 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
3055 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
3056 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
3057
3058 * font.h (struct font_driver): Add cached_font_ok.
3059
c0e6d47d
JD
3060 * xterm.c (x_clear_frame): Queue draw for scroll bars.
3061
7c583cd8
JD
30622010-01-05 Jan Djärv <jan.h.d@swipnet.se>
3063
3064 * xterm.c (x_new_font): Move code for setting rows/cols before
3065 resizing ...
ac146f82 3066 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
3067
3068 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
3069 (xg_frame_resized, xg_frame_set_char_size):
3070 Call xg_clear_under_internal_border.
7c583cd8 3071 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 3072
03f77f0a
CY
30732010-01-05 Chong Yidong <cyd@stupidchicken.com>
3074
3075 * keyboard.c (read_key_sequence): Catch keyboard switch after
3076 making a new tty frame (Bug#5095).
3077
2a1ef5be
KH
30782010-01-05 Kenichi Handa <handa@m17n.org>
3079
3080 * fontset.c (fontset_find_font): Fix getting the frame pointer.
3081
e3eb1dae
SM
30822010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
3083
3084 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
3085 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
3086 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
3087
777013f2
MA
30882010-01-03 Michael Albinus <michael.albinus@gmx.de>
3089
3090 * dbusbind.c (xd_add_watch): Improve debug message.
3091 (xd_remove_watch): Improve debug message. If DATA is the session
3092 bus, unset D-Bus session environment.
3093 (Fdbus_init_bus): Pass the bus as argument to
3094 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 3095
8932b1c2
CY
30962010-01-01 Chong Yidong <cyd@stupidchicken.com>
3097
87231e2c
CY
3098 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
3099
4801c5fa
CY
3100 * lread.c (syms_of_lread): Make it clearer that these are the
3101 names of loaded files (Bug#5068).
3102
8932b1c2
CY
3103 * eval.c (run_hook_with_args): Handle the case where the global
3104 value has the obsolete single-function form (Bug#5026).
3105
11e3c684
CY
31062009-12-27 Chong Yidong <cyd@stupidchicken.com>
3107
3108 * minibuf.c (Fall_completions): Minor optimization.
3109
5b28ce35
EZ
31102009-12-26 Eli Zaretskii <eliz@gnu.org>
3111
5ce6e4f4
JB
3112 * .gdbinit (pgx): Fix display of composite glyphs.
3113 Display cmp.from and cmp.to as well.
3114 (pitx): Fix last change.
5b28ce35 3115
bcffff46
KH
31162009-12-25 Kenichi Handa <handa@m17n.org>
3117
3118 * composite.h (composition_adjust_point): Update prototype.
3119
3120 * composite.c (composition_reseat_it): Don't make a composition
3121 spanning over point.
3122 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
3123 composable characters.
3124 (composition_adjust_point): New arg NEW_PT. Callers changed.
3125
3126 * keyboard.c (command_loop_1): Force redisplay if the last point
3127 was within a composition.
3128 (adjust_point_for_property): Don't adjust point for automatic
3129 composition when called after buffer modification.
3130
3f670e9a
EZ
31312009-12-19 Eli Zaretskii <eliz@gnu.org>
3132
5ce6e4f4
JB
3133 * .gdbinit (pitx): Don't use enum names, use their values.
3134 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
3135 (pgx): Don't use enum names, use their values.
3136 (pitmethod): New helper command.
3137 (pitx): Use it to display iteration method.
3138 (pgrowit): New command.
3139
ad903955
EZ
3140 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
3141
3f670e9a
EZ
3142 Update dependencies in Makefile.in.
3143
3144 * Makefile.in (alloc.o): Depend on termhooks.h.
3145 (atimer.o): Depend on blockinput.h.
3146 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
3147 and frame.h.
3148 (callint.o): Depend on systime.h, coding.h, and composite.h.
3149 (callproc.o): Depend on buffer.h.
3150 (casefiddle.o): Don't depend on charset.h.
3151 (casetab.o): Depend on character.h.
3152 (ccl.o): Depend on composite.h.
3153 (chartab.o): Depend on ccl.h.
3154 (cm.o): Depend on dispextern.h.
3155 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
3156 (coding.o): Don't depend on $(INTERVALS_H).
3157 (composite.o): Don't depend on dispextern.h explicitly (it's in
3158 $(INTERVALS_H)). Depend on ccl.h.
3159 (data.o): Depend on systime.h, coding.h, composite.h,
3160 dispextern.h, font.h, and ccl.h.
3161 (dired.o): Depend on composite.h.
3162 (dispnew.o): Depend on coding.h. Don't depend explicitly on
3163 composite.h (it's in $(INTERVALS_H)).
3164 (doc.o): Depend on systime.h, coding.h, and composite.h.
3165 (editfns.o): Don't depend explicitly on dispextern.h.
3166 (emacs.o): Depend on frame.h and coding.h.
3167 (eval.o): Depend on coding.h, composite.h, and xterm.h.
3168 (fileio.o): Depend on frame.h and commands.h. Don't depend
3169 explicitly on dispextern.h.
3170 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
3171 composite.h.
3172 (fns.o): Don't depend on termhooks.h.
3173 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
3174 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
3175 coding.h, $(INTERVALS_H), window.h, xterm.h.
3176 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
3177 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
3178 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
3179 fontset.h, ccl.h, and ftfont.h.
3180 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
3181 (gtkutil.o): Depend on dispextern.h and composite.h.
3182 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
3183 termhooks.h, and ccl.h.
3184 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
3185 (intervals.o): Depend on systime.h and coding.h.
3186 (keyboard.o): Depend on composite.h and coding.h.
3187 (keymap.o): Depend on coding.h and frame.h.
3188 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
3189 (macros.o): Depend on systime.h, coding.h, and composite.h.
3190 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
3191 and atimer.h.
3192 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
3193 dispextern.h explicitly.
0b5397c2
SM
3194 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
3195 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
3196 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
3197 (regex.o): Don't depend on charset.h.
3198 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
3199 (search.o): Don't depend explicitly on composite.h.
3200 (sound.o): Depend on atimer.h and systime.h.
3201 (syntax.o): Don't depend explicitly on composite.h.
3202 (sysdep.o): Depend on coding.h and composite.h.
3203 (term.o): Depend on xterm.h and buffer.h.
3204 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
3205 (textprop.o): Don't depend on dispextern.h explicitly.
3206 (undo.o): Depend on dispextern.h.
3207 (window.o): Depend on coding.h and termhooks.h. Don't depend on
3208 dispextern.h and composite.h explicitly.
3209 (xdisp.o): Depend on ccl.h.
3210 (xfaces.o): Depend on coding.h and ccl.h.
3211 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
3212 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
3213 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
3214 ftfont.h.
3215 (xgselect.o): New dependency.
3216 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
3217 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
3218 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
3219 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
3220 (xsmfns.o): Depend on frame.h and dispextern.h.
3221 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
3222 sysselect.h.
3223
7a6f7fea
AS
32242009-12-19 Andreas Schwab <schwab@linux-m68k.org>
3225
3226 * font.c (Fclear_font_cache): Pass correct cache argument to
3227 font_clear_cache.
3228
f4c21026
AS
32292009-12-16 Andreas Schwab <schwab@linux-m68k.org>
3230
3231 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
3232 twice.
3233
f7ab0997
CY
32342009-12-15 Chong Yidong <cyd@stupidchicken.com>
3235
3236 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
3237 calling file-remote-p. Reported by Jim Meyering.
3238
fa8e045a
MA
32392009-12-15 Michael Albinus <michael.albinus@gmx.de>
3240
3241 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 3242 avoid compiler warnings. (Bug #5217)
fa8e045a 3243
a63dba42
KH
32442009-12-14 Kenichi Handa <handa@m17n.org>
3245
3246 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
3247 in 8-bit encoding.
3248
5ce6e4f4 32492009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
3250
3251 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
3252 tooltip windows.
3253
223e5fc6
JD
32542009-12-13 Jan Djärv <jan.h.d@swipnet.se>
3255
36acb2a7
JD
3256 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
3257 Xatom_net_window_type.
3258
3259 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
3260 Xatom_net_window_type.
3261
b8f00677
JD
3262 * xterm.c (my_log_handler): New function.
3263 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 3264 so we can filter out buggy messages. (Bug #5120).
b8f00677 3265
e5f0bc9a
JD
3266 * xterm.c (xg_scroll_callback): Parameter list changed,
3267 use parameter GtkScrollType to determine scroll/line/page.
3268 Only allow dragging if a button < 4 is grabbed (bug #5177).
3269 (xg_end_scroll_callback): New function.
3270 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
3271 xg_create_scroll_bar.
3272
3273 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
3274 (scroll_end_callback): Remove.
3275 (xg_create_scroll_bar): Add parameter end_callback, bind it to
3276 button-release-event. Replace value-changed event with change-value,
3277 bug #5177,
3278 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
3279 bug #5177.
3280
3281 * gtkutil.h (XG_LAST_SB_DATA): Remove.
3282 (xg_create_scroll_bar): Add GCallback end_callback.
3283
223e5fc6
JD
3284 * xftfont.c (QClcdfilter): New variable.
3285 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
3286 (syms_of_xftfont): Initialize QClcdfilter.
3287
3c055b77
JD
32882009-12-12 Jan Djärv <jan.h.d@swipnet.se>
3289
3290 * xsettings.c (struct xsettings): Add member seen.
3291 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 3292 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
3293 (apply_xft_settings): Only update Xft settings with what member seen
3294 indicates as new.
3295
05fe33ff
EZ
32962009-12-12 Eli Zaretskii <eliz@gnu.org>
3297
3298 * dispextern.h (struct text_pos): Use EMACS_INT;
3299 (struct glyph): Use EMACS_INT for charpos.
3300 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
3301 region_beg_charpos, region_end_charpos,
3302 redisplay_end_trigger_charpos, and also for
3303 iterator_stack_entry.end_charpos and
3304 iterator_stack_entry.stop_charpos.
3305
e8d7886a
JD
33062009-12-12 Jan Djärv <jan.h.d@swipnet.se>
3307
5ce6e4f4 3308 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
3309 (xg_create_scroll_bar): Call scroll_end_callback on button release
3310 event (bug #5177).
3311 (xg_event_is_for_scrollbar): != replaced with ==.
3312
d0db2ec8
KH
33132009-12-12 Kenichi Handa <handa@m17n.org>
3314
3315 * ftfont.c (struct ftfont_info): New member matrix.
3316 (ftfont_open): Setup xftfont_info->matrix.
3317 (MFLTFontFT): New member matrix.
3318 (FLOOR, CEIL, ROUND): New macros.
3319 (ftfont_get_metrics): Handle matrix transformation.
3320 (ftfont_shape_by_flt): New arg matrix. Callers changed.
3321
3322 * xftfont.c (struct xftfont_info): New member matrix.
3323 (xftfont_open): Setup xftfont_info->matrix.
3324
33252009-12-10 Kenichi Handa <handa@m17n.org>
3326
3327 * xdisp.c (append_space_for_newline): Consider face-remapping.
3328
2cc7b62f
AS
33292009-12-09 Andreas Schwab <schwab@linux-m68k.org>
3330
b87dd913
AS
3331 * xsettings.c: Include "keyboard.h".
3332
eba5eb94
AS
3333 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
3334
2cc7b62f
AS
3335 Fix implicit function declarations.
3336 * cmds.c: Include "frame.h".
3337 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
3338 * frame.h: Move declaration of delete_frame outside of
3339 HAVE_WINDOW_SYSTEM.
3340
a4ef73c8
CY
33412009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
3342
3343 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
3344
3345 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
3346 GTK builds.
3347
944a300c
AS
33482009-12-07 Andreas Schwab <schwab@linux-m68k.org>
3349
3350 * unexelf.c (unexec): Don't search for .data twice.
3351
022eef62
CY
33522009-12-05 Chong Yidong <cyd@stupidchicken.com>
3353
426ac949
CY
3354 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
3355 if push failed.
3356 (handle_line_prefix): Set avoid_cursor_p here. Check return value
3357 of push_display_prop (Bug#5000).
3358
022eef62
CY
3359 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
3360 value of font_list_entities (Bug#5085).
3361
be95bee9
JB
33622009-12-04 Juanma Barranquero <lekktu@gmail.com>
3363
3364 Fix `string-to-number' to deal consistently with integers and floats.
3365 * lread.c (isfloat_string): New argument ignore_trailing to accept all
3366 trailing characters, not just whitespace.
3367 (read1): Pass new arg 0 to keep old behavior.
3368 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
3369 trailing chars, as it is already done for integers. Doc fixes.
3370 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
3371
24c2d7ce
EZ
33722009-12-04 Eli Zaretskii <eliz@gnu.org>
3373
0b5397c2
SM
3374 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
3375 Delete unused enumeration value.
24c2d7ce 3376
7e694795
EZ
33772009-12-03 Eli Zaretskii <eliz@gnu.org>
3378
3379 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
3380
84b31826
SM
33812009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
3382
3383 * process.c (Fmake_network_process): Fix up the tests for
3384 "connectionless socket", so they DTRT for seqpacket sockets as well.
3385
f00c449b
SM
33862009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
3387
3388 * process.c (Qseqpacket): New symbol.
3389 (HAVE_SEQPACKET): New macro.
3390 (Fmake_network_process): Accept new :type `seqpacket'.
3391 (init_process): Add `seqpacket' feature when applicable.
3392 (syms_of_process): Initialize Qseqpacket.
3393
8096a0ff
YM
33942009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3395
3396 * font.c (font_load_for_lface, font_open_by_name): Don't store name
3397 if entity is Qnil.
3398
3e0de07f
SM
33992009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
3400
3401 * print.c (print_preprocess): Preprocess the key_and_value table of
3402 hashtables, even tho they're "hidden" (bug#5082).
3403
abeafb2a
JD
34042009-11-29 Jan Djärv <jan.h.d@swipnet.se>
3405
3406 * frame.c (frame_make_pointer_invisible)
3407 (frame_make_pointer_visible): Declare f before statements.
3408
4bf47195
EZ
34092009-11-28 Eli Zaretskii <eliz@gnu.org>
3410
3411 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
3412 omitted dependencies on lisp.h.
3413
c525b3f2
JD
34142009-11-27 Jan Djärv <jan.h.d@swipnet.se>
3415
ece2d4ed
JD
3416 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
3417 is NULL.
3418
3419 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
3420
3421 * frame.c (frame_make_pointer_invisible)
3e0de07f 3422 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
3423 frame.
3424
c525b3f2
JD
3425 * search.c (simple_search): Remove warning by making *p const.
3426
2f00e299
DN
34272009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
3428
3429 * xdisp.c (power_letter): Remove duplicate const.
3430
084b049b
JD
34312009-11-25 Jan Djärv <jan.h.d@swipnet.se>
3432
a1fadc6f
JD
3433 * term.c (delete_tty): Remove check for last terminal (bug#4970).
3434
5ce6e4f4 3435 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
3436 defaults (bug #5025).
3437
28259cac
SM
34382009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
3439
3440 * insdel.c (adjust_markers_for_delete): Move it in the
3441 right direction! (bug#4803)
3442
e8e14166
YM
34432009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3444
3445 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
3446
3447 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
3448
86677b58
GM
34492009-11-24 Glenn Morris <rgm@gnu.org>
3450
3451 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
3452
581e51e8
JD
34532009-11-23 Jan Djärv <jan.h.d@swipnet.se>
3454
cfc86c7a
JD
3455 * Makefile.in: Must create deps for ecrt0.o in its rule.
3456
581e51e8
JD
3457 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
3458 because that is what Gtk+ font dialog understands.
3459
3460 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
3461 of Fcopy_sequence.
3462 (font_open_by_name): Put name given into QCname for font-object returned.
3463
3464 * frame.c (x_set_font): Save original font name as frame parameter
3465 font-parameter.
3466
3467 * xsettings.c (set_default_xft_settings): New function.
3468 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
3469 is found.
3470
8b264ecb
AS
34712009-11-22 Andreas Schwab <schwab@linux-m68k.org>
3472
3473 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
3474 searching backwards through multibyte buffer.
3475
872870b2
JD
34762009-11-21 Jan Djärv <jan.h.d@swipnet.se>
3477
3478 * xterm.c: #include xgselect.h.
3479 (x_initialize): Call xgselect_initialize.
3480
3481 * xsettings.c (something_changedCB): C++ comments => C comments.
3482 (init_gconf): Do not deal with any GLib file descriptors, xg_select
3483 does that now.
3484
3485 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
3486 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
3487 (scroll_bar_button_cb): Remove.
5ce6e4f4 3488 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
3489 event.
3490 (xg_create_scroll_bar): Don't bind button-press-event and
3491 button-release-event.
3492
3493 * process.c: Include xgselect.h if defined (USE_GTK) ||
3494 defined (HAVE_GCONF).
3495 (wait_reading_process_output): Call xg_select for the same condition.
3496
3497 * xgselect.c (xg_select): New function to better integrate with
3498 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
3499
3500 * xgselect.h: New file, declare xg_select, xgselect_initialize.
3501
3502 * Makefile.in (XOBJ): Add xgselect.o.
3503
62a6e103
AS
35042009-11-21 Andreas Schwab <schwab@linux-m68k.org>
3505
0b5397c2
SM
3506 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
3507 Remove ignored second argument. All callers changed.
62a6e103
AS
3508 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
3509 (RE_STRING_CHAR_AND_LENGTH): Likewise.
3510 * xdisp.c (string_char_and_length): Likewise.
3511
b0ca0f33
DN
35122009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
3513
3514 * xterm.c (x_new_font):
3515 * print.c (print_object):
3516 * cmds.c (Fself_insert_command): Move declarations before statements.
3517
dd5a6279
CY
35182009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
3519
3520 * s/cygwin.h: Remove unneeded linker flags.
3521
4a8e097d
JD
35222009-11-20 Jan Djärv <jan.h.d@swipnet.se>
3523
0d1d0d26
JD
3524 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
3525
3526 * xsettings.h: Declare xsettings_get_system_font.
3527
3528 * xsettings.c (xsettings_get_system_font): New function.
3529 (init_gconf): No use initiating gconf unless we have Xft also.
3530 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
3531 HAVE_GCONF.
3532
4a8e097d
JD
3533 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
3534 add a blank entry so it doesn't collapse into nothing.
3535
8ab1650e
SM
35362009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
3537
3538 * lread.c (Funintern): Comment out last change.
3539
82c602f0
RS
35402009-11-19 Richard Stallman <rms@gnu.org>
3541
3542 * lread.c (Funintern): Error if symbol is t or nil.
3543
87e32266
SM
35442009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
3545
3546 * insdel.c (make_gap_larger): Don't make as many assumptions about the
3547 representation of Lisp integers.
3548 Reported by MJ Chan <mjchan.inbox@gmail.com>.
3549
1b9ac145
AS
35502009-11-17 Andreas Schwab <schwab@linux-m68k.org>
3551
3552 * lisp.h: Remove declaration of Ffont_get_system_font.
3553 * xfns.c: Move include of "xsettings.h".
3554 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
3555
dfb3c4c6
JD
35562009-11-17 Jan Djärv <jan.h.d@swipnet.se>
3557
87e32266
SM
3558 * xsettings.c (something_changedCB, Ffont_get_system_font):
3559 Check use_system_font.
dfb3c4c6
JD
3560 (syms_of_xsettings): DEFVAR font-use-system-font.
3561
9370c1d8
AS
35622009-11-17 Andreas Schwab <schwab@linux-m68k.org>
3563
25fe851a
AS
3564 * xfns.c (x_default_font_parameter): Remove dead assignment.
3565
9370c1d8
AS
3566 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
3567
637fa988
JD
35682009-11-17 Jan Djärv <jan.h.d@swipnet.se>
3569
87e32266 3570 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 3571 not have FC_LCD_*. #define them if not there.
a6eb20d8 3572
87e32266 3573 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 3574
637fa988
JD
3575 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
3576
3577 * xterm.c (handle_one_xevent): Call xft_settings_event for
3578 ClientMessage, PropertyNotify and DestroyNotify.
3579 (x_term_init): If we have XFT, get DPI from Xft.dpi.
3580 Call xsettings_initialize.
3581
3582 * xftfont.c (xftfont_fix_match): New function.
3583 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
3584 Call xftfont_fix_match after XftFontMatch.
3585
3586 * xfont.c (xfont_driver): Initialize all members.
3587
87e32266
SM
3588 * xfns.c (x_default_font_parameter):
3589 Try font from Ffont_get_system_font.
637fa988
JD
3590 Do not get font from x_default_parameter if we got one from
3591 Ffont_get_system_font.
87e32266 3592 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
3593
3594 * w32font.c (w32font_driver): Initialize all members.
3595
3596 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
3597
3598 * lisp.h: Declare syms_of_xsettings.
3599
87e32266
SM
3600 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
3601 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
3602
3603 * ftfont.c (ftfont_filter_properties): New function.
3604
3605 * frame.c (x_set_font): Remove unused variable lval.
3606
87e32266 3607 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
3608
3609 * font.c (font_put_extra): Don't return if val is nil, it means
3610 boolean option is off.
3611 (font_parse_fcname): Collect all extra properties in extra_props
3612 and call filter_properties for all drivers with extra_props and
3613 font as parameter.
87e32266
SM
3614 (font_open_entity): Do not use cache, it does not pick up new
3615 fontconfig settings like hinting.
637fa988
JD
3616 (font_load_for_lface): If spec had a name in it, store it in entity.
3617
a73f9c9d 3618 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
3619
3620 * config.in: HAVE_GCONF is new.
3621
3622 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
3623 xsettings.o is new.
3624
5a942932
KH
36252009-11-17 Kenichi Handa <handa@m17n.org>
3626
3627 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
3628 back to the default font in case that no suitable font is found.
3629
b7c7a4d1
SM
36302009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
3631
3632 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
3633 Suggested by Chad Brown <yandros@mit.edu>.
3634 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
3635
072f1e39
JD
36362009-11-16 Jan Djärv <jan.h.d@swipnet.se>
3637
3638 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
3639
5d1e70a2
AS
36402009-11-14 Andreas Schwab <schwab@linux-m68k.org>
3641
87e32266 3642 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 3643
a53cfbe5
JD
36442009-11-14 Jan Djärv <jan.h.d@swipnet.se>
3645
473a99b7
JD
3646 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
3647 has a parent.
3648
a53cfbe5 3649 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 3650 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
3651
3652 * config.in: Generated (AUTO_DEPEND).
3653
f04bb9b2
MA
36542009-11-13 Michael Albinus <michael.albinus@gmx.de>
3655
b7c7a4d1 3656 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
3657 Vdbus_registered_functions_table, because it contains also
3658 properties. Fix docstring.
b7c7a4d1 3659 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 3660
8f11f7ec
SM
36612009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
3662
3663 * alloc.c (mark_object): Don't reprocess marked strings.
3664 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
3665 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
3666
8a605fe8
KH
36672009-11-13 Kenichi Handa <handa@m17n.org>
3668
8f11f7ec 3669 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
3670 semantics of Vword_combining_categories.
3671 (Vword_combining_categories): Describe the slight change of the
3672 semantics.
3673
241c4680
EZ
36742009-11-13 Eli Zaretskii <eliz@gnu.org>
3675
3676 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
3677
3678 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
3679
5d58e44c
SM
36802009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
3681
3682 * xdisp.c (syms_of_xdisp): Fix typo in last change.
3683
5e13f9d3
JB
36842009-11-12 Juanma Barranquero <lekktu@gmail.com>
3685
3686 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
3687
cf54c754
DR
36882009-11-11 David Reitter <david.reitter@gmail.com>
3689
3690 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
3691 variables to fix 2009-11-09 change.
3692
a4ada374
DN
36932009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
3694
91433552
DN
3695 * process.c (ifflag_def): Make flag_sym constant.
3696 (Fnetwork_interface_info): Use a constant pointer.
3697 (ifflag_table):
3698 * xfns.c (cursor_bits):
3699 * xdisp.c (power_letter):
3700 * termcap.c (speeds, esctab):
3701 * sysdep.c (baud_convert):
3702 * keyboard.c (lispy_accent_codes, modifier_names):
3703 * image.c (xbm_format, xpm_format, pbm_format, png_format)
3704 (jpeg_format, tiff_format, gif_format, svg_format)
3705 (interlace_start, interlace_increment, gs_format):
3706 * gtkutil.c (separator_names):
3707 * fringe.c (swap_nibble):
3708 * fns.c (base64_value_to_char, base64_char_to_value):
3709 * fileio.c (make_temp_name_tbl):
3710 * coding.c (suffixes): Make constant.
3711
f4265f6c
DN
3712 * frame.c (make_initial_frame):
3713 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
3714 build_string.
3715 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
3716
04420943
DN
3717 * s/freebsd.h:
3718 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
3719
0a5d24ae
DN
3720 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
3721 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
3722
a4ada374
DN
3723 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
3724 * xterm.c (syms_of_xterm):
3725 * xfaces.c (syms_of_xfaces):
3726 * xdisp.c (syms_of_xdisp):
3727 * lread.c (syms_of_lread):
3728 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
3729 build_string.
91433552 3730
a4ada374
DN
3731 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
3732
af98fc7f
SM
37332009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3734
8ab1650e 3735 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 3736
e90292a9
JD
37372009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3738
3739 * keyboard.h: Declare timer_check.
3740
3741 * keyboard.c (timer_check_2): New function that does what the old
3742 timer_check did.
3743 (timer_check): Call timer_check_2 until -1 or a non-zero time is
3744 returned, i.e. don't return -1 with timers pending.
3745
3746 * process.c: Remove extern declaration of timer_check.
3747
3748 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
3749 even if timer_check returned -1.
3750
af98fc7f
SM
3751 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
3752 xg_dialog_data.
e90292a9
JD
3753 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
3754 the event loop.
3755 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
3756 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
3757 Destroy the dialog after xg_dialog_run.
3758
045b83c0
SM
37592009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3760
3761 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
3762
1fb99a3a
JD
37632009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3764
3765 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
3766
04e452cb
JB
37672009-11-09 Juanma Barranquero <lekktu@gmail.com>
3768
3769 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
3770
ef7417fd
SM
37712009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
3772
3773 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
3774 w32menu.c, and nsmenu.m.
3775 Simplify the obsolete case where position is nil.
3776 (cleanup_popup_menu): New function, moved from nsmenu.m.
3777 (struct skp): Remove slot `notreal'.
3778 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
3779 adjust callers.
3780 (single_menu_item): Adjust call to parse_menu_item.
3781 (syms_of_menu): Defsubr x-popup-menu.
3782 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
3783 (keymap_panes): Don't export any more.
3784 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
3785 (xmenu_show): Declare.
3786 * keyboard.c (parse_menu_item): Remove arg `notreal'.
3787 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
3788 * keyboard.h (parse_menu_item): Update declaration.
3789 * xmenu.c (Fx_popup_menu): Remove.
3790 (syms_of_xmenu): Don't defsubr x-popup-menu.
3791 * w32menu.c (Fx_popup_menu): Remove.
3792 (syms_of_w32menu): Don't defsubr x-popup-menu.
3793 * nsmenu.m (cleanup_popup_menu): Remove.
3794 (ns_menu_show): Rename from ns_popup_menu and remove all the code
3795 moved to menu.c's Fx_popup_menu.
3796 (Fx_popup_menu): Remove.
3797 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
3798 menu_items (it's done in menu.c already).
3799
424d6179
SM
38002009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
3801
3802 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
3803 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
3804
c0df13a6 38052009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
3806
3807 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 3808 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
3809 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
3810 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
3811
2de9f71c
SM
38122009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
3813
3814 Let integers use up 2 tags to give them one extra bit and thus double
3815 their range.
3816 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
3817 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
3818 New macros.
3819 (enum Lisp_Type): Use them. Give explicit values.
3820 (Lisp_Type_Limit): Remove.
3821 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
3822 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
3823 Pay attention to USE_2_TAGS_FOR_INTS.
3824 (INTEGERP): Use LISP_INT_TAG_P.
3825 * fns.c (internal_equal): Simplify the default case.
3826 (sxhash): Use case_Lisp_Int.
3827 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
3828 any more.
3829 (Ftype_of): Use case_Lisp_Int.
3830 (store_symval_forwarding): Take into account the fact that Ints can
3831 now have more than one tag.
3832 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
3833 buffer_slot_type_mismatch):
3834 * xfaces.c (face_attr_equal_p):
3835 * print.c (print_object):
3836 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
3837 Use case_Lisp_Int.
3838
323637a2
EZ
38392009-11-06 Eli Zaretskii <eliz@gnu.org>
3840
7ac65b38
EZ
3841 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
3842
323637a2
EZ
3843 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
3844 warning.
3845
e511451f
JD
38462009-11-06 Jan Djärv <jan.h.d@swipnet.se>
3847
3848 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
3849
3850 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
3851
3852 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
3853 ButtonPressRelease and MotionNotify (bug#4870).
3854
5e2327cf
DN
38552009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
3856
5adc433e
DN
3857 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
3858
d67b4f80
DN
3859 * xterm.c (syms_of_xterm):
3860 * xselect.c (syms_of_xselect):
3861 * xmenu.c (syms_of_xmenu):
3862 * xfns.c (syms_of_xfns):
3863 * xfaces.c (syms_of_xfaces):
3864 * xdisp.c (syms_of_xdisp):
3865 * window.c (syms_of_window):
3866 * w32fns.c (syms_of_w32fns):
3867 * undo.c (syms_of_undo):
3868 * textprop.c (syms_of_textprop):
3869 * terminal.c (syms_of_terminal):
3870 * syntax.c (syms_of_syntax):
3871 * sound.c (syms_of_sound):
3872 * search.c (syms_of_search):
3873 * print.c (syms_of_print):
3874 * minibuf.c (syms_of_minibuf):
3875 * macros.c (syms_of_macros):
3876 * keymap.c (syms_of_keymap, initial_define_key)
3877 (initial_define_lispy_key):
3878 * keyboard.c (syms_of_keyboard):
3879 * insdel.c (syms_of_insdel):
3880 * image.c (syms_of_image):
3881 * fringe.c (syms_of_fringe):
3882 * frame.c (syms_of_frame):
3883 * fontset.c (syms_of_fontset):
3884 * fns.c (syms_of_fns):
3885 * fns.c (syms_of_fns):
3886 * fileio.c (syms_of_fileio):
3887 * fileio.c (syms_of_fileio):
3888 * eval.c (syms_of_eval):
3889 * doc.c (syms_of_doc):
3890 * dispnew.c (syms_of_display):
3891 * dired.c (syms_of_dired):
3892 * dbusbind.c (syms_of_dbusbind):
3893 * data.c (syms_of_data):
3894 * composite.c (syms_of_composite):
3895 * coding.c (syms_of_coding):
3896 * cmds.c (syms_of_cmds):
3897 * charset.c (define_charset_internal, syms_of_character):
3898 * ccl.c (syms_of_ccl):
3899 * category.c (syms_of_category, init_category_once):
3900 * casetab.c (syms_of_casetab):
3901 * casefiddle.c (syms_of_casefiddle):
3902 * callint.c (syms_of_callint):
3903 * bytecode.c (syms_of_bytecode):
3904 * buffer.c (keys_of_buffer, syms_of_buffer):
3905 * alloc.c (syms_of_alloc):
3906 * process.c (syms_of_process, init_process):
3907 * lread.c (syms_of_lread, init_obarray):
3908 * font.c (build_style_table):
3909 * emacs.c (syms_of_emacs, main): Replace calls to intern with
3910 intern_c_string, calls to make_pure_string with
3911 make_pure_c_string. Use pure_cons instead of Fcons.
3912
5e2327cf
DN
3913 * process.c (socket_options): Make it const.
3914 (set_socket_option, init_process): Use a const pointer.
3915
3916 * lread.c (intern_c_string): New function.
3917 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
3918 (defvar_int): Uset it. Make the name const char*.
3919
3920 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
3921 (defvar_int): Update prototypes.
3922 (DEFUN, EXFUN): Support for prototypes is now required.
3923 (intern_c_string): New prototype.
3924 (struct Lisp_Subr): Make symbol_name constant.
3925
3926 * font.c (struct table_entry): Remove unused member. Make NAMES
3927 constant.
3928 (weight_table, slant_table, width_table): Make constant.
3929
3930 * emacs.c (struct standard_args): Make name and longname constant.
3931
3932 * character.h (DEFSYM): Use intern_c_string.
3933
a56eaaef
DN
39342009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
3935
3936 * alloc.c (make_pure_c_string): New function.
3937
3938 * eval.c (Fautoload): Purecopy all arguments.
3939
f6a07420
KH
39402009-11-05 Kenichi Handa <handa@m17n.org>
3941
3942 * fileio.c (Finsert_file_contents): Be sure set coding-system of
3943 the buffer in case of replace.
3944
5d28d4b1
DN
39452009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
3946
3947 * puresize.h (BASE_PURESIZE): Increase to 1620000.
3948
b349d111
SM
39492009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
3950
d528b1ce
SM
3951 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
3952 when applicable (bug#4851).
3953
b349d111
SM
3954 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
3955 (P_): Support for prototypes is now required.
3956
c38eb027
CY
39572009-10-31 Chong Yidong <cyd@stupidchicken.com>
3958
3959 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
3960 (Bug#4827).
3961
0405f8d9
EZ
39622009-10-30 Eli Zaretskii <eliz@gnu.org>
3963
d528b1ce 3964 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 3965
ca0a881a
DN
39662009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
3967
3968 * puresize.h (BASE_PURESIZE): Increase to 1470000.
3969
d528b1ce
SM
3970 * lread.c (Fload): Purecopy the file name when building
3971 Vpreloaded_file_list.
ca0a881a 3972
47e0e0e4
JR
39732009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
3974
3975 * w32fns.c (syms_of_w32fns): Change default value of
3976 w32-scroll-lock-modifier to nil. (Bug#2827)
3977
057bce6f
JB
39782009-10-26 Juanma Barranquero <lekktu@gmail.com>
3979
782a943e 3980 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 3981
242bc74c
AS
39822009-10-26 Andreas Schwab <schwab@redhat.com>
3983
3984 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
3985
522d013a
JB
39862009-10-26 Juanma Barranquero <lekktu@gmail.com>
3987
3988 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
3989 For delta < 0, skip check that only makes sense when the mini-window
3990 is going to be enlarged. (Bug#4534)
3991
18060980
CY
39922009-10-25 Chong Yidong <cyd@stupidchicken.com>
3993
3994 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
3995 string in menu maps (Bug#4471).
3996
fec8f0fe
CY
39972009-10-24 Chong Yidong <cyd@stupidchicken.com>
3998
3999 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
4000 FRAME_NS_VIEW on terminal frames (Bug#4765).
4001
10d66ec0
AS
40022009-10-24 Andreas Schwab <schwab@linux-m68k.org>
4003
1cae01f7
AS
4004 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
4005 DBUS_TYPE_UINTnn separately to get proper sign extension.
4006
58a12889
AS
4007 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
4008 can properly handle unsigned types.
d528b1ce 4009 (make_uid, make_gid): Remove.
58a12889 4010
987c9327
AS
4011 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
4012 types again.
4013
522d013a 4014 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
4015 (system_process_attributes): Likewise.
4016
905a9ed3
DN
40172009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
4018
4019 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
4020
4021 * eval.c (Fautoload): Purecopy the filename. Simplify.
4022
4023 * category.c (Fdefine_category): Purecopy docstring.
4024
a599b3e8
AS
40252009-10-23 Andreas Schwab <schwab@linux-m68k.org>
4026
7b792fc9
AS
4027 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
4028
a599b3e8
AS
4029 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
4030
b35ac83e
CY
40312009-10-23 Chong Yidong <cyd@stupidchicken.com>
4032
4033 * window.c (Fwindow_edges, Fwindow_pixel_edges)
4034 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
4035 (Bug#4775).
4036
e8903e00
SM
40372009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
4038
4039 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
4040 (init_fileio_once):
4041 * lisp.h (init_fileio_once): Remove.
4042 * emacs.c (main): Don't call init_fileio_once.
4043
8f43cbf3
DN
40442009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
4045
4046 * puresize.h (BASE_PURESIZE): Increase to 1430000.
4047
26898943
AS
40482009-10-21 Andreas Schwab <schwab@linux-m68k.org>
4049
4050 * doprnt.c (doprnt): Fix overflow check.
4051
5c646d5a
JD
40522009-10-21 Jan Djärv <jan.h.d@swipnet.se>
4053
3132a7ea
JD
4054 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
4055
5c646d5a
JD
4056 * xterm.h (x_wait_for_event): Declare it.
4057
4058 * xterm.c (pending_event_wait): New variable.
4059 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
4060 see pending_event_wait.eventtype.
4061 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
4062 (x_new_font): Call change_frame_size with new rows/columns before we
4063 try to resize the frame.
5c646d5a 4064 (x_wait_for_event): New function.
d528b1ce
SM
4065 (x_set_window_size_1): Don't change gravity unless change_gravity
4066 is set.
5c646d5a
JD
4067 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
4068 don't change frame size, instead wait for the ConfigureNotify.
4069 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
4070 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
4071 (x_initialize): Initialize pending_event_wait.
4072
4073 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
4074 size.
4075
4076 * widget.c (EmacsFrameSetValues): Add comment.
4077 (EmacsFrameSetCharSize): Just call x_set_window_size.
4078
4079 * gtkutil.c (xg_frame_set_char_size): Flush events and call
4080 x_wait_for_event.
d528b1ce 4081 (flush_and_sync): Remove again.
5c646d5a
JD
4082 (xg_get_font_name): Suggest monospace if no previous font is known.
4083
e9c1637d
SM
40842009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
4085
4086 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 4087 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 4088
5a72cccb
YM
40892009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4090
4091 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
4092 processing pending events when event is filtered for input method.
ab04798f 4093 (Bug#3681)
5a72cccb 4094
2629aa37
JB
40952009-10-20 Juanma Barranquero <lekktu@gmail.com>
4096
4097 * fns.c: Add #endif accidentally removed in previous change.
4098
c3417a74
DN
40992009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
4100
4101 * fns.c: Remove code for unsupported system: MAC_OS.
4102 * image.c: Likewise. Include setjmp.h.
4103
9685cef2
JD
41042009-10-19 Jan Djärv <jan.h.d@swipnet.se>
4105
4106 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
4107 pixel -1 (bug #4742).
4108
d7306fe6
DN
41092009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
4110
019d2c4c
DN
4111 * process.c (create_pty): Remove conditionals for no longer
4112 supported systems: UNIPLUS and RTU.
4113
ee6bacd4
DN
4114 * xterm.c:
4115 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
4116
d7306fe6
DN
4117 * alloc.c: Do not define struct catchtag.
4118 * eval.c: Move struct catchtag definition ...
4119 * lisp.h: ... here.
4120
4121 * image.c: Move png.h #include earlier to avoid warnings.
4122
4123 * xterm.c:
4124 * xsmfns.c:
4125 * xselect.c:
4126 * xrdb.c:
4127 * xmenu.c:
4128 * xftfont.c:
4129 * xfont.c:
4130 * xfns.c:
4131 * xfaces.c:
4132 * xdisp.c:
4133 * window.c:
4134 * widget.c:
4135 * w32xfns.c:
4136 * w32uniscribe.c:
4137 * w32term.c:
4138 * w32select.c:
4139 * w32reg.c:
4140 * w32proc.c:
4141 * w32menu.c:
4142 * w32inevt.c:
4143 * w32heap.c:
4144 * w32font.c:
4145 * w32fns.c:
4146 * w32console.c:
4147 * w32.c:
4148 * w16select.c:
4149 * vm-limit.c:
4150 * unexsol.c:
4151 * unexec.c:
4152 * unexcw.c:
4153 * unexaix.c:
4154 * undo.c:
4155 * tparam.c:
4156 * textprop.c:
4157 * terminfo.c:
4158 * terminal.c:
4159 * termcap.c:
4160 * term.c:
4161 * syntax.c:
4162 * sound.c:
4163 * sheap.c:
4164 * search.c:
4165 * scroll.c:
4166 * region-cache.c:
4167 * regex.c:
4168 * ralloc.c:
4169 * process.c:
4170 * print.c:
b024548b
DN
4171 * nsterm.m:
4172 * nsselect.m:
4173 * nsmenu.m:
4174 * nsimage.m:
4175 * nsfont.m:
4176 * nsfns.m:
d7306fe6
DN
4177 * msdos.c:
4178 * minibuf.c:
4179 * menu.c:
4180 * marker.c:
4181 * macros.c:
4182 * keymap.c:
4183 * keyboard.c:
4184 * intervals.c:
4185 * insdel.c:
4186 * indent.c:
4187 * gtkutil.c:
4188 * ftxfont.c:
4189 * ftfont.c:
4190 * fringe.c:
4191 * frame.c:
4192 * fontset.c:
4193 * font.c:
4194 * fns.c:
4195 * floatfns.c:
4196 * filelock.c:
4197 * fileio.c:
4198 * emacs.c:
4199 * editfns.c:
4200 * dosfns.c:
4201 * doprnt.c:
4202 * doc.c:
4203 * dispnew.c:
4204 * dired.c:
4205 * dbusbind.c:
4206 * data.c:
4207 * composite.c:
4208 * coding.c:
4209 * cmds.c:
4210 * cm.c:
4211 * chartab.c:
4212 * charset.c:
4213 * character.c:
4214 * ccl.c:
4215 * category.c:
4216 * casetab.c:
4217 * casefiddle.c:
4218 * callproc.c:
4219 * callint.c:
4220 * bytecode.c:
4221 * buffer.c:
4222 * atimer.c: Include setjmp.h. (Bug#4643)
4223
fd5f21e6
SM
42242009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
4225
4c0354d7
SM
4226 Remove leftover table unibyte_to_multibyte_table.
4227 * character.c (unibyte_to_multibyte_table): Remove.
4228 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
4229 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
4230 * character.h (UNIBYTE_TO_CHAR): New macro.
4231 (MAKE_CHAR_MULTIBYTE): Use it.
4232 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
4233 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
4234 (message_dolog, set_message_1):
4235 * search.c (Freplace_match):
4236 * editfns.c (Fcompare_buffer_substrings):
4237 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
4238 (concat):
4239 * insdel.c (copy_text, count_size_as_multibyte):
4240 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
4241 * term.c (produce_glyphs):
4242 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
4243 * regex.c (RE_CHAR_TO_MULTIBYTE):
4244 * cmds.c (internal_self_insert):
4245 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
4246
fd5f21e6
SM
4247 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
4248
4418646e
DN
42492009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
4250
4251 * puresize.h (BASE_PURESIZE): Increase to 1310000.
4252
35f5c1d2
JB
42532009-10-16 Juanma Barranquero <lekktu@gmail.com>
4254
4255 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
4256
a0cd8f6b
AR
42572009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
4258
4259 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
4260 still needed under Tiger.
4261
4262 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
4263
4264 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
4265 __Apple__.
4266
4267 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
4268
01a8d3fa
KH
42692009-10-15 Kenichi Handa <handa@m17n.org>
4270
4271 * print.c (print_object): Escape a symbol like "2E10" too.
4272
bf6c75c9 42732009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
4274
4275 Cleanups and changes for 64-bit compile under Snow Leopard.
4276 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
4277
4278 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
4279
c5959062 4280 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
4281 (ns_findfonts, nsfont_list_family): Use long format in printf, and
4282 cast argument.
4283 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 4284 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
4285
4286 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
4287
4288 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
4289 where appropriate.
4290
4291 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
4292 where appropriate.
6e4780c5
JB
4293 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
4294 Use stringWithUTF8String.
bf6c75c9
AR
4295 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
4296
6e4780c5
JB
4297 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
4298 Add formal protocol mention to inheritance.
bf6c75c9
AR
4299 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
4300
6e4780c5
JB
4301 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
4302 Fix printf format.
bf6c75c9
AR
4303 (ns_query_color): Use CGFloat where appropriate.
4304 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 4305 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
4306 argument.
4307
3d87f118
AR
4308 * config.in (NS_HAVE_NSINTEGER): Drop.
4309
a95c8102
AR
4310 * dbusbind.c (dbus-method-return-internal)
4311 (dbus-method-error-internal): Use long format in printf, and cast
4312 argument.
4313
4314 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
4315 in printf, and cast argument.
4316
6873acca 4317 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
4318 cast argument.
4319
9ec6f100
GM
43202009-10-11 Glenn Morris <rgm@gnu.org>
4321
4322 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
4323
5be883cd
JD
43242009-10-08 Jan Djärv <jan.h.d@swipnet.se>
4325
4326 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
4327 menu bar with a small width so it doesn't enlarge the frame.
4328
d7a39b51
JB
43292009-10-08 Juanma Barranquero <lekktu@gmail.com>
4330
4331 * fontset.c (Fset_fontset_font): Fix typos in error messages.
4332
0c2b6f8e
GM
43332009-10-06 Glenn Morris <rgm@gnu.org>
4334
4335 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
4336 SOME_MACHINE_LISP (this enters indirectly via DOC).
4337
e02131a2
EZ
43382009-10-05 Eli Zaretskii <eliz@gnu.org>
4339
4340 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
4341
b4744254
EZ
43422009-10-04 Eli Zaretskii <eliz@gnu.org>
4343
4344 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
4345 Doc fix.
4346
dbf64827
JB
43472009-10-03 Martin Rudalics <rudalics@gmx.at>
4348
4349 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
4350
e9a0aef8
MA
43512009-10-02 Michael Albinus <michael.albinus@gmx.de>
4352
d528b1ce 4353 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
4354 used anymore outside fileio.c.
4355
4356 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
4357
64eb2b56
JB
43582009-10-01 Juanma Barranquero <lekktu@gmail.com>
4359
4360 * lisp.h (Qdelete_directory_internal):
4361 Declare, instead of Qdelete_directory.
4362
4363 * w32fns.c (Fsystem_move_file_to_trash): Use it.
4364
9d28c33e
SM
43652009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
4366
4367 * eval.c (Fcalled_interactively_p): Add `kind' argument.
4368
9d8f3bd9
MA
43692009-10-01 Michael Albinus <michael.albinus@gmx.de>
4370
9d28c33e 4371 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
4372 Fdelete_directory. It is not a command anymore. It has no file
4373 name handler.
4374
9694740b
SM
43752009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
4376
4377 * xdisp.c (get_next_display_element): Use an enum in last change.
4378
748e162f
KH
43792009-09-28 Kenichi Handa <handa@m17n.org>
4380
9694740b 4381 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
4382 unibyte_display_via_language_environment in handling
4383 Vnobreak_char_display.
4384
17efd58d
AR
43852009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
4386
4387 * nsterm.h (ns_app_name): New extern variable.
4388
4389 * nsterm.m (ns_app_name): New variable.
4390 (ns_term_init): Set and use it.
4391 (ns_term_shutdown): Use it.
4392
4393 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
4394 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
4395
4396 * nsfns.m (ns_set_name_iconic, ns_set_name)
4397 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
4398 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
4399
9694740b
SM
4400 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
4401 Remove double-casting in client_data comparison.
31c2d412 4402
3208cb35
YM
44032009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4404
4405 * keyboard.c (make_lispy_event): Remember last wheel direction.
4406 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
4407
b7d552d6
GM
44082009-09-26 Glenn Morris <rgm@gnu.org>
4409
4410 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
4411 internal.elc. Add term/pc-win.elc.
4412 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
4413 term/x-win.elc.
4414 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
4415 term/w32-win.elc.
4416 (NS_SUPPORT): New.
4417 (lisp): Add NS_SUPPORT.
4418 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
4419
4ff670a8
DR
44202009-09-25 David Reitter <david.reitter@gmail.com>
4421
4422 * nsmenu.m (EmacsMenu-clear): Recognize application menu
4423 on Mac OS X 10.6+ (bug#4513).
4424
feabfb6c
JB
44252009-09-24 Juanma Barranquero <lekktu@gmail.com>
4426
4427 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
4428 some parts of Emacs code (like font selection) don't grok them.
4429 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 4430
de59072a
AS
44312009-09-24 Andreas Schwab <schwab@redhat.com>
4432
4433 * coding.c (decode_coding_iso_2022): Fix operator precedence.
4434
a489517b
JB
44352009-09-24 Juanma Barranquero <lekktu@gmail.com>
4436
4437 * dired.c (Fdirectory_files): Fix typo in docstring.
4438
0592970c
AR
44392009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4440
4441 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
4442 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
4443 (EmacsScroller-setPosition:portion:whole:): Remove -display call
4444 under GNUstep.
4445 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
4446
4447 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
4448 glyph advancement.
4449
48e8a88b
AR
44502009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4451
4452 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 4453 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
4454
4455 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
4456 deleted (bug #4492).
4457
e14f0a78
AR
4458 * nsfont.m (Vns_reg_to_script): New lisp variable.
4459 (syms_of_nsfont): Declare it.
4460 (ns_registry_to_script): New function.
4461 (ns_get_req_script): Call it.
4462 (ns_findfonts): Don't give up on non-unicode registry.
4463
4464 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
4465
5b650faa
SM
44662009-09-20 Tom Tromey <tromey@redhat.com>
4467
4468 * eval.c (find_handler_clause): Make stack-trace-on-error work in
4469 batch mode (bug#4228).
4470
a489517b 44712009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
4472
4473 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 4474 carefully. (Bug #4339)
0bae4e09 4475
fcfe06f3
CY
44762009-09-18 Chong Yidong <cyd@stupidchicken.com>
4477
d798ba87 4478 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 4479
31642728
AR
44802009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
4481
4482 * emacs.c (inhibit_x_resources): Update doc string for NS.
4483 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 4484 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
4485
4486 * nsterm.h (ns_no_defaults): Remove.
4487
4488 * nsterm.m (ns_no_defaults): Remove.
4489 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
4490 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
4491 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
4492 don't update the NSWindow itself.
4493 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 4494 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
4495
4496 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
4497 ns_use_qd_smoothing.
4498
4499 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
4500 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 4501 (x-close-connection): Drop PSFlush() under OS X.
a489517b 4502 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 4503
8686ac71
JB
45042009-09-17 Juanma Barranquero <lekktu@gmail.com>
4505
4506 * emacs.c (inhibit_x_resources): New variable.
4507 (main) [HAVE_NS]: Don't process --quick command line option.
4508 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
4509
4510 * lisp.h (inhibit_x_resources): Declare it extern.
4511
4512 * w32reg.c (x_get_string_resource):
4513 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
4514
e227ba05
EZ
45152009-09-17 Eli Zaretskii <eliz@gnu.org>
4516
362654a6
JB
4517 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
4518 Add lisp/term/internal.elc.
e227ba05 4519
742d40e8
SM
45202009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
4521
4522 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
4523 (bug#4461).
4524
005bd5a2
DN
45252009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
4526
4527 * puresize.h (BASE_PURESIZE): Increase to 1290000.
4528
4529 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
4530 (OBJECTS_MACHINE): Remove, unused.
4531
f9af9719
SM
45322009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
4533
4534 * frame.c (x_get_resource_string): Remove unused.
4535
0307c7d2
JD
45362009-09-15 Jan Djärv <jan.h.d@swipnet.se>
4537
4538 * xterm.c (x_new_font): Call change_frame_size before calling
4539 x_set_window_size, in case frame size won't change.
4540
4541 * frame.c (x_set_font): Remove dead code.
4542
428b13d6
SM
45432009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
4544
4545 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
4546
5766c380
SM
45472009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4548
4549 * lread.c (Fload): Don't output a message after loading an obsolete
4550 package any more (done in Lisp now).
4551
2fd0161b
CY
45522009-09-12 Chong Yidong <cyd@stupidchicken.com>
4553
4554 * fns.c (syms_of_fns): Doc fix (Bug#4227).
4555
bc5e75b6
SM
45562009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4557
4558 * keymap.c (Fwhere_is_internal): Use nconc2.
4559
c31c985e
AM
45602009-09-11 Alan Mackenzie <acm@muc.de>
4561
4562 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
4563 batch mode.
4564
78012bd2
AS
45652009-09-11 Andreas Schwab <schwab@linux-m68k.org>
4566
4567 * xdisp.c (display_mode_element): Detect cycles.
4568
9d889332
SM
45692009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4570
4571 * keymap.c (where_is_internal): Don't erroneously return nil right after
4572 filling the cache.
4573 (where_is_internal_1): Fix up typo.
4574
7ab5d780
GM
45752009-09-11 Glenn Morris <rgm@gnu.org>
4576
4577 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
4578 share a common doc-string.
4579
5238a749
SM
45802009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4581
66d77eda
SM
4582 * keymap.c (get_keymap): Return the actual keymap symbol rather than
4583 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
4584
5238a749
SM
4585 * keymap.c (QCadvertised_binding): New constant.
4586 (syms_of_keymap): Initialize it.
4587 (Fwhere_is_internal): Try and use bindings from :advertised-binding
4588 if applicable.
4589
19f48442
SM
45902009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
4591
50d4ba39
SM
4592 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
4593 (parse_menu_item): Streamline since bindings are recomputed all the
4594 time anyway. Don't bother checking Vdefine_key_rebound_commands any
4595 more and don't support lmenu's menu-alias any more either.
4596
a88a5372
SM
4597 * keymap.c (where_is_internal_data): Make noindirect a boolean.
4598 (where_is_internal): Strip it down to only traverse the keymaps.
4599 Move the cache handling from Fwhere_is_internal to here.
4600 (Fwhere_is_internal): Move the handling of remapping and the choice of
4601 the best binding from where_is_internal to here.
4602 Unify the cached/noncached paths, so remapping is also handled
4603 correctly when the cache is used, and so the cache can be used to
4604 speed up remap-handling when applicable.
4605 Give preference to non-remapped bindings.
4606 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
4607 non-remapped bindings.
4608 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
4609 command remapping.
4610
19f48442
SM
4611 * xdisp.c (display_mode_element): Move list length limit from 50 to
4612 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
4613
599498c3 46142009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
4615
4616 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
4617
f9b7b5ac
SM
46182009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
4619
a53af587
JB
4620 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
4621 (Bug#4334)
4622
f9b7b5ac
SM
4623 * keymap.c (where_is_internal): Filter out shadowed remappings.
4624 Assume that where_is_internal returns unshadowed bindings to simplify
4625 the code and get rid of the gotos. Use ASIZE.
4626
04f4b72d
JD
46272009-09-04 Jan Djärv <jan.h.d@swipnet.se>
4628
4da146f2
JD
4629 * xterm.c (x_focus_changed): If we get a focusout and pointer
4630 is invisible, make it visible.
4631
04f4b72d
JD
4632 * xterm.h: Remove condition for declaration of
4633 x_*_window_to_frame.
4634
7cef7ce3
SM
46352009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
4636
4637 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
4638 initial terminal as well.
4639
a54fa5b7
JD
46402009-09-02 Jan Djärv <jan.h.d@swipnet.se>
4641
4642 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 4643 x_menubar_window_to_frame.
a54fa5b7 4644
50426a04 4645 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
4646 (XTmouse_position): Do not return valid positions
4647 for clicks in the menubar and the toolbar for Gtk+.
4648
4649 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
4650 if the widget for the event has the same top level as a frame,
4651 return the frame.
4652 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
4653 internal windows, bug #4122.
4654 (x_non_menubar_window_to_frame): Remove.
4655
5a021dd0
GM
46562009-09-02 Glenn Morris <rgm@gnu.org>
4657
4658 * buffer.c (default-major-mode): Move most of the doc from here...
4659 (major-mode): ... to here.
4660
548fe2f3
NR
46612009-08-30 Nick Roberts <nickrob@snap.net.nz>
4662
4663 * process.c (wait_reading_process_output): Keep the descriptor
4664 when pty is used by a non-child process, e.g., in I/O buffer of
4665 GDB this allows inferior to be restarted.
4666
e0840eef
EZ
46672009-08-29 Eli Zaretskii <eliz@gnu.org>
4668
4669 * xdisp.c (redisplay_internal): Remove redundant test and collapse
4670 both branches into one.
4671
82e98df4
SM
46722009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
4673
4674 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
4675 (main): Use enable-multibyte-characters rather than
4676 default-enable-multibyte-characters. Output a warning message when
4677 running a unibyte session.
4678
890617cb
YM
46792009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4680
4681 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
4682 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
4683 (copy_data_segment): Also copy __program_vars section.
4684 (copy_dyld_info) [LC_DYLD_INFO]: New function.
4685 (dump_it) [LC_DYLD_INFO]: Use it.
4686
4687 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
4688
e7adeadc
EZ
46892009-08-28 Eli Zaretskii <eliz@gnu.org>
4690
4691 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
4692 $(SRC)/buildobj.h.
4693 (buildobj.h): Renamed from $(SRC)/buildobj.h.
4694 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
4695 $(SRC)/buildobj.h.
4696 (clean): Add buildobj.h.
4697
3ed8bbdc
TZ
46982009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
4699
4700 * print.c (print_object): Set escapeflag to 1 when printing
4701 hashtable keys and values.
4702
155a6764
SM
47032009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
4704
4705 * lread.c (read_integer): Use doubles (and potentially return a float
4706 number) as we do in string-to-number.
4707 (read1): Use strtol to read integers, signal errors on strtol's
4708 overflow and use floats if strtol's output is too large for
4709 Elisp integers.
4710
877610de
EZ
47112009-08-27 Eli Zaretskii <eliz@gnu.org>
4712
4713 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
4714 (make-buildobj-SH): Fix last change.
4715 (SRC): Move to before where it's first used.
4716
ef73e7be
KH
47172009-08-27 Kenichi Handa <handa@m17n.org>
4718
550c8289
KH
4719 * process.c (send_process): Use encode_coding_object instead of
4720 encode_coding_string to perform eol-conversion even if the string
4721 is unibyte.
4722
60afa08d
KH
4723 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
4724 character.
4725
ef73e7be 4726 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 4727 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 4728
7b3a82d7
DN
47292009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
4730
5654bf63
DN
4731 * callproc.c (Fcall_process): Remove always true #if.
4732
7b3a82d7
DN
4733 * lisp.h: Replace #if 0 code for checking with text pointing to
4734 the --enable-checking configure flag.
4735
4736 * emacs.c (main): Mention the --enable-profiling configure flag
4737 instead of using CFLAGS.
4738
878bde49
KR
47392009-08-26 Ken Raeburn <raeburn@raeburn.org>
4740
4741 * Makefile.in (buildobj.h): New target.
4742 (doc.o): Depend on it.
4743 (temacs${EXEEXT}): Don't generate buildobj.lst.
4744 (mostlyclean): Delete buildobj.h, not buildobj.lst.
4745 * makefile.w32-in ($(SRC)/buildobj.h): New target.
4746 ($(BLD)/doc.$(O)): Depend on it.
4747 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
4748 provided by Eli Zaretskii.)
4749 ($(TEMACS)): Don't generate buildobj.lst.
4750 * doc.c: Include buildobj.h.
4751 (buildobj): New static variable.
4752 (Fsnarf_documentation): Use it, instead of opening and reading
4753 buildobj.lst.
4754
1574224c
MA
47552009-08-25 Michael Albinus <michael.albinus@gmx.de>
4756
4757 * dbusbind.c (Fdbus_call_method)
4758 (Fdbus_call_method_asynchronously): Use English numeric format for
4759 timeout values in doc string.
4760
d9da2f45
KH
47612009-08-25 Kenichi Handa <handa@m17n.org>
4762
ef73e7be
KH
4763 * alloc.c (mark_char_table): New function.
4764 (mark_object): Use mark_char_table for a char-table.
4765
d9da2f45
KH
4766 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
4767 (CHAR_TABLE_REF): Use it.
4768
c8edcc01
KR
47692009-08-23 Ken Raeburn <raeburn@raeburn.org>
4770
4771 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
4772 before invoking the newly build emacs to check for load-path
4773 shadowing.
4774
7763401b
GM
47752009-08-22 Glenn Morris <rgm@gnu.org>
4776
4777 * Makefile.in (bootstrap_exe): New variable.
4778 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
4779 Use ${bootstrap_exe}.
4780
729eadda
EZ
47812009-08-22 Eli Zaretskii <eliz@gnu.org>
4782
4783 * coding.h (encode_coding_string): Don't encode unibyte strings.
4784 (Bug#4047)
4785
eb4c6ace
MA
47862009-08-22 Michael Albinus <michael.albinus@gmx.de>
4787
4788 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
4789
4790 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
4791 intended as hotfix only.
4792 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
4793
36e34d1b
AR
47942009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4795
4796 * nsterm.m (ns_get_color): Update documentation properly for last
4797 change, and clean up loose ends in the code left by it. Fix
4798 longstanding bug with 16-bit hex parsing, and add support for
4799 yet another X11 format (rgb:r/g/b) for compatibility.
4800 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
4801 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
4802
f983eb8a
SM
48032009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
4804
4805 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
4806
3f56d3c6
MA
48072009-08-20 Michael Albinus <michael.albinus@gmx.de>
4808
4809 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
4810 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
4811 (xd_initialize, xd_pending_messages): Check, whether
4812 $DBUS_SESSION_BUS_ADDRESS is set.
4813
fb641d68
YM
48142009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4815
4816 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
4817
4818 * nsterm.m (ns_get_color): Remove incompatible color formats again.
4819
cf59a374
GM
48202009-08-20 Glenn Morris <rgm@gnu.org>
4821
4822 * emacs.c (system-type): Doc fix.
4823
1373f3be
SM
48242009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
4825
4826 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
4827 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
4828
058ed861
MA
48292009-08-18 Michael Albinus <michael.albinus@gmx.de>
4830
1373f3be
SM
4831 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
4832 New functions.
058ed861
MA
4833 (xd_initialize): Revert change from 2009-08-16.
4834
563a866e 48352009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
4836
4837 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 4838 font-group vector, return nil.
5fc05db0 4839
e42bdf01
CY
48402009-08-17 Chong Yidong <cyd@stupidchicken.com>
4841
4842 * process.c (status_notify): Don't perform redisplay.
4843 (Fdelete_process, list_processes_1, process_send_signal):
4844 Expliticly perform redisplay.
4845 (wait_reading_process_output): Always check process status, but
4846 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
4847
4230ab74
KR
48482009-08-17 Ken Raeburn <raeburn@raeburn.org>
4849
1373f3be 4850 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
4851 (XFLOAT_INIT): New macro for storing a float value.
4852 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
4853 * fns.c (sxhash): Copy out the value of a float in order to
4854 examine its bytes.
4855 * dbusbind.c (xd_append_arg): Likewise.
4856
4230ab74
KR
4857 * emacs.c (main): Don't call syms_of_data twice.
4858
a0645cdd
MA
48592009-08-16 Michael Albinus <michael.albinus@gmx.de>
4860
4861 * dbusbind.c (xd_initialize): Add connection file descriptor to
4862 input_wait_mask, in order to let select() detect, whether a new
4863 message has been arrived.
ca4f31ea 4864 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 4865
485db0ba
MA
48662009-08-15 Michael Albinus <michael.albinus@gmx.de>
4867
1373f3be
SM
4868 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
4869 New functions.
485db0ba
MA
4870
4871 * lisp.h (xd_pending_messages): Declare.
4872
4873 * keyboard.c (readable_events): Call xd_pending_messages.
4874
b5b98ff4
CY
48752009-08-15 Chong Yidong <cyd@stupidchicken.com>
4876
1373f3be 4877 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 4878
f8354c6e
CY
4879 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
4880
b5b98ff4
CY
4881 * buffer.c (set_buffer_internal_1)
4882 (swap_out_buffer_local_variables): Check for unbound local
4883 variables (Bug#4138).
4884
8b9fc636
EZ
48852009-08-14 Eli Zaretskii <eliz@gnu.org>
4886
4887 * process.c (create_pty): Fix last change.
4888
ce959360
CY
48892009-08-13 Chong Yidong <cyd@stupidchicken.com>
4890
4891 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
4892 (xbm_load_image): Caller changed.
64b807c9 4893 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 4894
c7baf7e9
NR
48952009-08-13 Nick Roberts <nickrob@snap.net.nz>
4896
4897 * process.c (create_pty): New function.
4898 (Fstart_process): Use it to allow Emacs to just associate a pty
4899 with the buffer. See associated change in gdb-mi.el.
4900 (list_processes_1): Deal with no program name.
4901 (start_process_unwind): Use pid == -2 to mean no process.
4902
1ac9108a
SM
49032009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
4904
4905 * cmds.c (nonundocount): New global variable.
4906 (keys_of_cmds): Initialize it.
4907 (Fself_insert_command): Use it to combine upto 20 sequential chars
4908 into a single undo entry, just like the Qself_insert_command code in
4909 keyboard.c does.
4910 Call frame_make_pointer_invisible, also like the Qself_insert_command
4911 code in keyboard.c does.
4912 * keyboard.c (command_loop_1): Use the new global nonundocount rather
4913 than its own local replacement for it.
4914
e267324c
KR
49152009-08-10 Ken Raeburn <raeburn@raeburn.org>
4916
1ac9108a 4917 * fns.c (concat): Don't re-set string length to its current value.
77437343 4918
1ac9108a
SM
4919 * coding.h (decode_coding_string, encode_coding_string):
4920 Use SBYTES macro.
f0bed503 4921
1ac9108a 4922 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
4923 (doprnt): Merge with doprnt1, discarding lispstrings code.
4924 * lisp.h (doprnt_lisp): Don't declare.
4925
416e006d
JL
49262009-08-07 Juri Linkov <juri@jurta.org>
4927
4928 * puresize.h (BASE_PURESIZE): Increase to 1270000.
4929
6f7d5780
DN
49302009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
4931
4932 * print.c (syms_of_print): Undo previous change.
4933
f19a0f5b
TZ
49342009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
4935
4936 * lread.c (read1, syms_of_lread): Read hashtables back from the
4937 readable format.
4938
4939 * print.c (print_preprocess, print_object): Print hashtables fully
4940 and readably.
4941 (syms_of_print): Provide 'hashtable-print-readable.
4942
b9173dc2
AR
49432009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
4944
4945 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
4946 no family set.
4947 (nsfont_open): Handle case when entity has no family.
4948
1586503c
AR
49492009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4950
4951 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
4952 element, not a list, for match case.
4953
087048cd
KH
49542009-07-28 Kenichi Handa <handa@m17n.org>
4955
4956 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
4957 rigidly.
4958
4959 * xfont.c (xfont_list_pattern): Don't ignore the return value of
4960 font_parse_xlfd. Check font properties more rigidly.
4961
780c2506
DN
49622009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
4963
31fd7c5c
JB
4964 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
4965 bsd-common.h.
780c2506 4966
a8c0cc18
KH
49672009-07-27 Kenichi Handa <handa@m17n.org>
4968
4969 * xfaces.c (face_with_height): Call font_clear_prop.
4970
4fbe2306
CY
49712009-07-26 Chong Yidong <cyd@stupidchicken.com>
4972
111d9af3
CY
4973 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
4974
4975 * xterm.c (x_term_init): Use Qx.
4976
4fbe2306
CY
4977 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
4978
1ac9108a 4979 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
4980 (ns_get_color): Revert 2009-07-16 change.
4981
beb0b7f9
EZ
49822009-07-25 Eli Zaretskii <eliz@gnu.org>
4983
4984 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 4985 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 4986
2baf5e76
KR
49872009-07-25 Ken Raeburn <raeburn@raeburn.org>
4988
1ac9108a
SM
4989 * coding.h (decode_coding_string, encode_coding_string):
4990 Use SCHARS macro.
8890e5f5 4991
2baf5e76 4992 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 4993 (load_depth): Delete.
2baf5e76
KR
4994 (Qload_in_progress): New variable.
4995 (load_unwind): Don't reference load_depth or load_in_progress.
4996 (Fload): Likewise; specbind Qload_in_progress instead.
4997 (init_lread): Don't initialize load_depth.
4998 (syms_of_lread): Initialize and protect Qload_in_progress.
4999
1395c6f5
AR
50002009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5001
5002 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
5003
4e2f36cf
AR
50042009-07-23 Yavor Doganov <yavor@gnu.org>
5005
5006 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
5007
5dd9a6f7
AR
50082009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5009
5010 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
5011 Bugs 3792, 3720, 2402.
5012 (ns_lookup_indexed_color): Check for bad index.
5013 (ns_index_color): Init unused slot to 0.
5014 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
5015 Bug 3714, possibly 3082.
5dd9a6f7 5016
c902b920
JR
50172009-07-22 Jason Rumney <jasonr@gnu.org>
5018
1ac9108a
SM
5019 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
5020 Position IME window at cursor (Bug#2570).
c902b920
JR
5021 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
5022 (globals_of_w32fns): Dynamically load functions required above.
5023
5024 * w32term.c (w32_draw_window_cursor): Send message to reposition
5025 any IME window.
5026
090101cf
CY
50272009-07-21 Chong Yidong <cyd@stupidchicken.com>
5028
5029 * fileio.c: Revert 2009-07-16 changes.
5030 (Vauto_save_include_big_deletions): New variable.
5031 (Fdo_auto_save): Disable auto-save only if
5032 auto-save-include-big-deletions is nil.
5033
e6583e3d
CY
50342009-07-21 Chong Yidong <cyd@stupidchicken.com>
5035
5036 * xdisp.c (move_it_to): For continued lines ending in a tab, take
5037 the overflowed pixels into account (Bug#3879).
5038
ece435a5
KR
50392009-07-21 Ken Raeburn <raeburn@raeburn.org>
5040
5041 * lread.c (load_depth): New variable.
5042 (Fload, load_unwind, init_lread): Set it to the load recursion
5043 depth; set load_in_progress as a simple boolean based on the
5044 current load_depth. (Bug#3892)
5045
40b2d973
AR
50462009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5047
5048 * nsfont.m (ns_has_attribute): Remove.
5049 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
5050
10be7e0d
JL
50512009-07-18 Juri Linkov <juri@jurta.org>
5052
5053 * process.c (Fset_process_query_on_exit_flag): Mention killing
5054 a buffer in docstring.
5055
fa055055
KH
50562009-07-17 Kenichi Handa <handa@m17n.org>
5057
5058 * casetab.c (shuffle): Fix the logic of setting up the cycle.
5059
042f7b69
YM
50602009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5061
5062 * nsfns.m (Fns_set_alpha): Remove function.
5063 (syms_of_nsfns): Don't defsubr it.
5064
5065 * nsterm.m (ns_get_color): Remove incompatible color formats.
5066 (ns_color_to_lisp): Generate #rrggbb color format string.
5067
4be941e3
RS
50682009-07-16 Richard Stallman <rms@gnu.org>
5069
5070 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
5071 (Fset_buffer_auto_saved): Handle save_length = -2.
5072
4e6b227d
CY
50732009-07-16 Chong Yidong <cyd@stupidchicken.com>
5074
5075 * xterm.c (Qx_gtk_map_stock): New var.
5076
5077 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
5078 of calling intern each time.
5079
a1856973
YM
50802009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5081
5082 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
5083 does tiling.
5084
5085 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
5086
497e54d8
KH
50872009-07-14 Kenichi Handa <handa@m17n.org>
5088
72d36834
KH
5089 * font.c (font_vconcat_entity_vectors): New function.
5090 (struct font_sort_data): New member font_driver_preference.
5091 (font_compare): Check font_driver_preference.
5092 (font_sort_entities): The format of the first argument changed.
5093 (font_delete_unmatched): Likewise.
5094 (font_list_entities): The return type changed.
5095 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
5096 (font_find_for_lface): Adjuste for the above changes.
5097 Don't suppress the checking of C even if the repertory supports it.
5098 (Flist_fonts): Adjust for the above changes.
72d36834 5099
1ac9108a
SM
5100 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
5101 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
5102 Reject a font who has adstyle property that is different from a
5103 langname derived from registry property.
1ac9108a 5104 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 5105
b6046155
EZ
51062009-07-13 Eli Zaretskii <eliz@gnu.org>
5107
5108 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
5109 local copy of dirfilename.
5110
fb6b6049
KH
51112009-07-13 Kenichi Handa <handa@m17n.org>
5112
e2402a5e
KH
5113 * chartab.c (sub_char_table_ref_and_range): Fix the range check
5114 against max_char.
5115
fb6b6049
KH
5116 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
5117 calling XSYMBOL (sym).
5118
65156807
EZ
51192009-07-11 Eli Zaretskii <eliz@gnu.org>
5120
1ac9108a
SM
5121 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
5122 New function.
5123 (directory_files_internal) [WINDOWSNT]:
5124 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
5125 the filesystem of the directory is fast or slow.
5126
5127 * w32.c (logon_network_drive): Don't assume PATH is an absolute
5128 file name.
5129 (is_slow_fs): New function.
5130 (stat): Use it to determine whether to issue more system calls to
5131 get accurate file attributes, when w32-get-true-file-attributes is
5132 `local'.
5133
e0ab5fcf
JD
51342009-07-10 Jan Djärv <jan.h.d@swipnet.se>
5135
5136 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 5137 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
5138 parameter font-parameter as default to the font dialog.
5139
784ceded
KH
51402009-07-10 Kenichi Handa <handa@m17n.org>
5141
5142 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
5143
fb8edc0b
EZ
51442009-07-09 Eli Zaretskii <eliz@gnu.org>
5145
1ac9108a 5146 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 5147
fb8edc0b
EZ
5148 * w32.c (stat): Treat UNC file names as residing on remote
5149 drives. (Bug#3542)
5150
635c75b1
KH
51512009-07-09 Kenichi Handa <handa@m17n.org>
5152
5153 * fontset.c (fontset_find_font): Fix previous change.
5154
c1d5ce94
MA
51552009-07-08 Michael Albinus <michael.albinus@gmx.de>
5156
5157 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
5158 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
5159 error flag.
5160
edb61b39
KH
51612009-07-08 Kenichi Handa <handa@m17n.org>
5162
374bf7e4
KH
5163 * fontset.c (fontset_find_font): Fix the logic of handling
5164 charset_matched.
5165 (font_for_char): Delete unused var.
5166 (generate_ascii_font_name): Delete it.
5167
edb61b39
KH
5168 * coding.h (JIS_TO_SJIS2): Fix the code range check.
5169
5170 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
5171 (encode_coding_sjis): Fix the code range check.
5172
0f3f018c
CY
51732009-07-07 Chong Yidong <cyd@stupidchicken.com>
5174
5175 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
5176 (Fexpand_file_name): Copy string data properly (Bug#3772).
5177
fcaf6f3a
JD
51782009-07-07 Jan Djärv <jan.h.d@swipnet.se>
5179
5180 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
5181 first MapNotify.
5182
6809ca75
KH
51832009-07-07 Kenichi Handa <handa@m17n.org>
5184
5185 * character.h (unibyte_has_multibyte_table): Delete extern.
5186 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
5187
5188 * charset.c (Fset_charset_priority): Update charset_unibyte.
5189 (syms_of_charset): Initialize charset_unibyte.
5190
5191 * character.c (unibyte_has_multibyte_table): Delete it.
5192 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
5193 charset_unibyte.
5194 (multibyte_char_to_unibyte_safe): Likewise.
5195 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
5196
1ac9108a 5197 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
5198 (x_produce_glyphs): Likewise.
5199
5200 * .gdbinit (xcharset): Fix the treating $arg0.
5201
ad9e2d54
EZ
52022009-07-04 Eli Zaretskii <eliz@gnu.org>
5203
5204 Emulation of `getloadavg' on MS-Windows.
50426a04 5205 * w32.c: Include float.h.
ad9e2d54
EZ
5206 (g_b_init_get_native_system_info, g_b_init_get_system_times)
5207 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
5208 (get_native_system_info, get_system_times): New functions.
5209 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
5210 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
5211 (globals_of_w32): Initialize g_b_init_get_native_system_info,
5212 g_b_init_get_system_times, and num_of_processors.
5213
0a3472c7
JR
52142009-07-03 Jason Rumney <jasonr@gnu.org>
5215
5216 * w32term.c (w32_initialize): Use standard types.
5217
80904120
EZ
52182009-07-03 Eli Zaretskii <eliz@gnu.org>
5219
5220 * dired.c (Ffile_attributes): Decode user and group names by the
5221 locale's encoding. (Bug#3443)
5222
6978862d
DN
52232009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
5224
f8d23104
DN
5225 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
5226 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
5227
5228 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
5229
5230 * term.c (init_tty): Remove spurious #ifdef.
5231
6978862d
DN
5232 * m/mips.h: Mention this file is also used for netbsd.
5233 * m/pmax.h: Remove file.
5234
e044e4fc
JD
52352009-07-03 Jan Djärv <jan.h.d@swipnet.se>
5236
5237 * xterm.h (struct x_display_info): Add invisible_cursor.
5238 (struct x_output): Add current_cursor.
5239
5240 * xterm.c (XTtoggle_invisible_pointer): New function.
5241 (x_define_frame_cursor): Don't define cursor if invisible or the
5242 same as before. Set current_cursor.
5243 (x_create_terminal): Set toggle_invisible_pointer_hook.
5244
5245 * xfns.c (make_invisible_cursor): New function.
5246 (x_set_mouse_color): Call make_invisible_cursor.
5247 Set current_cursor.
5248 (x_window): Set current_cursor.
5249
5250 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
5251
5252 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
5253 inserting a character.
5254 (read_avail_input): Call frame_make_pointer_visible.
5255
5256 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
5257 (frame_make_pointer_invisible, frame_make_pointer_visible):
5258 New functions.
e044e4fc
JD
5259 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
5260
5261 * frame.h: Declare frame_make_pointer_invisible and
5262 frame_make_pointer_visible.
5263 (struct frame): Add pointer_invisible.
5264
574c8efa
JD
52652009-07-02 Jan Djärv <jan.h.d@swipnet.se>
5266
7b507248
JD
5267 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
5268 frame isn't visible.
5269 (xg_frame_resized): If width/height is -1, get size of window
5270 from X server.
5271
5272 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
5273 for MapNotify.
5274
835bdaa7 5275 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 5276 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 5277 (flush_and_sync): Reintroduce.
574c8efa 5278
3f1c6666 52792009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 5280
31fd7c5c 5281 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
5282
5283 * xterm.c (x_handle_net_wm_state): Also look for sticky.
5284 (x_term_init): Initialize Xatom_net_wm_state_sticky.
5285
5286 * frame.h: Declare Qsticky.
5287
cad9ef74
JD
5288 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
5289
5290 * nsfns.m (ns_frame_parm_handlers): Ditto.
5291
5292 * frame.c: Declare Qsticky.
5293 (frame_parms): Add sticky.
5294
5295 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
5296
5297 * xterm.h: Declare x_set_sticky.
5298
5299 * xterm.c (x_set_sticky): New function.
5300
69b16610
JD
5301 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
5302 (xg_tool_bar_menu_proxy): Attach enter/leave events to
5303 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
5304
5305 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
5306
5307 * frame.c: Qmaximized is new.
5308 (x_set_frame_parameters): Do not handle fullscreen specially.
5309 Only set width and height if explicitly set.
5310 (x_set_fullscreen): Handle Qmaximized.
5311 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
5312 (syms_of_frame): Initialize Qmaximized.
5313
1ac9108a
SM
5314 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
5315 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
5316
5317 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
5318 for Expose event. Add call to x_check_fullscreen for MapNotify event.
5319 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
5320 set gravity to NorthWestGravity when USE_GTK.
5321 (set_wm_state): New function.
31fd7c5c 5322 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
5323 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
5324 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 5325 or the case when no window manager is running. That means remove calls
3f1c6666
JD
5326 to x_real_positions and x_fullscreen_adjust.
5327
5328 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
5329 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
5330 flush_and_sync.
5331 (xg_height_changed): New function.
5332 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
5333 and gtk_window_set_policy. Set frame gravity after parsing the
5334 geometry string.
3f1c6666
JD
5335 (xg_update_frame_menubar, free_frame_menubar)
5336 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
5337 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
5338 Remove calls to xg_frame_set_char_size.
5339
fd503d99
KH
53402009-07-01 Kenichi Handa <handa@m17n.org>
5341
5342 * keyboard.c (decode_keyboard_code): New function.
5343 (tty_read_avail_input): Decode the input bytes if necessary.
5344
1ac9108a
SM
5345 * coding.c (setup_coding_system):
5346 Initialize coding->carryover_bytes to 0.
fd503d99
KH
5347 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
5348 use Qno_conversion.
5349
24ed93fb
YM
53502009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5351
5352 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
5353
99061dfc
CY
53542009-06-30 Chong Yidong <cyd@stupidchicken.com>
5355
1ac9108a 5356 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 5357
ff90fbde
JR
53582009-06-30 Jason Rumney <jasonr@gnu.org>
5359
5360 * w32term.c (w32_initialize): Use GetModuleHandle for library that
5361 is already loaded.
5362 Set user model ID if supported (bug#1849).
5363
5f445726
JM
53642009-06-29 Jim Meyering <meyering@redhat.com>
5365
5366 Remove useless if-before-xfree test.
5367 * nsfont.m (nsfont_close): Remove useless test.
5368 * term.c (delete_tty): Likewise.
5369 * w32.c (system_process_attributes): Likewise.
5370 * w32font.c (w32font_close): Likewise.
5371 * xfaces.c (x_free_gc): Likewise.
5372 * xselect.c (buffer): Likewise.
5373
b9607587
AS
53742009-06-28 Andreas Schwab <schwab@linux-m68k.org>
5375
5376 * process.c (send_process): Keep decoded string in a local
5377 variable and protect it from GC. (Bug#3521)
5378
89ba96f4
EZ
53792009-06-28 Eli Zaretskii <eliz@gnu.org>
5380
5381 * term.c (create_tty_output) [MSDOS]: #ifdef away.
5382 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
5383
098a1589
CY
53842009-06-28 Chong Yidong <cyd@stupidchicken.com>
5385
485422be
CY
5386 * xdisp.c (start_display, handle_face_prop)
5387 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
5388 (redisplay_window, try_window_id, produce_image_glyph):
5389 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 5390
098a1589
CY
5391 * xterm.c (x_update_window_begin, x_new_focus_frame)
5392 (x_scroll_bar_handle_click, handle_one_xevent)
5393 (handle_one_xevent, XTread_socket, x_focus_on_frame)
5394 (x_make_frame_visible, x_make_frame_invisible)
5395 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
5396 code chunks that are now obsolete.
5397
78c38319
MA
53982009-06-28 Michael Albinus <michael.albinus@gmx.de>
5399
5400 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
5401 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
5402 for hours, when optimzation is enabled.
5403 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
5404 (xd_read_message): Make them static.
5405
4189ed40
CY
54062009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
5407
5408 * term.c (turn_on_face): Allow simultaneously bold and dim
5409 terminal faces (Bug#3530).
5410
cd9b5e16
CY
54112009-06-27 Chong Yidong <cyd@stupidchicken.com>
5412
4e23bedb
CY
5413 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
5414
cd9b5e16
CY
5415 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
5416 truncation glyphs (Bug#3686).
5417
07cc3c35
GM
54182009-06-27 Glenn Morris <rgm@gnu.org>
5419
5420 * m/pmax.h: Restore file, with only netbsd portions.
5421
31fd7c5c 54222009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 5423
cd9b5e16 5424 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 5425
42d4a64f
KH
54262009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
5427
5428 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
5429 the arg FORCE_SYMBOL.
5430
930fe55b 54312009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
5432
5433 * fontset.c (fontset_find_font): When a usable rfont_def is found
5434 in a fallback font-group, make it the first element of the group.
5435
57ebc3fd
CY
54362009-06-24 Chong Yidong <cyd@stupidchicken.com>
5437
5438 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
5439
f084f942
KH
54402009-06-24 Kenichi Handa <handa@m17n.org>
5441
5442 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
5443 set for C.
5444 (fontset_font): Record the availability of a font for C both in
5445 the realized fontsets of the current one and the default one.
5446
2f686c87
DN
54472009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
5448
5449 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
5450 conditional, it is always defined on AIX.
5451
666e158e
MB
54522009-06-23 Miles Bader <miles@gnu.org>
5453
5454 * window.c (Vrecenter_redisplay): New variable.
5455 (syms_of_window): Initialize it.
5456 (Qtty): New extern declaration.
5457 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
5458
c6da7cd2
JM
54592009-06-23 Jim Meyering <meyering@redhat.com>
5460
1ac9108a
SM
5461 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
5462 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 5463 pointer dereferences are guaranteed to be valid.
c6da7cd2 5464
678dca3d
KH
54652009-06-23 Kenichi Handa <handa@m17n.org>
5466
74d75424
KH
5467 * emacs.c (main): Call init_font ().
5468
5469 * font.h (Vfont_log): Extern it.
5470 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
5471
5472 * font.c (font_sort_entities, font_list_entities)
5473 (font_matching_entity, font_open_entity)
5474 (font_close_object): Change font_add_log to FONT_ADD_LOG.
5475 (Vfont_log): Delete static.
5476 (font_log_env_checked): Delete this variable.
5477 (font_add_log): Don't check font_log_env_checked.
5478 (font_deferred_log): Check Vfont_log.
5479 (init_font): New function.
5480
678dca3d
KH
5481 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
5482
5483 * w32font.c: Change font_add_log to FONT_ADD_LOG.
5484
5485 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
5486
5487 * xfont.c: Change font_add_log to FONT_ADD_LOG.
5488
5489 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
5490 (face_for_char): Don't call font_deferred_log here.
5491 (font_for_char): Likewise.
5492
8a668709
CY
54932009-06-22 Chong Yidong <cyd@stupidchicken.com>
5494
9a01ee33
CY
5495 * w32term.c (x_draw_glyph_string): Use the glyph string's width
5496 rather than its background_width for drawing the overline and
5497 underline (Bug#489).
5498
5499 * xterm.c (x_draw_glyph_string): Use the glyph string's width
5500 rather than its background_width for drawing the overline and
5501 underline (Bug#489).
ec7c9926
CY
5502 (xg_default_icon_file): New variable.
5503 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
5504 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 5505
8a668709
CY
5506 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
5507 (load_overlay_strings): Remove externs.
5508 (fast_find_position): Function deleted.
5509 (mouse_face_from_buffer_pos): New function, based on
5510 fast_find_position. Correctly handle before-strings,
5511 display-strings, and after-strings (Bug#1220).
5512 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
5513
4d4c02d8
CY
55142009-06-21 Chong Yidong <cyd@stupidchicken.com>
5515
1ac9108a 5516 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
5517 (move_it_in_display_line_to, move_it_in_display_line_to)
5518 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
5519
70243478
CY
55202009-06-21 Chong Yidong <cyd@stupidchicken.com>
5521
5522 * Branch for 23.1.
5523
13087e59
JR
55242009-06-21 Jason Rumney <jasonr@gnu.org>
5525
5526 * w32term.c (keyboard_codepage): New static variable.
5527 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
5528 (w32_read_socket) [WM_CHAR]: Use it to decode character
5529 input (bug#3237).
5530 (w32_initialize): Initialize it.
5531 (codepage_for_locale): New function.
5532
4735b74e
KR
55332009-06-20 Ken Raeburn <raeburn@raeburn.org>
5534
5535 * process.c (status_message): Pass Faset index argument as a lisp
5536 object, so as to work with USE_LISP_UNION_TYPE.
5537
0e727afa
YM
55382009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5539
5540 * coding.c (Ffind_coding_systems_region_internal):
5541 Cache checked characters.
5542
cf299835
KH
55432009-06-18 Kenichi Handa <handa@m17n.org>
5544
1ac9108a 5545 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 5546
90f20d94
AS
55472009-06-18 Andreas Schwab <aschwab@redhat.com>
5548
5549 * xdisp.c (redisplay_internal): Check that the frame is still
5550 live after redisplay of its windows.
5551 (redisplay_windows): Check that the window is still live.
5552
7f1faf1c
KH
55532009-06-17 Andreas Schwab <schwab@linux-m68k.org>
5554
5555 * coding.c (detect_coding_utf_16): Fix previous change.
5556
cc13543e
KH
55572009-06-16 Kenichi Handa <handa@m17n.org>
5558
5559 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
5560 UTF-16 by checking the dispersion of Eth and Oth bytes.
5561
977b85f4
AS
55622009-06-15 Andreas Schwab <schwab@linux-m68k.org>
5563
5564 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
5565
66bd43d1
KH
55662009-06-15 Kenichi Handa <handa@m17n.org>
5567
5568 * process.c (status_message): Fix previous change. Be sure to
5569 decode a localized string.
5570
cb5ca9c5
YM
55712009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5572
5573 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
5574 add comment explaining why.
5575
ec7709ba 55762009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 5577
ec7709ba 5578 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 5579
4b7f335c
AR
55802009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
5581
5582 * nsfont.m (ns_attribute_value): Remove.
5583 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
5584 (ns_has_attribute): Shrink the normal range.
5585 (ns_findfonts): Don't worry about requested spec in determining
5586 need for synthItal.
e41820ee 5587 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 5588
73b26103
SZ
55892009-06-14 Seiji Zenitani <zenitani@mac.com>
5590
5591 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
5592
5753e4da
KH
55932009-06-11 Kenichi Handa <handa@m17n.org>
5594
5595 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
5596 overhang for the static composition case.
5597
3561b671
KH
55982009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5599
5753e4da
KH
5600 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
5601 overhang for the automatic composition case.
5602
3561b671
KH
5603 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
5604 composition case.
5605
852bbd41
CY
56062009-06-10 Chong Yidong <cyd@stupidchicken.com>
5607
5608 * xdisp.c (get_next_display_element): When handling wrap-prefix
5609 and line-prefix, treat \n as a control character (bug#3502).
5610
9903d1e6
KH
56112009-06-10 Kenichi Handa <handa@m17n.org>
5612
5613 * font.c (font_parse_family_registry): Fix for one-char foundry.
5614 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
5615
0bcbaaaa
CY
56162009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
5617
5618 * process.c (status_message): Fix handling of multibyte signal
5619 string (Bug#3499).
5620
40aa3f13
JM
56212009-06-09 Jim Meyering <meyering@redhat.com>
5622
1f80c7e2
CY
5623 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
5624 color name is missing.
40aa3f13 5625
72d51285
KH
56262009-06-09 Kenichi Handa <handa@m17n.org>
5627
5628 * charset.c (Fmap_charset_chars): In docstring, state clearly that
5629 FROM-CODE and TO-CODE are codepoints of CHARSET.
5630
c1d04d84
AR
56312009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
5632
5633 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
5634
56352009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
5636
5637 Changes to support :script/:lang/:otf in NS font driver.
5638 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
5639 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
5640 indicate not part of font driver interface, and change callers.
5641 (ns_get_family): Remove pointless null check.
5642 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
5643 ns_spec_to_descriptor, ns_descriptor_to_entity.
5644 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
5645 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
5646 (ns_spec_to_descriptor, ns_descriptor_to_entity)
5647 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
5648 (ns_get_req_script, ns_accumulate_script_ranges)
5649 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
5650 New functions.
5651 (nsfont_list, nsfont_match): Use ns_findfonts.
5652 (nsfont_open): Use font descriptor instead of traits.
5653 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
5654 (dump_glyphstring): Rename to ns_dump_glyphstring.
5655
c7eb9816
AR
5656 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
5657
c1d04d84
AR
5658 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
5659
5660 * fontset.c (fontset_from_font): Remove NS-specific code.
5661
ec7709ba 56622009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
5663
5664 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
5665 nonactive windows.
5666
31fd7c5c 56672009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 5668
1ac9108a 5669 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 5670
68852c13 56712009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
5672
5673 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
5674
6756cd1d
CY
56752009-06-07 Chong Yidong <cyd@stupidchicken.com>
5676
5677 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
5678 account for the overflowing of newlines into the last glyph on the
5679 display line (Bug#3482).
5680
28bf482a
DR
56812009-06-05 David Reitter <david.reitter@gmail.com>
5682
ec7709ba
JB
5683 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
5684 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
5685 Fns_selection_exists_p, Fns_selection_owner_p.
5686
fdb55376
JR
56872009-06-03 Jason Rumney <jasonr@gnu.org>
5688
5689 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
5690 available. (Bug#3379)
5691
05129fbe
KH
56922009-05-29 Kenichi Handa <handa@m17n.org>
5693
1ac9108a
SM
5694 * coding.c (get_translation_table):
5695 Check Venable_character_translation.
05129fbe 5696
ec7709ba 56972009-05-26 David Reitter <david.reitter@gmail.com>
15891144 5698
ec7709ba
JB
5699 * nsterm.m (ns_raise_frame): Only raise frame if visible.
5700 (x_make_frame_visible): Move frame to front rather than calling
15891144 5701 ns_raise_frame().
ec7709ba 5702 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 5703 isn't key window.
ec7709ba 5704 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
5705 drawRect may be called by NSView even if the frame is hidden.
5706
ec7709ba
JB
5707 * nsfns.m (Fx_create_frame): Follow other ports in
5708 determining visibility; default to t. Ensure async_visible is set.
15891144 5709
21f73755
EZ
57102009-05-23 Eli Zaretskii <eliz@gnu.org>
5711
5712 * dired.c (Ffile_attributes): Doc fix.
5713
34001e41
CY
57142009-05-22 Chong Yidong <cyd@stupidchicken.com>
5715
5716 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
5717
46306a17
SM
57182009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
5719
5720 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
5721 and xfont_scratch_props.
5722 (syms_of_xfont): Do it here instead.
5723 (xfont_find_ccl_program): Delete, unused.
5724 (xfont_open): Delete unused var `i'.
5725
ef6e0694
KH
57262009-05-21 Kenichi Handa <handa@m17n.org>
5727
5728 * fontset.c (Qlatin): Don't make it static.
5729
46306a17
SM
5730 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
5731 New functions.
ef6e0694
KH
5732 (xfont_scripts_cache, xfont_scratch_props): New variables.
5733 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
5734 (xfont_list_pattern): Argument changed. Callers changed.
5735 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
5736 (xfont_list): Don't reject a font spec with :script property.
5737 (xfont_has_char): Fix setting of encoding.
5738 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
5739 xfont_scratch_props.
5740
57412009-05-19 Kenichi Handa <handa@m17n.org>
5742
46306a17 5743 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
5744 Callers changed.
5745
57462009-05-18 Kenichi Handa <handa@m17n.org>
5747
5748 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
5749
ac71ced7
SM
57502009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
5751
5752 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
5753 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
5754
1c6d1051
YM
57552009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5756
5757 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
5758 (x_delete_terminal): Dissociate resource database from display and
5759 then call XrmDestroyDatabase before closing display.
5760
9b9b779c
AR
57612009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
5762
5763 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
5764 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
5765 whether selected frame is viable before raising it (based on patch
5766 by David Reitter), and improve commentary.
5767 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 5768
cccd42d5
KH
57692009-05-15 Kenichi Handa <handa@m17n.org>
5770
5771 * font.c (Ffont_spec): Check arguments.
5772
337fbd17
CY
57732009-05-14 Chong Yidong <cyd@stupidchicken.com>
5774
5775 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
5776 weight when testing attributes (Bug#3282).
5777
47a6002f
JD
57782009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5779
5780 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
5781 what we expect to get in the next ConfigureNotify event.
5782
9cb363db
YM
5783 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
5784 before Xft one (Bug#1696).
5785
b9126609
CY
57862009-05-07 David Reitter <david.reitter@gmail.com>
5787
5788 * nsfns.m (Fx_display_planes): Compute bitplanes using
5789 NSBitsPerPixelFromDepth (Bug#3207).
5790
27a69fd9
CY
57912009-05-10 Chong Yidong <cyd@stupidchicken.com>
5792
5793 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
5794
00f37552
TTN
57952009-05-10 Ulrich Mueller <ulm@gentoo.org>
5796
5797 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
5798
2d82a920
DR
57992009-05-07 David Reitter <david.reitter@gmail.com>
5800
ec7709ba
JB
5801 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
5802 Respect mouse face background.
2d82a920 5803
46b0d52d
DR
58042009-05-07 David Reitter <david.reitter@gmail.com>
5805
ec7709ba
JB
5806 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
5807 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
5808 in ns_update_begin and ns_update_end.
5809
ce1b23bb
SM
58102009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5811
5996e1b7
SM
5812 * nsfns.m (ns_get_screen): Rewrite.
5813 Don't presume selected-frame is of type `ns'.
5814
ba98e3a0
SM
5815 * font.c (font_update_drivers): Sanity fallback to avoid disabling
5816 all drivers.
5817
ce1b23bb
SM
5818 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
5819
bcda200f
YM
58202009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5821
5822 * keyboard.h (add_user_signal): Fix typo in extern.
5823
5824 * lisp.h (add_user_signal): Remove extern.
5825
5826 * unexelf.c (unexec): Consider a section to precede the .bss section
5827 if its addresses overlap that of .bss.
5828 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
5829 instead of dumping process.
5830
864660a2
SM
58312009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5832
5833 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
5834
50da4e56
SM
58352009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
5836
5837 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
5838
51520a1a
DN
58392009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
5840
5841 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
5842 any statements.
5843
409ea3a1
AS
58442009-05-02 Andreas Schwab <schwab@linux-m68k.org>
5845
59c4c60f
AS
5846 * process.c (read_process_output): Make sure the current buffer is
5847 always restored.
5848
409ea3a1
AS
5849 * coding.c (record_conversion_result): Don't modify
5850 Vlast_code_conversion_error for successful result.
5851 (alloc_destination): Don't clobber conversion result. (Bug#1650)
5852
56f00ed2
KH
58532009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
5854
5855 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 5856 (load_charset_map): Remove unnecessary code.
56f00ed2 5857
4491c9d2
DR
58582009-04-30 David Reitter <david.reitter@gmail.com>
5859
35f5b128 5860 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
5861 through f24.
5862
6970f632
CY
58632009-04-30 Chong Yidong <cyd@stupidchicken.com>
5864
5865 * xfaces.c (face_at_buffer_position): New arg base_face_id.
5866
5867 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
5868 face_at_buffer_position.
5869 (face_before_or_after_it_pos, get_next_display_element)
5870 (note_mouse_highlight): Update face_at_buffer_position call.
5871
5872 * term.c (term_mouse_highlight):
5873 * msdos.c (IT_note_mouse_highlight):
5874 * fontset.c (Finternal_char_font):
35f5b128 5875 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
5876
5877 * dispextern.h (face_at_buffer_position): Update prototype.
5878
0c616f63
KH
58792009-04-30 Kenichi Handa <handa@m17n.org>
5880
35f5b128 5881 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 5882
ad3aaf33
AS
58832009-04-29 Andreas Schwab <schwab@linux-m68k.org>
5884
5885 * callproc.c (Fcall_process): Fix GC protection. Make sure
5886 current buffer is always restored.
5887
c3c963a0
YM
58882009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5889
5890 * atimer.c (init_atimer): Also clear stopped_atimers.
5891
5892 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
5893
7e3386cb
YM
5894 * process.c (create_process): Clean up merger residues of
5895 2008-07-17 change.
5896
91f68422
CY
58972009-04-29 Ulrich Mueller <ulm@gentoo.org>
5898
5899 * lread.c (Vread_circle): New variable.
5900 (read1): Disable recursive read if Vread_circle is nil.
5901
24b34550
KH
59022009-04-29 Kenichi Handa <handa@m17n.org>
5903
5904 * fontset.h (set_default_ascii_font): Delete extern.
5905
5906 * fontset.c (set_default_ascii_font): Delete this unused function.
5907
5908 * frame.c (x_set_font): When ARG is a font-object, check if the
5909 font-object matches with the ASCII font-spec of the frame's
9c358bda 5910 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 5911
77bf07e1
AS
59122009-04-28 Andreas Schwab <schwab@linux-m68k.org>
5913
5914 * fns.c (Flocale_info): Protect vector from GC during decoding.
5915
5916 * process.c (Fstart_process): Protect argv strings from GC during
5917 encoding.
5918
2c55aacf
AS
59192009-04-27 Andreas Schwab <schwab@linux-m68k.org>
5920
5921 * sysdep.c: Include <ctype.h>.
5922
b892d3c9
DR
59232009-04-27 David Reitter <david.reitter@gmail.com>
5924
35f5b128 5925 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
5926 Remove commented-out code.
5927
9d0644c4
JB
59282009-04-26 Johan Bockgård <bojohan@gnu.org>
5929
5930 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5931
b7053016
JR
59322009-04-25 Jason Rumney <jasonr@gnu.org>
5933
5934 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
5935
4e8231f3
YM
59362009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5937
5938 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
5939 Swap bytes in short integer if fringe bitmap width > 8.
5940
493dcf2c
KH
59412009-04-23 Kenichi Handa <handa@m17n.org>
5942
5943 * xfaces.c (Fx_list_fonts): If a font size is specified in
5944 PATTERN, set it in returned scalable fonts.
5945
401e9e57
CY
59462009-04-22 Chong Yidong <cyd@stupidchicken.com>
5947
708e05dc
CY
5948 * keyboard.c (Fset_input_meta_mode): Doc fix.
5949
5950 * dispnew.c (Fsend_string_to_terminal): Doc fix.
5951
1ac9108a 5952 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
5953
5954 * coding.c (Fterminal_coding_system): Doc fix.
5955
5956 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
5957 (Fx_display_pixel_height, Fx_display_planes)
5958 (Fx_display_color_cells, Fx_server_max_request_size)
5959 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
5960 (Fx_display_mm_height, Fx_display_mm_width)
5961 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
5962 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
5963 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
5964 (check_x_display_info): Handle terminal objects instead of
5965 terminal ids.
5966
401e9e57
CY
5967 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
5968 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
5969 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
5970 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 5971
df80c7f0
KH
59722009-04-21 Kenichi Handa <handa@m17n.org>
5973
5a8f12af 5974 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 5975 (font_score): Check AVGWIDTH too.
908567ef 5976
df80c7f0
KH
5977 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
5978 worst case.
1ac9108a
SM
5979 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
5980 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 5981
705af33f
JR
59822009-04-19 Jason Rumney <jasonr@gnu.org>
5983
5984 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 5985 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
5986
5987 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
5988 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
5989 get_phys_cursor_geometry.
5990
b71ac3dd 5991 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
5992 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
5993 using get_phys_cursor_geometry.
5994
5995 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
5996 correctly calculated.
5997
dc2933eb
JD
59982009-04-19 Jan Djärv <jan.h.d@swipnet.se>
5999
1ac9108a
SM
6000 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
6001 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
6002 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
6003 is deprecated.
6004
973e7849
AS
60052009-04-18 Andreas Schwab <schwab@linux-m68k.org>
6006
6007 * font.c (font_put_frame_data): Use xfree instead of free.
6008
314d66f4
JB
60092009-04-17 Juanma Barranquero <lekktu@gmail.com>
6010
6011 * w32font.c (Qja, Qko): Remove declarations.
6012 (syms_of_w32font): Don't DEFSYM them.
6013
cf702558
CY
60142009-04-17 Chong Yidong <cyd@stupidchicken.com>
6015
6016 * font.c (Qja, Qko): Move definitions here from ftfont.c.
6017
6018 * font.h (Qja, Qko): Extern them.
6019
6020 * ftfont.c (Qja, Qko): Remove declarations.
6021
6022 * xfont.c (Qja, Qko): Remove declarations.
6023
b50504f5
KH
60242009-04-17 Kenichi Handa <handa@m17n.org>
6025
bde25748
KH
6026 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
6027 string from a vector to handle Latin-1 characters correctly.
6028
b50504f5
KH
6029 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
6030 entity even if the cache hits.
6031
f4646fff
AS
60322009-04-16 Andreas Schwab <schwab@linux-m68k.org>
6033
6034 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 6035 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 6036
e7deaab0
AS
6037 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
6038 * lisp.h: Adjust prototypes.
6039
0a0e7d49
CY
60402009-04-16 Chong Yidong <cyd@stupidchicken.com>
6041
6042 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
6043 change (Bug#3003).
6044
3c908a57
KH
60452009-04-16 Kenichi Handa <handa@m17n.org>
6046
1ac9108a 6047 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
6048
6049 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
6050 adstyle.
6051
6052 * ftfont.c (Qja, Qko): Don't make them static.
6053 (enum ftfont_cache_for): New enum.
6054 (fc_charset_table): Undo the previous change.
6055 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
6056 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
6057 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
6058 non-scarable font, try to get AVERAGE_WIDTH.
6059 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
6060 Change ft_face_cache from a list of a hash-table. Don't check
6061 `ja' and `ko' adstyle here.
6062 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
6063 FTFONT_CACHE_FOR_CHARET.
6064 (ftfont_get_charset): Undo the previous change.
1ac9108a 6065 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
6066 (ftfont_close): Likewise.
6067 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
6068
6069 * font.c (font_sort_entites): Change the meaning of the arg
6070 BEST-ONLY. Don't optimize for VEC of lenght 1.
6071 (font_select_entity): Just return the value of font_sort_entites.
6072
6073 * xfaces.c (merge_face_vectors): Reflect font properties in
6074 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
6075 font_clear_prop if a face attribute doesn't change.
6076
3c908a57
KH
6077 * charset.h (charset_ksc5601): Extern it.
6078
6079 * charset.c (charset_ksc5601): New variable.
6080 (Fdefine_charset_internal): Set charset_ksc5601.
6081 (init_charset_once): Initialize charset_ksc5601 to -1.
6082
d65859c3
DN
60832009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
6084
6085 * fileio.c (history_delete_duplicates): Remove unused declaration.
6086
6087 * callint.c (history_delete_duplicates): New declaration.
6088 (Fcall_interactively): Remove command history duplicates when
6089 history_delete_duplicates is true.
6090
3ba010e5
EZ
60912009-04-14 Eli Zaretskii <eliz@gnu.org>
6092
6093 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
6094
06f19b91
KH
60952009-04-14 Kenichi Handa <handa@m17n.org>
6096
6097 * font.c (Ffont_info): Fix docstring. Fix the second element of
6098 the returned value (bug#2949).
6099
2cce8bfc
CY
61002009-04-14 Chong Yidong <cyd@stupidchicken.com>
6101
6102 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
6103
d156542d
KH
61042009-04-14 Kenichi Handa <handa@m17n.org>
6105
6106 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
6107 encoding charset is ascii_compatible.
6108
6109 * charset.c (Fdefine_charset_internal): Make charset
6110 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
6111 code_offset is 0, and covers all ASCII characters.
6112
86fa089e
SM
61132009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
6114
6115 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
6116 (ns_string_to_pasteboard_internal):
6117 * nsmenu.m (process_dialog):
6118 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
6119 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
6120 * lisp.h (Fx_load_color_file): Declare.
6121
a8a3728b
KH
61222009-04-13 Kenichi Handa <handa@m17n.org>
6123
1ac9108a 6124 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
6125 (font_select_entity): Suppress the code to optimize for the same
6126 kind of fonts.
6127 (font_load_for_lface): Get a font that supports at least ASCII
6128 characters.
6129
6130 * ftfont.c (Qja, Qko): New variables.
6131 (fc_charset_table): Delete uniquifier data for iso8859-1.
6132 (ftfont_get_latin1_charset): New function.
6133 (get_adstyle_property): New function.
6134 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
6135 bitmap fonts.
6136 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
6137 Delete iso-8859-1 range from the charset of fonts whose adstyle is
6138 `ko' or `ja'.
6139 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 6140 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
6141 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
6142 property.
6143 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
6144 (syms_of_ftfont): DEFSYM Qja and Qko.
6145
483670b5
KH
61462009-04-09 Kenichi Handa <handa@m17n.org>
6147
12b55765
KH
6148 * charset.c (map_charset_chars): For a charset of `superset'
6149 method, fix calculation of code range.
6150
483670b5
KH
6151 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
6152 from the list of extra properties.
6153 (font_clear_prop): Be sure to delete `:name' font property.
6154
57d3b93b
KH
61552009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6156
b4b2c2ca
YM
6157 * dispnew.c (redraw_overlapping_rows): Fix detection of
6158 overlapping for topmost and bottommost rows.
6159
1ac9108a 6160 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 6161
472c3609
JR
61622009-04-06 Jason Rumney <jasonr@gnu.org>
6163
6164 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
6165
ab193662
KH
61662009-04-06 Kenichi Handa <handa@m17n.org>
6167
6168 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
6169
6170 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
6171
0c26f026
KH
61722009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6173
6174 * ftfont.c (ftfont_open): Fix checking of the return value of
6175 FT_Load_Char. Fix setting font->underline_thickness.
6176
e173bbce
CY
61772009-04-04 Chong Yidong <cyd@stupidchicken.com>
6178
6179 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
6180 (Fterminal_parameters, Fterminal_parameter)
6181 (Fset_terminal_parameter): In doc string, refer to terminal
6182 objects rather than terminal ids.
6183
693a2698
EZ
61842009-04-04 Eli Zaretskii <eliz@gnu.org>
6185
6186 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
6187 ret_lim_data. (Bug#2867)
6188
d5221487
CY
61892009-04-03 Chong Yidong <cyd@stupidchicken.com>
6190
6191 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
6192 so they don't get wider than the window, matching 2006-01-23
6193 change to the partner function in xdisp.c (Bug#2800).
6194
223509a3
KH
61952009-04-03 Kenichi Handa <handa@m17n.org>
6196
6197 * print.c (print_object): Make each lowest sub_char_table start a
6198 new line (Bug#2866).
6199
74fcd0b1
KH
62002009-04-02 Kenichi Handa <handa@m17n.org>
6201
6202 * fontset.c (fontset_font): Record no-font when a fontset
6203 explicitly tells not to try another font-specs.
6204
c542407d
SM
62052009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
6206
6207 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
6208
e3869731
KH
62092009-03-30 Kenichi Handa <handa@m17n.org>
6210
d8d2f142
KH
6211 * fontset.c (fontset_from_font): Specify only registry in a
6212 font-spec for all characters supported by that registry.
6213
e3869731
KH
6214 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
6215 even if HAVE_M17N_FLT is not defined.
6216
5da5f805
CY
62172009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
6218
6219 * ftfont.c: Conditionalize prototyping and use of
6220 ftfont_variation_glyphs.
6221
ab226c50
SM
62222009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
6223
9628fed7
SM
6224 * frame.c (delete_frame): Work around compiler bug.
6225
6226 * editfns.c (general_insert_function): Adjust to insdel.c changes.
6227 * insdel.c (prepare_to_modify_buffer, signal_before_change):
6228 Some more EMACS_INT.
6229 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
6230
6231 * xdisp.c (dump_glyph): Fix typo.
6232
ae19ba7c
SM
6233 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
6234 (adjust_markers_gap_motion, adjust_markers_for_delete)
6235 (adjust_markers_for_insert, adjust_point)
6236 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
6237 (make_gap, copy_text, count_size_as_multibyte, insert)
6238 (insert_and_inherit, insert_before_markers)
6239 (insert_before_markers_and_inherit, insert_1)
6240 (count_combining_before, count_combining_after, insert_1_both)
6241 (insert_from_string, insert_from_string_before_markers)
6242 (insert_from_string_1, insert_from_gap, insert_from_buffer)
6243 (insert_from_buffer_1, adjust_after_replace)
6244 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
6245 (replace_range_2, del_range, del_range_1, del_range_byte)
6246 (del_range_both, del_range_2, modify_region)
6247 (prepare_to_modify_buffer, signal_before_change)
6248 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
6249 for buffer positions and sizes.
6250 * lisp.h: Adjust prototypes accordingly.
6251
6252 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
6253 (non_regular_inserted, non_regular_nbytes, read_non_regular)
6254 (Finsert_file_contents): Use EMACS_INT for buffer positions.
6255
ab226c50
SM
6256 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
6257
46dfb8fb
JD
62582009-03-27 Jan Djärv <jan.h.d@swipnet.se>
6259
6260 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
6261 lines and columns so we keep the same pixel height and width.
6262
6263 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
6264 the property _NET_WM_STATE has changed.
46dfb8fb
JD
6265 (x_handle_net_wm_state): New function to update frame parameter
6266 fullscreen.
6267 (x_term_init): Initialize atoms for _NET_WM_STATE.
6268
6269 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
6270
d347e494
SM
62712009-03-27 Kevin Ryde <user42@zip.com.au>
6272
6273 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
6274 Gpm_GetEvent as an error that justifies closing the filedescriptor.
6275 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
6276 (Fgpm_mouse_stop): Pass that new parameter.
6277 * termhooks.h (close_gpm): Adjust prototype.
6278
84db11d6
SM
62792009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
6280
c95a5008
SM
6281 * lisp.h (Fx_focus_frame): Declare.
6282
84db11d6
SM
6283 * callint.c (Fcall_interactively): For '^' just delegate the work to
6284 handle-shift-selection.
6285 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
6286
0a1958d6
CY
62872009-03-24 Chong Yidong <cyd@stupidchicken.com>
6288
0bfdff23
CY
6289 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
6290
0a1958d6
CY
6291 * data.c (Qinteractive_form): New variable.
6292 (Finteractive_form): Use it.
6293
6294 * eval.c (Fcommandp): Use Qinteractive_form.
6295
58aec0d6
JR
62962009-03-24 Jason Rumney <jasonr@gnu.org>
6297
6298 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
6299 Calculate total size precisely. Decode environment variables
6300 before substituting. (Bug#38)
6301
553dd618
KH
63022009-03-24 Kenichi Handa <handa@m17n.org>
6303
6304 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 6305 encoding (Bug#2722).
553dd618 6306
c39ea606
JD
63072009-03-23 Jan Djärv <jan.h.d@swipnet.se>
6308
6309 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
6310 that gdpy is set.
6311
bc9b2b5e
AM
63122009-03-22 Alan Mackenzie <acm@muc.de>
6313
6314 * callint.c (Finteractive): Clarify the doc string - even
6315 promptless elements need \n separators.
6316
9f995a76
JR
63172009-03-22 Jason Rumney <jasonr@gnu.org>
6318
6319 * w32term.c (syms_of_w32term): Doc fix for
6320 x-use-underline-position-properties.
6321
22749e9a
EZ
63222009-03-21 Eli Zaretskii <eliz@gnu.org>
6323
6324 * w32.c (getpwuid): Change argument type to unsigned.
6325 (struct w32_id): Change type of `rid' member to unsigned.
6326 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
6327 argument ID to unsigned. All callers changed.
6328 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
6329
e00553bf
EZ
63302009-03-20 Eli Zaretskii <eliz@gnu.org>
6331
6332 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
6333 negative, produce a float value.
6334
6335 * dired.c (make_uid, make_gid): New functions.
6336 (Ffile_attributes): Use them to avoid negative UID and GID.
6337
f761d6b6
JB
63382009-03-20 Juanma Barranquero <lekktu@gmail.com>
6339
6340 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
6341 (syms_of_keyboard) <command-hook-internal, input-method-function>:
6342 Fix typos in docstrings.
6343
d507f8d7
KH
63442009-03-19 Kenichi Handa <handa@m17n.org>
6345
6346 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
6347 changed, use font_load_for_lface to get a new font object.
6348 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
6349
6350 * frame.c (x_set_font): Handle the case that ARG is a cons.
6351
c68845e0
GM
63522009-03-19 Glenn Morris <rgm@gnu.org>
6353
6354 * fileio.c (Fsubstitute_in_file_name): Doc fix.
6355
bfa49dd1
CY
63562009-03-19 Chong Yidong <cyd@stupidchicken.com>
6357
6358 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
6359
8458d4c1
KH
63602009-03-19 Kenichi Handa <handa@m17n.org>
6361
6362 * charset.c (load_charset_map_from_file): When a mapfile can't be
6363 loaded, signal an error.
6364
78e7d1fe
EZ
63652009-03-18 Eli Zaretskii <eliz@gnu.org>
6366
6367 * dired.c (Ffile_attributes): Make sure UID and GID are always
6368 positive, even if the value is too large for a positive EMACS_INT.
6369 Doc fix.
6370
6371 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
6372
5da9fdfa
YM
63732009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6374
6375 * xmenu.c (xdialog_show): Move Fredisplay call ...
6376 (Fx_popup_dialog): ... here.
6377
7519c40d
SM
63782009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
6379
6380 * dired.c (file_name_completion): Disable the first optimization just
6381 installed, since it is not implemented correctly.
6382
2cd298e2
SM
63832009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
6384
6385 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 6386 only if the entry can affect bestmatch.
2cd298e2
SM
6387 Stop the search early, as Ftry_completion already does.
6388
48d37adf
CY
63892009-03-17 Chong Yidong <cyd@stupidchicken.com>
6390
e10c9c93 6391 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 6392
9286b16a
CY
63932009-03-15 Chong Yidong <cyd@stupidchicken.com>
6394
6395 * keyboard.c (parse_menu_item): Don't display remappings as menu
6396 equivalent bindings (Bug#788).
6397
f7b146dc
JR
63982009-03-15 Jason Rumney <jasonr@gnu.org>
6399
6400 * w32term.h (WM_EMACS_PAINT): New message.
6401 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
6402 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
6403 before passing to lisp thread. (Bug#950)
6404
f761d6b6 64052009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 6406
d93f9575
CY
6407 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
6408 variable as it was never reset.
6409 (ns_term_init): Remove initialization of Lisp-settable defaults
6410 and ns_expand_space.
6411 (-setPanelFromDefaultValues): Remove ns_expand_space.
6412 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
6413 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
6414 i.e. no additional spacing, similar to Carbon port.
6415
d93f9575
CY
6416 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
6417 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 6418
305018ec
JD
64192009-03-14 Jan Djärv <jan.h.d@swipnet.se>
6420
6421 * sound.c (alsa_configure): Remove call to deprecated
6422 snd_pcm_sw_params_set_xfer_align.
6423
f761d6b6 64242009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
6425
6426 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
6427 after clicking in a detached tool bar.
6428 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
6429
46e722a9
SM
64302009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
6431
348db3dd
SM
6432 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
6433 int/Lisp_Object mixup).
46e722a9 6434
a3d16f39
KH
64352009-03-13 Kenichi Handa <handa@m17n.org>
6436
6437 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 6438 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
6439 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
6440 (set_fontset_font): Change ARG to a vector. Handle range_list in
6441 ARG correctly.
6442 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 6443 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
6444 the above change.
6445 (fontset_from_font): Fix previous change.
fe24f56a 6446 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
6447 entry. If FONTSET is the default fontset, don't set the extra
6448 slot of the returning char-table.
6449
b066e6b6
JB
64502009-03-12 Juanma Barranquero <lekktu@gmail.com>
6451
6452 * nsfns.m (Fx_close_connection): Doc fix.
6453 (Fns_do_applescript): Reflow docstring.
6454 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
6455 (Fx_display_pixel_width, Fx_display_pixel_height)
6456 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
6457 Fix typos in docstrings.
6458 (Fns_set_alpha): Fix typos in error messages.
6459
d472514e 64602009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 6461
d472514e 6462 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
6463 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
6464 were used for such events.
6465
d472514e
JB
6466 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
6467 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 6468
d472514e 6469 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
6470 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
6471
fb930676
KH
64722009-03-11 Kenichi Handa <handa@m17n.org>
6473
ff85581a
KH
6474 * font.h (font_open_by_spec): Extern it.
6475
c50b7e98
KH
6476 * font.c (font_open_by_spec): New function.
6477 (font_open_by_name): Use font_open_by_spec.
6478
fb930676
KH
6479 * frame.c (x_set_font): When ARG is a font-object, don't alter the
6480 fontset of the frame.
6481
6482 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
6483 modify the default font of frames that use this fontset.
6484 (num_auto_fontsets): New variable.
6485 (fontset_from_font): Use num_auto_fontsets to decide a fontset
6486 name. Be sure to set FONTSET_ASCII to the correct font name.
6487 (update_auto_fontset_alist): New function.
6488
df4e8455
JB
64892009-03-11 Juanma Barranquero <lekktu@gmail.com>
6490
6491 * makefile.w32-in: Update dependencies.
6492
0a375797
AR
64932009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6494
6495 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
6496
61313fa3
SM
64972009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
6498
6499 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
6500
b55103fb
CY
65012009-03-10 Chong Yidong <cyd@stupidchicken.com>
6502
6503 * lread.c (Feval_buffer): Doc fix.
6504
dde2559c
KH
65052009-03-09 Kenichi Handa <handa@m17n.org>
6506
6507 * charset.c (Qfile_name_handler_alist): Extern it.
6508 (load_charset_map_from_file): Temporarily bind
6509 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
6510
df4e8455 65112009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 6512
47f588bb
GM
6513 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
6514 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 6515
4ddf94bd
AR
65162009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6517
4c9bdfc2
AR
6518 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
6519 (x_set_window_size): Change back to calculated method of setting
6520 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
6521 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
6522 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
6523
fe41ae9e
AR
6524 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
6525
4c9bdfc2
AR
6526 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
6527 accelerator in parens under GNUstep.
6528
825d0875
KH
65292009-03-06 Kenichi Handa <handa@m17n.org>
6530
6531 These changes are to detect incorrect composition sequence without
f3b3be74 6532 looking ahead the source. (Bug#2370)
825d0875
KH
6533
6534 * coding.h: Include "composite.h".
6535 (enum compisition_state): New enum.
6536 (struct compisition_status): New struct.
6537 (struct iso_2022_spec): New member cmp_status.
6538 (struct emacs_mule_spec): New struct.
6539 (struct coding_system): New members ctext_extended_segment_len and
6540 embedded_utf_8. Change the union member
6541 spec.emacs_mule_full_support to spec.emacs_mule.
6542
6543 * coding.c (CODING_ISO_CMP_STATUS): New macro.
6544 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 6545 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
6546 (ADD_COMPOSITION_DATA): New arg nbytes.
6547 (emacs_mule_char): New arg cmp_status.
6548 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
6549 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
6550 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
6551 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
6552 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
6553 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
6554 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
6555 (EMACS_MULE_COMPOSITION_END): New macro.
6556 (emacs_mule_finish_composition): New function.
6557 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
6558 (decode_coding_emacs_mule): Avoid long looking ahead while
6559 handling composition.
6560 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
6561 (ENCODE_COMPOSITION_RULE): New macro.
6562 (finish_composition): New function.
6563 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
6564 (DECODE_COMPOSITION_START): New implementation.
6565 (DECODE_COMPOSITION_END): Likewise.
6566 (STORE_COMPOSITION_RULE): New macro.
6567 (decode_coding_iso_2022): Avoid long looking ahead while handling
6568 composition, CTEXT extended segment, and embedded UTF-8.
6569 (setup_coding_system): For a coding of type iso-2022, reset
6570 CODING_ISO_EXTSEGMENT_LEN (coding) and
6571 CODING_ISO_EMBEDDED_UTF_8 (coding).
6572 (get_translation): Delete arguments last_block, from_nchars,
6573 to_nchars. Callers changed.
6574 (produce_chars): Don't modify charbuf. Adjusted for the change of
6575 get_translation.
98a326f7 6576 (produce_composition): Adjust for the new annotation sequence.
825d0875 6577 (handle_composition_annotation): Likewise.
98a326f7 6578 (consume_chars): Adjust for the change of get_translation.
825d0875 6579
ccbc4452
AR
65802009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
6581
4ddf94bd 6582 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 6583
988a7ddb
KH
65842009-03-05 Kenichi Handa <handa@m17n.org>
6585
6586 * font.c (font_select_entity): New function.
6587 (font_find_for_lface): Use font_select_entity to select a font.
6588
6589 * fontset.c (fontset_find_font): If a font found without
a8a3728b 6590 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
6591 font with C restriction.
6592
98a326f7 65932009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 6594
be1bce46 6595 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 6596
10ea2b82
JR
65972009-03-04 Jason Rumney <jasonr@gnu.org>
6598
2c93b248 6599 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 6600 characters that have already been read. (Bug#2569)
2c93b248 6601
10ea2b82
JR
6602 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
6603 Log an error message if check_image_size failed.
6604 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 6605 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 6606
71a0c011
EZ
66072009-03-02 Eli Zaretskii <eliz@gnu.org>
6608
6609 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
6610 when decoding process output.
6611
2f63bba8
RS
66122009-03-01 Richard M Stallman <rms@gnu.org>
6613
6614 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
6615
6616 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
6617
0a9564cb
EZ
66182009-02-28 Eli Zaretskii <eliz@gnu.org>
6619
6620 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
6621 (decode_coding_emacs_mule, decode_coding_iso_2022)
6622 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6623 (decode_coding_raw_text, decode_coding_charset)
6624 (setup_coding_system, decode_eol, decode_coding, consume_chars):
6625 Honor inhibit-eol-conversion. (Bug #2186)
6626
449148b3
JR
66272009-02-28 Jason Rumney <jasonr@gnu.org>
6628
6629 * coding.c (detect_coding_charset): If not checking latin extra,
6630 fail on characters between 0x80 and 0xA0. (Bug#2354)
6631
a4aee864
EZ
66322009-02-28 Eli Zaretskii <eliz@gnu.org>
6633
6634 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 6635 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 6636
d88bee5a
GM
66372009-02-27 Glenn Morris <rgm@gnu.org>
6638
6639 * callint.c (Finteractive): Doc fix.
6640
a808f22d
KH
66412009-02-27 Kenichi Handa <handa@m17n.org>
6642
6643 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
6644
caf8d60c
CY
66452009-02-27 Chong Yidong <cyd@stupidchicken.com>
6646
6647 * font.c (font_style_to_value): Set value for unknown symbols to
6648 100 instead of 255.
b61137ea
CY
6649 (weight_table, slant_table, width_table): Treat "unspecified" as
6650 the default value.
caf8d60c 6651
1a0de25c
JB
66522009-02-26 Juanma Barranquero <lekktu@gmail.com>
6653
6654 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
6655
8fc45744
JB
66562009-02-25 Juanma Barranquero <lekktu@gmail.com>
6657
107bd7d1
JB
6658 * lread.c (Fload): Stop checking Vloads_in_progress and signal
6659 error as soon as a recursive load is detected.
8fc45744 6660
f097e223
AR
66612009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6662
6663 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
6664 before caching.
6665
8810a12f
KH
66662009-02-24 Kenichi Handa <handa@m17n.org>
6667
6668 * fontset.c (fontset_find_font): Fix the condition for checking
6669 unavailable font.
6670
2c7d1565
GM
66712009-02-24 Glenn Morris <rgm@gnu.org>
6672
6673 * xfaces.c (Finternal_set_font_selection_order): Remove leading
6674 whitespace that confuses documentation.
6675
a20878b6
MB
66762009-02-23 Miles Bader <miles@gnu.org>
6677
6678 * process.c (Flist_system_processes, Fprocess_attributes)
6679 (syms_of_process): Rename `system-process-attributes' to
6680 `process-attributes'.
6681
b3b58c01
AS
66822009-02-22 Andreas Schwab <schwab@linux-m68k.org>
6683
1b3b981b
AS
6684 * coding.h (struct coding_system): Make safe_charsets a pointer to
6685 unsigned char.
6686 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
6687 being 255.
6688 (SAFE_CHARSET_P): Likewise.
6689 (setup_iso_safe_charsets): Properly setup safe_charsets.
6690 (Fdefine_coding_system_internal): Likewise.
6691 (setup_coding_system): Likewise. Remove unneeded casts.
6692 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
6693 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
6694 unneeded casts.
6695
b3b58c01
AS
6696 * insdel.c (del_range_2): Don't modify gap contents when called
6697 from decode_coding_object. (Bug#1809)
6698
0b6f228c
CY
66992009-02-21 Chong Yidong <cyd@stupidchicken.com>
6700
6701 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
6702 Qfont_object.
6703 (Ftype_of): Recognize font objects.
6704
6705 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
6706
6707 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
6708 moved to data.c.
6709
52f8870b
AR
67102009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6711
6712 * nsterm.m (x_make_frame_invisible): Unset async_visible,
6713 async_iconified. Based on a patch by Christian Lynbech
6714 <christian.lynbech@tieto.com>.
6715 (EmacsView-windowDidMiniaturize:): Unset async_visible.
6716
7087d5e9
GM
67172009-02-20 Glenn Morris <rgm@gnu.org>
6718
6719 * syntax.c (Fskip_chars_forward): Fix doc typo.
6720
41d2ceef
CY
67212009-02-20 Chong Yidong <cyd@stupidchicken.com>
6722
6723 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
6724
1a3b7ca6
CY
67252009-02-19 Chong Yidong <cyd@stupidchicken.com>
6726
6727 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
6728
73cce38d
KH
67292009-02-19 Kenichi Handa <handa@m17n.org>
6730
6731 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 6732 Don't overflow coding->carryover. (Bug#2370)
73cce38d 6733
a51092ee
DN
67342009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
6735
6736 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
6737
c423ecca
KH
67382009-02-18 Kenichi Handa <handa@m17n.org>
6739
6740 * font.c (font_check_otf_features): Fix handling of `nil' element.
6741 (Ffont_spec): Describe :lang and :otf in the docstring.
6742
4c1958f4
AS
67432009-02-16 Andreas Schwab <schwab@suse.de>
6744
6745 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
6746 string.
6747
5704f39a
KH
67482009-02-16 Kenichi Handa <handa@m17n.org>
6749
6750 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 6751 (Bug#1723)
5704f39a 6752
8f0085aa
CY
67532009-02-14 Chong Yidong <cyd@stupidchicken.com>
6754
a057d86a 6755 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
6756
6757 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
6758 (handle_line_prefix): Suppress wrapping of wrap prefixes.
6759
aff01dd9
EZ
67602009-02-14 Eli Zaretskii <eliz@gnu.org>
6761
6762 * msdos.c (MAX_SCREEN_BUF): New macro.
6763 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
6764 Encode the entire run of glyphs sharing the same face, instead of
6765 doing that one glyph at a time (fixes a bug with displaying
6766 double-size characters).
6767
ba301db3
AR
67682009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
6769
6770 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
6771
6772 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
6773 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 6774 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
6775
6776 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 6777 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 6778
51d861de
SM
67792009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
6780
ac146f82 6781 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
6782 invisible areas.
6783
7fed8996
JR
67842009-02-12 Jason Rumney <jasonr@gnu.org>
6785
631ea4fb
JR
6786 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
6787 (add_font_entity_to_list): Call check_face_name even when family
6788 is unspecified.
6789
cb4a3e42
JR
6790 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6791 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 6792 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 6793
7fed8996 6794 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 6795 raster fonts. (Bug#2219)
7fed8996 6796
895416e3
KH
67972009-02-12 Kenichi Handa <handa@m17n.org>
6798
6799 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
6800 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
6801 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 6802 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
6803 (find_automatic_composition): While looking forward and backward,
6804 check static composition. Fix where to stop looking forward.
6805 (composition_adjust_point): Fix checking of static composition.
6806 (Fcomposition_get_gstring): Pay attention to
1dacf998 6807 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
6808
6809 * lisp.h (fast_looking_at): Extern it.
6810
6811 * search.c (fast_looking_at): New function.
6812
51d861de 6813 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
6814 <struct glyph>.u.cmp.to.
6815 (append_composite_glyph): Likewise.
6816
51d861de 6817 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
6818 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
6819 composition.
51d861de 6820 (append_composite_glyph): Adjust for the change of
895416e3
KH
6821 <strcut glyph>.u.cmp.to.
6822
8510724d
JB
68232009-02-11 Juanma Barranquero <lekktu@gmail.com>
6824
6825 * casetab.c (init_casetab_once):
6826 * coding.c (ALLOC_CONVERSION_WORK_AREA):
6827 * font.c (font_update_lface):
6828 * fontset.c (Fnew_fontset):
6829 * ftfont.c (ftfont_drive_otf):
6830 * xfont.c (xfont_open):
6831 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
6832
294fa707
SM
68332009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
6834
6835 * fileio.c (Fwrite_region): !NILP -> CONSP.
6836
b5bfebec
AS
68372009-02-10 Andreas Schwab <schwab@suse.de>
6838
6839 * process.c (send_process): Properly relocate pointer into data
adab88bd 6840 when using encoded data. (Bug#2272)
b5bfebec 6841
cb84a2be
KH
68422009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
6843
6844 * coding.c (detect_coding_charset): Fix previous change.
6845
89e09428
JR
68462009-02-08 Jason Rumney <jasonr@gnu.org>
6847
6848 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 6849 disappeared while hourglass was displayed. (Bug #2193)
89e09428 6850
4470a277
AS
68512009-02-07 Andreas Schwab <schwab@suse.de>
6852
6853 * unexelf.c (unexec): Fix error message.
6854
3175b12a
AR
68552009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
6856
6857 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 6858 when modal window is active. (Bug #2152)
3175b12a
AR
6859 (applicationShouldTerminate:): Remove now-unneeded while loop
6860 around NSRunAlertPanel.
6861
6862 * nsmenu.m (popupSession): New file-global variable.
6863 (pop_down_menu): End the popupSession before closing dialog.
6864 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
6865 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
6866 don't query NSApp for events (just sleep instead).
6867
8434d0b8
EZ
68682009-02-07 Eli Zaretskii <eliz@gnu.org>
6869
51d861de
SM
6870 * coding.c (syms_of_coding) <translation-table-for-input>:
6871 Modify doc string to discourage use for character code unification.
8434d0b8 6872
aa82edfd
CY
68732009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6874
6875 * atimer.c (run_timers): Update pending_atimers.
6876
2d283c7c
CY
68772009-02-06 Chong Yidong <cyd@stupidchicken.com>
6878
eb306cab
CY
6879 * image.c (svg_load_image): Fix last change.
6880
2d283c7c
CY
6881 * xfns.c (Fx_create_frame): Signal an error if no font is
6882 found (Bug#2147).
6883
4d8e170e
JB
68842009-02-05 Juanma Barranquero <lekktu@gmail.com>
6885
6886 * character.c (syms_of_character) <script-representative-chars>:
6887 Fix typo in docstring.
6888
c96169a0
AR
68892009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6890
6891 * nsmenu.m (pop_down_menu): New function.
6892 (ns_popup_dialog): Call it on unwind.
6893 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
6894 call timer_check() (Bug#2154).
6895 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
6896 handling_signal is set.
6897 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
6898
31fd7c5c 6899 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
6900
6901 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
6902
6903 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
6904
51d861de
SM
6905 * keyboard.c (poll_for_input_1, handle_async_input):
6906 Set handling_signal under HAVE_NS.
c96169a0 6907
aacd8ba1
GM
69082009-02-04 Glenn Morris <rgm@gnu.org>
6909
6910 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
6911
4cb75c4b
KH
69122009-02-04 Kenichi Handa <handa@m17n.org>
6913
6914 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
6915
6916 * charset.c (Fchar_charset): New optional arg restriction.
6917
6918 * coding.h (coding_system_charset_list): Extern it.
6919
6920 * coding.c (coding_system_charset_list): New function.
6921
6922 * composite.c: Include coding.h and termhooks.h.
6923 (composition_gstring_p): Fix for the terminal case.
6924 (composition_gstring_width): Likewise.
6925 (fill_gstring_body): Likewise.
6926 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
6927 the frame.
6928 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
6929 is within a composition.
867d4bb3 6930 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
6931
6932 * term.c (encode_terminal_code): Fix handling of composition.
6933 (produce_composite_glyph): For static composition, get pixel_width
6934 from struct composition.
6935
826ba17e
AS
69362009-02-02 Andreas Schwab <schwab@suse.de>
6937
6938 * unexelf.c (unexec): Handle unaligned bss offset.
6939
8ad093db
AR
69402009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6941
6942 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
6943 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 6944
8ad093db
AR
6945 * keyboard.c (handle_interrupt): Don't call
6946 quit_throw_to_read_char() under NS.
d0a76a6e 6947
8ad093db
AR
6948 * blockinput.h: Remove NS-specific code.
6949
4d18a7a2
DN
69502009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
6951
db878925
DN
6952 * dispnew.c (window_change_signal): Don't try to get the size of a
6953 suspended tty frame.
6954 * term.c (Fresume_tty): Resize if the size has changed while the
6955 tty was suspended.
6956
4d18a7a2
DN
6957 * alloc.c (mark_stack): Properly conditionalize previous change.
6958
8984df7c
JB
69592009-01-30 Juanma Barranquero <lekktu@gmail.com>
6960
6961 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
6962 * w32term.c (w32_read_socket) [SYNC_INPUT]:
6963 Remove; this code is not used on Windows.
6964
75f4f1ac
EZ
69652009-01-30 Eli Zaretskii <eliz@gnu.org>
6966
6967 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
6968 EOLs that also has stray ^M characters.
6969
07a1e794
JB
69702009-01-30 Juanma Barranquero <lekktu@gmail.com>
6971
6972 * atimer.c (run_timers, alarm_signal_handler):
6973 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
6974 * w32inevt.c (w32_console_read_socket):
6975 * w32term.c (w32_read_socket):
6976 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
6977
a8b11cc9
CY
69782009-01-30 Chong Yidong <cyd@stupidchicken.com>
6979
6980 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
6981 Initialize it as a relative filename pattern.
6982 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
6983 (Fcall_process_region): Simplify temp file creation using
6984 temporary-file-directory.
6985
c279587b
EZ
69862009-01-29 Eli Zaretskii <eliz@gnu.org>
6987
6988 * msdos.c: Rename pending_signals to msdos_pending_signals.
6989 (sig_suspender, sigprocmask): Adjust.
6990
a8fe3242
CY
69912009-01-29 Chong Yidong <cyd@stupidchicken.com>
6992
6993 * keyboard.c (pending_signals): New var.
6994 (poll_for_input, input_available_signal, init_keyboard): Set it.
6995 (process_pending_signals): New function.
6996
6997 * lisp.h (QUIT): Check pending_signals instead of
6998 interrupt_input_pending. Use process_pending_signals.
6999
51d861de 7000 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 7001
51d861de 7002 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
7003
7004 * sysdep.c (emacs_write): Use process_pending_signals.
7005
7006 * xterm.c (XTread_socket): Update pending_signals.
7007
7008 * w32term.c (w32_read_socket): Update pending_signals.
7009
7010 * w32inevt.c (w32_console_read_socket): Update pending_signals.
7011
6570a1c4
KH
70122009-01-29 Kenichi Handa <handa@m17n.org>
7013
7014 * xftfont.c (xftfont_has_char): New function.
7015 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
7016
d72a4afa
AR
70172009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7018
7019 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
7020 under GNUstep.
7021 (ns_query_color): New declaration.
7022
7023 * nsterm.m (ns_confirm_quit): New variable.
7024 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
7025 (EmacsApp-applicationShouldTerminate:): Use it.
7026 (EmacsPrefsController): Let user set it.
7027 (ns_query_color): New function.
7028 (ns_defined_color): Use it.
7029 (ns_initialize): Drop.
7030 (ns_term_init): Add two lines from ns_initialize(), and set
7031 input_interrupt_mode to nil.
7032
7033 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 7034 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 7035
9fe78804
KH
70362009-01-28 Kenichi Handa <handa@m17n.org>
7037
7038 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
7039 (fontset_get_font_group): Remember that no font-group is specified
7040 for C.
9fe78804 7041
fa57de36
CY
70422009-01-27 Chong Yidong <cyd@stupidchicken.com>
7043
930600e9
CY
7044 * fns.c (concat): Check for string overflow (bug#1787).
7045
fa57de36
CY
7046 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
7047 Quadruple undo limits (bug#1501).
7048
7179ce7b
KH
70492009-01-27 Kenichi Handa <handa@m17n.org>
7050
7051 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
7052 directly use GT_Get_Char_index.
7053
7054 * xftfont.c (struct xftfont_info): New member `index'.
7055
7056 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 7057 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 7058
5be8fcc0
CY
70592009-01-26 Kenichi Handa <handa@m17n.org>
7060
7061 * fontset.c (fontset_find_font): Fix handling of non-cons return
7062 value of fontset_get_font_group.
7063 (fontset_font): Revert last change.
7064
19ae3e61
JR
70652009-01-26 Jason Rumney <jasonr@gnu.org>
7066
7067 * w32font.c (w32font_list_internal): Return quickly if registry is
7068 unknown. Simplify final return.
7069 (add_font_entity_to_list): Break complex logic down into more
7070 manageable chunks. Move unknown registry check to
7071 w32font_list_internal.
7072
8612b71a
AR
70732009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
7074
7075 Changes to remove Feval calls from GUI under NS.
7076
d8038940
JB
7077 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
7078 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
7079 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
7080
7081 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
7082 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
7083 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
7084 instead of NON_ASCII_KEYSTROKE_EVENT.
7085 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
7086 (EmacsApp-applicationShouldTerminate:): Query user.
7087 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
7088 instead of Feval.
7089
7090 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
7091
7092 * keyboard.c (kbd_buffer_get_event): Check for it.
7093 (keys_of_keyboard): Define lispy keys for
7094 ns-put/unput-working-text.
7095
7096 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
7097 versions.
7098 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
7099
6288ae55
CY
71002009-01-25 Chong Yidong <cyd@stupidchicken.com>
7101
7102 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 7103 setting current_buffer directly. (Bug#2044)
6288ae55 7104
289e7f8f
CY
71052009-01-24 Chong Yidong <cyd@stupidchicken.com>
7106
5ce87308 7107 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 7108 any work. (Bug#1952, bug#1990).
5ce87308 7109
64cc3cf6 7110 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 7111
b3243e6f
AR
71122009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7113
7114 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
7115 (ns_no_defaults): New declaration.
7116 (main): Use it.
e0d2e69a 7117
d900b2af 7118 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 7119
d900b2af 7120 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 7121
d900b2af
AR
7122 * nsterm.m (ns_no_defaults): New variable.
7123 (ns_initialize): Don't read defaults when ns_no_defaults.
7124 (EmacsView-readSelectionFromPasteboard:)
7125 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 7126 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
7127 (ns_dumpglyphs_stretch): New function.
7128 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 7129 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 7130
e0d2e69a
AR
7131 * nsimage.m (setPixmapData:): Set to ignore image DPI.
7132
3ac71f5d
CY
71332009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
7134
7135 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
7136 call for Sparc64.
7137
3fe53a83
AR
71382009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7139
7140 * nsfns.m:
7141 * nsgui.h:
7142 * nsmenu.m:
7143 * nsselect.m:
7144 * nsterm.h:
7145 * nsterm.m: Remove '23' comments that indicated code added during
7146 update from emacs-20 -> emacs-23.
7147
10f87c6f 71482009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
7149
7150 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 7151 ns_alternate_modifier. (Bug#1217)
a3b53a85 7152
c7cef62d
AR
7153 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
7154 Display all shortcuts, including those w/o super modifier.
7155
575fb8bd
AR
7156 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
7157
918b848b
CY
71582009-01-22 Chong Yidong <cyd@stupidchicken.com>
7159
7160 * fileio.c (Vwrite_region_post_annotation_function)
7161 (Vwrite_region_annotation_buffers): New vars.
7162 (build_annotations_unwind): Just reset
7163 Vwrite_region_annotation_buffers.
7164 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
7165 Call write-region-post-annotation-function.
7166 (build_annotations): Add to Vwrite_region_annotation_buffers if
7167 buffer changes.
7168
a39e2539
AR
71692009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7170
7171 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
7172 Tiger.
51d861de
SM
7173 * nsfns.m (ns_do_applescript):
7174 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 7175
35ed44db
AR
71762009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
7177
7178 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
7179
cbe0b5bf
AR
71802009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7181
7182 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 7183
6049d3a0
AR
7184 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
7185
7186 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
7187 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
7188 handle Ctrl-tab. (Bug#1841)
7189 (ns_get_color): Use unsigned long long for scanned hex string value.
7190 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 7191 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 7192 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 7193 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 7194 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 7195 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 7196 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 7197
d3810c21 7198 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 7199 DPI. (Bug#1316)
d3810c21
AR
7200 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
7201 values in onTiger section.
4c7077c3 7202
e301e634
CY
72032009-01-19 Chong Yidong <cyd@stupidchicken.com>
7204
7f82490b
CY
7205 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
7206 Check return value of font_spec_from_name.
64cc3cf6 7207 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
7208
7209 * font.c (font_spec_from_name): Return Qnil if font name could not
7210 be parsed.
7211 (font_parse_name): Treat a `?' character as part of an XLFD.
7212
e301e634
CY
7213 * fns.c (Fsubstring): Doc fix.
7214
1c0db158
KH
72152009-01-19 Kenichi Handa <handa@m17n.org>
7216
51d861de 7217 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
7218 (ftfont_list): Likewise.
7219
acf20901
JB
72202009-01-18 Juanma Barranquero <lekktu@gmail.com>
7221
fff4e459
JB
7222 * dbusbind.c (Fdbus_register_signal):
7223 * process.c (conv_sockaddr_to_lisp):
7224 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
7225
acf20901
JB
7226 * callproc.c (Fgetenv_internal): Doc fix.
7227
e7abcdfb
CY
72282009-01-16 Chong Yidong <cyd@stupidchicken.com>
7229
7230 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
7231 it is not even used.
7232
b60861e6
GM
72332009-01-16 Glenn Morris <rgm@gnu.org>
7234
7235 * font.c (Ffont_variation_glyphs): Silence compiler.
7236
8db52afe
JB
72372009-01-15 Juanma Barranquero <lekktu@gmail.com>
7238
7239 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
7240 Reported by David Robinow <drobinow@gmail.com>.
7241
4cddb209
KH
72422009-01-15 Kenichi Handa <handa@m17n.org>
7243
51d861de 7244 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 7245
f247f67b
JR
72462009-01-14 Jason Rumney <jasonr@gnu.org>
7247
7248 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 7249 never a fontset. (Bug#1562)
f247f67b 7250
f56a4450
KH
72512009-01-14 Kenichi Handa <handa@m17n.org>
7252
7253 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 7254 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 7255
4e99855e
CY
72562009-01-13 Chong Yidong <cyd@stupidchicken.com>
7257
7258 * font.c (font_clear_prop): If clearing the family, clear the font
7259 width index too.
7260
fff4e459 7261 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 7262
24f01470
JB
72632009-01-12 Juanma Barranquero <lekktu@gmail.com>
7264
7265 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
7266 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
7267 functions, use sizeof.
7268
a41240a3
MR
72692009-01-12 Martin Rudalics <rudalics@gmx.at>
7270
7271 * keyboard.c (read_char): Fix case where last_nonmenu_event
7272 returned a bad value with submenus. (Bug#447)
7273
944636b8
CY
72742009-01-12 Chong Yidong <cyd@stupidchicken.com>
7275
7276 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
7277 family, clear the font width index too.
7278
0dad7c6f
JR
72792009-01-11 Jason Rumney <jasonr@gnu.org>
7280
7281 * keyboard.c (cmd_error_internal): Exit when errors occur before
7282 frame creation and not in daemon mode. (Bug#1836)
7283
7c2363af
CY
72842009-01-10 Chong Yidong <cyd@stupidchicken.com>
7285
7286 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
7287 of a display vector, backtrack.
7288 (try_window_reusing_current_matrix): Check glyph type before
7289 referencing charpos member.
7290
97b1b294
EZ
72912009-01-10 Eli Zaretskii <eliz@gnu.org>
7292
7293 Fix Bug #876:
7294
7295 * coding.c (inhibit_null_byte_detection): New variable.
7296 (detect_coding, detect_coding_system): Don't pay attention to null
7297 bytes if inhibit_null_byte_detection is non-zero.
51d861de 7298 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
7299 <inhibit-iso-escape-detection>: Doc fix.
7300
4624b6e3
JR
73012009-01-09 Jason Rumney <jasonr@gnu.org>
7302
7303 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 7304 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
7305 Only report Unicode Plane 2 fonts as unicode-sip.
7306
323b840c
CY
73072009-01-09 Chong Yidong <cyd@stupidchicken.com>
7308
51d861de
SM
7309 * xfaces.c (Fx_font_family_list): Delete function.
7310 Move compatibility version to faces.el.
323b840c 7311
51d861de 7312 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 7313
eba7400d
MR
73142009-01-09 Martin Rudalics <rudalics@gmx.at>
7315
7316 * frame.c (x_set_frame_parameters): Remember requested value for
7317 fullscreen before it's reset by the parameter handler.
7318
4b09796d
GM
73192009-01-09 Glenn Morris <rgm@gnu.org>
7320
7321 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 7322 (last_command_event): ... and update all users.
4b09796d
GM
7323 (last_input_char): For clarity, rename to...
7324 (last_input_event): ... and update all users.
7325 (last-command-char, last-input-char): Move to subr.el as aliases.
7326 * cmds.c, commands.h: Update for last_command_char rename.
7327
14ccea62
CY
73282009-01-08 Chong Yidong <cyd@stupidchicken.com>
7329
51d861de 7330 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 7331
5f004711
JR
73322009-01-08 Jason Rumney <jasonr@gnu.org>
7333
7334 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
7335 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
7336 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
7337 Don't declare.
fff4e459 7338 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
7339 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
7340
b71f6f73
KH
73412009-01-07 Kenichi Handa <handa@m17n.org>
7342
50b06221 7343 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 7344 remember the coding system used for decoding in
50b06221
KH
7345 coding_system (Bug#1039).
7346
b71f6f73 7347 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 7348 breaking the loop. (Bug#870)
b71f6f73
KH
7349 (decode_coding_utf_16, decode_coding_emacs_mule)
7350 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7351 (decode_coding_charset): Likewise.
7352
56f668f7
MR
73532009-01-05 Martin Rudalics <rudalics@gmx.at>
7354
7355 * frame.c (x_set_frame_parameters): Make sure height (width) get
7356 applied when fullwidth (fullheight) is set. (Bug#1522)
7357
5da9424d
JB
73582009-01-04 Juanma Barranquero <lekktu@gmail.com>
7359
7360 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
7361 (utc_base): Declare as ULONGLONG, not long double.
7362 (convert_time_raw): Delete.
7363 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
7364 (initialize_utc_base): New function.
7365 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
7366 (convert_from_time_t): Use initialize_utc_base; compute result with
7367 64-bit arithmetic.
7368 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
7369
c4605e09
EZ
73702009-01-03 Eli Zaretskii <eliz@gnu.org>
7371
9acef61c 7372 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
7373 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
7374 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
7375 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
7376 [!subprocesses]: Define.
7377 (syms_of_process) [!subprocesses]: Intern and staticpro them.
7378 (Flist_system_processes, Fsystem_process_attributes)
7379 [!subprocesses]: Call list_system_processes and
7380 system_process_attributes instead of returning Qnil.
7381
9acef61c
JB
7382 * dosfns.c (system_process_attributes, list_system_processes):
7383 New functions.
c4605e09
EZ
7384
7385 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
7386
7387 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
7388 Don't use the default (no-op) implementation.
7389
8b7d0a16
JR
73902009-01-03 Jason Rumney <jasonr@gnu.org>
7391
a6d46bc1
JR
7392 * keyboard.c (parse_modifiers_uncached): Wheel events are
7393 clicks (bug#687).
7394
8b7d0a16
JR
7395 * w32term.c (x_query_colors, x_query_color): New functions.
7396
7397 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
7398 (svg_load_image): Cast returned pointers from dynamically loaded
7399 functions. Eliminate W32 specific code.
7400
bfe11752
DN
74012009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
7402
89e2438a
DN
7403 * nsfns.m (x_set_foreground_color, x_set_background_color)
7404 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
7405 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
7406 x_ prefix instead of ns_. Update references.
7407 (syms_of_nsfns): Add a FIXME comment.
7408
7409 * nsterm.m (x_set_cursor_type): New prototype.
7410 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
7411
bfe11752
DN
7412 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
7413 for Solaris instead of incorrectly providing Qutime and Qcutime.
7414
031da700
EZ
74152009-01-02 Eli Zaretskii <eliz@gnu.org>
7416
7417 * w32.c (process_times): Compute sum of utime and stime.
7418 (system_process_attributes): Add Qtime to the alist.
7419
7420 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
7421 and add them to the alist.
7422
7423 * process.c (top level) <Qtime, Qctime>: New variables.
7424 (syms_of_process): staticpro them.
7425 (Fsystem_process_attributes): Add their documentation to the doc
7426 string.
7427
7428 * process.h: Declare Qtime and Qctime.
7429
df23bf08
JR
74302009-01-02 Jason Rumney <jasonr@gnu.org>
7431
9acef61c 7432 * image.c (Qgobject): New symbol.
df23bf08
JR
7433 (syms_of_image): Initialize it.
7434 (init_svg_functions): Load some functions from gobject library.
7435
5bbdf7aa
DN
74362009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
7437
7438 * frame.c (make_terminal_frame): Remove redundant code and useless
7439 block.
7440
63136da6
AS
74412009-01-01 Andreas Schwab <schwab@suse.de>
7442
7443 * process.c (conv_sockaddr_to_lisp): Add workaround for
7444 getsockname bug on BSD.
7445
9ef69046
CY
74462009-01-01 Chong Yidong <cyd@stupidchicken.com>
7447
d6fafbe0
CY
7448 * xfns.c (x_create_tip_frame): Set border width of the X window.
7449
51d861de 7450 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 7451
f9c34147
JR
74522009-01-01 Jason Rumney <jasonr@gnu.org>
7453
9acef61c 7454 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
7455 Don't block input, as per earlier xterm.c changes.
7456
f5497e45
AR
74572008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
7458
7459 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
7460 (ns_appkit_version_int): New function.
7461 (x-server-version): Use ns_appkit_version_int and follow 21+
7462 convention of returning 3 integers.
7463
c19cab20
KH
74642008-12-30 Kenichi Handa <handa@m17n.org>
7465
7466 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
7467 (CHAR_SURROGATE_PAIR_P): New macro.
7468
7469 * font.h (struct font_driver): New member get_variation_glyphs.
7470
9acef61c 7471 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
7472 (Ffont_variation_glyphs): New function.
7473 (syms_of_font): Defsubr it.
7474
7475 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
7476 ftfont_variation_glyphs.
7477 (setup_otf_gstring): New function.
7478 (ftfont_drive_otf): Use it.
7479 (ftfont_shape_by_flt): Handle variation selector.
7480 (ftfont_variation_glyphs): New function.
7481
28cd591f
MR
74822008-12-30 Martin Rudalics <rudalics@gmx.at>
7483
7484 * frame.c (Vemacs_iconified): Remove.
7485
7f714baf
JR
74862008-12-30 Jason Rumney <jasonr@gnu.org>
7487
7488 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 7489 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 7490
9d2d22ab
CY
74912008-12-30 Chong Yidong <cyd@stupidchicken.com>
7492
7493 * indent.c (Fvertical_motion): Don't advance iterator if we have
7494 reseated to the desired position.
7495
7496 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
7497 checking for pos match.
7498
545312c2
KH
74992008-12-30 Kenichi Handa <handa@m17n.org>
7500
1ede3eb6
KH
7501 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
7502 just get the low 8-bit of the code.
7503
545312c2
KH
7504 * font.c (font_intern_prop): Validate str as multibyte.
7505
bd7bbf29
DN
75062008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
7507
31e0750e
DN
7508 * dispextern.h (struct face): Move lface and hash from the middle
7509 of bitfields.
7510
bd7bbf29
DN
7511 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
7512
b5672e7c
DN
75132008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
7514
7515 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
7516 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
7517 instead of intervals.h.
7518
d704470f
AS
75192008-12-26 Andreas Schwab <schwab@suse.de>
7520
7521 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
7522 cons.
7523
54b33868
MR
75242008-12-26 Martin Rudalics <rudalics@gmx.at>
7525
7526 * textprop.c (Qminibuffer_prompt): New variable.
7527 (syms_of_textprop): Initialize it.
7528 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
7529 in minibuffer-prompt face. (Bug#1662)
7530
40b615d6
JR
75312008-12-25 Jason Rumney <jasonr@gnu.org>
7532
7533 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
7534
baae5c2d
JR
75352008-12-24 Jason Rumney <jasonr@gnu.org>
7536
7537 * ralloc.c (r_alloc_reset_variable): New function.
7538
7539 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 7540 record of what points where. (Bug#716)
baae5c2d 7541
a9051c88
DN
75422008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
7543
7544 * minibuf.c (read_minibuf): Follow the non-interactive case when
7545 running as a daemon, before detaching.
7546
8b146312
AS
75472008-12-22 Andreas Schwab <schwab@suse.de>
7548
7549 * buffer.c (init_buffer): Use realloc instead of xrealloc.
7550 * gtkutil.c (free_widget_value): Use xfree instead of free.
7551
56f2de10
MR
75522008-12-22 Martin Rudalics <rudalics@gmx.at>
7553
7554 * frame.c (delete_frame): New function derived from
7555 Fdelete_frame to handle Qnoelisp value for FORCE argument.
7556 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
7557 (Fdelete_frame): Call delete_frame. Remove line from doc-string
7558 saying that FORCE non-nil doesn't run `delete-frame-functions'.
7559 * frame.h: Extern delete_frame.
7560 * window.c (window_loop):
7561 * terminal.c (delete_terminal):
7562 * xterm.c (x_connection_closed):
7563 * xfns.c (Fx_hide_tip):
9acef61c 7564 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 7565
1fc200d6
JR
75662008-12-21 Jason Rumney <jasonr@gnu.org>
7567
7568 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
7569 when character maps to .notdef character.
7570
5e252df2
SM
75712008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
7572
7573 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
7574
99b72cc4
JR
75752008-12-20 Jason Rumney <jasonr@gnu.org>
7576
7577 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 7578 a graphical frame on Windows. (Bug#1325)
99b72cc4 7579
acc49a52
JD
75802008-12-20 Jan Djärv <jan.h.d@swipnet.se>
7581
7582 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
7583
6ea15123
CY
75842008-12-20 Chong Yidong <cyd@stupidchicken.com>
7585
7586 * minibuf.c (Fread_buffer): Doc fix.
7587
b2dab6c8
JR
75882008-12-20 Jason Rumney <jasonr@gnu.org>
7589
54ea0c87 7590 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 7591 server name in UNC paths. (Bug#719)
54ea0c87 7592
b2dab6c8 7593 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 7594 charbuf. (Bug#1035)
b2dab6c8 7595
6d1921be
DN
75962008-12-19 Daniel Engeler <engeler@gmail.com>
7597
7598 * sysdep.c (serial_configure): Fix typo.
7599
53934c98
DN
76002008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
7601
7602 * sysdep.c: Include alloca.h.
f4f634e8
DN
7603 (system_process_attributes): Add implementation for Solaris.
7604
7605 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 7606
06e111a6
DN
76072008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
7608
7609 Reorganize implementation of Flist_system_processes and
7610 Fsystem_process_attributes. No functional changes.
7611 * process.c: Don't #include pwd.h, grp.h and limits.h.
7612 (Flist_system_processes): Just call list_system_processes.
7613 (Fsystem_process_attributes): Just call system_process_attributes.
7614 (procfs_list_system_processes, time_from_jiffies)
7615 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
7616 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
7617
7618 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
7619 (list_system_processes): Rename from
7620 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
7621 Provide a do nothing implementation.
7622 (system_process_attributes): Rename from
7623 procfs_list_system_processes.
7624 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 7625 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
7626
7627 * w32.c (list_system_processes): Rename from
7628 w32_list_system_processes.
7629 (system_process_attributes): Rename from
7630 w32_system_process_attributes.
7631
7632 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
7633
7634 * process.h (w32_list_system_processes)
7635 (w32_system_process_attributes): Remove.
362654a6
JB
7636 (list_system_processes, system_process_attributes):
7637 New prototypes.
06e111a6 7638
6a705b23
KH
76392008-12-19 Kenichi Handa <handa@m17n.org>
7640
7641 * xfont.c (xfont_decode_coding_xlfd): New function.
7642 (xfont_encode_coding_xlfd): New function.
7643 (xfont_list_pattern): Decode XLFD by iso-8859-1.
7644 (xfont_list): Decode and encode XLFD by iso-8859-1.
7645 (xfont_match): Likewise.
7646 (xfont_list_family): Likewise.
7647 (xfont_open): Likewise.
7648
d66c0241 7649 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
7650 names are utf-8.
7651
d66c0241 7652 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
7653 names are utf-8.
7654
5a130941
JD
76552008-12-18 Jan Djärv <jan.h.d@swipnet.se>
7656
7657 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
7658 changed.
bfd20325
JD
7659 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
7660 clicked on a detached tool bar button.
5a130941 7661
fd95644b
DN
76622008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
7663
7664 * emacs.c (main): Print and error and exit when no data is read
7665 from the pipe.
7666
e6eee6ae
JR
76672008-12-17 Jason Rumney <jasonr@gnu.org>
7668
7669 * w32font.c (w32font_has_char): Always return -1.
7670
a35dd56b
KH
76712008-12-16 Kenichi Handa <handa@m17n.org>
7672
7673 * font.c (font_open_entity): Fix previous change.
7674
0e3635c2
DN
76752008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
7676
7677 * process.c: Include <limits.h>.
7678
d4835507 76792008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
7680
7681 * font.c (font_update_drivers): Fix mistake in reconstructing the
7682 driver list.
7683
76842008-12-16 Chong Yidong <cyd@stupidchicken.com>
7685
7686 * font.c (font_clear_cache): Fix format of font cache data.
7687
e2cbc401
CY
76882008-12-15 Chong Yidong <cyd@stupidchicken.com>
7689
7690 * xftfont.c (xftfont_open): Free Xft font pattern if
7691 XftFontOpenPattern fails.
7692
7693 * xterm.c (x_free_frame_resources): Remove extraneous call to
7694 free_frame_faces.
7695
b131d535
CY
76962008-12-13 Chong Yidong <cyd@stupidchicken.com>
7697
7698 * xterm.c (x_delete_display): Move xim_close_dpy call to
7699 x_delete_terminal.
7700 (x_delete_terminal): Call xim_close_dpy.
7701
e6df5336
JR
77022008-12-13 Jason Rumney <jasonr@gnu.org>
7703
7704 * w32font.c (intern_font_name): New function.
7705 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
7706 (w32font_open_internal, Fx_select_font): Decode font name.
7707 (fill_in_logfont, list_all_matching_fonts): Encode font name.
7708
7709 * w32font.h (intern_font_name): Declare new function.
7710
7711 * w32uniscribe.c (add_opentype_font_name_to_list):
7712 Use intern_font_name.
7713
20d68145
CY
77142008-12-13 Chong Yidong <cyd@stupidchicken.com>
7715
9f2554de
CY
7716 * frame.c (Fdelete_frame): Call free_font_driver_list.
7717
3d9bec9a
CY
7718 * font.c (free_font_driver_list): Implement missing function.
7719
20d68145
CY
7720 * w32term.c (w32_term_init): Don't initialize the image cache
7721 here; it will be done in init_frame_faces.
7722
7723 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
7724 (struct x_display_info): Remove unused member null_pixel. New
7725 member xim_callback_data.
7726
7727 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
7728 (xim_initialize): Save pointer to callback function data.
7729 (xim_close_dpy): Free callback function data. Call XCloseIM,
7730 reverting 2008-11-04 change by David Smith.
7731 (x_term_init): Don't initialize the image cache here; it will be
7732 done in init_frame_faces. Remove ancient "null_pixel" cruft.
7733 (x_delete_display): Free x_dnd_atoms member.
7734
96f9306b
KH
77352008-12-13 Kenichi Handa <handa@m17n.org>
7736
6dec9044
JB
7737 * font.c (font_rescale_ratio): Moved from xfaces.c.
7738 Argument type changed. Handle a font-spec too.
96f9306b 7739 (font_score): Check Vface_font_rescale_alist.
6dec9044 7740 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
7741
7742 * xfaces.c (font_rescale_ratio): Moved to font.c.
7743
8d5b4964
CY
77442008-12-13 Chong Yidong <cyd@stupidchicken.com>
7745
7746 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
7747
e6df5336
JR
77482008-12-12 Jason Rumney <jasonr@gnu.org>
7749
7750 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
7751 Vwindow_system_version to the real w32 major version.
7752
97c6058a
DN
77532008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
7754
7755 * term.c (init_tty): Move setting the terminal name before the
7756 potential user: maybe_fatal.
7757
ec4e88d7
CY
77582008-12-11 Chong Yidong <cyd@stupidchicken.com>
7759
d4835507
JB
7760 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
7761 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 7762
b4233ec9
JR
77632008-12-11 Jason Rumney <jasonr@gnu.org>
7764
8ec71e23 7765 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 7766 SYMBOL_CHARSET. (Bug#547)
8ec71e23 7767
b4233ec9 7768 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 7769 size for surrogates. (Bug#1096, bug#872)
b4233ec9 7770
011a0143
JB
77712008-12-11 Juanma Barranquero <lekktu@gmail.com>
7772
7773 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
7774
3c309f34
JB
77752008-12-11 Juanma Barranquero <lekktu@gmail.com>
7776
7777 * process.c (Fsystem_process_attributes, syms_of_process):
7778 Fix typo in name of Ssystem_process_attributes.
7779 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
7780
fedc6ab5
JB
77812008-12-11 Juanma Barranquero <lekktu@gmail.com>
7782
7783 * syntax.c (Fmodify_syntax_entry): Doc fix.
7784
ba3de0e8
JB
77852008-12-10 Juanma Barranquero <lekktu@gmail.com>
7786
7787 * font.c (Ffont_spec): Move usage to end of docstring.
7788
174f1c74
JR
77892008-12-10 Jason Rumney <jasonr@gnu.org>
7790
7791 * w32font.c (Qcham): New symbol.
7792 (font_supported_scripts): Add cham, and comments for other new
7793 scripts in bitfield from OpenType spec.
9d32f818
JR
7794 (add_font_entity_to_list): Limit unicode-sip fonts to those that
7795 contain characters beyond the bmp.
174f1c74 7796
7b649478
KH
77972008-12-10 Kenichi Handa <handa@m17n.org>
7798
7799 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 7800 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
7801 Qunicode_sip.
7802
2133e2d1
JB
78032008-12-10 Juanma Barranquero <lekktu@gmail.com>
7804
7805 * coding.c (QCdefault_char): Rename from QCdefalut_char.
7806 (Fcoding_system_put): Use QCdefault_char.
7807 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
7808
9af886ee
CY
78092008-12-09 Chong Yidong <cyd@stupidchicken.com>
7810
74d819eb
CY
7811 * xftfont.c (syms_of_xftfont): Fix typo.
7812
4ccfa1c0 7813 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 7814
7c19d3ae
DN
78152008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
7816
7817 * emacs.c (main): Close daemon_pipe on exec.
7818
567826bb
CY
78192008-12-08 Chong Yidong <cyd@stupidchicken.com>
7820
7821 * termchar.h (struct tty): New members termcap_term_buffer and
7822 termcap_strings_buffer.
7823
7824 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 7825 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
7826 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
7827 All callers changed.
7828 (init_tty): Store termcap data and string buffers in new struct
7829 tty members termcap_term_buffer and termcap_strings_buffer.
7830 (delete_tty): Free them.
4ccfa1c0 7831 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 7832
aa96c42b
SZ
78332008-12-07 Seiji Zenitani <zenitani@mac.com>
7834
7835 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 7836 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 7837
b7e1d896
CY
78382008-12-06 Chong Yidong <cyd@stupidchicken.com>
7839
7840 * coding.c (make_conversion_work_buffer): Disable buffer
7841 modification hooks in the work buffer.
7842
b5ec91a5
EZ
78432008-12-05 Eli Zaretskii <eliz@gnu.org>
7844
7845 * process.c (procfs_system_process_attributes): If `nread' has a
7846 negative value, assign zero to it.
7847
a5d2a52b
CY
78482008-12-05 Chong Yidong <cyd@stupidchicken.com>
7849
68c5540b 7850 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 7851
7bf1bb21
KH
78522008-12-05 Kenichi Handa <handa@m17n.org>
7853
7854 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
7855 second character is a combining character.
7856
2fdc7d00
EZ
78572008-12-05 Eli Zaretskii <eliz@gnu.org>
7858
7859 * process.c (procfs_system_process_attributes): Don't use cmd,
7860 cmdsize, and q without initializing them first.
7861
bf6bfba8
JR
78622008-12-04 Jason Rumney <jasonr@gnu.org>
7863
7864 * w32font.c (w32font_draw): Initialize orig_clip before getting
7865 it, and delete it when finished.
7866
a3b1a468
DN
78672008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
7868
7869 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
7870 case when running as a daemon before detaching.
7871
8b8be8eb
JB
78722008-12-03 Juanma Barranquero <lekktu@gmail.com>
7873
805f2638 7874 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 7875
b1bde622
KH
78762008-12-03 Kenichi Handa <handa@m17n.org>
7877
e500c47d
KH
7878 * font.c (font_at): Set `multibyte' at first.
7879
ca516334
KH
7880 * coding.c (decode_coding_charset): Check type of an element of
7881 vector VALIDS.
7bf1bb21 7882 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 7883
4ccfa1c0 7884 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
7885 (font_for_char): Likewise.
7886
1e5ecd37
CY
78872008-12-03 Chong Yidong <cyd@stupidchicken.com>
7888
d5b01609 7889 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
7890 (font_update_lface): Handle fonts with corrupted size specs,
7891 i.e. non-int and non-float.
d5b01609 7892
11e3a6e4 7893 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 7894 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 7895 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 7896
ab06788b
CY
7897 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
7898
1e5ecd37 7899 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 7900 underline_minimum_offset for underline position.
1e5ecd37 7901
63c125ab
DN
79022008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
7903
7904 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
7905
7906 * character.c (c_string_width): Specify the type for LEN.
7907
3a8406e1
KH
79082008-12-03 Kenichi Handa <handa@m17n.org>
7909
4ccfa1c0 7910 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 7911 (decode_coding_utf_8): Likewise.
4ccfa1c0 7912 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 7913 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 7914
651df7d9
CY
79152008-12-02 Chong Yidong <cyd@stupidchicken.com>
7916
7917 * keyboard.c (make_lispy_position): Only use PT if the selected
7918 window is current.
7919
1f625c6c
AS
79202008-12-02 Andreas Schwab <schwab@suse.de>
7921
f7741ce9
AS
7922 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
7923
1f625c6c
AS
7924 * doprnt.c (doprnt1): Fix size of charbuf.
7925
92bc2678
CY
79262008-12-02 Chong Yidong <cyd@stupidchicken.com>
7927
7928 * keyboard.c (timer_check): Revert last change.
7929
93b9e8cc
JB
79302008-12-02 Juanma Barranquero <lekktu@gmail.com>
7931
7932 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
7933
fd7a37d5
JB
79342008-12-01 Juanma Barranquero <lekktu@gmail.com>
7935
7936 * makefile.w32-in: Update dependencies.
7937 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
7938
c115043b
AS
79392008-12-01 Andreas Schwab <schwab@suse.de>
7940
7941 * font.c (register_font_driver): Use xmalloc.
7942 (font_put_frame_data): Likewise.
7943
f5668d2a
CY
79442008-12-01 Chong Yidong <cyd@stupidchicken.com>
7945
860d96be
CY
7946 * xfaces.c (realize_x_face): Make abort condition clearer.
7947
f5668d2a
CY
7948 * gtkutil.c (update_frame_tool_bar): Initialize variable.
7949
379c17e7
CY
79502008-11-30 Chong Yidong <cyd@stupidchicken.com>
7951
7952 * keyboard.c (timer_check): After a timer runs, ensure that the
7953 selected window's buffer is current.
7954
35f36d65
JB
79552008-11-30 Juanma Barranquero <lekktu@gmail.com>
7956
f952c61c
JB
7957 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
7958 It was accidentally restored by the Unicode merge.
7959
35f36d65
JB
7960 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
7961
b23077df
JB
79622008-11-29 Juanma Barranquero <lekktu@gmail.com>
7963
7964 * w32proc.c: Include "coding.h".
7965 (Fw32_short_file_name): Encode filename passed to Windows API.
7966 (Fw32_long_file_name): Encode filename passed to Windows API and
7967 decode back the result. (Bug#1433)
7968
b8ebe9dd
KH
79692008-11-29 Kenichi Handa <handa@m17n.org>
7970
8cc53f96
KH
7971 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
7972 not before accessing it.
7973
b8ebe9dd
KH
7974 * charset.c (Fdefine_charset_internal): After calculating
7975 min_char, max_char, and fastmap, copy the charset structure again.
7976 (encode_char): Fix the previous change.
7977
59bc82c0
SZ
79782008-11-28 Seiji Zenitani <zenitani@mac.com>
7979
7980 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
7981
7982 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
7983
7984 * nsterm.m (x_set_frame_alpha): New function.
7985
32247e3d
EZ
79862008-11-27 Eli Zaretskii <eliz@gnu.org>
7987
7988 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
7989
b003e5ff
JB
79902008-11-27 Juanma Barranquero <lekktu@gmail.com>
7991
7992 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
7993 pointer to check_face_name.
7994
708550f5
KH
79952008-11-27 Kenichi Handa <handa@m17n.org>
7996
7997 * category.h (SET_CATEGORY_SET): Call set_category_set.
7998 (set_category_set): Extern it.
7999
8000 * category.c (hash_get_category_set): New function.
8001 (Fmodify_category_entry): Adjusted for the change of
8002 char_table_ref_and_range. Call hash_get_category_set to get a
8003 category set to store in the table.
8004
8005 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
8006 Funify_charset.
8007
2ae37cf0 8008 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
8009 (DECODE_CHAR): Check if the decoder vector is ready.
8010 (ENCODE_CHAR): Check if the encoder char-table is ready.
8011 (maybe_unify_char): Extern it.
8012
8013 * charset.c (Vchar_unified_charset_table): Delete it.
8014 (inhibit_load_charset_map): New variable.
8015 (temp_charset_work): New variable.
8016 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
8017 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
8018 New macros.
8019 (load_charset_map): Meaning of control_flag changed. If
8020 inhibit_load_charset_map is nonzero, setup a table in
8021 temp_charset_work.
8022 (load_charset): New argument control_flag.
8023 (map_charset_for_dump): New function.
8024 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
8025 map_charset_for_dump.
8026 (Fdefine_charset_internal): If the charset method is MAP, load
8027 mapping tables by calling load_charset.
8028 (Funify_charset): Don't load a mapping table but directly set
8029 Vchar_unify_table.
8030 (maybe_unify_char): New function.
8031 (decode_char): Don't handle the deleted method MAP_DEFERRED.
8032 Handle the case of inhibit_load_charset_map being nonzero.
8033 (encode_char): Don't handle the deleted method MAP_DEFERRED.
8034 Handle the case of inhibit_load_charset_map being nonzero.
8035 (Fclear_charset_maps): Just free temp_charset_work.
8036 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
8037 variable.
8038
8039 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
8040 change of char_table_ref_and_range.
8041 (char_table_ref_and_range): Change the meaning of argument FROM
8042 and TO. Now the caller must provide initial values for *FROM
8043 and *TO.
8044
8045 * fontset.c (fontset_add): Adjusted for the change of
8046 char_table_ref_and_range.
8047 (fontset_get_font_group): Likewise.
8048 (Ffontset_info): Likewise.
8049
8050 * keymap.c (describe_vector): Adjusted for the change of
8051 char_table_ref_and_range. For char-table, put boundary between
8052 non-ASCII and 8-bit characters.
8053
8054 * print.c (print_object): For bool-vector, delete unnecessary
8055 check of ASCII_BYTE_P.
8056
9196133b
JR
80572008-11-26 Jason Rumney <jasonr@gnu.org>
8058
8059 * w32font.c (w32font_open_internal): Don't include external
9acef61c 8060 leading in font height. (Bug#879)
9196133b 8061
9f688acf
GM
80622008-11-26 Glenn Morris <rgm@gnu.org>
8063
8064 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
8065 redefinition with ifdef. (Bug#1383)
8066
90d19aff
AR
80672008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8068
8069 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
8070
4ccfa1c0 80712008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
8072
8073 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
8074 New EmacsView methods.
8075 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
8076 Fixes bug #1048,1357,1414.
8077
80782008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8079
8080 Fix bug #1362.
8081 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
8082 is not an indexed color.
8083 * nsterm.m (free_indexed_color): Add argument checking.
8084 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
8085
e7d5ecb3
CY
80862008-11-24 Chong Yidong <cyd@stupidchicken.com>
8087
8088 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
8089 Document confirm-after-completion value for
8090 minibuffer-completion-confirm.
8091
c285743c
JR
80922008-11-24 Jason Rumney <jasonr@gnu.org>
8093
8094 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
8095 warning.
8096
b0857706
JR
80972008-11-23 Jason Rumney <jasonr@gnu.org>
8098
8099 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
8100 restored before returning.
8101
8102 * w32font.c (check_face_name): New function.
8103 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 8104 fonts. (Bug#642)
b0857706 8105
ee50ff07
MR
81062008-11-22 Martin Rudalics <rudalics@gmx.at>
8107
8108 * buffer.c (Fswitch_to_buffer): Reword and mention new option
8109 confirm-nonexistent-file-or-buffer in doc-string.
8110
b8ff72fa
SM
81112008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
8112
8113 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
8114 Fix copy/paste typo. Add checks.
8115
cee53ed4
KH
81162008-11-21 Kenichi Handa <handa@m17n.org>
8117
8118 * coding.c (detect_coding_iso_2022): Reject invalid composition
8119 sequence.
8120 (DECODE_COMPOSITION_START): If the current source is the last
8121 block, and the current composition doesn't end, regard this
8122 sequence as invalid.
8123 (decode_coding_iso_2022): Handle invalid composition sequence.
8124
f6ef1e65
MR
81252008-11-20 Martin Rudalics <rudalics@gmx.at>
8126
8127 * window.c (coordinates_in_window): Don't return
8128 ON_VERTICAL_BORDER for the rightmost position of a mode/header
8129 line when the window is not the rightmost one. (Bug#1372)
8130
e08b1705
MR
81312008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
8132
8133 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
8134
ad98e89f
EZ
81352008-11-15 Eli Zaretskii <eliz@gnu.org>
8136
8137 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
8138 and bright_bg if noninteractive is non-zero.
8139
fb098a4b
CY
81402008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8141
8142 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
8143 x_draw_glyph_string_background.
8144
8145 * w32term.c (x_draw_glyph_string): Likewise.
8146
ce952b6e
CY
81472008-11-15 Chong Yidong <cyd@stupidchicken.com>
8148
8149 * xterm.c (x_draw_glyph_string): Stop drawing the background of
8150 the next glyph string once past the overhang width.
8151
8152 * nsterm.m (ns_draw_glyph_string): Likewise.
8153
8154 * w32term.c (x_draw_glyph_string): Likewise.
8155
26ea7079
CY
81562008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
8157
8158 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
8159 double file close.
8160
1c33c906
MR
81612008-11-14 Martin Rudalics <rudalics@gmx.at>
8162
8163 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
8164 dedicated status of window before attempting to display another
8165 buffer in it.
8166
8fc29035
JB
81672008-11-14 Juanma Barranquero <lekktu@gmail.com>
8168
8169 * msdos.c (Fmsdos_long_file_names):
8170 (syms_of_msdos) <dos-unsupported-char-glyph>:
8171 * dosfns.c (Fint86): Fix typos in docstrings.
8172
55fb4286
EZ
81732008-11-14 Eli Zaretskii <eliz@gnu.org>
8174
8175 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
8176
3fda0315
KY
81772008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
8178
8179 * puresize.h (BASE_PURESIZE): Increase to 1260000.
8180
7e849c17
CY
81812008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
8182
8183 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
8184
8185 * frame.h: Negative alpha means "don't touch".
8186
8187 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
8188
8189 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
8190
b9fd67bd
DN
81912008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
8192
8193 * hftctl.c:
8194 * chpdef.h:
8195 * acldef.h: Remove files used only for systems no longer supported.
8196
8197 * Makefile.in: Fix .o alphabetical ordering.
8198 (hftctl.o): Remove dependency, file removed.
8199 (keymap.o, print.o): Depend on charset.h.
8200
d5998e03
KH
82012008-11-10 Kenichi Handa <handa@m17n.org>
8202
2ae37cf0 8203 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 8204
be70e183
CY
82052008-11-08 Chong Yidong <cyd@stupidchicken.com>
8206
8207 * dired.c (file_name_completion): If completion_ignore_case is
8208 enabled, ignore case when checking completion-regexp-list.
8209
7cf94eac
EZ
82102008-11-08 Eli Zaretskii <eliz@gnu.org>
8211
8212 * vm-limit.c (get_lim_data): Fix last change.
8213
ee107a89
KH
82142008-11-08 Kenichi Handa <handa@m17n.org>
8215
8216 * character.c (Fget_byte): New function.
8217 (syms_of_character): Defsubr Fget_byte.
8218
5fd15622
CY
82192008-11-07 Chong Yidong <cyd@stupidchicken.com>
8220
8221 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
8222 cursor position is valid after scrolling.
8223
13d62fad
JB
82242008-11-06 Juanma Barranquero <lekktu@gmail.com>
8225
8226 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
8227
a1dd2936
GM
82282008-11-06 Glenn Morris <rgm@gnu.org>
8229
8230 * xterm.c (handle_one_xevent): Don't let popup menus cause
8231 mouse-autoselect-window related window switching. (Bug#1261)
8232
860cd236
CY
82332008-11-04 David Smith <davidsmith@acm.org> (tiny change)
8234
8235 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
8236
653a3150
AS
82372008-11-04 Andreas Schwab <schwab@suse.de>
8238
8239 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
8240
870f5cac
CY
82412008-11-03 Chong Yidong <cyd@stupidchicken.com>
8242
8243 * xfns.c (Fx_wm_set_size_hint): New function.
8244
1e02f3cb
MR
82452008-11-03 Martin Rudalics <rudalics@gmx.at>
8246
8247 * textprop.c (Fprevious_single_char_property_change): Return 0
8248 when there's no change in a string. (Bug#1301)
8249
e630dfc6
MR
82502008-11-02 Martin Rudalics <rudalics@gmx.at>
8251
8252 * frame.c (do_switch_frame): New argument NORECORD passed to
8253 Fselect_window.
8254 (Fselect_frame): New argument NORECORD passed to
8255 do_switch_frame.
8256 (Fset_frame_selected_window): New argument NORECORD passed to
8257 Fselect_frame.
8258 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
8259 in call of do_switch_frame.
8260 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
8261 Handle NORECORD argument in call of Fselect_frame.
8262 * lisp.h (do_switch_frame, Fselect_frame)
8263 (Fset_frame_selected_window): Adjust declarations.
8264 * window.c (select_frame_norecord): New function.
8265 (run_window_configuration_change_hook): Use it and call
8266 Fselect_frame with NORECORD set.
8267 (Fselect_window): Pass NORECORD to Fselect_frame.
8268 (Fset_window_configuration): Handle NORECORD argument in call of
8269 do_switch_frame.
8270 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
8271 Fset_frame_selected_window.
8272 * keyboard.c (command_loop_1): Handle NORECORD in call of
8273 Fselect_frame (currently ifdefd).
8274
9020b223
GM
82752008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
8276
8277 * emacs.c (USAGE2): Untabify.
8278
793ffee8
SM
82792008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
8280
8281 * composite.c (fill_gstring_header): Fix copy/paste typo.
8282
ab6d1131
MR
82832008-10-31 Martin Rudalics <rudalics@gmx.at>
8284
8285 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
8286 (Fother_window): Rename argument and rewrite doc-string.
8287 (select_window_norecord): Fix return value. (Bug#1276)
8288
601a9cf1
JB
82892008-10-30 Juanma Barranquero <lekktu@gmail.com>
8290
8291 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
8292 new frames overriding foreground for tooltips. Based on similar patch
8293 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
8294
813b0652
CY
82952008-10-29 Chong Yidong <cyd@stupidchicken.com>
8296
8297 * emacs.c (Fdaemon_initialized): Initialize nfd.
8298
4414f58f
MR
82992008-10-29 Martin Rudalics <rudalics@gmx.at>
8300
8301 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
8302 (Fwindow_text_height): Clarify doc-strings.
8303 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
8304 doc-string of window-scroll-functions.
8305
ecdcaa09
RS
83062008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
8307
8308 * category.c (syms_of_category): Fix typo in docstring.
8309
23fe745a
JB
83102008-10-28 Juanma Barranquero <lekktu@gmail.com>
8311
8312 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
8313 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
8314 Fix typos in docstrings.
8315
ff808935
DN
83162008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
8317
8318 * emacs.c (daemon_pipe): Make non-static.
8319 (IS_DAEMON): Move definition ...
8320 * lisp.h (IS_DAEMON): ... here.
8321 (daemon_pipe): Declare.
8322 (is_daemon): Remove.
8323 * dispnew.c (init_display): Use IS_DAEMON.
8324
fc012771
SM
83252008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
8326
8327 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
8328 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
8329
8330 * emacs.c (is_daemon): Remove.
8331 (main): Don't set is_daemon.
8332 (IS_DAEMON): New macro.
8333 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 8334 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
8335 parent exits.
8336 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
8337
d8bdbe6f
CY
83382008-10-27 Chong Yidong <cyd@stupidchicken.com>
8339
d1a072bf
CY
8340 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
8341 over-sized glyph, draw it with the default glyph width.
8342
e2e325aa
CY
8343 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
8344 glyph, draw it with the default glyph width.
8345
8346 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
8347 glyph, draw it with the default glyph width.
8348
d8bdbe6f
CY
8349 * xdisp.c (try_scrolling): When computing the distance from the
8350 scroll margin to PT, try moving some distance past the window
8351 bottom before giving up.
8352
7bfac547
MR
83532008-10-27 Martin Rudalics <rudalics@gmx.at>
8354
8355 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
8356 (Fset_window_buffer): Explain in doc-string that a window can be
8357 "strongly" dedicated to its buffer.
8358
4ff029f6
DN
83592008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
8360
8361 * emacs.c (daemon_name): New variable.
8362 (main): Deal with --daemon=SERVER_NAME.
8363 (Fdaemonp): Return a name if one was passed to --daemon.
8364
5790ef40
DN
83652008-10-26 Romain Francoise <romain@orebokech.com>
8366
f9bd0df9 8367 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
8368 (main): Create a pipe before forking, make the parent exit only after
8369 the child has closed its end of the pipe. Move closing the
8370 descriptors ...
8371 (Fdaemon_initialized): ... here. New function.
8372
f5385255
SM
83732008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
8374
4d632321
SM
8375 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
8376 the previous unoptimized table.
8377
f5385255
SM
8378 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
8379 the distinction between non-nil and non-t value of `dedicated'.
8380
6c56a0f3
CY
83812008-10-25 Chong Yidong <cyd@stupidchicken.com>
8382
8383 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 8384 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 8385
fec89261
MR
83862008-10-25 Martin Rudalics <rudalics@gmx.at>
8387
8388 * window.c (Fget_buffer_window, Fdelete_windows_on)
8389 (Freplace_buffer_in_windows): Make buffer argument optional and
8390 rename to buffer_or_name.
8391
34fcddd0
CY
83922008-10-24 Chong Yidong <cyd@stupidchicken.com>
8393
f5385255
SM
8394 * xdisp.c (handle_single_display_spec, handle_display_prop):
8395 Undo 2005-05-16 change.
34fcddd0
CY
8396 (handle_stop): Pop iterator if it's loaded with an empty string.
8397 (get_overlay_strings_1): Don't save iterator if it's loaded with
8398 an empty string (bug#1201).
8399
064766f2
KH
84002008-10-24 Kenichi Handa <handa@m17n.org>
8401
8402 * ftfont.c (ftfont_otf_features): Fix previous change.
8403 (ftfont_otf_capability): Check FeatureList.FeatureCount before
8404 calling ftfont_otf_features.
8405
f9bd0df9 84062008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
8407
8408 * font.c (font_match_p): Fix for the case that a vector of
8409 characters is in script-representative-chars.
8410
1dae9197
MA
84112008-10-24 Michael Albinus <michael.albinus@gmx.de>
8412
8413 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 8414 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
8415 (xd_read_queued_messages): Catch Qdbus_error from the macros.
8416 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 8417 macro. (Bug#1186)
1dae9197 8418
f9bd0df9 84192008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
8420
8421 * s/sol2-10.h: New file.
8422
878a4584
JB
84232008-10-23 Juanma Barranquero <lekktu@gmail.com>
8424
8425 * xdisp.c (fill_glyph_string): Fix typo in source (though the
8426 poor beast has survived 9+ years and the jump from xterm.c!).
8427
cd265ca6
MR
84282008-10-23 Martin Rudalics <rudalics@gmx.at>
8429
8430 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
8431 Reword doc-string.
f5385255 8432 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 8433
472a4dc9
JB
84342008-10-23 Juanma Barranquero <lekktu@gmail.com>
8435
8436 * character.c (syms_of_character) <script-representative-chars>:
8437 <unicode-category-table>: Doc fixes.
8438
159bd5a2
NF
84392008-10-23 Noah Friedman <friedman@splode.com>
8440
8441 * coding.c (make_conversion_work_buffer): Check that
8442 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
8443 Fget_buffer_create.
8444
49f9c344
KH
84452008-10-23 Kenichi Handa <handa@m17n.org>
8446
8447 * font.c (font_add_log): Check the values of extra properties.
8448
12bb3111
MR
84492008-10-22 Martin Rudalics <rudalics@gmx.at>
8450
8451 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
8452 Reword doc-string.
8453 (Fset_window_parameter): Use NILP.
8454 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 8455 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 8456
bbeb4e99
JB
84572008-10-22 Juanma Barranquero <lekktu@gmail.com>
8458
8459 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
8460
84612008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
8462
8463 * nsfns.m (ns_appkit_version): New function.
8464 (x-server-version): Use it.
8465 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
8466 (x-server-vendor): Don't check_ns().
8467
8468 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
8469
a9b555d3
JB
84702008-10-22 Juanma Barranquero <lekktu@gmail.com>
8471
8472 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
8473 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
8474
4626499f
KH
84752008-10-22 Kenichi Handa <handa@m17n.org>
8476
e3681952
KH
8477 * syntax.c (scan_words): Call word_boundary_p instead of comparing
8478 scripts.
8479
4626499f
KH
8480 * category.c (word_boundary_p): Check scripts instead of charset.
8481 Handle nil value in word-separating-categories and
8482 word-combining-categories.
8483 (syms_of_category): Fix docstrings of word-separating-categories
8484 and word-combining-categories.
8485
1560f91a
EZ
84862008-10-21 Eli Zaretskii <eliz@gnu.org>
8487
8488 * coding.c (Fencode_coding_region, Fdecode_coding_region)
8489 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
8490
f4668441
MR
84912008-10-21 Martin Rudalics <rudalics@gmx.at>
8492
8493 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
8494 Rename arg "buffer" to "buffer_or_name".
8495 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
8496 it optional.
8497 (no_switch_window): Remove since the return value is not used.
a9b555d3 8498 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
8499 Consider window as dedicated when Fwindow_dedicated_p returns a
8500 non-nil value.
8501 * lisp.h: Remove prototype for no_switch_window.
8502
fd75ddb2
JD
85032008-10-21 Jan Djärv <jan.h.d@swipnet.se>
8504
8505 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 8506 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 8507
07295713
KH
85082008-10-21 Kenichi Handa <handa@m17n.org>
8509
8510 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
8511 check Vlatin_extra_code_table.
8512
712adc82
EZ
85132008-10-20 Eli Zaretskii <eliz@gnu.org>
8514
8515 * fileio.c (Fset_file_modes): Doc fix.
8516
f549eb0b
MA
85172008-10-19 Michael Albinus <michael.albinus@gmx.de>
8518
8519 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
8520 in arrays.
8521
aac0c6e3
MR
85222008-10-19 Martin Rudalics <rudalics@gmx.at>
8523
8524 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
8525 Mention kill-buffer in doc-string.
8526 (Fset_window_buffer): Reinsert tem check removed in last commit.
8527 (Fenlarge_window, Fshrink_window): Have argument names and
8528 doc-string follow Elisp manual more closely.
8529
85302008-10-18 Eli Zaretskii <eliz@gnu.org>
8531
8532 * fileio.c (Fset_file_modes): Doc fix.
8533
85342008-10-18 Martin Rudalics <rudalics@gmx.at>
8535
8536 * window.c (Fwindow_width, Fset_window_start)
8537 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
8538 (Fdelete_windows_on, Freplace_buffer_in_windows):
8539 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
8540 (Fwindow_dedicated_p): Make window argument optional.
8541 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
8542 (Fset_window_buffer): Respect any non-nil dedicated value for
8543 window. Rename "buffer" argument to "buffer_or_name".
8544
85452008-10-18 Ulrich Mueller <ulm@gentoo.org>
8546
8547 * m/sh3.h: New file, machine description for SuperH.
8548
85492008-10-17 Martin Rudalics <rudalics@gmx.at>
8550
8551 * window.c (Fsplit_window): Rename arg horflag to horizontal.
8552
85532008-10-17 Kenichi Handa <handa@m17n.org>
8554
8555 * ftfont.c (ftfont_otf_features): Fix indexing
8556 gsub_gpos->FeatureList.Feature. Check the validity of indices.
8557
85582008-10-16 Magnus Henoch <mange@freemail.hu>
8559
8560 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
8561 (Fdbus_call_method_asynchronously): Ditto.
8562 This change makes C-h f display the argument list.
8563
85642008-10-16 Chong Yidong <cyd@stupidchicken.com>
8565
8566 * fileio.c (Fexpand_file_name): Doc fix.
8567
8568 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
8569 of :foreground and :background equivalent to unspecified (20.x
8570 compatibility).
8571
85722008-10-15 Eli Zaretskii <eliz@gnu.org>
8573
8574 * buffer.c (syms_of_buffer): Doc fix.
8575
85762008-10-14 Kenichi Handa <handa@m17n.org>
8577
8578 * font.c (font_clear_prop): When clearing font width, clear the
8579 average width field too.
8580
85812008-10-12 Andreas Schwab <schwab@suse.de>
8582
8583 * ftfont.c (ftfont_shape_by_flt): Make static.
8584 * ftfont.h (ftfont_shape_by_flt): Don't declare.
8585
8586 * font.c: Don't include <m17n-flt.h>.
8587
85882008-10-10 Eli Zaretskii <eliz@gnu.org>
8589
8590 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
8591
85922008-10-09 Eli Zaretskii <eliz@gnu.org>
8593
8594 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
8595 away code.
8596
85972008-10-09 Chong Yidong <cyd@stupidchicken.com>
8598
8599 * dispnew.c (update_text_area): Avoid looping due to large glyph
8600 overhangs (bug#1070).
8601
86022008-10-09 Kenichi Handa <handa@m17n.org>
8603
8604 * fontset.c (face_for_char): If face->fontset is negative, just
8605 return ascii_face.
8606
f5385255
SM
8607 * font.c (font_delete_unmatched): Fix previous change.
8608 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
8609
86102008-10-09 Martin Rudalics <rudalics@gmx.at>
8611
8612 * frame.c (Fraise_frame): On text-only terminals select frame in
8613 order to make it visible. (Bug#1061)
8614
86152008-10-08 Chong Yidong <cyd@stupidchicken.com>
8616
8617 * fontset.c (fontset_find_font): Check frame validity.
8618
86192008-10-07 Chong Yidong <cyd@stupidchicken.com>
8620
a9b555d3 8621 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
8622 (xg_display_close): Allow Emacs to close all displays (bug#985).
8623
86242008-10-06 Andreas Schwab <schwab@suse.de>
8625
f5385255 8626 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
8627
86282008-10-06 Chong Yidong <cyd@stupidchicken.com>
8629
f5385255 8630 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 8631
a9b555d3 8632 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
8633
8634 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
8635 during initialization.
8636
86372008-10-04 Eli Zaretskii <eliz@gnu.org>
8638
8639 * xdisp.c (redisplay_internal): If frame switched, redisplay the
8640 whole thing on MSDOS frames as well as on a TTY.
8641
8642 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
8643 well as for TTY.
8644 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
8645 well as on a TTY.
8646
8647 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
8648 as well as for TTY.
8649
8650 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
8651
8652 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
8653 MSDOS frames as well.
8654
86552008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8656
8657 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
8658 correct arguments.
b71ac3dd 8659 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
8660
86612008-10-03 Glenn Morris <rgm@gnu.org>
8662
8663 * emacs.c (USAGE1): Add --daemon.
8664
86652008-10-02 Eli Zaretskii <eliz@gnu.org>
8666
8667 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
8668 100, so it's in percents as advertised.
8669
86702008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8671
8672 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
8673 (ns_output.current_cursor, ns_output.desired_cursor)
8674 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
8675 (FRAME_NEW_CURSOR_COLOR): Remove.
8676
8677 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 8678 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
8679 enumeration (HOLLOW_BOX_CURSOR, etc.).
8680
8681 * nsterm.m (ns_frame_rehighlight): Remove commented code.
8682 (draw_window_cursor): Simplify code.
f5385255
SM
8683 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
8684 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 8685 updates manually.
a9b555d3
JB
8686 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
8687 Use core Emacs cursor types.
aac0c6e3 8688
b8ff72fa 8689 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
8690
86912008-10-02 Martin Rudalics <rudalics@gmx.at>
8692
8693 * process.c (Faccept_process_output): Fix doc-string.
8694
86952008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
8696
8697 * gmalloc.c (__sbrk): Also define for uClibc.
8698
8699 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
8700 for uClibc.
8701
87022008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8703
8704 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
8705 styles.
8706 (nsfont_open): Reenable the cache.
8707
87082008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8709
8710 * font.c (font_matching_entity): Reflect ATTRS in font selection.
8711 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
8712
87132008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
8714
8715 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
8716 a suspended terminal.
8717
87182008-09-30 Michael Albinus <michael.albinus@gmx.de>
8719
8720 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
8721
87222008-09-30 Eli Zaretskii <eliz@gnu.org>
8723
8724 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
8725
87262008-09-30 Chong Yidong <cyd@stupidchicken.com>
8727
8728 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
8729 in a continued line coincides with a line beginning.
8730
87312008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8732
8733 * nsfont.m (nsfont_trait_distance): Fix bug.
8734 (nsfont_list): Return a list rather than a vector (syncs with Handa
8735 changes of 2008-05-14).
8736 (nsfont_open): Improve logging.
8737
87382008-09-29 Andreas Schwab <schwab@suse.de>
8739
8740 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
8741
87422008-09-28 Martin Rudalics <rudalics@gmx.at>
8743
8744 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
8745 name as char-resolve-modifiers.
8746 Reported by: Markus Triska <markus.triska@gmx.at>
8747
87482008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
8749
8750 * dispnew.c (init_display): Return earlier when running as a daemon.
8751
87522008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8753
8754 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
8755
87562008-09-27 Eli Zaretskii <eliz@gnu.org>
8757
8758 * composite.c (Fcomposition_get_gstring)
8759 (Fcompose_region_internal, Fcompose_string_internal)
8760 (Ffind_composition_internal): Doc fix.
8761 (syms_of_composite) <compose-chars-after-function>: Doc fix.
8762 (syms_of_composite) <auto-composition-function>: Doc fix.
8763 (syms_of_composite) <composition-function-table>: Doc fix.
8764
87652008-09-25 Chong Yidong <cyd@stupidchicken.com>
8766
8767 * search.c (wordify): New argument for lax word-ends.
8768 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
8769
87702008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
8771
8772 * lisp.h (is_daemon): Declare.
8773 * dispnew.c (init_display): Do not try to initialize the terminal
8774 when running as a daemon.
8775
87762008-09-22 Chong Yidong <cyd@stupidchicken.com>
8777
8778 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
8779 x_display_pixel_height.
8780
87812008-09-22 Martin Rudalics <rudalics@gmx.at>
8782
8783 * undo.c (record_point): Don't call Fundo_boundary for first
8784 change. (Bug#731)
8785
87862008-09-22 Juanma Barranquero <lekktu@gmail.com>
8787
8788 * emacs.c (Fdaemonp): Doc fix.
8789
87902008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
8791
8792 * emacs.c (main): Place #ifdef in the proper place.
8793
87942008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
8795
8796 * emacs.c (standard_args): Add --daemon.
8797 (main): Disconnect from the terminal when --daemon is passed.
8798 (is_daemon): New variable.
8799 (Fdaemonp): New function.
8800 (syms_of_emacs): Defsubr it.
8801
88022008-09-20 Chong Yidong <cyd@stupidchicken.com>
8803
8804 * xdisp.c (get_next_display_element): Handle string display
8805 correctly when checking for the end of a box run.
8806
88072008-09-20 Glenn Morris <rgm@gnu.org>
8808
8809 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
8810 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
8811 (Frename_file): Avoid copying to trash if a rename involves
8812 a delete. (Bug#964).
8813
88142008-09-20 Eli Zaretskii <eliz@gnu.org>
8815
8816 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
8817 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
8818 frames as well as termcap frames.
8819 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
8820 get_named_tty.
8821
88222008-09-19 Eli Zaretskii <eliz@gnu.org>
8823
8824 * process.c (procfs_system_process_attributes): Fix cmdline in
8825 case /proc/PID/cmdline is empty.
8826
8827 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
8828 x_display_pixel_height.
8829
88302008-09-19 Juanma Barranquero <lekktu@gmail.com>
8831
8832 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
8833
8834 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
8835 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
8836
88372008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
8838
8839 * dispextern.h (struct it): Move line_wrap away from the middle of
8840 bitfields. Move voffset in struct iterator_stack_entry after the
8841 bitfields. Move tab_width near after another short.
8842
88432008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
8844
8845 * frame.h (struct frame): Move alpha from the middle of bitfields.
8846
8847 * window.h (struct window): Move frozen_window_start_p after the
8848 rest of the bitfields to reduce padding.
8849
88502008-09-18 Chong Yidong <cyd@stupidchicken.com>
8851
8852 * xterm.h (x_display_info): Remove `height' and `width' members.
8853
8854 * nsterm.h (ns_display_info): Remove `height' and `width' members.
8855
8856 * w32term.h (w32_display_info): Remove `height', `width',
8857 `height_in', and `width_in' members.
8858
b8ff72fa
SM
8859 * xterm.c (x_display_pixel_height, x_display_pixel_width):
8860 New functions.
aac0c6e3
MR
8861 (x_calc_absolute_position): Use them.
8862 (x_term_init): Omit removed `height' and `width' members.
8863
b8ff72fa
SM
8864 * w32term.c (x_display_pixel_height, x_display_pixel_width):
8865 New functions.
aac0c6e3
MR
8866 (w32_read_socket, x_calc_absolute_position): Use them.
8867 (w32_initialize_display_info, w32_term_init): Omit removed members
8868 of w32_display_info.
8869
b8ff72fa
SM
8870 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
8871 New functions.
8872 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 8873
b8ff72fa
SM
8874 * xterm.c (x_display_pixel_height, x_display_pixel_width):
8875 New functions.
aac0c6e3
MR
8876 (x_calc_absolute_position): Use them.
8877 (x_term_init): Omit removed `height' and `width' members.
8878
8879 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
8880 (compute_tip_xy):
8881 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
8882 * xmenu.c (menu_position_func): Use x_display_pixel_height and
8883 x_display_pixel_width.
8884
88852008-09-18 Kenichi Handa <handa@m17n.org>
8886
8887 * composite.c (fill_gstring_header): Don't check FROM and TO here.
8888 (composition_compute_stop_pos): Fix handling of static composition.
8889 (Fcomposition_get_gstring): Check FROM and TO at first.
8890
88912008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
8892
46e722a9 8893 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
8894 mixup (YAILOM).
8895
88962008-09-17 Chong Yidong <cyd@stupidchicken.com>
8897
8898 * indent.c (Fvertical_motion): Use position reported by iterator
8899 instead of PT for determining screen motion (bug#943).
8900
89012008-09-17 Romain Francoise <romain@orebokech.com>
8902
8903 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
8904
89052008-09-17 Kenichi Handa <handa@m17n.org>
8906
8907 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
8908
8909 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
8910 if necessary.
8911
89122008-09-16 Kenichi Handa <handa@m17n.org>
8913
8914 * coding.c (make_conversion_work_buffer): Avoid calling
8915 Fget_buffer_create if it is not necessary.
8916
89172008-09-15 Martin Rudalics <rudalics@gmx.at>
8918
8919 * window.c (Fselect_window): Don't update window_select_count and
8920 use_time when norecord is not nil.
8921
89222008-09-14 Kenichi Handa <handa@m17n.org>
8923
8924 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
8925 specpdl_ptr.
8926
89272008-09-12 Kenichi Handa <handa@m17n.org>
8928
8929 * indent.c (scan_for_column): Don't handle automatic composition
8930 if the current buffer is not associated with a window.
8931
8932 * composite.c (composition_reseat_it): If the current buffer is
8933 not associated with a window, ignore the automatic composition.
8934 (find_automatic_composition): Likewise.
8935
89362008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8937
8938 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
8939 (Fgpm_mouse_stop): Use it.
8940 * termhooks.h (close_gpm): Declare.
8941 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
8942 connection if Gpm_GetEvent fails.
8943
8944 * window.c (set_window_buffer): Always preserve current-buffer.
8945
89462008-09-12 Glenn Morris <rgm@gnu.org>
8947
8948 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
8949
89502008-09-11 Glenn Morris <rgm@gnu.org>
8951
8952 * charset.c (charset-map-path): Doc fix.
8953
89542008-09-10 Kenichi Handa <handa@m17n.org>
8955
8956 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
8957
8958 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
8959 compose a grapheme cluster with the preceding base glyph.
8960
8961 * composite.c (composition_compute_stop_pos): Fix previous change.
8962 Reset cmp_it->id to -1 at first.
8963
89642008-09-10 Glenn Morris <rgm@gnu.org>
8965
8966 * Makefile.in (character.o, chartab.o): Fix config.h typo.
8967
89682008-09-09 Chong Yidong <cyd@stupidchicken.com>
8969
8970 * keyboard.c (read_key_sequence): Reapply translation maps when
8971 switching keyboards.
8972
89732008-09-09 Kenichi Handa <handa@m17n.org>
8974
8975 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
8976 characters.
8977
8978 * composite.c (FORWARD_CHAR): Fix calculation
8979 of (POSITION).pos_byte.
8980 (composition_compute_stop_pos): Limit the search of composition to
8981 at most 500 characters ahead. If we reach the limit or find a
8982 newline, set cmp_it->ch to -2 and return 0.
8983 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
8984
89852008-09-08 Kenichi Handa <handa@m17n.org>
8986
8987 * indent.c (Fvertical_motion): Be sure to set
8988 it_overshoot_expected if it.cmp_it.id is non-negative.
8989
89902008-09-07 Andreas Schwab <schwab@suse.de>
8991
8992 * callproc.c (Fcall_process): Don't hold references to string data
8993 across garbage collection. Move initialisation of new_argv down
8994 to avoid compiler bug.
8995
89962008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
8997
8998 * process.c (Fsystem_process_attributes): Doc fix.
8999
90002008-09-07 Chong Yidong <cyd@stupidchicken.com>
9001
9002 * callproc.c (Fcall_process): Canonicalize current directory name.
9003
9004 * xdisp.c (move_it_to): When moving by vpos, ensure that the
9005 iterator advances to the next line if the current line ends in a
9006 continued tab.
9007
90082008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
9009
9010 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
9011 member to point to cmp_from.
9012
9013 * xdisp.c: Doc fix for references to gidx data member.
9014
90152008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
9016
9017 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
9018
90192008-09-07 Kenichi Handa <handa@m17n.org>
9020
9021 * composite.c (FORWARD_CHAR): Check STOP after
9022 incrementing (POSITION).pos.
9023
90242008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
9025
9026 * process.c (Fsystem_process_attributes): Doc fix.
9027
90282008-09-06 Chong Yidong <cyd@stupidchicken.com>
9029
9030 * keyboard.c (Ftop_level): Doc fix.
9031
90322008-09-06 Eli Zaretskii <eliz@gnu.org>
9033
9034 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
9035 minibuffer, don't let lower part of menu invade the echo area.
9036
9037 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
9038 "char *q" to access menu text and advance through it. Revert the
9039 change that displayed ">" instead of ASCII character 0x10.
9040
90412008-09-05 Eli Zaretskii <eliz@gnu.org>
9042
9043 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
9044 toggle boxes and radio buttons on MS-DOS as well.
9045
90462008-09-05 Kenichi Handa <handa@m17n.org>
9047
9048 * composite.c (autocmp_chars): Check lookback count.
9049 (composition_compute_stop_pos): Set cmp_it->lookback.
9050 (composition_reseat_it): Check lookback count.
9051 (struct position_record): New struct.
9052 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
9053 (find_automatic_composition): New function.
9054 (composition_adjust_point): Use find_automatic_composition.
9055
9056 * dispextern.h (struct composition_it): New member lookback.
9057
90582008-09-02 Chong Yidong <cyd@stupidchicken.com>
9059
9060 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
9061 if moving by a single line.
9062
90632008-09-02 Andreas Schwab <schwab@suse.de>
9064
9065 * xterm.c (x_delete_display): Fix merge error.
9066
9067 * fileio.c (Fexpand_file_name): Remove unused variables.
9068
90692008-09-02 Eli Zaretskii <eliz@gnu.org>
9070
9071 * fileio.c (Fexpand_file_name): Copy argument `name' into local
9072 storage on all platforms, not just on DOS_NT.
9073
90742008-09-02 Jason Rumney <jasonr@gnu.org>
9075
b8ff72fa
SM
9076 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
9077 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
9078
90792008-09-01 Chong Yidong <cyd@stupidchicken.com>
9080
9081 * xfaces.c (Finternal_set_alternative_font_family_alist)
9082 (Finternal_set_alternative_font_registry_alist): Properly copy
9083 entire alist structure.
9084
90852008-09-01 Kenichi Handa <handa@m17n.org>
9086
d66c0241 9087 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 9088 representative chars of the script is a vector.
d66c0241
JB
9089 (ftfont_list): Handle the case where the representative chars of
9090 the script is a vector.
aac0c6e3
MR
9091
9092 * character.c (syms_of_character): Docstring of
9093 script-representative-chars fixed.
9094
90952008-08-31 Eli Zaretskii <eliz@gnu.org>
9096
9097 * msdos.c (BUILD_CHAR_GLYPH): New macro.
9098 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
9099 the menu. Allocate larger buffer for `text', to account for
9100 possible ^C characters.
9101
91022008-08-31 Martin Rudalics <rudalics@gmx.at>
9103
9104 * xdisp.c (prepare_menu_bars): Don't call
9105 Vwindow_size_change_functions with arg Qt.
9106
91072008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
9108
9109 * font.h (font_range):
9110 * fileio.c (report_file_error):
46e722a9
SM
9111 * composite.c (composition_update_it): Yet another int/Lisp_Object
9112 mixup (YAILOM).
aac0c6e3
MR
9113
91142008-08-30 Glenn Morris <rgm@gnu.org>
9115
9116 * data.c (Fmake_variable_frame_local): Doc fix.
9117
9118 * frame.c (Fmodify_frame_parameters): Doc fix.
9119
91202008-08-30 Eli Zaretskii <eliz@gnu.org>
9121
9122 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
9123 needed by GetTokenInformation.
9124 (w32_system_process_attributes): Check return values of all system
9125 APIs.
9126
9127 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
9128 only when the state changes.
9129 (IT_update_begin, IT_update_end): Add termscript trace.
9130
9131 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
9132 clipboard is unavailable. Set dst to NULL if it doesn't point to
9133 malloc'ed data.
9134 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
9135 passing random values to xfree.
9136
9137 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 9138 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
9139
91402008-08-29 Jason Rumney <jasonr@gnu.org>
9141
9142 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
9143
91442008-08-29 Eli Zaretskii <eliz@gnu.org>
9145
9146 * composite.c (fill_gstring_body): Avoid compiler warnings.
9147
9148 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
9149 LGLYPH_SET_CODE to avoid compiler warnings.
9150
2ae37cf0 9151 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
9152
9153 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
9154
9155 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
9156 LGLYPH_SET_CODE.
9157
91582008-08-29 Kenichi Handa <handa@m17n.org>
9159
9160 * fileio.c (report_file_error): Don't downcase the first character
9161 of errstring if it is still unibyte.
9162
91632008-08-29 Kenichi Handa <handa@m17n.org>
9164
9165 These changes are to re-implement the automatic composition so
9166 that it doesn't use text properties.
9167
9168 * Makefile.in (ftfont.o): Depend on composite.h.
9169 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
9170
9171 * character.h (Vunicode_category_table): Extern it.
9172
9173 * character.c (Vunicode_category_table): New variable.
9174 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
9175
9176 * chartab.c (optimize_sub_char_table): Perform more greedy
9177 optimization.
9178
b8ff72fa
SM
9179 * composite.h (enum composition_method):
9180 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
9181 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
9182 (Vcomposition_function_table): Extern it.
9183 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
9184 (composition_gstring_put_cache, composition_gstring_from_id)
9185 (composition_gstring_p, composition_gstring_width)
9186 (composition_compute_stop_pos, composition_reseat_it)
9187 (composition_update_it, composition_adjust_point): Extern them.
9188 (Fcomposition_get_gstring): EXFUN it.
9189
d66c0241 9190 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
9191 (Vcomposition_function_table)
9192 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
9193 (gstring_hash_table, gstring_work, gstring_work_headers):
9194 New variables.
aac0c6e3
MR
9195 (gstring_lookup_cache, composition_gstring_put_cache)
9196 (composition_gstring_from_id, composition_gstring_p)
9197 (composition_gstring_width, fill_gstring_header)
9198 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
9199 (composition_reseat_it, composition_update_it)
b8ff72fa 9200 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
9201 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
9202 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 9203 Defsubr composition_get_gstring.
aac0c6e3
MR
9204
9205 * dispextern.h (struct glyph): New union u.cmp. Delete the member
9206 cmp_id.
9207 (struct glyph_string): Delete the member gidx. New members
9208 cmp_id, cmp_from, and cmp_to.
9209 (enum it_method): Delete GET_FROM_COMPOSITION.
9210 (struct composition_it): New struct.
9211 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
9212 Delete c, len, cmp_id, cmp_len in u.comp.
9213
9214 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 9215 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 9216 (enum lglyph_indices): Likewise.
b8ff72fa 9217 (font_range): Adjust extern.
aac0c6e3
MR
9218 (font_fill_lglyph_metrics): Extern it.
9219
9220 * font.c (QCf): New variable.
9221 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
9222 (font_prepare_composition): Delete this function.
9223 (font_range): Type and arguments changed.
9224 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
9225 (font_fill_lglyph_metrics): New function.
b8ff72fa 9226 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 9227 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
9228 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
9229 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
9230
9231 * fontset.h (font_for_char): Extern it.
9232
9233 * fontset.c (font_for_char): New function.
9234
9235 * ftfont.c: Include composite.h.
9236 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 9237 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
9238
9239 * indent.c: Include composite.h and dispextern.h.
9240 (check_composition): Delete this function.
9241 (scan_for_column): Handle composition by
9242 composition_compute_stop_pos, composition_reseat_it, and
9243 composition_update_it.
9244 (compute_motion): Likewise.
9245 (Fvertical_motion): Fix checking of composition.
9246
9247 * keyboard.c (adjust_point_for_property): Check composition by
9248 composition_adjust_point.
9249
b8ff72fa 9250 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
9251 struct glyph_string.
9252
b8ff72fa
SM
9253 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
9254 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
9255 struct glyph.
9256 (produce_composite_glyph): Likewise.
9257
b8ff72fa
SM
9258 * w32term.c (x_draw_composite_glyph_string_foreground):
9259 Adjust for the change of struct glyph_string.
aac0c6e3
MR
9260 (x_draw_glyph_string): Likewise.
9261
9262 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
9263 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
9264
9265 * xdisp.c: Include font.h.
9266 (it_props): Delete the entry for Qauto_composed.
9267 (init_iterator): Initialize it->cmp_it.id to -1.
9268 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 9269 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
9270 (handle_auto_composed_prop): Delete it.
9271 (handle_composition_prop): Handle only static composition.
9272 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
9273 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 9274 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
9275 (pop_it): Likewise.
9276 (get_next_element): Delete next_element_from_composition.
9277 (CHAR_COMPOSED_P): New macro.
9278 (get_next_display_element): For automatic composition, get a face
9279 from the font in the glyph-string.
9280 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 9281 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
9282 (next_element_from_string): Check if the character at the current
9283 position is composed by CHAR_COMPOSED_P.
9284 (next_element_from_buffer): Likewise.
d66c0241
JB
9285 (next_element_from_composition): Adjust for the change of struct it.
9286 Update it->cmp_it.
b8ff72fa
SM
9287 (dump_glyph): Adjust for the change of struct glyph.
9288 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
9289 it and struct glyph. Don't handle automatic composition here.
9290 (fill_gstring_glyph_string): New function.
9291 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 9292 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
9293 (BUILD_GSTRING_GLYPH_STRING): New macro.
9294 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
9295 automatic composition.
b8ff72fa 9296 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 9297 struct glyph.
b8ff72fa 9298 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 9299
b8ff72fa 9300 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
9301 the change of struct glyph_string.
9302 (x_draw_glyph_string): Likewise.
9303
93042008-08-29 Glenn Morris <rgm@gnu.org>
9305
9306 * buffer.c (word-wrap): Doc fix.
9307 * xdisp.c (truncate-partial-width-windows): Doc fix.
9308 Increase default to 50.
9309
93102008-08-29 Chong Yidong <cyd@stupidchicken.com>
9311
9312 * xdisp.c (update_tool_bar_unwind): New function.
9313 (update_tool_bar): Temporarily set selected frame before building
9314 tool-bar items.
9315
93162008-08-28 Michael Albinus <michael.albinus@gmx.de>
9317
9318 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
9319 snprintf, respectively.
9320 (xd_append_arg): Convert strings with Fstring_make_unibyte.
9321
93222008-08-28 Chong Yidong <cyd@stupidchicken.com>
9323
9324 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
9325 LDFLAGS to GNUstep CC invocation.
9326
93272008-08-27 Chong Yidong <cyd@stupidchicken.com>
9328
9329 * indent.c (Fvertical_motion): Revert last change. Handle the
9330 general case where we are moving forward, and PT spans multiple
9331 screen lines.
9332
9333 * eval.c (find_handler_clause): Temporarily increase
9334 max-lisp-eval-depth while printing the backtrace buffer, to
9335 guarantee that help-mode code can run.
9336
93372008-08-27 Eli Zaretskii <eliz@gnu.org>
9338
9339 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
9340 colors under -rv.
9341 (IT_set_frame_parameters): Don't swap foreground and background
9342 colors if `(reverse . t)' is present in the frame properties.
9343 (internal_terminal_init): Call init_frame_faces only for the
9344 initial frame.
9345
93462008-08-27 Andreas Schwab <schwab@suse.de>
9347
9348 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
9349
93502008-08-27 Andreas Schwab <schwab@suse.de>
9351
9352 * search.c (search_buffer): Set char_base to zero only at the end.
9353
93542008-08-27 Kenichi Handa <handa@m17n.org>
9355
b8ff72fa 9356 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
9357
93582008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
9359
9360 * xterm.c (x_term_init): Temporarily hide the partially
9361 initialized terminal while calling vendor-specific-keysyms.
9362
93632008-08-26 Eli Zaretskii <eliz@gnu.org>
9364
9365 * msdos.c (internal_terminal_init): Most initializations done only
9366 once, especially initial_screen_colors[] and termscript open.
9367
93682008-08-26 Chong Yidong <cyd@stupidchicken.com>
9369
9370 * eval.c (Fcondition_case): Doc fix.
9371
9372 * widgetprv.h (EmacsFramePart): Change font member to the new font
9373 struct.
9374
9375 * widget.c: Include character.h and font.h for XSETFONT.
9376 (setup_frame_gcs): Compute X font id from font struct, just once.
9377
93782008-08-26 Eli Zaretskii <eliz@gnu.org>
9379
9380 * term.c (get_named_tty): Fix last change.
9381
93822008-08-26 Chong Yidong <cyd@stupidchicken.com>
9383
9384 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 9385 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
9386
93872008-08-25 Eli Zaretskii <eliz@gnu.org>
9388
9389 * frame.c (do_switch_frame): Mark previously displayed frame as
9390 obscured for FRAME_MSDOS_P frames as well.
9391
93922008-08-24 Eli Zaretskii <eliz@gnu.org>
9393
9394 * frame.c (make_terminal_frame): Initialize f->terminal,
9395 f->terminal->reference_count, and scroll bars on MS-DOS as well.
9396 Set the top frame to newly created frame.
9397 (Fmake_terminal_frame): Reuse the_only_display_info.
9398
9399 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
9400 estimating available memory.
9401
b97439ce 94022008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
9403
9404 * nsterm.m (ns_draw_window_cursor): Don't call
9405 NSDisableScreenUpdates and NSEnableScreenUpdates on
9406 non-NS_IMPL_COCOA systems.
9407
94082008-08-23 Andreas Schwab <schwab@suse.de>
9409
9410 * process.c (procfs_system_process_attributes): Fix use of
9411 uninitialized variables.
9412
94132008-08-23 Eli Zaretskii <eliz@gnu.org>
9414
9415 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
9416
9417 * dispnew.c (init_display): Remove MS-DOS specific conditions for
9418 calling tty-set-up-initial-frame-faces.
9419
b8ff72fa
SM
9420 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
9421 Allow MSDOS frames along with X frames.
aac0c6e3
MR
9422
9423 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
9424 addition to output_termcap.
9425
9426 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
9427
9428 * termchar.h (FRAME_TTY): Support output_msdos_raw.
9429 (struct tty_display_info) [MSDOS]: Add fields related to mouse
9430 highlight.
9431
9432 * process.c [!subprocesses]: Define QCname.
9433 (syms_of_process): Intern and staticpro it.
9434
9435 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
9436 Adjust for changes in encoding/decoding routines.
9437 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
9438 encode_coding and decode_coding.
9439
b8ff72fa 9440 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
9441
9442 * dosfns.c: Include frame.h before termhooks.h.
9443 (dos_cleanup): Use CURTTY ()->termscript instead of a global
9444 variable termscript.
9445
9446 * s/msdos.h (USER_FULL_NAME): Define.
9447 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
9448
9449 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
9450 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
9451 pw->pw_gecos.
9452
9453 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
9454 SELECTED_FRAME as additional (1st) argument.
9455 (tty_read_avail_input): Handle output_msdos_raw in
9456 addition to output_termcap.
9457
9458 * msdos.c: Include frame.h before termhooks.h.
9459 (mouse_on, mouse_off, mouse_moveto, mouse_init)
9460 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
9461 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
9462 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
9463 (IT_set_terminal_modes, IT_reset_terminal_modes)
9464 (IT_set_frame_parameters): Use tty->termscript instead of a global
9465 variable termscript.
9466 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
9467 global variable terminal_coding. Don't refer to
9468 Vnonascii_translation_table.
9469 (internal_terminal_init): Set Vwindow_system in current_kboard.
9470 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
9471 Announce date and time of session start, if termscript is open.
9472 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
9473 term.c:init_tty). Open termscript only of not already open.
9474 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
9475 here instead of dos_ttraw. Don't initialize display if this is an
9476 initial tty. Don't set FRAME_FONT.
9477 (Vwindow_system_version): Bump to 23.
9478 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
9479 is available, set up mouse_position_hook.
9480 (dos_ttraw, IT_set_terminal_modes): If called with initial
9481 terminal, do nothing.
9482 (IT_set_frame_parameters): Handle the Qtty_type frame
9483 parameter by calling internal_terminal_init.
9484 (dos_set_window_size, show_mouse_face)
9485 (clear_mouse_face, IT_note_mode_line_highlight)
9486 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
9487 (dos_rawgetc): Use tty_display_info instead of x_display_info.
9488 (initialize_msdos_display): New function.
9489 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
9490 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
9491 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
9492 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 9493 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
9494 (request_sigio, unrequest_sigio): Don't define, now defined on
9495 sysdep.c.
9496 (IT_write_glyphs): Rewrite to use encode_terminal_code.
9497
9498 * term.c [MSDOS]: Include msdos.h.
9499 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
9500 conditional to DOS_NT. Allow only one call to this function in a
9501 session. Don't allocate a new struct tty_display_info; instead,
9502 reuse the_only_display_info. Call get_tty_size to get screen
9503 dimensions. Call init_baud_rate to set bad_rate.
9504 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
9505 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 9506 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
9507 (get_tty_terminal, get_named_tty, Ftty_type)
9508 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
9509 output_termcap.
b8ff72fa
SM
9510 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
9511 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 9512 only when subprocesses are supported.
aac0c6e3
MR
9513
9514 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
9515 f->output_data.x.
9516 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
9517 terminal devices.
9518
5582fbc7 9519 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
9520 x_output.
9521 (FRAME_FONT): Use output_data.tty.
9522 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
9523 (struct x_display_info): Rename from display_info. Update all users in
9524 msdos.c.
aac0c6e3 9525 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 9526 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
9527 (dos_ttraw): Update prototype.
9528
9529 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
9530 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
9531
95322008-08-23 Jason Rumney <jasonr@gnu.org>
9533
9534 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
9535 (fn_TIFFSetDirectory): New library function used.
9536 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
9537 (tiff_load): Use :index to select among multiple images. Set count
9538 property when multiple images exist.
9539 (gif_format): Use :index, not :image.
9540
95412008-08-23 Chong Yidong <cyd@stupidchicken.com>
9542
9543 * xdisp.c (try_scrolling): Check INT_MAX instead of
9544 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
9545 to obtain INT_MAX.
9546
95472008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
9548
9549 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
9550
95512008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
9552
9553 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
9554 GNUstep library location.
9555
95562008-08-21 Chong Yidong <cyd@stupidchicken.com>
9557
9558 * xfaces.c (x_update_menu_appearance): Check validity of menu font
9559 before using it.
9560
9561 * puresize.h (BASE_PURESIZE): Increase to 1250000.
9562
95632008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9564
9565 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
9566 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
9567 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
9568 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
9569 (EmacsApp-cursor_blink_handler): Remove declaration.
9570 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
9571 match 01 Feb 2008 changes in xterm.c.
9572 (ns_read_socket): Add cast to avoid warning.
9573 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
9574 GNUstep.
9575
95762008-08-20 Chong Yidong <cyd@stupidchicken.com>
9577
9578 * xselect.c (x_get_foreign_selection): Return nil if desired
9579 selection could not be obtained, instead of signalling an error.
9580
95812008-08-20 David Reitter <david.reitter@gmail.com>
9582
9583 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
9584 * nsterm.m: Remove ns-specific code for cursor blinking.
9585 (ns_draw_window_cursor): Clear cursor properly rather than
9586 redrawing the area. Respect width of bar cursors.
9587 These changes enable the use of generic blink-cursor-mode and
9588 generic cursor types in NS and support smooth cursor movements (do
9589 not blink off after command).
9590 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
9591 Nextstep, too.
9592
95932008-08-19 Kenichi Handa <handa@m17n.org>
9594
9595 * font.c (Vfont_log_deferred): New variable.
9596 (font_add_log): Check Vfont_log_deferred.
9597 (font_deferred_log): New function.
9598
9599 * font.h (font_deferred_log): Extern it.
9600
9601 * fontset.c (reorder_font_vector): Use encoding charset of fonts
9602 for sorting.
9603 (face_for_char): Use deferred log.
9604
96052008-08-18 Kenichi Handa <handa@m17n.org>
9606
9607 * fontset.c (face_for_char): Add font log.
9608
9609 * font.c (font_add_log): Add the font properties :script, :lang,
9610 and :otf in the log.
9611
96122008-08-17 Chong Yidong <cyd@stupidchicken.com>
9613
9614 * xdisp.c: Remove dead code.
9615 (handle_invisible_prop, next_overlay_string): Defer call to
9616 setup_for_ellipsis.
9617 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
9618
96192008-08-15 Chong Yidong <cyd@stupidchicken.com>
9620
9621 * xfaces.c (lookup_derived_face): Properly handle possible zero
9622 return value of get_lface_attributes.
9623 (merge_faces): Don't tell lookup_derived_face to signal an error
9624 if face is not found.
9625
9626 * dired.c (Fdirectory_files): Doc fix.
9627
9628 * process.c (make_process): Initialize kill_without_query struct
9629 member.
9630
96312008-08-15 Eli Zaretskii <eliz@gnu.org>
9632
9633 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
9634 Alternative calculation of totphys for Visual Studio 6.
9635
9636 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
9637
9638 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
9639 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
9640 All users changed.
9641 (stat): Only root directory passed to GetDriveType. Allow RAM
9642 disk as well as local fixed disk when w32-get-true-file-attributes
9643 is set to `local'.
9644 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
9645 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
9646 (w32_cached_id, w32_add_to_cache): New functions.
9647 (get_name_and_id): Look account names in the cache before calling
9648 lookup_account_sid.
9649 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
9650 New initialization flags.
9651 (globals_of_w32): Initialize them to zero.
9652 (w32_system_process_attributes): Use w32_cached_id and
9653 w32_add_to_cache.
9654
96552008-08-14 Lawrence Mitchell <wence@gmx.li>
9656
9657 * lread.c (Fread_char, Fread_char_exclusive): If no character
9658 event is read before timeout is reached, return nil, rather than
9659 converting to a number.
9660
96612008-08-14 Chong Yidong <cyd@stupidchicken.com>
9662
9663 * fns.c (use_dialog_box): Doc fix.
9664
9665 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
9666 on OS X.
9667
96682008-08-13 Chong Yidong <cyd@stupidchicken.com>
9669
9670 * frame.c (Qns_parse_geometry): New var.
9671 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
9672
96732008-08-11 Chong Yidong <cyd@stupidchicken.com>
9674
9675 * xdisp.c (x_produce_glyphs): Handle the case when font has no
9676 space character in calculating tabs.
9677
96782008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
9679
9680 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
9681
96822008-08-10 Glenn Morris <rgm@gnu.org>
9683
9684 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
9685 silence gcc "limited range of data type" warnings in some
9686 make_fixnum_or_float calls.
9687
96882008-08-09 Eli Zaretskii <eliz@gnu.org>
9689
9690 * w32.c (w32_system_process_attributes): If the process does not
9691 exist, return nil.
9692
9693 * w32.c: Include thelp32.h, psapi.h and coding.h.
9694 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
9695 declarations.
9696 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
9697 (Process32Next_Proc): New typedefs.
9698 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
9699 (g_b_init_process32_next, g_b_init_open_thread_token)
9700 (g_b_init_impersonate_self, g_b_init_revert_to_self)
9701 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
9702 (g_b_init_get_process_working_set_size)
9703 (g_b_init_global_memory_status_ex): New static variables.
9704 (globals_of_w32): Initialize them.
9705 (create_toolhelp32_snapshot, process32_first, process32_next)
9706 (open_thread_token, impersonate_self, revert_to_self)
9707 (get_process_memory_info, get_process_working_set_size)
9708 (global_memory_status, global_memory_status_ex): New wrapper
9709 functions.
9710 (w32_list_system_processes, w32_system_process_attributes)
9711 (enable_privilege, restore_privilege, ltime, process_times):
9712 New functions.
9713 (convert_time_raw): New function.
9714 (convert_time): Remove conversion of FILETIME into time in 100
9715 nsec units, call convert_time_raw instead.
9716
9717 * process.h (w32_list_system_processes, w32_system_process_attributes):
9718 Add prototypes.
9719 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
9720 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
9721 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
9722 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
9723
9724 * process.c (Fsystem_process_attributes): Doc fix.
9725
97262008-08-08 Chong Yidong <cyd@stupidchicken.com>
9727
9728 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
9729 a continued multi-char glyph; if so, advance to the actual glyph.
9730
97312008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
9732
9733 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
9734
9735 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
9736 (.m.o): Use it.
9737 * config.in: Regenerate.
9738
97392008-08-07 Chong Yidong <cyd@stupidchicken.com>
9740
9741 * xdisp.c (redisplay_window): Revert last change.
9742 (try_window): Check bottom scroll margin too.
9743
97442008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9745
9746 * config.in: Regenerate.
9747
9748 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
9749 -list-load-path-shadows'.
9750 (nsgui.h): Reduce number of things depending on it.
9751
97522008-08-06 Chong Yidong <cyd@stupidchicken.com>
9753
9754 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
9755 instead of window-end which does the wrong thing at eob.
9756 (try_cursor_movement): Minor optimization.
9757 (redisplay_window): If scroll margin is defined, don't assume
9758 window doesn't need scrolling.
9759
97602008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9761
9762 * config.in: Regenerate.
9763
9764 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
9765 (mostlyclean): Don't delete *.d under NS.
9766
9767 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
9768
97692008-08-06 Kenichi Handa <handa@m17n.org>
9770
9771 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
9772
97732008-08-06 Andreas Schwab <schwab@suse.de>
9774
9775 * config.in: Regenerate.
9776
97772008-08-05 Chong Yidong <cyd@stupidchicken.com>
9778
9779 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
9780 forcing a window start.
9781
9782 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
9783 (auto_save_1): Update modtime when auto-save-list-file-name is on.
9784
97852008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9786
9787 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
9788 argument.
9789
97902008-08-05 Juanma Barranquero <lekktu@gmail.com>
9791
9792 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
9793 <scroll-down-aggressively, before-change-functions>:
9794 <after-change-functions>: Reflow docstrings.
9795
97962008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 9797 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
9798
9799 Dock menu customization, based on a patch by Ken Raeburn, plus some
9800 other fixes.
9801 * nsmenu.m (dockMenu): New variable.
9802 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
9803
9804 * nsterm.h (dockMenu): Declare.
9805
9806 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
9807 (ns_term_init): Initialize dockMenu.
9808 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
9809 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
9810 left.
9811
9812 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
9813
98142008-08-04 Chong Yidong <cyd@stupidchicken.com>
9815
9816 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
9817
9818 * config.in: Regenerate.
9819
98202008-08-04 Seiji Zenitani <zenitani@mac.com>
9821
9822 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
9823
98242008-08-04 Chong Yidong <cyd@stupidchicken.com>
9825
9826 * nsterm.h (find_and_call_menu_selection): Fix prototype.
9827
98282008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9829
9830 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
9831
9832 * keyboard.h: Comment an #endif.
9833
9834 * lisp.h (have_menus_p): Adjust comment.
9835
9836 * menu.c (find_and_return_menu_selection): Fix comparison with
9837 client_data.
9838
9839 * nsmenu.m (popup_activated_flag): New variable.
9840 (popup_activated): New function.
9841 (menu-or-popup-active-p): New exported lisp definition.
9842 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
9843 when popup done.
9844 (ns_popup_dialog): Set popup_activated_flag.
9845
9846 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
9847 version for GNUstep (handled by conditional typedef in nsterm.m).
9848 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
9849 in rgb.txt).
9850
9851 * process.c (init_process): Use DARWIN_OS, not DARWIN.
9852
9853 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
9854
9855 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
9856
9857 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
9858 shortcircuit if popup_activated like GTK and X toolkit.
9859
9860 * m/inter386.h: Change DARWIN to DARWIN_OS.
9861
9862 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
9863 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
9864 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
9865 comment on NO_SOCK_SIGIO.
9866
98672008-08-03 Chong Yidong <cyd@stupidchicken.com>
9868
9869 * nsterm.m (windowDidResize): Remove stopModal call.
9870
98712008-08-03 Andreas Schwab <schwab@suse.de>
9872
9873 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
9874 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
9875
98762008-08-02 Chong Yidong <cyd@stupidchicken.com>
9877
9878 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
9879 Don't use uninitialized pointer variable when using getrlimit.
9880
98812008-08-02 Jason Rumney <jasonr@gnu.org>
9882
9883 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
9884
98852008-08-02 Eli Zaretskii <eliz@gnu.org>
9886
9887 * alloc.c (NSTATICS): Bump to 0x640.
9888
9889 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
9890
9891 * lisp.h: Add prototype for directory_files_internal.
9892
9893 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
9894 New functions.
9895 (syms_of_process): Defsubr them. Add initializations for various
9896 Q* symbols used in procfs_system_process_attributes.
9897 (procfs_list_system_processes, procfs_system_process_attributes)
9898 [HAVE_PROCFS]: New functions.
9899 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
9900 (procfs_get_total_memory): New functions.
9901
99022008-08-01 Juanma Barranquero <lekktu@gmail.com>
9903
9904 * xfaces.c (Fx_load_color_file): Fix previous change;
9905 it is #ifdef WINDOWSNT, not WINDOWS_NT.
9906
99072008-08-01 Michael Albinus <michael.albinus@gmx.de>
9908
9909 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
9910
99112008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9912
9913 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
9914
99152008-08-01 Chong Yidong <cyd@stupidchicken.com>
9916
9917 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
9918
9919 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
9920 define NSApplicationDelegateReplySuccess.
9921 (EmacsView -converstationIdentifier): Use long instead of
9922 NSInteger for GNUstep, since it doesn't have NSInteger.
9923
9924 * xmenu.c: Revert last change.
9925
9926 * keyboard.h: Fix last change.
9927
99282008-08-01 Juanma Barranquero <lekktu@gmail.com>
9929
9930 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
9931 on Windows.
9932
99332008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9934
9935 Warning clearing and clean-up in NS port.
9936 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
9937 Add prototypes.
9938 * nsgui.h (FACE_DEFAULT): Remove, unused.
9939 (XGCValues): Change colors to unsigned long.
9940 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
9941 nsterm.m.
9942 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
9943 (ns_list_fonts): Remove, unused.
9944 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
9945 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
9946 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
9947 (nsfont_draw): Compare face colors to 0, not nil.
9948 * nsmenu.m (struct widget_value): Drop unneeded declaration.
9949 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
9950 (-addSubmenuWithTitle:): Use NSMenuItem class.
9951 (ns_popup_menu): Use NO, not NULL, for enabled setting.
9952 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
9953 (ns_clip_to_row): Make gc arg a BOOL.
9954 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
9955 ns_clip_to_row() call.
9956 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
9957 used). Cast FRAME_FONT assignments.
9958 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
9959 (ns_string_to_lispmod): Change arg to const char.
9960 (ns_term_init): Use NSMenuItem class.
9961 (EmacsApp -openFile:): Move to different section of file.
9962 (EmacsApp -application:openFiles:): Don't return a value, call
9963 -replyToOpenOrPrint:.
9964 (EmacsView -keyDown:): Fix up cast.
9965 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
9966 (EmacsView -menuDown:): Cast tag in call to
9967 find_and_call_menu_selection().
9968 (ns_list_fonts): Remove, unused.
9969 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
9970 (ns_fontname_to_xlfd): Make static.
9971 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
9972 Remove prototypes (now in keyboard.h).
9973 (next_menubar_widget_id): Remove, unused.
9974 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
9975 Remove prototypes (now in keyboard.h).
9976 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
9977
99782008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
9979
9980 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
9981 (floatfns.o): Depend on syssignal.h.
9982 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
9983
9984 * systty.h: Fix previous change that removed BSD_TERMIOS.
9985 Add comments to #ifdefs.
9986
99872008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9988
9989 * w32fns.c (w32-load-color-file): Remove.
9990 (x-open-connection): Use renamed Fx_load_color_file.
9991 * xfaces.c (x-load-color-file): Add.
9992 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
9993 Emacs.clr.
9994 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
9995
99962008-07-31 Michael Albinus <michael.albinus@gmx.de>
9997
9998 * dbusbind.c (Fdbus_call_method_asynchronously)
9999 (Fdbus_method_error_internal): New defuns.
10000 (xd_read_message): Handle also reply messages.
10001 (Vdbus_registered_functions_table): Extend docstring.
10002
100032008-07-31 Juanma Barranquero <lekktu@gmail.com>
10004
10005 * keyboard.c (gobble_input): Fix previous change.
10006
100072008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
10008
10009 * bitmaps/README:
10010 * xfns.c:
10011 * termcap.c:
10012 * term.c:
10013 * syswait.h:
10014 * systty.h:
10015 * systime.h:
10016 * syssignal.h:
10017 * sysdep.c:
10018 * process.h:
10019 * process.c:
10020 * print.c:
10021 * ndir.h:
10022 * lread.c:
10023 * keyboard.c:
10024 * getpagesize.h:
10025 * floatfns.c:
10026 * fileio.c:
10027 * emacs.c:
10028 * doc.c:
10029 * dispnew.c:
10030 * dired.c:
10031 * data.c:
10032 * callproc.c:
10033 * buffer.c:
10034 * README:
10035 * Makefile.in:
10036 * s/template.h:
10037 * s/msdos.h:
10038 * m/vax.h: Remove VMS support.
10039 * s/vms.h:
10040 * vlimit.h:
10041 * uaf.h:
10042 * temacs.opt:
10043 * param.h:
10044 * ioctl.h: Remove file.
10045
100462008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
10047
10048 * s/ms-w32.h (MULTI_KBOARD): Remove.
10049 * xterm.c:
10050 * xselect.c:
10051 * xfns.c:
10052 * window.c:
10053 * w32term.c:
10054 * w32fns.c:
10055 * terminal.c:
10056 * termhooks.h:
10057 * term.c:
10058 * sysdep.c:
10059 * keyboard.h:
10060 * keyboard.c:
10061 * frame.h:
10062 * frame.c:
10063 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
10064 * config.in: Regenerate.
10065
100662008-07-30 Jason Rumney <jasonr@gnu.org>
10067
10068 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
10069
10070 * w32font.c (w32font_encode_char): Leave as unicode if in range.
10071 (w32font_open_internal): Get unicode version of textmetrics.
10072 Don't enable or disable glyph indices here.
10073 (w32font_open): Disable use of glyph indices.
10074
10075 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
10076
100772008-07-30 Chong Yidong <cyd@stupidchicken.com>
10078
10079 * minibuf.c (Vread_buffer_function): Doc fix.
10080
100812008-07-30 John Paul Wallington <jpw@pobox.com>
10082
10083 * minibuf.c (read_buffer_completion_ignore_case): New var.
10084 (Fread_buffer): Use it.
10085
100862008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
10087
10088 * systty.h (sensemode): Remove empty #if. Remove reference to
10089 BSD_TERMIOS, unused.
10090
10091 * sysdep.c: Remove reference to DGUX.
10092 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
10093
10094 * config.in: Regenerate.
10095
100962008-07-30 Jason Rumney <jasonr@gnu.org>
10097
10098 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
10099
101002008-07-29 Jason Rumney <jasonr@gnu.org>
10101
10102 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
10103 is populated.
10104 (uniscribe_encode_char): Always use uniscribe.
10105 Avoid using context if cache is populated.
10106
101072008-07-29 Jan Djärv <jan.h.d@swipnet.se>
10108
10109 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
10110 open menu.
10111
10112 * gtkutil.c (menu_nav_ended): Remove.
10113 (create_menus): Remove signal connect for menu_nav_ended.
10114
101152008-07-28 Chong Yidong <cyd@stupidchicken.com>
10116
10117 * xdisp.c (redisplay_window): Check return value of
10118 compute_window_start_on_continuation_line before forcing a window
10119 start.
10120
101212008-07-28 Jason Rumney <jasonr@gnu.org>
10122
10123 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
10124
10125 * w32term.c (w32_enable_unicode_output, cleartype_active):
10126 Remove obsolete display options.
10127 (x_draw_glyph_string_background): Don't use old cleartype_active
10128 workaround.
10129 (w32_initialize): Remove cleartype_active initialization.
10130 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
10131
101322008-07-28 Andreas Schwab <schwab@suse.de>
10133
10134 * lisp.h (init_weak_hash_tables, syms_of_font)
10135 (xd_read_queued_messages, syms_of_dbusbind): Declare.
10136 (remove_hash_entry): Don't declare.
10137 * eval.c (maybe_call_debugger): Make static and move before use.
10138 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
10139 * xdisp.c: Include "gtkutil.h" if USE_GTK.
10140 * xterm.h (x_set_frame_alpha): Declare.
10141
101422008-07-28 Jan Djärv <jan.h.d@swipnet.se>
10143
10144 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
10145 (create_menus): Connect selection-done to menu_nav_ended.
10146
101472008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10148
10149 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
10150 Set Vx_resource_name to a fallback. Replace read of 'buffered'
10151 parameter with read of 'alpha' one.
10152 (Qns_frame_parameter): Remove.
5582fbc7 10153 * nsselect.m (selection-coding-system)
aac0c6e3
MR
10154 (next-selection-coding-system, Vselection_coding_system)
10155 (Vnext_selection_coding_system): Drop.
10156
101572008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10158
10159 * nsfns.m (do-applescript, do_applescript): Rename to
10160 ns-do-applescript, ns_do_applescript, and move within file.
10161
101622008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
10163
10164 Remove support for Mac Carbon.
10165 * mactoolbox.c:
10166 * macterm.h:
10167 * macterm.c:
10168 * macselect.c:
10169 * macmenu.c:
10170 * macgui.h:
10171 * macfns.c:
10172 * mac.c: Remove file.
10173 * s/darwin.h:
10174 * m/intel386.h:
10175 * xfaces.c:
10176 * xdisp.c:
10177 * window.c:
10178 * tparam.c:
10179 * termhooks.h:
10180 * termcap.c:
10181 * term.c:
10182 * syssignal.h:
10183 * sysselect.h:
10184 * sysdep.c:
10185 * process.c:
10186 * lread.c:
10187 * lisp.h:
10188 * keyboard.c:
10189 * image.c:
10190 * fringe.c:
10191 * frame.h:
10192 * frame.c:
10193 * fontset.c:
10194 * font.h:
10195 * font.c:
10196 * fns.c:
10197 * fileio.c:
10198 * emacs.c:
10199 * dispnew.c:
10200 * dispextern.h:
10201 * config.in:
10202 * atimer.c:
2ae37cf0 10203 * Makefile.in: Remove code for Carbon.
aac0c6e3 10204
f0131492 102052008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
10206
10207 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
10208
102092008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10210
10211 * macterm.h (kCGBitmapByteOrder32Host): New define for
10212 non-universal SDKs.
10213
10214 * image.c (mac_create_cg_image_from_image, image_load_image_io)
10215 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
10216
10217 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
10218 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
10219
102202008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
10221
10222 * w32inevt.c: Include dispextern.h.
10223
102242008-07-26 Andreas Schwab <schwab@suse.de>
10225
10226 * print.c (print_object): Fix off-by-one in last change.
10227
102282008-07-25 Juanma Barranquero <lekktu@gmail.com>
10229
10230 * term.c (syms_of_term): Don't initialize default_orig_pair,
10231 default_set_foreground and default_set_background on Windows.
10232
102332008-07-25 Jason Rumney <jasonr@gnu.org>
10234
10235 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
10236 ScriptItemize. Clean up return value checking. Remove unused
10237 variables.
10238 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
10239 shaping engine.
10240
10241 * w32font.c (w32font_has_char): Handle the case where we can't
10242 determine the script for a character.
10243
102442008-07-25 Chong Yidong <cyd@stupidchicken.com>
10245
10246 * term.c (syms_of_term): Initialize default_orig_pair,
10247 default_set_foreground, and default_set_background.
10248
10249 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
10250 clash (bug#86).
10251 (getloadavg): Callers changed.
10252
10253 * image.c (svg_load_image): Fix last change.
10254 (svg_load_image): Use rsvg_handle_get_dimensions to check that
10255 image size is valid. Use g_object_unref instead of deprecated
10256 rsvg_handle_free to free rsvg handle.
10257 (x_from_xcolors): Don't initialize pixmap (silence compiler).
10258
102592008-07-25 Jason Rumney <jasonr@gnu.org>
10260
10261 * w32font.c (w32font_encode_char): Encode characters outside BMP as
10262 surrogates before looking up glyph index.
10263 (w32font_text_extents): Encode as surrogates if falling back to
10264 functions that need UTF-16 wide chars.
10265
10266 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
10267 BMP as surrogates before looking up glyph index.
10268
102692008-07-25 Chong Yidong <cyd@stupidchicken.com>
10270
10271 * image.c (svg_load_image): Check for failure in return value of
10272 rsvg_handle_get_pixbuf. Free rsvg handle when done.
10273
102742008-07-25 Jason Rumney <jasonr@gnu.org>
10275
10276 * w32font.c (Fx_select_font): Reverse sense of second arg.
10277
102782008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
10279
10280 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
10281 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
10282
10283 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
10284 (PURESIZE): Use it.
10285
102862008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
10287
10288 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
10289 * m/alpha.h (TEXT_END):
10290 * m/ibmrs6000.h (TEXT_END):
10291 * m/macppc.h (TEXT_END):
10292 * s/darwin.h (TEXT_END):
10293 * s/msdos.h (TEXT_END): Remove, unused.
10294 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
10295 * s/cygwin.h: Remove comment.
10296
10297 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
10298 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
10299 * m/intel386.h (DOT_GLOBAL_START):
10300 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
10301 (USG): Remove, file not used on USG platforms.
10302
10303 * Makefile.in (HAVE_X11): Remove empty #else.
10304
103052008-07-24 Andreas Schwab <schwab@suse.de>
10306
10307 * fileio.c (Finsert_file_contents): Properly adjust undo list
10308 after format conversion.
10309
103102008-07-24 Jan Djärv <jan.h.d@swipnet.se>
10311
10312 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
10313 (menu_nav_ended): Remove.
10314 (create_menus): Remove signal connect for menu_nav_ended.
10315 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
10316 create_menus.
10317 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
10318
103192008-07-23 Jason Rumney <jasonr@gnu.org>
10320
10321 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
10322 with opened font.
10323 (w32font_open): Set font type to gdi.
10324
10325 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
10326
103272008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
10328
10329 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
10330 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
10331 defines it.
10332 * unexec.c (ADDR_CORRECT): Define unconditionally.
10333
10334 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
10335
10336 * unexec.c: Remove code depending on !COFF and USG, the file is
10337 not used for such systems.
10338
10339 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
10340 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
10341 (LD_SWITCH_SYSTEM_1): Remove, update users.
10342
10343 * s/darwin.h (DATA_END):
10344 * m/intel386.h (DATA_END):
10345 * m/ibmrs6000.h (DATA_END):
10346 * m/alpha.h (DATA_END): Remove, unused.
10347
10348 * config.in: Regenerate.
10349 * s/ms-w32.h (subprocesses): Define unconditionally.
10350 * s/template.h (subprocesses): Update comment.
10351 * s/vms.h (subprocesses):
10352 * s/usg5-4.h (subprocesses):
10353 * s/hpux10-20.h (subprocesses):
10354 * s/gnu-linux.h (subprocesses):
10355 * s/cygwin.h (subprocesses):
10356 * s/bsd-common.h (subprocesses):
10357 * s/aix4-2.h (subprocesses):
10358 * s/darwin.h (subprocesses): Do not define, defined by default now.
10359
10360 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
10361 Remove all references.
10362 (temacs): Add GNUstep specific ld flags.
10363
10364 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
10365 similarly to what X does.
10366
103672008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10368
10369 * nsfns.m (x-list-fonts): Remove.
10370 (syms_of_nsfns): Drop the x-list-fonts declaration.
10371 * nsterm.m: Get rid of remaining "//" comments.
10372
103732008-07-22 Chong Yidong <cyd@stupidchicken.com>
10374
10375 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
10376
10377 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
10378 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
10379 (Fns_own_selection_internal, Fx_disown_selection_internal)
10380 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
10381
10382 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
10383 ... */' style of docstrings. Doc fixes.
10384
103852008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
10386
10387 * terminfo.c (UP, BC, PC): Undo previous change.
10388
10389 * nsfns.m: Rename ns prefixed functions/variables to the
10390 corresponding x versions. Update references.
10391
103922008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
10393
10394 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
10395
103962008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
10397
10398 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
10399 Remove forwarding functions.
10400 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
10401 non-static.
10402 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
10403 non-static.
10404 (ns_frame_parm_handlers): Use the new names.
10405 (syms_of_nsfns): Move to the end of file.
10406
10407 * nsterm.m (syms_of_nsterm): Move to the end of file.
10408
10409 * dispnew.c (init_display): Remove code for X10.
10410
104112008-07-22 Jason Rumney <jasonr@gnu.org>
10412
10413 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
10414 bare drive.
10415
104162008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10417
10418 * nsterm.m (syms_of_nsterm): Remove debugging println.
10419
104202008-07-22 David Reitter <david.reitter@gmail.com>
10421
10422 * nsfns.m (do_applescript, F_do_applescript): NS version of the
10423 Carbon implementation of the same functionality: execute arbitrary
10424 AppleScript code.
10425
104262008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10427
10428 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
10429 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
10430 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
10431 (Fx_display_mm_height, Fx_display_mm_width)
10432 (Fx_display_backing_store, Fx_display_visual_class)
10433 (Fx_display_save_under, Fx_open_connection)
10434 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
10435 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
10436 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
10437 (Fx_display_pixel_width, Fx_display_pixel_height)
10438 (Fx_display_usable_bounds, Fx_display_planes)
10439 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
10440 ... */' style of docstrings.
10441
104422008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
10443
10444 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
10445 on this platform.
10446 (mips):
10447 * m/iris4d.h (mips): Do not define.
10448 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
10449
10450 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
10451
10452 * image.c:
10453 * nsfns.m:
10454 * nsselect.m:
10455 * nsterm.h:
10456 * nsterm.m: Rename ns prefixed functions/variables to the
10457 corresponding x versions. Update references.
10458
10459 * m/ibms390x.h (NO_REMAP): Do not undefine.
10460
10461 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
10462
104632008-07-21 Chong Yidong <cyd@stupidchicken.com>
10464
10465 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
10466 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
10467 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
10468 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
10469 (Fns_display_mm_height, Fns_display_mm_width)
10470 (Fns_display_backing_store, Fns_display_visual_class)
10471 (Fns_display_save_under, Fns_open_connection)
10472 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
10473 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
10474 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
10475 (Fns_display_pixel_width, Fns_display_pixel_height)
10476 (Fns_display_usable_bounds, Fx_display_planes)
10477 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
10478
104792008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
10480
10481 * print.c (print_object): Check print_depth before searching for
10482 circularities.
10483
104842008-07-21 Michael Albinus <michael.albinus@gmx.de>
10485
10486 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
10487 only sprintf.
10488
104892008-07-21 Kenichi Handa <handa@m17n.org>
10490
10491 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
10492
104932008-07-20 Andreas Schwab <schwab@suse.de>
10494
10495 * syntax.c (find_start_pos, find_start_value)
10496 (find_start_value_byte, find_start_begv, find_defun_start)
10497 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
10498
104992008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
10500
10501 * s/sol2-3.h: Insert contents of s/sol2.h.
10502 (LD_SWITCH_SYSTEM): Remove redundant definition.
10503 * s/sol2.h: Remove, unused.
10504
105052008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10506
10507 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
10508
105092008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10510
10511 * Makefile.in (ns_appdir): Fix typo in find command.
10512
105132008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
10514
10515 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
10516
10517 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
10518 added not supported anymore.
10519
10520 * s/usg5-4-2.h (LIBS_SYSTEM):
10521 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
10522
10523 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10524 * s/lynxos.h (GETPGRP_NO_ARG):
10525 * s/hpux10-20.h (NO_SIOCTL_H):
10526 * s/gnu.h (GETPGRP_NO_ARG):
10527 * s/gnu-linux.h (NO_SIOCTL_H):
10528 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10529 * s/cygwin.h (GETPGRP_NO_ARG):
10530 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
10531 (C_DEBUG_SWITCH): Remove duplicate definition.
10532
10533 * m/ibms390.h: Remove boilerplate comments.
10534
10535 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
10536
10537 * process.c (HAVE_SERIAL): Consolidate ifdefs.
10538 (wait_reading_process_output): Remove code for SunOS, platform not
10539 supported anymore. Use SOLARIS2 instead of sun.
10540
105412008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10542
10543 * font.c (font_open_by_name): Under NS, default lface height to zero.
10544 (font_open_for_lface): Under NS, set size based on frame fontsize.
10545 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
10546 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
10547
105482008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10549
10550 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
10551 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
10552 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
10553 YES/NO.
10554 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
10555 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
10556 * Makefile.in (clean): Clear out build destination dir.
10557
105582008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10559
10560 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
10561 xterm, xselect.
10562 * lisp.h: Remove declaration of hash_remove.
10563 * nsgui.h: Remove redefinitions of hash_remove.
10564 * fns.c (hash_remove): Rename to hash_remove_from_table.
10565
105662008-07-19 Seiji Zenitani <zenitani@mac.com>
10567
10568 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
10569 strdup() the family UTF8String before modifying it.
10570
105712008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10572
10573 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
10574 NS_FACE_BACKGROUND with 0 instead of nil.
10575 * nsfont.m (nsfont_draw): Same.
10576
105772008-07-19 Chong Yidong <cyd@stupidchicken.com>
10578
10579 * nsfns.m (ns_set_background_color): Fix crash.
10580
105812008-07-18 Chong Yidong <cyd@stupidchicken.com>
10582
10583 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
10584
105852008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
10586
10587 * puresize.h (BASE_PURESIZE): Increase to 1240000.
10588
105892008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10590
10591 * gtkutil.c: Include <config.h> instead of "config.h".
10592
10593 * lisp.h (Foverlay_buffer): Add EXFUN.
10594
10595 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
10596 child process to complete child_setup. Undo 2005-09-21 change.
10597
10598 * s/darwin.h: Mention setsid after vfork.
10599
106002008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10601
10602 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
10603 Depend on macgui.h.
10604
10605 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
10606 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
10607
10608 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
10609 and f19.
10610 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
10611
10612 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
10613 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
10614 Remove enumerators.
10615
10616 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
10617 Check if FACE_FROM_ID returns NULL.
10618
106192008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
10620
10621 * w32inevt.c (change_frame_size): Remove extern declaration.
10622 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
10623 change_frame_size.
10624
106252008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
10626
10627 * getloadavg.c: Revert last change (2008-07-15).
10628
106292008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
10630
10631 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 10632 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
10633 from configure.
10634
106352008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
10636
10637 * s/sol2.h:
10638 * s/sol2-4.h: Reorganize conditionals.
10639
10640 * ecrt0.c: Remove code depending on m68000, not used anymore.
10641
10642 * fns.c (hash_remove): Make static.
10643 * lisp.h (hash_remove): Don't prototype.
10644
10645 * m/ibmrs6000.h:
10646 * m/ibms390x.h:
10647 * m/macppc.h: Remove boilerplate comments.
10648
10649 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
10650 Solaris, which does not need them.
10651
10652 * m/vax.h: Remove comments about unsupported systems.
10653
10654 * s/darwin.h: Reorganize ifdefs.
10655
106562008-07-17 Andreas Schwab <schwab@suse.de>
10657
10658 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
10659
106602008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
10661
10662 Use SDATA. Follow coding convention of placing operators at
10663 beginning of next line rather than end of previous line, and placing
10664 spaces around infix operators.
10665
10666 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
10667 in case it was defined already.
10668 USE @GNUSTEP_MAKEFILES@ rather than envvars.
10669 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
10670 ns_default.
10671 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
10672 Lisp_Objects.
10673 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
10674 (ns_defined_color, ns_color_to_lisp): Declare.
10675 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
10676 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
10677 it's accepted even with USE_LISP_UNION_TYPE.
10678 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
10679 (update_frame_tool_bar): Remove apparently obsolete tests for
10680 non-integerness of f->tool_bar_lines.
10681 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
10682 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
10683 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
10684 (nsfont_open): Don't confuse NULL for Qnil.
10685 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
10686 * menu.h (find_and_call_menu_selection):
10687 * menu.c (find_and_call_menu_selection): Use just int for vector size.
10688 (find_and_return_menu_selection): Always return something.
10689 * frame.h: Include dispextern.h for Display_Info.
10690 (display_x_get_resource): Declare.
10691
106922008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
10693
10694 * syntax.c: Remove stdio.h include accidentally introduced in
10695 Emacs.app commit.
10696 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
10697 NS_IMPL_COCOA.
10698 * keyboard.c (handle_async_input, input_available_signal): Remove
10699 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
10700
107012008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
10702
10703 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
10704 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
10705 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
10706 Use SDATA.
10707
10708 * keymap.c: Remove all NS-specific code.
10709 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
10710 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
10711 where_is_preferred_modifier, return a different value depending on how
10712 preferred is the binding.
10713 (where_is_internal): Adjust accordingly.
10714 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
10715 Adjust to new preferred_sequence_p.
10716 (syms_of_keymap): Declare `where-is-preferred-modifier'.
10717 * keyboard.c (parse_solitary_modifier): Not static any more.
10718 * keyboard.h (parse_solitary_modifier): Declare.
10719
107202008-07-16 Andreas Schwab <schwab@suse.de>
10721
10722 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
10723 of easymenu.
10724
107252008-07-16 Chong Yidong <cyd@stupidchicken.com>
10726
10727 * xdisp.c (move_it_in_display_line): Account for word wrap, so
10728 that we don't move off the line.
10729
107302008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
10731
10732 * keyboard.c (Qsuper): Remove.
10733 (parse_menu_item): Don't call where_is_internal specially for NS.
10734
107352008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10736
10737 * s/gnu-linux.h: Remove boilerplate comments.
10738
10739 * m/alpha.h (__ELF__): Consolidate conditions.
10740
10741 * m/m68k.h (linux): Use GNU_LINUX instead.
10742 Remove boilerplate comments.
10743
10744 * m/intel386.h: Undo refactoring from previous change.
10745 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
10746 too, remove dead code.
10747 (linux): Use GNU_LINUX instead.
10748
107492008-07-16 Jason Rumney <jasonr@gnu.org>
10750
10751 * w32gui.h: Repeat 26 June changes lost by last change.
10752
107532008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10754
10755 * systty.h: Remove code for Aix on 386, unsupported platform.
10756
10757 * s/ms-w32.h: Remove boilerplate comments.
10758 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
10759
10760 * s/gnu-linux.h (TERM): Remove support.
10761 (HAVE_SYSVIPC): Remove, unused.
10762 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
10763 for this system.
10764
10765 * process.c: Remove support for IRIS, unused.
10766 Remove support for TERM, not relevant anymore.
10767
10768 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
10769 used with the definition.
10770
10771 * s/aix4-2.h (static): Do not undef.
10772
10773 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
10774 only used on Aix.
10775 (HAVE_SYSVIPC): Remove, unused.
10776
10777 * m/hp800.h (CANNOT_DUMP): Do not undef.
10778
10779 * m/alpha.h: Fix comment.
10780
10781 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
10782 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
10783 used by this configuration.
10784 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
10785 * unexec.c: Remove code depending on HPUX and
10786 USG_SHARED_LIBRARIES, not used with this file. Remove code
10787 depending on IRIS, unused. Remove if 0-ed code.
10788
10789 * s/template.h: Remove comments about static.
10790
10791 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
10792 Remove if 0-ed code.
10793 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
10794 were the same as the default.
10795 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
10796 Remove boilerplate comments.
10797 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
10798 (HAVE_SYSVIPC): Remove, unused.
10799 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
10800
10801 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10802 Remove boilerplate comments.
10803 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10804 Remove boilerplate comments.
10805 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10806 Remove boilerplate comments.
10807 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
10808
10809 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
10810 USG systems which do not use DATA_SEG_BITS.
10811 Refactor code. Remove boilerplate comments.
10812
10813 * m/ibms390.h:
10814 * m/m68k.h:
10815 * s/bsd-common.h:
10816 * s/cygwin.h:
10817 * s/darwin.h:
10818 * s/freebsd.h:
10819 * s/gnu.h:
10820 * s/msdos.h: Remove boilerplate comments.
10821
10822 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 10823 do not use this file.
aac0c6e3
MR
10824 (IRIS_4D): Remove, unused.
10825
10826 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 10827 do not use this file.
aac0c6e3
MR
10828 (SIGN_EXTEND_CHAR):
10829 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
10830 * unexmips.c: Remove file, unused.
10831
10832 * editfns.c (Fuser_full_name): Replace the only use of
10833 USER_FULL_NAME with its value.
10834 * config.in: Regenerate.
10835
108362008-07-16 David Reitter <david.reitter@gmail.com>
10837
10838 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
10839 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
10840
108412008-07-16 Glenn Morris <rgm@gnu.org>
10842
10843 * emacs.c (system-type): Doc fix.
10844
108452008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
10846
10847 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
10848 If the cache doesn't work, let's fix it, rather than work around it.
10849
108502008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10851
10852 * Makefile.in: Correct additions for nsfont.o in last commit.
10853 * nsfont.m: New file (forgot last commit).
10854
108552008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
10856
10857 * callproc.c (set_initial_environment): Initialize
10858 Vprocess_environment under CANNOT_DUMP (fixes crash when
10859 batch-compiling for bootstrap).
10860
108612008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 10862 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
10863
10864 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
10865 fix crash due to different init order.
10866
108672008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10868
10869 Changes and additions for NeXTstep windowing system (Cocoa and
10870 GNUstep) support.
10871
10872 * Makefile.in:
10873 * config.in: Support defines and build commands for NS port.
10874 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
10875 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
10876 * dispextern.h: Include nsgui.h and add needed typedefs under NS
10877 windowing.
10878 (struct face): Add synth_ital field.
10879 * dispnew.c: Include nsterm.h when compiling under NS windowing.
10880 (init_display): Initialize Vinitial_window_system to "ns" when so
10881 compiled.
10882 * emacs.c: Include GSConfig.h when compiling under GNUstep.
10883 (display_arg): Use under NS.
10884 (main): Under NS, allocate autorelease pool and handle command line
10885 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
10886 (standard_args): Add NS-specific args.
10887 (shut_down_emacs): Shut down NS terminal if compiled under NS.
10888 * font.c (DEFAULT_ENCODING): New variable.
10889 (font_find_for_lface): Use it.
10890 (syms_of_font): Load syms_of_nsfont under NS.
10891 * font.h: Declare nsfont_driver when compiled under NS.
10892 * fontset.c: When compiling under NS, include nsterm.h.
10893 (fontset_from_font): Autoconstruct fontset under NS.
10894 * frame.c (various): Under NS, include nsterm.h, add Qns window system
10895 symbol, document and use it.
10896 (do_switch_frame): When for_deletion under Cocoa, add
10897 Fraise_frame(Qnil).
10898 (x_set_frame_parameters): Ensure font attribute changes are picked up.
10899 (x_get_arg): Allow "yes" and "no" as boolean values.
10900 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
10901 Qright under Cocoa.
10902 (focus-follows-mouse): Default to 0 under NS.
10903 * frame.h (enum output_method): Add output_ns.
10904 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
10905 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
10906 (FRAME_WINDOW_P): NS-specific definition.
10907 * fringe.c (max_used_fringe_bitmap): Make public.
10908 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
10909 (getloadavg): Use NeXT code under descendant OS's.
10910 * image.c (includes and header section, x_create_bitmap_from_data)
10911 (x_create_bitmap_from_file, free_bitmap_record, image_background)
10912 (image_background_transparent, x_clear_image_1)
10913 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
10914 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
10915 (x_to_xcolors, x_from_xcolors, x_disable_image)
10916 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
10917 other GUIs, including XPM support using code originally written for
10918 Carbon GUI.
10919 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
10920 using NS API.
10921 (image_ascent): Use font metrics macros instead of direct struct field
10922 access.
10923 * keyboard.c (includes): Add nsterm.h when compiling under NS.
10924 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
10925 Also, handle NS as GTK for menu bar purposes.
10926 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
10927 toolkit where they differ.
10928 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
10929 use cachelist, still needed under NS.
10930 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
10931 (struct widget_value): Define it here for menu.c.
10932 * keymap.c (includes): Include modifier internals.
10933 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
10934 NS.
10935 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
10936 support for preferring sequences using certain modifiers, specified by
10937 the FIRSTONLY argument.
10938 * lisp.h (hash_remove): Rename to avoid name clash when compiling
10939 under NS GNUstep implementation.
10940 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
10941 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
10942 * menu.c: Include nsterm.h under NS.
10943 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
10944 (free_menubar_widget_tree_value, update_submenu_strings)
10945 (find_and_call_menu_selection): Treat NS as X and NT.
10946 (find_and_return_menu_selection): New function, used for popup menus.
10947 * nsgui.h:
10948 * nsterm.h:
10949 * nsfns.m:
10950 * nsimage.m:
10951 * nsmenu.m:
10952 * nsselect.m:
10953 * nsterm.m: New files.
10954 * process.c (wait_reading_process_output): Under NS, call ns_select()
10955 instead of plain select().
10956 * syntax.c (char_quoted): Under NS, avoid a crash when called near
10957 beginning of buffer.
10958 * sysselect.h (init_process): Rename when compiling under Cocoa to
10959 avoid name conflict.
10960 * termhooks.h (display_info): Add ns_display_info to union.
10961 * terminal.c (Fterminal_live_p): Add ns to terminal types.
10962 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
10963 COCOA environment.
10964 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
10965 unexec() signature. (Note, this will dump, but the resulting file
10966 crashes; unexosx is used instead; keeping around for reference and
10967 possible aid in getting dump working under GNUstep.)
10968 * w32gui.h (button_type, widget_value): Remove definitions (now in
10969 keyboard.h).
10970 * window.c: Include nsterm.h when compiling under NS.
10971 * xdisp.c (includes): Include nsterm.h when compiling under NS.
10972 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
10973 other GUI windowing systems.
10974 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
10975 GTK.
10976 (x_consider_frame_title): Under NS, set icon type and frame
10977 modified-state indicator; use ns_set_name_as_filename() when using
10978 formatted title.
10979 (update_window_cursor): Make public when compiling under NS.
10980 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
10981 (hourglass_atimer, Vhourglass_delay
10982 * xfaces.c (header section, init_frame_faces, clear_font_table)
10983 (defined_color, unload_color, x_face_list_fonts)
10984 (prepare_face_for_display): Add NS support parallel to other GUIs.
10985 Emulate GCs like other non-X GUIs.
10986 (split_font_name): Don't lowercase font name under NS.
10987 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
10988 under NS.
10989 * s/darwin.h: Add support for compilation under NS.
10990
109912008-07-15 Jason Rumney <jasonr@gnu.org>
10992
10993 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
10994 (w32_show_hourglass): Rename from show_hourglass.
10995 (w32_hide_hourglass): Rename from hide_hourglass.
10996 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
10997 (Vhourglass_delay): Declare extern.
10998 (hourglass_started): Remove.
10999
11000 * xdisp.c (Vhourglass_delay): Remove static.
11001 (hourglass_started, start_hourglass, cancel_hourglass):
11002 Don't include these versions on WINDOWSNT.
11003
110042008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11005
11006 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
11007 variables (formerly in xfns.c).
11008 (show_hourglass, hide_hourglass): New prototypes (same).
11009 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
11010 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
11011 in xfns.c).
11012 (syms_of_xdisp): Declare/initialize display-hourglass,
11013 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
11014 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
11015 formerly in xfns.c.
11016 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
11017 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
11018 (start_hourglass, cancel_hourglass): Remove.
11019 (show_hourglass, hide_hourglass): Remove prototypes and static
11020 modifiers.
11021 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
11022 hourglass_atimer, hourglass_shown_p declaration/initialization.
11023 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
11024 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
11025 (start_hourglass, cancel_hourglass): Remove.
11026 (show_hourglass, hide_hourglass): Remove prototypes and static
11027 modifiers.
11028 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
11029 hourglass_atimer, hourglass_shown_p declaration/initialization.
11030 * w32fns.c (display_hourglass_p, Vhourglass_delay)
11031 (DEFAULT_HOURGLASS_DELAY): Remove.
11032 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
11033 hourglass_shown_p declaration/initialization.
11034
110352008-07-14 Jason Rumney <jasonr@gnu.org>
11036
11037 * w32fns.c (w32_get_arg): Remove wrapper function.
11038 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
11039 directly.
11040 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
11041
110422008-07-14 Kenichi Handa <handa@m17n.org>
11043
11044 * xfont.c (xfont_open): Add workaround for X's bug.
11045
110462008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
11047
11048 * fontset.c: Include <stdio.h> unconditionally.
11049
110502008-07-13 Michael Albinus <michael.albinus@gmx.de>
11051
11052 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
11053 for filtering.
11054
110552008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
11056
11057 * s/vms.h: Use __GNUC__ instead of _GNUC_.
11058
11059 * m/macppc.h:
11060 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
11061
11062 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
11063 (SPECIAL_EMACS_INT):
11064 * m/ia64.h (SPECIAL_EMACS_INT):
11065 * m/amdx86-64.h (SPECIAL_EMACS_INT):
11066 * s/gnu.h (NLIST_STRUCT):
11067 * s/aix4-2.h (X11R5_INHIBIT_I18N):
11068 * s/gnu-linux.h (LINUX):
11069 * s/msdos.h (HAVE_FACES):
11070 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
11071
11072 * systty.h:
11073 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
11074 anymore.
11075
110762008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
11077
11078 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
11079 always defined as int.
11080
11081 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
11082 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
11083 * s/gnu-linux.h (HAVE_WAIT_HEADER):
11084 * s/freebsd.h (HAVE_WAIT_HEADER):
11085 * s/bsd-common.h (HAVE_UNION_WAIT):
11086 * s/aix4-2.h (HAVE_WAIT_HEADER):
11087 * m/mips.h (HAVE_UNION_WAIT):
11088 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
11089 (COFF, static): Do not define, they are undefined later in the file.
11090
11091 * process.c (update_status): Don't use a union.
11092 (status_convert):
11093 (sigchld_handler): Use int instead of WAITTYPE.
11094
110952008-07-12 Chong Yidong <cyd@stupidchicken.com>
11096
11097 * indent.c (Fvertical_motion): Restore hscroll before moving to
11098 goal column.
11099
111002008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
11101
11102 * lisp.h: Remove left over code.
11103
111042008-07-11 Andreas Schwab <schwab@suse.de>
11105
11106 * lisp.h: Fix logic in last change.
11107
11108 * menu.h: New file.
11109 * menu.c: Include it.
11110 * xmenu.c: Likewise.
11111 * Makefile.in: Update dependencies.
11112
111132008-07-11 Kenichi Handa <handa@m17n.org>
11114
11115 * fontset.c (fontset_from_font): Cancel the previous change.
11116
111172008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
11118
11119 * lisp.h:
11120 * w32heap.c:
11121 * emacs.c:
11122 * alloc.c: Replace all references of NO_UNION_TYPE with
11123 USE_LISP_UNION_TYPE.
11124
11125 * m/xtensa.h (NO_UNION_TYPE):
11126 * m/vax.h (NO_UNION_TYPE):
11127 * m/template.h (NO_UNION_TYPE):
11128 * m/sparc.h (NO_UNION_TYPE):
11129 * m/mips.h (NO_UNION_TYPE):
11130 * m/macppc.h (NO_UNION_TYPE):
11131 * m/m68k.h (NO_UNION_TYPE):
11132 * m/iris4d.h (NO_UNION_TYPE):
11133 * m/intel386.h (NO_UNION_TYPE):
11134 * m/ibms390x.h (NO_UNION_TYPE):
11135 * m/ibms390.h (NO_UNION_TYPE):
11136 * m/ibmrs6000.h (NO_UNION_TYPE):
11137 * m/ia64.h (NO_UNION_TYPE):
11138 * m/hp800.h (NO_UNION_TYPE):
11139 * m/arm.h (NO_UNION_TYPE):
11140 * m/amdx86-64.h (NO_UNION_TYPE):
11141 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
11142 defining it the same.
11143
111442008-07-10 Chong Yidong <cyd@stupidchicken.com>
11145
11146 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
11147
111482008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
11149
11150 * fileio.c:
50426a04 11151 * sysdep.c:
aac0c6e3
MR
11152 * systty.h:
11153 * m/ibmrs6000.h:
11154 * m/iris4d.h:
11155 * s/aix4-2.h:
11156 * s/freebsd.h:
11157 * s/gnu-linux.h:
11158 * s/hpux10-20.h:
11159 * s/hpux11.h:
11160 * s/netbsd.h:
11161 * s/sol2-3.h:
11162 * s/sol2-4.h:
11163 * s/sol2.h:
11164 * s/usg5-4.h:
11165 * s/vms.h: Remove references to unused variables.
11166
111672008-07-10 Andreas Schwab <schwab@suse.de>
11168
11169 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
11170 pattern before matching the generic family.
11171
111722008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
11173
11174 * unexec.c:
11175 * s/vms.h:
11176 * s/usg5-4-2.h:
11177 * s/sol2-5.h:
11178 * s/freebsd.h:
11179 * s/darwin.h: Remove dead code.
11180
11181 * m/template.h:
11182 * m/sparc.h:
11183 * m/mips.h:
11184 * m/m68k.h:
11185 * m/iris4d.h:
11186 * m/intel386.h:
11187 * m/ibms390x.h:
11188 * m/ibms390.h:
11189 * m/ia64.h:
11190 * m/hp800.h:
11191 * m/arm.h:
11192 * m/amdx86-64.h: Remove dead code and references to unused
11193 and compiler defined symbols.
11194
11195 * unexmips.c:
11196 * unexelf.c: Remove references to desupported systems.
11197
11198 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
11199
11200 * m/powermac.h: Remove boilerplate comments.
11201 (NO_REMAP): Remove unused definition.
11202
11203 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
11204 define them.
11205
112062008-07-10 Kenichi Handa <handa@m17n.org>
11207
11208 * xfont.c (xfont_open): Log the reason of failure.
11209
112102008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
11211
11212 * fontset.c (fontset_get_font_group):
11213 * font.c (font_check_otf): Specify argument types.
11214
112152008-07-09 Kenichi Handa <handa@m17n.org>
11216
11217 * coding.c (detect_coding_utf_8): Set detect_info->found only when
11218 non-ASCII char is found.
11219
11220 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
11221 (reorder_font_vector): Change the arg preferred_family to font.
11222 Prefer the spec matching with font.
11223 (fontset_get_font_group): New function.
11224 (fontset_find_font): Change the format of an element of a realized
11225 fontset. Use fontset_get_font_group.
11226 (fontset_font): Try the current fontset, the default fontset, the
11227 fallbacks of the current fontset, and the fallbacks of the default
11228 fontset in this order.
11229 (face_for_char): Delete the shortcut to use the current font.
11230 (fontset_from_font): Don't set fonts for Latin in the fontset.
11231
11232 * font.h (font_make_object, font_match_p): Adjust prototypes.
11233
11234 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
11235
11236 * font.c (font_make_object): New arg entity and pixelsize.
11237 (font_check_otf_features, font_check_otf): New functions.
11238 (font_match_p): Check :lang, :script, and :otf properties.
11239
11240 * xfont.c (xfont_open): Adjust it for the change of
11241 font_make_object.
11242 (xfont_text_extents): Fix initial setting of metrics.
11243
11244 * ftfont.c (struct ftfont_info): New member index, delete member
11245 fc_charset_idx. Make the member order compatible with struct
11246 xftfont_info.
11247 (fc_charset_table): Change charset names to registry names.
11248 (ftfont_pattern_entity): Delete the args registry and
11249 fc_charset_idx. Change the value of :font-entity property
11250 to (FONTNAME . INDEX). Always set :registry property to
11251 `iso10646-1'.
11252 (struct ftfont_cache_data): New struct.
11253 (ftfont_lookup_cache): New arg for_face.
11254 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
11255 (ftfont_driver): Set the member otf_capability.
11256 (ftfont_get_charset): Adjust it for the change of
11257 fc_charset_table.
11258 (OTF_TAG_SYM): New macro.
11259 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
11260 for the change of fc_charset_table.
11261 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
11262 ftfont_pattern_entity. Add FC_INDEX to objset.
11263 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
11264 and ftfont_pattern_entity.
11265 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
11266 font_make_object, struct ftfont_info.
11267 (ftfont_has_char): Use ftfont_get_fc_charset.
11268 (ftfont_otf_features, ftfont_otf_capability): New functions.
11269 (ftfont_shape): Use ftfont_get_otf.
11270 (ftfont_text_extents): Fix initial setting of metrics.
11271
11272 * xftfont.c (struct xftfont_info): New member ft_size. Make the
11273 member order compatible with struct ftfont_info.
11274 (xftfont_open): Add FC_CHARSET to the pattern. Set
11275 xftfont_info->ft_size. Don't unlock the face. Check BDF
11276 properties if appropriate.
11277 (xftfont_close): Unlock the face.
11278 (xftfont_anchor_point, xftfont_shape): Deleted.
11279 (syms_of_xftfont): Don't set members anchor_point and shape of
11280 xftfont_driver.
11281
11282 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
11283 font_make_object.
11284
11285 * w32font.c (w32font_open): Adjust it for the change of
11286 font_make_object.
11287 (w32font_open_internal): Don't set properties of font_object here.
11288
112892008-07-08 Chong Yidong <cyd@stupidchicken.com>
11290
11291 * macfns.c (x_create_tip_frame):
11292 * w32fns.c (x_create_tip_frame):
11293 * xfns.c (x_create_tip_frame): Pass parameter argument to
11294 face-set-after-frame-default.
11295
11296 * xfaces.c (Finternal_merge_in_global_face): Save merged
11297 attributes for the default face back into the face vector.
11298
112992008-07-08 Andreas Schwab <schwab@suse.de>
11300
11301 * fontset.h: Declare fontset_from_font. Don't declare
11302 new_fontset_from_font and fontset_from_font_name.
11303 * xterm.c: Include "fontset.h".
11304 * Makefile.in (xterm.o): Update dependencies.
11305
113062008-07-08 Glenn Morris <rgm@gnu.org>
11307
11308 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
11309 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
11310
113112008-07-07 Chong Yidong <cyd@stupidchicken.com>
11312
11313 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
11314 (x_set_frame_parameters): Don't bind it.
11315
113162008-07-07 Juanma Barranquero <lekktu@gmail.com>
11317
11318 * w32fns.c (map_w32_filename): Declare extern.
11319
113202008-07-07 Jason Rumney <jasonr@gnu.org>
11321
11322 * w32term.c (WS_EX_LAYERED): Define if not already.
11323
113242008-07-06 Chong Yidong <cyd@stupidchicken.com>
11325
11326 * xfaces.c (set_font_frame_param): Don't try to set the font
11327 parameter if it is still unspecified in the lface.
11328
113292008-07-05 Chong Yidong <cyd@stupidchicken.com>
11330
11331 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
11332 face if it didn't already exist.
11333
11334 * xdisp.c (try_window_id): Give up if word-wrapping is on.
11335
113362008-07-05 Andreas Schwab <schwab@suse.de>
11337
11338 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
11339
113402008-07-05 Chong Yidong <cyd@stupidchicken.com>
11341
11342 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
11343 word-wrapping.
11344 (IT_DISPLAYING_WHITESPACE): New macro.
11345 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
11346 when word-wrapping. Simplify word-wrapping logic. Use correct
11347 pixel positions when saving copies of the iterator.
11348 (display_line): Use proper wrap point if the last character on a
11349 line was preceded by whitespace.
11350
113512008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
11352
11353 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
11354
113552008-07-04 Kenichi Handa <handa@m17n.org>
11356
11357 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
11358
11359 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
11360
113612008-07-02 Jason Rumney <jasonr@gnu.org>
11362
11363 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 11364 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
11365
11366 * xdisp.c (next_element_from_display_vector): Move assignment out
11367 of if statement.
11368
113692008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
11370
11371 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
11372
11373 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
11374 (syms_of_fileio): Initialize and export them.
11375 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
11376
11377 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
11378 (Fsystem_move_file_to_trash): New function.
11379 (syms_of_w32fns): Export it to lisp.
11380
113812008-07-01 Jason Rumney <jasonr@gnu.org>
11382
11383 * w32font.c (w32font_text_extents): Don't count overhang as part
11384 of width.
11385
113862008-06-30 Miles Bader <miles@gnu.org>
11387
11388 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
11389 Add `avoid_cursor_p' field.
11390
11391 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
11392 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
11393 (append_glyph, append_composite_glyph, produce_image_glyph)
11394 (append_stretch_glyph): Initialize avoid_cursor_p.
11395 (get_it_property): Rename from `get_line_height_property'.
11396 (x_produce_glyphs): Use get_it_property.
11397 (handle_line_prefix, push_display_prop): New functions.
11398 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
11399 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
11400 New variables.
11401 (syms_of_xdisp): Initialize them.
11402
114032008-06-30 Kenichi Handa <handa@m17n.org>
11404
11405 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
11406 XftDefaultSubstitute (they are called in XftFontMatch).
11407 (xftfont_open): Fix args to ftfont_font_format.
11408
11409 * ftfont.c (fc_charset_table): New member lang.
11410 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 11411 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
11412 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
11413 (ftfont_open): Fix args to ftfont_font_format.
11414 (ftfont_font_format): New arg filename.
11415
114162008-06-30 Chong Yidong <cyd@stupidchicken.com>
11417
11418 * xfaces.c (Finternal_merge_in_global_face): If default face was
11419 modified, realize it again. Update the font face attribute.
11420
114212008-06-29 Jason Rumney <jasonr@gnu.org>
11422
11423 * w32term.c (x_set_frame_alpha): Fix logic.
11424
114252008-06-29 Kenichi Handa <handa@m17n.org>
11426
11427 * fontset.c (Finternal_char_font): Return font-object instead of
11428 font-name.
11429
11430 * composite.c (get_composition_id): Fix the width calculation for TAB.
11431
114322008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
11433
11434 * indent.c (Fvertical_motion): Properly handle float column arg.
11435
114362008-06-28 Jason Rumney <jasonr@gnu.org>
11437
11438 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
11439 (pfnSetLayeredWindowAttributes): New function pointer.
11440 (w32_initialize): Initialize it when supported.
11441 (x_set_frame_alpha): New function.
11442
11443 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
11444 (w32_frame_parm_handlers): Set alpha handler.
11445
11446 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
11447
114482008-06-27 Jason Rumney <jasonr@gnu.org>
11449
11450 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
11451 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
11452 (w32_to_x_charset, x_to_w32_charset)
11453 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
11454 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
11455 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
11456 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
11457 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
11458 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
11459 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
11460 (Qw32_charset_unicode): Remove.
11461 (syms_of_w32fns): Update for above changes.
11462
11463 * w32font.c (w32_to_x_charset, x_to_w32_charset)
11464 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
11465 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
11466 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
11467 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
11468 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
11469 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
11470 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
11471 (syms_of_w32font): Update for above changes.
11472
114732008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
11474
11475 * s/usg5-4.h: Fix previous change: keep the correct branch of a
11476 removed #if.
11477 (USG_SHARED_LIBRARIES): Remove duplicate definition.
11478
114792008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 11480 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
11481
11482 * makefile.w32-in (LOCAL_FLAGS):
11483 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
11484
11485 * sysdep.c (_spawnlp, _getpid):
11486 Declare with explicit _cdecl instead of _CRTAPI1.
11487
11488 * editfns.c (Fget_internal_run_time):
11489 Check for WINDOWSNT with #ifdef, not #if.
11490
114912008-06-26 Jason Rumney <jasonr@gnu.org>
11492
11493 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
11494
11495 * w32term.c (x_draw_glyph_string_foreground)
11496 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
11497 Use FONT_HANDLE macro.
11498 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
11499
11500 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
11501 (uniscribe_encode_char): Use FONT_HANDLE macro.
11502
11503 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
11504 (w32font_text_extents): Use precast w32_font.
11505 (w32font_close): Free cached metrics.
11506 (w32font_open_internal): Allocate space for name on stack.
11507
115082008-06-26 Chong Yidong <cyd@stupidchicken.com>
11509
11510 * xdisp.c (extend_face_to_end_of_line): Fix last change.
11511
115122008-06-26 Jason Rumney <jasonr@gnu.org>
11513
11514 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
11515 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
11516
115172008-06-26 Juanma Barranquero <lekktu@gmail.com>
11518
11519 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
11520
115212008-06-26 Jason Rumney <jasonr@gnu.org>
11522
11523 * w32bdf.c, w32bdf.h: Remove obsolete files.
11524
11525 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
11526
11527 * w32gui.h: Don't include w32bdf.h.
11528 (XCharStruct, enum w32_char_font_type, W32FontStruct):
11529 Remove obsolete font support.
11530
11531 * w32font.h (struct w32font_info): Remove compat_w32_font.
11532 Add hfont member.
11533 (FONT_COMPAT): Remove obsolete macro.
11534
11535 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
11536 (w32font_encode_char, w32font_text_extents): Use new hfont member.
11537 (w32font_open_internal): Remove compat code. Set new hfont member.
11538 (Fx_select_font): Use new hfont member.
11539
11540 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
11541 (uniscribe_encode_char): Use new hfont member.
11542
11543 * w32term.c (x_draw_glyph_string_foreground)
11544 (x_draw_composite_glyph_string_foreground): Use new hfont member.
11545 (x_draw_glyph_string): Use metrics in w32font_info.
11546
115472008-06-26 Kenichi Handa <handa@m17n.org>
11548
11549 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
11550
115512008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
11552
11553 * unexnext.c:
11554 * m/ews4800.h:
11555 * m/hp9000s300.h:
11556 * m/ibm370aix.h:
11557 * m/mips-siemens.h:
11558 * m/ncr386.h:
11559 * m/next.h:
11560 * m/pmax.h:
11561 * m/powerpcle.h:
11562 * m/tandem-s2.h:
11563 * s/386bsd.h:
11564 * s/bsd386.h:
11565 * s/bsd4-1.h:
11566 * s/bsd4-2.h:
11567 * s/bsdos2-1.h:
11568 * s/bsdos2.h:
11569 * s/bsdos3.h:
11570 * s/bsdos4.h:
11571 * s/nextstep.h:
11572 * s/ultrix4-3.h:
11573 * s/usg5-0.h:
11574 * s/usg5-2-2.h:
11575 * s/usg5-2.h:
11576 * s/usg5-4-3.h:
11577 * s/ux4800.h:
11578 * s/uxpds.h:
11579 * s/uxpv.h: Remove support for obsolete systems.
11580 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 11581 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
11582 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
11583 Remove, insert contents in s/aix4-2.h.
11584 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
11585 * s/bsd4-3.h: Rename to ...
11586 * s/bsd-common.h: ... this.
11587 * data.c:
11588 * doc.c:
11589 * ecrt0.c:
11590 * emacs.c:
11591 * fileio.c:
11592 * floatfns.c:
11593 * keyboard.c:
11594 * mem-limits.h:
11595 * print.c:
11596 * process.c:
11597 * sysdep.c:
11598 * syssignal.h:
11599 * systty.h:
11600 * syswait.h:
11601 * term.c:
11602 * unexec.c:
11603 * unexelf.c:
11604 * unexhp9k800.c:
11605 * m/hp800.h:
11606 * m/ibmrs6000.h:
11607 * m/mips.h:
11608 * m/vax.h:
11609 * s/darwin.h:
11610 * s/freebsd.h:
11611 * s/gnu.h:
11612 * s/ms-w32.h:
11613 * s/msdos.h:
11614 * s/netbsd.h:
11615 * s/template.h: Remove references to obsolete variables.
11616
11617 * Makefile.in: Add dependencies for all unexec files.
11618 (admindir): Remove unused variable.
11619 (UNEXEC_SRC): Remove references.
11620
116212008-06-25 Chong Yidong <cyd@stupidchicken.com>
11622
11623 * xfns.c (x_default_font_parameter): If Xft is available, first
11624 try Monospace-12 for the default font.
11625
116262008-06-25 Jason Rumney <jasonr@gnu.org>
11627
11628 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
11629
116302008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
11631
11632 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
11633
11634 * buffer.c (syms_of_buffer): Remove default-word-wrap.
11635
116362008-06-25 Juanma Barranquero <lekktu@gmail.com>
11637
11638 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
11639 <scroll-conservatively>: Fix typo in docstring.
11640
11641 * xselect.c (Fx_send_client_event): Doc fix.
11642
116432008-06-25 Kenichi Handa <handa@m17n.org>
11644
11645 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
11646
11647 * font.c (font_parse_fcname): Remove unused variables.
11648 (font_sort_entites): Delete the arg SPEC. Caller changed.
11649 Fix for the case of ! best_only.
11650 (font_delete_unmatched): Check DPI and AVGWIDTH too.
11651
11652 * lisp.h (Fstring_to_unibyte): EXFUN it.
11653
11654 * character.h (str_to_unibyte): Extern it.
11655
11656 * character.c (str_to_unibyte): New function.
11657
11658 * fns.c (Fstring_to_unibyte): New function.
11659 (syms_of_fns): Defsubr it.
11660
116612008-06-24 Kenichi Handa <handa@m17n.org>
11662
11663 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
11664 DPI too.
11665 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
11666
116672008-06-24 Andreas Schwab <schwab@suse.de>
11668
11669 * Makefile.in (${lispsource}loaddefs.el): Rename from
11670 ../lisp/loaddefs.el.
11671 (bootstrap-clean): Do what distclean does but don't remove
11672 Makefile.
11673 (distclean): Depend on bootstrap-clean and remove Makefile.
11674
116752008-06-24 Chong Yidong <cyd@stupidchicken.com>
11676
11677 * buffer.h (struct buffer): New member word_wrap.
11678
11679 * buffer.c (syms_of_buffer): New variables default-word-wrap and
11680 word-wrap.
11681 (init_buffer_once): Initialize them.
11682
11683 * dispextern.h (struct it): Replace bool truncate_lines_p with a
11684 line_wrap enum possessing three possible values.
11685
11686 * termopts.h: Replace truncate_partial_width_windows with
11687 Vtruncate_partial_width_windows.
11688
11689 * dispnew.c (direct_output_for_insert): Avoid direct output when
11690 inserting a space with word wrap on.
11691
11692 * indent.c (compute_motion): Obey integer values of
11693 truncate-partial-width-windows.
11694
11695 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
11696 replacing truncate_partial_width_windows.
11697 (init_iterator): If Vtruncate_partial_width_windows is an integer,
11698 truncate only if the window width is below that integer.
11699 (start_display, resize_mini_window, produce_stretch_glyph)
11700 (display_string, move_it_in_display_line_to): Use line_wrap.
11701 (back_to_previous_visible_line_start, reseat_1): Reset
11702 string_from_display_prop_p.
11703 (display_line): Extend default face to end of line when wrapping.
11704
117052008-06-24 Kim F. Storm <storm@cua.dk>
11706
11707 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
11708 to wrap continued lines at word boundaries.
11709
117102008-06-24 Jason Rumney <jasonr@gnu.org>
11711
11712 * font.c (Ffont_face_attributes): Multiply pixel size before point
11713 conversion to avoid multiplying rounding error.
11714
117152008-06-23 Jason Rumney <jasonr@gnu.org>
11716
11717 * w32term.c (x_draw_glyph_string_background)
11718 (x_draw_glyph_string): Remove old bdf font code.
11719
11720 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
11721
117222008-06-22 Kenichi Handa <handa@m17n.org>
11723
11724 * font.c (font_find_for_lface): Try the adstyle specified in
11725 the property of LFACE_FONT of LFACE (if any).
11726
117272008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 11728 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
11729
11730 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
11731
117322008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
11733
11734 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
11735 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
11736 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
11737 (witness-emacs): Remove.
11738 (lisp, shortlisp): Move loaddefs.el earlier.
11739 (mostlyclean): Forget about witness-emacs.
11740
117412008-06-22 Glenn Morris <rgm@gnu.org>
11742
11743 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
11744 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
11745
117462008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11747
11748 * Makefile.in (PRECOMP): Remove.
11749 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
11750 (witness-emacs): Run `compile-first'.
11751 (.el.elc): Use the new compile-onefile target.
11752
117532008-06-21 Kenichi Handa <handa@m17n.org>
11754
11755 * xftfont.c (xftfont_open): Handle QCembolden only when
11756 FC_EMBOLDEN is defined.
11757
117582008-06-21 Andreas Schwab <schwab@suse.de>
11759
11760 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
11761 (.el.elc): Likewise.
11762
117632008-06-21 Miles Bader <miles@gnu.org>
11764
11765 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
11766 build dir, not the lisp source dir.
11767
117682008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11769
11770 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
11771 (bootstrapclean): Remove.
11772 (.el.elc): New rule.
11773 (PRECOMP): New var.
11774 (../lisp/subdirs.el): Remove.
11775 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
11776 (witness-emacs): New target.
11777 (mostlyclean): Remove witness-emacs as well.
11778 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
11779 Add witness-emacs dependency.
11780
117812008-06-20 Chong Yidong <cyd@stupidchicken.com>
11782
11783 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
11784 defined by the font.
11785
117862008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11787
11788 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
11789 (bootstrap-clean): New target that keeps TAGS around.
11790 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
11791 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
11792
117932008-06-20 Jason Rumney <jasonr@gnu.org>
11794
11795 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
11796 Remove obsolete font code.
11797
11798 * w32font.c (font_matches_spec): Use csb bitfield from font signature
11799 to determine language support.
11800
118012008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11802
11803 * sysdep.c (cfsetspeed): New fun extracted from the code.
11804 (cfmakeraw): Move before first use.
11805
118062008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
11807
11808 * sysdep.c (cfmakeraw): Provide fallback implementation.
11809 (serial_configure): Provide fallback implementation of cfsetspeed.
11810
118112008-06-20 Kenichi Handa <handa@m17n.org>
11812
11813 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
11814 the pattern.
11815
11816 * fontset.c (fontset_from_font): Copy font_spec before changing
11817 the elements.
11818
11819 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
11820
118212008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11822
11823 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
11824 for explicit `font' parameters.
11825
11826 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
11827
118282008-06-19 Kenichi Handa <handa@m17n.org>
11829
11830 * frame.c: Include <ctype.h>.
11831 (x_set_font_backend): Allow spacing characters in the X resource
11832 for FontBackend.
11833
118342008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
11835
11836 * w32fns.c, xfns.c (Qfont_param): New var.
11837 (syms_of_w32fns): Initialize it.
11838 (x_default_font_parameter): Record explicit `font' into
11839 `font-parameter'.
11840
118412008-06-18 Kenichi Handa <handa@m17n.org>
11842
11843 * font.c (font_parse_xlfd): Fix previous change.
11844 (font_parse_fcname): Don't use :fc-unknown-spec.
11845 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
11846 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
11847 (font_add_log): Prepend the driver name to the resulting fonts.
11848
11849 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
11850 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
11851 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
11852
11853 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
11854 (QCembolden): New variables.
11855 (syms_of_xftfont): DEFSYM them.
11856 (xftfont_open): Call XftFontMatch. Don't trust the result of
11857 XftTextExtents8 if the pixel_size is less than 5.
11858
118592008-06-18 Andreas Schwab <schwab@suse.de>
11860
11861 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
11862 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
11863
118642008-06-18 Jason Rumney <jasonr@gnu.org>
11865
11866 * w32font.c (w32font_list, w32font_match): Add logging.
11867
11868 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
11869
118702008-06-17 Chong Yidong <cyd@stupidchicken.com>
11871
11872 * font.c (font_parse_fcname): Store divider characters for
11873 unknown-spec list. For known key symbols, intern using correct
11874 symbol name.
11875
118762008-06-17 Kenichi Handa <handa@m17n.org>
11877
11878 * xfaces.c (realize_default_face): If the frame is not on window
11879 system, set the fontset of face to nil.
11880
118812008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
11882
11883 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
11884
118852008-06-16 Juanma Barranquero <lekktu@gmail.com>
11886
11887 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
11888 (build_font_name_from_vector): Delete externs.
11889
11890 * xfaces.c (struct font_name): Don't declare.
11891
118922008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
11893
11894 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
11895
118962008-06-16 Chong Yidong <cyd@stupidchicken.com>
11897
11898 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
11899
119002008-06-16 Juanma Barranquero <lekktu@gmail.com>
11901
11902 * font.c (Ffont_spec): Fix usage in docstring.
11903 (Ffont_face_attributes): Doc fix.
11904
119052008-06-16 Andreas Schwab <schwab@suse.de>
11906
11907 * font.c (Ffont_face_attributes): Fix definition.
11908
119092008-06-16 Jason Rumney <jasonr@gnu.org>
11910
11911 * font.h (font_style_symbolic_from_value): Remove.
11912
11913 * font.c (font_style_symbolic_from_value): Remove.
11914 (font_style_symbolic): Revert to pre 2008-06-13 version.
11915
11916 * w32font.c (w32_to_fc_weight): New function.
11917 (w32font_full_name, logfont_to_fcname): Use it.
11918
119192008-06-16 Kenichi Handa <handa@m17n.org>
11920
11921 * font.c (font_check_object): Delete it.
11922 (font_clear_cache): Check if a font-object is alive.
11923 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
11924 font-object to nil.
11925 (font_close_object): Don't check FONT_CLOSE_OBJECT.
11926 (font_at): Don't call font_check_object.
11927 (Ffont_get): Return a symbol for :weight, :slant, and :width.
11928
119292008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
11930
11931 * puresize.h (BASE_PURESIZE): Increase to 1230000.
11932
119332008-06-16 Chong Yidong <cyd@stupidchicken.com>
11934
11935 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
11936
119372008-06-15 Chong Yidong <cyd@stupidchicken.com>
11938
11939 * font.c (font_parse_fcname): Only one decimal point.
11940 (font_unparse_fcname): Handle data in family and foundry indices
11941 as symbols, not strings.
11942 (font_unparse_gtkname, Ffont_face_attributes): New functions.
11943
11944 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
11945
11946 * font.h (font_unparse_gtkname): Add prototype.
11947
119482008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
11949
11950 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
11951
119522008-06-15 Andreas Schwab <schwab@suse.de>
11953
11954 * font.c (font_update_drivers): Fix crash when no drivers match.
11955
119562008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
11957
11958 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
11959 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
11960
119612008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
11962
11963 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
11964
119652008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
11966
11967 * process.c (Fserial_process_configure, Fprocess_send_eof):
11968 Use EQ to compare Lisp_Objects.
11969
119702008-06-13 Jason Rumney <jasonr@gnu.org>
11971
11972 * w32fns.c (Fw32_select_font): Remove old font API function.
11973
11974 * w32font.c (logfont_to_fcname): New function.
11975 (Fx_select_font): New font dialog function compatible with
11976 GTK/fontconfig version.
11977
11978 * font.c (font_style_symbolic_from_value): New function.
11979 (font_style_symbolic): Use it.
11980
11981 * font.h (font_style_symbolic_from_value): Declare new function.
11982
119832008-06-13 Juanma Barranquero <lekktu@gmail.com>
11984
11985 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
11986 <font-width-table>: Fix typos in docstrings.
11987
119882008-06-13 Daniel Engeler <engeler@gmail.com>
11989
11990 These changes add serial port access.
11991 * process.c: Add HAVE_SERIAL.
11992 (Fdelete_process, Fprocess_status, Fset_process_buffer)
11993 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
11994 (list_processes_1, select_wrapper, Fstop_process)
11995 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
11996 (status_notify): Modify to handle serial processes.
11997 [HAVE_SERIAL] (Fserial_process_configure)
11998 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
11999 New functions.
12000 * process.h (struct Lisp_Process): Add `type'.
12001 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
12002 New functions.
12003 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
12004 serial ports.
b71ac3dd 12005 (serial_open, serial_configure): New functions.
aac0c6e3
MR
12006 * w32.h: Add FILE_SERIAL.
12007 (struct _child_process): Add ovl_read, ovl_write.
12008
120092008-06-13 Kenichi Handa <handa@m17n.org>
12010
12011 * dispextern.h (enum lface_attribute_index): New member
12012 LFACE_FOUNDRY_INDEX.
12013
12014 * font.c (font_score): Delete arg alternate_families. Check only
12015 weight, slant, width, and size. Ignore the difference of alias
12016 style symbols.
12017 (font_sort_entites): Adjust for the above change. Reflect the
12018 order of font-driver to scores.
12019 (font_list_entities): Don't check alternate_familes here.
12020 (font_clear_prop): Handle foundry.
12021 (font_update_lface): Don't parse "foundry-family" form here.
12022 Handle FONT_FOUNDRY_INDEX.
12023 (font_find_for_lface): Likewise. Handle alternate families here.
12024 If registry is nil, try iso8859-1 and ascii-0.
12025 (font_open_for_lface): Pay attention to size in ENTITY.
12026 (font_open_by_name): Simplify by calling font_load_for_lface.
12027 (free_font_driver_list): Delete it.
12028 (font_update_drivers): Preserve the order of backends.
12029 (syms_of_font): Setting of sort_shift_bits adjusted for the change
12030 of font_score and font_sort_entites.
12031 (font_update_sort_order): Likewise.
12032
12033 * xfaces.c (LFACE_FOUNDRY): New macro.
12034 (check_lface_attrs): Check foundry.
12035 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
12036 (merge_face_vectors): Check foundry.
12037 (merge_face_ref): Likewise.
12038 (Finternal_set_lisp_face_attribute): Likewise.
12039 (x_update_menu_appearance): Likewise.
12040 (Finternal_get_lisp_face_attribute): Likewise.
12041 (lface_hash): Likewise.
12042 (lface_same_font_attributes_p): Likewise.
12043 (x_supports_face_attributes_p): Likewise.
12044 (tty_supports_face_attributes_p): Likewise.
12045 (Finternal_set_alternative_font_family_alist): Intern strings.
12046 (Finternal_set_alternative_font_registry_alist): Downcase strings.
12047 (realize_default_face): Set LFACE_FOUNDRY (lface).
12048
12049 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
12050 font-driver at first.
12051
12052 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
12053
120542008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12055
12056 * lread.c (Fload): Use xfree, not free on saved_doc_string.
12057
120582008-06-12 Jim Meyering <meyering@redhat.com>
12059
12060 Make unexec_free handle NULL the same way free does.
12061 * unexmacosx.c (unexec_free): Ignore a NULL argument.
12062
120632008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
12064
12065 * character.h (CHAR_TO_BYTE_SAFE): New macro.
12066 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
12067 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
12068 (WEAK_ALIAS): Simplify.
12069 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
12070 when searching a unibyte buffer.
12071
120722008-06-12 Chong Yidong <cyd@stupidchicken.com>
12073
12074 * xfns.c (Fx_select_font): Rename from x-font-dialog.
12075
120762008-06-12 Juanma Barranquero <lekktu@gmail.com>
12077
12078 * w32font.c: Include ctype.h.
12079
120802008-06-11 Jason Rumney <jasonr@gnu.org>
12081
12082 * w32font.c (w32font_encode_char): Detect missing glyphs that are
12083 misreported as space.
12084 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
12085 as aliases for registry iso10646-1.
12086
120872008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
12088
12089 * buffer.c (clone_per_buffer_values): Skip `name'.
12090
120912008-06-11 Chong Yidong <cyd@stupidchicken.com>
12092
12093 * font.c (font_parse_fcname): Fix last change; accept decimal
12094 points in font size.
12095
120962008-06-10 Jason Rumney <jasonr@gnu.org>
12097
12098 * w32uniscribe.c (add_opentype_font_name_to_list):
12099 Skip non unicode fonts.
12100
121012008-06-10 Chong Yidong <cyd@stupidchicken.com>
12102
12103 * xfns.c (Fx_font_dialog): New function.
12104
12105 * gtkutil.c (xg_dialog_response_cb): Rename from
12106 xg_file_response_callback.
12107 (pop_down_dialog): Rename from pop_down_file_dialog.
12108 (xg_get_file_name): Callers changed.
12109 (xg_get_font_name): New function.
12110
12111 * gtkutil.h (xg_get_font_name): Insert prototype.
12112
121132008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
12114
12115 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
12116 x_underline_minimum_display_offset.
12117 (syms_of_xdisp): Declare it here rather than in xterm.c.
12118 * dispextern.h (underline_minimum_offset): Declare it.
12119 * w32term.c (x_draw_glyph_string): Use it.
12120 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
12121 (syms_of_xterm): Don't declare it any more.
12122 (x_draw_glyph_string): Adjust to the new name.
12123
8719abec 121242008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
12125
12126 * xterm.c (x_underline_minimum_display_offset): New var.
12127 (x_draw_glyph_string): Use it.
12128 (syms_of_xterm): Declare it.
12129
121302008-06-10 Chong Yidong <cyd@stupidchicken.com>
12131
12132 * font.c (font_parse_fcname): Accept GTK-style font names too.
12133
121342008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
12135
12136 * dired.c (file_name_completion): Don't return t if the match is exact
12137 but with different capitalization.
12138 * minibuf.c (Ftry_completion): Simplify.
12139
12140 * window.c (Vwindow_point_insertion_type): New var.
12141 (set_window_buffer): Use it.
12142 (syms_of_window): Init and export it to Lisp.
12143
121442008-06-10 Kenichi Handa <handa@m17n.org>
12145
12146 * font.h (font_intern_prop): Prototype adjusted.
12147
12148 * font.c (font_intern_prop): New arg force_symbol.
12149 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
12150 Adjust for the change of font_intern_prop.
12151
12152 * ftfont.c (ftfont_pattern_entity):
12153 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
12154 (w32_registry):
12155 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
12156 the change of font_intern_prop.
12157
121582008-06-09 Juanma Barranquero <lekktu@gmail.com>
12159
12160 * w32menu.c (digest_single_submenu): Declare extern.
12161
121622008-06-09 Jason Rumney <jasonr@gnu.org>
12163
12164 * w32term.c (x_make_frame_visible): Use alternate restore flags.
12165
12166 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
12167 (parse_single_submenu): Remove.
12168 (digest_single_submenu): Remove.
12169 (syms_of_w32menu): Don't initialise variables that have moved
12170 to menu.c.
12171 (set_frame_menubar): Sync with version in xmenu.c.
12172 (w32_menu_show): Sync with xmenu_show in xmenu.c.
12173
12174 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
12175 Make static again.
12176
121772008-06-09 Jason Rumney <jasonr@gnu.org>
12178
12179 Changes to w32 files related to the move of common menu code
12180 to menu.c on 2008-06-08 by Chong Yidong.
12181
12182 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
12183 defs to w32gui.h.
12184 (single_keymap_panes, push_menu_item, push_menu_pane):
12185 Make globally visible.
12186
12187 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
12188 (local_free, malloc_widget_value, free_widget_value)
12189 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
12190 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
12191 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
12192 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
12193 (menu_items, menu_items_allocated, menu_items_used)
12194 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
12195 (init_menu_items, finish_menu_items, discard_menu_items)
12196 (grow_menu_items, push_submenu_start, push_submenu_end)
12197 (push_left_right_boundary, push_menu_pane, push_menu_item)
12198 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
12199 (free_menubar_widget_tree_value, parse_single_submenu)
12200 (update_submenu_strings): Remove functions.
12201 (xmalloc_widget_value): Remove and declare extern.
12202
12203 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
12204 (OBJ1): Build it.
12205
12206 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
12207 (local_heap, local_alloc, local_free, malloc_widget_value)
12208 (free_widget_value): Define here.
12209
122102008-06-09 Kenichi Handa <handa@m17n.org>
12211
12212 * font.h (Qascii_0): Extern it.
12213
12214 * font.c (Qascii_0): New variable.
12215 (syms_of_font): DEFSYM it.
12216 (font_open_by_name): If the registry "iso8859-1" fails, try also
12217 "ascii-0".
12218
12219 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
12220
122212008-06-08 Kenichi Handa <handa@m17n.org>
12222
12223 * .gdbinit (xfont): New command.
12224
122252008-06-08 Andreas Schwab <schwab@suse.de>
12226
12227 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
12228 * Makefile.in (menu.o): Update dependencies.
12229
12230 * Makefile.in (obj): Always add menu.o.
12231 * emacs.c (main): Always call syms_of_menu.
12232 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
12233
122342008-06-08 Chong Yidong <cyd@stupidchicken.com>
12235
12236 * Makefile.in: Compile menu.c.
12237
12238 * lisp.h: Declare syms_of_menu.
12239
12240 * emacs.c (main): Call syms_of_menu.
12241
12242 * keyboard.h: Relocate platform-independent menu definitions from
12243 xmenu.c.
12244
12245 * menu.c: New file. Relocate platform-independent menu
12246 definitions from xmenu.c. Suggested by Adrian Robert.
12247
12248 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 12249 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
12250 (menu_items_used, menu_items_n_panes)
12251 (menu_items_submenu_depth): Move to keyboard.h.
12252 (init_menu_items, finish_menu_items, unuse_menu_items)
12253 (discard_menu_items, restore_menu_items, save_menu_items)
12254 (grow_menu_items, push_submenu_start, push_submenu_end)
12255 (push_left_right_boundary, push_menu_pane, push_menu_item)
12256 (keymap_panes, single_keymap_panes, single_menu_item)
12257 (list_of_panes, list_of_items, find_and_call_menu_selection)
12258 (xmalloc_widget_value, free_menubar_widget_value_tree)
12259 (parse_single_submenu, digest_single_submenu)
12260 (update_submenu_strings): Move to menu.c.
12261
122622008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
12263
12264 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
12265
122662008-06-06 Miles Bader <miles@gnu.org>
12267
12268 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
12269 face, not frame default.
12270
122712008-06-05 Martin Rudalics <rudalics@gmx.at>
12272
12273 * window.c (pop_up_windows, pop_up_frames)
12274 (display_buffer_reuse_frames, Vpop_up_frame_function)
12275 (Vdisplay_buffer_function, Veven_window_heights)
12276 (Vspecial_display_buffer_names, Vspecial_display_regexps)
12277 (Vspecial_display_function, Vsame_window_buffer_names)
12278 (Vsame_window_regexps, split_height_threshold)
12279 (Vsplit_window_preferred_function): Move those vars to window.el.
12280 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
12281 (Fdisplay_buffer): Move those functions to window.el.
12282 (syms_of_window): Remove corresponding declarations.
12283 (display_buffer): New function.
12284 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
12285 * dispnew.c (Flast_nonminibuf_frame): New function.
12286 * buffer.c (Fpop_to_buffer): Move to window.el.
12287
122882008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12289
12290 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
12291
122922008-06-05 Kenichi Handa <handa@m17n.org>
12293
12294 * coding.c (detect_coding): Fix previous change.
12295 (detect_coding_system): Likewise.
12296
122972008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12298
12299 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
12300
12301 * keymap.c (Vminibuffer_local_filename_must_match_map):
12302 Rename from Vminibuffer_local_must_match_filename_map.
12303 (syms_of_keymap):
12304 * minibuf.c (Fcompleting_read): Adjust accordingly.
12305 * commands.h: Rename declaration as well.
12306
123072008-06-05 Kenichi Handa <handa@m17n.org>
12308
12309 * font.c (Ffont_spec): Don't use font_parse_family_registry for
12310 family name.
12311 (Ffont_put): Likewise.
12312
12313 * fontset.c (fontset_find_font): Call font_open_for_lface with the
12314 current font-spec.
12315
12316 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
12317 is unspecified.
12318
12319 * xfaces.c (realize_x_face): If the font-related face attributes
12320 are the same as those of default face, realize a new fontset from
12321 default->fontset.
12322 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
12323
123242008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12325
12326 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
12327 (move_it_in_display_line): New wrapper.
12328
12329 * window.c (window_scroll_pixel_based_preserve_x)
12330 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
12331 (window_scroll_pixel_based, window_scroll_line_based):
12332 Use them to preserve column positions.
12333 (syms_of_window): Initialize them.
12334
12335 * indent.c (Fvertical_motion): Extend first arg to allow passing an
12336 (HPOS . VPOS) pair.
12337
12338 * dispextern.h (move_it_in_display_line): Declare.
12339
123402008-06-05 Juanma Barranquero <lekktu@gmail.com>
12341
12342 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
12343 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
12344 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
12345
123462008-06-04 Juanma Barranquero <lekktu@gmail.com>
12347
12348 * window.c (Fset_window_parameter): Doc fix.
12349 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
12350
123512008-06-04 Joakim Verona <joakim@verona.se>
12352
12353 * window.h (struct window): Add new member window_parameters.
12354
12355 * window.c (Fwindow_parameters, Fwindow_parameter)
12356 (Fset_window_parameter): New defuns.
12357 (syms_of_window): Defsubr the new defuns.
12358 (make_window): Initialize window_parameters to nil.
12359
123602008-06-04 John Paul Wallington <jpw@pobox.com>
12361
12362 * eval.c (Fdefmacro): Doc fix.
12363
123642008-06-04 Kenichi Handa <handa@m17n.org>
12365
12366 * coding.c (detect_coding): Fix handling of coding->head_ascii.
12367 Be sure to call setup_coding_system when we find a proper coding system.
12368 (detect_coding_system): Fix handling of coding->head_ascii.
12369
123702008-06-03 Andreas Schwab <schwab@suse.de>
12371
12372 * font.c (font_prop_validate_spacing): Fix last change.
12373
123742008-06-03 Kenichi Handa <handa@m17n.org>
12375
12376 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
12377 (font_parse_fcname): Fix handling of unknown key.
12378
12379 * xfont.c (xfont_list): Try an alias.
12380
12381 * charset.c (char_charset): Return NULL if the arg charset_list is
12382 specified and C doesn't belong to any of them.
12383
123842008-06-02 Chip Coldwell <coldwell@redhat.com>
12385
12386 * font.c (font_pixel_size): Don't take cdr of an integer.
12387
123882008-06-02 Jim Meyering <meyering@redhat.com>
12389
12390 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
12391 * alloc.c (xfree): Return right away for a NULL arg.
12392 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
12393 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
12394 * mac.c (create_apple_event_from_event_ref): Likewise.
12395 (create_apple_event_from_drag_ref, cfstring_create_normalized):
12396 Likewise.
12397 * doprnt.c (doprnt1): Likewise.
12398 * frame.c (frame): Likewise.
12399 * keyboard.c (wipe_kboard): Likewise.
12400 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
12401 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
12402 * term.c (tty_default_color_capabilities, maybe_fatal)
12403 (delete_tty): Likewise.
12404 * w16select.c (string): Likewise.
12405 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
12406 * w32bdf.c (w32_free_bdf_font): Likewise.
12407 * w32fns.c (w32_unload_font): Likewise.
12408 * w32font.c (w32font_close): Likewise.
12409 * window.c (size_window): Likewise.
12410 * xselect.c (receive_incremental_selection): Likewise.
12411 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
12412 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
12413 * w32.c (stat): Likewise.
12414
12415 Remove useless if-before-free tests.
12416 * editfns.c (Fset_time_zone_rule): Likewise.
12417 * lread.c (nosuffix): Likewise.
12418 * ralloc.c (get_bloc): Likewise.
12419 * regex.c (reg_free): Likewise.
12420 * xftfont.c (xftfont_open, xftfont_close): Likewise.
12421 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
12422 * xsmfns.c (smc_save_yourself_CB): Likewise.
12423
124242008-06-02 Kenichi Handa <handa@m17n.org>
12425
12426 * font.c (font_find_for_lface): Handle float font size.
12427 (font_open_for_lface): Likewise.
12428
12429 * xfaces.c (x_supports_face_attributes_p): Check face->font before
12430 comparing the properties.
12431
124322008-06-01 Jason Rumney <jasonr@gnu.org>
12433
12434 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
12435 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
12436 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
12437 Don't add empty script list.
12438 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
12439
124402008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
12441
12442 * Makefile.in (dot, dotdot): Remove, update users.
12443 ".." has been used elsewhere in the file for a long time.
12444 (LIBXT_STATIC): Remove conditional based on unused variable.
12445
124462008-06-01 Miles Bader <miles@gnu.org>
12447
12448 * xfaces.c (Vface_remapping_alist): New variable.
12449 (syms_of_xfaces): Initialize it.
12450 (enum named_merge_point_kind): New type.
12451 (struct named_merge_point): Add `named_merge_point_kind' field.
12452 (push_named_merge_point): Make cycle detection respect different
12453 named-merge-point kinds.
12454 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
12455 Remove face-name alias resolution.
12456 (lface_from_face_name): New definition using
12457 `lface_from_face_name_no_resolve'.
12458 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
12459 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
12460 (get_lface_attributes): New definition that layers face-remapping on
12461 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
12462 (lookup_basic_face): New function.
12463 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
12464 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
12465 `get_lface_attributes'.
12466 (face_at_buffer_position): Use `lookup_basic_face' to lookup
12467 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
12468 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
12469
12470 * xdisp.c (init_iterator): Pass base_face_id through
12471 `lookup_basic_face' when we actually use it as a face-id.
12472 (handle_single_display_prop): Use `lookup_basic_face' to lookup
12473 DEFAULT_FACE_ID.
12474
12475 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
12476 lookup the initial face-id.
12477
12478 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
12479
124802008-06-01 Juanma Barranquero <lekktu@gmail.com>
12481
12482 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
12483 (Fremove_text_properties): Fix typos in docstrings.
12484
124852008-05-31 Kenichi Handa <handa@m17n.org>
12486
12487 * font.c (font_list_entities): Fix the car part of data to be
12488 stored in the cache.
12489
12490 * ftfont.c (ftfont_font_format): Don't use strcasestr.
12491
124922008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
12493
12494 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
12495 Add a `test' argument so another predicate than `equal' can be used.
12496 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
12497 (map_char_table): Remove unused vars `c' and `i'.
12498 * lisp.h (Foptimize_char_table): Adjust declaration.
12499 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
12500
125012008-05-30 Kenichi Handa <handa@m17n.org>
12502
12503 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
12504 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
12505 defined.
12506
125072008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
12508
12509 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
12510 (Fmake_variable_frame_local): Disallow mixing buffer-local and
12511 frame-local settings for the same variable.
12512
125132008-05-30 Kenichi Handa <handa@m17n.org>
12514
12515 * fontset.c (Ffont_info): Move to font.c.
12516 (syms_of_fontset): Delete defsubr of Sfont_info.
12517
12518 * font.c (font_style_to_value, font_score): Delete casting of the
12519 args to xstcasecmp.
12520 (register_font_driver): Increment num_font_drivers only when
12521 registering the driver globally.
12522 (Ffont_info): Move from fontset.c. Handle a font object too.
12523 (syms_of_font): Defsubr Sfont_info.
12524
125252008-05-29 Kenichi Handa <handa@m17n.org>
12526
12527 * coding.h (enum define_coding_utf8_arg_index): New enum.
12528 (enum coding_attr_index): Change coding_attr_utf_16_bom to
12529 coding_attr_utf_bom.
12530 (enum utf_bom_type): Rename from utf_16_bom_type.
12531 (struct utf_16_spec): Adjust for the above change.
12532 (struct coding_system): Add utf_8_bom in `spec' union.
12533
12534 * coding.c (CODING_UTF_8_BOM): New macro.
12535 (enum coding_category): Delete coding_category_utf_8, add
12536 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
12537 coding_category_utf_8_sig.
12538 (CATEGORY_MASK_UTF_8): Delete it.
12539 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
12540 (CATEGORY_MASK_UTF_8_SIG): New macros.
12541 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
12542 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
12543 CATEGORY_MASK_UTF_8_SIG.
12544 (CATEGORY_MASK_UTF_8): New macro.
12545 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
12546 (detect_coding_utf_8): Check BOM.
12547 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
12548 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
12549 (encode_coding_utf_16): Likewise.
12550 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
12551 (detect_coding, detect_coding_system): Handle utf-8-auto.
12552 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
12553 (syms_of_coding): Fix setting up of Vcoding_category_table.
12554
125552008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
12556
12557 * process.c (Faccept_process_output): If `millisec' is non-nil,
12558 `seconds' default to 0.
12559 (wait_reading_process_output): Also return non-nil if we read output
12560 from a non-running process.
12561
125622008-05-29 Jason Rumney <jasonr@gnu.org>
12563
12564 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
12565 `raster' specified.
12566 (add_font_entity_to_list): Allow non-opentype truetype fonts back
12567 in the uniscribe backend, but disallow any font that has no
12568 unicode subrange support.
12569
125702008-05-29 Juanma Barranquero <lekktu@gmail.com>
12571
12572 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
12573 Fix typos in docstrings.
12574
125752008-05-29 Kenichi Handa <handa@m17n.org>
12576
12577 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
12578 (Fx_family_fonts): Set frame correctly.
12579
125802008-05-28 Jason Rumney <jasonr@gnu.org>
12581
12582 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
12583
125842008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
12585
12586 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
12587 calling build_annotations.
12588
125892008-05-28 Juanma Barranquero <lekktu@gmail.com>
12590
12591 * coding.c (Fdecode_coding_region, Fencode_coding_region)
12592 (Fencode_coding_string):
12593 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
12594 <latin-extra-code-table>: Fix typos in docstrings.
12595 (syms_of_coding) <coding-system-alist>: Doc fix.
12596 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
12597
125982008-05-28 Kenichi Handa <handa@m17n.org>
12599
12600 * fontset.c (Ffont_info): Don't call font_close_object.
12601
12602 * font.c (font_parse_family_registry): Use Ffont_put to validate
12603 foundry and family.
12604 (font_delete_unmatched): Don't check spacing.
12605 (font_list_entities): Add spacing to the spec to list fonts.
12606
12607 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
12608 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
12609
12610 * coding.c (encode_coding_raw_text): Fix previous change.
12611 (encode_coding_object): When the dst_object is a buffer and is
12612 different from src_object, move gap to PT.
12613
126142008-05-27 Chong Yidong <cyd@stupidchicken.com>
12615
12616 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
12617
126182008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
12619
12620 * coding.c (encode_coding_raw_text): Set coding->produced_char for
12621 all branches. Compute it differently.
12622
12623 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
12624
126252008-05-27 Juanma Barranquero <lekktu@gmail.com>
12626
12627 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
12628 into "else if () ... else ...".
12629
126302008-05-27 Jason Rumney <jasonr@gnu.org>
12631
12632 * w32font.c (w32font_open_internal): Determine if glyph indices
12633 are likely to work here.
12634
126352008-05-27 Chong Yidong <cyd@stupidchicken.com>
12636
12637 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
12638 draw overlap glyphs with appropriate highlighting.
12639
126402008-05-27 Kenichi Handa <handa@m17n.org>
12641
12642 * xfont.c (xfont_open): Fix calculation of font->average_width.
12643
126442008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
12645
12646 * casefiddle.c (casify_object): Try to guess better whether the
12647 argument is a byte or a char.
12648
126492008-05-26 Andreas Schwab <schwab@suse.de>
12650
12651 * xselect.c (x_reply_selection_request): Properly handle format == 32.
12652 Always send multiples of format size.
12653
12654 * xterm.c (x_set_frame_alpha): Fix type mismatch.
12655
126562008-05-26 Jason Rumney <jasonr@gnu.org>
12657
12658 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
12659 (compute_metrics): Don't set failure if we just cleared the cache.
12660 (w32_weight_table): Remove unused variable.
12661 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
12662 backwards compatibility.
12663
126642008-05-25 Kenichi Handa <handa@m17n.org>
12665
12666 * w32term.c (x_draw_glyph_string):
12667 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
12668
12669 * xfaces.c: Delete unused function prototypes.
12670 (xstrlwr, font_frame): Delete them.
12671 (clear_face_cache): Delete unused variable.
12672
12673 * xftfont.c (xftfont_open): Delete unused variable.
12674 If underline_thickness is not 1, adjust underline_position.
12675
12676 * ftxfont.c (ftxfont_open): Delete unused variable.
12677
12678 * fontset.c (face_for_char): Optimize for the case of no charset
12679 property.
12680
12681 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
12682 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
12683 (otf_open, font_otf_capability, generate_otf_features)
12684 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
12685 Comment out by surrounding "#if 0" and "#endif" for the moment.
12686 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
12687 (syms_of_font): Codes for accessing above commented out.
12688
126892008-05-24 Eli Zaretskii <eliz@gnu.org>
12690
12691 * w32proc.c: Include dispextern.h.
12692
12693 * w32.c: Include dispextern.h.
12694
126952008-05-23 Juanma Barranquero <lekktu@gmail.com>
12696
12697 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
12698 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
12699 Fix typos in docstrings.
12700
127012008-05-23 Jason Rumney <jasonr@gnu.org>
12702
12703 * xsmfns.c: Remove includes that are already included by config.h.
12704
127052008-05-23 Kenichi Handa <handa@m17n.org>
12706
12707 * charset.c (Qemacs, charset_emacs): New variables.
12708 (char_charset): Fix for non-Unicode characters.
12709 (syms_of_charset): Define charset_emacs.
12710
12711 * w32term.c (x_draw_glyph_string): Be sure to update
12712 s->underline_thickness and s->underline_position. Be sure to draw
12713 underline within the current line area.
12714
12715 * xterm.c (x_draw_glyph_string): Be sure to update
12716 s->underline_thickness and s->underline_position. Be sure to draw
12717 underline within the current line area.
12718
12719 * fontset.c: Delete unused variables and add casting for char *
12720 throughout the file.
12721 (fontset_font): Try the fallback fonts of the current fontset
12722 before consulting the default fontset.
12723
12724 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
12725
12726 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
12727
127282008-05-22 Jason Rumney <jasonr@gnu.org>
12729
12730 * font.c: Don't include strings.h.
12731
12732 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
12733
12734 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
12735 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
12736 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
12737 to call xstrcasecmp.
12738
12739 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
12740
12741 * fontset.c (fs_query_fontset): Use xstrcasecmp.
12742
12743 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
12744
12745 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
12746
127472008-05-22 Kenichi Handa <handa@m17n.org>
12748
12749 * puresize.h (BASE_PURESIZE): Increase to 1220000.
12750
12751 * font.c (font_prop_validate_style): Adjust for the format
12752 change of font_style_table.
12753
12754 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
12755 two args.
12756
12757 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
12758 two args.
12759
127602008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
12761
12762 * minibuf.c (keys_of_minibuf): Delete.
12763 * lisp.h (keys_of_minibuf): Delete.
12764 * emacs.c (main): Don't call keys_of_minibuf.
12765
127662008-05-22 Kenichi Handa <handa@m17n.org>
12767
12768 * ftfont.c (ftfont_resolve_generic_family): Rename from
12769 ftfont_list_generic_family. Return a single family for each
12770 generic family.
12771 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
12772 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
12773 Call font_add_log.
12774 (ftfont_match): Call font_add_log.
12775
12776 * font.h (Ffont_xlfd_name): EXFUN adjusted.
12777 (FONT_DEBUG): Define it.
12778 (font_add_log): Extern it.
12779 (font_assert): Rename from xassert.
12780
12781 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
12782 (xfont_list_family): Call font_add_log.
12783 (xfont_match): Likewise.
12784 (memq_no_quit): Delete.
12785
12786 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
12787 call of Ffont_xlfd_name.
12788
12789 * xfaces.c (struct table_entry, slant_table, weight_table)
12790 (swidth_table): Move to font.c.
12791
12792 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
12793 xassert are changed to font_assert. Delete many unused variables.
12794 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
12795 New variables.
12796 (struct table_entry): Move from xfaces.c and modified.
12797 (weight_table, slant_table, width_table): Move from xfaces.c and
12798 contents adjusted for the change of struct table_entry.
12799 (font_style_to_value, font_style_symbolic): Adjust for the
12800 format change of font_style_table.
12801 (font_parse_family_registry): Don't overwrite existing foundry and
12802 family of font_spec.
12803 (font_score): Fix calculation of diff for sizes.
12804 (font_sort_entites): Call font_add_log.
12805 (font_delete_unmatched): Return a newly created list.
12806 (font_list_entities): Fix previous change. Call font_add_log.
12807 (font_matching_entity, font_open_entity, font_close_entity):
12808 Call font_add_log.
12809 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
12810 (Finternal_set_font_style_table): Delete.
12811 (BUILD_STYLE_TABLE): New macro.
12812 (build_style_table): New function.
12813 (Vfont_log, font_log_env_checked): New variables.
12814 (font_add_log): New function.
12815 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
12816 Declare Lisp variables "font-weight-table", "font-slant-table",
12817 "font-width-table", and "font-log". Initialize font_style_table.
12818
128192008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
12820
12821 * xterm.c (x_set_frame_alpha): Move declarations before statements.
12822
128232008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 12824 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
12825
12826 * frame.c (Qalpha): Add a new frame parameter `alpha'.
12827 (Vframe_alpha_lower_limit): New variable.
12828 (x_set_alpha): New function.
12829
12830 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
12831
12832 * xfns.c (x-create-frame, Qalpha):
12833 Initialize the frame parameter `alpha'.
12834 * xterm.c (OPAQUE, OPACITY): New.
12835 (x_set_frame_alpha): New function.
12836 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
12837
12838 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
12839 * w32fns.c (w32_frame_parm_handlers): Likewise.
12840
128412008-05-20 Jason Rumney <jasonr@gnu.org>
12842
12843 * w32font.c (add_font_entity_to_list): Don't add non-opentype
12844 truetype fonts to opentype list.
12845
128462008-05-20 Juanma Barranquero <lekktu@gmail.com>
12847
12848 * fontset.c (Ffontset_info): Doc fix.
12849 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
12850 <ignore-relative-composition>: Fix typos in docstrings.
12851
12852 * font.c (syms-of-font) <font-encoding-alist>:
12853 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
12854 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
12855 (Ffont_otf_alternates): Doc fixes.
12856
128572008-05-20 Kenichi Handa <handa@m17n.org>
12858
12859 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
12860 font.h through out the file.
12861 (FONT_DRIVERS): Rename from FONTOBJ.
12862 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
12863 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
12864
12865 * emacs.c (main): Call syms_of_font unconditionally.
12866
12867 * font.h (find_font_encoding): Extern it.
12868
12869 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
12870 fontset.c.
194d44e7 12871 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
12872 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
12873 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
12874 only when HAVE_WINDOW_SYSTEM is defined.
12875 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
12876 when HAVE_WINDOW_SYSTEM is defined.
12877
12878 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
12879 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
12880
12881 * xfaces.c: Include font.h unconditionally.
12882 (merge_face_ref, merge_face_vectors)
12883 (Finternal_set_lisp_face_attribute): Cancel the previous change.
12884
128852008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
12886
12887 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
12888 indirect_variable.
12889 * eval.c (lisp_indirect_variable): New fun.
12890 (Fuser_variable_p): Use it.
12891
128922008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
12893
12894 * lisp.h (indirect_variable):
12895 * data.c (indirect_variable, let_shadows_buffer_binding_p):
12896 Use Lisp_Symbol pointers rather than Lisp_Object.
12897 Adjust callers.
12898 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
12899 To this end, change calling-convention.
12900
12901 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
12902 if some non-hidden buffers are selected by string&pred.
12903
129042008-05-19 Chong Yidong <cyd@stupidchicken.com>
12905
12906 * process.c (wait_reading_process_output): Always check status
12907 when in batch mode.
12908
129092008-05-19 Kenichi Handa <handa@m17n.org>
12910
12911 * font.c (font_list_entities): Fix handling of cache.
12912 (font_matching_entity): Likewise.
12913
12914 * ftfont.c (cs_iso8859_1): Delete.
12915 (ft_face_cache): New variable.
12916 (struct ftfont_info): New member fc_charset_idx.
12917 (ftfont_build_basic_charsets): Delete.
12918 (fc_charset_table): New variable.
12919 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
12920 . FC_CHARSET_IDX) as :font-entity property in the font entity.
12921 Callers changed.
12922 (ftfont_lookup_cache, ftfont_get_charset): New functions.
12923 (ftfont_spec_pattern): New argument fc_charset_idx.
12924 Check registry more rigidly. Change callers.
12925 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
12926 change of :font-entity property of the font.
12927
12928 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
12929 property of the font.
12930
129312008-05-18 Juanma Barranquero <lekktu@gmail.com>
12932
12933 * coding.c (Fcoding_system_p): Rename argument to match docstring.
12934 (Funencodable_char_position, Fcheck_coding_systems_region)
12935 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
12936 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
12937 (Ffind_operation_coding_system, Fset_coding_system_priority)
12938 (Fcoding_system_eol_type): Doc fixes.
12939
129402008-05-17 Glenn Morris <rgm@gnu.org>
12941
12942 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
12943
129442008-05-16 Eli Zaretskii <eliz@gnu.org>
12945
12946 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
12947 and st_gid.
12948
12949 * frame.c (Fdelete_frame): Don't call font_update_drivers if
12950 HAVE_WINDOW_SYSTEM is not defined.
12951
12952 * xfaces.c (merge_face_ref, merge_face_vectors)
12953 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
12954 HAVE_WINDOW_SYSTEM is defined.
12955 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
12956
129572008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
12958
12959 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
12960
129612008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12962
12963 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
12964
129652008-05-15 Kenichi Handa <handa@m17n.org>
12966
12967 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
12968 preference.
12969
129702008-05-15 Glenn Morris <rgm@gnu.org>
12971
12972 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
12973
129742008-05-15 Chong Yidong <cyd@stupidchicken.com>
12975
12976 * fns.c (init_fns): Don't initialize weak_hash_tables here.
12977 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
12978
12979 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
12980
129812008-05-15 Kenichi Handa <handa@m17n.org>
12982
12983 * ftfont.c (ftfont_list): Downcase family name to check generic
12984 families.
12985
12986 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
12987 font-spec for QCfont value.
12988
12989 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
12990 buffer. Check the return value of it.
12991
129922008-05-14 Jason Rumney <jasonr@gnu.org>
12993
12994 * w32term.c (w32_get_glyph_overhangs): Remove.
12995 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
12996
129972008-05-14 Kenichi Handa <handa@m17n.org>
12998
12999 * font.c (font_prop_validate): Make nil a valid value.
13000 (font_clear_cache): Check if the cached vector of entities is nil
13001 or not.
13002
130032008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13004
13005 * emacs.c (main_thread): Conditionalize on
13006 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
13007 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
13008
13009 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
13010 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
13011 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
13012
130132008-05-14 Kenichi Handa <handa@m17n.org>
13014
13015 * coding.c (detect_coding_iso_2022): Ignore a coding category that
13016 has no corresponding coding system.
13017
130182008-05-14 Jason Rumney <jasonr@gnu.org>
13019
13020 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
13021
13022 * w32font.h (w32font_open_internal): Update declaration.
13023
13024 * w32font.c (w32font_open_internal): Change last argument from
13025 w32font_info struct to font object. Fill in font object from
13026 font_entity. Get Outline metrics if possible. Use them to
13027 calculate underline position and thickness. Use xlfd name as name
13028 property. Don't set codepage.
13029 (w32font_open): Pass font_object to w32font_open_internal. Don't
13030 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
13031 (w32font_draw): Use s->font.
13032 (clear_cached_metrics): Don't clear non-existent blocks.
13033
13034 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
13035 font was not found.
13036 (x_draw_glyph_string): Use underline position and thickness from font.
13037
13038 * w32uniscribe.c (uniscribe_open): Pass font_object to
13039 w32font_open_internal.
13040
130412008-05-14 Kenichi Handa <handa@m17n.org>
13042
13043 These changes are to delete all legacy font-handling codes, and
13044 make Emacs use only font-backends.
13045
13046 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
13047 (frame.o, image.o, print.o): Depend on $(FONTSRC).
13048
13049 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
13050
13051 * charset.h (Vcharset_non_preferred_head)
13052 (Vcurrent_iso639_language): Extern them.
13053
13054 * charset.c (Vcharset_non_preferred_head): New variable.
13055 (Vcurrent_iso639_language): New variable.
13056 (syms_of_charset): Declare it as a Lisp variable.
13057 (char_charset): Don't check non preferred charsets. As a last
13058 resort, return charset_unicode.
13059 (Fset_charset_priority): Update Vcharset_non_preferred_head.
13060
13061 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
13062 conditionals. Don't check enable_font_backend. Delete all codes
13063 used only when USE_FONT_BACKEND is not defined.
13064
13065 * dispextern.h (struct glyph_string): Change type of `font' to
13066 `struct font *'.
13067 (struct glyph_string): New member underline_position and
13068 underline_thickness.
13069 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
13070 (struct face): Change type of `font' to `struct font *'. Remove
13071 members `font_name', `font_info_id'.
13072 (per_char_metric, encode_char): Delete externs.
13073 (calc_pixel_width_or_height): Adjust the prototype.
13074
13075 * emacs.c (enable_font_backend): Delete extern.
13076 (main): Don't set enable_font_backend. Don't check the command
13077 line argument "-disable-font-backend".
13078
13079 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
13080 (enum font_property_index): New members FONT_DPI_INDEX,
13081 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
13082 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
13083 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
13084 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
13085 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
13086 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
13087 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
13088 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
13089 (struct font_spec, struct font_entity): New structs.
13090 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
13091 (struct font): Many members from old "struct font_info" moved to
13092 here. Members font and entity deleted.
13093 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
13094 the new font-related objects.
13095 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
13096 (CHECK_FONT_GET_OBJECT): Likewise.
13097 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
13098 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
13099 (struct font_driver): New members case_sensitive anc check. Type
13100 of the member list and open changed.
13101 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
13102 (font_symbolic_width, font_find_object, font_get_spec)
13103 (font_set_lface_from_name): Delete extern.
13104 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
13105
13106 * font.c: Include <strings.h>.
13107 (enable_font_backend): Delete it.
13108 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
13109 (CHECK_VALIDATE_FONT_SPEC): Delete it.
13110 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
13111 (null_string): Delete it.
13112 (null_vector): Make it static.
13113 (font_family_alist): Delete it.
13114 (Qnormal): Extern it.
13115 (QCextra, QClanguage): Delete it.
13116 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
13117 (font_make_spec, font_make_entity, font_make_object)
13118 (font_intern_prop): Renamed from intern_downcase. Don't downcase
13119 the string. Callers changed.
13120 (font_pixel_size): Adjusted for the format change of font-related
13121 objects.
13122 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
13123 (font_style_to_value, font_style_symbolic): New function.
13124 (build_font_family_alist): Delete it.
13125 (font_registry_charsets): Use Fassoc_string instead of
13126 assq_no_quit.
13127 (font_prop_validate_symbol): Don't return null_string.
13128 (font_prop_validate_style): Adjusted for the change of
13129 style-related values in a font vector.
13130 (font_property_table): Delete entries for QClanguage and
13131 QCantialias, add entries for QCavgwidth.
13132 (get_font_prop_index): Delete the 2nd argument FROM.
13133 (font_prop_validate): Arguments changed.
13134 (font_put_extra): Adjusted for the change of font-related objects.
13135 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
13136 (font_parse_fcname, font_unparse_fcname)
13137 (font_prepare_composition): Likewise.
13138 (font_parse_family_registry): Renamed from font_merge_old_spec.
13139 (otf_open): Delete the 1st arg entity.
13140 (font_otf_capability): Adjusted for the above change.
13141 (font_score): New arg alternate_families. Adjusted for the change
13142 of font-related objects.
13143 (font_sort_entites): New arg best_only.
13144 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
13145 Delete them.
13146 (font_match_p): Check alternate families.
13147 (font_find_object): Delete it.
13148 (font_check_object): New function.
13149 (font_clear_cache): Adjusted for the change of font-related objects.
13150 (font_delete_unmatched): New arg.
13151 (font_list_entities): Call font_driver->list with a spec that
13152 doesn't specify style-related properties.
13153 (font_matching_entity): Arguments changed. Caller changed.
13154 (font_open_entity): Adjusted for the change of font-related objects.
13155 (font_close_object, font_has_char, font_encode_char)
13156 (font_get_name, font_get_spec): Likewise.
13157 (font_spec_from_name, font_clear_prop, font_update_lface):
13158 New functions.
13159 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
13160 (font_prepare_for_face, font_done_for_face, font_open_by_name)
13161 (font_at): Adjusted for the change of font-related objects.
13162 (font_range): New function.
13163 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
13164 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
13165 (Fcopy_font_spec, Fmerge_font_spec): New function.
13166 (Ffont_family_list): Renamed from list-families.
13167 (Finternal_set_font_style_table): Arguments changed.
13168 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
13169 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
13170 change of font-related objects.
13171 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
13172
13173 * fontset.h (struct font_info): Delete it. Most members go to
13174 struct font.
13175 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
13176 (enum FONT_SPEC_INDEX): Delete it.
13177 (font_info, list_fonts_func, load_font_func, query_font_func)
13178 (set_frame_fontset_func, find_ccl_program_func)
13179 (get_font_repertory_func, new_fontset_from_font_name): Delete
13180 externs.
13181 (fontset_from_font_name): Extern it.
13182 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
13183 (FONT_INFO_FROM_FACE): Deleted.
13184 (face_for_font): Adjust prototype.
13185
13186 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
13187 conditionals. Don't check enable_font_backend. Delete all codes
13188 used only when USE_FONT_BACKEND is not defined.
13189 (get_font_info_func, list_font_func, load_font_func)
13190 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
13191 (get_font_repertory_func): Delete them.
13192 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
13193 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
13194 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
13195 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
13196 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
13197 (fontset_compare_rfontdef): New function.
13198 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
13199 rfont-defs by qsort. Adjusted for the change of font-group vector.
13200 (load_font_get_repertory): Deleted.
13201 (fontset_find_font): Use new macros to ref/set elements of
13202 font-def and rfont-def.
13203 (fontset_font): Fix the timing of remembering that no font for C.
13204 (free_face_fontset): Do nothing if the face has no fontset.
13205 (face_suitable_for_char_p): Use new macros to ref/set elements of
13206 rfont-def.
13207 (face_for_char): Likewise. Call face_for_char with font_object.
13208 (fs_load_font): Delete. Delete #pragma surrounding it.
13209 (fs_query_fontset): Use strcasecmp instead of strcmp.
13210 (generate_ascii_font_name): Adjusted for the format change of
13211 font-spec.
13212 (Fset_fontset_font): Likewise. Use new macros to set elements of
13213 font-def.
13214 (Fnew_fontset): Use font_unparse_xlfd to generate
13215 FONTSET_ASCII (fontset).
13216 (new_fontset_from_font_name): Deleted.
13217 (fontset_from_font): Renamed from new_fontset_from_font. Check if
13218 a fontset is already created for the font. FIx updating of
13219 Vfontset_alias_alist.
13220 (fontset_ascii_font): Deleted.
13221 (Ffont_info): Adjusted for the format change of font-spec.
13222 (Finternal_char_font): Likewise.
13223 (Ffontset_info): Likewise.
13224 (syms_of_fontset): Don't check load_font_func.
13225
13226 * fns.c (internal_equal): Handle PREV_FONT.
13227
13228 * frame.h: Delete USE_FONT_BACKEND conditional.
13229
13230 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
13231 conditionals. Don't check enable_font_backend. Delete all codes
13232 used only when USE_FONT_BACKEND is not defined.
13233 (x_set_font): Call x_new_font, not x_new_fontset2.
13234 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
13235 already set for the frame.
13236
13237 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
13238 a font-entity by font_make_entity. Use font_intern_prop instead
13239 of intern_downcase. Use FONT_SET_STYLE to set a style-related
13240 font property. If a font is scalable, set avgwidth property to 0.
13241 Set font-entity property by font_put_extra.
13242 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
13243 (ffont_driver): Adjusted for the change of struct font_driver.
13244 (ftfont_spec_pattern): New function.
13245 (ftfont_list): Return a list, not vector.
13246 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
13247 (ftfont_list_family): Don't downcase names.
13248 (ftfont_free_entity): Deleted.
13249 (ftfont_open): Return a font-object. Adjusted for the change of
13250 struct font. Get underline_thickness and underline_position from
13251 font property. Don't update dpyinfo->smallest_font_height and
13252 dpyinfo->smallest_char_width.
13253 (ftfont_close): Don't free `struct font'.
13254 (ftfont_has_char): Adjusted for the format change of font-entity.
13255 (ftfont_encode_char, ftfont_text_extents): Likewise.
13256
13257 * ftxfont.c (ftxfont_list): Return a list, not vector.
13258 (ftxfont_open): Return a font-object. Adjusted for the change of
13259 struct font. Get underline_thickness and underline_position from
13260 font property. Don't update dpyinfo->smallest_font_height and
13261 dpyinfo->smallest_char_width.
13262 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
13263 (ftxfont_draw): Adjusted for the change of struct font.
13264
13265 * image.c (image_ascent): Don't include "charset.h". Include
13266 "character.h" and "font.h".
13267
13268 * lisp.h (enum pvec_type): New member PREV_FONT.
13269 (Fassoc_string): EXFUN it.
13270
13271 * print.c: Include font.h.
13272 (print_object): Handle font-related objects.
13273
13274 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
13275 conditionals. Don't check enable_font_backend. Delete all codes
13276 used only when USE_FONT_BACKEND is not defined.
13277 (handle_auto_composed_prop): Do nothing if it->f is not on a
13278 window system. Check how many following characters can be
13279 displayed by the same font.
13280 (calc_pixel_width_or_height): Type of the 4th arg is changed to
13281 'struct font *'.
13282 (get_char_face_and_encoding): Assign the whole encoding task to
13283 the `encode-char' method of a font driver.
13284 (fill_composite_glyph_string): Adjusted for the change of `struct
13285 face' and `struct glyph_string'.
13286 (fill_glyph_string): Likewise.
13287 (get_per_char_metric): Arguments changed.
13288 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
13289 and `struct glyph_string'.
13290 (produce_stretch_glyph, calc_line_height_property)
13291 (x_produce_glyphs): Likewise.
13292
13293 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
13294 conditionals. Don't check enable_font_backend. Delete all codes
13295 used only when USE_FONT_BACKEND is not defined. Use
13296 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
13297 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
13298 (Qp): Extern them.
13299 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
13300 Deleted.
13301 (struct font_name): Deleted.
13302 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
13303 (compare_fonts_by_sort_order): New function.
13304 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
13305 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
13306 Deleted.
13307 (Fx_family_fonts): Use font_list_entities, and sort fonts by
13308 compare_fonts_by_sort_order.
13309 (Fx_font_family_list): Call Ffont_family_list.
13310 (face_numeric_value, face_numeric_weight, face_numeric_slant)
13311 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
13312 (face_symbolic_slant, face_symbolic_swidth)
13313 (split_font_name_into_vector, build_font_name_from_vector)
13314 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
13315 (font_rescale_ratio, split_font_name, build_font_name)
13316 (free_font_names, sort_fonts, x_face_list_fonts)
13317 (face_font_available_p, sorted_font_list, cmp_font_names)
13318 (font_list_1, concat_font_list, font_list, remove_duplicates):
13319 Deleted.
13320 (Fx_list_fonts): Use Ffont_list.
13321 (LFACE_AVGWIDTH): Deleted.
13322 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
13323 by FONTP.
13324 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
13325 (set_lface_from_font_name): Delete it.
13326 (set_lface_from_font): Renamed from
13327 set_lface_from_font_and_fontset. Caller changed. Don't set
13328 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
13329 for face.
13330 (merge_face_vectors): Copy font-spec if necessary.
13331 Clear properties of the font-spec if necessary.
13332 (merge_face_ref): Clear properties of the font-spec if necessary.
13333 (Finternal_set_lisp_face_attribute): Likewise.
13334 (set_font_frame_param): Use font_load_for_lface to load a
13335 font-object, and call Fmodify_frame_parameters with it.
13336 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
13337 font name by Ffont_xlfd_name.
13338 (Finternal_lisp_face_attribute_values): Don't check QCweight,
13339 QCslant, and QCwidth.
13340 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
13341 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
13342 Compare fonts by EQ.
13343 (lookup_non_ascii_face): Deleted.
13344 (face_for_font): The 2nd argument changed.
13345 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
13346 Check atomic font properties by case insensitive.
13347 (realize_non_ascii_face): Set face->overstrike correctly.
13348 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
13349 (dump_realized_face): Get font name from
13350 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
13351
13352 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
13353 conditionals. Don't check enable_font_backend. Delete all codes
13354 used only when USE_FONT_BACKEND is not defined.
13355 (xic_create_xfontset): Original code deleted and renamed from
13356 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
13357 (x_make_gc): Don't set GCFont in GCs.
13358 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
13359 opened by "fixed".
13360 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
13361 find_ccl_program_func, query_font_func, set_frame_fontset_func,
13362 get_font_repertory_func.
13363
13364 * xfont.c: Include <stdlib.h> and "ccl.h".
13365 (struct xfont_info): New structure.
13366 (xfont_query_font): Deleted.
13367 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
13368 moved from xterm.c.
13369 (xfont_driver): Adjusted for the change of struct font_driver.
13370 (compare_font_names): New function.
13371 (xfont_list_pattern): Sort font names case insensitively. Make
13372 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
13373 (xfont_list): Return a list, not vector.
13374 (xfont_match): If the font doesn't have QCname property, generate
13375 a name from the other font properties.
13376 (xfont_open): Return a font-object. Adjusted for the change of
13377 struct font. Get underline_thickness and underline_position from
13378 font property. Don't update dpyinfo->smallest_font_height and
13379 dpyinfo->smallest_char_width.
13380 (xfont_close): Don't free struct font.
13381 (xfont_prepare_face): Adjusted for the change of struct font.
13382 (xfont_done_face): Deleted.
13383 (xfont_has_char): Adjusted for the change of struct font.
13384 (xfont_encode_char, xfont_draw): Likewise.
13385 (xfont_check): New function.
13386
13387 * xftfont.c (xftfont_list): Adjusted for the change of `list'
13388 callback function.
13389 (xftfont_match): Adjusted for the format change of font-entity.
13390 (xftfont_open): Adjusted for the format change of font-entity and
13391 font-object. Adjusted for the change of struct font. Return a
13392 font-object. Don't update dpyinfo->smallest_font_height and
13393 dpyinfo->smallest_char_width.
13394 (xftfont_close): Block input while calling XftFontClose.
13395 (xftfont_prepare_face): Don't block input while calling
13396 xftfont_get_colors. Adjusted for the change of struct font.
13397 (xftfont_shape): Return value of error case fixed.
13398
13399 * xrdb.c (x_load_resources): Don't setup a fontset resource.
13400
13401 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
13402 conditionals.
13403 (FONT_WIDTH): Return (f)->max_width.
13404 (struct x_display_info): Delete member `font'.
13405 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
13406 (x_find_ccl_program, x_get_font_repertory): Delete externs.
13407 (struct x_output): Change type of `font' to `struct font *'.
13408
13409 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
13410 conditionals. Don't check enable_font_backend. Delete all codes
13411 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
13412 (x_per_char_metric, x_encode_char): Deleted.
13413 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
13414 (x_compute_glyph_string_overhangs): Adjusted for the change of
13415 `struct face'.
13416 (x_draw_glyph_string_foreground)
13417 (x_draw_composite_glyph_string_foreground): Likewise.
13418 (x_draw_glyph_string): Likewise. Use font->underline_position and
13419 font->underline_thickness.
13420 (x_new_font): Renamed from x_new_fontset2.
13421 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
13422 (x_check_font): Call `check' method of a font driver.
13423 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
13424 (x_query_font, x_get_font_repertory): Deleted.
13425 (x_find_ccl_program): Renamed and moved to xfont.c.
13426 (x_redisplay_interface): Adjusted for the change of `struct
13427 redisplay_interface'.
13428
13429 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
13430 conditionals. Don't check enable_font_backend. Delete all codes
13431 used only when USE_FONT_BACKEND is not defined. Surround non-used
13432 code by "#ifdef OLD_FONT" and "endif".
13433 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
13434
13435 * w32font.h (struct w32font_info): New member.
13436 (FONT_COMPAT): New macro.
13437 (w32font_open_internal): Prototype adjusted.
13438
13439 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
13440 OLD_FONT" and "endif".
13441
13442 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
13443 conditionals. Don't check enable_font_backend. Delete all codes
13444 used only when USE_FONT_BACKEND is not defined.
13445 (w32font_open): Return a font-object. Make a font-object by
13446 font_make_object. Adjusted for the change of struct w32font_info.
13447 (w32font_close): Don't free struct font. Adjusted for the change
13448 of struct w32font_info.
13449 (w32font_encode_char, w32font_text_extents, w32font_draw):
13450 Adjusted for the change of struct w32font_info.
13451 (w32font_draw): Likewise.
13452 (w32font_list_internal): Return a list, not vector.
13453 (w32font_open_internal): Change the 4th arg to font-object.
13454 Adjusted for the change of struct w32font_info and font-object format.
13455 (add_font_name_to_list): Don't downcase names.
13456 (w32_enumfont_pattern_entity): Make a font-entity by
13457 font_make_entity. Adjusted for the format change of font-entity.
13458 Use FONT_SET_STYLE to set a style-related font property. If a
13459 font is scalable, set avgwidth property to 0. Set font-entity
13460 property by font_put_extra.
13461 (font_matches_spec): Adjusted for the format change of font-entity.
13462 (w32_weight_table, w32_decode_weight): New variables.
13463 (w32_encode_weight): New function.
13464 (fill_in_logfont): Adjusted for the format change of font-spec.
13465 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
13466 weight value.
13467 (w32font_driver): Adjusted for the change of struct font_driver.
13468
13469 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
13470 conditionals. Don't check enable_font_backend. Surround non-used
13471 code by "#ifdef OLD_FONT" and "endif".
13472 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
13473 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
13474
13475 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
13476 conditionals. Don't check enable_font_backend. Delete all codes
13477 used only when USE_FONT_BACKEND is not defined. Surround non-used
13478 code by "#ifdef OLD_FONT" and "endif".
13479
13480 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
13481 (uniscribe_open): Return value changed to font-object.
13482 Adjusted for the format change of font-object.
13483 (uniscribe_otf_capability): Adjusted for the change of struct font.
13484 (add_opentype_font_name_to_list): Don't downcase names.
13485 (uniscribe_font_driver): Adjusted for the change of struct
13486 font_driver.
13487
134882008-05-13 Chong Yidong <cyd@stupidchicken.com>
13489
13490 * dispnew.c (update_frame_1): Check if tty output is still valid
13491 before flushing it.
13492
134932008-05-13 Jan Djärv <jan.h.d@swipnet.se>
13494
13495 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
13496 to Gtk+ menus.
13497
134982008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
13499
13500 * dired.c (file_name_completion): Tweak the code so as to always do it
13501 in a single pass. Tighten the scope of some variables.
13502
13503 * dired.c (Qdefault_directory): New var.
13504 (file_name_completion): Use it instead of Fexpand_file_name.
13505 (syms_of_dired): Initialize it.
13506
135072008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
13508
13509 * fileio.c (double_dollars): Remove dead code.
13510
135112008-05-10 Eli Zaretskii <eliz@gnu.org>
13512
13513 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
13514 Mention w32-get-true-file-attributes in doc string.
13515
13516 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
13517
135182008-05-09 Glenn Morris <rgm@gnu.org>
13519
13520 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
13521 2008-04-23.
13522
135232008-05-09 Eli Zaretskii <eliz@gnu.org>
13524
13525 Support for reporting owner and group of each file on MS-Windows:
13526 * dired.c (stat_uname, stat_gname): New functions, with special
13527 implementation for w32.
13528 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
13529
13530 * w32.c: Rename the_passwd_* to dflt_passwd_*.
13531 (dflt_group_name): New static variable.
13532 (dflt_group): Rename from the_group.
13533 (init_user_info): Init dflt_group fields. Get user's group name
13534 from LookupAccountSid.
13535 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
13536 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
13537 New initialization states.
13538 (globals_of_w32): Initialize them to zero. Initialize the default
13539 group name to "None".
13540 (GetFileSecurity_Name): New global var, the name of the function
13541 to call for GetFileSecurity.
13542 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
13543 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
13544 (get_file_security, get_security_descriptor_owner)
13545 (get_security_descriptor_group, is_valid_sid)
13546 (get_file_security_desc, get_rid, get_name_and_id)
13547 (get_file_owner_and_group): New functions.
13548 (stat): Use get_file_security_desc and get_file_owner_and_group to
13549 report the owner and primary group of each file. Don't ignore the
13550 high 32 bits of file's size, now that st_size is 64-bit wide.
13551 Fix test when to get true file attributes.
13552 (init_user_info): Use get_rid instead of equivalent inline code.
13553 (fstat): Don't ignore the high 32 bits of file's size.
13554
135552008-05-09 Chong Yidong <cyd@stupidchicken.com>
13556
13557 * image.c (png_load): Use correct bit-depth for setting background
13558 color.
13559
135602008-05-08 Eli Zaretskii <eliz@gnu.org>
13561
13562 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
13563 epa-hook.elc.
13564
135652008-05-08 Juanma Barranquero <lekktu@gmail.com>
13566
13567 * font.c (Ffont_match_p): Don't use `iff' in docstring.
13568
135692008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
13570
13571 * macfns.c (Fx_create_frame): Make a copy of frame parameters
13572 because the original parameters are in pure storage now.
13573 (mac_window): Remove unused params. Update callers.
13574
135752008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
13576
13577 * lread.c (substitute_object_recurse): Use lower-level primitives.
13578 Don't signal errors when traversing sub-char-tables.
13579 Don't loop over all the possible characters when traversing char-tables.
13580
13581 * print.c (print_preprocess): Add sub-char-tables to the print-table,
13582 just like we do in print.c.
13583
135842008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
13585
13586 * minibuf.c (Ftry_completion): Remove code left over from when we used
13587 scmp instead of Fcompare_strings.
13588
135892008-05-04 Juanma Barranquero <lekktu@gmail.com>
13590
13591 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
13592
135932008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13594
13595 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
13596 Create bitmap context in native byte order.
13597
13598 * macterm.c (XDrawLine)
13599 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
13600 context in native byte order.
13601
136022008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13603
13604 * config.in: Regenerate.
13605
13606 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
13607 New definitions for Image I/O support.
13608 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
13609 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
13610 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
13611 (mac_data_provider_release_data, image_load_image_io)
13612 [USE_MAC_IMAGE_IO]: New functions.
13613 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
13614 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
13615 (init_image_func_pointer) [MAC_OSX]: Remove function.
13616 (image_load_quartz2d) [MAC_OSX]: Check availability of
13617 CGImageCreateWithPNGDataProvider at compile time.
13618 Use lowercase `false' for boolean constant.
13619 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
13620 Use image_load_image_io.
13621 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
13622 Don't check MyCGImageCreateWithPNGDataProvider.
13623 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
13624 Don't call init_image_func_pointer.
13625
13626 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
13627
13628 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
13629 Make variable non-static.
13630 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
13631 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
13632
13633 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
13634 (RED_FROM_ULONG): Mask off higher bits.
13635 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
13636
13637 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
13638 Include AvailabilityMacros.h.
13639 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
13640 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
13641
136422008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
13643
13644 * chartab.c (Fset_char_table_range): If range is t, really set all
13645 chars to that value.
13646
136472008-05-03 Eli Zaretskii <eliz@gnu.org>
13648
13649 * dired.c (Ffile_attributes): Don't allow the device number become
13650 negative.
13651
136522008-05-02 Daiki Ueno <ueno@unixuser.org>
13653
13654 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
13655
136562008-05-02 Juri Linkov <juri@jurta.org>
13657
13658 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
13659 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
13660 DEFAULT argument as a list of default values in docstrings.
13661
136622008-05-01 Chong Yidong <cyd@stupidchicken.com>
13663
13664 * puresize.h (BASE_PURESIZE): Increase to 1210000.
13665
136662008-05-01 Martin Rudalics <rudalics@gmx.at>
13667
13668 * dispnew.c (change_frame_size_1): Preserve small windows when
13669 shrinking frames by calling set_window_height|width with third
13670 arg 2.
13671
13672 * window.h (struct window): Replace field too_small_ok by field
13673 resize_proportionally.
13674
13675 * window.c (make_window): Initialize resize_proportionally.
13676 (enlarge_window): Temporarily set resize_proportionally to make
13677 sure that shrink_windows does scale the window proportionally.
13678 (shrink_windows): When window has resize_proportionally set try
13679 to shrink it proportionally by stealing from other windows.
13680 (struct saved_window, Fset_window_configuration)
13681 (compare_window_configurations): Handle resize_proportionally.
13682 (WINDOW_TOTAL_SIZE): New macro.
13683 (window_min_size, shrink_windows, size_window): Use it.
13684 (check_min_window_sizes): Remove. Invalid values of
13685 window-min-height|width are handled by window_min_size_2 now.
13686 (size_window, Fsplit_window, enlarge_window)
13687 (adjust_window_trailing_edge, grow_mini_window): Don't call
13688 check_min_window_sizes.
13689 (window_min_size_2, window_min_size_1, window_min_size):
13690 New argument safe_p for retrieving "safe" minimum sizes.
13691 (Fdisplay_buffer, Fsplit_window, enlarge_window)
13692 (adjust_window_trailing_edge, grow_mini_window):
13693 Adjust arguments of window_min_size... functions.
13694 (shrink_windows): Argument min_size removed. New argument
13695 safe_p allows shrinking windows to their safe minimum sizes.
13696 Calculate minimum size and decide whether a window shall be
13697 deleted for each window individually.
13698 (size_window): When nodelete_p equals 2, tell shrink_windows to
13699 delete windows only if their new minimum size is no more safe.
13700 (shrink_window_lowest_first): Call window_min_size_1 to make
13701 sure to preserve modeline of bottom-most window when resizing
13702 the minibuffer.
13703 (Fset_window_configuration, Fcurrent_window_configuration)
13704 (compare_window_configurations): Do not handle
13705 window-min-height|width any more.
13706 (syms_of_window): Clarify window-min-height|width doc-strings.
13707
137082008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
13709
13710 * dired.c (file_name_completion): Fix up the encoding/decoding issue
13711 some more. Copy some of the code from Ftry_completions.
13712 Remove special case code that dates back to initial revision when the
13713 slash was only added when necessary and that can't trigger nowadays.
13714
137152008-04-27 Kenichi Handa <handa@m17n.org>
13716
13717 * font.c (font_prop_validate): Signal `error' instead of `font'.
13718
137192008-04-29 Jason Rumney <jasonr@gnu.org>
13720
13721 * w32fns.c (Fw32_battery_status): New defun.
13722 (syms_of_w32fns): Defsubr it.
13723
137242008-04-28 Andreas Schwab <schwab@suse.de>
13725
13726 * dired.c (file_name_completion): Fix another mixing of encoded
13727 and decoded names.
13728
137292008-04-28 Juanma Barranquero <lekktu@gmail.com>
13730
13731 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
13732
137332008-04-27 Juanma Barranquero <lekktu@gmail.com>
13734
13735 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
13736
137372008-04-27 Andreas Schwab <schwab@suse.de>
13738
13739 * dired.c (file_name_completion): Fix inappropriate mixing of
13740 encoded and decoded names.
13741
13742 * xterm.c (XTread_socket): Fix use of uninitialized variable.
13743
13744 * puresize.h (BASE_PURESIZE): Increase to 1200000.
13745
137462008-04-26 Eli Zaretskii <eliz@gnu.org>
13747
13748 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
13749 2008-03-31, it's not needed anymore with `struct stat' definition
13750 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
13751 for the same reasons.
13752
137532008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
13754
13755 * m/sparc.h: Additional redefinitions for GNU/Linux.
13756
137572008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13758
13759 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
13760 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
13761 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
13762 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
13763 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13764 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
13765 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13766 Likewise.
13767
13768 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
13769 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
13770 (mac_ax_number_of_characters): Add externs.
13771 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13772 [USE_MAC_TSM]: Likewise.
13773 (mac_handle_text_input_event) [MAC_OSX]:
13774 Handle kEventTextInputOffsetToPos for no active input area case.
13775 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
13776 (mac_handle_document_access_event)
13777 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
13778 (install_application_handler) [MAC_OSX]: Register handlers for
13779 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
13780 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13781 Register mac_handle_document_access_event.
13782
13783 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
13784 Make functions non-static.
13785
137862008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
13787
13788 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
13789 (read_file_name_completion_ignore_case, insert_default_directory)
13790 (Qdefault_directory): Move to minibuffer.el.
13791 (Fread_file_name): Call the new `read-file-name' instead.
13792
137932008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13794
13795 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
13796 Make function non-static.
13797 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
13798 Remove function.
13799 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
13800 Move to mactoolbox.c.
13801 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
13802
13803 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
13804 (mac_rect_make): New macro.
13805
13806 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
13807 instead of float.
13808 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
13809 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
13810 (XSetBackground) [USE_CG_DRAWING]: Likewise.
13811 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
13812 CGRectMake.
13813 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
13814 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
13815 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
13816 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
13817 instead of WindowRef in argument type.
13818 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
13819 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
13820 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
13821 instead of DISPLAY. All uses changed.
13822 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
13823 (x_calc_absolute_position): Simplify so as not to use
13824 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
13825
13826 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
13827 instead of WindowRef in argument type.
13828 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
13829 [TARGET_API_MAC_CARBON]: Remove externs.
13830 (create_apple_event, mac_event_parameters_to_lisp)
13831 [TARGET_API_MAC_CARBON]: Add externs.
13832
13833 * mactoolbox.c (Vmac_ts_script_language_on_focus)
13834 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
13835 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
13836 is clicked.
13837 (x_activate_menubar): Remove extern for saved_menu_event_location.
13838 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
13839 Move from mac.c.
13840
138412008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13842
13843 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
13844 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
13845
138462008-04-23 Jason Rumney <jasonr@gnu.org>
13847
13848 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
13849 attributes only for local files.
13850
13851 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
13852 default to Qlocal.
13853
138542008-04-22 Juri Linkov <juri@jurta.org>
13855
13856 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
13857 read-buffer-to-switch instead of using the letter "B".
13858
138592008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
13860
13861 * fileio.c (Qdefault_directory): New variable.
13862 (Fread_file_name): Use it to pass `dir' to the completion functions.
13863
138642008-04-20 Chong Yidong <cyd@stupidchicken.com>
13865
13866 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
13867
138682008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
13869
13870 * keyboard.c (Vpre_help_message): Remove.
13871 (show_help_echo): Remove default C code.
13872
13873 * dired.c (directory_files_internal, file_name_completion):
13874 Only call ENCODE_FILE if the string is indeed decoded.
13875
138762008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
13877
13878 * Makefile.in (TOOLKIT_DEFINES): Remove.
13879 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
13880
138812008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13882
13883 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
13884 (mactoolbox.o): New target.
13885
13886 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
13887 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
13888
13889 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
13890 Use mac_set_frame_window_background instead of XSetWindowBackground.
13891 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
13892 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
13893 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
13894 instead of SetWindowTitleWithCFString.
13895 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
13896 Move function to mactoolbox.c.
13897 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
13898 Use mac_set_window_modified instead of SetWindowModified.
13899 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
13900 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
13901 (Fx_focus_frame): Use mac_front_non_floating_window instead of
13902 FrontNonFloatingWindow. Use mac_activate_window instead of
13903 ActivateWindow. Use mac_active_non_floating_window instead of
13904 ActiveNonFloatingWindow.
13905 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
13906 Use mac_show_hourglass and mac_hide_hourglass.
13907 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
13908 instead of GetGlobalMouse.
13909 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
13910 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
13911 Use mac_bring_window_to_front instead of BringToFront.
13912 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
13913 mactoolbox.c.
13914 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
13915 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
13916 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
13917 mactoolbox.c.
13918
13919 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
13920 (XtPointer): Move typedef from macmenu.c.
13921 (enum button_type): Move enum from macmenu.c.
13922 (widget_value): Move typedef from macmenu.c.
13923 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
13924 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
13925 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
13926 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
13927 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
13928 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
13929 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
13930 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
13931 (Selection): Move typedef from macselect.c.
13932 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
13933 macterm.c.
13934 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
13935 (mac_is_window_collapsed, mac_bring_window_to_front)
13936 (mac_send_window_behind, mac_hide_window, mac_show_window)
13937 (mac_collapse_window, mac_front_non_floating_window)
13938 (mac_active_non_floating_window, mac_activate_window)
13939 (mac_move_window_structure, mac_move_window, mac_size_window)
13940 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
13941
13942 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
13943 (enum mac_menu_kind): Move enum to mactoolbox.c.
13944 (min_menu_id): Move variable to mactoolbox.c.
13945 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
13946 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
13947 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
13948 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
13949 [TARGET_API_MAC_CARBON]: Likewise.
13950 (XtPointer): Move typedef to macgui.h.
13951 (enum button_type): Move enum to macgui.h.
13952 (widget_value): Move typedef to macgui.h.
13953 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
13954 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
13955 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
13956 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
13957 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
13958 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
13959 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
13960 (popup_activated_flag): Make variable non-static.
13961 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
13962 (add_menu_item, fill_menu, dispose_menus):
13963 Move functions to mactoolbox.c.
13964 (restore_show_help_function, menu_target_item_handler)
13965 (install_menu_target_item_handler, mac_handle_dialog_event)
13966 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
13967 [TARGET_API_MAC_CARBON]: Likewise.
13968 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
13969 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
13970 (find_and_call_menu_selection, name_is_separator): Make function
13971 non-static.
13972 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
13973 to mactoolbox.c.
13974 (set_frame_menubar): Don't call install_menu_quit_handler.
13975 (menu_item_selection): New variable.
13976 (mac_menu_show): Use create_and_show_popup_menu.
13977 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
13978 selection but set variable menu_item_selection. All uses changed.
13979 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
13980 Call install_menu_quit_handler. Move to mactoolbox.c.
13981
13982 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
13983 (Selection): Move typedef to macgui.h.
13984 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
13985 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
13986 Make variables non-static.
13987 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
13988 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
13989 Make functions non-static.
13990 (Vmac_service_selection) [MAC_OSX]: Likewise.
13991 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
13992 (mac_valid_selection_target_p, mac_clear_selection)
13993 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
13994 (mac_put_selection_value, mac_selection_has_target_p)
13995 (mac_get_selection_value, mac_get_selection_target_list)
13996 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
13997 Move functions to mactoolbox.c.
13998 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
13999 Likewise.
14000 (copy_scrap_flavor_data, mac_handle_service_event)
14001 (install_service_handler) [MAC_OSX]: Likewise.
14002 (syms_of_macselect) <Vmac_dnd_known_types>:
14003 Use mac_dnd_default_known_types.
14004
14005 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
14006 Move to mactoolbox.c.
14007 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
14008 (Fx_selection_owner_p): Add EXFUN.
14009 (install_window_handler, remove_window_handler, XSetWindowBackground):
14010 Remove externs.
14011 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
14012 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
14013 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
14014 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
14015 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
14016 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
14017 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
14018 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
14019 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
14020 (create_and_show_popup_menu, mac_get_selection_from_symbol)
14021 (mac_valid_selection_target_p, mac_clear_selection)
14022 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
14023 (mac_put_selection_value, mac_selection_has_target_p)
14024 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
14025 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
14026 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
14027 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
14028 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
14029 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
14030 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
14031 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
14032 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
14033
14034 * mactoolbox.c: New file.
14035
140362008-04-18 Jason Rumney <jasonr@gnu.org>
14037
14038 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
14039
140402008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
14041
14042 * character.c (Fmultibyte_char_to_unibyte):
14043 Return latin1 chars unchanged.
14044
14045 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
14046 relocated if it points to `name'.
14047
140482008-04-17 Kenichi Handa <handa@m17n.org>
14049
14050 * data.c (Faset): Allow setting a multibyte character in an
14051 ASCII-only unibyte string.
14052
14053 * lisp.h (STRING_SET_MULTIBYTE): New macro.
14054
140552008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
14056
14057 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
14058 done in config.h.
14059
140602008-04-16 Juanma Barranquero <lekktu@gmail.com>
14061
14062 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
14063 (Fchar_direction): Add usage in the docstring.
14064
140652008-04-15 Chong Yidong <cyd@stupidchicken.com>
14066
14067 * keyboard.c (read_key_sequence): Remove always-true checks.
14068
140692008-04-14 Jason Rumney <jasonr@gnu.org>
14070
14071 * w32font.c (w32font_open_internal): Set max_bounds.descent in
14072 compatibility struct, for better underline positioning.
14073
140742008-04-13 David Hansen <david.hansen@gmx.net>
14075
14076 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
14077 string.
14078
140792008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
14080
14081 * m/hp800.h (XUINT, XSET): Remove.
14082
140832008-04-12 Juanma Barranquero <lekktu@gmail.com>
14084
14085 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
14086 previous change.
14087
140882008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
14089
14090 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
14091 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
14092
140932008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
14094
14095 * keymap.h (map_keymap_canonical): Declare.
14096 * xmenu.c (single_keymap_panes): Use it.
14097
140982008-04-11 Glenn Morris <rgm@gnu.org>
14099
14100 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
14101 set the target's value to that of the alias.
14102
141032008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
14104
14105 * term.c (set_tty_color_mode): Left over typo.
14106
141072008-04-10 Michael Albinus <michael.albinus@gmx.de>
14108
14109 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
14110 only after check for file name handler functions. Signal, when
14111 native functionality is not supported.
14112 (syms_of_fileio): Declare it unconditionally.
14113
141142008-04-10 Jason Rumney <jasonr@gnu.org>
14115
14116 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
14117 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
14118
14119 * w32.c (logon_network_drive): Also logon to remote drives that
14120 are mapped to drive letters.
14121
141222008-04-10 Glenn Morris <rgm@gnu.org>
14123
14124 * xdisp.c (truncate-partial-width-windows): Doc fix.
14125
141262008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
14127
14128 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
14129 Move functions to minibuffer.el.
14130 (syms_of_fileio): Don't declare them.
14131
141322008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
14133
14134 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
14135 (syms_of_minibuf): Remove its initialization.
14136
14137 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
14138
141392008-04-09 Juanma Barranquero <lekktu@gmail.com>
14140
14141 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
14142
141432008-04-09 Jason Rumney <jasonr@gnu.org>
14144
14145 * makefile.w32-in (distclean): Delete makefile too.
14146 (maintainer-clean): New target.
14147
14148 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
14149
14150 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
14151 for new font backend and composite cases.
14152
141532008-04-09 Jan Djärv <jan.h.d@swipnet.se>
14154
14155 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
14156 Most of the code moved to run_timers.
14157 (do_pending_atimers): Call run_timers.
14158 (run_timers): New function.
14159
14160 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
14161 run atimers.
14162
14163 * process.c (wait_reading_process_output): The same as above.
14164
141652008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
14166
14167 * minibuf.c (last_exact_completion): Remove variable.
14168 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
14169 (complete_and_exit_1, complete_and_exit_2)
14170 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
14171 (Fdisplay_completion_list, display_completion_list_1)
14172 (Fminibuffer_completion_help, Fself_insert_and_exit)
14173 (Fexit_minibuffer, Fminibuffer_message): Move functions to
14174 minibuffer.el.
14175 (syms_of_minibuf): Remove corresponding initializations.
14176
14177 * keyboard.c (Qdeactivate_mark): New var.
14178 (command_loop_1): Use it to call `deactivate-mark'.
14179 (syms_of_keyboard): Initialize it.
14180
14181 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
14182 to another frame.
14183 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
14184 Don't call set_tty_color_mode.
14185 (store_frame_param): Reset previous_frame rather than call
14186 set_tty_color_mode.
14187 * term.c (set_tty_color_mode): Rewrite.
14188 * dispextern.h (set_tty_color_mode): New type.
14189 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
14190
141912008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
14192
14193 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
14194 for generic chars, which do not exist any more in emacs-unicode.
14195
141962008-04-08 Michael Albinus <michael.albinus@gmx.de>
14197
14198 * coding.c (detect_coding_emacs_mule)
14199 (Ffind_operation_coding_system): Fix typo.
14200
142012008-04-08 Jason Rumney <jasonr@gnu.org>
14202
14203 * w32uniscribe.c (SNAME): Extract only symbol name.
14204
14205 * w32font.h (struct w32_metric_cache): New struct.
14206 (w32font_info): Use it.
14207 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
14208 (CACHE_BLOCKSIZE): New constants.
14209
14210 * w32font.c (Qja, Qko, Qzh): New symbols.
14211 (syms_of_w32font): Initialise them.
14212 (font_matches_spec): Use them to filter by language.
14213 (recompute_cached_metrics): Remove function.
14214 (compute_metrics, clear_cached_metrics): New functions.
14215 (w32font_encode_char): Use them to manage metric cache.
14216 (w32font_text_extents): Cache metrics for all glyphs on demand.
14217 Delay converting glyph indices to WORD until needed.
14218 (w32font_open_internal): Initialize metric cache to empty.
14219 (registry_to_w32_charset): Charset should always be a symbol.
14220 (fill_in_logfont, list_all_matching_fonts): Family should
14221 always be a symbol.
14222
142232008-04-06 Jason Rumney <jasonr@gnu.org>
14224
14225 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
14226 Give up if glyph indices not supported. Use uniscribe obtained
14227 ABC widths for individual metrics. Map glyph clusters back to
14228 characters using fClusterStart flag. Return number of glyphs
14229 produced, not chars processed.
14230 (uniscribe_shape): Map char at FROM to current glyph.
14231
142322008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14233
14234 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
14235 Use SetMenuItemHierarchicalMenu.
14236
142372008-04-05 Jason Rumney <jasonr@gnu.org>
14238
14239 * image.c (pbm_load): Allow color values up to 65535.
14240 Throw an error if max_color_idx is outside the supported range.
14241 Report an error when image size is invalid.
14242 Read two bytes at a time when raw images have max_color_idx above 255.
14243
aac0c6e3
MR
142442008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
14245
14246 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
14247 append "CCL: Quitted" when the CCL program is quitted.
14248 (setup_ccl_program): Initialize ccl->quit_silently to zero.
14249
14250 * ccl.h (struct ccl_program): New member quit_silently.
14251
142522008-04-05 Chong Yidong <cyd@stupidchicken.com>
14253
14254 * search.c (compile_pattern_1): Treat non-nil and non-string of
14255 search-spaces-regexp as nil.
14256
14257 * minibuf.c (Fassoc_string): Tweak docstring.
14258
142592008-04-05 Eli Zaretskii <eliz@gnu.org>
14260
14261 * dired.c (Ffile_attributes): Support inode numbers wider than 32
14262 bits. Remove ugly WINDOWSNT-specific kludge introduced on
14263 2008-03-14 to force inode be positive.
14264
14265 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
14266 _S_* ones, since we now use our own sys/stat.h.
14267 (stat, fstat): Don't mangle the inode number.
14268 (init_user_info): Don't restrict UID and GID to 0-60000 range.
14269
142702008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
14271
14272 * frame.h (struct frame): Give one more bit to `visible' since we use
14273 values larger than 1 to indicate obscured frames on ttys.
14274
14275 * keymap.c (Qkeymap_canonicalize): New var.
14276 (Fmap_keymap_internal): New fun.
14277 (describe_map): Use keymap-canonicalize.
14278
14279 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
14280 (Fundo_boundary): Set them.
14281 (syms_of_undo): Initialize them.
14282 (record_point): Use them instead of last_point_position*.
14283 (last_undo_buffer): Change type.
14284
142852008-04-04 Jason Rumney <jasonr@gnu.org>
14286
14287 * w32font.c (w32font_text_extents): Use font's ascent and descent.
14288 (recompute_cached_metrics): Don't set ascent and descent per char.
14289
14290 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
14291 (uniscribe_check_otf): Add GC protection before consing.
14292 Rearrange loop for counting features.
14293
142942008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
14295
14296 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
14297 buffer with byte-size of source buffer.
14298
142992008-04-03 Chong Yidong <cyd@stupidchicken.com>
14300
14301 * callint.c (Fcall_interactively): Handle temporary region even
14302 when shift-select-mode is off.
14303
143042008-04-03 Jason Rumney <jasonr@gnu.org>
14305
14306 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
14307
143082008-04-03 Kenichi Handa <handa@m17n.org>
14309
14310 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
14311 (CATEGORY_MASK_UTF_16): Likewise.
14312 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
14313 binary file.
14314 (detect_coding): Add null-byte detection for a binary file.
14315 (detect_coding_system): Likewise.
14316
143172008-04-03 Jason Rumney <jasonr@gnu.org>
14318
14319 * w32uniscribe.c: New file.
14320
14321 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
14322
14323 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
14324
14325 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
14326 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
14327 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
14328 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
14329 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
14330 (Qphonetic): New symbols.
14331 (syms_of_w32font): Initialize them.
14332 (font_supported_scripts): Use them.
14333 (w32font_list_family): List all charsets.
14334 (w32font_text_extents, recompute_cached_metrics): Fix metric
14335 calculations.
14336 (w32_enumfont_pattern_entity): Make full_type a DWORD.
14337 Give opentype fonts their own format.
14338 (font_matches_spec): New arguments backend and logfont.
14339 Handle :otf spec for uniscribe backend.
14340 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
14341 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
14342
14343 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
14344 font backend.
14345 (globals_of_w32fns): Initialize uniscribe font backend.
14346
14347 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
14348 dependencies.
14349 (w32uniscribe.$(O)): New file to build.
14350 (FONT_OBJ): Include w32uniscribe.$(O).
14351 (LIBS): Add uniscribe libraries.
14352
14353 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
14354
143552008-04-02 Chong Yidong <cyd@stupidchicken.com>
14356
14357 * callint.c (Vshift_select_mode): New var.
14358 (Finteractive): Document new ^ spec.
14359 (Fcall_interactively): Call handle-shift-selection if the ^ spec
14360 is present.
14361
14362 * keyboard.c (Vthis_command_keys_shift_translated): New var.
14363 (command_loop_1): Avoid running the direct display versions of
14364 forward-char and backward-char if shift-selection may occur.
14365 (read_key_sequence): Set Vthis_command_keys_shift_translated if
14366 shift-translation takes place.
14367
14368 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
14369 avoid clobbering by define-minor-mode.
14370
14371 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
14372 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
14373
14374 * syntax.c (Fforward_word): Add ^ interactive spec.
14375
14376 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
14377 (Fscroll_right): Add ^ interactive spec.
14378
143792008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
14380
14381 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
14382
14383 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
14384
14385 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
14386
143872008-03-31 Juri Linkov <juri@jurta.org>
14388
14389 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
14390
143912008-03-30 Jan Djärv <jan.h.d@swipnet.se>
14392
14393 * gtkutil.c (xg_set_geometry): Fix indentation.
14394 (xg_resize_outer_widget): Remove.
14395 (x_wm_size_hint_off): Fix indentation.
14396 (xg_frame_set_char_size): Call flush_and_sync after
14397 gtk_window_resize.
14398 (x_wm_set_size_hint): Pass NULL as geometry window to
14399 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
14400 Add menu bar and tool bar height to base height.
14401 (xg_update_frame_menubar, free_frame_menubar)
14402 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
14403 (update_frame_tool_bar, free_frame_tool_bar):
14404 Change xg_resize_outer_widget to xg_frame_set_char_size.
14405
144062008-03-30 Michael Albinus <michael.albinus@gmx.de>
14407
14408 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
14409 (Fdbus_call_method): New parameter TIMEOUT.
14410 (dbus-send-signal): Optimize UNGCPRO call.
14411
144122008-03-29 Juri Linkov <juri@jurta.org>
14413
14414 * window.c (Fdisplay_buffer): Move call to
14415 Vsplit_window_preferred_function out of conditions that check
14416 if window is eligible for vertical splitting.
14417 When Vsplit_window_preferred_function is non-nil, call it and use
14418 its non-nil return value as window. Otherwise, continue doing
14419 vertical splitting using Fsplit_window with arg horflag=nil.
14420 (syms_of_window) <Vsplit_window_preferred_function>: Change the
14421 default value from `split-window' to nil.
14422
144232008-03-29 Juri Linkov <juri@jurta.org>
14424
14425 * callint.c (Fcall_interactively): Revert 2008-03-16 change
14426 for interactive code letters 'b' and 'B'.
14427
144282008-03-29 Eli Zaretskii <eliz@gnu.org>
14429
14430 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
14431 multibyte string.
14432
144332008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
14434
14435 * keyboard.c (pending_funcalls): New var.
14436 (timer_check): Run it.
14437 (syms_of_keyboard): Initialize it.
14438 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
14439 (Vdelete_terminal_functions): New vars.
14440 (syms_of_terminal): Initialize them.
14441 (Fdelete_terminal): Run delete-terminal-functions.
14442 * xdisp.c (safe_eval): Rewrite.
14443 (safe_call2): New fun.
14444 * frame.c (Qdelete_frame_functions): New var.
14445 (syms_of_frame): Initialize it.
14446 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
14447 * lisp.h (safe_call2, pending_funcalls): Declare.
14448
144492008-03-28 Andreas Schwab <schwab@suse.de>
14450
14451 * indent.c (Fmove_to_column): Move declaration before statements.
14452
144532008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
14454
14455 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
14456 (struct frame): Use bit fields for boolean vars.
14457
14458 * process.c (server_accept_connection): Simplify naming.
14459 (emacs_get_tty_pgrp): Use SDATA.
14460
14461 * coding.c (decode_coding_object): Fix last change.
14462
144632008-03-27 Jason Rumney <jasonr@gnu.org>
14464
14465 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
14466
144672008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
14468
14469 * charset.c (Fdefine_charset_internal): Change the way of
14470 registering charsets in Vcharset_order_list.
14471 (syms_of_charset): Make the charset `eight-bit' supplementary.
14472
144732008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
14474
14475 * regex.c (EXTEND_BUFFER): Change order of pointer addition
14476 operations, to avoid having the difference between pointers
14477 overflow.
14478
144792008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
14480
14481 * indent.c (check_display_width): New fun.
14482 (scan_for_column): Use it.
14483
14484 * data.c (syms_of_data): Mark most-positive-fixnum and
14485 most-negative-fixnum as constants.
14486
14487 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
14488
14489 * indent.c (scan_for_column): Extract from current_column_1.
14490 Merge with the same code from Fmove_to_column.
14491 (current_column_1, Fmove_to_column): Use it.
14492
144932008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
14494
14495 * keymap.c (map_keymap_internal): New fun.
14496 (map_keymap): Use it.
14497 (Fmap_keymap_internal): New fun.
14498 (Fmap_keymap): Remove left-out test from before make_save_value.
14499
14500 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
14501
14502 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
14503 Use XCAR/XCDR.
14504
14505 * process.h (struct Lisp_Process): Remove filter_multibyte.
14506 * process.c (QCfilter_multibyte): Remove.
14507 (setup_process_coding_systems): Don't use filter_multibyte.
14508 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
14509 (read_process_output): Don't adjust multibyteness to filter_multibyte.
14510 (Fset_process_filter_multibyte): Change the coding-system to
14511 approximate the previous behavior.
14512 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
14513 coding-system.
14514
14515 * coding.c (decode_coding_object): When not decoding into a buffer,
14516 obey the coding system's preference of (uni|multi)byte.
14517
145182008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
14519
14520 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
14521 every char is changed and has a different byte-length.
14522 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
14523 Fix int -> EMACS_INT.
14524
145252008-03-23 David Hansen <david.hansen@gmx.net>
14526
14527 * dbusbind.c (xd_read_message): Remove extra copying of message
14528 strings. Check for NULL `interface' or `member'.
14529
145302008-03-22 Eli Zaretskii <eliz@gnu.org>
14531
14532 * w32.c (readdir): If FindFirstFile/FindNextFile return in
14533 cFileName a file name that includes `?' characters, use the 8+3
14534 alias in cAlternateFileName instead.
14535
145362008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
14537
14538 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
14539
145402008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
14541
14542 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
14543 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
14544 work on current_buffer only instead (that was already the case
14545 for some of the code anyway).
14546 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
14547 (temp_set_point, temp_set_point_both): Use EMACS_INT.
14548 (SET_PT, SET_PT_BOTH): Adjust.
14549 * intervals.h (set_point, temp_set_point, set_point_both)
14550 (temp_set_point_both): Remove redundant declarations.
14551
145522008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
14553
14554 * fileio.c (Finsert_file_contents):
14555 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
14556 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
14557 when buffer != current_buffer anyway.
14558
145592008-03-20 Andreas Schwab <schwab@suse.de>
14560
14561 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
14562 as default.
14563
145642008-03-19 Jason Rumney <jasonr@gnu.org>
14565
14566 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
14567 (syms_of_w32fns): Initialize them.
14568 (HOURGLASS_ID): New constant.
14569 (x_window_to_frame): Don't check hourglass_window.
14570 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
14571 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
14572 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
14573 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
14574 Only change the cursor if hourglass is not active.
14575 (Fx_create_frame): Initialize frame's current_cursor.
14576 (hourglass_atimer): Remove.
14577 (hourglass_started): New function.
14578 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
14579 (show_hourglass): Adapt to w32, changing argument to frame.
14580
14581 * w32term.h (struct w32_output): Remove hourglass_window.
14582 Add current_cursor.
14583
14584 * eval.c (call_debugger, Fsignal):
14585 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
14586 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
14587 (Fexecute_extended_command, cancel_hourglass_unwind):
14588 * minibuf.c (read_minibuf):
14589 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
14590
145912008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
14592
14593 * window.c (run_funs): New fun.
14594 (run_window_configuration_change_hook): Use it to run the buffer-local
14595 and the global part of the hook.
14596
14597 * xdisp.c (format_mode_line_unwind_data): Add window argument.
14598 (unwind_format_mode_line): Restore selected window.
14599 (x_consider_frame_title, Fformat_mode_line): Set selected window.
14600
146012008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
14602
14603 * editfns.c (Fchar_equal): Check they are valid characters.
14604
14605 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
14606
146072008-03-17 Andreas Schwab <schwab@suse.de>
14608
14609 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
14610 against a charset.
14611
14612 * lisp.h (Fbuffer_list): Declare.
14613
146142008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 14615
aac0c6e3
MR
14616 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
14617 handlebox_widget is != 0.
14618
146192008-03-16 Juri Linkov <juri@jurta.org>
14620
14621 * callint.c (Fcall_interactively): For interactive code letters
14622 'b' and 'B' put the buffer list into the list of default "future"
14623 values of the minibuffer.
14624
146252008-03-16 Andreas Schwab <schwab@suse.de>
14626
14627 * keyboard.c (read_key_sequence): Fix downcasing of letters with
14628 modifiers.
14629
14630 * regex.c (re_match_2_internal): Correct matching of a charset
14631 against latin-1 characters.
14632
146332008-03-16 Kenichi Handa <handa@m17n.org>
14634
14635 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
14636 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
14637 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
14638 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
14639 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
14640 CHAR_STRING_ADVANCE.
14641 (produce_chars): Fix for the case that the source and the
14642 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
14643 instead of CHAR_STRING_ADVANCE.
14644 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
14645 STRING_CHAR_ADVANCE.
14646
146472008-03-15 Andreas Schwab <schwab@suse.de>
14648
14649 * regex.c (re_match_2_internal): Correct matching of eight bit
14650 characters in unibyte strings.
14651
146522008-03-15 Martin Rudalics <rudalics@gmx.at>
14653
14654 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
14655 at end of range when it coincides with the end of the buffer.
14656
146572008-03-14 Eli Zaretskii <eliz@gnu.org>
14658
14659 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
14660
14661 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
14662
146632008-03-14 Jason Rumney <jasonr@gnu.org>
14664
14665 * editfns.c (initial_tz): New variable.
14666 (syms_of_editfns): Initialize it.
14667 (Fset_time_zone_rule): Set it when first called.
14668 Use it when TZSTRING is nil.
14669
14670 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
14671 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
14672 (monitor_from_point_fn, get_monitor_info_fn): New globals.
14673 (globals_of_w32fns): Initialize them.
14674 (compute_tip_xy): Use them to position tooltips.
14675
146762008-03-14 Glenn Morris <rgm@gnu.org>
14677
14678 * emacs.c (main): Revert previous change.
14679 (standard_args): Revert -internal-script back to -scriptload,
14680 and remove the long-option form.
14681
146822008-03-13 Glenn Morris <rgm@gnu.org>
14683
14684 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
14685 Remove option -enable-font-backend.
14686
146872008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
14688
14689 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
14690
146912008-03-11 Jan Djärv <jan.h.d@swipnet.se>
14692
14693 * xterm.c (x_connection_closed): For GTK: If this is the last
14694 terminal just exit without closing the display.
14695
146962008-03-11 Jason Rumney <jasonr@gnu.org>
14697
14698 * w32font.c (w32font_full_name): Use floor to round.
14699
f0131492 147002008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
14701
14702 * sound.c (alsa_configure): Declare vol at beginning of block.
14703
14704 * fontset.c (Ffontset_info): Remove extra semicolon.
14705
147062008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
14707
14708 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
14709 size of resulting string.
14710
147112008-03-10 Jason Rumney <jasonr@gnu.org>
14712
14713 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
14714
147152008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14716
14717 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
14718 Don't pretend as if characters with display property haven't been
14719 consumed for string-replacing-string case.
14720
147212008-03-08 Kim F. Storm <storm@cua.dk>
14722
14723 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
14724 (get_next_display_element, next_element_from_string)
14725 (next_element_from_ellipsis, next_element_from_buffer): Use it.
14726
147272008-03-08 Andreas Schwab <schwab@suse.de>
14728
14729 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
14730
147312008-03-06 Jason Rumney <jasonr@gnu.org>
14732
14733 * w32font.c (w32_registry): Take font_type argument. Use ANSI
14734 when charset not specified. Only translate ANSI to unicode when
14735 font_type is truetype.
14736 (w32font_coverage_ok): New function.
14737 (add_font_entity_to_list): Use it to filter unsuitable fonts.
14738
147392008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
14740
14741 * lread.c (Fread_char): Resolve modifiers.
14742 (Fread_char_exclusive): Likewise.
14743
14744 * character.c (char_resolve_modifier_mask): New function.
14745 (char_string): Use char_resolve_modifier_mask.
14746 (Fchar_resolve_modifiers): New function.
14747 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
14748 function.
14749
147502008-03-04 Jason Rumney <jasonr@gnu.org>
14751
14752 * makefile.w32-in: Always include w32font.c in the build.
14753 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
14754
147552008-03-04 Andreas Schwab <schwab@suse.de>
14756
14757 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
14758 (versionclean): Likewise.
14759
147602008-03-04 Juanma Barranquero <lekktu@gmail.com>
14761
14762 * .cvsignore: Add oo.
14763
147642008-03-03 Andreas Schwab <schwab@suse.de>
14765
14766 * coding.c (decode_coding_object): Inhibit gap shrinking while
14767 decoding in place.
14768
147692008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
14770
14771 * w32term.c: Remove unused include "gnu.h".
14772 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
14773
14774 * gnu.h: Rename to ...
14775 * emacs-icon.h: ... this.
14776 * xterm.c: Use emacs-icon.h instead of gnu.h.
14777 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
14778
147792008-03-03 Juanma Barranquero <lekktu@gmail.com>
14780
14781 * w32font.c: Include math.h.
14782
147832008-03-03 Jason Rumney <jasonr@gnu.org>
14784
14785 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
14786 Compute options separately.
14787 (w32font_open_internal): Set glyph_idx before caching metrics.
14788
14789 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
14790 Define if system headers don't.
14791 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
14792 (w32font_encode_char): Don't declare here.
14793
14794 * w32font.c (Quniscribe, QCformat): New symbols.
14795 (syms_of_w32font): Define them.
14796 (w32font_has_char): Indicate uncertainty.
14797 (w32font_encode_char): Encode as glyph point. Make static.
14798 (recompute_cached_metrics): New function.
14799 (w32font_open_internal): Use it. Set font to use glyph points
14800 initially. Set format based on type of font.
14801 (w32font_text_extents, w32font_draw): Optionally use glyph points.
14802 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
14803 on it. Set format based on information available here.
14804 (add_font_entity_to_list): Identify backend based on opentype_only.
14805
148062008-03-02 Andreas Schwab <schwab@suse.de>
14807
14808 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
14809
14810 * coding.c (decode_coding_big5, produce_chars):
14811 Fix typos in last change.
14812
148132008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
14814
14815 * gnu.h: New icon.
14816
148172008-03-02 Kenichi Handa <handa@m17n.org>
14818
14819 * coding.c (decode_coding_utf_8): When eol-type of CODING is
14820 `dos', don't decode '\r' if that is the last in the source.
14821 (decode_coding_utf_16, decode_coding_emacs_mule)
14822 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14823 (decode_coding_raw_text, decode_coding_charset): Likewise.
14824 (produce_chars): Don't decode EOL here. Use EMACS_INT.
14825
148262008-03-01 Jason Rumney <jasonr@gnu.org>
14827
14828 * w32font.c (w32font_full_name): Report point size for scalable fonts.
14829
148302008-03-01 Kim F. Storm <storm@cua.dk>
14831
14832 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
14833
148342008-03-01 Jason Rumney <jasonr@gnu.org>
14835
14836 * w32font.c (w32font_full_name): New function.
14837 (w32font_open_internal): Use it.
14838
148392008-03-01 Kim F. Storm <storm@cua.dk>
14840
14841 * dispnew.c (line_draw_cost): Fix invalid glyph check.
14842
148432008-03-01 Jason Rumney <jasonr@gnu.org>
14844
14845 * font.c (font_unparse_fcname): Increase len when style is a symbol.
14846
148472008-03-01 Jan Djärv <jan.h.d@swipnet.se>
14848
14849 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
14850 xg_frame_resized when the event is for the edit widget.
14851
14852 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
14853
14854 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
14855 set_char_size.
14856 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
14857 operations on widgets here. Just set frame size if needed.
14858 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
14859 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
14860 (x_wm_set_size_hint): Set size hints on the edit widget only, not
14861 the whole frame.
14862 (xg_create_tool_bar): Move attachment of the tool bar to
14863 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
14864 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
14865
148662008-03-01 Jason Rumney <jasonr@gnu.org>
14867
14868 * w32fns.c (w32_msg_pump): Disable debug code.
14869
148702008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14871
14872 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
14873
148742008-02-29 Chong Yidong <cyd@stupidchicken.com>
14875
14876 * xdisp.c (next_overlay_string): Don't set
14877 overlay_strings_at_end_processed_p if we're currently reading from
14878 a display string.
14879
148802008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
14881
14882 * xdisp.c (get_overlay_strings_1): Fix typo.
14883
148842008-02-29 Chong Yidong <cyd@stupidchicken.com>
14885
14886 * xdisp.c (get_overlay_strings_1): Add missing argument type.
14887
148882008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
14889
14890 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
14891
14892 * xdisp.c (display_mode_element): Cancel the previous change.
14893 (decode_mode_spec): Likewise.
14894 (handle_auto_composed_prop): Don't make composition if it->string
14895 is a string.
14896
148972008-02-27 Kim F. Storm <storm@cua.dk>
14898
14899 * lisp.h (GLYPH): Change type from int to struct with separate char
14900 and face_id members.
14901 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
14902 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
14903 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
14904 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
14905 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
14906 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
14907 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
14908 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
14909 handle new Lisp glyph code encoding, either an integer or a cons.
14910
14911 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
14912 (GLYPH_ALIAS): Delete.
14913 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
14914 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
14915 (GLYPH_FROM_CHAR): Replace macro by ...
14916 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
14917
14918 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
14919 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
14920 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
14921 (GLYPH_INVALID_P): New macro.
14922 (spec_glyph_lookup_face): Update prototype.
14923
14924 * dispnew.c (line_draw_cost): Adapt to new glyph type.
14925 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
14926 new glyph code encoding.
14927 (spec_glyph_lookup_face): No return value; update passed glyph instead.
14928 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
14929
14930 * xdisp.c (get_next_display_element, next_element_from_display_vector):
14931 Adapt to new glyph type and new glyph code encoding.
14932
14933 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
14934
14935 * indent.c (current_column, current_column_1, Fmove_to_column)
14936 (compute_motion): Adapt to new glyph code encoding.
14937
14938 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
14939
149402008-02-27 Chong Yidong <cyd@stupidchicken.com>
14941
14942 * process.c (wait_reading_process_output): Check for window
14943 changes caused by timers.
14944 Suggested by Johan Bockgård.
14945
149462008-02-27 Glenn Morris <rgm@gnu.org>
14947
14948 * emacs.c (USAGE1): Add `--disable-font-backend'.
14949
149502008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
14951
14952 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
14953 is made to the buffer.
14954
149552008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
14956
14957 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
14958 (face_at_string_position):
14959 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
14960 (face_at_string_position):
14961 * xdisp.c (display_string, next_overlay_change):
14962 * buffer.h (overlays_at):
14963 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
14964 Update callers.
14965
149662008-02-26 Chong Yidong <cyd@stupidchicken.com>
14967
14968 * editfns.c (Fformat): Doc fix.
14969
149702008-02-26 Juanma Barranquero <lekktu@gmail.com>
14971
14972 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
14973 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
14974 (Ffont_otf_alternates, Fquery_font): Doc fixes.
14975
149762008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
14977
14978 * buffer.c (Fbuffer_swap_text): New function.
14979 (syms_of_buffer): Defsubr it.
14980
149812008-02-25 Chong Yidong <cyd@stupidchicken.com>
14982
14983 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
14984
149852008-02-25 Jason Rumney <jasonr@gnu.org>
14986
14987 * w32font.c (w32font_draw): Draw one character at a time when padding.
14988
149892008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
14990
14991 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
14992 Handle a nil arg. Use run_window_configuration_change_hook.
14993 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
14994 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
14995 Use run_window_configuration_change_hook.
14996
149972008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
14998
14999 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
15000 1-pixel width.
15001
150022008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
15003
15004 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
15005 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
15006 if the glyph in the font is zero pixel with.
15007
15008 * dispextern.h (struct glyph_string): New member padding_p.
15009
15010 * w32font.c (w32font_draw): Pay attention to s->padding_p.
15011
15012 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
15013
15014 * xfont.c (xfont_draw): Pay attention to s->padding_p.
15015
15016 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
15017
15018 * font.c: If the font driver doesn't have `shape' function, return Qnil.
15019
150202008-02-25 Jason Rumney <jasonr@gnu.org>
15021
15022 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
15023
150242008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
15025
15026 Allow fine-grained image-cache flushing.
15027 * dispextern.h (struct image): Add `dependencies' field.
15028 (clear_image_caches): Change arg to Lisp_Object.
15029 * image.c (make_image): Initialize `dependencies' field.
15030 (clear_image_cache): Change arg to allow fine-grained flushing.
15031 Perform the flush even if image-cache-eviction-delay is nil.
15032 (clear_image_caches): Change arg to Lisp_Object.
15033 (Fclear_image_cache): Expand meaning of the argument.
15034 (mark_image): Mark `dependencies' field.
15035 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
15036 (lface_hash): Use XHASH rather than XFASTINT.
15037 (face_at_buffer_position): Fix int -> EMACS_INT position.
15038 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
15039 (select_frame_for_redisplay): Remove code duplication.
15040 (redisplay_internal): Adapt arg to call to clear_image_caches.
15041
150422008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
15043
15044 * s/vms4-0.h:
15045 * s/vms4-2.h:
15046 * s/vms4-4.h:
15047 * s/vms5-5.h: Remove, unused.
15048
15049 * s/irix5-2.h:
15050 * s/irix6-0.h:
15051 * s/riscos5.h:
15052 * s/mach-bsd4-3.h:
15053 * m/mips4.h: Remove files for obsolete systems.
15054
15055 * Makefile.in:
15056 * filelock.c:
15057 * unexmips.c:
15058 * m/hp9000s300.h:
15059 * m/iris4d.h:
15060 * s/aix3-1.h:
15061 * s/hpux.h:
15062 * s/msdos.h:
15063 * s/usg5-0.h:
15064 * s/usg5-2-2.h:
15065 * s/usg5-2.h:
15066 * s/usg5-3.h: Remove references to obsolete variables.
15067
15068 * s/irix5-0.h: Remove, move all the contents ...
15069 * s/irix6-5.h: ... here. Simplify.
15070 * config.in: Regenerate.
15071
150722008-02-24 Jason Rumney <jasonr@gnu.org>
15073
15074 * w32term.c (x_draw_glyph_string_background): Clear the background
15075 manually when cleartype is in use.
15076 (x_draw_glyph_string_foreground): Draw text transparently when
15077 cleartype is in use.
15078
15079 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
15080 a font into it unless we have to.
15081
150822008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
15083
15084 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
15085 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 15086
aac0c6e3
MR
150872008-02-18 Jason Rumney <jasonr@gnu.org>
15088
15089 * w32fns.c (Fw32_shell_execute): Encode parameters.
15090
150912008-02-09 Eli Zaretskii <eliz@gnu.org>
15092
15093 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
15094
150952008-02-05 Juanma Barranquero <lekktu@gmail.com>
15096
15097 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
15098
150992008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
15100
15101 * xterm.c (x_set_offset): Don't change the gravity if
15102 CHANGE_GRAVITY is -1.
15103
151042008-02-23 Chong Yidong <cyd@stupidchicken.com>
15105
15106 * fileio.c (auto_save_error_occurred): New var.
15107 (auto_save_error): Set it.
15108 (Fdo_auto_save): Don't overwrite the error message if an auto-save
15109 error occurred.
15110
151112008-02-23 Eli Zaretskii <eliz@gnu.org>
15112
15113 * w32.c (globals_of_w32): Add initializations for
15114 g_b_init_get_sid_sub_authority and
15115 g_b_init_get_sid_sub_authority_count.
15116
151172008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
15118
15119 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
15120 (font_parse_xlfd): Use them for sanity check.
15121 (Finternal_set_font_style_table): Make sure the table is bijective.
15122
15123 Consolidate the image_cache to the terminal struct.
15124 * termhooks.h (P_): Remove redundant def.
15125 (struct terminal): New field `image_cache'.
15126 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
15127 of FRAME_X_IMAGE_CACHE.
15128 * xterm.h (struct x_display_info): Remove image_cache field.
15129 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15130 * w32term.h (struct w32_display_info): Remove image_cache field.
15131 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15132 * macterm.h (struct mac_display_info): Remove image_cache field.
15133 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15134 * xterm.c (x_term_init):
15135 * w32term.c (w32_term_init):
15136 * macterm.c (mac_term_init): Set the image_cache in the terminal.
15137 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
15138 Remove declarations.
15139 (clear_image_caches, mark_image_cache): New declarations.
15140 * xfaces.c (clear_face_cache):
15141 * xdisp.c (redisplay_internal): Use clear_image_caches.
15142 * image.c (clear_image_cache): Don't check that a frame is on
15143 a window-system before checking if it shares the same cache.
15144 (clear_image_caches): New function.
15145 (Fclear_image_cache): Use it.
15146 (mark_image): Move from allo.c.
15147 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
15148 * alloc.c (mark_image, mark_image_cache): Move to image.c.
15149 (mark_object): Don't call mark_image_cache for frames.
15150 (mark_terminals): Call mark_image_cache.
15151
15152 * lisp.h (Fdelete_terminal): Declare.
15153
15154 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
15155 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
15156 wrong_type_argument.
15157
151582008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
15159
15160 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
15161 malayalam.el, and tamil.el. Add sinhala.el.
15162
151632008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
15164
15165 * xterm.c (x_connection_closed): Consolidate identical tests.
15166 (x_delete_terminal): Don't crash if called via x_connection_closed.
15167
151682008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
15169
15170 * xdisp.c (decode_mode_spec): New arg string.
15171 (display_mode_element): Adjust for the above change.
15172
151732008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
15174
15175 * callint.c (Fcall_interactively): Use AREF.
15176
151772008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
15178
15179 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
15180
151812008-02-18 Jan Djärv <jan.h.d@swipnet.se>
15182
15183 * xfns.c (Fx_show_tip): Set string to " " if empty.
15184
151852008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
15186
15187 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
15188 with Qt.
15189
151902008-02-17 Kenichi Handa <handa@m17n.org>
15191
15192 * ftfont.c (ftfont_shape): Return Lispy number.
15193
15194 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
15195 for GCs.
15196 (Finternal_set_font_selection_order): Call font_update_sort_order
15197 only when enable_font_backend is set.
15198 (realize_x_face): Set face->font_info to that of default face only
15199 when enable_font_backend is set.
15200
15201 * xdisp.c (handle_composition_prop): Set it->c to the fist
15202 character of the composed region.
15203 (fill_composite_glyph_string): Set base_face->font_info to
15204 s->font_info. Get a face for ascii from base_face->ascii_face.
15205 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
15206 with a face already decided.
15207 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
15208 non-negative.
15209 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
15210 call font_prepare_composition unconditionally.
15211
15212 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
15213
15214 * xterm.h (struct x_display_info): New member font.
15215
15216 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
15217 (x_set_mouse_face_gc, x_new_font): Likewise.
15218 (x_term_init): Setup display_info->font.
15219 (x_delete_terminal): Free display_info->font.
15220
15221 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
15222
15223 * ftxfont.c (ftxfont_default_fid): Delete it.
15224 (ftxfont_open): Set xfont->fid to 0.
15225 (ftxfont_end_for_frame): Clear data specific to the frame and the
15226 font-driver.
15227
15228 * xftfont.c (xftfont_default_fid): Delete it.
15229 (xftfont_open): Set xfont->fid to 0.
15230
15231 * fontset.c (FONTSET_OBJLIST): New macro.
15232 (fontset_find_font): Update font-object list of the fontset.
15233 (free_realized_fontset): New function.
15234 (free_face_fontset): Call free_realized_fontset.
15235 (Ffont_info): Call font_close_object only when enable_font_backend
15236 is set.
15237
15238 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
15239 [HAVE_NTGUI]: Include w32term.h.
15240 [MAC_OS]: Include macterm.ch.
15241 (font_otf_ValueRecord): Use make_number.
15242 (font_finish_cache): Fix handling of reference count.
15243 (font_clear_cache): Update num_fonts.
15244 (font_open_entity): Update smallest_char_width and
15245 smallest_font_height of the frame.
15246 (font_close_object): Update num_fonts.
15247 (Fclear_font_cache): Fix finding the target cache data.
15248
152492008-02-16 Glenn Morris <rgm@gnu.org>
15250
15251 * fontset.c (Finternal_char_font): Fix compilation warning.
15252
152532008-02-16 Eli Zaretskii <eliz@gnu.org>
15254
15255 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
15256 instead of char arrays. Enlarge the size of array passed to
15257 get_token_information.
15258
15259 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
15260 warnings.
15261
152622008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
15263
15264 * .gdbinit: Don't set `args', it breaks gdb --args.
15265
152662008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
15267
15268 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
15269 within a narrowed buffer.
15270
152712008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
15272
15273 * coding.c (decode_coding_object, encode_coding_object):
15274 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
15275
152762008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
15277
15278 * coding.c (coding_set_destination): Use BEG_BYTE rather than
15279 hardcoding 1.
15280 (detect_coding_system):
15281 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
15282 (string_char_to_byte, string_byte_to_char, insert_from_gap):
15283 * insdel.c (insert_from_gap):
15284 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
15285 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
15286 (string_to_multibyte):
15287 * character.c (chars_in_text, multibyte_chars_in_text):
15288 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
15289
15290 * character.h (FETCH_STRING_CHAR_ADVANCE)
15291 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
15292 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
15293 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
15294
15295 * casefiddle.c (casify_region): Only call after-change and composition
15296 functions on the part of the region that was changed.
15297
15298 * keyboard.c (read_avail_input):
15299 * frame.c (Fdelete_frame): Call Fdelete_terminal.
15300
153012008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
15302
15303 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
15304 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
15305
153062008-02-11 Juanma Barranquero <lekktu@gmail.com>
15307
15308 * w32menu.c (push_submenu_start, push_submenu_end)
15309 (push_left_right_boundary, push_menu_pane, push_menu_item):
15310 * keyboard.c (read_key_sequence): Don't pass args with side effects
15311 to AREF, it fails when compiling with -DENABLE_CHECKING.
15312
153132008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
15314
15315 * Makefile.in (${lispsource}international/charprop.el):
15316 Delete this target.
15317
15318 * search.c (boyer_moore): Fix incorrect synching of the trunk and
15319 emacs-unicode-2.
15320
153212008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
15322
15323 * terminal.c (Fdelete_terminal): Clean up the `force' path.
15324
153252008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
15326
15327 * frame.c (Qnoelisp): New symbol.
15328 (syms_of_frame): Initialize it.
15329 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
15330 harmless Elisp code, from a strong `force' from x_connection_closed.
15331 * frame.h (Qnoelisp): Declare.
15332 * xterm.c (x_connection_closed): Pass `noelisp'.
15333
15334 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
15335 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
15336 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
15337 rather than `int' for the type of `type'.
15338
153392008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
15340
15341 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
15342
15343 * Makefile.in (GNUC): Remove support for gcc-1.x.
15344
153452008-02-10 Richard Stallman <rms@gnu.org>
15346
15347 * lisp.h (ASET): Use AREF, not ASLOT.
15348
153492008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
15350
15351 * lisp.h (ASET): Check bounds.
15352
153532008-02-10 Glenn Morris <rgm@gnu.org>
15354
15355 * buffer.c (mode-name): Doc fix.
15356
153572008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
15358
15359 * Makefile.in:
15360 * emacs.c:
15361 * gmalloc.c:
15362 * keyboard.c:
15363 * lisp.h:
15364 * m/ibm370aix.h:
15365 * process.c:
15366 * regex.c:
15367 * s/hpux.h:
15368 * sysdep.c:
15369 * sysselect.h:
15370 * systty.h:
15371 * unexec.c:
15372 * w32term.c:
15373 * xsmfns.c:
15374 * xterm.c: Remove code that deals with obsolete variables.
15375
15376 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
15377
15378 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
15379 nothing else needs it anymore.
15380
153812008-02-09 Eli Zaretskii <eliz@gnu.org>
15382
15383 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
15384 instead of unibyte_char_to_multibyte.
15385
153862008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
15387
15388 * s/gnu-linux.h: Remove commented out code.
15389
15390 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
15391
15392 * Makefile.in: Update what RMS says about using autoconf.
15393 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
15394 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
15395 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
15396 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
15397
153982008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
15399
15400 * keymap.c (Fkey_description): Move side effect outside of macro call.
15401
15402 * xfaces.c (Finternal_make_lisp_face):
15403 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
15404
15405 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
15406 (syms_of_fontset): Use ASET.
15407
15408 * fns.c (concat): Move side effect outside of macro call.
15409 (hash_clear): Use ASET.
15410
154112008-02-08 Richard Stallman <rms@gnu.org>
15412
15413 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
15414 If FORCE, and frame has a surrogate minibuffer for another frame,
15415 delete the other frame first.
15416
154172008-02-07 Timo Savola <timo.savola@iki.fi>
15418
15419 * xterm.c (x_detect_focus_change): Handle embed client message.
15420 (handle_one_xevent): Ditto.
15421 (handle_one_xevent): If embedded and we get a button press/release,
15422 request focus.
15423 (xembed_set_info, xembed_send_message): New functions.
15424 (x_make_frame_visible): Call xembed_set_info if embedded.
15425 (x_make_frame_invisible): Call xembed_set_info if embedded.
15426 (x_term_init): Initialize Xatom_XEMBED.
15427 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
15428 (x_iconify_frame): Ditto.
15429
15430 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
15431 (enum xembed_info, enum xembed_message, enum xembed_focus)
15432 (enum xembed_modifier, enum xembed_accelerator): New.
15433 (xembed_set_info, xembed_send_message): Declare.
15434 (FRAME_X_EMBEDDED_P): New.
15435
15436 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
15437 gtk_plug_new.
15438
15439 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
15440 window ID of a frame.
15441 (x_window): Reparent frame if embedded.
15442 (Fx_create_frame): Don't set border width if embedded.
15443
15444 * emacs.c (USAGE3): Add --parent-id.
15445 (standard_args): Ditto.
15446
154472008-02-07 Jan Djärv <jan.h.d@swipnet.se>
15448
15449 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
15450
154512008-02-07 Jim Meyering <meyering@redhat.com>
15452
15453 Use "do...while (0)", not "if (1)...else" in macro definitions.
15454 The latter provokes a warning from gcc about the empty else, when
15455 followed by ";". Also, without that trailing semicolon, it would
15456 silently swallow up any following statement.
15457 * syntax.h (SETUP_SYNTAX_TABLE)
15458 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
15459 * buffer.h (DECODE_POSITION): Likewise.
15460 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
15461 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
15462 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
15463 (FETCH_CHAR_ADVANCE): Likewise.
15464 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
15465
154662008-02-07 Jim Meyering <meyering@redhat.com>
15467
15468 * lread.c [lint]: Don't include <sys/inode.h>.
15469
154702008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
15471
15472 * xselect.c (x_handle_dnd_message):
15473 * xmenu.c (digest_single_submenu, xmenu_show):
15474 * xdisp.c (with_echo_area_buffer_unwind_data)
15475 (format_mode_line_unwind_data, unwind_format_mode_line)
15476 (display_menu_bar):
15477 * eval.c (Ffetch_bytecode):
15478 * doc.c (store_function_docstring):
15479 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
15480 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
15481 * buffer.c (add_overlay_mod_hooklist): Use ASET.
15482
154832008-02-07 Kenichi Handa <handa@m17n.org>
15484
15485 * ftxfont.c (ftxfont_open): Don't set
15486 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
15487
15488 * ftfont.c (ftfont_open): Fix previous change.
15489
154902008-02-06 Jason Rumney <jasonr@gnu.org>
15491
15492 * w32font.c (w32font_text_extents): Fill in lbearing metric.
15493 Use cached metrics for ASCII characters.
15494 (w32font_open_internal): Don't set font's owning_frame.
15495 Cache metrics for ASCII characters.
15496
15497 * w32font.h (struct w32font_info): Add ascii_metrics.
15498 Remove owning_frame.
15499
155002008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
15501
15502 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
15503 to negative value.
15504
15505 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
15506
15507 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
15508
15509 * charset.c (syms_of_charset): Set QCtest and Qeq.
15510
155112008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
15512
15513 * process.c (Fstart_process):
15514 * callproc.c (Fcall_process): Handle the case where
15515 Funhandled_file_name_directory returns nil.
15516
15517 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
15518 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
15519 * font.c (check_gstring): Use them and AREF to access the vector before
15520 we know it's really a gstring.
15521 (Ffont_shape_text): Fix typo.
46e722a9 15522 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
15523
15524 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
15525 Declare.
15526
15527 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
15528
155292008-02-05 Jason Rumney <jasonr@gnu.org>
15530
15531 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
15532 Set smallest_font_height and smallest_char_width in display info.
15533
155342008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
15535
15536 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
15537
155382008-02-05 Miles Bader <miles@gnu.org>
15539
15540 * xfaces.c (get_lface_attributes, merge_named_face)
15541 (lookup_named_face, lookup_derived_face, realize_named_face):
15542 Revert 2008-02-01 change by cyd@stupidchicken.com.
15543
155442008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
15545
15546 * fontset.c (Ffontset_info): Handle the case of inhibitting the
15547 fallback fonts.
15548 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
15549
155502008-02-04 Jason Rumney <jasonr@gnu.org>
15551
15552 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
15553 set full_name.
15554 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
15555
155562008-02-03 Jason Rumney <jasonr@gnu.org>
15557
15558 * makefile.w32-in (OBJ1): Include font.o here.
15559 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
15560
155612008-02-02 Jason Rumney <jasonr@gnu.org>
15562
15563 * makefile.w32-in (temacs): Bump EMHEAP to 21.
15564
155652008-02-01 Jason Rumney <jasonr@gnu.org>
15566
15567 * s/cygwin.h: Define VIRT_ADDR_VARIES.
15568
15569 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
15570
155712008-02-01 Andreas Schwab <schwab@suse.de>
15572
15573 * Makefile.in (shortlisp, lisp): Update for rename of
15574 ../lisp/language/myanmar.el.
15575
155762008-02-01 Chong Yidong <cyd@stupidchicken.com>
15577
15578 * xfaces.c (get_lface_attributes): Delete function.
15579 (merge_named_face, lookup_named_face, lookup_derived_face)
15580 (realize_named_face): Call lface_from_face_name directly, and use
15581 the fact that merge_face_vectors does not alter its FROM argument.
15582
155832008-02-01 Jason Rumney <jasonr@gnu.org>
15584
15585 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
15586 input in the default locale. Handle non-Unicode multibyte input.
15587
155882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15589
15590 * fontset.c (reorder_font_vector): Exclude nil elements from the
15591 font group. Don't try multiple fonts.
15592 (fontset_font): Adjust for the above change.
15593 (Finternal_char_font): Return nil if the found font doesn't
15594 contain the character ch.
15595
15596 * Makefile.in (lisp, shortlisp): Add cham.el.
15597
155982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15599
15600 * font.h (FONTP): Make it return 1 also for a font-object.
15601
15602 * .gdbinit (xfontset): New function.
15603
15604 * font.c (font_find_for_lface): Check if the character C is
15605 supported or not only for the first font.
15606
15607 * fontset.c (reorder_font_vector): Fix typo.
15608 (fontset_find_font): Don't add a font-spec specifying a script.
15609 Use 0 (not Qt) for the indication of empty font-group. Change the
15610 format of RFONT-DEF. Return Qt if no font in the font-group
15611 support the character.
15612 (fontset_font): Adjust for the above change. If no font was
15613 found the character, remember that.
15614 (face_for_char): Adjust for the change of RFONT-DEF.
15615 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
15616 no font for the target.
15617 (Finternal_char_font): Adjust for the change of RFONT-DEF.
15618
156192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15620
15621 * font.c (font_load_for_face): Handle the case that the font in
15622 face->lface is a string.
15623
156242008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15625
15626 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
15627
156282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15629
15630 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
15631 Fix previous change. If the frame is not on a window system,
15632 signal an error.
15633
156342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15635
15636 * coding.c (decode_coding_object, encode_coding_object): Adjust
15637 marker positions after conversion.
15638
15639 * lisp.h (struct Lisp_Marker): New member need_adjustment.
15640
156412008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15642
15643 * font.c (font_find_for_lface): Fix the handling of the return
15644 value of font_has_char.
15645 (Ffont_shape_text): Fix previous change.
15646
15647 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
15648 (fontset_ref_and_range): Delete it.
15649 (fontset_find_font): Call char_table_ref_and_range instead of
15650 FONTSET_REF_AND_RANGE.
15651 (make_fontset): Don't setup font groups of Latin here.
15652 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
15653 (new_fontset_from_font): Make the specified font the default for
15654 all Latin characters.
15655
156562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15657
15658 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
15659 is on a window system before accessing the fontset of the frame.
15660
156612008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15662
15663 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
15664
15665 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
15666 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
15667
15668 * font.c (Ffont_shape_text): If the font driver doesn't have a
15669 shaper function, make zero-width glyphs to have at least one-pixel
15670 width. Fix setting of `to' field of glyphs.
15671
156722008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15673
15674 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
15675 glyphs.
15676
15677 * font.h (struct font_driver): Improve docstring of member `shape'.
15678
156792008-02-01 Kenichi Handa <handa@m17n.org>
15680
15681 * composite.c (syms_of_composite): Fix docstring of
15682 auto-composition-function.
15683
15684 * font.h (LGLYPH_SIZE): New macro.
15685
15686 * font.c (Ffont_fill_gstring): Stop filling when a character not
15687 supported by the font is found.
15688 (Ffont_shape_text): When a shape callback function returns nil,
15689 try at most two more times with larger gstring.
15690 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
15691
15692 * xdisp.c (handle_auto_composed_prop): Change the argument to
15693 auto-composition-function.
15694
15695 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
15696 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
15697 Lispy glyph and store it in the lgstring.
15698
15699 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
15700
15701 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
15702
157032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15704
15705 * font.c (Ffont_shape_text): Avoid unnecessary composition.
15706
15707 * fontset.c (Vfont_encoding_charset_alist): New variable.
15708 (syms_of_fontset): DEFVAR it.
15709 (reorder_font_vector, fontset_find_font): Optimize for the case of
15710 no need of reordering.
15711 (face_for_char): Map the charset property by
15712 Vfont_encoding_charset_alist.
15713
157142008-02-01 Jason Rumney <jasonr@gnu.org>
15715
15716 * w32font.c (logfonts_match): Don't check adstyle here.
15717 (font_matches_spec): Check here against physical font instead.
15718 (add_font_entity_to_list): Avoid some substitutions.
15719
15720 * font.c (font_parse_fcname): Default weight and slant to normal.
15721 (font_score): Prefer normal fonts if weight or slant unspecified.
15722 (font_score) [WINDOWSNT]: Scale weight difference down to closer
15723 match freetype scores.
15724
157252008-02-01 Jason Rumney <jasonr@gnu.org>
15726
15727 * w32font.c (w32font_text_extents): Don't use the frame stored in the
15728 font, as it may have been deleted.
15729 (w32_enumfont_pattern_entity): Map generic family to adstyle using
15730 most common hyphenless variation.
15731 (logfonts_match): Check generic family.
15732 (font_matches_spec): Don't check generic family here.
15733 (fill_in_logfont): Set generic family based on adstyle.
15734
15735 * w32font.h (w32font_get_cache): Update declaration.
15736
157372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15738
15739 * ftfont.c (ftfont_get_cache): Adjust the argument type.
15740
15741 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
15742 If none of the new drivers are available, call font_update_drivers
15743 with the old drivers.
15744
15745 * w32font.c (w32font_get_cache): Adjust the argument type.
15746
15747 * xfont.c (xfont_get_cache): Adjust the argument type.
15748
15749 * font.h (struct font_driver): Change argument type of get_cache.
15750
15751 * xftfont.c (xftfont_start_for_frame): Delete prototype.
15752
15753 * font.c (Ffont_get): Fix arguments to Fassoc.
15754 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
15755 (font_clear_cache): New function.
15756 (font_list_entities, font_matching_entity): Use font_get_cache.
15757 (font_update_drivers): Call font_clear_cache when finishing a driver.
15758
15759 * fontset.c (fontset_find_font): Fix previous change.
15760
157612008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15762
15763 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
15764 dpyinfo->font_table.
15765 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
15766 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
15767
15768 * font.c (font_at): Handle the case that the arg C is negative.
15769 Handle the unibyte case.
15770 (Ffont_at): Call font_at with the arg C -1.
15771
15772 * xdisp.c (handle_auto_composed_prop): Don't get a character at
15773 the position here, and call font_at with the arg C -1.
15774 Don't check the range of the existing composition at the point.
15775
157762008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15777
15778 * fontset.c (fontset_add): New args charset_id and family.
15779 Change caller.
15780 (load_font_get_repertory, fontset_find_font): Assume that
15781 font_spec is always a font-spec object.
15782 (Fset_fontset_font): Always store a font-spec object in a fontset.
15783
15784 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
15785 instead of get_property_and_range.
15786
157872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15788
15789 * xftfont.c (struct xftfont_info): Delete the member ft_face.
15790 (xftfont_open): Don't keep locking face.
15791 (xftfont_close): Don't unlock face.
15792 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
15793
15794 * fontset.c (fontset_find_font): Don't prefer a font of
15795 supplementary charset.
15796
157972008-02-01 Kenichi Handa <handa@m17n.org>
15798
15799 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
15800 script, langsys_tag to langsys, new member script.
15801 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 15802 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
15803 listing to the script specified in that property. Fix arg to
15804 OTF_check_features.
15805
158062008-02-01 Jason Rumney <jasonr@gnu.org>
15807
15808 * w32font.h: New file.
15809
15810 * w32font.c: Include it.
15811 (struct w32font_info): Add owning_frame field. Move to w32font.h.
15812 (w32font_open): Set owning_frame.
15813 (w32font_text_extents): Use owning_frame.
15814 (struct font_callback_data): Add opentype_only field.
15815 (add_font_entity_to_list): Use it to filter fonts.
15816 Don't check against full name.
15817 (w32font_list_internal): New function.
15818 (w32font_list): Use it.
15819 (w32font_match_internal): New function.
15820 (w32font_match): Use it.
15821 (w32font_open_internal): New function.
15822 (w32font_open): Use it.
15823 (w32font_get_cache, w32font_close, w32font_has_char)
15824 (w32font_encode_char, w32font_text_extents, w32font_draw):
15825 Make non-static.
15826
15827 * makefile.w32-in (w32font.o): Depend on w32font.h.
15828
158292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15830
15831 * charset.c (Fdefine_charset_internal): Record a supplementary
15832 charset at the tail of Vcharset_order_list.
15833
15834 * font.c (Ffont_shape_text): Fix the return value.
15835
15836 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
15837
15838 * xdisp.c (handle_auto_composed_prop): Fix previous change.
15839
158402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15841
15842 * ftfont.c (struct OpenTypeSpec): New struct.
15843 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
15844 (ftfont_get_open_type_spec): New function.
15845 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
15846
15847 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
15848
158492008-02-01 Jason Rumney <jasonr@gnu.org>
15850
15851 * w32font.c (add_font_entity_to_list): Compare only the beginning
15852 of full name.
15853
158542008-02-01 Kenichi Handa <handa@m17n.org>
15855
15856 * xdisp.c (handle_auto_composed_prop): Simplify the code.
15857 Never return HANDLED_RECOMPUTE_PROPS.
15858
158592008-02-01 Kenichi Handa <handa@m17n.org>
15860
15861 * font.c (font_gstring_produce): Delete it.
15862
15863 * composite.h (COMPOSITION_METHOD):
15864 Handle COMPOSITION_WITH_GLYPH_STRING.
15865
158662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15867
15868 * xfont.c (Qx): Delete.
15869 (syms_of_xfont): Don't initialize Qx.
15870
15871 * composite.h (enum composition_method):
15872 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
15873
158742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15875
15876 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
15877 (choose_face_font): Accept new form of font-spec.
15878
15879 * frame.h (font_driver_list): Declare it unconditionally.
15880 (struct frame): Define members font_driver_list and font_data_list
15881 unconditionally.
15882
15883 * fontset.c: Include "font.h" unconditionally.
15884 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
15885 (Fset_fontset_font): Accept a font-spec object.
15886
15887 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
15888 PIXEL_SIZE part a wild card.
15889
15890 * dispextern.h (struct glyph_string): Define members clip and
15891 num_clips unconditionally.
15892 (struct face): Define members font_info and extra unconditionally.
15893
15894 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
15895 ftfont_info only when HAVE_LIBOTF is defined.
15896
158972008-02-01 Andreas Schwab <schwab@suse.de>
15898
15899 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
15900 and end.
15901
159022008-02-01 Jason Rumney <jasonr@gnu.org>
15903
15904 * w32font.c (w32font_driver): Add new fields.
15905
159062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15907
15908 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
15909 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
15910 (LIBES): Add @M17N_FLT_CFLAGS@.
15911
15912 * composite.c (compose_text): Don't treat the new style
15913 composition specially.
15914
15915 * emacs.c (main): Call syms_of_font unconditionally.
15916
15917 * font.h (FONT_ENTITY_NOT_LOADABLE)
15918 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
15919 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
15920 (struct font_driver): New member shape.
15921 (font_registry_charsets): Extern it.
15922 (font_find_for_lface, font_prepare_composition): Adjust prototype.
15923 (font_otf_capability, font_drive_otf): Delete their externs.
15924
15925 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
15926 (font_charset_alist, font_registry_charsets): Move from xfont.c
15927 and rename.
15928 (font_prop_validate_otf): New function.
15929 (font_property_table): Register it for QCotf.
15930 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
15931 (font_drive_otf): Delete.
15932 (font_prepare_composition): New arg F. Adjust for the change of
15933 lispy gstring.
15934 (font_find_for_lface): New arg C.
15935 (font_load_for_face): Adjust for the change of font_find_for_lface.
15936 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
15937 lispy gstring.
15938 (Ffont_shape_text): New function.
15939 (Fopen_font): If the font size is not given, use 12-pixel.
15940 (Ffont_at): New arg STRING.
15941 (syms_of_font): Initalize font_charset_alist.
15942 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
15943 conditionally.
15944
15945 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
15946 fonts of the same font-spec. Change the format of RFONT-DEF.
15947 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
15948 Adjust for the change of RFONT-DEF.
15949 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
15950
15951 * ftfont.h: New file.
15952
15953 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
15954 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
15955 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
15956 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
15957 font_otf_capability and font_drive_otf, set ftfont_shape.
15958 (ftfont_list): Adjust for the change of :otf property value.
15959 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
15960 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
15961 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
15962 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15963 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
15964 (otf_gstring, gstring, m17n_flt_initialized): New variables.
15965
15966 * w32term.c (x_draw_composite_glyph_string_foreground):
15967 Adjust for the change of lispy gstring.
15968
15969 * xdisp.c (handle_composition_prop): Adjust for the change of
15970 lispy gstring. Call a function for auto-composition with the
15971 third arg it->window.
15972 (fill_composite_glyph_string): Adjust for the change of lispy string.
15973 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
15974
15975 * xfaces.c (set_font_frame_param): Adjust for the change of
15976 font_find_for_lface.
15977
15978 * xfont.c (x_font_charset_alist): Move to font.c and rename.
15979 (xfont_registry_charsets): Likewise. Change caller.
15980 (syms_of_xfont): Don't handle x_font_charset_alist.
15981
15982 * xftfont.c: Include "ftfont.h".
15983 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
15984 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
15985 (xftfont_close) [HAVE_LIBOTF]: Close otf.
15986 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15987 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
15988 Set xftfont_driver.shape to xftfont_shape.
15989
15990 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15991 the change of lispy gstring.
15992
159932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15994
15995 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
15996
159972008-02-01 Jason Rumney <jasonr@gnu.org>
15998
15999 * w32font.c (w32font_draw): Fill background manually.
16000
160012008-02-01 Jason Rumney <jasonr@gnu.org>
16002
16003 * font.c (Qfontp): Remove unused symbol.
16004 (QCantialias): New symbol.
16005 (syms_of_font): Define it.
16006 (font_property_table): Set a validator for QCantialias.
16007
16008 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
16009 Define if not already.
16010 (QCfamily): Share with xfaces.c.
16011 (Qstandard, Qsubpixel, Qnatural): New symbols.
16012 (syms_of_w32font): Define them. Don't define QCfamily here.
16013 (w32_antialias_type, lispy_antialias_type): New functions.
16014 (w32_enumfont_pattern_entity): New arg requested_font.
16015 Set antialias parameter if non-default was requested.
16016 (fill_in_logfont): Fill in lfQuality if :antialias specified.
16017
160182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16019
16020 * lread.c (read1): Undo the previous change.
16021
160222008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
16023
16024 * frame.c (Fdelete_frame): Call font_update_drivers only when
16025 USE_FONT_BACKEND is defined.
16026
160272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16028
16029 * font.h (struct font_bitmap): New member bits_per_pixel.
16030 (struct font_driver): New members start_for_frame and end_for_frame.
16031 (struct font_data_list): New struct.
16032 (font_put_frame_data, font_get_frame_data): Extern them.
16033
16034 * frame.h (struct frame): New member font_data_list.
16035
16036 * font.c (font_update_drivers): Call driver->start_for_frame and
16037 driver->end_for_frame at proper timings.
16038 (font_put_frame_data, font_get_frame_data): New functions.
16039 (Ffont_spec): Add usage in the docstring.
16040
16041 * frame.c (make_frame): Initialize f->font_data_list to NULL.
16042 (Fdelete_frame): Call font_update_drivers.
16043
16044 * xftfont.c (struct xftface_info): Delete the member xft_draw.
16045 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
16046 (xftfont_get_xft_draw): New function.
16047 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
16048 (xftfont_end_for_frame): New function.
16049 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
16050
16051 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
16052 Change argument. Cache GCs in the per-frame data.
16053 (struct ftxfont_frame_data): New struct.
16054 (ftxfont_draw_bitmap): New arg gc_fore and flush.
16055 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
16056 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
16057 (ftxfont_end_for_frame): New function.
16058 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
16059
16060 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
16061
160622008-02-01 Kenichi Handa <handa@m17n.org>
16063
16064 * xselect.c (Vselection_coding_system)
16065 (Vnext_selection_coding_system): Delete them.
16066 (syms_of_xselect): Don't declare selection-coding-system and
16067 next-selection-coding-system. They are declared in select.el.
16068
160692008-02-01 Jason Rumney <jasonr@gnu.org>
16070
16071 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
16072
16073 * w32fns.c: Include imm.h.
16074 (get_composition_string_fn, get_ime_context_fn): New optional
16075 system functions.
16076 (globals_of_w32fns): Load them from imm32.dll.
16077 (ignore_ime_char): New flag.
16078 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
16079 WM_IME_ENDCOMPOSITION messages.
16080
16081 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
16082 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
16083
160842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16085
16086 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
16087 (READCHAR_REPORT_MULTIBYTE): New macro.
16088 (readchar): New 2nd arg MULTIBYTE.
16089 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
16090 Make symbol's name multibyte according to the multibyteness of the
16091 source.
16092
160932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16094
16095 * xfaces.c (face_for_overlay_string): Call lookup_face with
16096 correct arguments (fix of synching with the trunk).
16097
160982008-02-01 Kenichi Handa <handa@m17n.org>
16099
16100 * font.c (font_prop_validate_symbol, font_prop_validate_style)
16101 (font_prop_validate_non_neg, font_prop_validate_spacing):
16102 Delete argument prop_index.
16103 (font_property_table): Change arguments to validater. Change Callers.
16104 (font_lispy_object): Delete.
16105 (font_at): Use font_find_object instead fo font_lispy_object.
16106
161072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16108
16109 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
16110 and file names.
16111
161122008-02-01 Jason Rumney <jasonr@gnu.org>
16113
16114 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
16115 (font_matches_spec): Remove debug output.
16116 (add_font_entity_to_list): Avoid using substituted fonts.
16117
161182008-02-01 Jason Rumney <jasonr@gnu.org>
16119
16120 * doc.c (Fsnarf_documentation):
16121 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
16122
161232008-02-01 Miles Bader <miles@gnu.org>
16124
16125 * dispextern.h (struct glyph_row): Only define "clip" field if
16126 HAVE_WINDOW_SYSTEM is defined.
16127
161282008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16129
16130 Fix up multi-tty merge.
16131
16132 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
16133 and indentation.
16134
16135 * xfaces.c (free_realized_face, clear_face_gcs):
16136 Include font_done_for_face in the input_blocked section, just in case.
16137
16138 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
16139 (get_char_face_and_encoding): Undo last change and remove the *other*
16140 duplicate definition (i.e. keep the one that's better scoped and that
16141 includes code for the font-backend).
16142
16143 * terminal.c (create_terminal): Default keyboard_coding to
16144 `no-conversion' and terminal_coding to `undecided'.
16145
16146 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
16147
16148 * fontset.c (free_realized_fontsets): Check that the table entry does
16149 contain a fontset before trying to compare it to `base'.
16150
16151 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
16152 syms_of_charset, and syms_of_coding earlier because init_window_once
16153 now needs Vcoding_system_hash_table to be setup.
16154
16155 * coding.h (default_buffer_file_coding): Remove.
16156
16157 * coding.c (default_buffer_file_coding): Remove.
16158 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
16159 than ->symbol, and use the terminal-local coding system.
16160 (syms_of_coding): Don't setup the coding-systems that are not
16161 terminal-local.
16162 (Fdefine_coding_system_internal): Use XCAR/XCDR.
16163
16164 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
16165 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
16166
16167 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
16168 in chartab.c and were re-added here by mistake.
16169 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
16170
16171 * doc.c (Fsnarf_documentation):
16172 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
16173 src to etc.
16174
16175 * ChangeLog.10: Add mistakenly removed entry.
16176
161772008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
16178
16179 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
16180
161812008-02-01 Miles Bader <miles@gnu.org>
16182
16183 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
16184 Add extra args to FACE_FOR_CHAR.
16185
161862008-02-01 Kenichi Handa <handa@m17n.org>
16187
16188 * keymap.c (where_is_internal_1): If key is a cons, store the copy
16189 in sequence.
16190
16191 * chartab.c (map_sub_char_table, map_char_table): If the range
16192 contains just one character, call the function with that character
16193 even if the depth is not 3.
16194
161952008-02-01 Jason Rumney <jasonr@gnu.org>
16196
16197 * w32font.c (w32font_text_extents): Calculate metrics for the
16198 whole string.
16199
162002008-02-01 Jason Rumney <jasonr@gnu.org>
16201
16202 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
16203
162042008-02-01 Jason Rumney <jasonr@gnu.org>
16205
16206 * w32term.c (x_set_glyph_string_clipping): Use
16207 get_glyph_string_clip_rects.
16208 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
16209 Adjust for the change of struct glyph_string.
16210
16211 * w32font.c (w32font_draw): Do clipping here.
16212
162132008-02-01 Kenichi Handa <handa@m17n.org>
16214
16215 * xftfont.c (xftfont_draw): Adjust for the change of struct
16216 glyph_string.
16217
16218 * xterm.c (x_set_glyph_string_clipping): Use
16219 get_glyph_string_clip_rects.
16220 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
16221 Adjust for the change of struct glyph_string.
16222
16223 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
16224 the resulting clip(s}.
16225 (expose_overlaps): Add arg r. Change callers. Set it to
16226 row->clip temporarily.
16227 (expose_window): Redraw rows overlapping the exposed area.
16228
16229 * dispextern.h (struct glyph_row): New member clip.
16230 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
16231 clip_height, new member clip, and num_clips.
16232
162332008-02-01 Kenichi Handa <handa@m17n.org>
16234
16235 * data.c (Fchar_or_string_p): Fix docstring.
16236
162372008-02-01 Kenichi Handa <handa@m17n.org>
16238
16239 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
16240 create a temporary XftDraw object.
16241
162422008-02-01 Kenichi Handa <handa@m17n.org>
16243
16244 * font.c (Ffontp): Fix docstring.
16245
16246 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
16247 strong evidence of ISO-2022.
16248
162492008-02-01 Kenichi Handa <handa@m17n.org>
16250
16251 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
16252 SYNTAX_ENTRY_FOLLOW_PARENT.
16253
162542008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16255
16256 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
16257 its type.
16258 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
16259 Update to the new type of weak_hash_tables and next_weak.
16260
16261 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
16262 a plain C pointer to Lisp_Hash_Table.
16263
16264 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
16265 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
16266 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
16267 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
16268 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
16269 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
16270 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
16271 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
16272 (GC_EQ): Remove since they've been identical to their non-GC_
16273 alter-egos ever since the markbit was eradicated.
16274
16275 * alloc.c:
16276 * buffer.c:
16277 * buffer.h:
16278 * data.c:
16279 * fileio.c:
16280 * filelock.c:
16281 * fns.c:
16282 * frame.h:
16283 * lisp.h:
16284 * macterm.c:
16285 * print.c:
16286 * process.c:
16287 * w32fns.c:
16288 * w32menu.c:
16289 * w32term.c:
16290 * xfns.c:
16291 * xmenu.c:
16292 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
16293
162942008-02-01 Kenichi Handa <handa@m17n.org>
16295
16296 * chartab.c (map_sub_char_table): Make it work for the top-level
16297 char-table. Fix handling of parent char-table.
16298 (map_char_table): Adjust for the above change.
16299
163002008-02-01 Jason Rumney <jasonr@gnu.org>
16301
16302 * w32font.c (Qgdi): Rename from Qw32.
16303
163042008-02-01 Jason Rumney <jasonr@gnu.org>
16305
16306 * w32bdf.c (get_quoted_string): Make function static.
16307
163082008-02-01 Kenichi Handa <handa@m17n.org>
16309
16310 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
16311 bigger ascent and descent than those of the font, use them as
16312 font's ascent and descent.
16313
163142008-02-01 Kenichi Handa <handa@m17n.org>
16315
16316 * Makefile.in (${lispsource}international/charprop.el): Move this
16317 target within "#ifdef HAVE_UNIDATA" and "#endif".
16318
163192008-02-01 Kenichi Handa <handa@m17n.org>
16320
16321 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
16322 (shortlisp): Add ../lisp/language/tai-viet.el.
16323
163242008-02-01 Ulrich Mueller <ulm@gentoo.org>
16325
16326 * Makefile.in (${lispsource}international/charprop.el): Depend on
16327 temacs${EXEEXT}.
16328
163292008-02-01 Jason Rumney <jasonr@gnu.org>
16330
16331 * w32font.c (w32font_close): Delete the GDI font object.
16332
16333 * w32menu.c: Include character.h.
16334
16335 * w32proc.c: Likewise.
16336
16337 * w32select.c: Likewise.
16338
16339 * makefile.w32-in (w32proc.o): Depend on character.h.
16340
163412008-02-01 Jason Rumney <jasonr@gnu.org>
16342
16343 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
16344
16345 * w32menu.c (syms_of_w32menu): Likewise.
16346
16347 * w32proc.c (syms_of_ntproc): Likewise.
16348
16349 * w32select.c (syms_of_w32select): Likewise.
16350
16351 * w32term.c (syms_of_w32term): Likewise.
16352
163532008-02-01 Jason Rumney <jasonr@gnu.org>
16354
16355 * w32font.c (w32font_draw): Delete brush after using it.
16356
163572008-02-01 Jason Rumney <jasonr@gnu.org>
16358
16359 * w32font.c (w32font_open): Don't set font_idx.
16360 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
16361 to font settings.
16362 (w32font_draw): Fill background explicitly.
16363
163642008-02-01 Jason Rumney <jasonr@gnu.org>
16365
16366 * w32term.c (w32_initialize): Don't call w32font_initialize.
16367
16368 * w32font.c (w32font_info): Remove subranges.
16369 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
16370 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
16371 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
16372 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
16373 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
16374 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
16375 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
16376 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
16377 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
16378 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
16379 New symbols.
16380 (font_callback_data): New struct.
16381 (w32font_list, w32font_match): Use it.
16382 (w32font_open): Don't populate subranges.
16383 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
16384 (w32font_encode_char): Always return unicode code-point as-is.
16385 (w32font_text_extents): Supply a transformation matrix to
16386 GetGlyphOutline. Never look up by glyph index. Avoid looping
16387 twice. Use unicode version of GetTexExtentPoint32 instead of
16388 glyph index version.
16389 (set_fonts_frame): Remove.
16390 (w32_enumfont_pattern_entity): Add frame parameter, use it to
16391 set frame parameter. Use backward compatible fake foundries.
16392 Save generic family in extra slot under QCfamily. Make width slot
16393 constant. Save QCspacing value. Save list of scripts instead of
16394 binary subranges.
16395 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
16396 (add_font_entity_to_list): Use font_callback_data struct. Filter
16397 unwanted fonts.
16398 (add_one_font_entity_to_list): Use font_callback_data struct.
16399 (w32_registry): Default to iso10646_1.
16400 (fill_in_logfont): Use dpi from extra slot. Don't bother with
16401 string font registries. Don't fill in font name if it is a generic
16402 family name, fill family instead. Use spacing, family and script
16403 extra info to fill pitch, family and charset fields.
16404 (list_all_matching_fonts): Use font_callback_data struct.
16405 (unicode_range_for_char): Remove.
16406 (font_supported_scripts): New function.
16407 (w32font_initialize): Remove.
16408 (syms_of_w32font): Update which symbols are defined.
16409
164102008-02-01 Jason Rumney <jasonr@gnu.org>
16411
16412 * font.c (font_pixel_size): Reverse assq_no_quit args.
16413
16414 * w32term.h (FONT_WIDTH): Report max width, not average.
16415 (FONT_MAX_WIDTH): Remove.
16416 (FONT_AVG_WIDTH): New macro.
16417
16418 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
16419 redefinition of FONT_WIDTH.
16420
16421 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
16422 (w32_cache_char_metrics): Use FONT_WIDTH.
16423
16424 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
16425
164262008-02-01 Jason Rumney <jasonr@gnu.org>
16427
16428 * w32font.c (w32font_open): Make lfHeight negative.
16429
16430 * w32fns.c (x_default_font_parameter): Use new style font name.
16431 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
16432
164332008-02-01 Jason Rumney <jasonr@gnu.org>
16434
16435 * w32font.c (QCsubranges): New symbol.
16436 (w32font_open, w32font_has_char): Get subranges from subproperty
16437 of extra.
16438 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
16439 (syms_of_w32font): Define :subranges symbol.
16440
16441 * font.c (font_put_extra): Expose externally.
16442
16443 * font.h (font_put_extra): Move declaration from font.c.
16444
16445 * font.c (Ffont_get): Use font driver to determine otf capability.
16446 (adjust_anchor): Check if driver defines anchor_point before using.
16447
16448 * w32font.c (w32font_open): Handle size, height and pixel_size better.
16449 (w32font_draw): Use options.
16450 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
16451 Fix detection of truetype fonts.
16452 (registry_to_w32_charset): Handle charsets other than iso8859-1
16453 expressed as lisp symbols.
16454 (w32_registry): Express charset as lisp symbol.
16455 (fill_in_logfont): Reverse pixel and point height logic.
16456 Don't set width here. Set quality to default.
16457
16458 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
16459 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
16460
16461 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
16462 Remove redundant loop and allocation.
16463
16464 * makefile.w32-in (font.o, w32font.o): New objects.
16465 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
16466 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
16467
16468 * xdisp.c (fill_composite_glyph_string): Make the first arg to
16469 STORE_XCHARB a valid l-value.
16470
16471 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
16472 calculations for non-Truetype fonts.
16473 (x_draw_glyph_string): Sync with xterm.c.
16474 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
16475 Remove redundant code.
16476 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
16477
16478 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
16479 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
16480
16481 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
16482 (x_to_w32_charset, w32_to_x_charset): Expose externally.
16483
16484 * w32font.c: New file for w32 font backend.
16485
164862008-02-01 Kenichi Handa <handa@m17n.org>
16487
16488 * term.c: Don't include "buffer.h" twice.
16489
164902008-02-01 Kenichi Handa <handa@m17n.org>
16491
16492 * character.c (Funibyte_string): New function.
16493 (syms_of_character): Defsubr it.
16494
164952008-02-01 Jason Rumney <jasonr@gnu.org>
16496
16497 * w32term.c [USE_FONT_BACKEND]:
16498 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
16499 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
16500 (x_draw_glyph_string, x_draw_glyph_string_foreground)
16501 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
16502 (x_free_frame_resources): Sync with xterm.c.
16503
165042008-02-01 Andreas Schwab <schwab@suse.de>
16505
16506 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
16507 char-table size.
16508
165092008-02-01 Kenichi Handa <handa@m17n.org>
16510
16511 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
16512
165132008-02-01 Kenichi Handa <handa@m17n.org>
16514
16515 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
16516 font_otf_gpos, add font_drive_otf.
16517
16518 * fontset.c (fontset_find_font): Pay attention to font size
16519 specified for a font.
16520 (reorder_font_vector): Check contents of font_def.
16521
16522 * font.c (struct otf_list): Delete it.
16523 (otf_list): Make it a lisp variable.
16524 (otf_open): Use lispy otf_list.
16525 (generate_otf_features): Rename from parse_gsub_gpos_spec.
16526 (check_otf_features): New function.
16527 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
16528 New functions.
16529 (font_drive_otf): New function merging font_otf_gsub and
16530 font_otf_gpos.
16531 (font_open_for_lface): New arg spec. Change argument order.
16532 (font_load_for_face): Adjust for the change of font_open_for_lface.
16533 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
16534 Ffont_otf_gpos.
16535 (syms_of_font): Staticpro otf_list. Delete defsubr of
16536 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
16537
16538 * xfaces.c (set_font_frame_param): Adjust for the change of
16539 font_open_for_lface.
16540
16541 * font.h (font_open_for_lface): Adjust prototype.
16542 (struct font_driver): Delete members otf_gsub and otf_gpos, add
16543 member otf_drive.
16544 (font_otf_gsub, font_otf_gpos): Delete externs.
16545 (font_drive_otf): Extern it.
16546
165472008-02-01 Kenichi Handa <handa@m17n.org>
16548
16549 * font.c (font_at): If the window W is not on a window system,
16550 return Qnil.
16551
16552 * coding.c (produce_chars, encode_coding): Don't call
16553 insert_from_gap if no characters to produce.
16554
165552008-02-01 Kenichi Handa <handa@m17n.org>
16556
16557 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
16558 Fclear_face_cache.
16559
16560 * xfaces.c (face_for_font): Check also face->font==font->font.font.
16561
165622008-02-01 Miles Bader <miles@gnu.org>
16563
16564 * emacs.c (main): Change default value of `enable_font_backend' to 1.
16565 Parse "--disable-font-backend" option.
16566 (standard_args): Add "--disable-font-backend" option.
16567
165682008-02-01 Kenichi Handa <handa@m17n.org>
16569
16570 * fontset.c (fontset_find_font): New function.
16571 (fontset_font): Use fontset_find_font.
16572 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
16573 Register the specified font for all Latin characters.
16574 (new_fontset_from_font): Register the specified font for all Latin
16575 characters.
16576 (dump_fontset): For a realized fontset, include the base fontset
16577 name in the returned vector.
16578
165792008-02-01 Kenichi Handa <handa@m17n.org>
16580
16581 * character.h (CHAR_STRING): Cast C to unsigned on calling
16582 char_string.
16583
16584 * character.c (char_string): Type of arg C changed to unsigned.
16585 Signal an error if C is an invalid character code.
16586
16587 * editfns.c (general_insert_function, Fchar_to_string):
16588 Use CHARACTERP, not INTEGERP.
16589
165902008-02-01 Kenichi Handa <handa@m17n.org>
16591
16592 * character.h (MIN_MULTIBYTE_LEADING_CODE)
16593 (MAX_MULTIBYTE_LEADING_CODE): New macros.
16594
16595 * regex.c (analyse_first): Fix for multibyte characters in "case
16596 charset:" and "case categoryspec:".
16597
165982008-02-01 Andreas Schwab <schwab@suse.de>
16599
16600 * Makefile.in (LIBES): Move standard libraries to the end.
16601
166022008-02-01 Kenichi Handa <handa@m17n.org>
16603
16604 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
16605 nonzero, don't shrink the buffer nextb.
16606
16607 * buffer.h (struct buffer_text): New member inhibit_shrinking.
16608
16609 * coding.c (coding_alloc_by_making_gap): New arg offset.
16610 (alloc_destination): Call coding_alloc_by_making_gap with the arg
16611 offset.
16612 (decode_coding_iso_2022): Update coding->safe_charsets.
16613 (decode_coding_gap): Temporarily set
16614 current_buffer->text->inhibit_shrinking to 1.
16615
166162008-02-01 Kenichi Handa <handa@m17n.org>
16617
16618 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
16619 indexing into elements of s->cmp and s->char2b.
16620
166212008-02-01 Juanma Barranquero <lekktu@gmail.com>
16622
16623 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
16624
166252008-02-01 Kenichi Handa <handa@m17n.org>
16626
16627 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
16628 target_multibyte instead of multibyte.
16629 (re_match_2_internal): Call bcmp_translate with target_multibyte.
16630 (bcmp_translate): Change the argument name from multibyte to
16631 target_multibyte.
16632
166332008-02-01 Kenichi Handa <handa@m17n.org>
16634
16635 These changes are to compile a regexp into a pattern that can be
16636 used both for multibyte and unibyte targets.
16637
16638 * Makefile.in (search.o): Depend on charset.h.
16639
16640 * character.c (multibyte_char_to_unibyte_safe): New function.
16641
16642 * search.c: Include "charset.h".
16643 (compile_pattern_1): Delete argument multibyte. Don't set
16644 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
16645 (compile_pattern): Don't compare cp->buf.target_multibyte.
16646 Compare cp->buf.charset_unibyte.
16647 (compile_pattern): Set cp->buf.target_multibyte.
16648
16649 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
16650
16651 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
16652
16653 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
16654 multibyte. Change callers.
16655 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
16656 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
16657 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
16658 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
16659 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
16660 (regex_compile): Make the compiled pattern usable both for
16661 multibyte and unibyte targets.
16662 (analyse_first): Make the fastmap usable both for multibyte and
16663 unibyte targets.
16664 (TRANSLATE_VIA_MULTIBYTE): Delete.
16665 (re_match_2_internal): Pay attention to the case that the
16666 multibyteness of bufp and target may be different.
16667
166682008-02-01 Kenichi Handa <handa@m17n.org>
16669
16670 * xdisp.c (x_produce_glyphs): When a font is not found, make the
16671 empty box occupy at least one column width.
16672
166732008-02-01 Miles Bader <miles@gnu.org>
16674
16675 * Makefile.in: Remove redundant HAVE_XFT clause.
16676
166772008-02-01 Kenichi Handa <handa@m17n.org>
16678
16679 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
16680
166812008-02-01 Kenichi Handa <handa@m17n.org>
16682
16683 * fontset.c (Finternal_char_font): Fix for the case of POSITION
16684 being nil.
16685
166862008-02-01 Kenichi Handa <handa@m17n.org>
16687
16688 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
16689
166902008-02-01 Kenichi Handa <handa@m17n.org>
16691
16692 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
16693
166942008-02-01 Kenichi Handa <handa@m17n.org>
16695
16696 * search.c (simple_search): Fix previous change.
16697
166982008-02-01 Kenichi Handa <handa@m17n.org>
16699
16700 * xftfont.c (ftfont_font_format): Extern declaration.
16701
16702 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
16703
16704 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
16705 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
16706
16707 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
16708 (ftfont_font_format): Fix previous change.
16709
16710 * font.h (Ffont_xlfd_name): EXFUN it.
16711
16712 * font.c (font_parse_xlfd): Fix the array size of `f'.
16713 (register_font_driver): Use EQ to compare driver->type.
16714
16715 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
16716 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
16717 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
16718
167192008-02-01 Kenichi Handa <handa@m17n.org>
16720
16721 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
16722 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
16723
167242008-02-01 Kenichi Handa <handa@m17n.org>
16725
16726 * xfont.c (xfont_open): Set font->format.
16727
16728 * xftfont.c (xftfont_open): Set font->format.
16729
16730 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
16731 (ftfont_list): Include FC_FONTFORMAT in FcObject.
16732 (ftfont_open): Set font->format.
16733 (ftfont_font_format): New function.
16734
16735 * font.h (struct font): New member format.
16736
16737 * font.c (Qopentype): New variable.
16738 (syms_of_font): Defsym it.
16739 (Fquery_font): Change the format of the last element of the return
16740 value.
16741
167422008-02-01 Kenichi Handa <handa@m17n.org>
16743
16744 * xfns.c (xic_create_xfontset): Try the default fontset name as a
16745 last resort.
16746
167472008-02-01 Kenichi Handa <handa@m17n.org>
16748
16749 * coding.c (detect_coding_charset): Fix detection of multi-byte
16750 charset.
16751
167522008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
16753
16754 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
16755
167562008-02-01 Kenichi Handa <handa@m17n.org>
16757
16758 * xdisp.c (get_next_display_element): Set it->face_id for the
16759 first component of a composition.
16760 (x_produce_glyphs): Check if the font is changed or not for composition.
16761
167622008-02-01 Kenichi Handa <handa@m17n.org>
16763
16764 * fontset.c (Qlatin): New variable.
16765 (syms_of_fontset): Define it as a lisp symbol.
16766 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
16767
167682008-02-01 Kenichi Handa <handa@m17n.org>
16769
16770 * font.c (font_unparse_fcname): Pay attention to the case that
16771 some of font property is a null string.
16772
167732008-02-01 Kenichi Handa <handa@m17n.org>
16774
16775 * term.c: Include "composite.h".
16776 (encode_terminal_code): Output all components of composition.
16777 Check the size of encode_terminal_src.
16778 (produce_glyphs): For composition, call produce_composite_glyph.
16779 (append_composite_glyph, produce_composite_glyph): New functions.
16780
16781 * xdisp.c (x_produce_glyphs): In handling composition, if a font
16782 is not found, get font_info from the current ascii face.
16783
167842008-02-01 Kenichi Handa <handa@m17n.org>
16785
16786 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
16787 buffer-file-name to Qnil before calling insert_from_buffer.
16788
16789 * font.c (font_unparse_fcname): Pay attention to the case that
16790 foundry is a null string.
16791
167922008-02-01 Kenichi Handa <handa@m17n.org>
16793
16794 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
16795
16796 * font.c (Qunicode_sip): New variable.
16797 (syms_of_font): Declare it as a Lisp symbol.
16798
16799 * font.h (Qunicode_sip): Extern it.
16800
168012008-02-01 Kenichi Handa <handa@m17n.org>
16802
16803 * composite.c (get_composition_id): Pay attention to TAB component.
16804
16805 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
16806 TAB. Adjust for the change of s->char2b which always points to
16807 the first element of allocated memory.
16808
16809 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
16810
16811 * xdisp.c (handle_composition_prop): Set it->c to the first
16812 non-TAB component.
16813 (fill_composite_glyph_string): Change argument.
16814 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
16815 (x_produce_glyphs): Fix handling of left/right padding.
16816
168172008-02-01 Kenichi Handa <handa@m17n.org>
16818
16819 * coding.c (detect_coding_system): Fix for handling off
16820 inhibit_iso_escape_detection. Fix for the case that no coding
16821 system is defined for a specific coding category.
16822
168232008-02-01 Kenichi Handa <handa@m17n.org>
16824
16825 * font.c (font_matching_entity): Delete unused local var.
16826
16827 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
16828 opening a font.
16829
16830 * fileio.c (Finsert_file_contents): On recovering a file, assume
16831 Unix-like eol.
16832 (choose_write_coding_system): On auto-saving a file, force
16833 Unix-like eol.
16834
16835 * coding.c (setup_coding_system): Fix setting of
16836 coding->common_flags based on eol_type.
16837 (coding_inherit_eol_type): If PARENT is not nil, be sure to
16838 inherit from it.
16839
168402008-02-01 Kenichi Handa <handa@m17n.org>
16841
16842 * alloc.c (NSTATICS): Increas to 0x600.
16843
168442008-02-01 Kenichi Handa <handa@m17n.org>
16845
16846 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
16847 (ftfont_list): Don't check :name property.
16848 (ftfont_match): New function.
16849 (ftfont_pattern_entity): If the pattern doesn't contain
16850 FC_SPACING, don't assume FC_MONO.
16851
16852 * font.h (struct font_driver): New member `match'.
16853 (font_update_drivers): Adjust prototype.
16854
16855 * font.c (font_parse_fcname, font_parse_name): Don't change :name
16856 property of FONT.
16857 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
16858 them unconditionally.
16859 (font_matching_entity): New function.
16860 (font_open_by_name): Try font_matching_entity if exact match is
16861 not found.
16862 (font_update_drivers): Delete the arg FONT. Return a list of
16863 actually used backends. Don't free faces, font caches here.
16864 Don't store data in frame parameters. Don't call x_set_font.
16865 (Ffont_spec): Store :name property as is.
16866 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
16867 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
16868 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
16869 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
16870 Call font->driver->otf_gsub instead of font_otf_gsub.
16871
16872 * frame.c (x_set_font_backend): Do more works that were done in
16873 font_update_drivers before.
16874
16875 * xfont.c (xfont_match): New function.
16876 (xfont_driver): Set xfont_driver.match to xfont_match.
16877 (xfont_draw): Set font in GC if necessary.
16878
16879 * ftxfont.c (ftxfont_match): New function.
16880 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
16881
16882 * xftfont.c (xftfont_match): New function.
16883 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
16884
168852008-02-01 Kenichi Handa <handa@m17n.org>
16886
16887 * font.h (struct font): New member scalable.
16888 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
16889 (font_otf_gsub): Adjust prototype.
16890
16891 * font.c (font_otf_capability): Fix handling of the default langsys.
16892 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
16893 Check the contents of SPEC.
16894 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
16895 (check_gstring): New function.
16896 (REPLACEMENT_CHARACTER): New macro.
16897 (font_otf_gsub): New arg alternate_subst. Be sure to set all
16898 glyph codes of GSTRING.
16899 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
16900 (font_prepare_composition): Set cmp->glyph_len.
16901 (font_open_entity): Set font->scalable.
16902 (Ffont_get): Handle :otf property.
16903 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
16904 functions.
16905 (Fquery_font): Use font->font.full_name.
16906 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
16907 Sfont_otf_alternates.
16908
16909 * ftfont.c (ftfont_open): Set font->font.full_name and
16910 font->font.name properly. Fix calculation of font->font.height
16911 and font->min_width.
16912
16913 * ftxfont.c (ftxfont_create_gcs): New function.
16914 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
16915 (ftxfont_draw_backgrond): Fix filling region.
16916 (ftxfont_default_fid): New function.
16917 (ftxfont_open): Set xfont->fid to the return value of
16918 ftxfont_default_fid.
16919 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
16920 (ftxfont_done_face): Free only GCs that are created by
16921 ftxfont_create_gcs.
16922 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
16923
16924 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
16925 Clip to src->width, etc (not src->clip_XXX).
16926
16927 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
16928 FontBackend frame parameter.
16929
169302008-02-01 Kenichi Handa <handa@m17n.org>
16931
16932 * font.h (struct font_driver_list): New member `on'.
16933 (Fclear_font_cache): EXFUN it.
16934 (font_update_drivers): Extern it.
16935
16936 * font.c (font_unparse_fcname): Fix typo (swidth->width).
16937 (font_list_entities): Check driver_list->on.
16938 (register_font_driver): Initalize `on' member to 0.
16939 (font_update_drivers): New function.
16940 (Fclear_font_cache): Check driver_list->on.
16941
16942 * frame.h (Qfont_backend): Extern it.
16943 (x_set_font_backend): Extern it.
16944
16945 * frame.c (Qfont_backend): New variable.
16946 (frame_parms): New element for font-backend.
16947 (x_set_font_backend): New function.
16948
16949 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
16950 FontBackend frame parameter.
16951 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
16952 x_set_font_backend.
16953
16954 * xfont.c (xfont_list): Don't try listing by :name property if the
16955 name is not for XLFD.
16956
169572008-02-01 Kenichi Handa <handa@m17n.org>
16958
16959 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
16960 (LGLYPH_SET_TO): New macros.
16961 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
16962 element of G is vector or not.
16963 (font_at): Extern it.
16964
16965 * font.c: Include window.h.
16966 (font_lispy_object): New function.
16967 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
16968 end of valid glyph.
16969 (font_close_object): Fix getting (struct font *).
16970 (font_at): New function.
16971 (Ffont_get): If FONT is a font-object, get entity from it.
16972 (Ffont_make_gstring): Initialize elements of glyphs with nil.
16973 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
16974 range check.
16975 (Ffont_at): New function.
16976 (syms_of_font): Defsubr Sfont_at.
16977
16978 * xdisp.c (it_props): Move the entry for Qauto_composed to just
16979 before the entry for Qcomposition.
16980 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
16981 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
16982 the font in gstring.
16983 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
16984 LGLYPH_FORM (g) to detect the end of valid glyph.
16985 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
16986 we are composing with gstring.
16987
16988 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
16989 Check if adjustment is vector or not.
16990
16991 * Makefile.in (font.o): Make it depends on window.h.
16992
169932008-02-01 Kenichi Handa <handa@m17n.org>
16994
16995 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
16996 adjustment is vector or not.
16997
169982008-02-01 Miles Bader <miles@gnu.org>
16999
17000 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
17001
170022008-02-01 Kenichi Handa <handa@m17n.org>
17003
17004 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
17005 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
17006 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
17007
17008 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
17009 (DEVICE_DELTA): Fix typo.
17010 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
17011 LGLYPH format.
17012
17013 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17014 the change of LGLYPH format.
17015
170162008-02-01 Kenichi Handa <handa@m17n.org>
17017
17018 * ftfont.c (ftfont_list): Fix typo.
17019 (ftfont_build_basic_charsets): Don't include letters with diacritics.
17020
170212008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17022
17023 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
17024
17025 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
17026 xftface_info is non-NULL.
17027
170282008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17029
17030 * ftfont.c (ftfont_list): Move misplaced #endif.
17031
170322008-02-01 Kenichi Handa <handa@m17n.org>
17033
17034 * ftfont.c (ftfont_list): Pay attention to the case that
17035 FC_CAPABILITY is not defined.
17036
170372008-02-01 Kenichi Handa <handa@m17n.org>
17038
17039 * xftfont.c (xftfont_open): Set charset related members to -1.
17040
17041 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
17042 QCname.
17043 (ftfont_open): Set charset related members to -1.
17044
17045 * fontset.c (Votf_script_alist): New variable.
17046 (syms_of_fontset): Initialize it.
17047 (fontset_font): Delete unused variable.
17048
17049 * fontset.h (Votf_script_alist): Extern it.
17050
17051 * font.c (font_find_for_lface): Optimize code.
17052
17053 * font.h (font_close_object, font_merge_old_spec): Extern them.
17054
170552008-02-01 Kenichi Handa <handa@m17n.org>
17056
17057 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
17058 (syms_of_font): Initialize them.
17059 (font_pixel_size): Allow float value in dpi.
17060 (font_prop_validate_type): Delete.
17061 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
17062 Change caller.
17063 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
17064 (font_prop_validate_extra): Delete.
17065 (font_prop_validate_spacing): New function.
17066 (font_property_table): Add elements for all known properties.
17067 (get_font_prop_index): Rename from check_font_prop_name. New
17068 argument FROM. Change caller.
17069 (font_prop_validate): Validate all known properties.
17070 (font_put_extra): Delete argument force. Change caller.
17071 (font_expand_wildcards): Make it static. Fix the way of shrinking
17072 the possible range.
17073 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
17074 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
17075 Change caller.
17076 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
17077 (font_parse_fcname): Delete argument merge. Fix parsing of point
17078 size. Don't validate properties values here. Change caller.
17079 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
17080 (font_open_by_name): Delete unused variable.
17081 (Ffont_spec): Likewise. Validate property values.
17082 (Ffont_match_p): New function.
17083
17084 * font.h (QCscalable): Extern it.
17085 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
17086
17087 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
17088
17089 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
17090 (xfont_list_pattern): New function.
17091 (xfont_list): Use xfont_list_pattern.
17092
170932008-02-01 Kenichi Handa <handa@m17n.org>
17094
17095 * font.h (Flist_fonts): EXFUN it.
17096
170972008-02-01 Jason Rumney <jasonr@gnu.org>
17098
17099 * w32term.c (w32_initialize): Add back smoothing_type and
17100 smoothing_enabled definitions.
17101
171022008-02-01 Kenichi Handa <handa@m17n.org>
17103
17104 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
17105 s->face->font on determining underline position.
17106
171072008-02-01 Kenichi Handa <handa@m17n.org>
17108
17109 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
17110 (font_has_char): Accept font-object too.
17111 (font_find_for_lface): Try at first with a size specified in face.
17112
171132008-02-01 Kenichi Handa <handa@m17n.org>
17114
17115 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
17116 font_open_by_name.
17117
171182008-02-01 Kenichi Handa <handa@m17n.org>
17119
17120 * font.h (QCspacing, QCdpi): Extern them.
17121 (enum font_spacing): New enum.
17122 (FONT_PIXEL_SIZE_QUANTUM): New macro.
17123
17124 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
17125 (QCspacing, QCdpi): New variables.
17126 (syms_of_font): Initialize them.
17127 (font_pixel_size): New function.
17128 (font_put_extra): New function.
17129 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
17130 in FONT_EXTRA.
17131 (font_parse_fcname): Handle enumerated values (e.g. bold).
17132 Fix handling font size. Add QCname property that contains only
17133 unknown properties.
17134 (font_score): Change argument. Change caller. Pay attention to
17135 FONT_PIXEL_SIZE_QUANTUM.
17136 (font_sort_entites, font_list_entities, font_find_for_lface)
17137 (font_open_for_lface, font_open_by_name): Fix handling of font size.
17138 (Ffont_spec): Add QCname property that contains only unknown properties.
17139
17140 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
17141 include weight in listing pattern, instead check weight of each
17142 listed font. Don't include scalable in pattern. Pay attention to
17143 FONT_PIXEL_SIZE_QUANTUM.
17144
171452008-02-01 Kenichi Handa <handa@m17n.org>
17146
17147 * font.c (font_parse_fcname): Fix parsing of point-size.
17148 (font_unparse_fcname): Produce symbolic names for style properties.
17149 (font_list_entities): Handle float size correctly.
17150 (font_open_by_name): Prefer `normal' property values if the name
17151 doesn't specify them.
17152
17153 * fontset.c (Finternal_char_font): Use font_get_name, not
17154 Ffont_xlfd_name.
17155
17156 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
17157 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
17158 pattern. Don't force scalable.
17159
17160 * xftfont.c (xftfont_open): For generating a name, start from
17161 96-byte buffer.
17162
171632008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17164
17165 * frame.h (x_new_fontset2): Fix prototype.
17166
171672008-02-01 Kenichi Handa <handa@m17n.org>
17168
17169 * font.h (struct font_driver): Delete member parse_name.
17170 (font_match_p, font_get_spec, font_parse_fcname)
17171 (font_unparse_fcname): Extern them.
17172 (font_get_name): Adjust prototype.
17173
17174 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
17175 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
17176 (font_expand_wildcards): Fix handling ENCODING field. Avoid
17177 unnecessary checks for weight, slant, and swidth.
17178 (font_parse_fcname): New function.
17179 (font_unparse_fcname): New function.
17180 (font_parse_name): New function.
17181 (font_match_p): New function.
17182 (font_get_name): Change return value to Lisp string.
17183 (font_get_spec): New function.
17184 (Qunspecified, Qignore_defface): Don't extern them.
17185 (font_find_for_lface): Assume that LFACE is fully specified.
17186 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
17187 object, use it for FACE.
17188 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
17189 driver->parse_name.
17190 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
17191
17192 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
17193 prototype.
17194
17195 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
17196 argument F. Don't call Fnew_fontset. Instead, directly call
17197 make_fontset.
17198
17199 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
17200
17201 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
17202 of x_new_fontset2.
17203
17204 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
17205 (Qsans__serif): New variables.
17206 (ftfont_generic_family_list): New variable.
17207 (syms_of_ftfont): Initialize the above variables.
17208 (ftfont_pattern_entity): Delete argument NAME.
17209 (ftfont_list_generic_family): New function.
17210 (ftfont_parse_name): Delete this function.
17211 (ftfont_list): Try generic family only when FcFontList found no font.
17212 (ftfont_list_family): Fix args to FcObjectSetBuild.
17213
17214 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
17215 object in attrs[LFACE_FONT_INDEX].
17216 (set_lface_from_font_name): Cancel all changes for font-backend.
17217 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
17218 function.
17219 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
17220 font object in QCfont attribute.
17221 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
17222 (realize_default_face) [USE_FONT_BACKEND]: Call
17223 set_lface_from_font_and_fontset.
17224
17225 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
17226 "fixed", and signal error here if no suitable font was found.
17227
17228 * xfont.c (xfont_parse_name): Delete this function.
17229
17230 * xftfont.c (xftfont_open): Change coding style of error
17231 handling. Generate fontconfig's fontname pattern.
17232
17233 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
17234 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
17235
17236 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
17237 Both args FONTSET and FONT_OBJECT must be existing ones.
17238
172392008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17240
17241 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
17242
172432008-02-01 Kenichi Handa <handa@m17n.org>
17244
17245 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
17246
17247 * font.h (struct font): Fix typo.
17248
17249 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
17250 XLFD_XXX_INDEX.
17251 (enum xlfd_field_mask): New enum.
17252 (intern_font_field): Changed argument. Change caller. If digits
17253 are followed by non-digits, return a symbol.
17254 (font_expand_wildcards): New function.
17255 (font_parse_xlfd): Fix wildcard handling.
17256 (Ffont_spec): If :name is specified, reflect the info in the other
17257 properties.
17258
17259 * ftfont.c (ftfont_pattern_entity): Fix typo.
17260 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
17261 locale.
17262
172632008-02-01 Kenichi Handa <handa@m17n.org>
17264
17265 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
17266
17267 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
17268 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
17269 registry doesn't specify encoding part.
17270 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
17271 (font_open_by_name): At first try parsing the name.
17272 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
17273 as Lisp symbols.
17274
17275 * fontset.c (reorder_font_vector): Pay attention to the case that
17276 the 3rd element of font_def is nil.
17277 (fontset_font): For the default fontset, append one more fontset
17278 elements for a script-based font specification. Don't add script
17279 attribute on finding a font.
17280 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
17281 font name.
17282 (fontset_ascii_font): If a font can't be opened, return nil.
17283
17284 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
17285 (ftfont_pattern_entity): New function.
17286 (ftfont_get_cache): Assume that freetype_font_cache is already
17287 initialized.
17288 (ftfont_list): Handle the case that a file is specified in font
17289 name. Use ftfont_pattern_entity to generate entities.
17290 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
17291 (syms_of_ftfont): Initialize freetype_font_cache.
17292
17293 * xftfont.c (xftfont_open): Make the font name fontconfig's
17294 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
17295 (xftfont_close): Free font->font.name if not NULL.
17296
17297 * xfont.c (xfont_list): If script is specified for a font, return
17298 null_vector.
17299 (xfont_list_family): Declare argument type.
17300
17301 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
17302 name, set LFACE_FONT (lface) to nil.
17303
17304 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
17305 return Qnil.
17306
173072008-02-01 Kenichi Handa <handa@m17n.org>
17308
17309 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
17310 (standard_args): Add "-enable-font-backend".
17311
173122008-02-01 Kenichi Handa <handa@m17n.org>
17313
17314 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
17315 (struct xftdraw_list, xftdraw_list): Delete them.
17316 (register_xftdraw, check_xftdraw): Delete them.
17317 (xftfont_prepare_face): Don't call register_xftdraw.
17318 (xftfont_done_face): Don't call check_xftdraw.
17319 (xftfont_draw): Get background color only when with_background is
17320 nonzero.
17321
17322 * xfont.c (xfont_encode_char): Fix calculation of char2b.
17323
173242008-02-01 Kenichi Handa <handa@m17n.org>
17325
17326 These changes are for the new font handling codes.
17327
17328 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
17329 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
17330 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
17331 (FONTSRC, FONTOBJ): New variables.
17332 (obj): Add $(FONTOBJ).
17333 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
17334 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
17335 @LIBOTF_LIBS@.
17336 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
17337 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
17338
17339 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
17340
17341 * character.h (Vscript_representative_chars): Extern it.
17342
17343 * character.c (Vscript_representative_chars): New variable.
17344 (syms_of_character): Declare it as a Lisp variable.
17345
17346 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
17347 enable_font_backend is nonzero, accept the composition method
17348 COMPOSITION_WITH_GLYPH_STRING.
17349
17350 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
17351 enumeration COMPOSITION_WITH_GLYPH_STRING.
17352
17353 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
17354 members clip_x, clip_y, clip_width, and clip_height.
17355 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
17356
17357 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
17358 --enable-font-backend. Call syms_of_font.
17359
17360 * fns.c (assoc_no_quit): New function.
17361
17362 * fontset.h (FONT_INFO_FROM_FACE): New macro.
17363 (face_for_font, new_fontset_from_font)
17364 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
17365
17366 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
17367 (fontset_font, fontset_ascii, face_for_char)
17368 (make_fontset_for_ascii_face, Ffont_info)
17369 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
17370 is nonzero, use font-backend mechanism.
17371 (find_font_encoding): Make it non-static.
17372 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
17373 New functions.
17374
17375 * frame.h (struct frame): New members resx and resy.
17376 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
17377 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
17378
17379 * frame.c [USE_FONT_BACKEND]: Include "font.h".
17380 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
17381
17382 * lisp.h (assoc_no_quit): Extern it.
17383
17384 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
17385 Through out the file, use FONT_INFO_FROM_FACE instead of
17386 FONT_INFO_FROM_ID, use get_per_char_metric instead of
17387 rif->per_char_metric.
17388 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
17389 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
17390 (get_glyph_face_and_encoding, fill_composite_glyph_string)
17391 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
17392 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
17393 nonzero, use font-backend mechanism.
17394 (get_per_char_metric): New function.
17395
17396 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
17397 (set_lface_from_font_name)
17398 (set_font_frame_param, free_realized_face)
17399 (prepare_face_for_display, clear_face_gcs)
17400 (Finternal_set_font_selection_order, realize_x_face)
17401 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
17402 font-backend mechanism.
17403 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
17404 (load_face_font) [USE_FONT_BACKEND]: Abort.
17405 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
17406 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
17407
17408 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
17409 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
17410 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
17411 nonzero, register all available font drivers. Call
17412 x_default_font_parameter for deciding a font.
17413 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
17414
17415 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
17416 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
17417 (x_set_glyph_string_clipping_exactly)
17418 (x_compute_glyph_string_overhangs)
17419 (x_draw_glyph_string_foreground)
17420 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
17421 (x_free_frame_resources) [USE_FONT_BACKEND]: If
17422 enable_font_backend is nonzero, use font-backend mechanism.
17423 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
17424
174252008-02-01 Kenichi Handa <handa@m17n.org>
17426
17427 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
17428 system_eol_type.
17429 (syms_of_coding): Initialize system_eol_type.
17430
17431 * process.c (Fset_process_coding_system): Inherit system's eol
17432 format if necessary.
17433
174342008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17435
17436 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
17437
174382008-02-01 Kenichi Handa <handa@m17n.org>
17439
17440 * coding.c (decode_eol): Pay attention to buffer relocation in
17441 del_range_2.
17442 (decode_coding): Call decode_eol before restoring undo_list.
17443
174442008-02-01 Kenichi Handa <handa@m17n.org>
17445
17446 * charset.c (Fdefine_charset_internal): Fix setting of
17447 emacs_mule_bytes.
17448
174492008-02-01 Kenichi Handa <handa@m17n.org>
17450
17451 * keyboard.c (read_char): Check if C is a character or not before
17452 looking up Vkeyboard_translate_table.
17453
174542008-02-01 Kenichi Handa <handa@m17n.org>
17455
17456 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
17457 condition to terminate the loop.
17458
174592008-02-01 Kenichi Handa <handa@m17n.org>
17460
17461 * coding.c (produce_composition): Compare charbuf[i] instead of
17462 args[i] against 0.
17463 (Fterminal_coding_system): Use EQ to compare Lisp objects.
17464
174652008-02-01 Kenichi Handa <handa@m17n.org>
17466
17467 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
17468 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
17469 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
17470 detect_coding.
17471 (emacs_mule_char): Handle old style (Emacs 20) component character
17472 of a composition.
17473 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
17474 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
17475 composition rule.
17476 (decode_coding_emacs_mule): Handle invalid bytes correctly.
17477
174782008-02-01 Kenichi Handa <handa@m17n.org>
17479
17480 * coding.c (encode_coding_ccl): Allocate destination dynamically
17481 when necessary.
17482
174832008-02-01 Kenichi Handa <handa@m17n.org>
17484
17485 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
17486 the loop. When quitted, show a proper error message.
17487
174882008-02-01 Kenichi Handa <handa@m17n.org>
17489
17490 * xterm.c (x_set_glyph_string_clipping_exactly): Set
17491 src->clip_head and src->clip_tail temporarily instead of src->hl.
17492
17493 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
17494 character sequence.
17495 (Fccl_execute_on_string): Use ASET, not XSET.
17496
174972008-02-01 Kenichi Handa <handa@m17n.org>
17498
17499 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
17500
175012008-02-01 Kenichi Handa <handa@m17n.org>
17502
17503 * coding.c (decode_coding): Fix the condition of terminating the
17504 decoding loop.
17505
175062008-02-01 Kenichi Handa <handa@m17n.org>
17507
17508 * data.c (Faset): On setting a character bigger than 255 in a
17509 unibyte string, signal an error instead of make the string multibyte.
17510
175112008-02-01 Kenichi Handa <handa@m17n.org>
17512
17513 * charset.c (map_charset_chars): Fix for ascii-compatible charset
17514 made by a mapping table.
17515
175162008-02-01 Kenichi Handa <handa@m17n.org>
17517
17518 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
17519 not.
17520 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
17521 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
17522
17523 * xterm.c (x_draw_composite_glyph_string_foreground): Check
17524 s->face is NULL or not.
17525
175262008-02-01 Kenichi Handa <handa@m17n.org>
17527
17528 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
17529 (x_draw_glyph_string): Fix drawing of right_overhang and
17530 left_overhang around/on cursor.
17531
17532 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
17533
175342008-02-01 Kenichi Handa <handa@m17n.org>
17535
17536 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
17537
175382008-02-01 Kenichi Handa <handa@m17n.org>
17539
17540 * coding.c (Fdefine_coding_system_internal)
17541 (Fdefine_coding_system_alias): Avoid a duplicated element in
17542 Vcoding_system_alist.
17543
175442008-02-01 Kenichi Handa <handa@m17n.org>
17545
17546 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
17547
17548 * coding.c (Qcoding_system_define_form): New variable.
17549 (syms_of_coding): Intern and staticpro it.
17550 (Fcoding_system_p): Check Qcoding_system_define_form.
17551 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
17552
17553 * coding.h (CODING_SYSTEM_P): If ID is not available, call
17554 Fcoding_system_p.
17555 (CHECK_CODING_SYSTEM): If ID is not available, call
17556 Fcheck_coding_system.
17557 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
17558 Try also Fcheck_coding_system.
17559
175602008-02-01 Kenichi Handa <handa@m17n.org>
17561
17562 * coding.c (code_conversion_restore): GCPRO arg.
17563
175642008-02-01 Kenichi Handa <handa@m17n.org>
17565
17566 * character.c (lisp_string_width): Check multibyteness of STRING.
17567
175682008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17569
17570 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
17571 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
17572 (decode_mac_font_name): Use decode_coding_c_string instead of
17573 decode_coding.
17574 (x_load_font): Initialize fontp->fontset to -1. Set
17575 fontp->encoding_type.
17576
175772008-02-01 Kenichi Handa <handa@m17n.org>
17578
17579 * search.c (search_buffer): Give up BM search on case-fold-search
17580 if one of a target character has a case-equivalence of different
17581 byte length even if that target charcter is an ASCII.
17582 (simple_search): Fix calculation of byte length of matched text.
17583 (boyer_moore): Fix handling of case-equivalent multibyte characters.
17584
175852008-02-01 Kenichi Handa <handa@m17n.org>
17586
17587 * coding.c (decode_coding): Fix handling of invalid bytes.
17588
175892008-02-01 Kenichi Handa <handa@m17n.org>
17590
17591 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
17592 Unicode characters.
17593
175942008-02-01 Kenichi Handa <handa@m17n.org>
17595
17596 * coding.c (encode_coding_object): If a pre-write-conversion
17597 function makes a new buffer, kill it.
17598
175992008-02-01 Kenichi Handa <handa@m17n.org>
17600
17601 * coding.c (QCascii_compatible_p): New variable.
17602 (syms_of_coding): Initialize it.
17603 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
17604 calling string_char.
17605 (record_conversion_result): Add `default:' case.
17606 (coding_charset_list): Delete unused variable `coding_type'.
17607 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
17608 property in the plist of the coding system.
17609 (Fcoding_system_put): Check QCascii_compatible_p.
17610
176112008-02-01 Miles Bader <miles@gnu.org>
17612
17613 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
17614 removed calculation of frame `f', as it's now used.
17615
176162008-02-01 Kenichi Handa <handa@m17n.org>
17617
17618 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
17619 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
17620 (UNIDATA): New variable.
17621 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
17622 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
17623 $(RUN_TEMACS) unconditionally.
17624
176252008-02-01 Kenichi Handa <handa@m17n.org>
17626
17627 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
17628 (admindir): New variable.
17629 ($(lispsource)international/charprop.el): New target.
17630
176312008-02-01 Miles Bader <miles@gnu.org>
17632
17633 * character.c (chars-in-region): Remove obsolete function.
17634 (syms_of_character): Remove its initialization.
17635
176362008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
17637
17638 * w32select.c (validate_coding_system)
17639 (setup_windows_coding_system): New functions.
17640 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
17641 setup_windows_coding_system.
17642 (setup_config, Fw32_get_clipboard_data): Use
17643 validate_coding_system.
17644 (Fx_selection_exists): Move call to setup_config to a place
17645 where signals are allowed.
17646
17647 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
17648 (Fcheck_coding_system): Add declarations.
17649
176502008-02-01 Kenichi Handa <handa@m17n.org>
17651
17652 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
17653
176542008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17655
17656 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
17657 string as the second argument for x_new_fontset.
17658
176592008-02-01 Kenichi Handa <handa@m17n.org>
17660
17661 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
17662 (encode_coding_object): Use safe_call instead of call2.
17663
176642008-02-01 Kenichi Handa <handa@m17n.org>
17665
17666 * fontset.c (Fset_fontset_font): Check family element of a given vector.
17667
17668 * Makefile.in (lisp): Include charprop.el.
17669
176702008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17671
17672 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
17673 Not sure if it's unnecessary.
17674
176752008-02-01 Steven Tamm <steventamm@mac.com>
17676
17677 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
17678 some possibly unnecessary fontset checking code that crashed
17679 when creating a new frame.
17680
176812008-02-01 Kenichi Handa <handa@m17n.org>
17682
17683 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
17684 lookup_face.
17685
17686 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
17687
17688 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
17689
176902008-02-01 Kenichi Handa <handa@m17n.org>
17691
17692 * coding.c: Cancel the change done in HEAD on 2008-02-01.
17693 (coding_charset_list): New function.
17694
17695 * coding.h (coding_charset_list): Extern it.
17696
176972008-02-01 Kenichi Handa <handa@m17n.org>
17698
17699 * fontset.c (Fset_fontset_font): Call find_font_encoding with
17700 concatenation of family and registry.
17701
177022008-02-01 Kenichi Handa <handa@m17n.org>
17703
17704 * character.h (BYTE8_STRING): Fix typo.
17705
17706 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
17707 string to multibyte (sync to HEAD).
17708
17709 * casefiddle.c (casify_region): Handle changes in byte-length
17710 using replace_range_2 (sync to HEAD).
17711
177122008-02-01 Andreas Schwab <schwab@suse.de>
17713
17714 * chartab.c (map_char_table): GCPRO table and arg.
17715
177162008-02-01 Kenichi Handa <handa@m17n.org>
17717
17718 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
17719 already at limit.
17720
177212008-02-01 Kenichi Handa <handa@m17n.org>
17722
17723 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
17724 instead of fast_c_string_match_ignore_case.
17725 (find_font_encoding): Change argument to Lisp_Object. Use
17726 fast_string_match_ignore_case instead of
17727 fast_c_string_match_ignore_case. Change caller.
17728
177292008-02-01 Kenichi Handa <handa@m17n.org>
17730
17731 * xdisp.c (get_next_display_element): In unibyte case, decide to
17732 display in octal form by checking a character by
17733 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
17734
17735 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
17736
17737 * character.c (unibyte_has_multibyte_table): New variable.
17738
17739 * character.h (unibyte_has_multibyte_table): Extern it.
17740 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
17741
177422008-02-01 Kenichi Handa <handa@m17n.org>
17743
17744 * coding.c (encode_coding_iso_2022): Fix handling of charset
17745 annotation.
17746
177472008-02-01 Kenichi Handa <handa@m17n.org>
17748
17749 * coding.c (setup_coding_system): If coding_system is nil, use
17750 Qundecided.
17751 (Fterminal_coding_system): Return nil if terminal coding system is
17752 `undecided'.
17753 (syms_of_coding): Define coding-system `undecided' here. Setup
17754 terminal_coding as `undecided'.
17755
177562008-02-01 Kenichi Handa <handa@m17n.org>
17757
17758 * xdisp.c (message_dolog, set_message_1): Call
17759 unibyte_char_to_multibyte with arg type int.
17760
17761 * lread.c (read1): Fix reading of a char-table.
17762
17763 * print.c (print_object): Include sub char-table in circularities
17764 detection.
17765
177662008-02-01 Kenichi Handa <handa@m17n.org>
17767
17768 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
17769 Append the found sequences in car of ARGS instead of prepending.
17770
177712008-02-01 Kenichi Handa <handa@m17n.org>
17772
17773 * fileio.c (report_file_error): Make a unibyte string from
17774 strerror (errorno).
17775 (Fsubstitute_in_file_name): Fix the arg to
17776 unibyte_char_to_multibyte. It is evaluated twice.
17777
177782008-02-01 Kenichi Handa <handa@m17n.org>
17779
17780 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
17781
177822008-02-01 Kenichi Handa <handa@m17n.org>
17783
17784 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
17785 BOM is not found.
17786 (detect_coding, detect_coding_system): Optimization for ISO-2022
17787 when no 8-bit data is found.
17788
177892008-02-01 Jason Rumney <jasonr@gnu.org>
17790
17791 * w32fns.c (x_to_w32_font): Update to use new coding struct.
17792
177932008-02-01 Kenichi Handa <handa@m17n.org>
17794
17795 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
17796 CHARS.
17797
177982008-02-01 Steven Tamm <steventamm@mac.com>
17799
17800 * macterm.c (mac_encode_char): Add charset argument and update
17801 to use encoding_type.
17802 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
17803 switch to pure fontset.
17804 (decode_mac_font_name): Temporarily remove decoding.
17805 (x_font_name_to_mac_font_name): Temporarily remove encoding.
17806 (x_load_font): Temporarily remove encoding.
17807
178082008-02-01 Kenichi Handa <handa@m17n.org>
17809
17810 * xfaces.c (Fface_font): If frame is not on a window system,
17811 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
17812 refer to face->font.
17813 (split_font_name_into_vector, build_font_name_from_vector)
17814 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
17815 when HAVE_WINDOW_SYSTEM is defined.
17816
178172008-02-01 Kenichi Handa <handa@m17n.org>
17818
17819 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
17820 (x_produce_glyphs): Fix setting of members of cmp in case
17821 cmp->glyph_len is zero.
17822
17823 * fontset.c (Fset_fontset_font): Fix docstring.
17824 (Ffontset_info): Make it backward compatible. New arg ALL.
17825
178262008-02-01 Kim F. Storm <storm@cua.dk>
17827
17828 * process.c (read_process_output): Grow decoding_buf when needed;
17829 this could cause a crash in allocate_string and compact_small_strings.
17830
178312008-02-01 Kenichi Handa <handa@m17n.org>
17832
17833 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
17834
178352008-02-01 Kenichi Handa <handa@m17n.org>
17836
17837 * coding.c (setup_coding_system): Set coding->common_flags
17838 correctly for raw-text.
17839 (consume_chars): On encoding unibyte text by raw-text, don't check
17840 multibyte form.
17841 (encode_coding): On encoding by raw-text, never use translation tables.
17842
17843 * fileio.c (e_write): Short cut for the case of no encoding.
17844
178452008-02-01 Kenichi Handa <handa@m17n.org>
17846
17847 * coding.c (detect_coding, detect_coding_system): Delete unused
17848 variables.
17849
178502008-02-01 Kenichi Handa <handa@m17n.org>
17851
17852 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
17853 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
17854
178552008-02-01 Kenichi Handa <handa@m17n.org>
17856
17857 * coding.c (Ffind_coding_systems_region_internal): Include
17858 raw-text and no-conversion in the result.
17859
178602008-02-01 Kenichi Handa <handa@m17n.org>
17861
17862 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
17863 (load_font_get_repertory): Delete unnecessary check of ENCODING of
17864 FONT_DEF.
17865 (font_def_arg, add_arg, from_arg, to_arg): New args.
17866 (set_fontset_font): Change argument.
17867 (Fset_fontset_font): Fix for the case that TARGET is a script
17868 name and charset name.
17869 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
17870
178712008-02-01 Kenichi Handa <handa@m17n.org>
17872
17873 * fontset.c (fontset_font): Rename from fontset_face. Change return
17874 value.
17875 (face_suitable_for_char_p, face_for_char): Adjust for the change
17876 of fontset_font.
17877 (make_fontset_for_ascii_face): Fix setting of the fontset element
17878 for ASCII.
17879 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
17880 to get a font name.
17881 (Ffontset_info): Adjust for the change of fontset_font.
17882
17883 * coding.c (emacs_mule_char): Check invalid code more rigidly.
17884
17885 * character.h (LEADING_CODE_LATIN_1_MIN)
17886 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
17887
178882008-02-01 Kenichi Handa <handa@m17n.org>
17889
17890 * editfns.c (check_translation): New function.
17891 (Ftranslate_region_internal): Handle M:N mapping.
17892
178932008-02-01 Kenichi Handa <handa@m17n.org>
17894
17895 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
17896
178972008-02-01 Kenichi Handa <handa@m17n.org>
17898
17899 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
17900 goto invalid_code.
17901 (decode_coding_iso_2022): Fix handling of invalid designation.
17902
17903 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
17904 after calling code_conversion_save.
17905
179062008-02-01 Kenichi Handa <handa@m17n.org>
17907
17908 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
17909
17910 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
17911
17912 * fontset.c: Include "intervals.h".
17913 (fontset_face): Fix comparing of Lisp_Objects.
17914 (free_face_fontset, new_fontset_from_font_name): Fix
17915 Lisp_Object/int mixup.
17916
17917 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
17918
17919 * coding.c: Add many prototypes for static functions.
17920 (get_translation_table): Allow max_lookup to be NULL.
17921 (decode_coding, Ffind_coding_systems_region_internal)
17922 (Funencodable_char_position, Fcheck_coding_systems_region): Call
17923 get_translation_table with max_lookup NULL.
17924
179252008-02-01 Kenichi Handa <handa@m17n.org>
17926
17927 * coding.c (get_translation_table): Declare it as Lisp_Object.
17928 (LOOKUP_TRANSLATION_TABLE): New macro.
17929 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
17930 instead of CHAR_TABLE_REF.
17931
179322008-02-01 Kenichi Handa <handa@m17n.org>
17933
17934 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
17935 annotation data format.
17936 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
17937 Change arguments FROM and TO to single argument NCHARS. Change caller.
17938 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
17939 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17940 (decode_coding_ccl, decode_coding_charset): Pay attention to
17941 coding->charbuf_used.
17942 (get_translation): New function.
17943 (produce_chars): New arguments translation_table and last_block.
17944 Translate characters here. Return number of carryover chars.
17945 Change caller.
17946 (produce_composition): New argument pos. Change caller.
17947 Adjust for the change of annotation data format.
17948 (produce_charset, produce_annotation): Likewise.
17949 (decode_coding, encode_coding): Don't call translate_chars.
17950 (consume_chars): New arg translation_table. Change caller.
17951 (translate_chars): Delete.
17952 (syms_of_coding): Make translation-table's number of extra slots 2.
17953
179542008-02-01 Kenichi Handa <handa@m17n.org>
17955
17956 * search.c (simple_search): Fix setting this_pos_byte in backward
17957 search.
17958
17959 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
17960 byte sequence.
17961 (detect_coding_ccl): Fix setting of the variable valids.
17962
179632008-02-01 Kenichi Handa <handa@m17n.org>
17964
17965 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
17966
17967 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
17968
17969 * editfns.c (Ftranslate_region_internal): Rename from
17970 Ftranslate_region. Accept a char-table in TABLE.
17971 (syms_of_editfns): Defsubr Stranslate_region_internal.
17972
17973 * xfaces.c (set_lface_from_font_name): If a font is specified for
17974 a frame, generate a fontset from the font.
17975 (build_scalable_font_name): If the scalable font is requested for
17976 a specific size, don't change that size.
17977 (try_font_list): Try a scalable font also in the case that a
17978 pattern string is specified.
17979
179802008-02-01 Kenichi Handa <handa@m17n.org>
17981
17982 * xfaces.c (Fface_font): New optional arg CHARACTER.
17983
179842008-02-01 Kenichi Handa <handa@m17n.org>
17985
17986 * charset.h (CHARSET_OFFSET): New macro.
17987
179882008-02-01 Kenichi Handa <handa@m17n.org>
17989
17990 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
17991
17992 * fontset.c (fontset_face): Handle the case that repertory is a
17993 char-table.
17994 (find_font_encoding): Return nil for unknown encoding.
17995 (Fset_fontset_font): Ignore a font of unknown encoding.
17996
179972008-02-01 Kenichi Handa <handa@m17n.org>
17998
17999 * keymap.c (describe_vector): Handle default value of a char table.
18000
18001 * fontset.c (fontset_face): Handle fallback fonts correctly.
18002 (Ffontset_info): Return infomation about fallback fonts.
18003
180042008-02-01 Kenichi Handa <handa@m17n.org>
18005
18006 * fontset.c (FONTSET_DEFAULT): New macro.
18007 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
18008 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
18009 the case that it is nil.
18010 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
18011 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
18012
18013 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
18014 subset or superset.
18015
180162008-02-01 Kenichi Handa <handa@m17n.org>
18017
18018 * emacs.c (main): Call init_charset after syms_of_XXX.
18019
18020 * charset.c (Vcharset_map_directory): Delete.
18021 (Vcharset_map_path): New variable.
18022 (load_charset_map_from_file): Use Vcharset_map_path instead.
18023 (init_charset): Initialize Vcharset_map_path.
18024 (syms_of_charset): Delete declaration of "charset-map-directory",
18025 add declaration of "charset-map-path".
18026
180272008-02-01 Kenichi Handa <handa@m17n.org>
18028
18029 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
18030 ASCII only string.
18031
18032 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
18033
18034 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
18035 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
18036
180372008-02-01 Kenichi Handa <handa@m17n.org>
18038
18039 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
18040
18041 * coding.c (QCmnemonic, QCdefalut_char)
18042 (QCdecode_translation_table, QCencode_translation_table)
18043 (QCpost_read_conversion, QCpre_write_conversion): New variables.
18044 (get_translation_table): Return a list of translation tables if
18045 necessary.
18046 (decode_coding): Call get_translation_table with ENCODEP 0.
18047 (char_encodable_p): If translation_table is non-nil, always call
18048 translate_char.
18049 (Fdefine_coding_system_internal): Accept list of translation
18050 tables as :encode-translation-table and :decode-translation-table.
18051 (Fcoding_system_put): New function.
18052 (syms_of_coding): Declare new symbols. Defsubr
18053 Scoding_system_put.
18054 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
18055 typically JISX0212.
18056
18057 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
18058 when the charset is superset type.
18059
18060 * character.c (translate_char): Accept list of translation tables.
18061
180622008-02-01 Kenichi Handa <handa@m17n.org>
18063
18064 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
18065 (CODING_ATTR_TRANS_TBL): New macro.
18066
18067 * coding.c (get_translation_table): New function.
18068 (translate_chars): Fix the bug of skipping annotation data.
18069 (decode_coding, encode_coding): Utilize get_translation_table.
18070 (char_encodable_p, Funencodable_char_position): Translate char if
18071 necessary.
18072 (Ffind_coding_systems_region_internal)
18073 (Fcheck_coding_systems_region): Setup translation table for encode
18074 in a coding system attribute vector in advance.
18075 (Fdefine_coding_system_internal): Allow a symbol as translation
18076 table. For shift-jis type coding system, allow 4th charset.
18077
180782008-02-01 Kenichi Handa <handa@m17n.org>
18079
18080 * coding.c (decode_coding_sjis): Check the first byte rigidly.
18081
18082 * xdisp.c (get_next_display_element): Pass -1 as POS to
18083 FACE_FOR_CHAR if displaying a C-string.
18084
180852008-02-01 Kenichi Handa <handa@m17n.org>
18086
18087 * composite.c (get_composition_id): Handle xoff and yoff in a
18088 composition rule.
18089
18090 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
18091 (struct composition): New member lbearing and rbearing.
18092
18093 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
18094 (x_get_glyph_overhangs): Handle a composition glyph.
18095 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
18096
18097 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
18098 composition glyph.
18099
181002008-02-01 Kenichi Handa <handa@m17n.org>
18101
18102 * print.c: Include charset.h.
18103 (Vprint_charset_text_property): New variable.
18104 (Qdefault): Extern it.
18105 (PRINT_STRING_NON_CHARSET_FOUND)
18106 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
18107 (print_check_string_result): New variable.
18108 (print_check_string_charset_prop): New function.
18109 (print_prune_charset_plist): New variable.
18110 (print_prune_string_charset): New function.
18111 (print_object): Call print_prune_string_charset if
18112 Vprint_charset_text_property is not t.
18113 (print_interval): Print nothing if interval->plist is nil.
18114 (syms_of_print): Declare Vprint_charset_text_property as a lisp
18115 variable. Init and staticpro print_prune_charset_plist.
18116
181172008-02-01 Kenichi Handa <handa@m17n.org>
18118
18119 * fontset.c (new_fontset_from_font_name): Use the specified font
18120 for all characters in the new fontset.
18121
18122 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
18123 OBJECT args.
18124
18125 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
18126 OBJECT args for composition too.
18127
18128 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
18129 OBJECT args.
18130
181312008-02-01 Kenichi Handa <handa@m17n.org>
18132
18133 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
18134
18135 * fontset.c (reorder_font_vector): Adjust for the change of
18136 FONT_DEF format.
18137 (fontset_face): New arg id. Change caller.
18138 (face_for_char): New args pos and object.
18139 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
18140 (fs_query_fontset): Check NAME by Fassoc too.
18141 (Fset_fontset_font): Allow non-XLFD font name.
18142 (Ffontset_info): Adjust for the change of FONT_DEF format.
18143
18144 * fontset.h (face_for_char): Adjust prototype.
18145
18146 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
18147 (append_space, extend_face_to_end_of_line)
18148 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
18149 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
18150
18151 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
18152 POS and OBJECT args.
18153
18154 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
18155 POS and OBJECT args.
18156
181572008-02-01 Jason Rumney <jasonr@gnu.org>
18158
18159 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
18160 of GlobalAlloc'ed memory.
18161
181622008-02-01 Kenichi Handa <handa@m17n.org>
18163
18164 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
18165
18166 * charset.h (charset_table_used): Delete extern.
18167
18168 * charset.c (charset_table_used): Make it static.
18169 (map_charset_chars): Fix args to c_function with.
18170
18171 * chartab.c (map_sub_char_table_for_charset): Fix args to
18172 c_function with.
18173
18174 * coding.h (enum coding_result_code): Delete
18175 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
18176
18177 * coding.c (Qinsufficient_source, Qinconsistent_eol)
18178 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
18179 (Vlast_code_conversion_error): New variables.
18180 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
18181 (ONE_MORE_BYTE): Record error if any instead of signaling an
18182 error. If non-ASCII multibyte char is found, return the negative
18183 value of the code. All callers changed to check it.
18184 (ONE_MORE_BYTE_NO_CHECK): Likewise.
18185 (record_conversion_result): New function. Change all codes setting
18186 coding->result to call this function.
18187 (detect_coding_utf_8, decode_coding_utf_8)
18188 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
18189 Don't use the local variable incomplete.
18190 (emacs_mule_char): Change the second arg to `const'.
18191 (decode_coding): Fix of flushing out unprocessed data.
18192 (make_conversion_work_buffer): Fix making of a work buffer.
18193 (decode_coding_object): Return coding->dst_object.
18194
18195 * fontset.c (set_fontset_font): Fix args.
18196
18197 * lisp.h (CHARACTERBITS): Define as 22.
18198
18199 * process.c (send_process): Be sure to set coding->src_multibyte.
18200
18201 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
18202
182032008-02-01 Kenichi Handa <handa@m17n.org>
18204
18205 * xdisp.c (handle_auto_composed_prop): Give limit to
18206 Fnext_single_char_property_change.
18207
182082008-02-01 Kenichi Handa <handa@m17n.org>
18209
18210 * composite.c (syms_of_composite): Don't make the composition hash
18211 table weak.
18212
18213 * fontset.c (Fset_fontset_font): Fix docstring.
18214
18215 * lisp.h (detect_coding_system): Adjust prototype.
18216
18217 * fileio.c (kill_workbuf_unwind): Delete this function.
18218 (Finsert_file_contents): Adjust the call of detect_coding_system.
18219 Get conversion_buffer by code_conversion_save. Use the macro
18220 CODING_MAY_REQUIRE_DECODING. After decoding, update
18221 coding_system.
18222
18223 * coding.h (make_conversion_work_buffer): Delete extern.
18224 (code_conversion_save): Extern it.
18225
18226 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
18227 (CODING_GET_INFO): Delete argument eol_type. Change callers.
18228 (decode_coding_utf_8): Don't do eol converion.
18229 (detect_coding_utf_16): Check coding->src_chars, not
18230 coding->src_bytes. Add heuristics for those that have no signature.
18231 (decode_coding_emacs_mule, decode_coding_iso_2022)
18232 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
18233 Don't do eol converion.
18234 (adjust_coding_eol_type): Return a new coding system.
18235 (detect_coding): Don't detect eol. Fix for utf-16 detection.
18236 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
18237 each change.
18238 (decode_coding): Pay attention to undo_list. Do eol conversion for
18239 all types of coding-systems (if necessary).
18240 (Vcode_conversion_work_buf_list): Delete it.
18241 (Vcode_conversion_reused_workbuf): Rename from
18242 Vcode_conversion_reused_work_buf.
18243 (Vcode_conversion_workbuf_name): New variable.
18244 (reused_workbuf_in_use): New variable.
18245 (make_conversion_work_buffer): Delete the arg DEPTH.
18246 (code_conversion_restore): Change argument to cons.
18247 (code_conversion_save): Delete the argument BUFFER. Change callers.
18248 (detect_coding_system): New argument src_chars. Change callers.
18249 Fix for utf-16 detection.
18250 (init_coding_once): Don't use ISO_carriage_return.
18251 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
18252 reused_workbuf_in_use.
18253
182542008-02-01 Kenichi Handa <handa@m17n.org>
18255
18256 * keymap.c (store_in_keymap): Pay attention to the case that idx
18257 is a cons specifying a character range.
18258
182592008-02-01 Kenichi Handa <handa@m17n.org>
18260
18261 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
18262 HANDLED_RECOMPUTE_PROPS.
18263
18264 * coding.c (Fdefine_coding_system_internal): Fix checking of
18265 ascii compatibility.
18266
182672008-02-01 Kenichi Handa <handa@m17n.org>
18268
18269 * charset.c (find_charsets_in_text): Delete unused locale variable.
18270 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
18271
18272 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
18273 Resync charset_list to Vemacs_mule_charset_list.
18274
18275 * keymap.c (store_in_keymap): Pay attention to the case that idx
18276 is a cons specifying a character range.
18277
182782008-02-01 Kenichi Handa <handa@m17n.org>
18279
18280 * composite.c (update_compositions): Bind inhibit-read-only, etc
18281 to t before calling remove-list-of-text-properties.
18282
18283 * print.c (print_object): Always print ASCII chars as is.
18284
182852008-02-01 Kenichi Handa <handa@m17n.org>
18286
18287 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
18288
18289 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
18290 is a char table.
18291
182922008-02-01 Kenichi Handa <handa@m17n.org>
18293
18294 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
18295
182962008-02-01 Kenichi Handa <handa@m17n.org>
18297
18298 * xfaces.c (set_lface_from_font_name): Fix for the case that
18299 FONTNAME is not fontset name.
18300
183012008-02-01 Kenichi Handa <handa@m17n.org>
18302
18303 * fns.c (base64_encode_1): Fix previous change.
18304
183052008-02-01 Kenichi Handa <handa@m17n.org>
18306
18307 * fontset.c (set_fontset_font): New function.
18308 (Fset_fontset_font): If a font is specified for a charset, use
18309 map_charset_chars to store the font spec in a fontset.
18310
183112008-02-01 Kenichi Handa <handa@m17n.org>
18312
18313 * fontset.c (fontset_face): Create a fallback fontset on demand.
18314 (make_fontset): Don't create a fallback fontset here.
18315 (free_face_fontset): Free a fallback fontset (if any) too.
18316 (n_auto_fontsets): Delete this variable.
18317 (auto_fontset_alist): New variable.
18318 (new_fontset_from_font_name): Check auto_fontset_alist.
18319 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
18320 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
18321 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
18322 Defsubr Sfontset_list_all.
18323
183242008-02-01 Kenichi Handa <handa@m17n.org>
18325
18326 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
18327
183282008-02-01 Kenichi Handa <handa@m17n.org>
18329
18330 * fontset.c (Fnew_fontset): Check NAME more rigidly.
18331
183322008-02-01 Kenichi Handa <handa@m17n.org>
18333
18334 * editfns.c (Fgoto_char): Fix docstring.
18335
183362008-02-01 Kenichi Handa <handa@m17n.org>
18337
18338 * insdel.c (insert_from_gap): Adjust intervals correctly.
18339
183402008-02-01 Jason Rumney <jasonr@gnu.org>
18341
18342 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
18343 (pfnGetFontUnicodeRanges): New dynamically loaded function.
18344 (w32_initialize): Try to load it.
18345 (x_get_font_repertory): Use it if available.
18346 (w32_encode_char): Add shortcut for unicode output.
18347
18348 * w32fns.c (w32_load_system_font): Default charset to -1.
18349 (x_to_w32_charset): Match all fonts for unicode.
18350 (w32_to_x_charset): New parameter matching. Don't return partial
18351 or wildcard charsets.
18352 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
18353 (w32_codepage_for_font): Return CP_UNICODE for unicode.
18354 (w32_to_x_font): Match charset to real charset.
18355 (enum_font_cb2): Always list unicode versions.
18356
18357 * makefile.w32-in (temacs): Increase EMHEAP.
18358
183592008-02-01 Jason Rumney <jasonr@gnu.org>
18360
18361 * w32term.c (w32_encode_char): New charset parameter.
18362 font_info.encoding becomes encoding_type.
18363 (x_get_font_repertory): New function. Warning: stub only!
18364 (x_new_font): Return quickly if font already set.
18365 (x_new_fontset): fontsetname parameter is Lisp_Object.
18366 Use new fs_query_fontset. Try new_fontset_from_font_name.
18367 Use fontset_name for return value.
18368
18369 * w32term.h: Declare x_get_font_repertory.
18370
18371 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
18372 place of find_charset_in_text. Use encode_coding_object in place
18373 of encode_coding.
18374 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
18375 decode_coding.
18376
18377 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
18378 of x_new_fontset.
18379 (w32_load_system_font): Initialize charset as unicode.
18380 font_info.encoding becomes encoding_type.
18381 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
18382 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
18383 (syms_of_w32fns): Set get_font_repertory_func.
18384
18385 * w32console.c: Include character.h. Use terminal_encode_buffer
18386 from term.c.
18387 (write_glyphs): Use new version of encode_terminal_code. Use
18388 encode_coding_object in place of encode_coding.
18389
18390 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
18391 encoding becomes encoding_type.
18392
18393 * term.c (terminal_encode_buffer): Make externally visible.
18394
18395 * makefile.w32-in: Add character.h dependancies.
18396 (character.o, chartab.o): New targets.
18397
183982008-02-01 Kenichi Handa <handa@m17n.org>
18399
18400 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
18401 CODING_ID_EOL_TYPE.
18402
184032008-02-01 Andreas Schwab <schwab@suse.de>
18404
18405 * coding.c (produce_chars): Revert last change.
18406
184072008-02-01 Kenichi Handa <handa@m17n.org>
18408
18409 * charset.h (charset_unicode): Extern it.
18410
18411 * charset.c (string_xstring_p): Check by (C >= 0x100).
18412 (find_charsets_in_text): Change format of the arc CHARSETS. New
18413 arg MULTIBYTE.
18414 (Ffind_charset_region, Ffind_charset_string): Adjust for the
18415 change of find_charsets_in_text.
18416 (Fsplit_char): Fix doc. Never return unknown.
18417
18418 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
18419
18420 * coding.c (Fdefine_coding_system_alias): Update
18421 Vcoding_system_list.
18422
18423 * fontset.c (load_font_get_repertory): Pay attention to the case
18424 that ENCODING of a font is specified by a char-table.
18425
18426 * xterm.c (x_get_font_repertory): Handle the case that the
18427 encoding of font is other than Unicode.
18428
184292008-02-01 Kenichi Handa <handa@m17n.org>
18430
18431 * term.c (encode_terminal_code): Don't handle glyph-table. Check
18432 if a character is encodable by the terminal coding system. If
18433 not, produces proper number of `?'s. Update
18434 terminal_encode_buffer and terminal_encode_buf_size if necessary.
18435 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
18436
184372008-02-01 Kenichi Handa <handa@m17n.org>
18438
18439 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
18440 variables.
18441 (encode_terminal_code): Change argument. Encode multiple
18442 characters at once. Store the result of encoding in
18443 terminal_encode_buffer.
18444 (write_glyphs, insert_glyphs): Adjust for the change of
18445 encode_terminal_code.
18446 (term_init): Initialize terminal_encode_buffer and
18447 terminal_encode_buf_size.
18448
18449 * coding.c (consume_chars): If coding->src_object is nil, don't
18450 check annotation.
18451
184522008-02-01 Kenichi Handa <handa@m17n.org>
18453
18454 * character.c (char_string): Use ASCII_CHAR_P instead of
18455 SINGLE_BYTE_CHAR_P.
18456
184572008-02-01 Kenichi Handa <handa@m17n.org>
18458
18459 * xdisp.c (handle_auto_composed_prop): Check if the last
18460 characters of auto-composed region is newly composed with the
18461 following characters.
18462 (handle_composition_prop): Fix checking of point being inside
18463 composition.
18464
184652008-02-01 Kenichi Handa <handa@m17n.org>
18466
18467 * fns.c (concat): Don't change multibyteness of the result by
18468 concatenating an 8-bit character.
18469
18470 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
18471 multibyteness of the result when newelt is an 8-bit character.
18472
184732008-02-01 Dave Love <fx@gnu.org>
18474
18475 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
18476 EMACS_INT.
18477
18478 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
18479
18480 * xfaces.c (face_numeric_value): Declare dim size_t.
18481 (Finternal_lisp_face_equal_p): Remove unused f.
18482
18483 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
18484 (MATRIX_ROW): Remove unused vars.
18485 (draw_glyphs, x_insert_glyphs, fast_find_position)
18486 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
18487 byte/char counts.
18488
18489 * regex.c (regex_compile): Remove unused var.
18490
18491 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
18492
18493 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
18494 (Faccessible_keymaps, where_is_internal): Remove unused vars.
18495
18496 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
18497
18498 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
18499
18500 * fileio.c (Fwrite_region): Remove unused var.
18501
18502 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
18503 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
18504
18505 * composite.c (Fremove_list_of_text_properties): Declare.
18506
18507 * coding.c (inhibit_pre_post_conversion): Remove (unused).
18508 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
18509 (coding_inherit_eol_type): Remove unused attrs.
18510 (detect_coding): Cast arg of detect_eol.
18511
18512 * charset.c (syms_of_charset): Remove unused var p.
18513 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
18514 byte/char counts.
18515
18516 * casetab.c (set_case_table): Remove unused var.
18517
18518 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
18519 unused vars.
18520
185212008-02-01 Dave Love <fx@gnu.org>
18522
18523 * xterm.c (x_bitmap_mask): Declare.
18524
185252008-02-01 Dave Love <fx@gnu.org>
18526
18527 * xterm.c (x_term_init): Fix type error.
18528
18529 * lisp.h: Add Funibyte_char_to_multibyte.
18530
18531 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
18532 (Fset_coding_system_priority): Doc fix.
18533
18534 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
18535
18536 * indent.c (check_composition): Make start and end EMACS_INT.
18537
18538 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
18539
18540 * xdisp.c (handle_composition_prop, check_point_in_composition):
18541 Make buffer positions EMACS_INT.
18542
18543 * composite.c (find_composition, run_composition_function)
18544 (update_compositions, Ffind_composition_internal): Make buffer
18545 positions EMACS_INT.
18546
18547 * composite.h (find_composition, update_compositions): Make
18548 position args EMACS_INT.
18549
18550 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
18551
18552 * intervals.c (get_property_and_range):
18553 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
18554
18555 * unexalpha.c: Don't include varargs.h.
18556
185572008-02-01 Dave Love <fx@gnu.org>
18558
18559 * coding.h (ENCODE_UTF_8): New.
18560
18561 * Makefile.in (gtkutil.o): Depend on coding.h.
18562
18563 * coding.c (Fset_coding_system_priority): Doc fix.
18564
185652008-02-01 Kenichi Handa <handa@m17n.org>
18566
18567 * fileio.c (Finsert_file_contents): Call setup_coding_system in
18568 the case of auto saving.
18569
185702008-02-01 Andreas Schwab <schwab@suse.de>
18571
18572 * chartab.c (map_char_table, map_char_table_for_charset): Protect
18573 `range' from GC.
18574
185752008-02-01 Kenichi Handa <handa@m17n.org>
18576
18577 * coding.c (decode_coding_sjis): Check bytes more rigidly.
18578
185792008-02-01 Kenichi Handa <handa@m17n.org>
18580
18581 * fileio.c (choose_write_coding_system): Return a decided coding system.
18582 (Fwrite_region): Set Vlast_coding_system_used to the return value
18583 of choose_write_coding_system.
18584
185852008-02-01 Kenichi Handa <handa@m17n.org>
18586
18587 * charset.c (Fset_charset_priority): Pay attention to duplicated
18588 arguments.
18589
18590 * coding.c (QCcategory): New variable.
18591 (syms_of_coding): Defsym it. Set all elements of
18592 Vcoding_category_table and their symbol values.
18593 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
18594 coding-category-XXX, and coding-category-list.
18595 (Fdefine_coding_system_internal): Add category in the plist.
18596
185972008-02-01 Kenichi Handa <handa@m17n.org>
18598
18599 * callproc.c (Fcall_process): Handle carryover correctly.
18600
18601 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
18602 (raw_text_coding_system): Check NILP (coding_system).
18603 (coding_inherit_eol_type): Check NILP (coding_system) and
18604 NILP (parent).
18605 (consume_chars): Fix for the case of raw-text.
18606
18607 * process.c (read_process_output): Handle carryover correctly.
18608
186092008-02-01 Dave Love <fx@gnu.org>
18610
18611 * regex.c (re_search_2): Fix last change.
18612
186132008-02-01 Kenichi Handa <handa@m17n.org>
18614
18615 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
18616 target_multibyte. Even in a unibyte case, return a converted
18617 multibyte char.
18618 (GET_CHAR_AFTER): New macro.
18619 (PATFETCH): Translate via multibyte char.
18620 (HANDLE_UNIBYTE_RANGE): Delete this macro.
18621 (SETUP_MULTIBYTE_RANGE): New macro.
18622 (regex_compile): Setup compiled code so that its multibyteness
18623 matches that of a target. Fix the handling of "[X-YZ]" using
18624 SETUP_MULTIBYTE_RANGE.
18625 (analyse_first) <charset>: For filling fastmap for all multibyte
18626 characters, don't check by BASE_LEADING_CODE_P.
18627 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
18628 the same as RE_MULTIBYTE_P (bufp) now.
18629 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
18630 (TARGET_CHAR_AND_LENGTH): Delete this macro.
18631 (TRANSLATE_VIA_MULTIBYTE): New macro.
18632 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
18633 It is the same as RE_MULTIBYTE_P (bufp) now.
18634 <exactn>: Translate via multibyte.
18635 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
18636 translate it.
18637 <charset, charset_not>: Fetch a character by
18638 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
18639 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
18640 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
18641 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
18642 by GET_CHAR_AFTER.
18643 (bcmp_translate): Likewise.
18644
18645 * search.c (compile_pattern): Check the member target_multibyte,
18646 not the member multibyte of buf.
18647
18648 * lread.c (read1): While reading a string, set force_singlebyte
18649 and force_multibyte correctly.
18650
18651 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
18652 up of unibyte_to_multibyte_table.
18653
186542008-02-01 Kenichi Handa <handa@m17n.org>
18655
18656 * coding.c (setup_coding_system): If coding has
18657 post-read-conversion or pre-write-conversion, set
18658 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
18659 respectively.
18660 (decode_coding_gap): Run post-read-conversion if any.
18661
18662 * fileio.c (Finsert_file_contents): Even if we read into a
18663 unibyte buffer, check if we must decode the result or not.
18664
186652008-02-01 Kenichi Handa <handa@m17n.org>
18666
18667 * coding.c (make_conversion_work_buffer): Change the work buffer
18668 name to the same one as that of Emacs 21.
18669
186702008-02-01 Kenichi Handa <handa@m17n.org>
18671
18672 * coding.h (make_conversion_work_buffer): Adjust prototype.
18673 (code_conversion_restore): Don't extern it.
18674
18675 * coding.c (detected_mask): Delete unused variable.
18676 (decode_coding_iso_2022): Pay attention to the byte sequence of
18677 CTEXT extended segment, and retain those bytes as is.
18678 (decode_coding_ccl): Delete unused variable `valids'.
18679 (setup_coding_system): Delete unused variable `category'.
18680 (consume_chars): Delete unused variable `category'. Make it work
18681 for non-multibyte case.
18682 (make_conversion_work_buffer): Change argument.
18683 (saved_coding): Delete unused variable.
18684 (code_conversion_restore): Don't check saved_coding->destination.
18685 (code_conversion_save): New function.
18686 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
18687 instead of record_unwind_protect.
18688 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
18689 (detect_coding_system): Delete unused variable `mask'.
18690 (Fdefine_coding_system_internal): Delete unused variable id.
18691
18692 * fileio.c (kill_workbuf_unwind): New function.
18693 (Finsert_file_contents): On replacing, call
18694 make_conversion_work_buffer with correct args, and call
18695 record_unwind_protect with the first arg kill_workbuf_unwind.
18696
18697 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
18698
186992008-02-01 Kenichi Handa <handa@m17n.org>
18700
18701 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
18702 (fontset_add): Fix for the case that TO is less than TO1.
18703 (Ffontset_info): Don't use fallback fontset on checking the
18704 default fontset.
18705 (dump_fontset): New function for debugging.
18706
18707 * coding.c (Fdefine_coding_system_internal): Fix for the case that
18708 coding_type is Qcharset.
18709
187102008-02-01 Kenichi Handa <handa@m17n.org>
18711
18712 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
18713 (map_char_table): Don't inherit the value from the parent on
18714 initializing VAL. Adjust for the above change.
18715
187162008-02-01 Kenichi Handa <handa@m17n.org>
18717
18718 * coding.c (Qsignature, Qendian): Delete these variables.
18719 (syms_of_coding): Don't initialize them.
18720 (CATEGORY_MASK_UTF_16_AUTO): New macro.
18721 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
18722 detect_info->found.
18723 (decode_coding_utf_16): Don't detect BOM here.
18724 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
18725 is NOT utf_16_without_bom.
18726 (setup_coding_system): For a coding system of type utf-16, check
18727 if the attribute :endian is Qbig or not (not nil or not), and set
18728 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
18729 (detect_coding): If coding type is utf-16 and BOM detection is
18730 required, detect it.
18731 (Fdefine_coding_system_internal): For a coding system of type
18732 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
18733
187342008-02-01 Kenichi Handa <handa@m17n.org>
18735
18736 * coding.c (coding_set_source): Fix for the case that the current
18737 buffer is different from coding->src_object.
18738 (decode_coding_object): Don't use the conversion work buffer if
18739 DST_OBJECT is a buffer.
18740
187412008-02-01 Dave Love <fx@gnu.org>
18742
18743 * lread.c (read_emacs_mule_char) [len==2]: Index
18744 emacs_mule_charset correctly.
18745
187462008-02-01 Dave Love <fx@gnu.org>
18747
18748 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
18749 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
18750 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
18751 treated specially.)
18752 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
18753 (detected_mask): Remove Big5 bits.
18754
187552008-02-01 Kenichi Handa <handa@m17n.org>
18756
18757 The following changes are to make the font rescaling facility
18758 compatible with Emacs 21.
18759
18760 * xfaces.c (Vface_font_rescale_alist): Rename from
18761 Vface_resizing_fonts.
18762 (struct font_name): Rename member resizing_ratio to rescale_ratio.
18763 (font_rescale_ratio): Rename from font_resizing_ratio.
18764 (split_font_name): Set font->rescale_ratio.
18765 (better_font_p): Pay attention to font->rescale_ratio.
18766 (build_scalable_font_name): Likewise. Change RESX, and RESY
18767 fields.
18768 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
18769
187702008-02-01 Kenichi Handa <handa@m17n.org>
18771
18772 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
18773 (Qutf_16_le): Remove these variables.
18774 (syms_of_coding): Don't DEFSYM them.
18775 (decode_coding_utf_16): Fix handling of BOM.
18776 (encode_coding_utf_16): Fix handling of BOM.
18777
187782008-02-01 Kenichi Handa <handa@m17n.org>
18779
18780 * fileio.c (Finsert_file_contents): On replacing, before decoding
18781 the file into the work buffer, set point of the work buffer to the end.
18782
187832008-02-01 Dave Love <fx@gnu.org>
18784
18785 * coding.c (Fcheck_coding_systems_region): Fix type errors.
18786
187872008-02-01 Dave Love <fx@gnu.org>
18788
18789 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
18790 and fix C types.
18791
187922008-02-01 Kenichi Handa <handa@m17n.org>
18793
18794 * xdisp.c (SKIP_GLYPHS): New macro.
18795 (set_cursor_from_row): Pay attention to string display properties.
18796
18797 * category.c (copy_category_entry): Fix for the case that RANGE
18798 is an integer.
18799
18800 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
18801
18802 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
18803
188042008-02-01 Kenichi Handa <handa@m17n.org>
18805
18806 * charset.c (Fcharset_id_internal): New function.
18807 (syms_of_charset): Defsubr it.
18808
18809 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
18810 with the last arg charset_list acquired from coding.
18811 (Fdefine_coding_system_internal): For ccl-based coding system, fix
18812 the attribute coding_attr_ccl_valids.
18813
18814 * coding.h (enum define_coding_ccl_arg_index): Set the first
18815 member coding_arg_ccl_decoder to coding_arg_max.
18816
18817 * ccl.h (ccl_driver): Adjust prototype.
18818
18819 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
18820 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 18821 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
18822 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
18823 last arg Qnil.
18824
188252008-02-01 Kenichi Handa <handa@m17n.org>
18826
18827 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
18828 call encode_char.
18829
18830 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
18831
188322008-02-01 Dave Love <fx@gnu.org>
18833
18834 * composite.c (syms_of_composite): Make composition_hash_table weak.
18835
188362008-02-01 Kenichi Handa <handa@m17n.org>
18837
18838 * dispextern.h (check_face_attributes, generate_ascii_font_name)
18839 (font_name_registry): Don't extern them.
18840 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
18841
18842 * fontset.h (Qfontset): Don't extern it.
18843 (new_fontset_from_font_name): Extern it.
18844
18845 * fontset.c: Give 8 extra slots to fontset objects.
18846 (Qfontset_info): New variable.
18847 (syms_of_fontset): Defsym it.
18848 (FONTSET_FALLBACK): New macro.
18849 (fontset_face): Try also the default fontset.
18850 (make_fontset): Realize a fallback fontset from the default fontset.
18851 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
18852 using split_font_name_into_vector and build_font_name_from_vector.
18853 (Fset_fontset_font): Access the elements of font_spec by enum
18854 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
18855 name by using split_font_name_into_vector.
18856 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
18857 generate a proper font name from the fontset name. Update
18858 Vfontset_alias_alist.
18859 (n_auto_fontsets): New variable.
18860 (new_fontset_from_font_name): New function.
18861 (Ffont_info): Store the information about fonts generated from the
18862 default fontset in the first extra slot of the returned char-table.
18863
18864 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
18865 (font_name_registry): Delete function.
18866 (split_font_name_into_vector): New function.
18867 (build_font_name_from_vector): New function.
18868 (font_list): The argument REGISTRY is now a list of registry names.
18869 (choose_face_font): If we are choosing an ASCII font, and ATTRS
18870 specifies an explicit font name, return the name as is. Make a
18871 list of registy names.
18872
18873 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
18874 of x_new_fontset.
18875 (Fx_create_frame): Don't call x_new_fontset here. Just use
18876 x_list_fonts to check the existence of fonts.
18877
18878 * xterm.h (x_new_fontset): Adjust prototype.
18879
18880 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
18881 string. Use new_fontset_from_font_name to create a fontset from a
18882 font name.
18883
188842008-02-01 Kenichi Handa <handa@m17n.org>
18885
18886 * syntax.c (Vfind_word_boundary_function_table): New name for
18887 Vnext_word_boundary_function_table.
18888 (find-word-boundary-function-table): New name for
18889 next-word-boundary-function-table.
18890
188912008-02-01 Dave Love <fx@gnu.org>
18892
18893 * Makefile.in: Fix some dependencies.
18894
18895 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
18896 set it to nil before returning.
18897
18898 * composite.c (update_compositions): Fix type error.
18899
18900 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
18901
189022008-02-01 Kenichi Handa <handa@m17n.org>
18903
18904 * xterm.c (x_new_font): Optimize for the case that the font is
18905 already set for the frame.
18906
189072008-02-01 Kenichi Handa <handa@m17n.org>
18908
18909 * chartab.c (char_table_ascii): Check if the char table contents
18910 is sub-char-table or not.
18911 (char_table_set, char_table_set_range): Fix argument to
18912 char_table_ascii.
18913
18914 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
18915 (detect_coding_utf_8, detect_coding_utf_16)
18916 (detect_coding_emacs_mule, detect_coding_iso_2022)
18917 (detect_coding_sjis, detect_coding_big5)
18918 (detect_coding_ccl, detect_coding_charset): Change argument MASK
18919 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
18920 sequence is valid in this coding system. Change callers.
18921 (MAX_ANNOTATION_LENGTH): New macro.
18922 (ADD_ANNOTATION_DATA): New macro.
18923 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
18924 ADD_ANNOTATION_DATA. Change the format of annotation data.
18925 (ADD_CHARSET_DATA): New macro.
18926 (emacs_mule_char): New argument ID. Change callers.
18927 (decode_coding_emacs_mule, decode_coding_iso_2022)
18928 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
18929 Produce charset annotation data in coding->charbuf.
18930 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
18931 to charset annotation data in coding->charbuf.
18932 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
18933 coding->common_flags if the coding system is iso-2022 based and
18934 uses designation.
18935 (produce_composition): Adjust for the new annotation data format.
18936 (produce_charset): New function.
18937 (produce_annotation): Handle charset annotation.
18938 (handle_composition_annotation, handle_charset_annotation): New
18939 functions.
18940 (consume_chars): Handle charset annotation. Utilize the above two
18941 functions.
18942 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
18943 buffer, get the deleted text as a string and set
18944 coding->src_object to that string.
18945 (detect_coding, detect_coding_system): Use the new struct
18946 coding_detection_info.
18947
18948 * coding.h (struct coding_detection_info): New structure.
18949 (struct coding_system): Adjust prototype of the member `detector'.
18950 (CODING_ANNOTATE_CHARSET_MASK): New macro.
18951
189522008-02-01 Kenichi Handa <handa@m17n.org>
18953
18954 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
18955
189562008-02-01 Dave Love <fx@gnu.org>
18957
18958 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
18959 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
18960 to new local and nullify apropos_accumulate before returning.
18961 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
18962
189632008-02-01 Kenichi Handa <handa@m17n.org>
18964
18965 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
18966 correctly.
e3eea1fc 18967
aac0c6e3
MR
189682008-02-01 Dave Love <fx@gnu.org>
18969
18970 * fns.c (Flanginfo): Call synchronize_system_time_locale.
18971
189722008-02-01 Kenichi Handa <handa@m17n.org>
18973
18974 The following changes are to make character composition happen
18975 automatically on displaying.
18976
18977 * Makefile.in (lisp, shortlisp): Add composite.elc.
18978
18979 * composite.h (Qauto_composed, Vauto_composition_function)
18980 (Qauto_composition_function): Extern them.
18981
18982 * composite.c (Vcomposition_function_table)
18983 (Qcomposition_function_table): Delete variables.
18984 (Qauto_composed, Vauto_composition_function)
18985 (Qauto_composition_function): New variables.
18986 (run_composition_function): Don't call
18987 compose-chars-after-function.
18988 (update_compositions): Clear `auto-composed' text property.
18989 (compose_chars_in_text): Delete this function.
18990 (syms_of_composite): Staticpro Qauto_composed and
18991 Qauto_composition_function. Declare Vauto_composition_function as
18992 a Lisp variable.
18993
18994 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
18995
18996 * xdisp.c (it_props): Add an entry for Qauto_composed.
18997 (handle_auto_composed_prop): New function.
18998
18999 * xselect.c (selection_data_to_lisp_data): Don't call
19000 compose_chars_in_text.
19001
190022008-02-01 Dave Love <fx@gnu.org>
19003
19004 * keyboard.c (read_char): Modify checking around use of
19005 Vkeyboard_translate_table.
19006
19007 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
19008 and fix C types.
19009
190102008-02-01 Kenichi Handa <handa@m17n.org>
19011
19012 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
19013 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19014 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
19015 the case that the last byte is '\r' correctly.
19016 (decode_coding): Flush out the unprocessed data correctly.
19017 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
19018
190192008-02-01 Dave Love <fx@gnu.org>
19020
19021 * xterm.c (XTread_socket): Fix changes for defined keysyms.
19022 Add XK_ISO... case.
19023 (xaw_scroll_callback): Revert last change.
19024
190252008-02-01 Kenichi Handa <handa@m17n.org>
19026
19027 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
19028
190292008-02-01 Kenichi Handa <handa@m17n.org>
19030
19031 * xfaces.c (Vface_resizing_fonts): New variable.
19032 (struct font_name): New member `resizing_ratio'.
19033 (font_resizing_ratio): New function.
19034 (split_font_name): Set font->resizing_ratio.
19035 (better_font_p): Pay attention to font->resizing_ratio.
19036 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
19037 RESX, and RESY fields.
19038 (try_alternative_families): Try scalable fonts if
19039 Vscalable_fonts_allowed is not Qt.
19040 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
19041
190422008-02-01 Dave Love <fx@gnu.org>
19043
19044 * xterm.c (xaw_scroll_callback): Cast correctly.
19045
190462008-02-01 Dave Love <fx@gnu.org>
19047
19048 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
19049 (lispy_kana_keys): Comment out.
19050 (make_lispy_event) [XK_kana_A]: Comment out.
19051
19052 * xterm.c (xaw_scroll_callback): Cast call_data.
19053 (XTread_socket): Deal with ASCII keysyms.
19054 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
19055
190562008-02-01 Dave Love <fx@gnu.org>
19057
19058 * xterm.c (Vx_keysym_table): New.
19059 (syms_of_xterm): Initialize it.
19060 (XTread_socket): Use it.
19061 From head: Eliminate incorrect optimization that tried to avoid
19062 decoding the output of X*LookupString.
19063 (x_get_font_repertory): Delete charset declaration.
19064
190652008-02-01 Kenichi Handa <handa@m17n.org>
19066
19067 * coding.c (detect_coding_charset): If only ASCII bytes are found,
19068 return 0.
19069 (Fdefine_coding_system_internal): Setup
19070 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
19071
190722008-02-01 Dave Love <fx@gnu.org>
19073
19074 * coding.c (Fcheck_coding_system): Doc fix.
19075
19076 * editfns.c (Finsert_byte): Return a proper value.
19077
190782008-02-01 Kenichi Handa <handa@m17n.org>
19079
19080 * coding.c (decode_coding): Fix args to translate_chars. Pay
19081 attention to Vstandard_translation_table_for_decode.
19082 (encode_coding): Fix args to translate_chars. Pay attention to
19083 Vstandard_translation_table_for_encode.
19084
19085 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
19086 SINGLE_BYTE_CHAR_P.
19087
19088 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
19089 not by SINGLE_BYTE_CHAR_P.
19090
19091 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
19092 SINGLE_BYTE_CHAR_P.
19093
19094 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
19095 SINGLE_BYTE_CHAR_P.
19096
19097 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
19098 by SINGLE_BYTE_CHAR_P.
19099
19100 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
19101 SINGLE_BYTE_CHAR_P.
19102
191032008-02-01 Dave Love <fx@gnu.org>
19104
19105 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
19106
191072008-02-01 Dave Love <fx@gnu.org>
19108
19109 * fns.c (Flanginfo): Fix typo.
19110
19111 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
19112
191132008-02-01 Kenichi Handa <handa@m17n.org>
19114
19115 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
19116 (detect_coding_emacs_mule, detect_coding_iso_2022)
19117 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
19118 incomplete byte sequence. Don't update *mask when correctly detected.
19119 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
19120 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
19121 (detect_coding, detect_coding_system): Adjust for the changes above.
19122
191232008-02-01 Kenichi Handa <handa@m17n.org>
19124
19125 * character.c (char_string): Rename from
19126 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
19127 (string_char): Rename from string_char.
19128
19129 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
19130 if C is greater than MAX_3_BYTE_CHAR.
19131 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
19132 string_char instead of string_char_with_unification.
19133
191342008-02-01 Dave Love <fx@gnu.org>
19135
19136 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
19137
191382008-02-01 Kenichi Handa <handa@m17n.org>
19139
19140 * keymap.c (push_key_description): Pay attention to force_multibyte.
19141
19142 * regex.c (re_search_2): Fix for the case of unibyte buffer.
19143
191442008-02-01 Dave Love <fx@gnu.org>
19145
19146 * charset.c (define_charset_internal): Rename `supprementary'.
19147
19148 * Makefile.in (lisp, shortlisp): Remove latin-N.
19149
191502008-02-01 Dave Love <fx@gnu.org>
19151
19152 * xfns.c (x_window, x_window): Use use_xim.
19153
19154 * xterm.c (use_xim): Initialize.
19155 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
19156 (x_term_init): Maybe set use_xim.
19157
19158 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
19159
191602008-02-01 Kenichi Handa <handa@m17n.org>
19161
19162 * search.c (search_buffer): Fix case-fold-search of multibyte
19163 characters.
19164 (boyer_moore): Rename the last argument to char_high_bits.
19165
191662008-02-01 Kenichi Handa <handa@m17n.org>
19167
19168 * xdisp.c (display_string): Fix for the case of zero width glyph.
19169
19170 * xfns.c (x_set_font): Change the error message of the case that
19171 x_new_fontset returns Qt.
19172
19173 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
19174 (Finternal_set_lisp_face_attribute): Use signal_error for the
19175 error of invalid fontset.
19176
19177 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
19178 fontset, return Qt.
19179
191802008-02-01 Dave Love <fx@gnu.org>
19181
19182 * unexelf.c (unexec): Make .got handling not SGI-specific.
19183
19184 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
19185
19186 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
19187
19188 * keyboard.c (read_key_sequence): Fix type error.
19189
19190 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
19191 type error.
19192
19193 * fontset.c (fontset_add): Return Lisp_Object.
19194
191952008-02-01 Dave Love <fx@gnu.org>
19196
19197 * charset.h (charset_ordered_list_tick): Declare extern.
19198
191992008-02-01 Kenichi Handa <handa@m17n.org>
19200
19201 The following changes (and some of 2008-02-01 changes of mine) are
19202 for handling syntax, category, and case conversion for unibyte
19203 characters by converting them to multibyte on the fly. With these
19204 changes, we don't have to setup syntax and case tables for unibyte
19205 characters in each language environment.
19206
19207 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
19208 multibyte if necessary.
19209
19210 * bytecode.c (Fbyte_code): Likewise.
19211
19212 * character.h (LEADING_CODE_LATIN_1_MIN)
19213 (LEADING_CODE_LATIN_1_MAX): New macros.
19214 (unibyte_to_multibyte_table): Extern it.
19215 (unibyte_char_to_multibyte): New macro.
19216 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
19217 (CHAR_LEADING_CODE): New macro.
19218 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
19219
19220 * character.c (unibyte_to_multibyte_table): New variable.
19221 (unibyte_char_to_multibyte): Move to character.h and define as macro.
19222 (multibyte_char_to_unibyte): If C is an eight-bit character,
19223 convert it to the corresponding byte value.
19224
19225 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
19226 not 1, signals an error. Update the elements of
19227 unibyte_to_multibyte_table.
19228 (init_charset_once): Initialize unibyte_to_multibyte_table.
19229 (syms_of_charset): Define the charset `iso-8859-1'.
19230
19231 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
19232 as is without converting it to unibyte. In a unibyte buffer,
19233 convert C to multibyte before checking the syntax.
19234
19235 * lisp.h (unibyte_char_to_multibyte): Delete extern.
19236
19237 * minibuf.c (Fminibuffer_complete_word): Use the macro
19238 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
19239
19240 * regex.h (struct re_pattern_buffer): New member target_multibyte.
19241
19242 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
19243 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
19244 that is zero, convert an eight-bit char to multibyte.
19245 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
19246 non-emacs case.
19247 (PATFETCH): Convert an eight-bit char to multibyte.
19248 (HANDLE_UNIBYTE_RANGE): New macro.
19249 (regex_compile): Setup the compiled pattern for multibyte chars
19250 even if the given regex string is unibyte. Use PATFETCH_RAW
19251 instead of PATFETCH in many places. To handle `charset'
19252 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
19253 only for ASCII chars.
19254 (analyse_first) <exactn>: Simplify because the compiled pattern
19255 is multibyte.
19256 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
19257 <charset>: Use CHAR_LEADING_CODE to get leading codes.
19258 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
19259 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
19260 multibyte always 1.
19261 (re_search_2): In emacs, set the locale variable multibyte to 1,
19262 otherwise to 0. New local variable target_multibyte. Check it
19263 to decide the multibyteness of STR1 and STR2. If
19264 target_multibyte is zero, convert unibyte chars to multibyte
19265 before translating and checking fastmap.
19266 (TARGET_CHAR_AND_LENGTH): New macro.
19267 (re_match_2_internal): In emacs, set the locale variable multibyte
19268 to 1, otherwise to 0. New local variable target_multibyte. Check
19269 it to decide the multibyteness of STR1 and STR2. Use
19270 TARGET_CHAR_AND_LENGTH to fetch a character from D.
19271 <charset, charset_not>: If multibyte is nonzero, check fastmap
19272 only for ASCII chars. Call bcmp_translate with
19273 target_multibyte, not with multibyte.
19274 <begline>: Declare the local variable C as `unsigned'.
19275 (bcmp_translate): Change the last arg name to target_multibyte.
19276
19277 * search.c (compile_pattern_1): Don't adjust the multibyteness of
19278 the regexp pattern and the matching target. Set cp->buf.multibyte
19279 to the multibyteness of the regexp pattern. Set
19280 cp->but.target_multibyte to the multibyteness of the matching target.
19281 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
19282 FETCH_STRING_CHAR_ADVANCE.
19283 (Freplace_match): Convert unibyte chars to multibyte.
19284
19285 * syntax.c (char_quoted, back_comment, scan_words)
19286 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
19287 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
19288 unibyte chars to multibyte.
19289 (skip_chars): Delete the arg syntaxp, and move the code for
19290 handling syntaxes to skip_syntaxes. Change callers.
19291 Fix the case that the multibyteness of STRING and the current
19292 buffer doesn't match.
19293 (skip_syntaxes): New function.
19294 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
19295 SINGLE_BYTE_CHAR_P.
19296
192972008-02-01 Kenichi Handa <handa@m17n.org>
19298
19299 * xfaces.c (QCfontset): New variable.
19300 (LFACE_FONTSET): New macro.
19301 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
19302 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
19303 (Finternal_set_lisp_face_attribute)
19304 (Finternal_get_lisp_face_attribute): Handle QCfontset.
19305 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
19306 check also LFACE_FONTSET_INDEX.
19307 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
19308 attrs[LFACE_FONT_INDEX].
19309 (syms_of_xfaces): Intern and staticpro QCfontset.
19310
19311 * dispextern.h (enum lface_attribute_index): New member
19312 LFACE_FONTSET_INDEX.
19313
19314 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
19315
193162008-02-01 Kenichi Handa <handa@m17n.org>
19317
19318 * coding.c (coding_set_destination): Fix coding->destination for
19319 the case converting a region.
19320 (encode_coding_utf_8): Encode eight-bit chars as single byte.
19321 (encode_coding_object): Fix coding->dst_pos and
19322 coding->dst_pos_byte for the case converting a region.
19323
19324 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
19325
19326 * character.h (BYTE8_STRING): New macro.
19327
19328 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
19329
193302008-02-01 Kenichi Handa <handa@m17n.org>
19331
19332 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
19333 characters by octal form.
19334
19335 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
19336
19337 * buffer.h (_fetch_multibyte_char_len): Delete extern.
19338 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
19339 _fetch_multibyte_char_len.
19340 (FETCH_CHAR_AS_MULTIBYTE): New macro.
19341
19342 * casetab.c (set_canon, set_identity, shuffle): Simplify.
19343
19344 * casefiddle.c (casify_object): Simplify. Handle the case that
19345 the case conversion change the byte length.
19346 (casify_region): Likewise.
19347
19348 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
19349
19350 * character.c (_fetch_multibyte_char_len): Delete this variable.
19351 (syms_of_character): Setup Vprintable_chars.
19352
19353 * editfns.c (Fchar_equal): Fix for the unibyte case.
19354 (Finsert_byte): New function.
19355 (syms_of_editfns): Defsubr it.
19356
19357 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
19358 of direct code 0x3ffff.
19359
19360 * search.c (Freplace_match): Fix for the unibyte case.
19361
193622008-02-01 Kenichi Handa <handa@m17n.org>
19363
19364 * lread.c (safe_to_load_p): Fix the logic.
19365
19366 * syntax.c (scan_words): Don't treat characters belonging to
19367 different scripts as constituting a word.
19368
19369 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19370
19371 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
19372
19373 * emacs.c (main): In the case of --unibyte, instead of aborting on
19374 finding non-empty buffer, make it unibyte.
19375
193762008-02-01 Kenichi Handa <handa@m17n.org>
19377
19378 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
19379 to create a fontset.
19380
193812008-02-01 Dave Love <fx@gnu.org>
19382
19383 * character.c (Funibyte_char_to_multibyte): Doc fix.
19384
19385 * xfns.c [HAVE_STDLIB_H]: Fix last change.
19386
193872008-02-01 Kenichi Handa <handa@m17n.org>
19388
19389 * fontset.c (fontset_add): Make the type `int'.
19390 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
19391
19392 * character.c (unibyte_char_to_multibyte)
19393 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
19394 charset_unibyte, not charset_primary.
19395
19396 * charset.h (charset_unibyte): Extern it instead of charset_primary.
19397
19398 * charset.c (charset_unibyte): Rename from charset_primary.
19399 (Funibyte_charset): Rename from Fprimary_charset.
19400 (Fset_unibyte_charset): Rename from Fset_primary_charset.
19401 (syms_of_charset): Adjust for the above changes.
19402
19403 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
19404 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
19405 it->multibyte_p is zero.
19406
19407 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
19408 Delete extern.
19409
194102008-02-01 Kenichi Handa <handa@m17n.org>
19411
19412 * coding.c (Fdefine_coding_system_internal): Fix category setting
19413 for a coding system of type iso-2022.
19414
194152008-02-01 Kenichi Handa <handa@m17n.org>
19416
19417 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
19418
194192008-02-01 Kenichi Handa <handa@m17n.org>
19420
19421 * syntax.c (Vnext_word_boundary_function_table): New variable.
19422 (next-word-boundary-function-table): Declare it as a Lisp variable
19423 in syms_of_syntax.
19424 (scan_words): Call functions in Vnext_word_boundary_function_table
19425 if any.
19426
19427 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
19428
19429 * fontset.c (fs_load_font): If fontp->charset is not negative,
19430 return fontp without setting its members.
19431
194322008-02-01 Dave Love <fx@gnu.org>
19433
19434 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
19435
19436 * m/sparc.h (HAVE_ALLOCA): Delete.
19437
19438 * s/irix6-5.h: Don't include strings.h.
19439 (bcopy, bzero, bcmp): Don't undef.
19440
19441 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
19442
19443 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
19444 (TIOCSIGSEND): Don't test IRIX6.
19445 (bcopy, bzero, bcmp): Define conditionally.
19446
194472008-02-01 Kenichi Handa <handa@m17n.org>
19448
19449 * buffer.c (Qas, Qmake, Qto): New variables.
19450 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
19451 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
19452
19453 * callproc.c (Fcall_process): Don't call insert_1_both directly if
19454 we are inserting a process output into a multibyte buffer.
19455
19456 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
19457 multibyte_char_to_unibyte.
19458
19459 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
19460 by the primary charset, make it eight-bit char.
19461 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
19462
19463 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
19464 (charset_8_bit__control, charset_8_bit_graphic)
19465 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
19466 (define_charset_internal): New function.
19467 (syms_of_charset): Call define_charset_internal for pre-defined
19468 charsets.
19469
19470 * charset.h (charset_8_bit): Extern it.
19471
19472 * coding.c (make_conversion_work_buffer): Adjust for the change
19473 of Fset_buffer_multibyte.
19474 (encode_coding_raw_text): Increment p0 in the loop.
19475
19476 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
19477
19478 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
19479 for the change of Fset_buffer_multibyte.
19480
19481 * fns.c (Fstring_to_multibyte): New function.
19482 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
19483
194842008-02-01 Dave Love <fx@gnu.org>
19485
19486 * xfns.c (x_put_x_image): Declare args.
19487
19488 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
19489 (try_font_list): Declare an arg.
19490
19491 * xdisp.c (message2_nolog, set_message): Declare an arg.
19492
19493 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
19494
19495 * syntax.c (scan_sexps_forward): Declare an arg.
19496
19497 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
19498 Declare an arg.
19499
19500 * lisp.h (Fnew_fontset): Declare.
19501
19502 * keymap.c (push_key_description): Call CHARACTERP correctly.
19503
19504 * fontset.c (fontset_add): Declare args. Call make_number correctly.
19505 (face_for_char): Delete unused vars.
19506 (Fset_fontset_font): Doc fix. Delete unused vars.
19507
19508 * doc.c (Fsubstitute_command_keys): Delete unused vars.
19509
19510 * composite.c (update_compositions): Declare arg.
19511
19512 * cm.c (calccost, cmgoto): Declare args.
19513
19514 * charset.c: Remove `emacs' conditional. Doc fixes.
19515 (map_char_table_for_charset): Declare.
19516
19517 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
19518
19519 * ccl.c: Remove `emacs' conditional.
19520
195212008-02-01 Kenichi Handa <handa@m17n.org>
19522
19523 The following changes are to allow specifying multiple font
19524 patterns for a character range (specified by script or charset).
19525
19526 * Makefile.in (abbrev.o): Depend on syntax.h.
19527 (xfaces.o): Depend on charset.h.
19528
19529 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
19530 SINGLE_BYTE_CHAR_P.
19531
19532 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
19533
19534 * character.h (Vchar_script_table): Extern it.
19535
19536 * character.c (Vscript_alist): Delete.
19537 (Vchar_script_table, Qchar_script_table): New variable.
19538 (syms_of_character): Declare Vchar_script_table as a lisp variable
19539 and initialize it.
19540
19541 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
19542 have property char-table-extra-slots, make no extra slot.
19543
19544 * dispextern.h (struct face): Delete member `charset'.
19545 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
19546 SINGLE_BYTE_CHAR_P.
19547 (choose_face_font, lookup_non_ascii_face, font_name_registry):
19548 Add prototypes.
19549 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
19550 (generate_ascii_font_name): Rename from generate_ascii_font.
19551
19552 * fontset.h (get_font_repertory_func): New prototype.
19553 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
19554 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
19555
19556 * fontset.c (Qprepend, Qappend): New variables.
19557 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
19558 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
19559 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
19560 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
19561 (fontset_ref_and_range, fontset_add, reorder_font_vector)
19562 (load_font_get_repertory): New functions.
19563 (fontset_set): Delete.
19564 (fontset_face): New arg FACE. Return face ID, not face.
19565 Complete re-write to handle new fontset structure. Change caller.
19566 (free_face_fontset): Use ASET istead of AREF (X) = Y.
19567 (face_for_char): Don't call lookup_face.
19568 (make_fontset_for_ascii_face): New arg FACE.
19569 (fs_load_font): New arg CHARSET_ID. Don't check
19570 Vfont_encoding_alist here.
19571 (find_font_encoding): New function.
19572 (list_fontsets): Use STRINGP, not ! NILP.
19573 (accumulate_script_ranges): New function.
19574 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
19575 re-written to handle new fontset structure.
19576 (Ffontset_font): Return a copy of element.
19577 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
19578 docstring of font-encoding-alist.
19579
19580 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
19581 (Fset_fotset_font): Fix arguments to 5.
19582
19583 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
19584
19585 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
19586 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19587 (highlight_trailing_whitespace): Adjust for the change of
19588 lookup_named_face.
19589
19590 * xfaces.c: Include charset.h.
19591 (load_face_font): Delete argument C. Change caller.
19592 (generate_ascii_font_name): Rename from generate_ascii_font.
19593 (font_name_registry): New function.
19594 (cache_face): Store ascii faces before non-ascii faces in buckets.
19595 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
19596 Lookup only ascii faces.
19597 (lookup_non_ascii_face): New function.
19598 (lookup_named_face): Delete argument C. Change caller.
19599 (lookup_derived_face): Delete argument C. Change caller.
19600 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
19601 a string, just call font_list with it.
19602 (choose_face_font): Delete arguments FACE and C. New arg
19603 FONT_SPEC. Change caller.
19604 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
19605 Change caller.
19606 (realize_non_ascii_face): New function.
19607 (realize_x_face): Call load_face_font here.
19608 (realize_tty_face): Delete argument C. Change caller.
19609 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
19610 get a face ID.
19611 (dump_realized_face): Don't print charset of FACE.
19612
19613 * xfns.c (x_set_font): Always call x_new_fontset and
19614 store_frame_parameter.
19615 (Fx_create_frame): Call x_new_fontset, not x_new_font.
19616 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
19617
19618 * xterm.h (x_get_font_repertory): Extern it.
19619
19620 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
19621 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
19622 it->multibyte_p is zero.
19623 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19624 (x_new_fontset): If FONTSETNAME doesn't match any existing
19625 fontsets, create a new one.
19626 (x_get_font_repertory): New function.
19627
196282008-02-01 Kenichi Handa <handa@m17n.org>
19629
19630 * coding.c (Ffind_coding_systems_region_internal): Detect an
19631 ASCII only string correctly.
19632
19633 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
19634 version is 0.
19635
196362008-02-01 Kenichi Handa <handa@m17n.org>
19637
19638 * lread.c: Include "coding.h".
19639 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
19640 (load_each_byte, unread_char): New variables.
19641 (readchar_backlog): Delete.
19642 (readchar): Return a character unless load_each_byte is nonzero.
19643 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
19644 cons. If unread_char is not -1, simply return it.
19645 (unreadchar): Handle the case that readcharfun is
19646 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
19647 (read_multibyte): Delete.
19648 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
19649 (read_emacs_mule_char): New functions.
19650 (Fload): Even if the file doesn't have the extension ".elc", if
19651 safe_to_load_p returns a positive version number, assume that the
19652 file contains bytecompiled code. If the version is less than 22,
19653 load the file while decoding multibyte sequences by emacs-mule.
19654 (readevalloop): Don't use readchar_backlog.
19655 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
19656 (Fread_from_string): Pay attention to the case that STREAM is a cons.
19657 (read_escape): Delete the arg BYTEREP.
19658 (read1): Set load_each_byte to 1 temporarily while handling
19659 #@NUMBER. Don't call read_multibyte.
19660 (read_vector): Call Fread with a cons. If readcharfun is
19661 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
19662 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
19663 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
19664 and Qload_force_doc_strings.
19665
196662008-02-01 Kenichi Handa <handa@m17n.org>
19667
19668 * xdisp.c (face_before_or_after_it_pos): Call
19669 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
19670
196712008-02-01 Kenichi Handa <handa@m17n.org>
19672
19673 * character.h (TRAILING_CODE_P): New macro.
19674 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
19675 (string_char_with_unification): Fix prototype.
19676 (Vscript_alist): Extern it.
19677
19678 * character.c (Vscript_alist): New variable.
19679 (string_char_with_unification, str_as_unibyte)
19680 (string_escape_byte8): Add `const' to local variables.
19681 (syms_of_character): Declare script-alist as a Lisp variable.
19682
19683 * charset.h (Vcharset_ordered_list): Extern it.
19684 (charset_ordered_list_tick): Extern it.
19685 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
19686 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
19687 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
19688 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
19689 (Funify_charset): Adjust for the change of Funify_charset.
19690
19691 * charset.c (charset_ordered_list_tick): New variable.
19692 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
19693 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
19694 deunify intead of unify a charset.
19695 (string_xstring_p): Add `const' to local variables.
19696 (find_charsets_in_text): Add `const' to arguments and local variables.
19697 (encode_char): Adjust for the change of Funify_charset. Fix
19698 detecting of invalid code.
19699 (Fset_charset_priority): Increment charset_ordered_list_tick.
19700 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
19701 and TO_CODE.
19702
19703 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
19704 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
19705 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
19706 (decode_coding_ccl, consume_chars)
19707 (Ffind_coding_systems_region_internal)
19708 (Fcheck_coding_systems_region): Add `const' to local variables.
19709
19710 * print.c (print_object): Use octal form for printing the
19711 contents of a bool vector.
19712
197132008-02-01 Dave Love <fx@gnu.org>
19714
19715 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
19716 <version == 20>: Refuse to load.
19717
197182008-02-01 Dave Love <fx@gnu.org>
19719
19720 * fns.c: Move coding.h.
19721 (Qcodeset, Qdays, Qmonths): New.
19722 (concat): Use CHARACTERP instead of INTEGERP.
19723 (Flocale_codeset): Delete.
19724 (Flanginfo): New function.
19725 (syms_of_fns): Change accordingly.
19726
19727 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
19728
197292008-02-01 Dave Love <fx@gnu.org>
19730
19731 * casetab.c (init_casetab_once, init_casetab_once): Fix
19732 CHAR_TABLE_SET call.
19733
19734 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
19735
19736 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
19737
19738 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
19739 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
19740 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
19741
19742 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
19743
19744 * coding.c (ENCODE_DESIGNATION, decode_eol)
19745 (make_conversion_work_buffer, code_conversion_restore)
19746 (Fdefine_coding_system_internal): Convert Lisp types.
19747 (code_conversion_restore): Use EQ, not ==.
19748 (Fencode_coding_string): Fix code_convert_string call.
19749
19750 * coding.h (code_convert_region): Fix prototype.
19751
19752 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
19753
19754 * fontset.c (fontset_ref, fontset_set, fs_load_font)
19755 (Ffontset_info): Convert Lisp types.
19756
19757 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
19758
19759 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
19760
19761 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
19762
19763 * chartab.c: Include "...h", not <...h> in some cases.
19764
19765 * callproc.c (Fcall_process): Remove unused variables.
19766
197672008-02-01 Dave Love <fx@gnu.org>
19768
19769 * coding.c (Fset_coding_system_priority): Allow null arg list.
19770
197712008-02-01 Dave Love <fx@gnu.org>
19772
19773 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
19774 (Fself_insert_and_exit): Use CHARACTERP.
19775
19776 * callproc.c (Fcall_process): Remove unused vars.
19777
19778 * xterm.c (XTread_socket): Add extra dead keysyms.
19779
19780 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
19781
19782 * dispextern.h: Remove prototypes for redraw_frame,
19783 redraw_garbaged_frames.
19784
19785 * cmds.c (Fself_insert_command): Use CHARACTERP.
19786
19787 * chartab.c (make_sub_char_table): Remove unused var.
19788 (Fset_char_table_default, Fmap_char_table): Doc fix.
19789
19790 * keymap.c (access_keymap): Remove generic char code.
19791 (push_key_description): Use CHARACTERP.
19792
197932008-02-01 Dave Love <fx@gnu.org>
19794
19795 * charset.c: Doc fixes.
19796 (Funify_charset): Extra checking.
19797
197982008-02-01 Dave Love <fx@gnu.org>
19799
19800 * lread.c: Remove some unused variables.
19801 (safe_to_load_p): If safe, return the magic number version byte.
19802 (Fload): Maybe use load-with-code-conversion.
19803
198042008-02-01 Kenichi Handa <handa@m17n.org>
19805
19806 * category.c (Fmodify_category_entry): Don't modify the contents
19807 of category_set for characters out of the range. Avoid
19808 unnecessary modification.
19809
19810 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
19811 Vchar_unify_table. The default value of the table is now nil.
19812
19813 * character.c (syms_of_character): Setup Vchar_width_table for
19814 eight-bit-control and raw-byte chars.
19815
19816 * charset.h (enum define_charset_arg_index): Delete
19817 charset_arg_parents and add charset_arg_subset and
19818 charset_arg_superset.
19819 (enum charset_attr_index): Delete charset_parents and add
19820 charset_subset and charset_superset.
19821 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
19822 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
19823 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
19824 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
19825 (CHARSET_SUPERSET): New macros.
19826 (charset_work): Extern it.
19827 (ENCODE_CHAR): Use charset_work.
19828 (CHAR_CHARSET_P): Adjust for the change of encoder format.
19829 (map_charset_chars): Extern it.
19830
19831 * charset.c (load_charset_map): Set the default value of encoder
19832 and deunifier char-tables to nil.
19833 (map_charset_chars): Change argument. Change callers. Use
19834 map_char_table_for_charset instead of map_char_table.
19835 (Fmap_charset_chars): New optional args from_code and to_code.
19836 (Fdefine_charset_internal): Adjust for the change of
19837 `define-charset' (:parents -> :subset or :superset).
19838 (charset_work): New variable.
19839 (encode_char, syms_of_charset): Adjust for the change of
19840 Fdefine_charset_internal.
19841 (Ffind_charset_string): Setup the vector `charsets' correctly.
19842
19843 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
19844 the previous change.
19845 (char_table_ref_and_range): Adjust for the above change.
19846 (map_sub_char_table_for_charset): New function.
19847 (map_char_table_for_charset): New function.
19848
19849 * keymap.c (describe_vector): Handle a char-table directly here.
19850 (describe_char_table): Delete.
19851
19852 * lisp.h (map_charset_chars): Delete.
19853
198542008-02-01 Dave Love <fx@gnu.org>
19855
19856 * fns.c (count_combining): Comment out (unused).
19857 (Flocale_codeset): New.
19858 (syms_of_fns): Defsubr it.
19859
19860 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
19861 (size_t): Remove.
19862
198632008-02-01 Dave Love <fx@gnu.org>
19864
19865 * Makefile.in (chartab.o): Depend on charset.h.
19866
198672008-02-01 Kenichi Handa <handa@m17n.org>
19868
19869 * character.c (syms_of_character): Set the default value of
19870 Vprintable_chars to Qnil.
19871
198722008-02-01 Dave Love <fx@gnu.org>
19873
19874 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
19875
198762008-02-01 Kenichi Handa <handa@m17n.org>
19877
19878 * charset.c (load_charset_map): Handle the case that from < to
19879 correctly.
19880
19881 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
19882 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
19883 Pay attention to raw-8-bit chars.
19884
198852008-02-01 Kenichi Handa <handa@m17n.org>
19886
19887 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
19888 It is not bytecompiled now.
19889
19890 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
19891 (charset_jisx0208): New variables.
19892 (Fdefine_charset_internal): Setup them if appropriate.
19893 (init_charset_once): Initialize them to -1.
19894
19895 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
19896 (charset_jisx0208): Extern them.
19897
19898 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
19899 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
19900 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
19901 (setup_iso_safe_charsets): Fix arguments to Fassq.
19902 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
19903 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
19904 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
19905 (encode_coding_iso_2022): Change the 1st arg to
19906 ENCODE_ISO_CHARACTER to a variable.
19907
199082008-02-01 Kenichi Handa <handa@m17n.org>
19909
19910 * charset.h (enum define_charset_arg_index): New enums
19911 charset_arg_min_code and charset_arg_max_code.
19912 (struct charset): New member char_index_offset.
19913
19914 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
19915 Take charset->char_index_offset into account.
19916 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
19917 args[charset_arg_max_code]. Setup charset.char_index_offset.
19918 (syms_of_charset): Fix args to Fdefine_charset_internal.
19919
199202008-02-01 Dave Love <fx@gnu.org>
19921
19922 * coding.c (decode_coding_utf_8): Reject overlong sequences.
19923
199242008-02-01 Dave Love <fx@gnu.org>
19925
19926 * coding.c: Doc fixes.
19927 (Fcoding_system_aliases): Fix return value.
19928 (Qmac): Remove (duplicated) definition.
19929
199302008-02-01 Dave Love <fx@gnu.org>
19931
362654a6
JB
19932 * charset.c (Fcharset_priority_list, Fset_charset_priority):
19933 New functions.
aac0c6e3
MR
19934
19935 * character.c (Fstring): Doc fix.
19936
19937 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
19938
362654a6 19939 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
19940 (font-encoding-alist): Doc fix.
19941
199422008-02-01 Dave Love <fx@gnu.org>
19943
19944 * term.c (costs_set): Declare static, non-initialized for pcc.
19945 (encode_terminal_code): Remove unused var.
19946
19947 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
19948 for K&R.
19949
19950 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
19951
19952 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
19953 (suffixes): Move out of make_subsidiaries for K&R.
19954
19955 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
19956
19957 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
19958
199592008-02-01 Dave Love <fx@gnu.org>
19960
19961 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
19962
19963 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
19964
199652008-02-01 Yong Lu <lyongu@asia-infonet.com>
19966
19967 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
19968
19969 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
19970
199712008-02-01 Kenichi Handa <handa@m17n.org>
19972
19973 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
19974 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
19975
199762008-02-01 Kenichi Handa <handa@m17n.org>
19977
19978 * coding.c (decode_coding_charset): Adjust for the change of
19979 Fdefine_coding_system_internal.
19980 (Fdefine_coding_system_internal): For a coding system of
19981 `charset' type, store a list of charset IDs in
19982 `charset_attr_charset_valids' element of coding attributes.
19983
199842008-02-01 Kenichi Handa <handa@m17n.org>
19985
19986 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
19987 (emacs_mule_char): New arg src. Delete arg `composition'. Change
19988 caller. Handle 2-byte and 3-byte charsets correctly.
19989 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
19990 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
19991 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
19992 (DECODE_EMACS_MULE_21_COMPOSITION): Call
19993 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
19994 sequence.
19995 (decode_coding_emacs_mule): Handle composition correctly. Rewind
19996 `src' and `consumed_chars' correctly before calling emacs_mule_char.
19997 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
19998 and alt&rule composition.
19999 (decode_coding_iso_2022): Handle composition correctly.
20000 (init_coding_once): Setup emacs_mule_bytes for private charsets.
20001
20002 * charset.c (Fdefine_charset_internal): Fix bug for the case of
20003 re-defining a charset. If the charset has :emacs-mule-id, setup
20004 emacs_mule_bytes.
20005 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
20006
200072008-02-01 Kenichi Handa <handa@m17n.org>
20008
20009 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
20010 (encode_coding_big5, encode_coding_charset): If coding requires safe
20011 encoding, produce a character specified by
20012 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
20013
200142008-02-01 Dave Love <fx@gnu.org>
20015
20016 * xterm.c (XSetIMValues): Declare.
20017
20018 * process.c: Conditionally include sys/wait.h, pty.h.
20019
20020 * print.c (print_object): Fix print format for 64-bit systems.
20021
20022 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
20023
20024 * buffer.c (emacs_strerror): Declare.
20025
20026 * fontset.c (Fclear_face_cache): Declare.
20027 (accumulate_font_info): Comment-out (unused).
20028 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
20029 variables.
20030
20031 * character.h (string_escape_byte8): Declare.
20032
20033 * charset.c (load_charset_map, load_charset_map_from_file): Remove
20034 unused vars.
20035 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
20036 (Fmap_charset_chars): Doc fix.
20037
20038 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
20039 (Fset_coding_system_priority, Fset_coding_system_priority)
20040 (Fdefine_coding_system_internal): Doc fix.
20041
200422008-02-01 Dave Love <fx@gnu.org>
20043
20044 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
20045
200462008-02-01 Kenichi Handa <handa@m17n.org>
20047
20048 * character.c (string_escape_byte8): Make multibyte string with
20049 correct size.
20050
20051 * charset.c (Fmake_char): Delete unnecessary code.
20052
200532008-02-01 Kenichi Handa <handa@m17n.org>
20054
20055 * xfns.c (x_encode_text): Allocate coding.destination here, and
20056 call encode_coding_object with dst_object Qnil.
20057
20058 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
20059 multibyte form correctly.
20060
20061 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
20062 against Vfont_encoding_alist.
20063
20064 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
20065 handling of charset list.
20066 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
20067 (decode_coding_object): Move point to coding->dst_pos before
20068 calling post-read-conversion function.
20069 (encode_coding_object): Give correct arguments to
20070 pre-write-conversion. Ignore the return value of
20071 pre-write-conversion function. Pay attention to the case that
20072 pre-write-conversion changes the current buffer. If dst_object is
20073 Qt, even if coding->src_bytes is zero, allocate at least one byte
20074 to coding->destination.
20075
20076 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
20077
20078 * charset.c (Fmake_char): Make it more backward compatible.
20079 (Fmap_charset_chars): Fix docstring.
20080
200812008-02-01 Dave Love <fx@gnu.org>
20082
20083 * coding.c: Doc fixes.
20084 (Fdefine_coding_system_alias): Use names, not symbols, in
20085 coding-system-alist.
20086
200872008-02-01 Kenichi Handa <handa@m17n.org>
20088
20089 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
20090 of calling free_realized_face.
20091
200922008-02-01 Yong Lu <lyongu@asia-infonet.com>
20093
20094 * charset.c (read_hex): Don't treat SPC as a comment starter.
20095 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
20096 (Fdecode_char): Fix typo.
20097
200982008-02-01 Kenichi Handa <handa@m17n.org>
20099
20100 * charset.h (struct charset): New member `code_space_mask'.
20101
20102 * coding.c (coding_set_source): Delete the local variable beg_byte.
20103 (encode_coding_charset, Fdefine_coding_system_internal):
20104 Delete the local variable charset.
20105 (Fdefine_coding_system_internal): Setup
20106 attrs[coding_attr_charset_valids] correctly.
20107
20108 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
20109 member to check if CODE is valid or not.
20110 (Fdefine_charset_internal): Initialize `code_space_mask' member.
20111 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
20112 is within the range of charset->min_code and carset->max_code.
20113
201142008-02-01 Dave Love <fx@gnu.org>
20115
20116 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
20117
20118 * dispextern.h (generate_ascii_font): Fix return type.
20119
20120 * xfaces.c (generate_ascii_font): Fix arg declaration.
20121
20122 * coding.c (coding_inherit_eol_type)
20123 (Fset_terminal_coding_system_internal)
20124 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
20125
201262008-02-01 Kenichi Handa <handa@m17n.org>
20127
20128 * coding.c (decode_coding_charset, encode_coding_charset): Handle
20129 multiple charsets correctly.
20130
201312008-02-01 Kenichi Handa <handa@m17n.org>
20132
20133 * search.c (boyer_moore): Fix handling of multibyte character
20134 translation.
20135
20136 * xdisp.c (display_mode_element): When the variable `elt' is
20137 changed, update `this' and `lisp_string'.
20138
201392008-02-01 Kenichi Handa <handa@m17n.org>
20140
20141 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
20142
20143 * callproc.c (Fcall_process): Be sure to give the current buffer
20144 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
20145
20146 * charset.c (struct charset_map_entries): New struct.
20147 (load_charset_map): Rename from parse_charset_map. New args
20148 entries and n_entries. Change caller.
20149 (load_charset_map_from_file): Rename from load_charset_map.
20150 Change caller. New arg control_flag. Call load_charset_map at
20151 the tail.
20152 (load_charset_map_from_vector): New function.
20153 (Fdefine_charset_internal): Setup charset.compact_codes_p.
20154 (encode_char): If the charset is compact, change a character index
20155 to a code point.
20156
20157 * coding.c (coding_alloc_by_making_gap): Check the case that the
20158 source and destination are the same correctly.
20159 (decode_coding_raw_text): Set coding->consumed_char and
20160 coding->consumed to 0.
20161 (produce_chars): If coding->chars_at_source is nonzero, update
20162 coding->consumed_char and coding->consumed before calling
20163 alloc_destination.
20164 (Fdefine_coding_system_alias): Register ALIAS in
20165 Vcoding_system_alist.
20166 (syms_of_coding): Define `no-conversion' coding system at the tail.
20167
20168 * fileio.c (Finsert_file_contents): Set coding_system instead of
20169 val. If the current buffer is multibyte, always call
20170 decode_coding_gap.
20171
20172 * xfaces.c (try_font_list): Give higher priority to fontset's
20173 family than face's family.
20174
201752008-02-01 Kenichi Handa <handa@m17n.org>
20176
20177 * callproc.c (Fcall_process): Be sure to give the current buffer
20178 to decode_coding_c_string.
20179
20180 * xfaces.c (try_font_list): Give a family specified in a fontset
20181 higher priority than a family specified in a face.
20182
201832008-02-01 Kenichi Handa <handa@m17n.org>
20184
20185 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
20186 Fix arguments to insert_from_buffer.
20187
20188 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
20189
201902008-02-01 Kenichi Handa <handa@m17n.org>
20191
20192 * coding.c (produce_chars): Set the variable `multibytep' correctly.
20193 (decode_coding_gap): Set coding->dst_multibyte correctly.
20194
201952008-02-01 Kenichi Handa <handa@m17n.org>
20196
20197 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
20198 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
20199 (encode_coding_utf_16): Substitute coding->default_char for
20200 non-Unicode characters.
20201 (decode_coding): Don't call record_insert here.
20202 (setup_coding_system): Initialize `surrogate' of
20203 coding->spec.utf_16 to 0.
20204 (EMIT_ONE_BYTE): Fix for multibyte case.
20205
20206 * insdel.c (insert_from_gap): Call record_insert.
20207
202082008-02-01 Kenichi Handa <handa@m17n.org>
20209
20210 * casefiddle.c (casify_region): Fix multibyte case.
20211
20212 * character.c (c_string_width): Add return type `int'.
20213 (char_string_with_unification): Delete arg ADVANCED.
20214
20215 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
20216 (CHAR_STRING): Adjust for the change of char_string_with_unification.
20217 (CHAR_STRING_ADVANCE): Make it do-while statement.
20218
20219 * chartab.c (sub_char_table_set_range): Optimize for the case
20220 DEPTH == 3. Add workaround code for a GCC optimization bug.
20221
20222 * charset.c (parse_charset_map): Remove an unused variable.
20223
20224 * coding.c: Delete unused variables.
20225
20226 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
20227 earlier. If inserted is zero and the coding system doesn't
20228 require flushing, don't call decode_coding_gap.
20229
20230 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
20231
202322008-02-01 Kenichi Handa <handa@m17n.org>
20233
20234 The following changes are for using Unicode as an internal
20235 character model, and use UTF-8 format for buffer/string
20236 representation.
20237
20238 * .gdbinit (xchartable): Adjust for the change of char table structure.
20239 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
20240
20241 * Makefile.in (obj): Add character.o and chartab.o.
20242 (lisp, shortlisp): Remove utf-8.elc.
20243 (*.o): For many files, change dependency on charset.h to
20244 character.h, and add dependency on character.h.
20245 (character.o, chartab.o): New targets.
20246
20247 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
20248 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
20249 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
20250 of "charset.h".
20251
20252 * dired.c, filelock.c: Include "character.h".
20253
20254 * alloc.c: Include "character.h" instead of "charset.h".
20255 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
20256 (syms_of_alloc): Remove defsubr for Smake_char_table.
20257
20258 * buffer.c: Include "character.h" instead of "charset.h", don't
20259 include "coding.h".
20260 (Fset_buffer_multibyte): Adjust for UTF-8.
20261
20262 * buffer.h: EXFUN Fbuffer_live_p.
20263
20264 * callproc.c: Include "character.h" instead of "charset.h".
20265 (Fcall_process): Big change for the new code-conversion APIs.
20266
20267 * casetab.c: Include "character.h" instead of "charset.h".
20268 (set_canon, set_identity, shuffle): Adjust for the new
20269 map_char_table spec.
20270 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
20271 accessing the char table structure.
20272
20273 * chartab.c: New file that implements char table.
20274
20275 * category.c: Include "character.h".
20276 (copy_category_entry): New function.
20277 (copy_category_table): Call map_char_table and copy_category_entry.
20278 (Fmake_category_table): Initialize all top-level slots.
20279 (char_category_set): New function.
20280 (modify_lower_category_set): Delete.
20281 (Fmodify_category_entry): Call char_table_ref_and_range.
20282
20283 * category.h (CATEGORY_SET): Just call char_category_set.
20284
20285 * ccl.c: Include "character.h".
20286 (Qccl, Qcclp): New variables.
20287 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
20288 it's less than 256.
20289 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
20290 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
20291 and DST type.
20292 (ccl_driver): Change types of argument, adjust code accordingly.
20293 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
20294 ccl_driver.
20295 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
20296
20297 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
20298 New members src_multibyte, dst_multibyte, consumed, and produced.
20299 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
20300 (CODING_SPEC_CCL_PROGRAM): New macro.
20301 (ccl_driver): Update prototype.
20302 (Qccl, Qcclp, Fccl_program_p): Extern them.
20303 (CHECK_CCL_PROGRAM): New macro.
20304
20305 * character.c, character.h, chartab.c: New files.
20306
20307 * charset.c: Mostly re-written. Move character and multibyte sequence
20308 handling codes to character.c.
20309
20310 * charset.h: Mostly re-written. Move character and multibyte sequence
20311 handling codes to character.h.
20312
20313 * coding.c, coding.h: Mostly re-written.
20314
20315 * composite.c: Include "character.h" instead of "charset.h".
20316 (CHAR_WIDTH): Move to character.h.
20317 (HASH_KEY, HASH_VALUE): Delete.
20318
20319 * composite.h (enum composition_method): Change order of enumeration
20320 symbols.
20321
20322 * data.c: Include "character.h" instead of "charset.h".
20323 (Faref): Call CHAR_TABLE_REF for a char table.
20324 (Faset): Call CHAR_TABLE_SET for a char table.
20325
20326 * dispextern.h (free_realized_face, check_face_attribytes)
20327 (generate_ascii_font): Extern them.
20328 (free_realized_multibyte_face): Delete extern.
20329
20330 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
20331 table structure.
20332
20333 * editfns.c: Include "character.h" instead of "charset.h".
20334 (Fchar_to_string): Always call CHAR_STRING.
20335
20336 * emacs.c (main): Call init_charset_once, init_charset,
20337 syms_of_chartab, and syms_of_character.
20338
20339 * fileio.c: Include "character.h" instead of "charset.h".
20340 (Finsert_file_contents): Big change for the new code-conversion API.
20341 (choose_write_coding_system, Fwrite_region): Likewise.
20342 (build_annotations_2): Delete.
20343 (e_write): Big change for the new code-conversion API.
20344
20345 * fns.c: Include "character.h" instead of "charset.h".
20346 (copy_sub_char_table): Move to chartab.c.
20347 (Fcopy_sequence): Call copy_char_table for a char table.
20348 (concat): Delete codes calling count_multibyte.
20349 (string_char_to_byte, string_byte_to_char): Adjust for the new
20350 multibyte form.
20351 (internal_equal): Adjust for the change of char table structure.
20352 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
20353 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
20354 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
20355 (char_table_translate, optimize_sub_char_table)
20356 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
20357 chartab.c.
20358 (char_table_ref_and_index): Delete.
20359 (HASH_KEY, HASH_VALUE): Move to lisp.h.
20360 (Fmd5): Call preferred_coding_system instead of accessing
20361 Vcoding_category_list. Adjust for the new code-conversion API.
20362 (syms_of_fns): Move defsubr for char table related functions to
20363 chartab.c.
20364
20365 * fontset.c: Mostly re-written.
20366
20367 * fontset.h (struct font_info): Change type of the member encoding_type.
20368 (enum FONT_SPEC_INDEX): New enum.
20369 (fontset_font_pattern, fs_load_font): Update prototype.
20370 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
20371
20372 * indent.c: Include "character.h" instead of "charset.h".
20373 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
20374
20375 * insdel.c: Include "character.h" instead of "charset.h".
20376 (copy_text): Don't refer to Vnonascii_translation_table.
20377 (insert_from_gap): New function.
20378
20379 * keyboard.c: Include "character.h" instead of "charset.h".
20380 (command_loop_1): Never call direct_output_forward_char before
20381 a non-ASCII character.
20382 (read_char): If Vkeyboard_translate_table is a char table, always
20383 translate a character.
20384
20385 * keymap.c: Include "character.h".
20386 (store_in_keymap): Handle the case that IDX is a cons.
20387 (Fdefine_key): Handle the case that KEY is a cons and the car part
20388 is also a cons (range).
20389 (push_key_description): Adjust for the new character code.
20390 (describe_vector): Call describe_char_table for a char table.
20391 (describe_char_table): New function.
20392
20393 * keymap.h (describe_char_table): Extern it.
20394
20395 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
20396 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
20397 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
20398 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
20399 Delete.
20400 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
20401 structure.
20402 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
20403 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
20404 (CHARTAB_SIZE_BITS_3): New macros.
20405 (chartab_size): Extern it.
20406 (struct Lisp_Char_Table): Re-design.
20407 (struct Lisp_Sub_Char_Table): New structure.
20408 (HASH_KEY, HASH_VALUE): Move from fns.c.
20409 (CHARACTERBITS): Define as 22.
20410 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
20411 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
20412 (GC_SUB_CHAR_TABLE_P): New macro.
20413 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
20414 (code_convert_string_norecord): Deleted extern.
20415 (init_character_once, syms_of_character, init_charset)
20416 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
20417
20418 * lread.c: Include "character.h".
20419 (read_multibyte): New arg NBYTES.
20420 (read_escape): Change the meaning of returned *BYTEREP.
20421 (to_multibyte): Delete.
20422 (read1): Adjust the handling of char table and string.
20423
20424 * print.c: Include "character.h" instead of "charset.h".
20425 (print_string): Convert 8-bit raw bytes to octal form by
20426 string_escape_byte8.
20427 (print_object): Adjust for the new multibyte form. Print 8-bit
20428 raw bytes always in octal form. Handle sub char table correctly.
20429
20430 * process.c: Include "character.h" instead of "charset.h".
20431 (read_process_output, send_process): Adjust for the new
20432 code-conversion API.
20433
20434 * puresize.h (BASE_PURESIZE): Increase.
20435
20436 * regex.c: Include "character.h" instead of "charset.h".
20437 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
20438 (regex_compile): Accept a range whose starting and ending
20439 character have different leading bytes.
20440 (analyse_first): Adjust for the above change.
20441
20442 * search.c: Include "character.h" instead of "charset.h".
20443 (search_buffer, boyer_moore): Adjust for the new multibyte form.
20444 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
20445
20446 * syntax.c: Include "character.h" instead of "charset.h".
20447 (syntax_parent_lookup): Delete.
20448 (Fmodify_syntax_entry): Accept a cons as CHAR.
20449 (skip_chars): Adjust for the new multibyte form.
20450 (init_syntax_once): Call char_table_set_range instead of directly
20451 accessing the structure of a char table.
20452
20453 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
20454 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
20455 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
20456 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
20457
20458 * term.c: Include "buffer.h" and "character.h".
20459 (encode_terminal_code, write_glyphs): Adjust for the new
20460 code-conversion API.
20461 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
20462
20463 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
20464
20465 * xdisp.c: Include "character.h".
20466 (get_next_display_element): Adjust for the new multibyte form.
20467 (disp_char_vector): Adjust for the new char table structure.
20468 (decode_mode_spec_coding): Adjust for the new structure of
20469 coding system.
20470 (decode_mode_spec): Adjust for the new code-conversion API.
20471
20472 * xfaces.c: Include "character.h" instead of "charset.h".
20473 (load_face_font): Adjust for the change of choose_face_font and
20474 FS_LOAD_FONT.
20475 (generate_ascii_font): New function.
20476 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
20477 (set_font_frame_param): Adjust for the change of choose_face_font.
20478 (free_realized_face): Make it public.
20479 (free_realized_faces_for_fontset): Rename from
20480 free_realized_multibyte_face. Free also faces realized for ASCII.
20481 (choose_face_font): Change arguments. Adjust for the change of
20482 fontset_font_pattern and FS_LOAD_FONT.
20483
20484 * xfns.c: Include "character.h".
20485 (x_encode_text): Adjust for the new code-conversion API.
20486
20487 * xselect.c: Don't include "charset.h".
20488 (selection_data_to_lisp_data): Adjust for the new code conversion API.
20489
20490 * xterm.c: Include "character.h".
20491 (x_encode_char): New argument CHARSET. Change caller.
20492 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
20493 Call ENCODE_CHAR instead of SPLIT_CHAR.
20494 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
20495 CHAR_WIDTH instead of CHARSET_WIDTH.
20496 (XTread_socket): Adjust for the new code-conversion API.
20497 (x_new_font): Adjust for the change of FS_LOAD_FONT.
20498 (x_load_font): Adjust for the change of struct font.
20499
205002008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
20501
20502 * xfaces.c (face_at_buffer_position): Remove unused vars.
20503
205042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20505
20506 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
20507 Fix overflow checking.
20508
205092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20510
20511 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
20512 Cancel previous change.
20513
205142008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
20515
20516 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
20517 ccl->eight_bit_control. Fix check for buffer overflow.
20518 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
20519 (ccl_driver): Initialize extra_bytes to 0.
20520
205212008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
20522
20523 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
20524 return it ORed with ctrl_modifier.
20525
205262008-01-29 Miles Bader <miles@gnu.org>
20527
20528 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
20529
205302008-01-28 Jason Rumney <jasonr@gnu.org>
20531
20532 * w32.c (stat): Don't double check for networked drive.
20533
205342008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
20535
20536 * window.c (run_window_configuration_change_hook): New function.
20537 Code extracted from set_window_buffer. Set the selected frame.
20538 (set_window_buffer): Use it.
20539 * window.h (run_window_configuration_change_hook): Declare.
20540 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
20541
20542 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
20543
205442008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
20545
20546 * Makefile.in: Remove references to unused macros.
20547
205482008-01-26 Eli Zaretskii <eliz@gnu.org>
20549
20550 * w32.c (g_b_init_get_sid_sub_authority)
20551 (g_b_init_get_sid_sub_authority_count): New static variables.
20552 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
20553 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
20554 (init_user_info): Use them to retrieve uid and gid.
20555 Use 500/513, the Windows defaults, as Administrator's uid/gid.
20556 (fstat): Use pw_uid and pw_gid from the_passwd structure for
20557 st_uid and st_gid of the file.
20558
205592008-01-26 Jason Rumney <jasonr@gnu.org>
20560
20561 * w32.c (logon_network_drive): New function.
20562 (stat): Use it.
20563
205642008-01-26 Chong Yidong <cyd@stupidchicken.com>
20565
20566 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
20567 invisible text covered with an ellipsis.
20568
205692008-01-25 Richard Stallman <rms@gnu.org>
20570
20571 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
20572 jump back to beginning. Move some other initializations after that.
20573 (Qwindow_text_change_functions, Vwindow_text_change_functions):
20574 New variables.
20575 (syms_of_xdisp): Init them.
20576
20577 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
20578
20579 * buffer.c (reset_buffer_local_variables):
20580 Implement `permanent-local-hook'.
20581 (Qpermanent_local_hook): New variable.
20582 (syms_of_buffer): Init and staticpro it.
20583
205842008-01-25 Michael Albinus <michael.albinus@gmx.de>
20585
20586 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
20587
205882008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
20589
20590 * fns.c (Fclrhash): Return TABLE.
20591
205922008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20593
20594 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
20595 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
20596 is set even without positional changes.
20597 (x_scroll_bar_clear): Set bar->redraw_needed_p.
20598
20599 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
20600
206012008-01-23 Jason Rumney <jasonr@gnu.org>
20602
20603 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
20604
20605 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
20606 the unicode range available in MULE by locale-coding-system.
20607 Improve dbcs lead byte detection. Set event timestamp and modifiers
20608 earlier.
20609
206102008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20611
20612 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
20613 [MAC_OSX] (init_mac_osx_environment): Initialize it.
20614 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
20615 when used on child processes.
20616
206172008-01-21 Michael Albinus <michael.albinus@gmx.de>
20618
20619 * dbusbind.c (Fdbus_method_return_internal): Rename from
20620 Fdbus_method_return.
20621 (Fdbus_unregister_object): Move to dbus.el.
20622 (Fdbus_call_method, Fdbus_method_return_internal)
20623 (Fdbus_send_signal): Improve debug messages.
20624
206252008-01-20 Martin Rudalics <rudalics@gmx.at>
20626
20627 * undo.c (undo_inhibit_record_point): New variable.
20628 (syms_of_undo): Initialize it.
20629 (record_point): Don't record point when undo_inhibit_record_point
20630 is set.
20631
206322008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
20633
20634 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
20635
20636 * xdisp.c (Qauto_hscroll_mode): New var.
20637 (syms_of_xdisp): Initialize it.
20638 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
20639 window's buffer.
20640 (hscroll_windows): Don't check automatic_hscrolling_p here.
20641
20642 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
20643 vscroll if we're setting window-buffer to the value it already has.
20644
206452008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
20646
20647 * m/intel386.h: Remove references to XENIX.
20648
206492008-01-17 Andreas Schwab <schwab@suse.de>
20650
20651 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
20652 instead of HAVE_X86_64_LIB64_DIR.
20653 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
20654
206552008-01-17 Glenn Morris <rgm@gnu.org>
20656
20657 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
20658 to HAVE_X86_64_LIB64_DIR.
20659
206602008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
20661
20662 * s/irix3-3.h:
20663 * s/irix4-0.h:
20664 * s/386-ix.h:
20665 * s/domain.h:
20666 * s/hpux9-x11r4.h:
20667 * s/hpux9shxr4.h: Remove files for systems no longer supported.
20668
20669 * sysdep.c: Remove code containing references to symbols defined
20670 by unsupported systems.
20671
206722008-01-16 Glenn Morris <rgm@gnu.org>
20673
20674 * coding.c (select-safe-coding-system-function): Doc fix.
20675
206762008-01-15 Glenn Morris <rgm@gnu.org>
20677
20678 * config.in: Revert 2008-01-13 change: this is a generated file.
20679
206802008-01-13 Tom Tromey <tromey@redhat.com>
20681
20682 * lisp.h: Fix typo.
20683
206842008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
20685
20686 * m/sequent-ptx.h:
20687 * m/sequent.h:
20688 * s/ptx.h:
20689 * s/ptx4-2.h:
20690 * s/ptx4.h: Remove files for systems no longer supported.
20691
20692 * callproc.c (Fcall_process): Fix previous change.
20693
206942008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
20695
20696 * unexsunos4.c: Remove file, system not supported anymore.
20697
20698 * m/mips.h:
20699 * m/intel386.h:
20700 * callproc.c:
20701 * config.in:
20702 * ecrt0.c:
20703 * emacs.c:
20704 * fileio.c:
20705 * frame.c:
20706 * getpagesize.h:
20707 * keyboard.c:
20708 * lread.c:
20709 * process.c:
20710 * puresize.h:
20711 * sysdep.c:
20712 * systty.h:
20713 * syswait.h:
20714 * unexec.c:
20715 * xdisp.c:
20716 * alloc.c: Remove code containing references to symbols defined by
20717 unsupported systems.
20718
207192008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
20720
20721 * coding.c (detect_coding_mask): Fix previous change.
20722
207232008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
20724
20725 * coding.c (detect_coding_iso2022): New arg
20726 latin_extra_code_state. Allow Latin extra codes only
20727 when *latin_extra_code_state is nonzero.
20728 (detect_coding_mask): If there is a NULL byte, detect the encoding
20729 as UTF-16 or binary. If Latin extra codes exist, detect the
20730 encoding as ISO-2022 only when there's no other proper encoding is
20731 found.
20732
207332008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20734
20735 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
20736 #ifdef MAC_OS.
20737
207382008-01-08 Richard Stallman <rms@gnu.org>
20739
20740 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
20741
207422008-01-06 Nick Roberts <nickrob@snap.net.nz>
20743
20744 * keyboard.c (parse_menu_item): Don't enclose key bindings on
20745 menu bar in parentheses.
20746
207472008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
20748
20749 * m/7300.h:
20750 * m/acorn.h:
20751 * m/alliant-2800.h:
20752 * m/alliant.h:
20753 * m/alliant1.h:
20754 * m/alliant4.h:
20755 * m/altos.h:
20756 * m/amdahl.h:
20757 * m/apollo.h:
20758 * m/att3b.h:
20759 * m/aviion-intel.h:
20760 * m/aviion.h:
20761 * m/celerity.h:
20762 * m/clipper.h:
20763 * m/cnvrgnt.h:
20764 * m/convex.h:
20765 * m/cydra5.h:
20766 * m/delta88k.h:
20767 * m/dpx2.h:
20768 * m/dual.h:
20769 * m/elxsi.h:
20770 * m/f301.h:
20771 * m/gould-np1.h:
20772 * m/gould.h:
20773 * m/i860.h:
20774 * m/ibmps2-aix.h:
20775 * m/ibmrt-aix.h:
20776 * m/ibmrt.h:
20777 * m/irist.h:
20778 * m/is386.h:
20779 * m/isi-ov.h:
20780 * m/mega68.h:
20781 * m/mg1.h:
20782 * m/news-r6.h:
20783 * m/news-risc.h:
20784 * m/news.h:
20785 * m/nh3000.h:
20786 * m/nh4000.h:
20787 * m/ns16000.h:
20788 * m/ns32000.h:
20789 * m/nu.h:
20790 * m/orion.h:
20791 * m/orion105.h:
20792 * m/paragon.h:
20793 * m/pfa50.h:
20794 * m/plexus.h:
20795 * m/pyramid.h:
20796 * m/pyrmips.h:
20797 * m/sh3el.h:
20798 * m/sps7.h:
20799 * m/sr2k.h:
20800 * m/stride.h:
20801 * m/sun1.h:
20802 * m/sun2.h:
20803 * m/sun3-68881.h:
20804 * m/sun3-fpa.h:
20805 * m/sun3-soft.h:
20806 * m/sun3.h:
20807 * m/sun386.h:
20808 * m/symmetry.h:
20809 * m/tad68k.h:
20810 * m/tahoe.h:
20811 * m/targon31.h:
20812 * m/tek4300.h:
20813 * m/tekxd88.h:
20814 * m/tower32.h:
20815 * m/tower32v3.h:
20816 * m/ustation.h:
20817 * m/wicat.h:
20818 * m/xps100.h:
20819 * s/cxux.h:
20820 * s/cxux7.h:
20821 * s/dgux.h:
20822 * s/dgux4.h:
20823 * s/dgux5-4-3.h:
20824 * s/dgux5-4r2.h:
20825 * s/esix.h:
20826 * s/esix5r4.h:
20827 * s/hiuxmpp.h:
20828 * s/hiuxwe2.h:
20829 * s/iris3-5.h:
20830 * s/iris3-6.h:
20831 * s/isc2-2.h:
20832 * s/isc3-0.h:
20833 * s/isc4-0.h:
20834 * s/isc4-1.h:
20835 * s/newsos5.h:
20836 * s/newsos6.h:
20837 * s/osf1.h:
20838 * s/osf5-0.h:
20839 * s/riscix1-1.h:
20840 * s/riscix12.h:
20841 * s/sco4.h:
20842 * s/sco5.h:
20843 * s/sunos4-0.h:
20844 * s/sunos4-1.h:
20845 * s/sunos413.h:
20846 * s/sunos4shr.h:
20847 * s/umax.h:
20848 * s/unipl5-2.h:
20849 * s/xenix.h:
20850 * cxux-crt0.s:
20851 * unexapollo.c:
20852 * unexconvex.c:
20853 * unexenix.c:
20854 * unexsni.c: Remove files for systems no longer supported.
20855
20856 * m/intel386.h: Remove references to unsupported systems.
20857
20858 * w32.c (get_emacs_configuration): Remove reference to i860.
20859
20860 * sysdep.c: Remove dead code.
20861
208622008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
20863
20864 * s/rtu.h:
20865 * m/masscomp.h: Remove files. Platform is obsolete.
20866
208672008-01-04 Michael Albinus <michael.albinus@gmx.de>
20868
20869 * dbusbind.c (Fdbus_method_return): New function.
20870 (xd_read_message): Add the serial number to the event.
20871 (Fdbus_register_method): Activate the function.
20872
208732008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
20874
20875 * keyboard.c (read_key_sequence): Fix typo.
20876
208772008-01-03 Michael Albinus <michael.albinus@gmx.de>
20878
20879 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
20880 (xd_signature, xd_append_arg): Handle element type detection for
20881 empty arrays.
20882 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
20883 SDATA () calls; this must be solved more general.
20884 (Fdbus_register_signal): Use SBYTES instead of strlen.
20885
208862008-01-03 Magnus Henoch <magnus@zemdatav>
20887
20888 * dbusbind.c (xd_append_arg): Use unsigned char instead of
20889 unsigned int for byte values (necessary for big-endian platform).
20890 (Fdbus_call_method): Handle the case of no returned arguments.
20891
208922007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
20893
20894 * dbusbind.c (xd_read_message): Use non-static input_event struct.
20895
208962007-12-31 Magnus Henoch <mange@freemail.hu>
20897
20898 * dbusbind.c (xd_signature): Signature of variant is just "v".
20899
209002007-12-30 Michael Albinus <michael.albinus@gmx.de>
20901
20902 * dbusbind.c: Fix several errors and compiler warnings.
20903 Reported by Tom Tromey <tromey@redhat.com>.
20904 (XD_ERROR, XD_DEBUG_MESSAGE)
20905 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
20906 (xd_append_arg): Part for basic D-Bus types rewritten.
20907 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
20908 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
20909 appropriate.
20910 (xd_read_message): Return Qnil. Don't signal an error; it is not
20911 useful during event reading.
20912 (Fdbus_register_signal): Signal an error if the check for
20913 FUNCTIONP fails.
20914 (Fdbus_register_method): New function. The implementation is not
20915 complete, the call of the function signals an error therefore.
20916 (Fdbus_unregister_object): New function, renamed from
20917 Fdbus_unregister_signal. The initial check signals an error, if
20918 the object is not well formed.
20919
209202007-12-30 Richard Stallman <rms@gnu.org>
20921
20922 * textprop.c (get_char_property_and_overlay):
20923 Signal error if POSITION is out of range in a buffer.
20924
209252007-12-29 Martin Rudalics <rudalics@gmx.at>
20926
20927 * w32fns.c (Fx_create_frame): Make copy of frame parameters
20928 because the original parameters are in pure storage now.
20929
209302007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20931
20932 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
20933
209342007-12-22 Eli Zaretskii <eliz@gnu.org>
20935
20936 * callint.c (syms_of_callint) <command-history>: Add reference to
20937 history-length in the doc string.
20938
209392007-12-17 Jason Rumney <jasonr@gnu.org>
20940
20941 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
20942 before passing as wParam.
20943
209442007-12-22 Michael Albinus <michael.albinus@gmx.de>
20945
20946 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
20947 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
20948 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
20949 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
20950 as number.
20951 (Fdbus_call_method): Fix docstring.
20952
209532007-12-21 Michael Albinus <michael.albinus@gmx.de>
20954
20955 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
20956 New macros.
20957 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
20958 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
20959 Simplify.
20960 (xd_signature): New function.
20961 (xd_append_arg): Compute also signatures. Major rewrite.
20962 (xd_retrieve_arg): Make debug messages friendly.
20963 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
20964 Check for signatures of arguments.
20965
209662007-12-19 Michael Albinus <michael.albinus@gmx.de>
20967
20968 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
20969 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
20970 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
20971 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
20972 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
20973 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
20974 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
20975 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
20976 (xd_retrieve_value): Remove. Functionality included in ...
20977 (xd_append_arg): New function.
20978 (Fdbus_call_method, Fdbus_send_signal): Apply it.
20979
209802007-12-16 Michael Albinus <michael.albinus@gmx.de>
20981
20982 * dbusbind.c (top): Include <stdio.h>.
20983 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
20984 dbus_message_new_method_call and dbus_message_new_signal.
20985 (Fdbus_register_signal): Rename unique_name to uname.
20986 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
20987 non-existing unique name. Fix typos in matching rule. Return an
20988 object which is useful in Fdbus_unregister_signal.
20989 (Fdbus_unregister_signal): Reimplementation, in order to remove
20990 only the corresponding entry.
20991 (Vdbus_registered_functions_table): Change the order of entries.
20992 Apply these changes in xd_read_message and Fdbus_register_signal.
20993
209942007-12-16 Andreas Schwab <schwab@suse.de>
20995
20996 * fileio.c (Finsert_file_contents): Fix overflow check to not
20997 depend on undefined integer overflow.
20998
209992007-12-14 Jason Rumney <jasonr@gnu.org>
21000
21001 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
21002 for characters above 127.
21003
210042007-12-13 Jason Rumney <jasonr@gnu.org>
21005
21006 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
21007 before dereferencing array.
21008 (lookup_vk_code): Remove zero comparison.
21009
210102007-12-14 Michael Albinus <michael.albinus@gmx.de>
21011
21012 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
21013 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
21014 Use `unsigned int' instead of `uint'.
21015 (xd_read_message, Fdbus_register_signal): Split expressions into
21016 multiple lines before operators "&&" and "||", according to the
21017 GNU Coding Standards.
21018
210192007-12-14 Eli Zaretskii <eliz@gnu.org>
21020
21021 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
21022
210232007-12-12 Juri Linkov <juri@jurta.org>
21024
21025 * buffer.c (Frename_buffer): In interactive spec replace
21026 `read-buffer' with `read-string' that uses `buffer-name-history'
21027 as history, and the current buffer's name as default.
21028
210292007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
21030
21031 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
21032 manipulating the backtrace manually.
21033 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
21034 (struct backtrace, backtrace_list): Remove.
21035 (command_loop_1): Remove dead var `no_direct'.
21036
21037 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
21038 preserve non-built-in buffer-local variables.
21039 (Fkill_all_local_variables): Don't re-create&re-set permanent
21040 buffer-local variables.
21041
210422007-12-09 Juri Linkov <juri@jurta.org>
21043
21044 * buffer.c (Frename_buffer): Change interactive spec from "s" to
21045 Lisp code that uses `read-buffer' with current buffer as default.
21046
210472007-12-08 Michael Albinus <michael.albinus@gmx.de>
21048
21049 * dbusbind.c (xd_read_message): Generate an event for every
21050 registered handler. There might be several handlers registered
21051 for the same signal.
21052 (Fdbus_register_signal): Don't overwrite a registration for the
21053 same signal. Add a new registration if handlers are different.
21054 (Vdbus_registered_functions_table): Rework doc string.
21055
210562007-12-07 Michael Albinus <michael.albinus@gmx.de>
21057
21058 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
21059 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
21060 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
21061 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
21062 Unify argument lists.
21063 (xd_read_message, Fdbus_register_signal): Reorder and extend event
21064 arguments and hash table keys. Use unique name for service.
21065 (Fdbus_unregister_signal): Remove checks.
21066 (Vdbus_registered_functions_table): Fix doc string.
21067
210682007-12-05 Magnus Henoch <mange@freemail.hu>
21069
21070 * process.c (make_process): Initialize pty_flag to 0.
21071
210722007-12-05 Jason Rumney <jasonr@gnu.org>
21073
21074 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
21075 specified XBMs.
21076
210772007-12-05 Richard Stallman <rms@gnu.org>
21078
21079 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
21080
210812007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21082
21083 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
21084 New variable.
21085 (mac_try_close_socket) [MAC_OSX]: New function.
21086 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
21087 Update cfsockets_for_select. Replace invalid CFRunLoop source.
21088
21089 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
21090 Use mac_try_close_socket.
21091
210922007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21093
21094 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
21095 reloc_base.
21096 (copy_dysymtab): Compute relocation base here.
21097 (rebase_reloc_address) [__ppc64__]: New function.
21098 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
21099 changed.
21100
211012007-12-05 Jason Rumney <jasonr@gnu.org>
21102
21103 * w32proc.c (sys_spawnve): Quote args with wildcards.
21104
211052007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21106
21107 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
21108 __objc_* sections.
21109 (unrelocate) [_LP64]: Set relocation base to address of data segment.
21110
211112007-12-05 Michael Albinus <michael.albinus@gmx.de>
21112
21113 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
21114 Move check for Vdbus_registered_functions_table to
21115 xd_read_queued_messages.
21116 (xd_read_queued_messages): Protect xd_read_message calls by
21117 internal_condition_case_1.
21118
211192007-12-04 Michael Albinus <michael.albinus@gmx.de>
21120
21121 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
21122 Qdbus_system_bus and Qdbus_session_bus, respectively.
21123 (Vdbus_intern_symbols): Remove.
21124 (Vdbus_registered_functions_table): New hash table.
21125 (XD_SYMBOL_INTERN_SYMBOL): Remove.
21126 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
21127 Rewrite in order to manage registered functions by hash table
21128 Vdbus_registered_functions_table.
21129
211302007-12-03 Jan Djärv <jan.h.d@swipnet.se>
21131
21132 * xterm.c: Update URL to Window Manager Specification in comment.
21133
211342007-12-02 Michael Albinus <michael.albinus@gmx.de>
21135
21136 * config.in (HAVE_DBUS): Add.
21137
21138 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
21139 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
21140 (obj): Add $(DBUS_OBJ).
21141 (LIBES): Add $(DBUS_LIBS).
21142 (dbusbind.o): New target.
21143
21144 * dbusbind.c: New file.
21145
21146 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
21147
21148 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
21149 (Qdbus_event): New Lisp symbol.
21150 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
21151 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 21152 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
21153
21154 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
21155
211562007-12-01 Richard Stallman <rms@gnu.org>
21157
21158 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
21159
211602007-11-30 Jason Rumney <jasonr@gnu.org>
21161
21162 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
21163 (w32con_reset_terminal_modes): Clear screen buffer.
21164 (w32_face_attributes): Don't use color indexes that are out of range.
21165 Only reverse the default colors.
21166
21167 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
21168 WINDOWSNT.
21169
21170 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
21171
211722007-11-29 Jason Rumney <jasonr@gnu.org>
21173
21174 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
21175 (w32_face_attributes): Use Vtty_defined_color_alist to determine
21176 if the terminal colors are initialized.
21177 (unspecified_fg, unspecified_bg): Remove unused declarations.
21178
211792007-11-29 Andreas Schwab <schwab@suse.de>
21180
21181 * keyboard.c (apply_modifiers): Fix typo.
21182
211832007-11-29 Richard Stallman <rms@gnu.org>
21184
21185 * keymap.c (Fcurrent_local_map): Doc fix.
21186
211872007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
21188
21189 * s/gnu-kfreebsd.h: New file.
21190
211912007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
21192
21193 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
21194 Don't cast redundantly.
21195
21196 * keyboard.c (KEY_TO_CHAR): New macro.
21197 (parse_modifiers, apply_modifiers): Accept integer arguments.
21198 (read_key_sequence): Use them to unify the "shift->unshift" mapping
21199 for chars and symbol keys.
21200 After doing such remapping, apply function-key-map again.
21201
212022007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
21203
21204 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
21205 compiled anymore.
21206
212072007-11-26 Andreas Schwab <schwab@suse.de>
21208
21209 * process.c (list_processes_1): Fix indentation level of the
21210 command column.
21211
212122007-11-23 Andreas Schwab <schwab@suse.de>
21213
21214 * editfns.c (Fformat): Handle %c specially since it requires the
21215 argument to be of type int.
21216
212172007-11-23 Markus Triska <markus.triska@gmx.at>
21218
21219 * emacs.c (main): Call init_editfns before init_process, since
21220 init_process sets Vprocess_connection_type depending on OS release.
21221
212222007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
21223
21224 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
21225 (find_symbol_value): Use do_symval_forwarding.
21226
21227 * data.c (set_internal): Set the value in the `cons-cell' (for
21228 Buffer_Local_values) not only for frame-local variables.
21229
212302007-11-22 Andreas Schwab <schwab@suse.de>
21231
21232 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
21233 values to sprintf.
21234 * keymap.c (Fsingle_key_description): Likewise.
21235 * print.c (print_object): Likewise.
21236
212372007-11-22 Jan Djärv <jan.h.d@swipnet.se>
21238
21239 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
21240 file for image is nil.
21241
212422007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
21243
21244 * term.c: Include stdarg.h.
21245 (fatal): Implement using varargs.
21246 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
21247
212482007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
21249
21250 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
21251 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
21252 Update call to buffer_slot_type_mismatch.
21253 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
21254 (buffer_slot_type_mismatch): Update.
21255 * buffer.c (buffer_local_types): Remove.
21256 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
21257 (defvar_per_buffer): Set the type in the buffer_objfwd.
21258
212592007-11-21 Jason Rumney <jasonr@gnu.org>
21260
21261 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
21262 CreateFileMapping returns NULL on failure.
21263
212642007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
21265
21266 * search.c (Fset_match_data): Remove the `evaporate' feature.
21267 (unwind_set_match_data): Don't use the `evaporate' feature.
21268
212692007-11-21 Jason Rumney <jasonr@gnu.org>
21270
21271 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
21272
21273 * w32console.c (w32con_write_glyphs): Remove unused variables.
21274
212752007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
21276
21277 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
21278
21279 * s/darwin.h (MULTI_KBOARD): Remove.
21280
21281 * macfns.c (x_create_tip_frame, Fx_create_frame)
21282 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
21283
212842007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
21285
21286 * buffer.c (Fbuffer_local_value): Remove redundant test.
21287 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
21288 than in `current-buffer' to match the comment.
21289 Do the swap using swap_in_global_binding.
21290
21291 * data.c (store_symval_forwarding, set_internal):
21292 * eval.c (specbind): Remove dead code.
21293
21294 * coding.c (detect_coding, Fupdate_coding_systems_internal):
21295 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
21296 Since we do not want to see internal Lisp_*fwd objects here.
21297
212982007-11-18 Jan Djärv <jan.h.d@swipnet.se>
21299
21300 * sysdep.c (init_system_name): Use getaddrinfo if available.
21301
21302 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
21303 (x_scroll_bar_note_movement): start, end, with, height in struct
21304 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
21305
213062007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
21307
21308 * puresize.h (BASE_PURESIZE): Increase to 1190000.
21309
213102007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
21311
21312 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
21313 This undoes Richard's change of 14-Oct-2002.
21314
21315 * alloc.c (allocate_other_vector):
21316 * lisp.h (allocate_other_vector): Remove.
21317
21318 * window.c (struct save_window_data): Move non-lisp data to the end
21319 and make it `int' rather than Lisp_Object.
21320 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
21321 Done wrap/unwrap integer values.
21322 (Fset_window_configuration, compare_window_configurations):
21323 Update use of fields to their new types.
21324
21325 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
21326 Turn integer fields into `int'. Merge x_window_low and x_window_high.
21327 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
21328 (SET_SCROLL_BAR_X_WINDOW): Remove.
21329 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
21330 Access the new x_window field directly.
21331 * xterm.c (x_scroll_bar_create): Use a pseudovector.
21332 Don't wrap/unwrap integers into Lisp_Objects.
21333 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
21334 (x_scroll_bar_report_motion):
21335 Don't wrap/unwrap integers into Lisp_Objects.
21336 (x_term_init): Use SDATA.
21337 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
21338 (x_scroll_bar_set_handle, x_scroll_bar_remove)
21339 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
21340 (x_scroll_bar_report_motion, x_scroll_bar_clear):
21341 * xfns.c (x_set_background_color):
21342 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
21343 Access the new x_window field directly.
21344
21345 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
21346 (allocate_pseudovector): Make non-static.
21347
21348 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
21349 (allocate_pseudovector): Declare.
21350 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
21351
213522007-11-15 Andreas Schwab <schwab@suse.de>
21353
21354 * editfns.c (Fformat): Correctly format EMACS_INT values.
21355 Also take precision into account when formatting an integer.
21356
21357 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
21358
213592007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
21360
21361 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
21362 (syms_of_keyboard): Defsubr it.
21363
21364 * data.c (swap_in_global_binding): Fix longstanding bug where
21365 store_symval_forwarding was not called with the right second argument,
21366 thus causing objfwd-ing from being dropped.
21367
213682007-11-14 Juanma Barranquero <lekktu@gmail.com>
21369
21370 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
21371 (Fx_display_pixel_height, Fx_display_planes)
21372 (Fx_display_color_cells, Fx_server_max_request_size)
21373 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
21374 (Fx_display_visual_class, Fx_display_save_under):
21375 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
21376 (Fx_display_pixel_height, Fx_display_planes)
21377 (Fx_display_color_cells, Fx_server_max_request_size)
21378 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
21379 (Fx_display_mm_height, Fx_display_mm_width)
21380 (Fx_display_backing_store, Fx_display_visual_class)
21381 (Fw32_select_font, Fx_display_save_under):
21382 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
21383 (Fx_display_pixel_height, Fx_display_planes)
21384 (Fx_display_color_cells, Fx_server_max_request_size)
21385 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
21386 (Fx_display_save_under): Fix typos in docstrings.
21387
213882007-11-14 Juanma Barranquero <lekktu@gmail.com>
21389
21390 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
21391 corresponding to deleted entries; they are an implementation detail.
21392 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
21393 Remove variables.
21394 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
21395 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
21396 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
21397 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
21398 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
21399 (Fw32_define_rgb_color, Fw32_load_color_file)
21400 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
21401 Fix typos in docstrings.
21402 (Fx_server_version): Reflow docstring.
21403 (Fw32_shell_execute): Doc fixes.
21404
214052007-11-13 Juanma Barranquero <lekktu@gmail.com>
21406
21407 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
21408 if w32_parse_hot_key returned nil.
21409
214102007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
21411
21412 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
21413
214142007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 21415
aac0c6e3
MR
21416 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
21417
21418 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
21419
21420 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
21421 Remove W32_SCROLL_BAR_CLICK_EVENT.
21422
21423 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
21424 Add MULTIMEDIA_KEY_EVENT.
21425
21426 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
21427 (lispy_multimedia_keys) [WINDOWSNT]: New array.
21428 (make_lispy_event) [WINDOWSNT]: Use it to translate
21429 MULTIMEDIA_KEY_EVENT.
21430
21431 * w32term.h (WM_APPCOMMAND): Define if not already.
21432 (GET_APPCOMMAND_LPARAM): Likewise.
21433
21434 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
21435 WM_APPCOMMAND.
21436
21437 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
21438 (syms_of_w32fns): Export and initialize it.
21439 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
21440
214412007-11-09 Chong Yidong <cyd@stupidchicken.com>
21442
21443 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
21444 twice.
21445
21446 * xdisp.c (handle_face_prop): Fix last change.
21447
214482007-11-09 Richard Stallman <rms@gnu.org>
21449
21450 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
21451 not just for after-strings and before-strings.
21452 Call face_for_overlay_string and pass the overlay to it.
21453 (handle_display_prop): Determine whether property came from an overlay.
21454 Pass OVERLAY arg to handle_single_display_spec.
21455 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
21456 (load_overlay_strings): Fill in it->string_overlays.
21457 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
21458
21459 * xfaces.c (face_for_overlay_string): Function renamed from
21460 face_at_buffer_position_no_overlays, and add arg OVERLAY.
21461
21462 * dispextern.h (struct it): New elt string_overlays.
21463 New elt from_overlay, also in stack.
21464 Rearrange a few elements.
21465 (face_for_overlay_string): Decl renamed from
21466 face_at_buffer_position_no_overlays, and add argument.
21467
214682007-11-09 Richard Stallman <rms@gnu.org>
21469
21470 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
21471 to get the base face for an overlay string.
21472
21473 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
21474
21475 * xfaces.c (face_at_buffer_position_no_overlays): New function.
21476
21477 * xdisp.c (handle_stop): Move some code out of loop.
21478
214792007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21480
21481 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
21482 Fix conversion from Lisp object to ATSUFontID.
21483
214842007-11-09 Jason Rumney <jasonr@gnu.org>
21485
21486 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
21487
214882007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21489
21490 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
21491 Don't assume regions are aligned to page boundary.
21492 (print_load_command_name): Add LC_UUID if defined.
21493
214942007-11-09 Richard Stallman <rms@gnu.org>
21495
21496 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
21497
214982007-11-07 Jason Rumney <jasonr@gnu.org>
21499
21500 * s/windows95.h: Remove.
21501
215022007-11-06 Jan Djärv <jan.h.d@swipnet.se>
21503
21504 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
21505 abort with a message on unhandled store_type values.
21506
215072007-11-01 Jan Djärv <jan.h.d@swipnet.se>
21508
21509 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
21510 Remove HAVE_X11R5 and HAVE_X11R4.
21511
215122007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
21513
21514 * Makefile.in: Remove references to sunfns.c and sunfns.o.
21515
215162007-11-01 Johan Bockgård <bojohan@gnu.org>
21517
21518 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
21519 Don't set s->stippled_p here, since it has already been set by
21520 x_set_glyph_string_gc from x_draw_glyph_string.
21521
215222007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
21523
21524 * sunfns.c: Remove file.
21525
21526 * m/sun386.h:
21527 * m/sun2.h:
21528 * m/sparc.h: Remove Sun windows code.
21529
215302007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
21531
21532 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
21533 (init_keyboard): Set current_kboard's window-system to nil.
21534 (tty_read_avail_input): Typo.
21535 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
21536
215372007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
21538
21539 * s/usg5-4.h:
21540 * s/usg5-3.h:
21541 * s/ptx.h:
21542 * m/is386.h:
21543 * m/ibmps2-aix.h:
21544 * Makefile.in: Remove all mentions of X10.
21545
21546 * dispnew.c (syms_of_display): Don't mention version 10.
21547
215482007-10-28 Juanma Barranquero <lekktu@gmail.com>
21549
21550 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
21551 ($(BLD)/abbrev.$(O)): Remove.
21552
215532007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
21554
21555 Rewrite abbrev.c in Elisp.
21556 * image.c (Qcount): Don't declare as extern.
21557 (syms_of_image): Initialize and staticpro `Qcount'.
21558 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
21559 * emacs.c (main): Don't call syms_of_abbrev.
21560 * Makefile.in (obj): Remove abbrev.o.
21561 (abbrev.o): Remove.
21562 * abbrev.c: Remove.
21563
215642007-10-26 Martin Rudalics <rudalics@gmx.at>
21565
21566 * window.c (window_min_size_2): Don't count header-line.
21567
215682007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
21569
21570 * frame.h (struct frame): Move all bit fields after the first bit
21571 field to take advantage of the available space. Group all the
21572 chars together to reduce wasted space due to padding.
21573
215742007-10-26 Juanma Barranquero <lekktu@gmail.com>
21575
21576 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
21577
21578 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
21579 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
21580 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
21581 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
21582 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
21583 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
21584 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
21585 (last_marked, mark_object_loop_halt): Make static.
21586
21587 * frame.c (syms_of_frame) <delete-frame-functions>:
21588 Fix typo in docstring.
21589
215902007-10-25 Juanma Barranquero <lekktu@gmail.com>
21591
21592 * w32.c (init_environment): Fix tiny memory leak.
21593 (w32_get_resource): Remove unused variable `ok'.
21594
215952007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
21596
21597 Make `window-system' into a keyboard-local variable (rather than
21598 frame-local as done originally by multi-tty).
21599
21600 * keyboard.h (struct kboard): Add Vwindow_system.
21601 * keyboard.c (init_kboard): Set a default for Vwindow_system.
21602 (mark_kboards): Mark Vwindow_system.
21603
21604 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
21605 (init_display): Don't set the obsolete `window-system' frame-param.
21606
21607 * xterm.c (x_term_init):
21608 * w32term.c (w32_create_terminal):
21609 * term.c (init_tty): Set Vwindow_system.
21610 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
21611 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
21612
21613 * xfns.c (Fx_create_frame, x_create_tip_frame):
21614 * w32fns.c (Fx_create_frame, x_create_tip_frame):
21615 * macfns.c (Fx_create_frame):
21616 Don't set the obsolete `window-system' frame-param.
21617
21618 * frame.h (Qwindow_system): Remove.
21619 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
21620 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
21621
216222007-10-24 Richard Stallman <rms@gnu.org>
21623
21624 * frame.c (x_figure_window_size): For fullscreen case,
21625 set USPosition | PPosition without clobbering rest of window_prompting.
21626
21627 * keyboard.c (Fcurrent_idle_time): Doc fix.
21628
21629 * print.c (Fwith_output_to_temp_buffer): Doc fix.
21630
216312007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
21632
21633 * process.c (unwind_request_sigio): Only define if __ultrix__.
21634
21635 * callproc.c (child_setup): Remove spurious *.
21636
21637 * lisp.h (Fget_text_property): Declare.
21638 (have_menus_p): Declare it here rather than in sys-dep header files.
21639 * macterm.h (have_menus_p):
21640 * msdos.h (have_menus_p):
21641 * xterm.h (have_menus_p): Remove.
21642
21643 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
21644 (Fmake_variable_frame_local): Just check the variable's const-ness
21645 rather than checking nil or t.
21646
216472007-10-22 Jason Rumney <jasonr@gnu.org>
21648
21649 * w32fns.c: Include math.h.
21650 (w32_abort): Declaration moved to nt/config.nt.
21651
21652 * s/ms-w32.h (HAVE_STDLIB_H): Define.
21653 (abort): Redefinition moved to nt/config.nt.
21654
21655 * m/windowsnt.h: Remove.
21656
216572007-10-22 Juanma Barranquero <lekktu@gmail.com>
21658
21659 * emacs.c (Fdump_emacs): Fix typo in message.
21660 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
21661 <installation-directory>: Reflow docstring.
21662
216632007-10-22 Juri Linkov <juri@jurta.org>
21664
21665 * minibuf.c: Allow minibuffer default to be a list of default values.
21666 With empty input use the first element of this list as returned default.
21667 (string_to_object)
21668 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
21669 (read_minibuf): If defalt is cons, set histstring to its car.
21670 (Fread_string): If default_value is cons, set val to its car.
21671 (Fread_buffer): If def is cons, use its car.
21672 (Fcompleting_read): If defalt is cons, set val to its car.
21673
216742007-10-21 Michael Albinus <michael.albinus@gmx.de>
21675
21676 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
21677
216782007-10-20 Juanma Barranquero <lekktu@gmail.com>
21679
21680 * doc.c (Fdocumentation): Check for advice in all cases.
21681
216822007-10-19 Chong Yidong <cyd@stupidchicken.com>
21683
21684 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
21685
216862007-10-19 Richard Stallman <rms@gnu.org>
21687
21688 * doc.c (Fdocumentation): Check for and handle an advised function.
21689
216902007-10-19 Juanma Barranquero <lekktu@gmail.com>
21691
21692 * process.c (Fset_process_filter): Doc fix.
21693
216942007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
21695
21696 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
21697 which caused key-translation-map to applied repeatedly (thus breaking
21698 double-mode).
21699
217002007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21701
21702 * xselect.c (x_own_selection, x_handle_selection_clear)
21703 (x_clear_frame_selections):
21704 * w32menu.c (list_of_panes, list_of_items):
21705 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
21706 * textprop.c (validate_plist, interval_has_all_properties)
21707 (interval_has_some_properties, interval_has_some_properties_list)
21708 (add_properties, text_property_list):
21709 * process.c (Fget_buffer_process, list_processes_1, status_notify):
21710 * minibuf.c (Fassoc_string):
21711 * macselect.c (x_own_selection, x_clear_frame_selections)
21712 (Fx_disown_selection_internal):
21713 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
21714 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
21715
217162007-10-17 Chong Yidong <cyd@stupidchicken.com>
21717
21718 * process.c: Link to libs for calling res_init() if available.
21719 (Fmake_network_process): Call res_init() before getaddrinfo or
21720 gethostbyname, if possible.
21721
217222007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21723
21724 * lread.c (read1): Set pvectype for char_tables.
21725
21726 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
21727 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
21728 Add type checks.
21729 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
21730
21731 * alloc.c (free_misc): Use XMISCTYPE.
21732 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
21733
217342007-10-17 Glenn Morris <rgm@gnu.org>
21735
21736 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
21737 (syms_of_minibuf): Add Qcompletion_ignore_case.
21738 * dired.c (Qcompletion_ignore_case): Change to external.
21739 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
21740 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
21741 (Fread_file_name): Use it rather than intern'ing.
21742
21743 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
21744 (Fread_coding_system): Ignore case of user input.
21745
217462007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21747
21748 * xdisp.c (handle_display_prop): Ignore display specs after
21749 replacing one when string text is being replaced.
21750 (handle_single_display_spec): Pretend as if characters with display
21751 property haven't been consumed only when buffer text is being replaced.
21752
217532007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
21754
21755 * xfns.c (Fx_create_frame, Fx_display_list):
21756 * window.c (window_fixed_size_p, enlarge_window)
21757 (shrink_window_lowest_first):
21758 * macterm.c (init_font_name_table):
21759 * macfns.c (Fx_create_frame, Fx_display_list):
21760 * lread.c (close_load_descs):
21761 * keyboard.c (read_char_x_menu_prompt):
21762 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
21763 * coding.c (code_convert_region_unwind): Test the type of an object
21764 rather than just !NILP before extracting data from it.
21765
21766 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
21767
21768 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
21769 (XMISCANY): New macro.
21770 (XMISCTYPE): Use it.
21771 (struct Lisp_Misc_Any): New type.
21772 (union Lisp_Misc): Use it.
21773 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
21774 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
21775 (find_symbol_value, set_internal, default_value, Fset_default)
21776 (Fmake_variable_buffer_local, Fmake_local_variable)
21777 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
21778 (Flocal_variable_if_set_p, Fvariable_binding_locus):
21779 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
21780 * alloc.c (allocate_buffer): Set the size and tag.
21781 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
21782 Use XMISCANY.
21783 (die): Follow the GNU convention for error messages.
21784 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
21785 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
21786 tag any more.
21787 (set_buffer_internal_1):
21788 * frame.c (store_frame_param):
21789 * eval.c (specbind):
21790 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
21791
21792 * doc.c (Fsnarf_documentation): Simplify.
21793
217942007-10-14 Juanma Barranquero <lekktu@gmail.com>
21795
21796 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
21797 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
21798
217992007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
21800
21801 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
21802
218032007-10-14 Juanma Barranquero <lekktu@gmail.com>
21804
21805 * eval.c (do_autoload): Don't save autoloads.
21806
21807 * data.c (Ffset): Save autoload of the function being set.
21808
218092007-10-07 John Paul Wallington <jpw@pobox.com>
21810
21811 * xfns.c (x_create_tip_frame): Set the `display-type' frame
21812 parameter before setting up faces.
21813
218142007-10-13 Eli Zaretskii <eliz@gnu.org>
21815
21816 * ccl.c (Fregister_code_conversion_map):
21817 * keyboard.c (append_tool_bar_item): Reformat last change.
21818
21819 * lisp.h (eabs): Rename from `abs'. All callers changed.
21820
218212007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
21822
21823 * buffer.c (add_overlay_mod_hooklist):
21824 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
21825 * fontset.c (make_fontset):
21826 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
21827 (append_tool_bar_item):
21828 * macmenu.c (grow_menu_items):
21829 * w32menu.c (grow_menu_items):
21830 * xmenu.c (grow_menu_items): Use larger_vector.
21831
218322007-10-13 Eli Zaretskii <eliz@gnu.org>
21833
21834 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
21835 selected frame'' on MSDOS).
21836
218372007-10-12 Martin Rudalics <rudalics@gmx.at>
21838
21839 * frame.c (Qexplicit_name): New variable.
21840 (x_report_frame_params): Report it in parameter alist.
21841 (syms_of_frame): Intern and staticpro it.
21842
218432007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
21844
21845 * macfns.c (x_create_tip_frame): Set terminal for frame.
21846
218472007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
21848
21849 * frame.c (Qenvironment): Remove.
21850 (syms_of_frame) <Qenvironment>: Don't initialize.
21851 (Fdelete_frame): Don't treat the `environment' param specially.
21852 * frame.h (Qenvironment): Don't declare.
21853 * callproc.c (set_initial_environment): Don't set unused frame param.
21854
21855 * frame.c (Fframe_with_environment): Remove.
21856 (syms_of_frame) <Sframe_with_environment>: Don't declare.
21857
21858 * lisp.h (Fframe_with_environment): Don't declare.
21859
218602007-10-10 Juanma Barranquero <lekktu@gmail.com>
21861
21862 * indent.c (indent_tabs_mode, last_known_column)
21863 (last_known_column_modified): Make static.
21864 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
21865
218662007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
21867
21868 * puresize.h (BASE_PURESIZE): Increase to 1170000.
21869
218702007-10-09 Jason Rumney <jasonr@gnu.org>
21871
21872 * w32term.c (x_set_window_size): Disable code that attempts to tell
21873 Lisp code about a size change before it actually happens.
21874
218752007-10-09 Richard Stallman <rms@gnu.org>
21876
21877 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
21878 return HANDLED_RETURN.
21879
218802007-10-08 Martin Rudalics <rudalics@gmx.at>
21881
21882 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
21883 when there's an unread command event.
21884
21885 * frame.c (focus_follows_mouse): Move here from frame.el to allow
21886 window autoselection act appropriately when leaving selected frame.
21887 (syms_of_frame): Initialize focus_follows_mouse.
21888 * frame.h (focus_follows_mouse): Extern it.
21889 * macterm.c (XTread_socket): When focus_follows_mouse is nil
21890 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
21891 * msdos.c (dos_rawgetc): Likewise.
21892 * w32term.c (w32_read_socket): Likewise.
21893 * xterm.c (handle_one_xevent): Likewise.
21894 * xdisp.c (syms_of_xdisp): In doc-string of
21895 mouse-autoselect-window mention focus-follows-mouse.
21896
218972007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21898
21899 * macterm.c (mac_load_query_font): Fix missing return value.
21900 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
21901 Add BLOCK_INPUT.
21902
219032007-10-08 Richard Stallman <rms@gnu.org>
21904
21905 * xdisp.c (get_window_cursor_type): Implement documented behavior
21906 for cursor-in-non-selected-windows = t.
21907
219082007-10-08 Jason Rumney <jasonr@gnu.org>
21909
21910 * w32.c (w32_get_resource): Always close registry keys.
21911
219122007-10-08 Jason Rumney <jasonr@gnu.org>
21913
21914 * makefile.w32-in (LIBS): Add COMCTL32.
21915
21916 * w32fns.c (globals_of_w32fns): Init common controls.
21917
219182007-10-08 Richard Stallman <rms@gnu.org>
21919
21920 * image.c (our_memory_buffer): Rename from omfib_buffer.
21921
219222007-10-08 Richard Stallman <rms@gnu.org>
21923
21924 * buffer.c (Foverlays_at): Doc fix.
21925
219262007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
21927
21928 * fns.c (Fplist_put): Preserve uneven tail data.
21929
219302007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
21931
21932 * termhooks.h (enum event_kind): Remove trailing comma.
21933
21934 * frame.h (enum): Remove trailing comma.
21935
219362007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
21937
21938 * w32proc.c (delete_child): Don't terminate threads of zombies.
21939
219402007-10-08 Martin Rudalics <rudalics@gmx.at>
21941
21942 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
21943
21944 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
21945 last-repeatable-command.
21946 (init_kboard): Initialize Vlast_repeatable_command.
21947 (command_loop_1): Set it to real_this_command unless that was
21948 bound to an input event.
21949 (mark_kboards): Mark it.
21950
219512007-10-08 Richard Stallman <rms@gnu.org>
21952
21953 * eval.c (condition-case): Doc fix.
21954
219552007-10-08 Masatake YAMATO <jet@gyve.org>
21956
21957 * xfaces.c (tty_supports_face_attributes_p): Fix code
21958 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
21959 was copied and not edited.
21960
219612007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
21962
21963 Add new `input-decode-map' keymap and use it for terminal
21964 escape sequences.
21965 * keyboard.h (struct kboard): Add Vinput_decode_map.
21966 Remove Vlocal_key_translation_map.
21967 * keyboard.c (read_key_sequence): Add support for input-decode-map.
21968 (init_kboard): Init input-decode-map.
21969 Replace local-key-translation-map back with key-translation-map.
21970 (syms_of_keyboard): Declare input-decode-map.
21971 Remove local-key-translation-map. Update docstrings.
21972 (mark_kboards): Mark Vinput_decode_map.
21973 Don't mark Vlocal_key_translation_map.
21974 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
21975 Replace local-key-translation-map back with key-translation-map.
21976 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
21977 Bind in input-decode-map rather than function-key-map.
21978
21979 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
21980 This was made redundant by the previous introduction of XSETPVECTYPE.
21981
219822007-10-09 Richard Stallman <rms@gnu.org>
21983
21984 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
21985
219862007-09-29 Richard Stallman <rms@gnu.org>
21987
21988 * eval.c (internal_condition_case_2, internal_condition_case_1)
21989 (internal_condition_case): Reenable abort if x_catching_errors ()
21990 to see if that really happens and why.
21991
219922007-10-06 Andreas Schwab <schwab@suse.de>
21993
21994 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
21995
219962007-10-04 Juanma Barranquero <lekktu@gmail.com>
21997
21998 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
21999
220002007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
22001
22002 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
22003
220042007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
22005
22006 * window.h (struct window):
22007 * window.c (struct save_window_data, struct saved_window):
22008 * termhooks.h (struct terminal):
22009 * process.h (struct Lisp_Process):
22010 * frame.h (struct frame):
22011 * buffer.h (struct buffer):
22012 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
22013 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
22014 The size field of (pseudo)vectors is now unsigned.
22015 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
22016
22017 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
22018 Turn `count' into an integer.
22019
22020 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
22021 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
22022 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
22023 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
22024 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
22025
22026 * alloc.c (allocate_pseudovector): New fun.
22027 (ALLOCATE_PSEUDOVECTOR): New macro.
22028 (allocate_window, allocate_terminal, allocate_frame)
22029 (allocate_process): Use it.
22030 (mark_vectorlike): New function.
22031 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
22032 (mark_terminals): Use it.
22033 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
22034 (Fmake_byte_code): Use XSETPVECTYPE.
22035
22036 * frame.c (Fframe_parameters): Minor simplification.
22037
22038 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
22039
22040 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
22041
22042 * buffer.c (Fget_buffer_create, init_buffer_once):
22043 * lread.c (defsubr):
22044 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
22045
22046 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
22047 defined differently in the m/*.h files.
22048 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
22049 (XSETPVECTYPE): New macro.
22050 (XSETPSEUDOVECTOR): Use it.
22051
22052 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
22053 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
22054
22055 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
22056 * lread.c (defvar_per_buffer):
22057 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
22058
22059 * window.c (candidate_window_p): Only consider as visible frames that
22060 are on the same terminal.
22061
22062 * m/ibms390x.h (MARKBIT): Remove unused macro.
22063
220642007-10-01 Juanma Barranquero <lekktu@gmail.com>
22065
22066 * lread.c (Fload): Fix typo in docstring.
22067
220682007-10-01 Michaël Cadilhac <michael@cadilhac.name>
22069
22070 * floatfns.c (Fexpt): Manually check for overflows, so that a power
22071 of a non-zero value can't yield zero.
22072
220732007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
22074
22075 * term.c (term_clear_mouse_face, term_mouse_highlight)
22076 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
22077
22078 * print.c (safe_debug_print): Use XHASH.
22079
22080 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
22081 Lisp elements such as tags.
22082 (XHASH): New macro.
22083 (EQ): Use it.
22084 (SREF, SSET, STRING_COPYIN): Use SDATA.
22085 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
22086
22087 * alloc.c (mark_terminal): Remove left-over declaration.
22088 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
22089 (allocate_vectorlike): Remove type argument. Adjust callers.
22090 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
22091 Only handle the one remaining MEM_TYPE_VECTORLIKE.
22092
22093 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
22094 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
22095 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
22096 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
22097 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
22098 Use them.
22099
22100 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
22101 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
22102 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
22103
221042007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
22105
22106 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
22107 loaded by default.
22108
221092007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
22110
22111 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
22112 on this tty.
22113 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
22114
22115 * term.c (mouse_face_window): Rename from Qmouse_face_window.
22116 Update all users.
22117 (handle_one_term_event): Use Gpm_DrawPointer.
22118 (Fgpm_mouse_start): Rename from Fterm_open_connection.
22119 Signal errors instead of returning nil. Always return nil.
22120 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
22121 Make it a noop if gpm-mouse was not activated.
22122 (syms_of_term): Update names.
22123
221242007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
22125
22126 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
22127 (init_sys_modes): Check that gpm_tty is the current tty.
22128
22129 * alloc.c (allocate_terminal): Set the vector size to only count the
22130 lisp fields. Initialize those to nil.
22131 (mark_object): Don't treat terminals specially.
22132 (mark_terminal): Remove.
22133 (mark_terminals): Use mark_object instead.
22134
22135 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
22136 the GC to the beginning.
22137
22138 * indent.h:
22139 * indent.c: Use EMACS_INT for ints coming from Elisp data.
22140
22141 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
22142
221432007-09-25 Jason Rumney <jasonr@gnu.org>
22144
22145 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
22146
22147 * w32console.c (create_w32cons_output): Remove.
22148
22149 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
22150
22151 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
22152 (reset_sys_modes): Use reset_terminal_modes_hook.
22153
221542007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
22155
22156 * eval.c (do_autoload): Don't output any message.
22157
221582007-09-24 Juri Linkov <juri@jurta.org>
22159
22160 * emacs.c (standard_args): Change priority of "--no-splash"
22161 from 40 to 3. Add "--no-desktop" with the same priority.
22162
221632007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
22164
22165 * alloc.c (gc_sweep): Check cons cell mark bits word by word
22166 and optimize the case where they are all 1.
22167
221682007-09-23 Johannes Weiner <hannes@saeurebad.de>
22169
22170 * lisp.h (abs): Define if not defined.
22171 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
22172 Don't define `abs', since it's defined in lisp.h.
22173
221742007-09-22 Eli Zaretskii <eliz@gnu.org>
22175
22176 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
22177 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
22178 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
22179 (init_tty): Use DEV_TTY instead of "/dev/tty".
22180 [WINDOWSNT]: No need to protect from NAME arg being null.
22181
221822007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
22183
22184 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
22185 up the tty state.
22186
221872007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
22188
22189 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
22190 (gpm_tty): Change its type.
22191 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
22192 (gpm_tty): Change its type and initialize it.
22193 (Fterm_open_connection): Check the frame is indeed a tty.
22194 Use the new gpm_tty.
22195 (Fterm_close_connection): Use the new gpm_tty.
22196 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
22197 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
22198
221992007-09-21 Juanma Barranquero <lekktu@gmail.com>
22200
22201 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
22202 underline_color, to draw strike-through.
22203
222042007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
22205
22206 * lisp.h (allocate_terminal): Declare.
22207
22208 * window.c (candidate_window_p): Consider frames that are being placed
22209 by the user as somewhere between visible and iconified.
22210 (window_loop): Prefer windows on the current frame.
22211 (Fselect_window): Move the use of select-frame to the beginning so we
22212 can just delegate all the work (it'll call us back anyway).
22213
22214 * frame.c (Qdisplay_environment_variable):
22215 * frame.h (Qdisplay_environment_variable): Delete.
22216
22217 * .gdbinit (xbacktrace): Print the arg's address rather than the value
22218 of the first arg, since that value may be a union.
22219
22220 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
22221 parameter rather than Qdisplay_environment_variable. If all else
22222 fails, look for DISPLAY in initial-environment.
22223
222242007-09-21 Glenn Morris <rgm@gnu.org>
22225
22226 * Makefile.in (emacstool): Remove target.
22227 (lisp, shortlisp): Remove termdev.elc.
22228
222292007-09-21 Markus Triska <markus.triska@gmx.at>
22230
22231 * xterm.c (x_delete_display): Compile session management conditionally.
22232
222332007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
22234
22235 * callproc.c (getenv_internal_1): New function.
22236 (getenv_internal): Use it.
22237 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
22238
22239 * terminal.c (get_terminal): Don't accept ints to represent terminals.
22240 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
22241 (Fset_terminal_parameter): Work with dead terminals as well.
22242 (Fmodify_terminal_parameters): Remove.
22243
22244 * terminal.c (get_terminal): Handle terminals.
22245 Make sure the terminal returned is live.
22246 (create_terminal): Use allocate_terminal.
22247 (mark_terminals): Move to alloc.c.
22248 (delete_terminal): Use terminal->name as liveness status.
22249 NULL out fields after freeing their contents.
22250 Don't deallocate the object.
22251 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
22252 rather than an int.
22253 (Fterminal_live_p): Accept non-integer arguments.
22254 (Fterminal_list): Return terminal objects rather than an ints.
22255
22256 * alloc.c (enum mem_type): New member for `terminal' objects.
22257 (allocate_terminal): New function.
22258 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
22259 Handle terminals.
22260 (mark_terminal): New fun.
22261 (mark_terminals): Move from terminal.c.
22262
22263 * term.c (get_tty_terminal): Don't treat output_initial specially.
22264 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
22265 (delete_tty): Use terminal->name as liveness status.
22266
22267 * termhooks.h (struct terminal): Make it into a pseudovector.
22268 Remove `deleted' replaced by checking `name's nullness.
22269
22270 * print.c (print_object): Handle terminals.
22271
22272 * lisp.h (enum pvec_type): New `terminal' pseudovector.
22273 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
22274
22275 * frame.c (make_terminal_frame):
22276 * keyboard.c (tty_read_avail_input):
22277 * w32term.c (x_delete_terminal):
22278 * xfns.c (Fx_create_frame, x_create_tip_frame):
22279 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
22280
222812007-09-20 Glenn Morris <rgm@gnu.org>
22282
22283 * process.c (Fmake_network_process): Doc fix.
22284
222852007-09-19 Jason Rumney <jasonr@gnu.org>
22286
22287 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
22288
222892007-09-19 Michaël Cadilhac <michael@cadilhac.name>
22290
22291 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
22292 Fix a C warning regarding variable constness.
22293
22294 * xterm.c (handle_one_xevent): Fix a C warning.
22295
222962007-09-18 Jason Rumney <jasonr@gnu.org>
22297
22298 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
22299
223002007-09-17 Jan Djärv <jan.h.d@swipnet.se>
22301
22302 * gtkutil.c (gdpy_def): New variable.
22303 (xg_initialize): Initialize gdpy_def.
22304 (xg_display_close): If no other display exists, set gdpy_def to a
22305 new connection.
22306
223072007-09-16 Jan Djärv <jan.h.d@swipnet.se>
22308
22309 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
22310 when we have no file name for the icon.
22311 (xg_tool_bar_expose_callback): Remove.
22312 (xg_create_tool_bar): Don't connect expose signal to
22313 xg_tool_bar_expose_callback.
22314 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
22315
223162007-09-16 Andreas Schwab <schwab@suse.de>
22317
22318 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
22319 values instead of zapping them.
22320
223212007-09-14 Glenn Morris <rgm@gnu.org>
22322
22323 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
22324 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
22325 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
22326 scope and rename to omfib_buffer for clarity.
22327 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
22328
223292007-09-14 Kenichi Handa <handa@m17n.org>
22330
22331 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
22332
223332007-09-13 Jason Rumney <jasonr@gnu.org>
22334
22335 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
22336
22337 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
22338
22339 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
22340 (mac_term_init): Call here instead, passing rif.
22341
223422007-09-13 Glenn Morris <rgm@gnu.org>
22343
22344 * s/hpux.h: No longer define `static' as nothing.
22345
223462007-09-13 Johan Bockgård <bojohan@gnu.org>
22347
22348 * callint.c (Fcall_interactively): Remove unused var `fun'.
22349
223502007-09-12 Romain Francoise <romain@orebokech.com>
22351
22352 * window.c (prefer_window_split_horizontally, display_buffer):
22353 Revert 2007-09-08 change.
22354
223552007-09-12 Glenn Morris <rgm@gnu.org>
22356
22357 * alloca.c: Remove file.
22358 * Makefile.in (alloca): Do not undef.
22359 (allocaobj, alloca.o): Remove.
22360 (otherobj): Remove allocaobj.
22361 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
22362 * regex.c (C_ALLOCA): Remove all references and code that was only
22363 used when this was defined.
22364 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
22365 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
22366 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
22367
22368 * Makefile.in (SOURCES, unlock, relock): Delete.
22369
22370 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
22371 (menu_grab_callback): All uses changed.
22372
22373 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
22374 (x_reply_selection_request): All uses changed.
22375
223762007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
22377
22378 * lread.c (load_warn_old_style_backquotes): Change message to look
22379 better when it appears in the middle of byte-compiler messages.
22380
223812007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
22382
22383 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
22384
22385 * xterm.c (x_create_terminal): Add comment.
22386
22387 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
22388
223892007-09-10 Richard Stallman <rms@gnu.org>
22390
22391 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
22392
223932007-09-10 Michaël Cadilhac <michael@cadilhac.name>
22394
22395 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
22396 (DEFUN): Document `intspec', use it instead of `prompt'.
22397
22398 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
22399
22400 * data.c (Finteractive_form): If the interactive specification starts
22401 with a `(', use it as a Lisp form.
22402
22403 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
22404 name and file modes.
22405
22406 * callint.c (Fcall_interactively): Comment fixes.
22407
224082007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
22409
22410 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
22411 and compiled functions.
22412
224132007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
22414
22415 * window.c (prefer_window_split_horizontally): New variable.
22416 (display_buffer): Consider splitting window horizontally depending
22417 on prefer_window_split_horizontally.
22418
224192007-09-08 Eli Zaretskii <eliz@gnu.org>
22420
22421 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
22422
224232007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
22424
22425 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
22426
22427 * frame.c (x_set_frame_parameters): Check number is positive before
22428 using XFASTINT.
22429
22430 * window.c (freeze_window_start): Don't presume selected_window holds
22431 a window object.
22432 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
22433
224342007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
22435
22436 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
22437
224382007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
22439
22440 * window.c (Vsplit_window_preferred_function): New var.
22441 (Fdisplay_buffer): Use it.
22442 (syms_of_window): Export, and initialize it.
22443
224442007-09-06 Pixel <pixel@mandriva.com> (tiny change)
22445
22446 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
22447
224482007-09-06 Glenn Morris <rgm@gnu.org>
22449
22450 * gtkutil.c (menu_grab_callback) <cnt>:
22451 * xselect.c (x_reply_selection_request) <cnt>: Move static
22452 variable to file scope.
22453
224542007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
22455
22456 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
22457 consistent values of selected_frame and selected_window.
22458
224592007-09-04 Jason Rumney <jasonr@gnu.org>
22460
22461 * w32console.c (initialize_w32_display): Zero unused hooks.
22462
224632007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
22464
22465 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
22466 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
22467
224682007-09-04 Jason Rumney <jasonr@gnu.org>
22469
22470 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
22471 in w32console.c. Set up input. Remove XXX comments that have been
22472 confirmed as correct.
22473
22474 * s/ms-w32.h (MULTI_KBOARD): Define.
22475
22476 * w32console.c (one_and_only_w32cons): Remove.
22477 (initialize_w32_display): Take terminal argument.
22478
22479 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
22480 initialize_w32_display.
22481 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
22482
22483 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
22484
22485 * keyboard.c (discard_mouse_events): Discard it.
22486 (make_lispy_event): Translate it to a lisp event.
22487 (lispy_wheel_names): Add wheel-left and right events.
22488 (syms_of_keyboard): Enlarge wheel_syms.
22489
22490 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
22491 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
22492
22493 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
22494
22495 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
22496 from WM_MOUSEHWHEEL.
22497 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
22498
22499 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
22500 terminal.
22501
22502 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
22503 keyboard for the terminal.
22504
225052007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
22506
22507 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
22508 (Vresume_tty_hook): Rename from Vresume_tty_functions.
22509 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
22510 and resume-tty-function to resume-tty-hook.
22511 (Fsuspend_tty, Fresume_tty): Use new names.
22512
225132007-09-02 Jan Djärv <jan.h.d@swipnet.se>
22514
22515 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
22516 if it starts with "n:".
22517
225182007-08-31 Jan Djärv <jan.h.d@swipnet.se>
22519
22520 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
22521
225222007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
22523
22524 * frame.h:
22525 * frame.c (Qterm_environment_variable): Remove.
22526 (syms_of_frame): Don't init and staticpro it.
22527
22528 * callproc.c (getenv_internal): Remove special case for $TERM.
22529
22530 * callproc.c (Vinitial_environment): New variable.
22531 (set_initial_environment): Initialize it.
22532 (syms_of_callproc): Declare it.
22533 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
22534 TERM under which a process runs is never related to the TERM in which
22535 Emacs is running.
22536
225372007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
22538
22539 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
22540 * s/darwin.h: ... do it here.
22541
225422007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
22543
22544 * lisp.h (set_initial_environment): Rename from set_global_environment.
22545
22546 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
22547 removed by mistake on the multi-tty branch.
22548
22549 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
22550 (Fmodify_frame_parameters): Return a value.
22551
22552 * image.c (png_load): Comment-out var only used in commented-out code.
22553
22554 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
22555 before passing it to mark_object.
22556
22557 * xfaces.c (internal_resolve_face_name): Return a value.
22558 (internal_resolve_face_name, resolve_face_name_error): Comment out.
22559
22560 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
22561 (x_icon): Comment-out var only used in commented-out code.
22562
225632007-08-29 Romain Francoise <romain@orebokech.com>
22564
22565 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
22566 QUIT hasn't been provided.
22567
225682007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
22569
22570 * callproc.c (child_setup, getenv_internal): Use the
22571 display-environment-variable and term-environment-variable frame params.
22572 (set_initial_environment): Initialise Vprocess_environment.
22573
22574 * config.in: Disable multi-keyboard support on a mac.
22575
22576 * frame.c (Qterm_environment_variable)
22577 (Qdisplay_environment_variable): New variables.
22578 (syms_of_frame): Intern and staticpro them.
22579 (Fmake_terminal_frame): Disable output method test.
22580
22581 * frame.h: Declare them here.
22582
22583 * macfns.c (x_set_mouse_color): Get rif from the frame.
22584 (x_set_tool_bar_lines): Don't use updating_frame.
22585 (mac_window): Add 2 new parameters for consistency with other systems.
22586 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
22587 frame parameters following what is done in X11 and w32. Don't use
22588 FRAME_MAC_DISPLAY_INFO.
22589 (Fx_open_connection, start_hourglass): Remove window-system check.
22590 (x_create_tip_frame): Get the keyboard from the terminal.
22591
22592 * macmenu.c: Reorder includes.
22593 (Fx_popup_menu): Use terminal specific mouse_position_hook.
22594
22595 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
22596 terminal parameter.
22597 (x_clear_frame): Add a frame parameter.
22598 (note_mouse_movement): Get rif from the frame.
22599 (mac_term_init): Initialize the terminal.
22600 (mac_initialize): Make static and move terminal initialization ...
22601 (mac_create_terminal): ... to this new function.
22602
22603 * macterm.h (struct mac_display_info): Add terminal.
22604 (mac_initialize): Delete declaration.
22605
22606 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
22607
22608 * sysdep.c: Comment out text after #endif.
22609
22610 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
22611 is defined. Better initialize ttys in windows. Use terminal
22612 specific mouse_position_hook.
22613
22614 * termhooks.h (union display_info): Add mac_display_info.
22615
22616 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
22617 Set the default minibuffer frame, window_system and the rest of the
22618 frame parameters following what is done in X11.
22619
22620 * w32term.c (w32_initialize): Make static.
22621
22622 * xselect.c (x_handle_selection_clear): Only access
22623 terminal->kboard when MULTI_KBOARD is defined.
22624
22625 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
22626 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
22627
226282007-08-29 Jason Rumney <jasonr@gnu.org>
22629
22630 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
22631 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
22632
22633 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
22634 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
22635
22636 * keyboard.c (restore_kboard_configuration): Only define when
22637 MULTI_KBOARD defined.
22638
22639 * makefile.w32-in: Update dependancies from Makefile.in.
22640 (OBJ1): Add terminal.$(O)
22641
22642 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
22643 Don't define function body.
22644 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
22645
22646 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
22647
22648 * w32.c (request_sigio, unrequest_sigio): Remove.
22649
22650 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
22651 (w32con_clear_frame, w32con_clear_end_of_line)
22652 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
22653 (w32con_delete_glyphs, w32con_set_terminal_window)
22654 (scroll_line, w32_sys_ring_bell): Add frame arg.
22655 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
22656 Add terminal arg.
22657 (PICK_FRAME): Remove.
22658 (w32con_write_glyphs): Use frame specific terminal coding.
22659 (one_and_only_w32cons): New global variable.
22660 (initialize_w32_display): Use it for storing hooks.
22661 (create_w32cons_output): New function.
22662
22663 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
22664 arg a frame.
22665
22666 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
22667 Set window_system.
22668 (x_set_tool_bar_lines): Don't use updating_frame.
22669 (Fx_create_frame): Set terminal and ref count.
22670 (Fx_open_connection): Remove window-system check.
22671
22672 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
22673
22674 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
22675 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
22676 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
22677 Add frame arg.
22678 (x_delete_terminal, w32_create_terminal): New functions.
22679 (w32_term_init): Create a terminal.
22680 (w32_initialize): Move terminal specific initialization to
22681 w32_create_terminal.
22682
22683 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
22684 (w32_clear_rect, w32_clear_area): Use background from frame.
22685 (w32_display_info): Add terminal.
22686 (w32_sys_ring_bell, x_delete_display): Declare here.
22687
22688 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
22689
22690 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
22691
226922007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
22693
22694 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
22695 Fix get_named_tty calls for the controlling tty.
22696
226972007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
22698
194d44e7 22699 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
22700
227012007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
22702
22703 * term.c (tty_insert_glyphs): Add missing first parameter.
22704
227052007-08-29 Károly Lőrentey <karoly@lorentey.hu>
22706
22707 * buffer.c (Fbuffer_list, Fbury_buffer):
22708 Take frame->buried_buffer_list into account.
22709
22710 * cm.c (current_tty): New variable, for cmputc().
22711 (cmputc): Use it.
22712 (cmcheckmagic): Add tty parameter, look up terminal streams there.
22713 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
22714 (cmgoto): Add tty parameter. Pass it on to calccost().
22715 Use emacs_tputs() instead of tputs().
22716
22717 * cm.h (emacs_tputs): New macro to set current_tty, and then call
22718 tputs().
22719 (current_tty): New variable, for cmputc().
22720 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
22721
22722 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
22723 (internal_condition_case, internal_condition_case_1)
22724 (internal_condition_case_2): Don't abort when x_catching_errors.
22725
22726 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
22727 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
22728 prevent crashes caused by bogus longjmps in read_char.
22729
22730 * keymap.h (Fset_keymap_parent): Add EXFUN.
22731
22732 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
22733 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
22734 Remove redundant definition.
22735
22736 * macfns.c (x_set_mouse_color, x_make_gc):
22737 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22738
22739 * w32term.c (x_free_frame_resources):
22740 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22741 (w32_initialize): Use the accessor macros for terminal characteristics.
22742
22743 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
22744 Use the accessor macros for terminal characteristics.
22745 * msdos.c (internal_terminal_init): Use the accessor macros for
22746 terminal characteristics.
22747 (ScreenVisualBell, internal_terminal_init):
22748 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22749
22750 * termopts.h (no_redraw_on_reenter): Declare.
22751
22752 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
22753 (mark_terminals, mark_ttys): Declare.
22754 (Fgarbage_collect): Call them.
22755 (mark_object): Mark buried_buffer_list.
22756
22757 * prefix-args.c: Include stdlib.h for exit.
22758
22759 * syssignal.h: Add comment.
22760
22761 * indent.c: Include stdio.h.
22762
22763 * window.h (Vinitial_window_system): Declare.
22764 (Vwindow_system): Delete declaration.
22765
22766 * fontset.c (Finternal_char_font): Use FRAME_RIF.
22767
22768 * image.c (lookup_image): Don't initialize `c' until the xasserts
22769 have been run.
22770
22771 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
22772 FRAME_FOREGROUND_PIXEL.
22773
22774 * print.c (print_preprocess): Don't lose print_depth levels while
22775 iterating.
22776
22777 * widget.c (update_from_various_frame_slots):
22778 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22779
22780 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
22781 frames.
22782 (window_internal_height): Remove bogus make_number call.
22783 (init_window_once): Call make_terminal_frame with two zero parameters.
22784
22785 * fileio.c (Fread_file_name): Update comment.
22786
22787 * callint.c (Fcall_interactively):
22788 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
22789 Make sure it is correctly unwound.
22790
22791 * xsmfns.c (x_session_close): New function.
22792
22793 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
22794 Delete declarations.
22795
22796 * xterm.h: Remove declaration for x_fully_uncatch_errors.
22797 (x_output): Remove background_pixel and foreground_pixel fields.
22798 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
22799 (x_delete_device, x_session_close): Declare.
22800
22801 * lread.c: Include setjmp.h. Update declaration of `read_char'.
22802 (read_filtered_event): Call `read_char' with a local
22803 `wrong_kboard_jmpbuf'.
22804
22805 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
22806 Don't call single_kboard_state. Use FRAME_RIF.
22807
22808 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
22809 systems.
22810
22811 * lisp.h (set_process_environment): Rename to `set_global_environment'.
22812 (Fframe_with_environment, Fset_input_meta_mode)
22813 (Fset_quit_char): EXFUN.
22814 (x_create_device, tty_output, terminal, tty_display_info): Declare.
22815 (init_sys_modes, reset_sys_modes): Update prototypes.
22816 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
22817
22818 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
22819 Vlocal_key_translation_map, and Vkeyboard_translate_table.
22820 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
22821 Delete declarations.
22822 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
22823 (temporarily_switch_to_single_kboard, tty_read_avail_input):
22824 New declarations.
22825
22826 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
22827 already does that during init_display(). Call syms_of_keymap
22828 before syms_of_keyboard. Call `syms_of_terminal'.
22829 Call set_initial_environment, not set_process_environment.
22830 (shut_down_emacs): Call reset_all_sys_modes() instead of
22831 reset_sys_modes().
22832
22833 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
22834 (internal_resolve_face_name, resolve_face_name_error): New functions.
22835 (resolve_face_name): Protect against loops and errors thrown by Fget.
22836 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
22837 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
22838
22839 * scroll.c: Replace CURTTY() with local variables throughout the
22840 file (where applicable).
22841 (calculate_scrolling, calculate_direct_scrolling)
22842 (scrolling_1, scroll_cost): Use the accessor macros for terminal
22843 characteristics.
22844
22845 * keymap.c (Vfunction_key_map): Remove.
22846 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
22847 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
22848 (Vkey_translation_map): Remove.
22849 (syms_of_keymap): Remove DEFVAR for key-translation-map.
22850 (Fdescribe_buffer_bindings)
22851 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
22852 Update for terminal-local key-translation-map.
22853
22854 * Makefile.in (callproc.o): Update dependencies.
22855 (lisp, shortlisp): Add termdev.elc.
22856 (obj): Add terminal.o.
22857 (terminal.o): Add dependencies.
22858 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
22859 (data.o, fns.o): Add termhooks.h dependency.
22860 (SOME_MACHINE_LISP): Add dnd.elc.
22861 (minibuf.o): Fix typo.
22862 Update dependencies.
22863
22864 * data.c (do_symval_forwarding, store_symval_forwarding)
22865 (find_symbol_value): Use the selected frame's keyboard, not
22866 current_kboard.
22867
22868 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
22869 Vwindow_system.
22870
22871 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
22872 Fmenu_bar_open.
22873 (syms_of_xmenu): Update defsubr.
22874 (mouse_position_for_popup, Fx_popup_menu)
22875 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
22876 (set_frame_menubar, free_frame_menubar)
b97439ce 22877 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
22878 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
22879 an X frame.
22880
22881 * xselect.c (x_own_selection): Abort if not an X frame.
22882 (some_frame_on_display): Check if it is an X frame.
22883 (x_handle_selection_clear): Deal with MULTI_KBOARD.
22884
22885 * coding.c: Include frame.h and termhooks.h.
22886 (terminal_coding, keyboard_coding): Delete.
22887 (Fset_terminal_coding_system_internal)
22888 (Fset_keyboard_coding_system_internal)
22889 (Fkeyboard_coding_system)
22890 (Fterminal_coding_system): Add a terminal parameter.
22891 Get terminal_coding from the terminal.
22892 (init_coding_once): Don't call setup_coding_system here.
22893
22894 * dispextern.h (set_scroll_region, turn_off_insert)
22895 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
22896 (tty_clear_end_of_line, tty_setup_colors)
22897 (delete_tty, updating_frame)
22898 (produce_special_glyphs, produce_glyphs, write_glyphs)
22899 (insert_glyphs): Remove.
22900 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
22901 (tty_turn_off_highlight, get_tty_size): Add declaration.
22902 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
22903
22904 * frame.h (enum output_method): Add output_initial.
22905 (struct x_output): Delete.
22906 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
22907 Access foreground_pixel and background_pixel directly from the frame.
22908 (tty_display): Delete.
22909 (struct frame): Add buried_buffer_list, foreground_pixel,
22910 background_pixel and terminal. Delete kboard.
22911 (union output_data): Add tty.
22912 (FRAME_KBOARD): Get the kboard from the terminal.
22913 (FRAME_INITIAL_P): New macro.
22914 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
22915 (Qterm_environment_variable, Qdisplay_environment_variable)
22916 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
22917 New declarations.
22918
22919 * termchar.h (tty_output, tty_display_info): New structures.
22920 (tty_list): Declare.
22921 (FRAME_TTY, CURTTY): New macros.
22922 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
22923 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
22924 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
22925 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
22926
22927 * callproc.c: Include frame.h and termhooks.h, for terminal
22928 parameters.
22929 (add_env): New function.
22930 (child_setup): Use it.
22931 (child_setup, getenv_internal): Handle the new Vprocess_environment.
22932 (getenv_internal): Fix get_terminal_param call.
22933 (Fgetenv_internal, egetenv): Update doc.
22934 (syms_of_callproc): Initialize Vprocess_environment to nil.
22935 Register and initialize them. Remove obsolete defvars. Update doc
22936 strings.
22937 (child_setup): Handle Vlocal_environment_variables.
22938 (getenv_internal): Add terminal parameter.
22939 Handle Vlocal_environment_variables.
22940 (Fgetenv_internal): Add terminal parameter.
22941 (child_setup, getenv_internal, Fgetenv_internal): Store the local
22942 environment in a frame (not terminal) parameter. Update doc strings.
22943 (set_initial_environment): Rename from set_global_environment.
22944 Store Emacs environment in initial frame parameter.
22945
22946 * xdisp.c (redisplay_internal): Update references to
22947 `previous_terminal_frame'.
22948 (display_mode_line, Fformat_mode_line): Replace calls to
22949 `push_frame_kboard' with `push_kboard'.
22950 (get_glyph_string_clip_rects): Add extra parentheses and
22951 braces to prevent compiler warnings.
22952 (calc_pixel_width_or_height): Add xassert to check that the
22953 frame is alive. Don't call `lookup_image' on a termcap frame.
22954 (message2_nolog, message3_nolog, redisplay_internal)
22955 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
22956 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
22957 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
22958 (Fx_display_pixel_width, Fx_display_pixel_height)
22959 (Fx_display_planes, Fx_display_color_cells)
22960 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
22961 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
22962 (Fx_display_backing_store, Fx_display_visual_class)
22963 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
22964 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
22965
22966 * xfns.c (x_set_foreground_color x_set_background_color)
22967 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
22968 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22969 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
22970 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
22971 terminal that is being deleted.
22972 (Fx_create_frame): Use `store_frame_param' to set `window-system'
22973 frame parameter, and make sure it overrides any user-supplied setting.
22974 (Fx_close_connection, Fx_synchronize): Unify argument names with
22975 the rest of the DEFUNs.
22976
22977 * dispnew.c (Fsend_string_to_terminal): Update call to
22978 `get_tty_terminal'.
22979 (Fredraw_frame, Fsend_string_to_terminal)
22980 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
22981 FRAME_TERMCAP_P and FRAME_TTY.
22982 (window_change_signal): Don't believe width/height values that are
22983 impossibly small.
22984 (Vinitial_window_system): Rename from Vwindow_system.
22985 (termscript, Wcm, rif): Delete.
22986
22987 * termhooks.h (struct terminal): New struct containing the
22988 previously global text display hooks and new members NAME,
22989 DELETED and PARAM_ALIST.
22990 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
22991 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
22992 (FRAME_RIF): New macros.
22993 (get_terminal_param, get_device): New declarations.
22994 (termscript): Delete declaration.
22995
22996 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
22997 (XTflash, x_free_frame_resources, x_scroll_bar_create)
22998 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
22999 FRAME_FOREGROUND_PIXEL.
23000 (x_fully_uncatch_errors): Disable definition.
23001 (x_scroll_bar_expose): Fix reference to foreground pixel.
23002 (XTread_socket): Disable loop on all X displays.
23003 (x_delete_terminal): Don't set terminal->deleted and let
23004 delete_terminal delete the frames on the terminal.
23005 (x_delete_display): Doc update to reflect changes in
23006 delete_terminal.
23007 (x_display_info) <terminal>: Move member earlier in the struct.
23008 (deleting_tty): Remove old variable.
23009 (Fsuspend_tty): Call clear_tty_hooks.
23010 (Fresume_tty, init_tty): Call set_tty_hooks.
23011 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
23012 errors on X frames.
23013 (x_catch_errors_unwind): Abort if x_error_message is NULL.
23014 (handle_one_xevent): Initialize `f' to NULL.
23015 (x_delete_terminal, x_create_terminal): New functions.
23016 (XTset_terminal_modes, XTreset_terminal_modes)
23017 (XTread_socket, x_connection_closed, x_term_init)
23018 (x_term_init, x_delete_display): Add terminal parameter.
23019 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
23020 X connections.
23021
23022 * frame.c: Include termchar.h.
23023 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
23024 (Qwindow_system, Qenvironment, Qterm_environment_variable)
23025 (Qdisplay_environment_variable): New vars.
23026 (Fframep): Deal with output_initial.
23027 (Fframe-live-p): Doc fix.
23028 (Fwindow-system): New function.
23029 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
23030 (make_terminal_frame): Don't create frames on a terminal that is
23031 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23032 (store_frame_param): Check for found_for_frame before calling XFRAME.
23033 (Fmake_terminal_frame): Handle NULL tty names correctly.
23034 (syms_of_frame): Enhance doc string of `default-frame-alist'.
23035 (Fdelete_frame): Remove unused variable `count'. Don't allow other
23036 frames to refer to a deleted frame in their 'environment parameter.
23037 (Fframe_with_environment): New function.
23038 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
23039 (get_future_frame_param): New function.
23040 (Fmake_terminal_frame): Use it.
23041 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
23042
23043 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
23044 * sysdep.c (reset_sys_modes): Update for renames.
23045
23046 * keyboard.c (tty_read_avail_input): New function.
23047 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
23048 (syms_of_keyboard): Defsubr them.
23049 (Fset_input_meta_mode, Fset_quit_char): New functions.
23050 (Fset_input_mode): Split to above functions.
23051 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
23052 parameter. Use it in call to `read_char'.
23053 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
23054 Set wrong_kboard_jmpbuf correctly in recursive calls.
23055 Use current_kboard to access Vkeyboard_translate_table.
23056 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
23057 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
23058 Update longjmp invocations. Remember the original current_kboard,
23059 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
23060 changes it. Comment out unnecessary calls to
23061 `record_single_kboard_state' and `any_kboard_state'.
23062 Update recursive calls.
23063 (wrong_kboard_jmpbuf): Remove global variable.
23064 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
23065 Handle deleted interrupted_kboards correctly; that is a legal
23066 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
23067 and read_char calls. Abort if interrupted_kboard died in read_char.
23068 (any_kboard_state, single_kboard_state)
23069 (push_frame_kboard): Remove function.
23070 (pop_kboard): Switch out of single_kboard mode if the kboard has
23071 been deleted. Remove unused variable. Help debugging by not
23072 changing current_kboard unnecessarily. Set current_kboard to the
23073 kboard of the selected frame when the stored kboard object has
23074 been deleted before pop_kboard.
23075 (temporarily_switch_to_single_kboard): Change first parameter to a
23076 frame pointer. Throw an error when caller wants to change kboards
23077 while in single_kboard mode. Don't push_kboard if we weren't in
23078 single kboard state. Don't pop_kboard if we popped into any
23079 kboard state.
23080 (restore_kboard_configuration): Abort if pop_kboard changed the
23081 kboard in single_kboard mode. Call pop_kboard only after setting
23082 up single_kboard mode.
23083 (Frecursive_edit): Switch to single_kboard mode only in nested
23084 command loops.
23085 (cmd_error, command_loop, command_loop_1, timer_check):
23086 Comment out unnecessary call to `any_kboard_state' and
23087 `record_single_kboard_state'.
23088 (delete_kboard): Exit single_kboard mode if we have just deleted
23089 that kboard. Use FRAME_KBOARD.
23090 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
23091 `fatal_error_signal'.
23092 (record_single_kboard_state): Don't push_kboard if we weren't in
23093 single kboard state. Don't pop_kboard if we popped into any
23094 kboard state.
23095 (push_frame_kboard): Rename to push_kboard.
23096 (kbd_buffer_get_event): Use FRAME_TERMINAL.
23097 (read_avail_input): Read input from all terminals.
23098 (mark_kboards): Also mark Vkeyboard_translate_table.
23099 (kbd_buffer_store_event_hold): Simplify condition.
23100 (read_key_sequence): Reinitialize fkey and keytran at each replay.
23101 (Vkeyboard_translate_table): Move to struct kboard.
23102 (init_kboard): Initialize Vkeyboard_translate_table.
23103 (syms_of_keyboard): Use DEFVAR_KBOARD to define
23104 Vkeyboard_translate_table. Update doc strings. Update docs of
23105 local-function-key-map and function-key-map.
23106
23107 * terminal.c: New file.
23108
23109 * term.c: Include errno.h.
23110 (Vring_bell_function, device_list, initial_device)
23111 (next_device_id, ring_bell, update_begin, update_end)
23112 (set_terminal_window, cursor_to, raw_cursor_to)
23113 (clear_to_end, clear_frame, clear_end_of_line)
23114 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
23115 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
23116 (syms_of_term): Move their initialization to terminal.c.
23117 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
23118 (Ftty_display_color_cells)
23119 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
23120 (clear_tty_hooks, set_tty_hooks)
23121 (init_tty, maybe_fatal): New functions.
23122 (Ftty_type): Return nil if terminal is not on a tty instead of
23123 throwing an error. Doc update.
23124 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
23125 Doc update. Initialize new subrs and variables.
23126 (delete_tty): Use terminal->deleted.
23127 (tty_set_terminal_modes): Rename from set_terminal_modes.
23128 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
23129 (set_scroll_region): Rename to `tty_set_scroll_region'.
23130 (turn_on_insert): Rename to `tty_turn_on_insert'.
23131 (turn_off_insert): Rename to `tty_turn_off_insert'.
23132 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
23133 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
23134 (toggle_highligh): Rename to `tty_toggle_highlight'.
23135 (background_highlight): Rename to `tty_background_highlight'.
23136 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
23137 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
23138 (tty_set_scroll_region, tty_background_highlight)
23139 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
23140 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
23141 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
23142 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
23143 Add static modifier.
23144 (tty_reset_terminal_modes, tty_set_terminal_window)
23145 (tty_set_scroll_region, tty_background_highlight)
23146 (tty_highlight_if_desired, tty_cursor_to)
23147 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
23148 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
23149 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
23150 renames.
23151
231522007-08-28 Jan Djärv <jan.h.d@swipnet.se>
23153
23154 * keyboard.c: Qrtl is new.
23155 (parse_tool_bar_item): Handle :rtl keyword.
23156 (syms_of_keyboard): Intern :rtl keyword.
23157
23158 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
23159
23160 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
23161 so no Lisp code is executed.
23162 (file_for_image, find_rtl_image): New functions.
23163 (xg_get_image_for_pixmap): Use file_for_image.
23164 (update_frame_tool_bar): If direction is RTL, use RTL image if
23165 defined. Use Gtk stock images if defined.
23166
231672007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23168
23169 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
23170 for nonexistent or zero-width glyph in composition glyph.
23171
231722007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
23173
23174 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
23175
23176 * xdisp.c (Finvisible_p): New function.
23177 (syms_of_xdisp): defsubr it.
23178
231792007-08-24 Juanma Barranquero <lekktu@gmail.com>
23180
23181 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
23182 Doc fixes.
23183
231842007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23185
23186 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
23187
231882007-08-24 Martin Rudalics <rudalics@gmx.at>
23189
23190 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
23191 whether decoding has modified buffer contents.
23192
231932007-08-24 Jason Rumney <jasonr@gnu.org>
23194
23195 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
23196 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
23197 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
23198 (init_svg_functions) [HAVE_NTGUI]: New function.
23199 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
23200 (svg_load_image): Use them.
23201 (svg_load_image) [HAVE_NTGUI]: Implement background.
23202
232032007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23204
23205 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
23206 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
23207 (LIBX): Remove @RSVG_LIBS@.
23208 (LIBES): Add $(RSVG_LIBS).
23209
23210 * image.c (svg_load_image): Blend with specified background if exists.
23211 Use IMAGE_BACKGROUND. Add Mac OS Support.
23212
23213 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
23214 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
23215 Remove macros.
23216 [MAC_OSX] (socket_callback): Do nothing.
23217 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
23218 ReceiveNextEvent.
23219 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
23220 socket_callback.
23221 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
23222
232232007-08-22 Glenn Morris <rgm@gnu.org>
23224
23225 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
23226
232272007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
23228
23229 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
23230
23231 * image.c: Add support for SVG images. Some additional comments
23232 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
23233 (svg_image_p): New function to test for SVG image.
23234 (svg_load): New function to load SVG image.
23235 (svg_load_image): New function, helper for svg_load.
23236 (Qsvg): New Lisp_object.
23237 (svg_keyword_index): New enum.
23238 (svg_format): New static `image_keyword' struct.
23239 (svg_type): New static `image_type' struct.
23240 (librsvg/rsvg.h): Include it.
23241
232422007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
23243
23244 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
23245
232462007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
23247
23248 * lread.c (Qold_style_backquotes): New var.
23249 (syms_of_lread): Init and staticpro it.
23250 (load_warn_old_style_backquotes): New fun.
23251 (Fload): Use them to warn about old style backquotes.
23252 (end_of_file_error, Fload): Remove unused vars.
23253
23254 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
23255
23256 * lread.c (Vold_style_backquotes): New var.
23257 (syms_of_lread): Init and export it to Elisp.
23258 (read1): Set it when we find an old-style (back)quote.
23259
232602007-08-22 Jason Rumney <jasonr@gnu.org>
23261
23262 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
23263
232642007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
23265
23266 * puresize.h (BASE_PURESIZE): Increase to 1140000.
23267
232682007-08-19 Richard Stallman <rms@gnu.org>
23269
23270 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
23271
232722007-08-19 Andreas Schwab <schwab@suse.de>
23273
23274 * alloc.c (pure): Round PURESIZE up.
23275
232762007-08-17 Jan Djärv <jan.h.d@swipnet.se>
23277
23278 * xterm.c (handle_one_xevent): Remove check that mouse click is in
23279 active frame.
23280
232812007-08-16 Richard Stallman <rms@gnu.org>
23282
23283 * eval.c (Fcommandp): Add parens to clarify.
23284
23285 * minibuf.c (Fall_completions): Use enum for type of table.
23286
23287 * emacs.c (USAGE2): Improve text.
23288
232892007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
23290
23291 * term.c (tty_default_color_capabilities): Declare static
23292 variables in file scope, to avoid HPUX compiler problem.
23293
232942007-08-13 Jan Djärv <jan.h.d@swipnet.se>
23295
23296 * gtkutil.c (update_frame_tool_bar): Use -1 as index
23297 to gtk_toolbar_insert.
23298
232992007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
23300
23301 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
23302
23303 * insdel.c (reset_var_on_error): New fun.
23304 (signal_before_change, signal_after_change):
23305 Use it to reset (after|before)-change-functions to nil in case of error.
23306 Bind inhibit-modification-hooks to t.
23307 Don't bind (after|before)-change-functions to nil while they run.
23308
233092007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23310
23311 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
23312 filling pixmap with stippled background.
23313
233142007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23315
23316 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
23317 Don't use invisible frame as parent window for repositioning.
23318
233192007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
23320
23321 * print.c (new_backquote_output): Rename from old_backquote_output.
23322 (print): Inverse its logic (according to its name) so as to match the
23323 behavior of new_backquote_flag in lread.c.
23324
233252007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23326
23327 * gmalloc.c (posix_memalign): New function.
23328
23329 * macterm.c (frame_highlight, frame_unhighlight): Don't call
23330 ActivateControl/DeactivateControl here.
23331 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
23332 frame-notice-user-settings is non-nil.
23333 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
23334 for kEventParamFMFontStyle.
23335 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
23336 mac_pass_command_to_system and mac_pass_control_to_system here.
23337 (XTread_socket): Call ActivateControl/DeactivateControl here.
23338 (XTread_socket) [TARGET_API_MAC_CARBON]:
23339 Check mac_pass_command_to_system and mac_pass_control_to_system here.
23340 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
23341 for window repositioning.
23342
233432007-08-08 Glenn Morris <rgm@gnu.org>
23344
23345 * Replace `iff' in doc-strings and comments.
23346
233472007-08-07 Chong Yidong <cyd@stupidchicken.com>
23348
23349 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
23350
233512007-08-07 Martin Rudalics <rudalics@gmx.at>
23352
23353 * fileio.c (Finsert_file_contents): Run format-decode and
23354 after_insert_file_functions on entire buffer when REPLACE is
23355 non-nil and inhibit modification_hooks and point_motion_hooks.
23356 For consistency, run after_insert_file_functions iff something
23357 got inserted. Move signal_after_change and update_compositions
23358 after code running after_insert_file_functions. Make sure that
23359 undo_list doesn't record intermediate steps of the decoding process.
23360
233612007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23362
23363 * emacs.c (main)
23364 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
23365 Call malloc_enable_thread on interactive startup.
23366
23367 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
23368 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
23369 [USE_PTHREAD]: Conditionalize with it.
23370 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
23371 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
23372 New functions.
23373
233742007-08-06 Chong Yidong <cyd@stupidchicken.com>
23375
23376 * xdisp.c (redisplay_window): When restoring original buffer
23377 position, make sure it is still valid.
23378
23379 * image.c (png_load): Ignore png-supplied background color.
23380
233812007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23382
23383 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
23384 Use kCFAbsoluteTimeIntervalSince1970.
23385
23386 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
23387 New variable.
23388 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
23389 event loop should be quit.
23390 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
23391 Quit dialog event loop if quit_dialog_event_loop is set.
23392
23393 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
23394 (Selection): New typedef. Use instead of ScrapRef.
23395 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
23396 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
23397 (mac_clear_selection): Rename from clear_scrap.
23398 (get_flavor_type_from_symbol): New argument SEL and subsume function of
23399 scrap_has_target_type. All uses changed.
23400 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
23401 (mac_selection_has_target_p): New functions.
23402 (mac_put_selection_value): Rename from put_scrap_string.
23403 (mac_get_selection_value): Rename from get_scrap_string.
23404 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
23405 (put_scrap_private_timestamp, scrap_has_target_type)
23406 (get_scrap_private_timestamp): Remove functions.
23407 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
23408 (x_own_selection, x_get_local_selection):
23409 Use mac_valid_selection_value_p.
23410 (x_own_selection): Don't use put_scrap_private_timestamp.
23411 Record OWNERSHIP-INFO into Vselection_alist instead.
23412 (x_get_local_selection): Don't check type if request is local.
23413 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
23414 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
23415
234162007-08-04 Jan Djärv <jan.h.d@swipnet.se>
23417
23418 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
23419 add comment explaining why.
23420
234212007-08-03 Richard Stallman <rms@gnu.org>
23422
23423 * fileio.c (Fvisited_file_modtime): Use make_time.
23424
234252007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
23426
23427 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
23428 build.
23429
234302007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
23431
23432 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
23433
234342007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
23435
23436 * puresize.h (BASE_PURESIZE): Increase to 1130000.
23437
234382007-07-30 Richard Stallman <rms@gnu.org>
23439
23440 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
23441
234422007-07-29 Jan Djärv <jan.h.d@swipnet.se>
23443
23444 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
23445
234462007-07-28 Nick Roberts <nickrob@snap.net.nz>
23447
23448 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
23449 remote default-directory.
23450
23451 * buffer.c (mode-line-format): Update doc string.
23452
234532007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23454
23455 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
23456 scroll bar gap.
23457 (x_scroll_bar_create): Set bar->fringe_extended_p.
23458 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
23459 on frame edge. Check fringe background extension. Don't clear
23460 extended fringe background area.
23461
23462 * w32term.h (struct scroll_bar): New member fringe_extended_p.
23463 (w32_fill_area): Enclose multiple statements with do ... while (0).
23464
23465 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
23466 Extend fringe background to scroll bar gap.
23467 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
23468 Set bar->fringe_extended_p.
23469 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
23470 Put leftmost/rightmost scroll bars on frame edge. Check fringe
23471 background extension. Don't clear extended fringe background area.
23472
23473 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
23474 New member fringe_extended_p.
23475
234762007-07-25 Glenn Morris <rgm@gnu.org>
23477
23478 * Relicense all FSF files to GPLv3 or later.
23479
23480 * COPYING: Switch to GPLv3.
23481
234822007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
23483
23484 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
23485
23486 * data.c (Finteractive_form): Check for the presence of an
23487 `interactive-form' symbol property more thoroughly.
23488
23489 * data.c (Finteractive_form): Use an `interactive-form' property if
23490 present, analogous to the function-documentation property.
23491
234922007-07-24 Jason Rumney <jasonr@gnu.org>
23493
23494 * w32fns.c (x_real_positions): Get real position from OS instead of
23495 calculating it.
23496
234972007-07-23 Jason Rumney <jasonr@gnu.org>
23498
23499 * filelock.c (current_lock_owner): Allow for @ sign in username.
23500
235012007-07-22 Nick Roberts <nickrob@snap.net.nz>
23502
23503 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
23504 remote default-directory.
23505
23506 * buffer.c (mode-line-format): Describe above case in doc string.
23507
235082007-07-20 Eli Zaretskii <eliz@gnu.org>
23509
23510 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
23511 Define if not defined.
23512
235132007-07-18 Jason Rumney <jasonr@gnu.org>
23514
23515 * w32proc.c (w32_executable_type): Handle 64 bit executables.
23516
235172007-07-18 Richard Stallman <rms@gnu.org>
23518
23519 * data.c (Fsetq_default): Doc fix.
23520
23521 * eval.c (Fsetq): Doc fix.
23522
235232007-07-18 Juanma Barranquero <lekktu@gmail.com>
23524
23525 * coding.c (Ffind_operation_coding_system):
23526 * eval.c (For, Fand): Doc fixes.
23527 Reported by Johan Bockgård.
23528
235292007-07-18 Jan Djärv <jan.h.d@swipnet.se>
23530
23531 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
23532
23533 * xterm.h: Declare x_ewmh_activate_frame.
23534
23535 * xterm.c (x_ewmh_activate_frame): New function.
23536 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
23537
235382007-07-17 Martin Rudalics <rudalics@gmx.at>
23539
23540 * window.c (Fdisplay_buffer): If largest or LRU window is the
23541 only window, split it even if it is not eligible for splitting.
23542 This restores the original behavior broken by the 2007-07-15
23543 change.
23544
235452007-07-17 Glenn Morris <rgm@gnu.org>
23546
23547 * abbrev.c (abbrev_check_chars): New function.
23548 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
23549 Call abbrev_check_chars to check abbrev characters are word
23550 constituents. Doc fix.
23551
235522007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
23553
23554 * process.c (Fstart_process, Fmake_network_process)
23555 (read_process_output): Fix up last changes.
23556
235572007-07-16 Eli Zaretskii <eliz@gnu.org>
23558
23559 * makefile.w32-in (clean): Don't delete *~.
23560
235612007-07-16 Andreas Schwab <schwab@suse.de>
23562
23563 * window.c (Fdisplay_buffer): Use NILP.
23564 (Fset_window_scroll_bars): Likewise.
23565
235662007-07-15 Martin Rudalics <rudalics@gmx.at>
23567
23568 * window.c (window_min_size_2): New function.
23569 (window_min_size_1, size_window, Fdisplay_buffer)
23570 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
23571 windows without mode- or header-lines when window-min-height is
23572 too small.
23573 (size_window): Reset nodelete_p after testing it, following an
23574 earlier note by Kim F. Storm.
23575 (display_buffer): Do not set split_height_threshold to twice the
23576 value of window_min_height to avoid changing the value of a
23577 customizable variable. Rather explicitly check whether the
23578 height of the window that shall be splitted is at least as large
23579 as split_height_threshold.
23580 (Fwindow_full_width_p): New defun.
23581 (syms_of_window): Defsubr it.
23582
23583 * window.h: Add EXFUN for Fwindow_full_width_p.
23584
235852007-07-14 Jason Rumney <jasonr@gnu.org>
23586
23587 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
23588
235892007-07-14 Richard Stallman <rms@gnu.org>
23590
23591 * eval.c (maybe_call_debugger): New function.
23592 (find_handler_clause): Use maybe_call_debugger.
23593 Call it when the handler says `debug'.
23594 Eliminate DEBUGGER_VALUE_PTR.
23595 (Fsignal): Eliminate debugger_value.
23596 (Qdebug): New variable.
23597 (syms_of_eval): Initialize it.
23598
235992007-07-14 Juanma Barranquero <lekktu@gmail.com>
23600
23601 * eval.c (Fprogn):
23602 * keyboard.c (Ftrack_mouse):
23603 * print.c (Fwith_output_to_temp_buffer):
23604 * window.c (Fsave_window_excursion): Doc fix.
23605
236062007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
23607
23608 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
23609
236102007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
23611
23612 * process.h (struct Lisp_Process): Turn slots infd, outfd,
23613 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
23614 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
23615 read_output_delay, and read_output_skip from Lisp_Objects to ints.
23616 Remove unused encoding_carryover.
23617 * process.c: Adjust all functions accordingly.
23618
236192007-07-12 Richard Stallman <rms@gnu.org>
23620
23621 * term.c: Include unistd.h only if HAVE_UNISTD_H.
23622
236232007-07-11 Jason Rumney <jasonr@gnu.org>
23624
23625 * makefile.w32-in (LIBS): Include OLE32.
23626
23627 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
23628 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
23629
236302007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
23631
23632 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
23633 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
23634 from a Lisp_Object into a bare pointer.
23635 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
23636 Adjust the code correspondingly.
23637
23638 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
23639
23640 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
23641 (term_show_mouse_face): Remove unused var `j'.
23642 (handle_one_term_event): Remove unused vars `i' and `j'.
23643 Don't cast return value of ttyname since it's not necessary.
23644
236452007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
23646
23647 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
23648 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
23649
23650 * fns.c (map_char_table): Use an array of int for `indices' rather than
23651 an array of Lisp_Objects (which are only ever integers anyway).
23652 (Fmap_char_table): Update caller.
23653 * lisp.h: Update prototype.
23654 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
23655 * fontset.c (Ffontset_info):
23656 * casetab.c (set_case_table): Update callers.
23657
23658 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
23659
23660 * keymap.c (struct accessible_keymaps_data)
23661 (struct where_is_internal_data): New structures.
23662 (accessible_keymaps_1, where_is_internal_1): Use them to change
23663 interface to adhere to the one used by map_keymap.
23664 (Faccessible_keymaps, where_is_internal): Use map_keymap.
23665 (accessible_keymaps_char_table, where_is_internal_2): Remove.
23666
23667 * keymap.h (map_keymap_function_t): More informative prototype.
23668
236692007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
23670
23671 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
23672 (looking_at_1): Don't change search_regs and last_thing_searched
23673 if `inhibit-changing-match-data' is non-nil.
23674 (string_match_1, search_buffer, set_search_regs): Likewise.
23675 (syms_of_search): Add Lisp level definition for
23676 `inhibit-changing-match-data' and set it to nil.
23677 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
23678 start and end of the match, instead of using values in search_regs.
23679
236802007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
23681
23682 * minibuf.c (Fcompleting_read): New value `confirm-only'
23683 for `require-match'.
23684
236852007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
23686
23687 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
23688 part of the 2007-06-27 change to syms_of_fileio.
23689
236902007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23691
23692 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
23693 Check WINDOWP before using XWINDOW. Consolidate return statements.
23694
236952007-06-27 Richard Stallman <rms@gnu.org>
23696
23697 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
23698
236992007-06-27 Juanma Barranquero <lekktu@gmail.com>
23700
23701 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
23702
237032007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23704
23705 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
23706 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
23707 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
23708 (_free_internal, memalign): Use them.
23709 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
23710 Initialize to PTHREAD_MUTEX_INITIALIZER.
23711 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
23712 (morecore_nolock): Rename from morecore. All uses changed.
23713 Use only nolock versions of internal allocation functions.
23714 (_malloc_internal_nolock, _realloc_internal_nolock)
23715 (_free_internal_nolock): New functions created from
23716 _malloc_internal, _realloc_internal, and _free_internal.
23717 (_malloc_internal, _realloc_internal, _free_internal): Use them.
23718 Copy hook value to automatic variable before its use.
23719 (memalign): Copy hook value to automatic variable before its use.
23720
237212007-06-26 Kenichi Handa <handa@m17n.org>
23722
23723 * coding.c (Ffind_operation_coding_system): Docstring improved.
23724 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
23725
237262007-06-25 David Kastrup <dak@gnu.org>
23727
23728 * keymap.c (Fcurrent_active_maps): Add `position' argument.
23729 (Fwhere_is_internal): Adjust call to `current-active-maps' to
23730 cater for additional parameter.
23731
23732 * keymap.h: Adjust number of parameters to `current-active-maps'.
23733
23734 * doc.c (Fsubstitute_command_keys): Adjust call of
23735 `current-active-maps'.
23736
237372007-06-25 David Kastrup <dak@gnu.org>
23738
23739 * callint.c (Fcall_interactively): Make the parsing of interactive
23740 specs somewhat more readable.
23741
237422007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23743
23744 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
23745 to scroll bar gap also when bitmap fills fringe. Draw only foreground
23746 if extended background has already been filled.
23747
237482007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23749
23750 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
23751 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
23752
23753 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
23754 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
23755 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
23756 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
23757 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
23758 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
23759 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
23760 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
23761 Run timers during dialog popup.
23762 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
23763
237642007-06-21 Jason Rumney <jasonr@gnu.org>
23765
23766 * image.c (convert_mono_to_color_image): Swap fore and background.
23767
237682007-06-20 Jason Rumney <jasonr@gnu.org>
23769
23770 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
23771 (w32_free_bdf_font): Unmap memory not handle.
23772
237732007-06-20 Sam Steingold <sds@gnu.org>
23774
23775 * gmalloc.c (__morecore): Fix the declaration to comply with the
23776 definition.
23777
237782007-06-20 Juanma Barranquero <lekktu@gmail.com>
23779
23780 * w32term.c (w32_delete_display): Remove leftover declaration.
23781 (w32_define_cursor, w32_initialize): Make static.
23782
23783 * w32.c (_wsa_errlist): Fix typo in error message.
23784 (init_environment): Ignore any environment variable from the
23785 registry having a null value.
23786
237872007-06-20 Glenn Morris <rgm@gnu.org>
23788
23789 * Makefile.in (LIBGIF): Default to -lgif.
23790
237912007-06-17 Jason Rumney <jasonr@gnu.org>
23792
23793 * w32menu.c (add_menu_item): Don't use multibyte string functions on
23794 unicode strings.
23795
237962007-06-16 Juanma Barranquero <lekktu@gmail.com>
23797
23798 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
23799 Fix typo in docstring.
23800
238012007-06-16 Eli Zaretskii <eliz@gnu.org>
23802
23803 * w32menu.c (add_menu_item): Escape `&' characters in menu items
23804 and their keybindings.
23805
238062007-06-15 Chong Yidong <cyd@stupidchicken.com>
23807
23808 * composite.c (update_compositions): Fix last fix.
23809
238102007-06-14 Jason Rumney <jasonr@gnu.org>
23811
23812 * w32.c (get_process_times_fn): New function pointer.
23813 (globals_of_w32): Intialize it if present in kernel32.dll.
23814 (w32_get_internal_run_time): New function.
23815
23816 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
23817
238182007-06-14 Kenichi Handa <handa@etlken.m17n.org>
23819
23820 * composite.c (update_compositions): Check the validness of
23821 compositions.
23822
238232007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23824
23825 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
23826 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
23827
23828 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
23829 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
23830
23831 * macgui.h (USE_MAC_TOOLBAR): New define.
23832
23833 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
23834 Return immediately unless popup is activated.
23835
23836 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
23837 background to scroll bar gap.
23838 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
23839 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
23840 scroll bars on frame edge. Check fringe background extension.
23841 Don't clear extended fringe background area.
23842 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
23843 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
23844 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
23845 [USE_MAC_TOOLBAR]: New macros.
23846 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
23847 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
23848 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
23849 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
23850 [USE_MAC_TOOLBAR]: New functions.
23851 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
23852 manually if previous repositioning has failed.
23853 (mac_handle_keyboard_event): Use precomputed event kind.
23854 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
23855 as tool bar item click. Handle mouse movement over tool bar items.
23856
23857 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
23858 toolbar_win_gravity.
23859 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
23860 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
23861 Add externs.
23862
23863 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
23864 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
23865
238662007-06-14 Chong Yidong <cyd@stupidchicken.com>
23867
23868 * image.c (search_image_cache): Remove unused variable.
23869
238702007-06-13 Chong Yidong <cyd@stupidchicken.com>
23871
23872 * xfns.c, xmenu.c: Link to xaw3d if available.
23873
238742007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23875
23876 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
23877 frame_foreground and frame_background.
23878
23879 * image.c (lookup_image): Save frame foreground and background colors.
23880 (search_image_cache): Check if saved and current frame colors match.
23881
238822007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
23883
23884 * regex.c (regex_compile): Remove the `regnum' counter.
23885 Use bufp->re_nsub instead. Add support for \(?N:RE\).
23886
238872007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
23888
23889 * term.c: Include intervals.h to declare Fget_text_property.
23890
238912007-06-10 Jason Rumney <jasonr@gnu.org>
23892
23893 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
23894
238952007-06-08 Juanma Barranquero <lekktu@gmail.com>
23896
23897 * callint.c (Fcall_interactively):
23898 * editfns.c (Fdelete_and_extract_region):
23899 * fileio.c (Fread_file_name):
23900 * fns.c (Fmapconcat):
23901 * keyboard.c (cmd_error_internal):
23902 * keymap.c (Fkey_description):
23903 * lread.c (openp):
23904 * minibuf.c (read_minibuf):
23905 * search.c (wordify):
23906 * sunfns.c (sel_read):
23907 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
23908 * xfns.c (x_default_scroll_bar_color_parameter):
23909 * xmenu.c (menu_help_callback):
23910 * xselect.c (Fx_get_atom_name):
23911 * xterm.c (x_term_init): Use empty_unibyte_string.
23912
239132007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
23914
23915 * alloc.c (init_strings): Initialize canonical empty strings.
23916 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
23917 canonical empty string when the requested size is 0.
23918
23919 * emacs.c (empty_unibyte_string): Rename from empty_string.
23920 (empty_multibyte_string): New canonical empty string.
23921 (syms_of_emacs): Don't initialize empty_string.
23922
23923 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
23924 string, if appropriate.
23925 (empty_unibyte_string, empty_multibyte_string): New externs.
23926 (empty_string): Remove extern.
23927
23928 * lread.c (syms_of_lread): Use empty_unibyte_string.
23929
239302007-06-07 Jason Rumney <jasonr@gnu.org>
23931
23932 * s/ms-w32.h: Don't define HAVE_TZNAME.
23933
23934 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
23935
239362007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23937
23938 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
23939
23940 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
23941 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
23942
23943 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
23944 Don't call next handler.
23945 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
23946 Remove argument. Install handler to application.
23947 (set_frame_menubar): Don't change deep_p.
23948 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
23949 FRAME_OUTER_TO_INNER_DIFF_Y.
23950 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
23951 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
23952 [HAVE_DIALOGS]: New macros.
23953 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
23954 Use them.
23955 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
23956
23957 * macselect.c [MAC_OSX] (install_service_handler): Rename from
23958 init_service_handler. All callers changed. Return OSStatus value.
23959
23960 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
23961 All callers changed so as not to call SetPortWindowPort.
23962 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
23963 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
23964 mac_draw_string_common.
23965 (mac_draw_image_string_qd): Likewise.
23966 (mac_draw_string_common): Use them. Add INLINE.
23967 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
23968 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
23969 GetGlobalMouse.
23970 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
23971 and FRAME_OUTER_TO_INNER_DIFF_Y.
23972 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
23973 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
23974 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
23975 repositioning window to mac_handle_window_event.
23976 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
23977 saving window location to mac_handle_window_event
23978 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
23979 (install_menu_target_item_handler): Remove argument in extern.
23980 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
23981 Also accept command events.
23982 (do_keystroke): New function created from XTread_socket.
23983 (init_command_handler): Remove functions.
23984 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
23985 and save window location by kEventWindowShowing and kEventWindowHiding
23986 handlers here. Don't call next handler for window state change and
23987 focus events.
23988 (mac_handle_application_event, mac_handle_keyboard_event)
23989 [TARGET_API_MAC_CARBON]: New functions.
23990 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
23991 kEventWindowShowing and kEventWindowHiding events. Move installation
23992 of mouse, font, text input and menu target item handlers to
23993 install_application_handler.
23994 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
23995 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
23996 New function.
23997 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
23998 Register it.
23999 (XTread_socket) [TARGET_API_MAC_CARBON]:
24000 Consolidate SendEventToEventTarget calls.
24001 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
24002 Move application activation handler to mac_handle_application_event.
24003 Move keyboard handler to mac_handle_keyboard_event.
24004 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
24005 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
24006 init_command_handler. Call install_application_handler.
24007
24008 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
24009 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
24010
240112007-06-07 Glenn Morris <rgm@gnu.org>
24012
24013 * emacs.c (main): Use `emacs-copyright' in --version output.
24014
240152007-06-06 Chong Yidong <cyd@stupidchicken.com>
24016
24017 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
24018
240192007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24020
24021 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
24022
24023 * macgui.h: Replace WindowPtr with WindowRef.
24024
24025 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
24026 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
24027 Replace ControlHandle with ControlRef.
24028 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
24029
24030 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
24031 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
24032 Replace ControlHandle with ControlRef.
24033 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
24034 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
24035
24036 * macterm.h (struct scroll_bar): Rename member control_handle_low
24037 and control_handle_high to control_ref_low and control_ref_high.
24038 All uses changed.
24039 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
24040 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
24041 respectively. All uses changed.
24042 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
24043 (install_window_handler, remove_window_handler): Replace WindowPtr
24044 with WindowRef in externs.
24045
240462007-06-05 Juanma Barranquero <lekktu@gmail.com>
24047
24048 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
24049
240502007-06-03 Nick Roberts <nickrob@snap.net.nz>
24051
24052 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
24053
24054 * frame.c (Fmouse_position, Fmouse_pixel_position):
24055 Condition on HAVE_GPM too.
24056
24057 * term.c (term_mouse_highlight): Remove unused variables.
24058 (Fterm_open_connection): Set gpm_zerobased to 1.
24059 (term_mouse_movement, term_mouse_click, handle_one_term_event):
24060 Use zero based co-ordinates.
24061 (handle_one_term_event): Report a drag as mouse movement too.
24062
24063 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
24064
240652007-06-03 Chong Yidong <cyd@stupidchicken.com>
24066
24067 * image.c (search_image_cache): New function. Require background
24068 color match if background color is unspecified in the image spec.
24069 (uncache_image, lookup_image): Use it.
24070
240712007-06-01 Juanma Barranquero <lekktu@gmail.com>
24072
24073 * window.c (Fshrink_window): Reflow docstring.
24074
240752007-06-02 Chong Yidong <cyd@stupidchicken.com>
24076
24077 * Version 22.1 released.
24078
240792007-06-01 Richard Stallman <rms@gnu.org>
24080
24081 * xfns.c (x_encode_text): Add GCPRO.
24082
240832007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24084
24085 * xfns.c (x_set_name_internal): Save encoded name before
24086 x_encode_text in case string data is relocated.
24087
240882007-05-31 Richard Stallman <rms@gnu.org>
24089
24090 * buffer.c (syms_of_buffer): Doc fix.
24091
240922007-05-30 Nick Roberts <nickrob@snap.net.nz>
24093
24094 * sysdep.c (init_sys_modes): Add rather than replace with
24095 O_NONBLOCK.
24096
24097 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
24098 term_mouse_moveto.
24099
24100 * termhooks.h (term_mouse_moveto): New extern.
24101
24102 * term.c (mouse_face_window): Rename...
24103 (Qmouse_face_window): ...to this.
24104 (term_show_mouse_face, term_clear_mouse_face)
24105 (term_mouse_highlight): Use Qmouse_face_window.
24106 (term_mouse_moveto): New function.
24107 (term_mouse_position): Make it work.
24108 (syms_of_term): Uncomment assignment to mouse_position_hook.
24109 Staticpro Qmouse_face_window.
24110
241112007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24112
24113 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
24114 around current_column call.
24115
241162007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
24117
24118 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
24119 * xdisp.c (next_element_from_buffer):
24120 * window.c (delete_window):
24121 * term.c (term_mouse_highlight):
24122 * msdos.c (getdefdir):
24123 * macterm.c (mac_create_bitmap_from_bitmap_data)
24124 (init_font_name_table):
24125 * fns.c (Fsxhash):
24126 * data.c (Fmake_local_variable):
24127 * ccl.c (ccl_driver): Likewise.
24128
241292007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24130
24131 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
24132 Call mac_wakeup_from_rne on window size change.
24133
241342007-05-25 Chong Yidong <cyd@stupidchicken.com>
24135
24136 * image.c (uncache_image): Fix typo.
24137
241382007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
24139
24140 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
24141
241422007-05-22 Richard Stallman <rms@gnu.org>
24143
24144 * xterm.c (x_connection_closed): Remove NO_RETURN.
24145
241462007-05-22 Martin Rudalics <rudalics@gmx.at>
24147
24148 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
24149
241502007-05-21 Chong Yidong <cyd@stupidchicken.com>
24151
24152 * image.c (uncache_image): New function.
24153 (Fimage_refresh): New function.
24154
241552007-05-20 Jan Djärv <jan.h.d@swipnet.se>
24156
24157 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
24158
241592007-05-20 Nick Roberts <nickrob@snap.net.nz>
24160
24161 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
24162 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
24163
241642007-05-20 Nick Roberts <nickrob@snap.net.nz>
24165
24166 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
24167 conditional on [HAVE_GPM_H].
24168
241692007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
24170
24171 * syntax.c (skip_chars): Update syntax-table only after we checked that
24172 the new location is valid.
24173
241742007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24175
24176 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
24177 mac_get_window_bounds.
24178
241792007-05-20 Nick Roberts <nickrob@snap.net.nz>
24180
24181 * Makefile.in (LIBGPM): Allow it to be set from configure.
24182 If set then link Emacs with it.
24183
24184 * config.in: Regenerate.
24185
24186 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
24187 New externs.
24188
24189 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
24190 Include gpm.h.
24191 (handle_one_term_event, term_gpm): New externs.
24192
24193 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
24194 and allow it to be interrupted by SIGIO.
24195
24196 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
24197 (wait_reading_process_output): Wait on gpm_fd too.
24198 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
24199 (add_gpm_wait_descriptor_called_flag): New variable.
24200 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
24201
24202 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
24203 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
24204 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
24205 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
24206 (make_lispy_event): Add case GPM_CLICK_EVENT.
24207 (read_avail_input): Handle mouse input.
24208
24209 * term.c (write_glyphs_with_face): New function.
24210 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
24211 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
24212 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
24213 (mouse_face_face_id, term_gpm, pos_x, pos_y)
24214 (last_mouse_x, last_mouse_y): New variables.
24215 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
24216 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
24217 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
24218 (Fterm_close_connection): New functions.
24219 (term_init): Initialise mouse_face_window.
24220
242212007-05-19 Chong Yidong <cyd@stupidchicken.com>
24222
24223 * xdisp.c (redisplay_window): If first window line is a
24224 continuation line, recompute the new window start instead of
24225 recentering.
24226
242272007-05-18 Glenn Morris <rgm@gnu.org>
24228
24229 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
24230 Suggested by Alfred M. Szmidt <ams@gnu.org>.
24231
242322007-05-17 Glenn Morris <rgm@gnu.org>
24233
24234 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
24235
242362007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24237
24238 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
24239 dead key repeat and up events.
24240
242412007-05-14 Chong Yidong <cyd@stupidchicken.com>
24242
24243 * image.c (pbm_load): Check image size for monochrome pbm.
24244
242452007-05-13 Chong Yidong <cyd@stupidchicken.com>
24246
24247 * xterm.c (XTread_socket): Revert last change.
24248
242492007-05-12 Chong Yidong <cyd@stupidchicken.com>
24250
24251 * image.c (pbm_load): Correctly check image size for greyscale pbm.
24252
24253 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
24254
242552007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
24256
24257 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
24258 mixup (YAILOM).
24259
242602007-05-07 Andreas Schwab <schwab@suse.de>
24261
24262 * keymap.c (Flookup_key): Fix typo in last change.
24263
242642007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
24265
24266 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
24267 mapping for unibyte strings.
24268
242692007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24270
24271 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
24272 (Fx_popup_dialog) [MAC_OSX]: Likewise.
24273
242742007-04-29 Richard Stallman <rms@gnu.org>
24275
24276 * insdel.c (replace_range): For undo, record insertion first.
24277
242782007-04-29 Andreas Schwab <schwab@suse.de>
24279
24280 * lisp.h (VECSIZE): Use OFFSETOF.
24281
242822007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24283
24284 * xdisp.c (try_window_reusing_current_matrix): Fix number of
24285 disabled lines.
24286
242872007-04-28 Richard Stallman <rms@gnu.org>
24288
24289 * lread.c (read_escape): In a string, \s is always space.
24290
242912007-04-27 Jan Djärv <jan.h.d@swipnet.se>
24292
24293 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
24294
24295 * gtkutil.c (xg_update_menubar, create_menus): Create empty
24296 submenu for menu bar items.
24297
24298See ChangeLog.10 for earlier changes.
24299
24300;; Local Variables:
24301;; coding: utf-8
24302;; add-log-time-zone-rule: t
aac0c6e3
MR
24303;; End:
24304
e3eb1dae 24305 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
24306
24307 This file is part of GNU Emacs.
24308
24309 GNU Emacs is free software: you can redistribute it and/or modify
24310 it under the terms of the GNU General Public License as published by
24311 the Free Software Foundation, either version 3 of the License, or
24312 (at your option) any later version.
24313
24314 GNU Emacs is distributed in the hope that it will be useful,
24315 but WITHOUT ANY WARRANTY; without even the implied warranty of
24316 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24317 GNU General Public License for more details.
24318
24319 You should have received a copy of the GNU General Public License
24320 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
24321
24322;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40