Fix typo in last change.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
c532d349
DN
12010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * term.c (term_clear_mouse_face, Fidentity):
4 * syssignal.h (signal_handler_t):
5 * lisp.h (memory_warnings):
6 * coding.h (preferred_coding_system):
7 * cm.h (evalcost):
8 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
9
c0b36d46
EZ
102010-07-02 Eli Zaretskii <eliz@gnu.org>
11
12 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
13 from prototypes.
14
15 * msdos.h (load_pixmap): Don't define away.
16
383e0970
J
172010-07-02 Jan Djärv <jan.h.d@swipnet.se>
18
f57e2426
J
19 * lisp.h:
20 * atimer.h: Remove define for P_.
21
22 * alloc.c: Remove __P and P_ from .c and .m files.
23 * atimer.c:
24 * buffer.c:
25 * callint.c:
26 * category.c:
27 * charset.c:
28 * chartab.c:
29 * cm.c:
30 * coding.c:
31 * composite.c:
32 * data.c:
33 * dired.c:
34 * dispnew.c:
35 * doc.c:
36 * editfns.c:
37 * emacs.c:
38 * eval.c:
39 * fileio.c:
40 * filelock.c:
41 * fns.c:
42 * font.c:
43 * fontset.c:
44 * frame.c:
45 * ftfont.c:
46 * ftxfont.c:
47 * gmalloc.c:
48 * gtkutil.c:
49 * image.c:
50 * indent.c:
51 * intervals.c:
52 * keyboard.c:
53 * keymap.c:
54 * lread.c:
55 * marker.c:
56 * menu.c:
57 * minibuf.c:
58 * print.c:
59 * process.c:
60 * scroll.c:
61 * search.c:
62 * sound.c:
63 * strftime.c:
64 * syntax.c:
65 * sysdep.c:
66 * term.c:
67 * terminal.c:
68 * textprop.c:
69 * unexalpha.c:
70 * w32console.c:
71 * w32fns.c:
72 * w32font.c:
73 * w32menu.c:
74 * w32term.c:
75 * w32uniscribe.c:
76 * window.c:
77 * xdisp.c:
78 * xfaces.c:
79 * xfns.c:
80 * xfont.c:
81 * xftfont.c:
82 * xmenu.c:
83 * xselect.c:
84 * xterm.c: Likewise.
85
383e0970 86 Remove P_ and __P macros.
f57e2426
J
87 * atimer.h: Remove P_ and __P macros.
88 * buffer.h:
383e0970
J
89 * category.h:
90 * ccl.h:
91 * character.h:
92 * charset.h:
93 * cm.h:
94 * coding.h:
95 * composite.h:
96 * dispextern.h:
97 * disptab.h:
9e892c8d 98 * dosfns.h:
383e0970
J
99 * font.h:
100 * fontset.h:
101 * frame.h:
102 * gtkutil.h:
103 * indent.h:
104 * intervals.h:
105 * keyboard.h:
106 * keymap.h:
107 * lisp.h:
108 * macros.h:
109 * md5.h:
110 * menu.h:
111 * msdos.h:
112 * nsterm.h:
113 * puresize.h:
114 * region-cache.h:
115 * syntax.h:
116 * syssignal.h:
117 * systime.h:
118 * termhooks.h:
9e892c8d 119 * w32font.h:
383e0970
J
120 * w32term.h:
121 * widget.h:
122 * window.h:
123 * xgselect.h:
124 * xsettings.h:
125 * xterm.h: Likewise.
126
98601119
DN
1272010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
128
d9170db5
DN
129 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
130
98601119
DN
131 Cleanup old code.
132 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
133 * syssignal.h: Remove code for Lynx, not supported anymore.
134 * vm-limit.c: Remove unused code the depends on emacs not being
135 defined and NO_LIM_DATA being defined.
136 * mem-limits.h: Remove dead code.
137
1f984e12
J
1382010-07-01 Jan Djärv <jan.h.d@swipnet.se>
139
c49d071a
J
140 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
141
9d5405ec
J
142 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
143 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
144
7a18115b
J
145 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
146 parameters, they are already absolute.
147
581a8100
J
148 * nsterm.m (x_set_window_size, initFrameFromEmacs): Renamed
149 FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
150
151 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGH
152
153 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar): Update
154 FRAME_TOOLBAR_HEIGHT.
155
1f984e12
J
156 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar): Add
157 BLOCK/UNBLOCK_INPUT so asserts don't trigger.
158
c1ef4455
CY
1592010-06-30 Chong Yidong <cyd@stupidchicken.com>
160
161 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
162 check default-frame-alist.
163
ce8f5a9a
AS
1642010-06-30 Andreas Schwab <schwab@linux-m68k.org>
165
166 * process.c (create_process): Avoid using invalid file descriptors.
167
168 * callproc.c (child_setup): Avoid closing a file descriptor twice.
169
bf935339
J
1702010-06-30 Jan Djärv <jan.h.d@swipnet.se>
171
172 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
173 Improve documentation. Return font regardless of use_system_font.
174 (syms_of_xsettings): Improve documentation for font-use-system-font.
175
769e9d47
KH
1762009-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
177
178 * xftfont.c (xftfont_open): Check font width one by one also when
179 spacing is dual.
180
181 * ftfont.c (ftfont_open): Ditto.
182
6259c2ec
GM
1832010-06-30 Glenn Morris <rgm@gnu.org>
184
a46007e9
GM
185 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
186
6259c2ec
GM
187 * Makefile.in (CANNOT_DUMP): Update for configure name change.
188
189 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
190 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
191 * s/darwin.h (SYSTEM_MALLOC):
192 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
193
5d1d3d04
J
1942010-06-29 Jan Djärv <jan.h.d@swipnet.se>
195
196 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
197 (ns_get_screen): Don't assign integer to f.
198 (Fx_display_color_cells): Declarations before statements.
199
e547b051
J
2002010-06-28 Jan Djärv <jan.h.d@swipnet.se>
201
5fc8e5bc
J
202 * xfns.c (x_default_font_parameter): Remove got_from_system
203 (Bug#6526).
204
e547b051
J
205 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
206 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
207 defines based on what configure finds.
208
209 * xterm.c (XTflash): Use gtk_widget_get_window.
210 (xg_scroll_callback): Use gtk_adjustment_get_upper and
211 gtk_adjustment_get_page_size.
212 (handle_one_xevent): Use gtk_widget_get_mapped.
213 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
214 messages.
215
216 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
217
218 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
219 HAVE_GTK_FILE_SELECTION_NEW.
220
221 * gtkutil.c (xg_display_open, xg_display_close): Remove
222 HAVE_GTK_MULTIDISPLAY, it is always defined.
223 (xg_display_open): Return type is void.
224 (gtk_widget_set_has_window)
225 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
226 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
227 (gtk_adjustment_set_page_increment)
228 (gtk_adjustment_get_step_increment): #define these if not found
229 by configure.
230 (remove_submenu): New define based on Gtk+ version.
231 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
232 gtk_widget_get_window.
233 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
234 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
235 (create_dialog): Use gtk_dialog_get_action_area and
236 gtk_dialog_get_content_area.
237 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
238 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
239 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
240 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
241 g_object_ref and g_object_unref.
242 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
243 gtk_widget_get_sensitive.
244 (xg_update_submenu): Use remove_submenu.
245 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
246 properties instead to get old x and y position.
247 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
248 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 249 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
250 (xg_get_tool_bar_widgets): New function.
251 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
252 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
253 (toolbar_set_orientation): New #define based on if configure
254 finds gtk_orientable_set_orientation.
255 (xg_create_tool_bar): Call toolbar_set_orientation.
256 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
257 instead of gtk_box_pack_start_defaults.
258
b9229673
CY
2592010-06-28 Chong Yidong <cyd@stupidchicken.com>
260
261 * cmds.c (Fdelete_backward_char): Move into Lisp.
262
bbc803b0
DN
2632010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
264
265 * s/freebsd.h (BSD4_2): Remove redundant definition.
266 bsd-common.h defines it already.
267
6431f2e6
CY
2682010-06-27 Chong Yidong <cyd@stupidchicken.com>
269
270 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
271 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
272 tool-bar-mode, which are now set using these X resources at
273 startup, to determine the defaults (Bug#2249).
274
275 * w32fns.c (Fx_create_frame):
276 * nsfns.m (Fx_create_frame): Likewise.
277
278 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
279
8c079ebb
JB
2802010-06-24 Juanma Barranquero <lekktu@gmail.com>
281
282 * gtkutil.c (xg_update_scrollbar_pos):
283 Avoid C99 mid-block variable declaration.
284
e9b7ab96
JD
2852010-06-22 Jan Djärv <jan.h.d@swipnet.se>
286
bc869eca
JD
287 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
288
2b7e356a 289 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
290
291 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
292 if height is less than scroll bar min size.
293 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
294
e9b7ab96
JD
295 * xfns.c (x_default_font_parameter): Try to open font from system
296 before using it (bug#6478). Rename got_from_gconf to got_from_system.
297
32a679fd
JD
2982010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
299
300 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
301
70c4cfbb
EZ
3022010-06-20 Eli Zaretskii <eliz@gnu.org>
303
304 * xdisp.c (try_scrolling): When scroll-conservatively is set to
305 most-positive-fixnum, be extra accurate when scrolling window
306 start, to avoid missing the cursor line.
307
ad5a12b5
EZ
3082010-06-19 Eli Zaretskii <eliz@gnu.org>
309
310 * xdisp.c (try_scrolling): Compute the limit for searching point
311 in forward scroll from scroll_max, instead of an arbitrary limit
312 of 10 screen lines. See
313 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
314 and
315 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
316 for details.
317
2a64315a 3182010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
319
320 * editfns.c (Fbyte_to_string): Pacify compiler.
321
288cf4e9
SM
3222010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
323
324 * lread.c (read1): Phase out old-style backquotes a bit more.
325
6e6e5760
EZ
3262010-06-12 Eli Zaretskii <eliz@gnu.org>
327
cbc4fd20
EZ
328 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
329 bidimirror.h.
330
331 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
332
317fbf33
EZ
333 * bidi.c (bidi_initialize): Remove explicit initialization of
334 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 335 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 336 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
337
338 * biditype.h: New file.
339
cbc4fd20
EZ
340 * bidimirror.h: New file.
341
6e6e5760
EZ
342 * window.c (syms_of_window): Doc fix (bug#6409).
343
4176cba2
RF
3442010-06-12 Romain Francoise <romain@orebokech.com>
345
346 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
347 ediff-hook.
348
cb4bfcb5
GM
3492010-06-10 Glenn Morris <rgm@gnu.org>
350
64c60c2f
GM
351 * editfns.c (Fbyte_to_string): Pacify compiler.
352
cb4bfcb5
GM
353 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
354
e454a4a3
SM
3552010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
356
357 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
358 Check `object's type before accessing its guts.
359
c1b1acc2
DN
3602010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
361
362 * s/usg5-4.h: Fix previous change.
363 Suggested by Lawrence Mitchell <wence@gmx.li>
364
657d4c0b
AS
3652010-06-08 Andreas Schwab <schwab@linux-m68k.org>
366
367 * minibuf.c (Fall_completions): Add more checks.
368
9b27fd9f
JB
3692010-06-08 Juanma Barranquero <lekktu@gmail.com>
370
371 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
372
a99ebb40
DN
3732010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
374
d7c5d87d
DN
375 * lread.c (X_OK): Remove, unused.
376
0263a941
DN
377 * dispnew.c: Remove obsolete comment.
378
a99ebb40
DN
379 Remove INCLUDED_FCNTL.
380 * xterm.c (INCLUDED_FCNTL):
381 * callproc.c (INCLUDED_FCNTL):
382 * alloc.c (INCLUDED_FCNTL):
383 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
384 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
385
13b5221f
MR
3862010-06-07 Martin Rudalics <rudalics@gmx.at>
387
388 * window.c (Fselect_window): Move `record_buffer' up to the
389 beginning of this function, so the buffer gets recorded
390 even if the selected window does not change.
391 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
392
5220357f
JB
3932010-06-07 Juanma Barranquero <lekktu@gmail.com>
394
395 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
396 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
397
3085237c
DN
3982010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
399
400 Remove BSTRING related code, all platforms define it.
401 * s/usg5-4.h (BSTRING): Remove definition.
402 * s/template.h (BSTRING):
403 * s/msdos.h (BSTRING):
404 * s/ms-w32.h (BSTRING):
405 * s/hpux10-20.h (BSTRING):
406 * s/gnu-linux.h (BSTRING):
407 * s/darwin.h (BSTRING):
408 * s/cygwin.h (BSTRING):
409 * s/bsd-common.h (BSTRING):
410 * s/aix4-2.h (BSTRING): Likewise.
411 * sysdep.c: Remove code depending on BSTRING not being defined.
412
409f2919
JB
4132010-06-05 Juanma Barranquero <lekktu@gmail.com>
414
415 Remove obsolete macro BASE_LEADING_CODE_P.
416 * character.h (BASE_LEADING_CODE_P): Remove.
417 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
418 * buffer.c (Fset_buffer_multibyte):
419 * indent.c (scan_for_column, compute_motion):
420 * insdel.c (count_combining_before, count_combining_after):
421 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
422
087fc47a
JB
4232010-06-04 Juanma Barranquero <lekktu@gmail.com>
424
425 Turn `directory-sep-char' into a noop.
426
427 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
428 (DIRECTORY_SEP): Define unconditionally.
429
430 * s/ms-w32.h (DIRECTORY_SEP): Remove.
431
432 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
433 call dostounix_filename directly.
434
435 * fileio.c (CORRECT_DIR_SEPS): Remove.
436 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
437 (Fsubstitute_in_file_name): Use dostounix_filename instead.
438 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
439 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
440
441 * w32proc.c (CORRECT_DIR_SEPS): Remove.
442 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
443
0eb7675e
AS
4442010-06-03 Andreas Schwab <schwab@linux-m68k.org>
445
446 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
f07b083d 447 address. (Bug#6346)
0eb7675e 448
78edd3b7
JB
4492010-06-03 Juanma Barranquero <lekktu@gmail.com>
450
451 * ccl.c (Fccl_program_p): Fix typo in docstring.
452
eb697db5
DN
4532010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
454
455 Move UNEXEC definition to autoconf.
456 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
457 * s/sol2-10.h (UNEXEC):
458 * s/irix6-5.h (UNEXEC):
459 * s/hpux10-20.h (UNEXEC):
460 * s/gnu-linux.h (UNEXEC):
461 * s/darwin.h (UNEXEC):
462 * s/cygwin.h (UNEXEC):
463 * s/bsd-common.h (UNEXEC):
464 * s/aix4-2.h (UNEXEC):
465 * m/alpha.h (UNEXEC): Likewise.
466 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
467
aa3830c4
JB
4682010-06-03 Juanma Barranquero <lekktu@gmail.com>
469
470 Remove obsolete pre-unicode2 macros.
471 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
472 * composite.c (composition_reseat_it):
473 * data.c (Faset):
474 * fns.c (Ffillarray):
475 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
476 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
477
d234d13e
JL
4782010-06-03 Juri Linkov <juri@jurta.org>
479
480 * buffer.c (Fother_buffer): Add CHECK_FRAME.
481 (Fswitch_to_buffer): Remove unused variable `err'.
482
0d4bcf4d
GM
4832010-06-03 Glenn Morris <rgm@gnu.org>
484
e23dc1e2
GM
485 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
486
05b09564
GM
487 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
488 now that AH_BOTTOM does it.
489
824e2978
GM
490 * m/hp800.h (HAVE_ALLOCA):
491 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
492
0d4bcf4d
GM
493 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
494 Remove NOT_C_CODE tests, it is always true now.
495
c55d2abf
DN
4962010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
497
08a494a3
DN
498 Fix config.h includes.
499 * xsettings.c:
500 * xgselect.c:
501 * nsterm.m:
502 * nsselect.m:
503 * nsimage.m:
504 * nsfont.m:
505 * nsfns.m:
506 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
507 other files do.
508
75934b1d
DN
509 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
510
9f32a766
DN
511 * s/sol2-6.h: Remove obsolete comments.
512
c55d2abf
DN
513 Remove unnecessary alloca.h includes.
514 * keymap.c: Do not include alloca.h, config.h does that.
515 * sysdep.c: Likewise. Do not define fwrite, not used.
516
06ac62b4
SM
5172010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
518
519 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
520 the HAVE_TERMIO where it belongs (bug#6149).
521
1ab8293c
SM
5222010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
523
524 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
525 of bug#6305).
526
6dcfd253
EZ
5272010-05-30 Eli Zaretskii <eliz@gnu.org>
528
529 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
530 state is always cached (bug#6306).
531
6d26bbb2
EZ
5322010-05-29 Eli Zaretskii <eliz@gnu.org>
533
06fa4a23
EZ
534 Fix cursor motion in bidi-reordered continued lines.
535 * xdisp.c (try_cursor_movement): Backup to non-continuation line
536 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
537 over continuation lines in bidi-reordered buffers. Return
538 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
539 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
540
f5783df3
MA
5412010-05-28 Michael Albinus <michael.albinus@gmx.de>
542
543 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
544
7d56b2dd
KH
5452010-05-28 Kenichi Handa <handa@m17n.org>
546
547 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
548 Don't sheck SPEC if it is nil.
549 (font_list_entities): Call font_delete_unmatched if
b925d231 550 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 551
e58d4ff7
GM
5522010-05-28 Glenn Morris <rgm@gnu.org>
553
554 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
555
f1a5d776
CY
5562010-05-27 Chong Yidong <cyd@stupidchicken.com>
557
558 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
559 whether to trash.
560 (internal_delete_file, Frename_file): Callers changed.
561 (delete_by_moving_to_trash): Doc fix.
562 (Fdelete_directory_internal): Don't move to trash.
563
564 * callproc.c (delete_temp_file):
565 * buffer.c (Fkill_buffer): Callers changed.
566
567 * lisp.h: Update prototype.
568
f44a59e6
CY
5692010-05-27 Chong Yidong <cyd@stupidchicken.com>
570
571 * xdisp.c (redisplay_window): After redisplay, check if point is
572 still valid before setting it (Bug#6177).
573
81ac4f35
GM
5742010-05-27 Glenn Morris <rgm@gnu.org>
575
576 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
577 Convert comments to Makefile format.
578
579 * Makefile.in (bootstrap-clean): No more Makefile.c.
580
ccd89fb3
GM
5812010-05-26 Glenn Morris <rgm@gnu.org>
582
90278cb6
GM
583 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
584 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
585
ccd89fb3
GM
586 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
587 Remove.
588 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
589
b7050583
KH
5902010-05-26 Kenichi Handa <handa@m17n.org>
591
592 * composite.c (composition_compute_stop_pos): Fix condition for
593 backward scanning.
594
e5458003
GM
5952010-05-25 Glenn Morris <rgm@gnu.org>
596
c345fe90
GM
597 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
598 Move before TEMACS_LDFLAGS.
599 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
600 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
601
2e0689ab
GM
602 * Makefile.in (NOT_C_CODE): No longer define.
603 (config.h): No longer include.
604
8009a5e8
GM
605 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
606 variables it may reference.
607
e5458003
GM
608 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
609 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
610
10f72a37
KH
6112010-05-25 Kenichi Handa <handa@m17n.org>
612
613 * dispextern.h (struct composition_it): New members rule_idx and
614 charpos.
615
616 * xdisp.c (set_iterator_to_next): While scanning backward, assume
617 that the character positions of IT point the last character of the
618 current grapheme cluster.
619 (next_element_from_composition): Don't change character positions
620 of IT.
621 (append_composite_glyph): Set glyph->charpos to
622 it->cmp_it.charpos.
623
624 * composite.c (autocmp_chars): Change the first argument to RULE,
625 and try composition with RULE only.
626 (composition_compute_stop_pos): Record the index number of the
627 composition rule in CMP_IT->rule_idx.
628 (composition_reseat_it): Call autocmp_chars repeatedly until the
629 correct rule of the composition is found.
630 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
631 is at the last character of the current grapheme cluster when
632 CMP_IT->reversed_p is nonzero.
633
171eda53 6342010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 635
171eda53
SM
636 * editfns.c (Fbyte_to_string): New function.
637
66a9f7f4
SM
6382010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
639
640 * process.c (Fmake_network_process): Set :host to nil if it's not used.
641 Suggested by Masatake YAMATO <yamato@redhat.com>.
642
d8c315d1
EZ
6432010-05-23 Eli Zaretskii <eliz@gnu.org>
644
171eda53 645 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 646
f5b416d2 6472010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
648
649 * s/netbsd.h: If terminfo is found, use it in preference to
650 termcap. (Bug#6190) [Backport from trunk]
651
0416466c
EZ
6522010-05-19 Eli Zaretskii <eliz@gnu.org>
653
11117830 654 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
655
656 * dispextern.h (struct glyph_row): New members minpos and maxpos.
657 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
658 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
659 and maxpos members instead of start.pos and end.pos, respectively.
660
661 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
662 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
663 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
664 (try_window_reusing_current_matrix, try_window_id):
665 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
666 (init_from_display_pos, init_iterator): Use EMACS_INT for
667 character and byte positions.
66a9f7f4 668 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
669 arguments for minimum and maximum buffer positions seen by
670 display_line for this row. Don't use iterator to find the
671 position following the maximum one; instead, increment the
11117830
EZ
672 position found by display_line directly. Fix logic; eol_pos
673 should be tested before the rest. Handle the case of characters
674 delivered from display vector (bug#6036). Fix tests related to
675 it->method. Handle the truncated_on_right_p rows.
676 (RECORD_MAX_MIN_POS): New macro.
677 (display_line): Use it to record the minimum and maximum buffer
678 positions for glyphs in the row being assembled. Record the
679 position of the newline that terminates the line. If word wrap is
680 in effect, restore minimum and maximum positions seen up to the
681 wrap point, when iterator returns to it.
682 (try_window_reusing_current_matrix): Give up if in bidi-reordered
683 row and cursor not already at point. Restore original pre-bidi
684 code for unidirectional buffers.
d36fe237
EZ
685
686 * dispnew.c (increment_row_positions, check_matrix_invariants):
687 Increment and check row->start.pos and row->end.pos, in addition
688 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
689
11117830
EZ
690 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
691 Display truncated_on_left_p and truncated_on_right_p flags.
692 Formatting fixes.
693 (pmtxrows): Display the ordinal number of each row. Don't display
694 rows beyond the last one.
695
696 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
697 it is not copied by bidi_copy_it.
698
6e83d800
EZ
6992010-05-22 Eli Zaretskii <eliz@gnu.org>
700
701 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
702 (Bug#6237)
703
110683ad
CY
7042010-05-22 Chong Yidong <cyd@stupidchicken.com>
705
706 * image.c (Fimage_flush): Rename from image-refresh.
707
98fe5161
CY
7082010-05-21 Chong Yidong <cyd@stupidchicken.com>
709
710 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
711 just one window.
712
713 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
714 (clear_image_cache): If the number of cached images is unusually
715 large, decrease the cache eviction delay (Bug#6230).
716
e8752c66
GM
7172010-05-21 Glenn Morris <rgm@gnu.org>
718
66dbf213
GM
719 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
720 Move these rules to ns.mk.
721 * ns.mk: New file.
722
04384b2d
GM
723 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
724
e8752c66
GM
725 * Makefile.in (CANNOT_DUMP): New, set by configure.
726 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
727
2e2bbddb
JL
7282010-05-20 Juri Linkov <juri@jurta.org>
729
730 * fileio.c (Fdelete_file): Change interative spec to use
731 `read-file-name' like in `find-file-read-args' where the default
732 value is `default-directory' instead of `buffer-file-name'.
733 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
734
31c4aaf6
KR
7352010-05-20 Kevin Ryde <user42@zip.com.au>
736
737 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
738 (Voverriding_terminal_local_map, Vsystem_key_alist)
739 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
740
9d5cf9b6
GM
7412010-05-20 Glenn Morris <rgm@gnu.org>
742
743 * Makefile.in (DEPDIR): New constant.
744 (DEPFLAGS): Set with configure, not cpp.
745 (MKDEPDIR): New, set by configure.
746 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
747 (clean): Use $DEPDIR.
748 (deps_frag): Include from configure.
749 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
750 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
751
ead6f8f5
EZ
752 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
753 reallocation of the cache. (Bug#6210)
754
7f34aec3
GM
7552010-05-19 Glenn Morris <rgm@gnu.org>
756
d494e8f2
GM
757 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
758
c1d0dcfd
GM
759 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
760 (GNULIB_VAR): Remove.
761 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
762
763 * m/ibms390x.h (LINKER):
764 * m/macppc.h (LINKER) [GNU_LINUX]:
765 * s/aix4-2.h (ORDINARY_LINK):
766 * s/cygwin.h (LINKER):
767 * s/darwin.h (ORDINARY_LINK):
768 * s/gnu.h (ORDINARY_LINK):
769 * s/netbsd.h (LINKER):
770 * s/usg5-4.h (ORDINARY_LINK):
771 Move to configure.
772
7f34aec3
GM
773 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
774
754790b6
CY
7752010-05-18 Chong Yidong <cyd@stupidchicken.com>
776
777 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
778 prevent stack overflow if number of arguments is too large
779 (Bug#6214).
780
161e44d1
JB
7812010-05-18 Juanma Barranquero <lekktu@gmail.com>
782
783 * charset.c (load_charset_map_from_file): Don't call close after fclose.
784
be4ff9da
GM
7852010-05-18 Glenn Morris <rgm@gnu.org>
786
9539dc5d
GM
787 * s/gnu-linux.h: Combine two conditionals.
788
789 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
790 $(POST_ALLOC_OBJ).
791
40dc6bf4
GM
792 * Makefile.in (RALLOC_OBJ): New, set by configure.
793 (rallocobj): Replace with the previous variable.
794 (otherobj): Use $RALLOC_OBJ.
795
796 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
797 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
798
be4ff9da
GM
799 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
800 (gmallocobj, vmlimitobj): Replace with previous two variables.
801 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
802
16455a85
GM
8032010-05-17 Glenn Morris <rgm@gnu.org>
804
805 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
806 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
807
5fdb7468
GM
8082010-05-16 Glenn Morris <rgm@gnu.org>
809
7ca1f3f9
GM
810 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
811
7541dad5
GM
812 * Makefile.in (clean): Get rid of HAVE_NS conditional.
813
da53fab9
GM
814 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
815 trailing "/".
816
b02a6645
GM
817 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
818 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
819
8877ca0f
GM
820 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
821 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
822 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
823 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
824 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
825
5fdb7468
GM
826 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
827 Remove ${STARTFLAGS}, nothing ever sets it.
828
95adb4b1
DN
8292010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
830
831 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
832
676b6304
GM
8332010-05-16 Glenn Morris <rgm@gnu.org>
834
9beab9ce
GM
835 * Makefile.in (LIBX_BASE): Always define.
836
8a95f0e7
GM
837 * Makefile.in (LIBX_OTHER): Move out of cpp section.
838
676b6304
GM
839 * Makefile.in (LIBXT): Always define.
840
6e546d18
GM
8412010-05-15 Glenn Morris <rgm@gnu.org>
842
4235ca47 843 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 844
6e546d18
GM
845 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
846 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
847
8c5ff6dd
KR
8482010-05-15 Ken Raeburn <raeburn@raeburn.org>
849
560bb7ae 850 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
851 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
852
8b4eb796
KR
853 * emacs.c (main): Initialize initial-environment and
854 process-environment before generating from env, not after.
855
8c5ff6dd
KR
856 Handle --version reasonably in CANNOT_DUMP configuration.
857 * emacs.c (emacs_version, emacs_copyright): New string variables.
858 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
859 (syms_of_emacs): Defvar them, and initialize them from the C
860 string variables.
861 (main): If initialization hasn't been done, print initial version
862 info from the C strings, instead of starting an interactive session.
863
dbd3f723
EZ
8642010-05-15 Eli Zaretskii <eliz@gnu.org>
865
d20e1419
EZ
866 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
867 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
868 (bidi_paragraph_init): Remove redundant assertion that we are at
869 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
870
871 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
872 (syms_of_xdisp): Defsubr it.
873
d36fe237
EZ
874 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
875
dbd3f723
EZ
876 * Makefile.in: Fix MSDOS-related comments.
877
02be533b
GM
8782010-05-15 Glenn Morris <rgm@gnu.org>
879
1a82cca9
GM
880 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
881 (really-lwlib, really-oldXMenu): Always define.
882 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
883
3df7b338
GM
884 * Makefile.in: Simplify cpp conditional.
885
2b5f541b
GM
886 * Makefile.in (${ns_appdir}): Simplify using umask.
887
02be533b
GM
888 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
889
4e2db1fe
SM
8902010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
891
892 * eval.c (specbind): Remove left-over duplicate test.
893 Disallow let-binding frame-local vars. Add comment.
894
4b292a22
EZ
8952010-05-14 Eli Zaretskii <eliz@gnu.org>
896
2fe72643 897 Make the cache of bidi iterator states dynamically allocated.
1edbd309 898 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
899 (bidi_init_it): Call it.
900 (bidi_cache_iterator_state): Enlarge the cache if needed.
901
4e2db1fe 902 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
903 bidi_get_next_char_visually. All callers changed.
904
82ebc97b
KH
9052010-05-14 Kenichi Handa <handa@m17n.org>
906
907 * dispextern.h (struct composition_it): New member reversed_p.
908
909 * composite.c (composition_compute_stop_pos): Search backward if
910 ENDPOS < CHARPOS.
911 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
912 Set CMP_IT->reversed_p.
b4b6e17e 913 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 914
4e2db1fe
SM
915 * xdisp.c (set_iterator_to_next):
916 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
917 scanning backward. Call composition_compute_stop_pos if scan
918 direction is changed.
919 (next_element_from_buffer): Call composition_compute_stop_pos with
920 negative ENDPOS if we are scanning backward.
921 (next_element_from_composition): Pay attention to
922 IT->cmp_it.reversed_p.
923
0e5d7800
KH
9242010-05-14 Kenichi Handa <handa@m17n.org>
925
560bb7ae 926 * font.c (font_range): Return the range for the font found at first.
0e5d7800 927
cb027b32
GM
9282010-05-14 Glenn Morris <rgm@gnu.org>
929
177b0288
GM
930 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
931
fbc00890
GM
932 * Makefile.in (mktime, X11, register): Move undefs to configure.
933
f14d1dfd
GM
934 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
935 (MSDOS_X_OBJ): New variable.
936 (MSDOS_SUPPORT_REAL): New constant.
937 (MSDOS_SUPPORT): Set as a variable, not with cpp.
938 (obj): Use MSDOS_X_OBJ.
939 (lisp): Use MSDOS_SUPPORT as a variable.
940
11842bd8
GM
941 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
942 (GPM_MOUSE_SUPPORT): Now it's a constant.
943 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
944 not cpp.
945
489d31a4 946 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 947 (ns_appresdir): Remove, unused.
e20f1f07 948
489d31a4
GM
949 * Makefile.in (SHELL): Move outside cpp section.
950
cb027b32
GM
951 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
952
5a903aa9
GM
9532010-05-13 Glenn Morris <rgm@gnu.org>
954
3369c79f
GM
955 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
956 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
957
d5e982a6
GM
958 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
959 HAVE_WINDOW_SYSTEM must be too.
960
6192e163
GM
961 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
962 (lisp): Remove WINNT_SUPPORT.
963
472c5d6b
GM
964 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
965 Let configure set these variables (to empty) in this case as well.
966
0116466b
GM
967 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
968 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
969
5a903aa9
GM
970 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
971 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
972 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
973 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
974 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 975 the values output by configure.
5a903aa9
GM
976 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
977
1a0d7c06
GM
9782010-05-12 Glenn Morris <rgm@gnu.org>
979
b5457f14
GM
980 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
981 (LINKER_WAS_SPECIFIED): Remove.
982
1a0d7c06
GM
983 * Makefile.in (LIB_GCC): Set using configure, not cpp.
984 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
985 * m/arm.h (LIB_GCC) [GNU_LINUX]:
986 * s/cygwin.h (LIB_GCC):
987 * s/freebsd.h (LIB_GCC):
988 * s/gnu-linux.h (LIB_GCC):
989 * s/msdos.h (LIB_GCC):
990 * s/netbsd.h (LIB_GCC):
991 Move to configure.
992
3ffd4615 9932010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
994
995 * ftfont.c: Fix incorrect parentheses of #if condition for
996 definining M17N_FLT_USE_NEW_FEATURE.
997
acddf8ae
GM
9982010-05-11 Glenn Morris <rgm@gnu.org>
999
1000 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
1001 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
1002
ae5e04fa
EZ
10032010-05-10 Eli Zaretskii <eliz@gnu.org>
1004
1005 * xdisp.c (init_iterator): Don't turn on bidi reordering in
1006 unibyte buffers. See
1007 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
1008
7490175b
GM
10092010-05-10 Glenn Morris <rgm@gnu.org>
1010
97efb629
GM
1011 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
1012 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
1013 (LIBES): Use LIBS_SYSTEM as a variable.
1014 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
1015 * s/aix4-2.h (LIBS_SYSTEM):
1016 * s/freebsd.h (LIBS_SYSTEM):
1017 * s/hpux10-20.h (LIBS_SYSTEM):
1018 * s/sol2-6.h (LIBS_SYSTEM):
1019 * s/unixware.h (LIBS_SYSTEM):
1020 Move to configure.
1021
7490175b
GM
1022 * s/aix4-2.h (MAIL_USE_LOCKF):
1023 * s/bsd-common.h (MAIL_USE_FLOCK):
1024 * s/darwin.h (MAIL_USE_FLOCK):
1025 * s/gnu-linux.h (MAIL_USE_FLOCK):
1026 * s/irix6-5.h (MAIL_USE_FLOCK):
1027 * s/template.h (MAIL_USE_FLOCK):
1028 Move to configure.
1029
0235128c 10302010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
1031
1032 * Version 23.2 released.
1033
0235128c 10342010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
1035
1036 * composite.c (autocmp_chars): Save point as marker before calling
1037 auto-composition-function (Bug#5984).
1038
1039 * lisp.h (restore_point_unwind): Add prototype.
1040
1041 * fileio.c (restore_point_unwind): Remove static attribute.
1042
0235128c 10432010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
1044
1045 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
1046 new feature of libotf and m17n-flt.
0235128c
SM
1047 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
1048 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
1049 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
1050 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
1051 that OUT is NULL. Use OTF_drive_gsub_with_log and
1052 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
1053 OTF_drive_gpos.
1054 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
1055 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
1056 Setup mflt_enable_new_feature and mflt_try_otf.
1057
4721152c
J
10582010-05-08 Jan Djärv <jan.h.d@swipnet.se>
1059
1060 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
1061
1062 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
1063 box and toolbar (Bug #6139).
1064 (xg_create_tool_bar): Remove comment (Bug #6139).
1065 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
1066 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
1067
ee0a16cf
JB
10682010-05-08 Juanma Barranquero <lekktu@gmail.com>
1069
1070 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
1071 Update dependencies.
1072
96d79611
EZ
10732010-05-08 Eli Zaretskii <eliz@gnu.org>
1074
1075 * fringe.c (update_window_fringes): Set up truncation bitmaps for
1076 R2L lines.
1077
40c17879
GM
10782010-05-08 Glenn Morris <rgm@gnu.org>
1079
7b42b29f
GM
1080 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
1081
40c17879
GM
1082 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
1083 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
1084 (termcapobj): Replace with TERMCAP_OBJ.
1085 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
1086 (LIBES): Use LIBS_TERMCAP as a variable.
1087
1088 * s/freebsd.h (osreldate.h): No longer include, since this file
1089 does not use __FreeBSD_version any more.
1090
1091 * s/aix4-2.h (TERMINFO):
1092 * s/cygwin.h (TERMINFO):
1093 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1094 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
1095 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1096 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1097 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
1098 * s/irix6-5.h (TERMINFO):
1099 * s/netbsd.h (LIBS_TERMCAP):
1100 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
1101 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
1102 * s/usg5-4.h (TERMINFO):
1103 Move to configure.
1104
94b612ad
SM
11052010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
1106
1107 * eval.c (unbind_to): Don't unbind a local binding into the global
1108 binding when the local binding disappeared. Inversely, don't unbind
1109 a global binding into a newly created local binding.
1110 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
1111 can specify the frame to use, when applicable. Adjust callers.
1112
15e12598 11132010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 1114 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
1115
1116 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
1117
f724825e
EZ
11182010-05-07 Eli Zaretskii <eliz@gnu.org>
1119
5cba3209
EZ
1120 * w32fns.c: Include w32.h.
1121 (Fw32_shell_execute): Decode the error message before passing it
1122 to `error'. (Bug#6126)
1123
d16bdfc3
EZ
1124 * msdos.c (dos_set_window_size):
1125 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
1126 instead of `XSYMBOL (foo)->value'.
1127
59d93e87
EZ
11282010-05-07 Eli Zaretskii <eliz@gnu.org>
1129
9fdec8bc
EZ
1130 Fix the MS-DOS build, broken by autoconfiscation.
1131
1132 * Makefile.in: Don't use Make-style comments past the "start of
1133 cpp stuff" line.
1134 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
1135
1136 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
1137 edited directly by msdos/sed1v2.inp).
f724825e 1138
2f86b22b
GM
11392010-05-07 Glenn Morris <rgm@gnu.org>
1140
1141 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
1142 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
1143 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
1144 move out of cpp section.
1145 * s/freebsd.h (LD_SWITCH_SYSTEM):
1146 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
1147 * s/netbsd.h (LD_SWITCH_SYSTEM):
1148 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
1149
49ebbd65
DN
11502010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
1151
1152 Define LIB_STANDARD and START_FILES using autoconf.
1153 * s/usg5-4.h (LIB_STANDARD):
1154 * s/netbsd.h (START_FILES):
1155 * s/irix6-5.h (LIB_STANDARD):
1156 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
1157 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
1158 * s/freebsd.h (START_FILES):
1159 * s/darwin.h (START_FILES):
1160 * s/cygwin.h (START_FILES):
1161 * s/aix4-2.h (LIB_STANDARD):
1162 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
1163 * Makefile.in (STARTFILES): Rename to START_FILES, define using
1164 autoconf, not cpp.
1165
d43c06d6
DN
11662010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
1167
28823648
DN
1168 Remove NEED_BSDTTY and NEED_UNISTD_H.
1169 * s/hpux10-20.h (NEED_BSDTTY): Remove.
1170 * s/aix4-2.h (NEED_UNISTD_H): Remove.
1171 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
1172 <sys/ptyio.h> and <unistd.h>.
1173
aca00430
DN
1174 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
1175
d43c06d6
DN
1176 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
1177 * s/gnu.h (START_FILES): Remove empty definition.
1178
3e56b11d
JD
11792010-05-06 Jan Djärv <jan.h.d@swipnet.se>
1180
1181 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
1182
e3cf0cde
GM
11832010-05-06 Glenn Morris <rgm@gnu.org>
1184
1185 * Makefile.in (CPP, LN_S): Remove unused variables.
1186
774b9a60
SM
11872010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
1188
1189 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
1190
4ab92842
LM
11912010-05-05 Lawrence Mitchell <wence@gmx.li>
1192
1193 * m/sparc.h: Fix typo in earlier change.
1194
178f2507
SM
11952010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
1196
1197 Misc tweaks.
1198 * eval.c (Fdefvaralias): Remove unintended nested if.
1199 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
1200
80f00217 12012010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
1202
1203 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
1204
ef03a4e6
DN
12052010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
1206
58eb6cf0
DN
1207 Remove BSD_PGRPS.
1208 * s/bsd-common.h (BSD_PGRPS): Remove undef.
1209 * s/gnu-linux.h (BSD_PGRPS): Remove.
1210 * term.c (dissociate_if_controlling_tty):
1211 * sysdep.c (narrow_foreground_group, widen_foreground_group)
1212 (init_sys_modes, reset_sys_modes):
1213 * emacs.c (main):
1214 * callproc.c (Fcall_process, child_setup): Remove code depending
1215 on BSD_PGRPS.
1216
ef03a4e6
DN
1217 Remove POSIX_SIGNALS.
1218 * s/usg5-4.h (POSIX_SIGNALS):
1219 * s/netbsd.h (POSIX_SIGNALS):
1220 * s/msdos.h (POSIX_SIGNALS):
1221 * s/ms-w32.h (POSIX_SIGNALS):
1222 * s/hpux11.h (POSIX_SIGNALS):
1223 * s/gnu.h (POSIX_SIGNALS):
1224 * s/gnu-linux.h (POSIX_SIGNALS):
1225 * s/freebsd.h (POSIX_SIGNALS):
1226 * s/darwin.h (POSIX_SIGNALS):
1227 * s/cygwin.h (POSIX_SIGNALS):
1228 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
1229 * s/unixware.h:
1230 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
1231 * process.c (create_process):
1232 * syssignal.h:
1233 * sysdep.c (wait_for_termination, init_signals):
1234 * process.c (create_process):
1235 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
1236 remove all code that assumes the contrary.
1237
49628785
GM
12382010-05-04 Glenn Morris <rgm@gnu.org>
1239
27a2cdfc
GM
1240 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
1241 variable.
1242 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
1243 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
1244 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
1245 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
1246 LD_SWITCH_SYSTEM_tmp.
1247 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
1248 New variables, set by configure.
1249
eb21eab5
GM
1250 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
1251 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
1252 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
1253 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
1254 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
1255
49628785
GM
1256 * s/aix4-2.h (C_SWITCH_SYSTEM):
1257 * m/alpha.h (C_SWITCH_MACHINE):
1258 Move to configure.in.
1259 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
1260 New variables, set by configure.
1261 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
1262 $c_switch_machine and $c_switch_system.
1263
7dff330b
DN
12642010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
1265
1266 * s/hpux10-20.h (LIB_STANDARD): New definition.
1267 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
1268 on it, not used anymore.
1269
53967e09
CY
12702010-05-03 Chong Yidong <cyd@stupidchicken.com>
1271
1272 * eval.c (internal_condition_case_n): Rename from
1273 internal_condition_case_2.
1274 (internal_condition_case_2): New function.
1275
1276 * xdisp.c (safe_call): Use internal_condition_case_n.
1277
1278 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
1279 (internal_delete_file, Frename_file): Callers changed.
1280
1281 * buffer.c (Fkill_buffer):
1282 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
1283
1284 * lisp.h: Update prototypes.
1285
3dee6fdb
GM
12862010-05-03 Glenn Morris <rgm@gnu.org>
1287
1288 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
1289 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
1290 (LIBXT): Set with configure, not cpp.
1291 (LIBX): Remove.
1292 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
1293
a101e0fb
DN
12942010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
1295
1296 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
1297 The FreeBSD is not needed, the default works, Solaris version is
1298 not needed, and the remaining case is not supported by configure.
1299
f63d0028
JD
13002010-05-02 Jan Djärv <jan.h.d@swipnet.se>
1301
1302 * xsmfns.c (CHDIR_OPT): New define.
1303 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
1304 restarting emacs.
1305
1306 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
1307 shut_down_emacs.
1308
1309 * emacs.c (USAGE1): Mention --chdir.
1310 (main): Handle --chdir.
1311 (standard_args): Add --chdir.
1312 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
1313 #5552).
1314
e4814a9f
DN
13152010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
1316
cd03c74a
DN
1317 Remove LD_SWITCH_MACHINE.
1318 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
1319 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
1320
c3a398a1
DN
1321 Clean up IRIX code.
1322 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
1323 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
1324
87e7285c
DN
1325 Clean up AIX code.
1326 * m/ibmrs6000.inp: Remove file, unused.
1327 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
1328 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
1329 definition ...
1330 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
1331
80f00217
JB
1332 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
1333 unused.
e4814a9f 1334
59ca28de
EZ
13352010-05-01 Eli Zaretskii <eliz@gnu.org>
1336
197daef4
EZ
1337 Emulate POSIX_SIGNALS on MS-Windows.
1338
1339 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
1340 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
1341
1342 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
1343 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
1344 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
1345
80f00217
JB
1346 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
1347 New stubs.
197daef4 1348
af7c7572
EZ
1349 Miscellaneous fixes of bidi display.
1350
59ca28de
EZ
1351 * xdisp.c (find_row_end): New function, refactored from display_line.
1352 (display_line): Use it.
017ea819
EZ
1353 (extend_face_to_end_of_line): In almost-filled rows, extend only
1354 if the row is R2L and not continued.
166e930d 1355 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 1356 Preserve overlay and string info in row->end.
166e930d
EZ
1357 (insert_left_trunc_glyphs): Support addition of left truncation
1358 glyphs to R2L rows.
b47e0dcf 1359 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
1360 glyph between adjacent windows. Fix a crash when a display string
1361 is continued to the next line. Don't return zero if cursor was
1362 found by `cursor' property of a display string.
b47e0dcf
EZ
1363 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
1364 test for that explicitly.
59ca28de 1365
7acac9f4
GM
13662010-05-01 Glenn Morris <rgm@gnu.org>
1367
1368 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
1369 for clarity.
1370 (OTHER_OBJ): Remove.
1371 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
1372 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
1373
45841e65
KK
13742010-05-01 Karel Klíč <kklic@redhat.com>
1375
1376 * fileio.c (Ffile_selinux_context): Context functions may return null.
1377
afc61943
DN
13782010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
1379
80f00217 1380 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 1381
5a1bb006
GM
13822010-04-30 Glenn Morris <rgm@gnu.org>
1383
1384 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
1385 (OTHER_OBJ): Define as a separate variable, for clarity.
1386
210af043
J
13872010-04-30 Jan Djärv <jan.h.d@swipnet.se>
1388
1389 * xsettings.c: include limits.h and update file comment.
1390
0a7df391
GM
13912010-04-30 Glenn Morris <rgm@gnu.org>
1392
d5096f16
GM
1393 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
1394 Set with configure, not cpp.
1395 (LIBW): Remove, replace with $TOOLKIT_LIBW.
1396
7eb1ac33
GM
1397 * Makefile.in (mallocobj): Remove.
1398 (otherobj): Simplify using @OTHER_OBJ@.
1399
517d086b
GM
1400 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
1401 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
1402 Don't bother making nsgui.h dependency platform-specific.
1403
0a7df391
GM
1404 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
1405
d6d23852
SM
14062010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
1407
d2630aef
SM
1408 * process.c (read_process_output, exec_sentinel): Don't burp if the
1409 sentinel/filter kills the current buffer (bug#6060).
1410
f9dddf52 1411 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
1412 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
1413 Remove unused var `args'.
1414 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
1415 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
1416 * doc.c (store_function_docstring): Use XSETCAR.
1417
f1e3642a
GM
14182010-04-28 Glenn Morris <rgm@gnu.org>
1419
faf535f8
GM
1420 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
1421 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
1422
c40f9449
GM
1423 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
1424
658f86ca
GM
1425 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
1426 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
1427
bc0b5f61
GM
1428 * Makefile.in (FONT_OBJ): New, set by configure.
1429 (FONT_DRIVERS): Use $FONT_OBJ.
1430
294c50a0
GM
1431 * Makefile.in (LIBXMU): Set with configure, not cpp.
1432 * s/aix4-2.h (LIBXMU):
1433 * s/hpux10-20.h (LIBXMU):
1434 Remove definition, now set in configure.
1435
e6ec4e99
GM
1436 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
1437
f1e3642a
GM
1438 * m/amdx86-64.h [i386]: Move this test to configure.in.
1439
c6ea2936
GM
14402010-04-27 Glenn Morris <rgm@gnu.org>
1441
8fdac2c3
GM
1442 * Makefile.in (LIBXTR6): Set with configure, not cpp.
1443 * s/unixware.h (NEED_LIBW): Remove definition.
1444
986fb647
GM
1445 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
1446 (TOOLKIT_LIBW): New, set by configure.
1447 (@X_TOOLKIT_TYPE@): No longer define it.
1448
c6ea2936
GM
1449 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
1450 (MOTIF_LIBW): Set with configure, not cpp.
1451 * s/aix4-2.h (LIB_MOTIF):
1452 * s/gnu-linux.h (LIB_MOTIF):
1453 * s/unixware.h (LIB_MOTIF): Move to configure.in.
1454
aaa36002
DN
14552010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
1456
1457 Reduce CPP usage.
1458 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
1459 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
1460 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
1461 definitions and undefs. Inline definitions in the only user.
1462 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 1463
b678dd8b
GM
14642010-04-27 Glenn Morris <rgm@gnu.org>
1465
76cda504
GM
1466 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
1467 since the defaults (set by the system file) are fine in most cases.
1468 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
1469 * m/ibms390x.h (START_FILES, LIB_STANDARD):
1470 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
1471 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
1472 Remove definitions, since they are set correctly in s/gnu-linux.h.
1473 * s/freebsd.h (START_FILES, LIB_STANDARD):
1474 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
1475 * s/hpux10-20.h (START_FILES):
1476 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
1477 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
1478
b678dd8b
GM
1479 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
1480 (MOTIF_LIBW): Use $LIBXP.
1481 (otherobj): Use $WIDGET_OBJ.
1482
9452ded1
DN
14832010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
1484
7e10844c
DN
1485 * Makefile.in (LIBS_MACHINE): Remove, unused.
1486
9452ded1
DN
1487 Use autoconf instead of cpp for LIB_MATH.
1488 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
1489 * s/cygwin.h (LIB_MATH): Likewise.
1490 * Makefile.in (LIB_MATH): Do not define with cpp.
1491 (LIBES): Use autoconf for LIB_MATH.
1492
fcebfc6a
KH
14932010-04-26 Kenichi Handa <handa@m17n.org>
1494
1495 * composite.c (Ffind_composition_internal): Fix the return value
1496 for an automatic composition.
1497
39e2ad1b
DN
14982010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
1499
1500 Remove all NO_ARG_ARRAY uses.
1501 * fns.c (concat2, concat3, nconc2):
1502 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
1503 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
1504 * m/xtensa.h (NO_ARG_ARRAY):
1505 * m/template.h (NO_ARG_ARRAY):
1506 * m/sparc.h (NO_ARG_ARRAY):
1507 * m/sh3.h (NO_ARG_ARRAY):
1508 * m/mips.h (NO_ARG_ARRAY):
1509 * m/macppc.h (NO_ARG_ARRAY):
1510 * m/iris4d.h (NO_ARG_ARRAY):
1511 * m/intel386.h (NO_ARG_ARRAY):
1512 * m/ibms390x.h (NO_ARG_ARRAY):
1513 * m/ibms390.h (NO_ARG_ARRAY):
1514 * m/ibmrs6000.h (NO_ARG_ARRAY):
1515 * m/ia64.h (NO_ARG_ARRAY):
1516 * m/hp800.h (NO_ARG_ARRAY):
1517 * m/arm.h (NO_ARG_ARRAY):
1518 * m/amdx86-64.h (NO_ARG_ARRAY):
1519 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
1520
adf4f59c
EZ
15212010-04-25 Eli Zaretskii <eliz@gnu.org>
1522
6bdf5d65
EZ
1523 * xdisp.c (display_line): Don't assume 2nd call to
1524 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
1525 (iterate_out_of_display_property): New function, body from pop_it.
1526 (pop_it): Use it.
adf4f59c 1527
dfbbda83
GM
15282010-04-24 Glenn Morris <rgm@gnu.org>
1529
1530 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
1531 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
1532 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
1533 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
1534
2d4018aa
EZ
15352010-04-24 Eli Zaretskii <eliz@gnu.org>
1536
a49884a6
EZ
1537 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
1538 use `get_next_display_element' and `set_iterator_to_next' to
1539 advance to the next character, when looking for the character that
1540 begins the next row.
1541
76db6fcc 1542 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
1543 definition of "struct Lisp_Symbol".
1544
70eab5c1
GM
15452010-04-24 Glenn Morris <rgm@gnu.org>
1546
1547 * Makefile.in (CRT_DIR): New variable, set by configure.
1548 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
1549 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
1550
1ad4cc3d
DN
15512010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1552
e769f484
DN
1553 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
1554
4196ff33
DN
1555 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
1556
879b0ee4
DN
1557 Remove redundant flags.
1558 * s/freebsd.h (C_SWITCH_SYSTEM):
1559 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
1560 * s/netbsd.h (C_SWITCH_SYSTEM):
1561 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
1562 of these.
1563
03cbbcb8
DN
1564 Simplify m/intel386.h.
1565 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
1566 user: ecrt0.c.
1567 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
1568 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
1569 the only user: s/unixware.h.
1570 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
1571 from m/intel386.h.
1572 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
1573 moved here from m/intel386.h.
1574
1ad4cc3d
DN
1575 * m/mips.h: Remove #if 0 code.
1576
8785b888
EZ
15772010-04-23 Eli Zaretskii <eliz@gnu.org>
1578
728588cc
EZ
1579 Fix display of composed characters from L2R scripts in bidi buffers.
1580 * xdisp.c (set_iterator_to_next, next_element_from_composition):
1581 After advancing IT past the composition, resync the bidi iterator
1582 with IT's position. (Bug#5977)
1583
a63f80b4
DN
15842010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1585
1586 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
1587 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
1588
ff5dec5c
SM
15892010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
1590
1591 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
1592
8785b888
EZ
15932010-04-23 Eli Zaretskii <eliz@gnu.org>
1594
58ccf243 1595 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
1596 * xdisp.c (pop_it): When the stack is popped after displaying
1597 from a string, bidi-iterate to exit from the text portion covered
1598 by the `display' property or overlay. (Bug#5988, bug#5920)
1599
feeb1604
DN
16002010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1601
8e324eb6
DN
1602 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
1603 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
1604
809fcaba
DN
1605 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
1606 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
1607
ed710380
DN
1608 Simplify STARTFILES definition.
1609 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
1610 relying on Makefile.in to define it.
1611 * s/cygwin.h (START_FILES): Likewise.
1612 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
1613
feeb1604
DN
1614 Clean up Solaris code.
1615 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
1616 (LIB_MOTIF): Remove, configure takes care of this.
1617 (NOT_USING_MOTIF): Remove, unused.
1618 * xrdb.c: Remove #if 0-ed #include.
1619 (SYSV): Remove conditional for old SysV.
1620 * sysdep.c (closedir): Remove conditional code for Solaris,
1621 Solaris has closedir.
1622
a0d0b563
JD
16232010-04-22 Jan Djärv <jan.h.d@swipnet.se>
1624
1625 * xsettings.c (read_and_apply_settings): Check if current_font is
1626 NULL before strcmp (Bug#6001).
1627
56bae7c7
DN
16282010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
1629
1630 Clean up HP-UX files.
1631 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
1632 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
1633 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
1634 * s/hpux10-20.h: ... to the only user, here.
1635
372b7a95
EZ
16362010-04-21 Eli Zaretskii <eliz@gnu.org>
1637
1638 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
1639 use buffer-local values of paragraph-start and paragraph-separate.
1640 <paragraph_start_re, paragraph_separate_re>: Rename from
1641 fallback_paragraph_start_re and fallback_paragraph_separate_re.
1642 (Bug#5992)
1643
f904c0f9
JD
16442010-04-21 Jan Djärv <jan.h.d@swipnet.se>
1645
1646 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
1647 current_tool_bar_style are new.
1648 (store_config_changed_event): Rename from store_font_changed_event.
1649 (XSETTINGS_TOOL_BAR_STYLE): New define.
1650 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
1651 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
1652 HAVE_XFT.
1653 (something_changedCB): store_font_changed_event is now
1654 store_config_changed_event
1655 (parse_settings): Rename from parse_xft_settings. Read
1656 non-xft xsettings outside #ifdef HAVE_XFT.
1657 (read_settings): Renamed from read_xft_settings.
1658 (apply_xft_settings): Take current settings as parameter. Do not
1659 call read_(xft)_settings.
1660 (read_and_apply_settings): New function.
1661 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
1662 read_and_apply_settings if there are settings to be read.
1663 (init_xsettings): Renamed from init_xfd_settings.
1664 Call read_and_apply_settings unconditionally.
1665 (xsettings_initialize): Call init_xsettings.
1666 (Ftool_bar_get_system_style): New function.
1667 (syms_of_xsettings): Define Qmonospace_font_name and
1668 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 1669 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 1670 dynamic-setting.
31a01b90 1671 Move misplaced HAVE_GCONF
f904c0f9
JD
1672
1673 * xsettings.h (Ftool_bar_get_system_style): Declare.
1674
1675 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
1676 Qtext, Qboth, Qboth_horiz are new.
1677 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
1678 Vtool_bar_style, tool_bar_max_label_size.
1679
1680 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
1681
1682 * keyboard.c: QClabel is new.
1683 (parse_tool_bar_item): Take out QClabel from tool bar items.
1684 Try to construct a label if ther is no QClabel.
1685 (syms_of_keyboard): Intern :label as QClabel.
1686
1687 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
1688 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
1689 New.
1690
1691 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
1692 dynamic-setting.el.
1693
1694 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
1695 (xg_make_tool_item, xg_show_toolbar_item): New function.
1696 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
1697 Call xg_make_tool_item to make a tool bar item.
1698 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
1699
1700 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
1701 into account for toolbars.
1702
c632dfda
JD
17032010-04-21 Jan Djärv <jan.h.d@swipnet.se>
1704
1705 * data.c (make_blv): Declarations before code (Bug#5993).
1706
10efe302
GM
17072010-04-21 Glenn Morris <rgm@gnu.org>
1708
1709 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
1710 Define using autoconf, not cpp.
1711 (LIBXSM): New variable, set by autoconf.
1712 (LIBXT): Use $LIBXSM.
1713
4285ac5a
DN
17142010-04-21 Dan Nicolaescu <local_user@dannlt>
1715
3ec759e7
DN
1716 Remove NOMULTIPLEJOBS, unused.
1717 * s/template.h (NOMULTIPLEJOBS):
1718 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
1719
4285ac5a
DN
1720 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
1721 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
1722 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
1723 detects -znocombreloc and passes it to the linker
1724 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
1725
2807228d
GM
17262010-04-21 Glenn Morris <rgm@gnu.org>
1727
1728 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
1729
574c05e2
KK
17302010-04-21 Karel Klíč <kklic@redhat.com>
1731
1732 * Makefile.in (LIBSELINUX_LIBS): New.
1733 (LIBES): Add $LIBSELINUX_LIBS.
1734 * eval.c, lisp.h (call7): New function.
1735 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
1736 (Ffile_selinux_context, Fset_file_selinux_context):
1737 New functions.
1738 (Fcopy_file): New parameter preserve-selinux-context.
1739 (Frename_file): Preserve selinux context when renaming by copy-file.
1740
91eac4bb 17412010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 1742 Eli Zaretskii <eliz@gnu.org>
91eac4bb 1743
50426a04
JB
1744 Don't depend on cm.c or termcap.c on Windows, use stubs.
1745 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
1746 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
1747 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
1748 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
1749 (sys_tputs, sys_tgetstr): New stubs.
1750 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
1751 (tputs, tgetstr): New; define to sys_*.
91eac4bb 1752
938efb77
JB
17532010-04-20 Juanma Barranquero <lekktu@gmail.com>
1754
1755 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
1756
b4bf28b7
SM
17572010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1758
8b1e1112
SM
1759 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
1760 Just signal a warning rather than an error when inside a let.
1761 (Fmake_variable_frame_local): Add the same test.
1762
933ac235
SM
1763 * font.c (syms_of_font): Make the style table vars read-only.
1764
b4bf28b7
SM
1765 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
1766 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
1767
1768 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
1769
93d68d0c
EZ
17702010-04-20 Eli Zaretskii <eliz@gnu.org>
1771
1772 Fix R2L paragraph display on TTY.
1773
1774 * xdisp.c (unproduce_glyphs): New function.
1775 (display_line): Use it when produced glyphs are discarded from R2L
1776 glyph rows.
1777 (append_composite_glyph): In R2L rows, prepend the glyph rather
1778 than appending it.
1779
1780 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
1781 rather than append it. Set up the resolved_level and bidi_type
1782 attributes of the appended glyph.
283ccc18
EZ
1783 (produce_special_glyphs): Mirror the backslash continuation
1784 character in R2L lines.
93d68d0c 1785
283ccc18 1786 Implement display of R2L paragraphs in GUI sessions.
26cdf528 1787
283ccc18
EZ
1788 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
1789 append_stretch_glyph.
1790 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
1791 off-by-one error in computing x at end of text in the row.
1792 (append_stretch_glyph): In reversed row, prepend the glyph rather
1793 than append it. Set resolved_level and bidi_type of the glyph.
1794 (extend_face_to_end_of_line): If the row is reversed, prepend a
1795 stretch glyph whose width is such that the rightmost glyph will be
1796 drawn at the right margin of the window. Fix off-by-one error on
1797 TTY frames in testing whether a line needs face extension. Fix
1798 face extension at ZV. If this is the last glyph row, use
1799 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
1800 region face.
1801 (set_cursor_from_row, display_line): Use
26cdf528
EZ
1802 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
1803 row->continuation_lines_width.
283ccc18
EZ
1804 (next_element_from_buffer): Don't call bidi_paragraph_init if we
1805 are at ZV. Fixes a crash when reseated to ZV by
1806 try_window_reusing_current_matrix.
45903529
EZ
1807 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
1808 which happens with R2L glyph rows. Fixes a crash when inserting a
1809 character at end of an R2L line.
283ccc18
EZ
1810 (set_cursor_from_row): Don't be fooled by truncated rows: don't
1811 treat them as having zero-width characters. Improve comments.
1812 Don't reverse pos_before and pos_after for reversed glyph rows.
1813 Set cursor.x to negative value when the cursor might be on the
1814 left fringe.
1815 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
1816 left fringe, not the right one.
f951a506
EZ
1817 (notice_overwritten_cursor, draw_phys_cursor_glyph)
1818 (erase_phys_cursor): For reversed cursor_row, support cursor on
1819 the left fringe.
1820
283ccc18
EZ
1821 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
1822 of continuation indicators on the fringes.
1823 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
1824 left fringe.
1825
f951a506
EZ
1826 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
1827 draw cursor on the left fringe.
1828
1829 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
1830 cursor on the left fringe.
1831
f951a506
EZ
1832 * dispnew.c (update_text_area): Handle reversed desired rows when
1833 the cursor is on the left fringe.
1834 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
1835 below, not by 0, for when the cursor is on the left fringe.
1836
3bb49aaf
JD
18372010-04-20 Jan Djärv <jan.h.d@swipnet.se>
1838
1839 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
1840 widget is a scrollbar.
1841
c0be27fd
KH
18422010-04-20 Kenichi Handa <handa@m17n.org>
1843
1844 * charset.c (char_charset): Consider Vcharset_non_preferred_head
1845 only when the arg CHARSET_LIST is nil.
1846
ce5b453a
SM
18472010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1848
1849 Make variable forwarding explicit rather the using special values.
1850 Basically, this makes the structure of buffer-local values and object
1851 forwarding explicit in the type of Lisp_Symbols rather than use
1852 special Lisp_Objects for that. This tends to lead to slightly more
1853 verbose code, but is more C-like, simpler, and makes it easier to make
1854 sure we handled all cases, among other things by letting the compiler
1855 help us check it.
1856 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
1857 Removing forwarding objects.
1858 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
1859 (struct Lisp_Symbol): Make the various forms of variable-forwarding
1860 explicit rather than hiding them inside Lisp_Object "values".
1861 (XFWDTYPE): New macro.
1862 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
1863 (XBUFFER_LOCAL_VALUE): Remove.
1864 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
1865 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
1866 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
1867 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
1868 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
1869 Remove the Lisp_Misc_* header.
1870 (struct Lisp_Buffer_Local_Value): Redefine.
1871 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
1872 (struct Lisp_Misc_Any): Add filler to get the right size.
1873 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
1874 Lisp_Intfwd.
1875 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
1876 (DEFVAR_KBOARD): Allocate a forwarding object.
1877 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
1878 (let_shadows_global_binding_p): New function.
1879 (union Lisp_Val_Fwd): New type.
1880 (make_blv): New function.
1881 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
1882 (store_symval_forwarding, swap_in_global_binding, Fboundp)
1883 (swap_in_symval_forwarding, find_symbol_value, Fset)
1884 (let_shadows_buffer_binding_p, set_internal, default_value)
1885 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
1886 (Fkill_local_variable, Fmake_variable_frame_local)
1887 (Flocal_variable_p, Flocal_variable_if_set_p)
1888 (Fvariable_binding_locus):
1889 * xdisp.c (select_frame_for_redisplay):
1890 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
1891 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
1892 * frame.c (store_frame_param):
1893 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
1894 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
1895 value structure.
1896 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
1897 (clone_per_buffer_values): Only adjust markers into the current buffer.
1898 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
1899 (Fbuffer_local_value, set_buffer_internal_1)
1900 (swap_out_buffer_local_variables):
1901 Adapt to the new symbol value structure.
1902 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
1903 (defvar_per_buffer): Take a new arg for the fwd object.
1904 (buffer_lisp_local_variables): Return a proper alist (different fix
1905 for bug#4138).
1906 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
1907 (Fgarbage_collect): Don't handle buffer_defaults specially.
1908 (mark_object): Handle new symbol value structure rather than the old
1909 special Lisp_Misc_* objects.
1910 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
1911 * term.c (set_tty_color_mode):
1912 * bidi.c (bidi_initialize): Don't access the ->value field directly.
1913 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
1914 a buffer_local_flags.
1915 * print.c (print_object): Get rid of impossible forwarding objects.
1916
fd3998ff
EZ
19172010-04-19 Eli Zaretskii <eliz@gnu.org>
1918
1919 * bidi.c (bidi_get_type, bidi_get_category)
1920 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
1921 (bidi_type_of_next_char, bidi_level_of_next_char):
1922 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 1923
e42cd1a7
JB
19242010-04-19 Juanma Barranquero <lekktu@gmail.com>
1925
1926 * dired.c (Ffile_attributes): Fix typo in docstring.
1927
6e104790 19282010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
1929
1930 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
1931 NSInteger (Bug#5811).
1932
6e104790 19332010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
1934
1935 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
1936 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
1937
6e104790 19382010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
1939
1940 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
1941
6e104790
SM
19422010-04-19 Chong Yidong <cyd@stupidchicken.com>
1943
1944 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
1945 terminal frames (Bug#5837).
1946
37dcfea0
EZ
19472010-04-19 Eli Zaretskii <eliz@gnu.org>
1948
d1da276f
EZ
1949 * .gdbinit (xsubchartable): New command.
1950
37dcfea0
EZ
19512010-04-19 Eli Zaretskii <eliz@gnu.org>
1952
1953 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 1954 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
1955 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
1956 and
1957 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
1958
e9515805
SM
19592010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
1960
1961 * alloc.c (Fpurecopy): Hash-cons if requested.
1962 (syms_of_alloc): Update purify-flag docstring.
1963
22aa44a8
JD
19642010-04-18 Jan Djärv <jan.h.d@swipnet.se>
1965
1966 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
1967 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
1968
ebb5722e
EZ
19692010-04-17 Eli Zaretskii <eliz@gnu.org>
1970
1971 Fix a crash when an NSM character is inserted at BEGV.
1972
1973 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
1974 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
1975 NEUTRAL_B or UNKNOWN_BT.
1976
0f4442ef
EZ
19772010-04-16 Eli Zaretskii <eliz@gnu.org>
1978
1979 * xdisp.c (set_cursor_from_row): Don't consider possibility of
1980 other rows with cursor unless they are different from this row and
1981 this row is part of a continued line. (Bug#5943)
1982
7d4e45f8
DN
19832010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
1984
1985 * s/freebsd.h: Restore osreldate.h include.
1986 Suggested by Naohiro Aota.
1987
5ba5ec85
J
19882010-04-16 Jan Djärv <jan.h.d@swipnet.se>
1989
1990 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
1991
20af301d
CY
19922010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
1993
1994 * s/cygwin.h: Avoid linking against static libgcc.
1995
a4b000fb
JL
19962010-04-15 Juri Linkov <juri@jurta.org>
1997
1998 * window.c: Add Qscroll_command.
1999 Remove Vscroll_preserve_screen_position_commands.
2000 (window_scroll_pixel_based, window_scroll_line_based): Check the
2001 `scroll-command' property on the last command instead of searching
2002 the last command in Vscroll_preserve_screen_position_commands.
2003 (syms_of_window): Initialize and staticpro `Qscroll_command'.
2004 Put Qscroll_command property on Qscroll_up and Qscroll_down.
2005 (scroll-preserve-screen-position): Doc fix.
2006 (Vscroll_preserve_screen_position_commands): Remove variable.
2007
bc319ba4
DN
20082010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
2009
6bb24457
DN
2010 * xdisp.c (message): Do not use NO_ARG_ARRAY.
2011
19d4c244
DN
20122010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
2013
2014 Reduce cpp use in Makefile.in.
2015 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
2016 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
2017 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
2018 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
2019 (CRT0_COMPILE): Remove, inline it in the only user.
2020
32129746
JL
20212010-04-14 Juri Linkov <juri@jurta.org>
2022
2023 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
2024 `scroll-up-command' and `M-v' from `scroll-down' to
2025 `scroll-down-command'.
2026
9013a7f8
JL
20272010-04-14 Juri Linkov <juri@jurta.org>
2028
2029 * window.c (Vscroll_preserve_screen_position_commands): New variable
2030 with the default value as the list of Qscroll_down and Qscroll_up.
2031 (window_scroll_pixel_based, window_scroll_line_based): Search the
2032 last command in the list Vscroll_preserve_screen_position_commands
2033 instead of comparing with Qscroll_up and Qscroll_down.
2034
4bef8d26
JD
20352010-04-13 Jan Djärv <jan.h.d@swipnet.se>
2036
92848133
JD
2037 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
2038 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
2039 does that.
2040
4bef8d26
JD
2041 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
2042 to zero.
2043
58b963f7
SM
20442010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2045
84164a0d
SM
2046 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
2047
2b0a91e7
SM
2048 Try to solve the problem of spurious EOF chars in long lines of text
2049 sent to interactive subprocesses.
2050 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
2051 (system_process_attributes): Remove unused var `ttotal'.
2052 * process.c (send_process): Don't bother breaking long line with EOF
2053 chars when talking to ttys any more.
2054 (wait_reading_process_output): Output a warning when called in such
2055 a way that it could block without being interruptible.
2056
58b963f7
SM
2057 Try to detect file modification within the same second.
2058 * buffer.h (struct buffer): New field modtime_size.
2059 * buffer.c (reset_buffer): Initialize it.
2060 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
2061 (Fverify_visited_file_modtime): Check it.
2062 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
2063 (Fset_visited_file_modtime): Set (or clear) it.
2064
01f5787b
SM
20652010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
2066
2067 * process.c (status_notify): Remove unused var `ro'.
2068
83725342
JD
20692010-04-12 Jan Djärv <jan.h.d@swipnet.se>
2070
2071 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
2072 more than one visual (Bug#5938).
2073
b9465836
DN
20742010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
2075
50426a04
JB
2076 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
2077 Undefine.
b9465836 2078
8d9c8ece
DN
20792010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
2080
b1f52161
DN
2081 Remove C_SWITCH_SYSTEM_TEMACS.
2082 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
2083 (malloc, realloc, free): Use emacs, not temacs for conditional
2084 definition.
2085
2086 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
2087 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
2088
8d9c8ece
DN
2089 Use autoconf, not cpp for some variables.
2090 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
2091 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
2092 (ALL_CFLAGS): Use them as make variables.
2093 (really-lwlib, really-oldXMenu): Do not pass them.
2094
1ecb2d3f
JD
20952010-04-11 Jan Djärv <jan.h.d@swipnet.se>
2096
2097 * xmenu.c (apply_systemfont_to_dialog): New.
2098 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
2099
3a4fa2f2
SM
21002010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
2101
97e53006
SM
2102 * process.c (exec_sentinel): Preserve current-buffer.
2103
3a4fa2f2
SM
2104 * process.c (read_process_output): Move the save-current-buffer to
2105 apply to both the filter and the non-filter branches.
2106
88df7221
DN
21072010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
2108
2109 * s/msdos.h (UNEXEC): New definition.
2110
5634ff85
YM
21112010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2112
6eff5c3d
YM
2113 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
2114 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
2115
2116 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
2117 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
2118 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
2119 TRY_WINDOW_CHECK_MARGINS.
2120
2121 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
2122 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
2123 width only when it is for padding.
5634ff85 2124
b13aef54
J
21252010-04-09 Jan Djärv <jan.h.d@swipnet.se>
2126
2127 * xfns.c (Fx_show_tip): Call try_window in a loop until
2128 fonts_changed_p is zero (Bug#2423).
2129
21d28484
EZ
21302010-04-08 Eli Zaretskii <eliz@gnu.org>
2131
2132 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
2133 the end of TEXT_AREA. (Bug#5856)
2134
0269ef77
JD
21352010-04-08 Jan Djärv <jan.h.d@swipnet.se>
2136
2137 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
2138 HAVE_GCONF.
2139
5930fe97
EZ
21402010-04-08 Eli Zaretskii <eliz@gnu.org>
2141
2142 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
2143 prev.orig_type, for resolving type of NSM. (Bug#5858)
2144
99852628
JD
21452010-04-08 Jan Djärv <jan.h.d@swipnet.se>
2146
2147 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
2148 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
2149 in current_font.
2150 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
2151 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
2152 New functions.
2153 (syms_of_xsettings): Initialize current_font.
2154 defsubr Sfont_get_system_normal_font.
99852628
JD
2155
2156 * xsettings.h (Ffont_get_system_normal_font,
2157 xsettings_get_system_normal_font): Declare.
2158
2159 * xfns.c (extern xlwmenu_default_font): Remove.
2160 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
2161 to xlwmenu.c.
2162
2163 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
2164 menu items in UTF-8.
2165
2166 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
2167 (apply_systemfont_to_menu): New function.
2168 (set_frame_menubar, create_and_show_popup_menu): Call
2169 apply_systemfont_to_menu.
2170
7fc874c4
J
21712010-04-07 Jan Djärv <jan.h.d@swipnet.se>
2172
2173 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
2174 FRAME_LINE_TO_PIXEL_Y.
2175
2176 * xterm.c (x_set_window_size_1): Don't add border_width/height to
2177 pixelwidth/height.
2178
863bf481
DN
21792010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
2180
5e5a3b92
DN
2181 Simplify code for HP machines.
2182 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
2183 for GNU_LINUX, not needed.
2184 (UNEXEC, NEED_BSDTTY): Move definitions...
2185 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
2186
863bf481
DN
2187 * m/iris4d.h (UNEXEC): Move definition ...
2188 * s/irix6-5.h (UNEXEC): ... here.
2189
3e6bec3b
JD
21902010-04-04 Jan Djärv <jan.h.d@swipnet.se>
2191
2192 * xfns.c (set_machine_and_pid_properties): New function.
2193 (Fx_create_frame): Call set_machine_and_pid_properties.
2194
2912322b
SM
21952010-04-03 Eli Zaretskii <eliz@gnu.org>
2196
1502b819
EZ
2197 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
2198 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
2199 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
2200
2912322b
SM
2201 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
2202 in this function. (Bug#5703)
2203
22042010-04-03 Chong Yidong <cyd@stupidchicken.com>
2205
2206 * nsterm.h: Fix last change.
2207
c435b432
DN
22082010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
2209
a568f507
DN
2210 * m/intel386.h (NO_REMAP): Move definition ...
2211 * s/msdos.h (NO_REMAP): ... here.
2212
4cd9f6c2
DN
2213 * m/vax.h (CRT0_DUMMIES): Remove, unused.
2214
c435b432
DN
2215 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
2216 used on those platforms.
2217
42a2c622
DN
22182010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
2219
2220 Remove extern errno declarations.
2221 * xterm.c:
2222 * xrdb.c:
2223 * w32term.c:
2224 * unexec.c:
2225 * unexaix.c:
2226 * sysdep.c:
2227 * process.c:
2228 * lread.c:
2229 * keyboard.c:
2230 * floatfns.c:
2231 * filelock.c:
2232 * fileio.c:
2233 * emacs.c (main):
2234 * ecrt0.c:
2235 * dispnew.c:
2236 * callproc.c:
2237 * buffer.c: Remove errno extern declarations.
2238 * s/netbsd.h (NEED_ERRNO): Remove.
2239
8224f93d
DN
22402010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
2241
2242 Remove all uses of LIBX11_SYSTEM.
2243 * Makefile.in (LIBX11_SYSTEM): Remove.
2244 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
2245 instead.
2246
814062c7
EZ
22472010-04-01 Eli Zaretskii <eliz@gnu.org>
2248
ed68db4d
EZ
2249 Remove support for DJGPP v1.x (bug#5813).
2250
2251 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
2252 * s/msdos.h:
2253 * unexec.c (make_hdr, copy_text_and_data):
2254 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 2255 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
2256 (IT_set_terminal_modes, __write, _rename, gethostname)
2257 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
2258 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
2259 the value of __DJGPP__.
ed68db4d
EZ
2260 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
2261 compatibility code.
8224f93d
DN
2262 * lread.c:
2263 * gmalloc.c (memalign):
2264 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
2265 * emacs.c (main):
2266 * dosfns.c (init_dosfns):
ed68db4d
EZ
2267 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
2268
52f4d8d5
EZ
22692010-04-01 Eli Zaretskii <eliz@gnu.org>
2270
814062c7
EZ
2271 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
2272 string with `cursor' property comes from an `after-string'
2273 overlay. (Bug#5816)
2274
0dc2e11d
GM
22752010-04-01 Glenn Morris <rgm@gnu.org>
2276
2277 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
2278 Define as Makefile variables.
2279 (LIBX): Use above variables rather than directly using autoconf.
2280
1d29df59
DN
22812010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
2282
2283 Clean up BSD_SYSTEM use.
2284 * xterm.c:
2285 * process.c:
2286 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
2287 for including <sys/ioctl.h>.
2288 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
2289 code is only used for MSDOS.
2290
1546c559
JL
22912010-03-31 Juri Linkov <juri@jurta.org>
2292
2293 * image.c: Add `Qextension_data'.
2294 (syms_of_image): Initialize and staticpro `Qextension_data'.
2295 (Fimage_metadata): Rename from `Fimage_extension_data'.
2296 (gif_load): Put GIF extension data to the property
2297 `Qextension_data'.
2298
6521c534
CY
22992010-03-31 Chong Yidong <cyd@stupidchicken.com>
2300
2301 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
2302 * nsterm.h: Fix prototype.
2303
52c30783
EZ
23042010-03-31 Eli Zaretskii <eliz@gnu.org>
2305
2306 * xdisp.c (highlight_trailing_whitespace): Support highlight of
2307 trailing whitespace in right-to-left rows.
2308
855a0da7
SM
23092010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
2310
2311 Get rid of the direct_output optimizations.
2312 * keyboard.c (nonundocount): Remove extern declaration.
2313 (command_loop_1): Remove brittle optimisation for cheap and
2314 common operations.
2315 * xdisp.c (redisplay_internal): Don't bother checking
2316 redisplay_performed_directly_p any more.
2317 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
2318 any more.
2319 * dispnew.c (redisplay_performed_directly_p)
2320 (direct_output_for_insert, direct_output_forward_char):
2321 * dispextern.h (redisplay_performed_directly_p)
2322 (direct_output_for_insert, direct_output_forward_char): Remove.
2323 * cmds.c (nonundocount): Make it static.
2324
85738751 23252010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
2326
2327 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
2328
85738751 23292010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
2330
2331 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
2332 invisible (Bug#5766).
2333
85738751 23342010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 2335
855a0da7
SM
2336 * xdisp.c (x_consider_frame_title, update_window_cursor):
2337 Remove HAVE_NS conditionals.
194d44e7 2338 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
2339
2340 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
2341 filename for the title.
2342 (ns_set_doc_edited): Do nothing if the selected window is a
2343 minibuffer window.
2344
2345 * nsterm.h: Add prototypes for ns_set_name_as_filename and
2346 ns_set_doc_edited.
2347
2348 * nsterm.m: Remove unneeded prototype.
2349
85738751 23502010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
2351
2352 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
2353 in the DOC file. (Bug#5336)
2354
85738751 23552010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
2356
2357 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
2358
75d1428c
SM
23592010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
2360
2361 * window.c (keys_of_window): Remove redundant/overridden bindings.
2362
82043cfb
EZ
23632010-03-30 Eli Zaretskii <eliz@gnu.org>
2364
2365 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
2366 Restore original behavior when the iterator is not bidi_p.
2367
b5dd0ae7
DN
23682010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
2369
2370 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
2371
bd924a5d
EZ
23722010-03-30 Eli Zaretskii <eliz@gnu.org>
2373
2374 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
2375 are outside the range of cached character positions.
2376
3580374b
JB
23772010-03-30 Juanma Barranquero <lekktu@gmail.com>
2378
2379 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
2380
a7b02820
EZ
23812010-03-30 Eli Zaretskii <eliz@gnu.org>
2382
2383 Initial support for bidirectional editing.
2384
2385 * Makefile.in (obj): Include bidi.o.
2386 (bidi.o): New target.
2387
2388 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
2389 ($(BLD)/bidi.$(O)): New target.
2390
2391 * bidi.c: New file.
2392
2393 * buffer.h (struct buffer): New members bidi_display_reordering
2394 and bidi_paragraph_direction.
2395
2396 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
2397 and bidi_paragraph_direction.
2398 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
2399 and bidi-paragraph-direction.
2400 (Fbuffer_swap_text): Swap the values of
2401 bidi_display_reordering and bidi_paragraph_direction.
2402
2403 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
2404 (bidi_type_t, bidi_dir_t): New types.
2405 (bidi_saved_info, bidi_stack, bidi_it): New structures.
2406 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
2407 prev_stop, base_level_stop, and eol_pos.
2408 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
2409 (IT_STACK_SIZE): Enlarge to 5.
2410 (struct glyph_row): New member reversed_p.
2411 <string_buffer_position>: Update prototype.
2412 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
2413 glyph_row if bidi_it.paragraph_dir == R2L.
2414 (struct glyph): New members resolved_level and bidi_type.
2415
2416 * dispnew.c (direct_output_forward_char): Give up if we need bidi
2417 processing or buffer's direction is right-to-left.
2418 (prepare_desired_row): Preserve the reversed_p flag.
2419 (row_equal_p): Compare the reversed_p attributes as well.
2420
2421 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
2422 bidi_init_it and set it->paragraph_embedding from the current
2423 buffer's value of bidi_paragraph_direction.
2424 (reseat_1): Initialize bidi_it.first_elt.
2425 (set_iterator_to_next, next_element_from_buffer): Use the value of
2426 paragraph_embedding to determine the paragraph direction.
2427 (set_iterator_to_next): Under bidi reordering, call
2428 bidi_get_next_char_visually. Call bidi_paragraph_init if the
2429 new_paragraph flag is set in the bidi iterator.
2430 (next_element_from_buffer): If bidi_it.first_elt is set,
2431 initialize paragraph direction and find the first character to
2432 display in the visual order. If reseated to a middle of a line,
2433 prime the bidi iterator starting at the line's beginning. Handle
2434 the situation where we overstepped stop_charpos due to
2435 non-linearity of the bidi iteration. Likewise for when we back up
2436 beyond the previous stop_charpos. When moving across stop_charpos,
2437 record it in prev_stop.
2438 (display_line): Set row->end and it->start for the next row to the
2439 next character in logical order. Always extend reversed_p rows to
2440 the end of line, even if they end at ZV. Copy the reversed_p flag
2441 to the next glyph row. Keep calling set_cursor_from_row for
2442 bidi-reordered rows even if we already have a possible candidate
2443 for cursor position. Set row_end after all the row's glyphs have
2444 been produced, by looping over the glyphs. Record the position
2445 after EOL in it->eol_pos, and use it to set end_pos of the last
2446 row produced for a continued line.
2447 <Qright_to_left, Qleft_to_right>: New variables.
2448 (syms_of_xdisp): Initialize and staticpro them.
2449 (string_buffer_position_lim): New function.
2450 (string_buffer_position): Most of code moved to
2451 string_buffer_position_lim. Last argument and return value are
2452 now EMACS_INT; all callers changed.
2453 (set_cursor_from_row): Rewritten to support bidirectional text and
2454 reversed glyph rows.
2455 (text_outside_line_unchanged_p, try_window_id): Disable
2456 optimizations if we are reordering bidirectional text and the
2457 paragraph direction can be affected by the change.
2458 (append_glyph, append_composite_glyph)
2459 (produce_image_glyph, append_stretch_glyph): Set the
2460 resolved_level and bidi_type members of each glyph.
2461 (append_glyph): If the glyph row is reversed, prepend the glyph
2462 rather than appending it.
2463 (handle_stop_backwards): New function.
2464 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
2465 (reseat): call handle_stop_backwards to recompute prev_stop and
2466 base_level_stop for the new position.
2467 (handle_invisible_prop): Under bidi iteration, skip invisible text
2468 using bidi_get_next_char_visually. If we are `reseat'ed, init the
2469 paragraph direction. Update IT->prev_stop after skipping
2470 invisible text.
2471 (move_it_in_display_line_to): New variables prev_method
2472 and prev_pos. Compare for strict equality in
2473 BUFFER_POS_REACHED_P.
2474 (try_cursor_movement): Examine all the candidate rows that occlude
2475 point, to return the best match. If rows are bidi-reordered
2476 and point moved backwards, back up to the row that is not a
2477 continuation line, and start looking for a suitable row from
2478 there.
2479
2480 * term.c (append_glyph): Reverse glyphs by pre-pending them,
2481 rather than appending, if the glyph_row's reversed_p flag is set.
2482 Set the resolved_level and bidi_type members of each glyph.
2483
2484 * .gdbinit (pbiditype): New command.
2485 (pgx): Use it to display bidi level and type of the glyph.
2486 (pitx): Display some bidi information about the iterator.
2487 (prowlims, pmtxrows): New commands.
2488
32a8894e
DN
24892010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
2490
2491 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
2492 * s/usg5-4.h (LIBS_DEBUG):
2493 * s/irix6-5.h (C_DEBUG_SWITCH):
2494 * s/gnu-linux.h (LIBS_DEBUG):
2495 * s/darwin.h (LIBS_DEBUG):
2496 * s/bsd-common.h (LIBS_DEBUG):
2497 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
2498 * m/iris4d.h (LIBS_DEBUG):
2499 * m/hp800.h (LIBS_DEBUG): Remove definitions.
2500
2501 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
2502 (LIBS_DEBUG): Remove definition.
2503
649dbf36
CY
25042010-03-27 Chong Yidong <cyd@stupidchicken.com>
2505
2506 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
2507 Windows.
2508
cad4261f
YM
25092010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2510
2511 * process.c (Fmake_network_process): Don't call turn_on_atimers around
2512 `connect' (Bug#5723).
2513
cd591dbc
HE
25142010-03-25 Helmut Eller <eller.helmut@gmail.com>
2515
2516 * process.c (Fmake_network_process): Call `select' for interrupted
2517 `connect' rather than creating new socket (Bug#5173).
2518
e867cb5d 25192010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
2520
2521 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
2522
2523 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
2524
2525 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
2526
e867cb5d 25272010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
2528
2529 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
2530 XLoadQueryFont.
2531
e867cb5d 25322010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
2533
2534 * coding.c (decode_coding_ccl): Fix previous change for the
2535 multibyte case.
fb608df3
KH
2536 (encode_coding_ccl): Don't setup ccl program here. Fix for the
2537 case that the output buffer is fullfilled.
2538 (encode_coding): Setup ccl program here.
fbdc1721 2539
5845f0ed
DN
25402010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
2541
814fb708
DN
2542 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
2543
5845f0ed
DN
2544 Simplify LIBS_MACHINE definitions.
2545 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
2546 * m/iris4d.h (LIBS_MACHINE): Likewise.
2547 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
2548 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 2549 * s/netbsd.h: Remove commented out code.
5845f0ed 2550
b7064064
DN
25512010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
2552
df7734b2
DN
2553 Remove dead code dealing with POSIX_SIGNALS.
2554 * atimer.c (set_alarm): Remove dead code, all USG systems define
2555 POSIX_SIGNALS.
2556 * data.c (arith_error): Likewise.
2557 * keyboard.c (input_available_signal, handle_user_signal)
2558 (interrupt_signal): Likewise.
2559 * process.c (sigchld_handler): Likewise.
2560 (create_process): Remove if 0 code. Remove HPUX conditional when
2561 !defined (POSIX_SIGNALS), it cannot be true.
2562 * syssignal.h: Remove USG5_4 and USG conditionals when
2563 !POSIX_SIGNALS, they cannot be true.
2564
b7064064
DN
2565 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
2566 NO_SOCK_SIGIO, not used anymore.
2567
55da5ee3
DN
25682010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
2569
0be96e3a
DN
2570 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
2571 support vax on BSDs.
2572
55da5ee3
DN
2573 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
2574 * s/aix4-2.h (ORDINARY_LINK): ... here.
2575
c0282183
AS
25762010-03-21 Andreas Schwab <schwab@linux-m68k.org>
2577
82c3d67a
AS
2578 * Makefile.in (abs_builddir): Define.
2579 (bootstrap_exe): Use it.
2580 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 2581
3613edce
SM
25822010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
2583
2584 * Makefile.in (bootstrap_exe): Use an absolute name.
2585
7f110ddc
DN
25862010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2587
22e87574
DN
2588 Remove support for old GNU/Linux using libc version 5.
2589 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
2590 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
2591
05a670e6
DN
2592 Consolidate redundant definitions in s/bsd-common.h.
2593 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2594 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2595 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
2596 doing it in all files that include this one.
2597 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2598 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2599 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2600 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2601 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2602 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2603 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2604 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2605 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2606
2968f561
DN
2607 Consolidate redundant definitions.
2608 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
2609 it's undefined in all files that include this one.
2610 (POSIX_SIGNALS): Define here instead of doing it in all files that
2611 include this one.
2612 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2613 (POSIX_SIGNALS): Do not define.
2614 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2615 (POSIX_SIGNALS): Do not define.
2616 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2617 (POSIX_SIGNALS): Do not define.
2618
15d25dc0
DN
2619 Remove support for old UNIX System V systems.
2620 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
2621 * s/usg-5-4-2.h: Remove.
2622
07e339e4
DN
2623 Remove support for Solaris on PPC and for old versions.
2624 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
2625 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
2626 that cancel each other.
2627 * s/sol2-3.h:
2628 * s/sol2-4.h:
2629 * s/sol2-5.h: Remove.
2630 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
2631 (NO_REMAP): Remove, unused.
2632 (UNEXEC): Move definition ...
2633 * s/aix4-2.h (UNEXEC): ... here.
2634
7f110ddc
DN
2635 * s/openbsd.h: Remove support for non-ELF and for systems that do
2636 not support shared libraries.
2637 * s/netbsd.h:
2638 * s/freebsd.h: Likewise.
2639
605f35cd
DN
26402010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2641
2642 Remove non-working support for lynxos 3.0.
2643 * s/lynxos.h: Remove file.
2644
2645 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
2646 COFF_BSD_SYMBOLS, nothing defines it anymore.
2647
aed71cf4
DN
26482010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2649
2650 Remove obsolete uses of HAVE_SHM.
2651 * emacs.c (standard_args):
2652 (Fdump_emacs):
2653 (syms_of_emacs): Remove code depending on HAVE_SHM.
2654
2655 * alloc.c: Remove HAVE_SHM dependent definition.
2656
2657 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
2658
aded53ff
GM
26592010-03-18 Glenn Morris <rgm@gnu.org>
2660
17284745
GM
2661 * emacs.c (USAGE4): Hard-code bug address.
2662 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
2663 (bug_reporting_address): Remove.
2664 (main): Don't call bug_reporting_address.
2665
aded53ff
GM
2666 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
2667 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
2668
303500aa
CY
26692010-03-15 Chong Yidong <cyd@stupidchicken.com>
2670
2671 * xfns.c (Fx_create_frame):
2672 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
2673 on left.
2674
cef3058f
CY
26752010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
2676
2677 * editfns.c (Fformat): Account for string precision when computing
2678 field width (Bug#5710).
2679
a647d59d
CY
26802010-03-12 Chong Yidong <cyd@stupidchicken.com>
2681
4fa42018
CY
2682 * xfns.c (Fx_create_frame): Set default to Qright.
2683
a647d59d
CY
2684 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
2685 all window systems.
2686
6da23aaa
EZ
26872010-03-12 Eli Zaretskii <eliz@gnu.org>
2688
a96f6398 2689 These changes remove termcap.c from the build on Posix platforms.
83d02def 2690 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
2691 (MSDOS_OBJ): ...to here.
2692 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
2693 now identical to when LIBS_TERMCAP is defined.
2694
2695 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
2696
2697 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
2698
a96f6398 2699 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 2700
288f9fc0
CY
27012010-03-10 Chong Yidong <cyd@stupidchicken.com>
2702
2703 * Branch for 23.2.
2704
d48cd3f4
SM
27052010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
2706
2707 Cleanup setup of gl_state in various parts of the code.
2708 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
2709 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
2710 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
2711 (skip_chars):
2712 * regex.c (regex_compile): Use it.
2713 (re_compile_pattern): Don't set gl_state.current_syntax_table since
2714 it's now set in regex_compile when/if we need it.
2715
618db430
SM
27162010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
2717
c0335e02
SM
2718 Make it possible to C-g in a tight bytecode loop again (bug#5680).
2719 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
2720 (QUIT): Use it to consolidate code and remove redundancy.
2721 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
2722
254c06a8
SM
2723 * regex.c (regex_compile): Setup gl_state as well.
2724
618db430
SM
2725 * syntax.c (skip_chars): Setup gl_state (bug#3823).
2726 (in_classes): Use CONSP before XCAR/XCDR.
2727
233f0c9f
CY
27282010-03-03 Chong Yidong <cyd@stupidchicken.com>
2729
2730 * keymap.c (Fwhere_is_internal): Use Fequal to compare
2731 definitions, so that keyboard macros are correctly handled
2732 (Bug#5481).
2733
75f80e63
EZ
27342010-03-02 Eli Zaretskii <eliz@gnu.org>
2735
2736 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
2737 text that could be relocated inside the call to emacs_mule_char.
2738 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
2739 (CODING_DECODE_CHAR): Add a comment describing its purpose.
2740
dcfb9bc4
KH
27412010-03-02 Kenichi Handa <handa@m17n.org>
2742
fc9a17bc
KH
2743 * character.c (parse_str_as_multibyte): Fix handling of the
2744 multibyte form of raw-bytes.
2745 (str_as_multibyte): Likewise.
2746
dcfb9bc4
KH
2747 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
2748 form of raw-bytes.
2749
412c01b6
CY
27502010-02-28 Chong Yidong <cyd@stupidchicken.com>
2751
2752 * charset.c (load_charset_map_from_file)
2753 (load_charset_map_from_vector): Zero out allocated
2754 charset_map_entries before using them.
2755
df7e1ea0
AS
27562010-02-27 Andreas Schwab <schwab@linux-m68k.org>
2757
2758 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
2759
fe69a722
CY
27602010-02-27 Chong Yidong <cyd@stupidchicken.com>
2761
4ed28cf4
CY
2762 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
2763 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 2764
7379cfce
KH
27652010-02-26 Kenichi Handa <handa@m17n.org>
2766
f88cc4d6
KH
2767 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
2768
7379cfce
KH
2769 * xdisp.c (reseat_to_string): Fix previous change.
2770
cf2fdcfb
CY
27712010-02-26 David Reitter <david.reitter@gmail.com>
2772
2773 * nsfont.m (nsfont_draw): ns_antialias_text should be a
2774 Lisp_Object (Bug#4736).
2775
cc6c7c75
KH
27762010-02-25 Kenichi Handa <handa@m17n.org>
2777
2778 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
2779
32e737d7
JD
27802010-02-24 Jan Djärv <jan.h.d@swipnet.se>
2781
2782 * xterm.c (XTflash): Move declarations before statements.
2783
2784 * gtkutil.c (xg_get_gdk_display): Remove (unused).
2785 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
2786 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
2787 (xg_create_tool_bar): Remove unused variables.
2788 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 2789 (xg_create_frame_widgets): Remove variable grav.
32e737d7 2790
676cae9f
CY
27912010-02-21 Chong Yidong <cyd@stupidchicken.com>
2792
2793 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
2794
886cc2b8
SM
27952010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
2796
2797 * term.c (fatal): Add a final \n if needed (bug#5596).
2798
ddb2d8e2
CY
27992010-02-18 Chong Yidong <cyd@stupidchicken.com>
2800
2801 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
2802
2a4f8d3d
GM
28032010-02-18 Glenn Morris <rgm@gnu.org>
2804
2805 * callint.c (Finteractive): Doc fix.
2806
ebaf11b6
KH
28072010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
2808
886cc2b8
SM
2809 * coding.c (record_conversion_result):
2810 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
2811 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
2812 memory allocation error.
2813
d0396581
KH
28142010-02-17 Kenichi Handa <handa@m17n.org>
2815
886cc2b8
SM
2816 * coding.c (decode_coding_ccl): Don't setup ccl program here.
2817 Fix for the case that the output buffer is fullfilled.
d0396581
KH
2818 (decode_coding): Setup ccl program here. Keep looping when the
2819 decoder stopped because the output buffer is
2820 fullfilled (bug#5534).
2821
2822 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
2823
98599f74
JD
28242010-02-13 Jan Djärv <jan.h.d@swipnet.se>
2825
471e4f04 2826 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 2827 bug #5571.
886cc2b8 2828 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 2829 overdrawn.
98599f74 2830
182659ae
JD
28312010-02-10 Jan Djärv <jan.h.d@swipnet.se>
2832
2833 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
2834 doing_interact here.
2835 (ice_connection_closed): New function.
2836 (x_session_check_input, smc_die_CB, ice_io_error_handler)
2837 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
2838 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
2839 returns I/O error.
2840 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
2841 bug #5512.
2842
9be32c4e 28432010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
2844
2845 * nsfont.m (nsfont_open): The system's value for the font descent
2846 is negative, so round it down to avoid clipping.
2847
a2f3eb19
CY
28482010-02-06 Chong Yidong <cyd@stupidchicken.com>
2849
2850 * charset.c (load_charset_map_from_file)
2851 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 2852 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 2853
3088147c
CY
28542010-02-05 Chong Yidong <cyd@stupidchicken.com>
2855
2856 * charset.c (load_charset_map_from_file): Allocate large
2857 charset_map_entries structure on the heap rather than the stack.
2858 (Bug#5526).
2859
b57d9029
KH
28602010-01-31 Kenichi Handa <handa@m17n.org>
2861
2862 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 2863 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 2864
c67d885b
CY
28652010-01-31 Chong Yidong <cyd@stupidchicken.com>
2866
2867 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
2868 <deactivated@gmail.com> (Bug#3605).
2869
8fab2362
CY
28702010-01-31 David De La Harpe Golden <david@harpegolden.net>
2871
2872 * fileio.c (Frename_file): Correctly rename symlinks to
2873 directories (Bug#5496).
2874
cb2a62f2
CY
28752010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
2876
2877 * nsterm.m (ns_ring_bell): Handle visible bell like X.
2878
944c7a26
AS
28792010-01-30 Andreas Schwab <schwab@linux-m68k.org>
2880
2881 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
2882
c024ac08
CY
28832010-01-29 Chong Yidong <cyd@stupidchicken.com>
2884
2885 * frame.c (DEFAULT_ROWS): Change default to 35.
2886
2887 * xfns.c (x_default_font_parameter): Change default XFT font to
2888 monospace-10 (Bug#3643).
2889
af93af83
EZ
28902010-01-29 Eli Zaretskii <eliz@gnu.org>
2891
2892 * w32inevt.c (key_event): Remove unnecessary comparison of
2893 event->uChar.AsciiChar with 128.
2894
ca0eb708
CY
28952010-01-28 Chong Yidong <cyd@stupidchicken.com>
2896
b242dbfc
CY
2897 * fileio.c (Frename_file): Fix last change (Bug#5487).
2898
ca0eb708
CY
2899 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
2900
2901 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
2902
45d45af5
JD
29032010-01-28 Jan Djärv <jan.h.d@swipnet.se>
2904
2905 * xfns.c (Fx_create_frame): Remove window size matching code from
2906 2010-01-15.
a73f9c9d 2907 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 2908
7e233730
JR
29092010-01-27 Jason Rumney <jasonr@gnu.org>
2910
2911 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 2912 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 2913
86e893e3
KH
29142010-01-27 Kenichi Handa <handa@m17n.org>
2915
2916 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 2917 pattern string (Bug#4209).
86e893e3 2918
8719abec
CY
29192010-01-27 David De La Harpe Golden <david@harpegolden.net>
2920
2921 * fileio.c (Frename_file): Call copy-directory and
2922 delete-directory for directories, in order to handle cross-device
2923 renaming (Bug#3353).
2924
844794c8
JD
29252010-01-25 Jan Djärv <jan.h.d@swipnet.se>
2926
aa3e13b5 2927 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 2928 sizes 24 and 10. Bug #3643.
844794c8 2929
bd4b5750
SM
29302010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
2931
8dc1adf6 2932 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
2933 * keymap.c (shadow_lookup): Add `remap' arg.
2934 (describe_map, describe_vector): Update calls to shadow_lookup.
2935 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
2936 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
2937 perform remapping during shadow_lookup check of remapped_sequences.
2938
285d07e2
CY
29392010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
2940
2941 * image.c (png_load): Use png_sig_cmp instead of the obsolete
2942 png_check_sig, which has been removed in libpng 1.4.
2943
c6d09b8d
CY
29442010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
2945
2946 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
2947 lacks this header file).
2948
3d782998
YM
29492010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2950
2951 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
2952 as in Emacs 22.
2953
2aff7c53
YM
29542010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2955
2956 * lisp.h (make_pure_string): String pointer arg now points to const.
2957
2958 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
2959 args now point to const.
2960
74327f7a
EZ
29612010-01-22 Eli Zaretskii <eliz@gnu.org>
2962
2963 * lread.c (Fload): Don't treat files without .elc extension as
2964 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
2965 them. (bug#5303)
2966
4d1e6632
KH
29672010-01-20 Kenichi Handa <handa@m17n.org>
2968
2969 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
2970 treat the source as actual byte sequence.
2971
1fdede8f
AM
29722010-01-19 Alan Mackenzie <acm@muc.de>
2973
2974 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 2975 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
2976 `signal_after_change_p' to `coherent_change_p', and make the
2977 invocation of `modify_region' conditional on it.
2978
67477f30
JD
29792010-01-19 Jan Djärv <jan.h.d@swipnet.se>
2980
2981 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
2982 for debug purpose.
2983 (syms_of_xsettings): Declare xft-settings.
2984
244b023e
CY
29852010-01-18 Chong Yidong <cyd@stupidchicken.com>
2986
2987 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
2988
617364fe
CY
29892010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
2990
2991 * xterm.c (event_handler_gdk): Block input (Bug#5037).
2992
4fe22cdf
CY
29932010-01-16 Chong Yidong <cyd@stupidchicken.com>
2994
2995 * emacs.c (standard_args): Adjust arg priorities to reflect how
2996 they are processed in startup.el.
2997
e118d2be
AS
29982010-01-16 Andreas Schwab <schwab@linux-m68k.org>
2999
3000 * Makefile.in (lisp, shortlisp): Update.
3001
523ae620
SM
30022010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
3003
3004 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
3005 code, link the new kboard into all_kboard before running Lisp code,
3006 and protect the new terminal with GCPRO (Bug#5365).
3007 (x_term_init): Remove unused var `atom'.
3008 (x_delete_display, x_delete_terminal): Remove unused var `i'.
3009
f0d13888
JD
30102010-01-15 Jan Djärv <jan.h.d@swipnet.se>
3011
3012 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
3013 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
3014 to find out usable size of the desktop. Don't make frames larger than
ac146f82 3015 this. Bug #3643.
f0d13888 3016
cc320f07
KH
30172010-01-15 Kenichi Handa <handa@m17n.org>
3018
3019 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
3020
7ffdf101
CY
30212010-01-15 Chong Yidong <cyd@stupidchicken.com>
3022
3023 * nsterm.m (Qnone): Define.
3024
3025 * nsfns.m (Qnone): Move definition to nsterm.m.
3026
d12bd917
KH
30272010-01-14 Kenichi Handa <handa@m17n.org>
3028
3029 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
3030 systems.
3031
d9a7c140
KH
30322010-01-14 Kenichi Handa <handa@m17n.org>
3033
3034 Make auto-composition work on all buffers even if they are
3035 fundamental mode.
3036
3037 * composite.c (Vauto_composition_mode): New variable.
3038 (composition_compute_stop_pos): Check Vauto_composition_mode
3039 instead of Vauto_composition_function.
3040 (composition_adjust_point, Ffind_composition_internal): Likewise.
3041 (syms_of_composite): Declare Lisp variable
3042 "auto-composition-mode" here.
3043
63286bb2
CY
30442010-01-13 Chong Yidong <cyd@stupidchicken.com>
3045
3046 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
3047 during call to vendor-specific-keysyms (Bug#5365).
3048
c2623ee7
YM
30492010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3050
3051 * keyboard.c (input_available_signal) [SYNC_INPUT]:
3052 Call SIGNAL_THREAD_CHECK (Bug#5333).
3053
3054 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
3055 Call SIGNAL_THREAD_CHECK.
3056
0b5397c2
SM
30572010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
3058
3059 Try to fix bug#5314. This is probably not the final word, tho.
3060 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
3061 recent-auto-save-p as a side-effect.
3062 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
3063 * buffer.c (Fkill_buffer, reset_buffer):
3064 * editfns.c (Fsubst_char_in_region):
3065 * fileio.c (Finsert_file_contents, Fdo_auto_save)
3066 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
3067
dc954cb2
KH
30682010-01-13 Kenichi Handa <handa@m17n.org>
3069
3070 Display buffer name, etc. in mode line by composing correctly.
3071
3072 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
3073 STRING is not nil.
0b5397c2 3074 (display_mode_element): Adjust for the change of
dc954cb2
KH
3075 decode_mode_spec and display_line.
3076 (decode_mode_spec): Change arg MULTIBYTE to STRING.
3077 (display_string): Handle the case that STRING is non-null and
3078 LISP_STRING is not nil.
3079
0b5397c2
SM
3080 * xterm.c (x_draw_composite_glyph_string_foreground):
3081 Pay attention to s->face->overstrike.
dc954cb2
KH
3082
3083 * composite.c (composition_reseat_it): Don't check PT if STRING is
3084 non nil.
3085
4a00eaca
YM
30862010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3087
3088 * keyboard.c (read_char): Don't apply previous change when current
3089 buffer is unchanged by command execution.
3090
60abb287
JD
30912010-01-12 Jan Djärv <jan.h.d@swipnet.se>
3092
3093 * keyboard.c (read_char): Return after executing from special map.
3094
893db5bc
GM
30952010-01-12 Glenn Morris <rgm@gnu.org>
3096
3097 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
3098 bug-gnu-emacs rather than emacs-pretest-bug.
3099
4d03ece0
CY
31002010-01-11 Chong Yidong <cyd@stupidchicken.com>
3101
3102 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
3103 initializing the Lisp variables that depend on them.
3104
1df47e38
YM
31052010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3106
3107 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
3108 Clear areas that will not be updated after change of menu bar lines.
3109 Clear the menu bar window's current matrix when the window gets empty.
3110
2f1c6384
CY
31112010-01-09 Chong Yidong <cyd@stupidchicken.com>
3112
e398c61c
CY
3113 * intervals.h, textprop.c (extend_property_ranges): Return value
3114 and args changed. Discard properties that begin at or after the
3115 new end (Bug#5306).
3116
3117 * editfns.c (Fformat): Caller changed.
3118
e5a29a10
CY
3119 * nsterm.m (ns_set_default_prefs): Delete function.
3120 (syms_of_nsterm): Initialize ns_command_modifier,
3121 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
3122 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
3123
2f1c6384
CY
3124 * xdisp.c (pos_visible_p): Check for invisible text at the correct
3125 position (Bug#4040).
3126
d427a9fa
EZ
31272010-01-09 Eli Zaretskii <eliz@gnu.org>
3128
3129 * editfns.c (Ffloat_time): Doc fix.
3130
21b9df2f
JD
31312010-01-09 Jan Djärv <jan.h.d@swipnet.se>
3132
3133 * xfns.c (Fx_create_frame): Don't create frame larger than display
3134 by default bug#3643.
3135
4b00d3b1
YM
31362010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3137
3138 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
3139 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
3140 windows above internal border.
3141
3142 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
3143 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
3144 windows above internal border.
3145
3146 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
3147 tool bar windows specially.
3148
3149 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
3150
3151 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
3152 specially.
3153 (XTflash): Take account of menu bar height.
3154
3155 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
3156 specially.
3157
5075d853
JD
31582010-01-08 Jan Djärv <jan.h.d@swipnet.se>
3159
ac146f82 3160 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
3161 also be true before we can return early (bug #5339).
3162
474217c8
CY
31632010-01-06 David Reitter <david.reitter@gmail.com>
3164
3165 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
3166 (Fns_display_usable_bounds): Rewrite, computing bounds properly
3167 (Bug#3233).
3168
c0e6d47d
JD
31692010-01-06 Jan Djärv <jan.h.d@swipnet.se>
3170
d0cf45b7
JD
3171 * font.c (font_open_entity): Enable chache and call cached_font_ok
3172 for the driver if defined.
3173 (QCuser_spec): New symbol.
3174 (font_spec_from_name): Save name as user-spec.
3175 (font_load_for_lface): Keep user-spec instead of name.
3176 (font_open_by_name): Save name as user-spec.
3177 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 3178 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
3179
3180 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
3181 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
3182 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
3183
3184 * font.h (struct font_driver): Add cached_font_ok.
3185
c0e6d47d
JD
3186 * xterm.c (x_clear_frame): Queue draw for scroll bars.
3187
7c583cd8
JD
31882010-01-05 Jan Djärv <jan.h.d@swipnet.se>
3189
3190 * xterm.c (x_new_font): Move code for setting rows/cols before
3191 resizing ...
ac146f82 3192 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
3193
3194 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
3195 (xg_frame_resized, xg_frame_set_char_size):
3196 Call xg_clear_under_internal_border.
7c583cd8 3197 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 3198
03f77f0a
CY
31992010-01-05 Chong Yidong <cyd@stupidchicken.com>
3200
3201 * keyboard.c (read_key_sequence): Catch keyboard switch after
3202 making a new tty frame (Bug#5095).
3203
2a1ef5be
KH
32042010-01-05 Kenichi Handa <handa@m17n.org>
3205
3206 * fontset.c (fontset_find_font): Fix getting the frame pointer.
3207
e3eb1dae
SM
32082010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
3209
3210 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
3211 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
3212 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
3213
777013f2
MA
32142010-01-03 Michael Albinus <michael.albinus@gmx.de>
3215
3216 * dbusbind.c (xd_add_watch): Improve debug message.
3217 (xd_remove_watch): Improve debug message. If DATA is the session
3218 bus, unset D-Bus session environment.
3219 (Fdbus_init_bus): Pass the bus as argument to
3220 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 3221
8932b1c2
CY
32222010-01-01 Chong Yidong <cyd@stupidchicken.com>
3223
87231e2c
CY
3224 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
3225
4801c5fa
CY
3226 * lread.c (syms_of_lread): Make it clearer that these are the
3227 names of loaded files (Bug#5068).
3228
8932b1c2
CY
3229 * eval.c (run_hook_with_args): Handle the case where the global
3230 value has the obsolete single-function form (Bug#5026).
3231
11e3c684
CY
32322009-12-27 Chong Yidong <cyd@stupidchicken.com>
3233
3234 * minibuf.c (Fall_completions): Minor optimization.
3235
5b28ce35
EZ
32362009-12-26 Eli Zaretskii <eliz@gnu.org>
3237
5ce6e4f4
JB
3238 * .gdbinit (pgx): Fix display of composite glyphs.
3239 Display cmp.from and cmp.to as well.
3240 (pitx): Fix last change.
5b28ce35 3241
bcffff46
KH
32422009-12-25 Kenichi Handa <handa@m17n.org>
3243
3244 * composite.h (composition_adjust_point): Update prototype.
3245
3246 * composite.c (composition_reseat_it): Don't make a composition
3247 spanning over point.
3248 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
3249 composable characters.
3250 (composition_adjust_point): New arg NEW_PT. Callers changed.
3251
3252 * keyboard.c (command_loop_1): Force redisplay if the last point
3253 was within a composition.
3254 (adjust_point_for_property): Don't adjust point for automatic
3255 composition when called after buffer modification.
3256
3f670e9a
EZ
32572009-12-19 Eli Zaretskii <eliz@gnu.org>
3258
5ce6e4f4
JB
3259 * .gdbinit (pitx): Don't use enum names, use their values.
3260 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
3261 (pgx): Don't use enum names, use their values.
3262 (pitmethod): New helper command.
3263 (pitx): Use it to display iteration method.
3264 (pgrowit): New command.
3265
ad903955
EZ
3266 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
3267
3f670e9a
EZ
3268 Update dependencies in Makefile.in.
3269
3270 * Makefile.in (alloc.o): Depend on termhooks.h.
3271 (atimer.o): Depend on blockinput.h.
3272 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
3273 and frame.h.
3274 (callint.o): Depend on systime.h, coding.h, and composite.h.
3275 (callproc.o): Depend on buffer.h.
3276 (casefiddle.o): Don't depend on charset.h.
3277 (casetab.o): Depend on character.h.
3278 (ccl.o): Depend on composite.h.
3279 (chartab.o): Depend on ccl.h.
3280 (cm.o): Depend on dispextern.h.
3281 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
3282 (coding.o): Don't depend on $(INTERVALS_H).
3283 (composite.o): Don't depend on dispextern.h explicitly (it's in
3284 $(INTERVALS_H)). Depend on ccl.h.
3285 (data.o): Depend on systime.h, coding.h, composite.h,
3286 dispextern.h, font.h, and ccl.h.
3287 (dired.o): Depend on composite.h.
3288 (dispnew.o): Depend on coding.h. Don't depend explicitly on
3289 composite.h (it's in $(INTERVALS_H)).
3290 (doc.o): Depend on systime.h, coding.h, and composite.h.
3291 (editfns.o): Don't depend explicitly on dispextern.h.
3292 (emacs.o): Depend on frame.h and coding.h.
3293 (eval.o): Depend on coding.h, composite.h, and xterm.h.
3294 (fileio.o): Depend on frame.h and commands.h. Don't depend
3295 explicitly on dispextern.h.
3296 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
3297 composite.h.
3298 (fns.o): Don't depend on termhooks.h.
3299 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
3300 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
3301 coding.h, $(INTERVALS_H), window.h, xterm.h.
3302 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
3303 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
3304 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
3305 fontset.h, ccl.h, and ftfont.h.
3306 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
3307 (gtkutil.o): Depend on dispextern.h and composite.h.
3308 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
3309 termhooks.h, and ccl.h.
3310 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
3311 (intervals.o): Depend on systime.h and coding.h.
3312 (keyboard.o): Depend on composite.h and coding.h.
3313 (keymap.o): Depend on coding.h and frame.h.
3314 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
3315 (macros.o): Depend on systime.h, coding.h, and composite.h.
3316 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
3317 and atimer.h.
3318 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
3319 dispextern.h explicitly.
0b5397c2
SM
3320 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
3321 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
3322 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
3323 (regex.o): Don't depend on charset.h.
3324 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
3325 (search.o): Don't depend explicitly on composite.h.
3326 (sound.o): Depend on atimer.h and systime.h.
3327 (syntax.o): Don't depend explicitly on composite.h.
3328 (sysdep.o): Depend on coding.h and composite.h.
3329 (term.o): Depend on xterm.h and buffer.h.
3330 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
3331 (textprop.o): Don't depend on dispextern.h explicitly.
3332 (undo.o): Depend on dispextern.h.
3333 (window.o): Depend on coding.h and termhooks.h. Don't depend on
3334 dispextern.h and composite.h explicitly.
3335 (xdisp.o): Depend on ccl.h.
3336 (xfaces.o): Depend on coding.h and ccl.h.
3337 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
3338 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
3339 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
3340 ftfont.h.
3341 (xgselect.o): New dependency.
3342 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
3343 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
3344 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
3345 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
3346 (xsmfns.o): Depend on frame.h and dispextern.h.
3347 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
3348 sysselect.h.
3349
7a6f7fea
AS
33502009-12-19 Andreas Schwab <schwab@linux-m68k.org>
3351
3352 * font.c (Fclear_font_cache): Pass correct cache argument to
3353 font_clear_cache.
3354
f4c21026
AS
33552009-12-16 Andreas Schwab <schwab@linux-m68k.org>
3356
3357 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
3358 twice.
3359
f7ab0997
CY
33602009-12-15 Chong Yidong <cyd@stupidchicken.com>
3361
3362 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
3363 calling file-remote-p. Reported by Jim Meyering.
3364
fa8e045a
MA
33652009-12-15 Michael Albinus <michael.albinus@gmx.de>
3366
3367 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 3368 avoid compiler warnings. (Bug #5217)
fa8e045a 3369
a63dba42
KH
33702009-12-14 Kenichi Handa <handa@m17n.org>
3371
3372 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
3373 in 8-bit encoding.
3374
5ce6e4f4 33752009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
3376
3377 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
3378 tooltip windows.
3379
223e5fc6
JD
33802009-12-13 Jan Djärv <jan.h.d@swipnet.se>
3381
36acb2a7
JD
3382 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
3383 Xatom_net_window_type.
3384
3385 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
3386 Xatom_net_window_type.
3387
b8f00677
JD
3388 * xterm.c (my_log_handler): New function.
3389 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 3390 so we can filter out buggy messages. (Bug #5120).
b8f00677 3391
e5f0bc9a
JD
3392 * xterm.c (xg_scroll_callback): Parameter list changed,
3393 use parameter GtkScrollType to determine scroll/line/page.
3394 Only allow dragging if a button < 4 is grabbed (bug #5177).
3395 (xg_end_scroll_callback): New function.
3396 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
3397 xg_create_scroll_bar.
3398
3399 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
3400 (scroll_end_callback): Remove.
3401 (xg_create_scroll_bar): Add parameter end_callback, bind it to
3402 button-release-event. Replace value-changed event with change-value,
3403 bug #5177,
3404 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
3405 bug #5177.
3406
3407 * gtkutil.h (XG_LAST_SB_DATA): Remove.
3408 (xg_create_scroll_bar): Add GCallback end_callback.
3409
223e5fc6
JD
3410 * xftfont.c (QClcdfilter): New variable.
3411 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
3412 (syms_of_xftfont): Initialize QClcdfilter.
3413
3c055b77
JD
34142009-12-12 Jan Djärv <jan.h.d@swipnet.se>
3415
3416 * xsettings.c (struct xsettings): Add member seen.
3417 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 3418 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
3419 (apply_xft_settings): Only update Xft settings with what member seen
3420 indicates as new.
3421
05fe33ff
EZ
34222009-12-12 Eli Zaretskii <eliz@gnu.org>
3423
3424 * dispextern.h (struct text_pos): Use EMACS_INT;
3425 (struct glyph): Use EMACS_INT for charpos.
3426 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
3427 region_beg_charpos, region_end_charpos,
3428 redisplay_end_trigger_charpos, and also for
3429 iterator_stack_entry.end_charpos and
3430 iterator_stack_entry.stop_charpos.
3431
e8d7886a
JD
34322009-12-12 Jan Djärv <jan.h.d@swipnet.se>
3433
5ce6e4f4 3434 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
3435 (xg_create_scroll_bar): Call scroll_end_callback on button release
3436 event (bug #5177).
3437 (xg_event_is_for_scrollbar): != replaced with ==.
3438
d0db2ec8
KH
34392009-12-12 Kenichi Handa <handa@m17n.org>
3440
3441 * ftfont.c (struct ftfont_info): New member matrix.
3442 (ftfont_open): Setup xftfont_info->matrix.
3443 (MFLTFontFT): New member matrix.
3444 (FLOOR, CEIL, ROUND): New macros.
3445 (ftfont_get_metrics): Handle matrix transformation.
3446 (ftfont_shape_by_flt): New arg matrix. Callers changed.
3447
3448 * xftfont.c (struct xftfont_info): New member matrix.
3449 (xftfont_open): Setup xftfont_info->matrix.
3450
34512009-12-10 Kenichi Handa <handa@m17n.org>
3452
3453 * xdisp.c (append_space_for_newline): Consider face-remapping.
3454
2cc7b62f
AS
34552009-12-09 Andreas Schwab <schwab@linux-m68k.org>
3456
b87dd913
AS
3457 * xsettings.c: Include "keyboard.h".
3458
eba5eb94
AS
3459 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
3460
2cc7b62f
AS
3461 Fix implicit function declarations.
3462 * cmds.c: Include "frame.h".
3463 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
3464 * frame.h: Move declaration of delete_frame outside of
3465 HAVE_WINDOW_SYSTEM.
3466
a4ef73c8
CY
34672009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
3468
3469 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
3470
3471 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
3472 GTK builds.
3473
944a300c
AS
34742009-12-07 Andreas Schwab <schwab@linux-m68k.org>
3475
3476 * unexelf.c (unexec): Don't search for .data twice.
3477
022eef62
CY
34782009-12-05 Chong Yidong <cyd@stupidchicken.com>
3479
426ac949
CY
3480 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
3481 if push failed.
3482 (handle_line_prefix): Set avoid_cursor_p here. Check return value
3483 of push_display_prop (Bug#5000).
3484
022eef62
CY
3485 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
3486 value of font_list_entities (Bug#5085).
3487
be95bee9
JB
34882009-12-04 Juanma Barranquero <lekktu@gmail.com>
3489
3490 Fix `string-to-number' to deal consistently with integers and floats.
3491 * lread.c (isfloat_string): New argument ignore_trailing to accept all
3492 trailing characters, not just whitespace.
3493 (read1): Pass new arg 0 to keep old behavior.
3494 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
3495 trailing chars, as it is already done for integers. Doc fixes.
3496 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
3497
24c2d7ce
EZ
34982009-12-04 Eli Zaretskii <eliz@gnu.org>
3499
0b5397c2
SM
3500 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
3501 Delete unused enumeration value.
24c2d7ce 3502
7e694795
EZ
35032009-12-03 Eli Zaretskii <eliz@gnu.org>
3504
3505 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
3506
84b31826
SM
35072009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
3508
3509 * process.c (Fmake_network_process): Fix up the tests for
3510 "connectionless socket", so they DTRT for seqpacket sockets as well.
3511
f00c449b
SM
35122009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
3513
3514 * process.c (Qseqpacket): New symbol.
3515 (HAVE_SEQPACKET): New macro.
3516 (Fmake_network_process): Accept new :type `seqpacket'.
3517 (init_process): Add `seqpacket' feature when applicable.
3518 (syms_of_process): Initialize Qseqpacket.
3519
8096a0ff
YM
35202009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3521
3522 * font.c (font_load_for_lface, font_open_by_name): Don't store name
3523 if entity is Qnil.
3524
3e0de07f
SM
35252009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
3526
3527 * print.c (print_preprocess): Preprocess the key_and_value table of
3528 hashtables, even tho they're "hidden" (bug#5082).
3529
abeafb2a
JD
35302009-11-29 Jan Djärv <jan.h.d@swipnet.se>
3531
3532 * frame.c (frame_make_pointer_invisible)
3533 (frame_make_pointer_visible): Declare f before statements.
3534
4bf47195
EZ
35352009-11-28 Eli Zaretskii <eliz@gnu.org>
3536
3537 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
3538 omitted dependencies on lisp.h.
3539
c525b3f2
JD
35402009-11-27 Jan Djärv <jan.h.d@swipnet.se>
3541
ece2d4ed
JD
3542 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
3543 is NULL.
3544
3545 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
3546
3547 * frame.c (frame_make_pointer_invisible)
3e0de07f 3548 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
3549 frame.
3550
c525b3f2
JD
3551 * search.c (simple_search): Remove warning by making *p const.
3552
2f00e299
DN
35532009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
3554
3555 * xdisp.c (power_letter): Remove duplicate const.
3556
084b049b
JD
35572009-11-25 Jan Djärv <jan.h.d@swipnet.se>
3558
a1fadc6f
JD
3559 * term.c (delete_tty): Remove check for last terminal (bug#4970).
3560
5ce6e4f4 3561 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
3562 defaults (bug #5025).
3563
28259cac
SM
35642009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
3565
3566 * insdel.c (adjust_markers_for_delete): Move it in the
3567 right direction! (bug#4803)
3568
e8e14166
YM
35692009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3570
3571 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
3572
3573 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
3574
86677b58
GM
35752009-11-24 Glenn Morris <rgm@gnu.org>
3576
3577 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
3578
581e51e8
JD
35792009-11-23 Jan Djärv <jan.h.d@swipnet.se>
3580
cfc86c7a
JD
3581 * Makefile.in: Must create deps for ecrt0.o in its rule.
3582
581e51e8
JD
3583 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
3584 because that is what Gtk+ font dialog understands.
3585
3586 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
3587 of Fcopy_sequence.
3588 (font_open_by_name): Put name given into QCname for font-object returned.
3589
3590 * frame.c (x_set_font): Save original font name as frame parameter
3591 font-parameter.
3592
3593 * xsettings.c (set_default_xft_settings): New function.
3594 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
3595 is found.
3596
8b264ecb
AS
35972009-11-22 Andreas Schwab <schwab@linux-m68k.org>
3598
3599 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
3600 searching backwards through multibyte buffer.
3601
872870b2
JD
36022009-11-21 Jan Djärv <jan.h.d@swipnet.se>
3603
3604 * xterm.c: #include xgselect.h.
3605 (x_initialize): Call xgselect_initialize.
3606
3607 * xsettings.c (something_changedCB): C++ comments => C comments.
3608 (init_gconf): Do not deal with any GLib file descriptors, xg_select
3609 does that now.
3610
3611 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
3612 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
3613 (scroll_bar_button_cb): Remove.
5ce6e4f4 3614 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
3615 event.
3616 (xg_create_scroll_bar): Don't bind button-press-event and
3617 button-release-event.
3618
3619 * process.c: Include xgselect.h if defined (USE_GTK) ||
3620 defined (HAVE_GCONF).
3621 (wait_reading_process_output): Call xg_select for the same condition.
3622
3623 * xgselect.c (xg_select): New function to better integrate with
3624 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
3625
3626 * xgselect.h: New file, declare xg_select, xgselect_initialize.
3627
3628 * Makefile.in (XOBJ): Add xgselect.o.
3629
62a6e103
AS
36302009-11-21 Andreas Schwab <schwab@linux-m68k.org>
3631
0b5397c2
SM
3632 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
3633 Remove ignored second argument. All callers changed.
62a6e103
AS
3634 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
3635 (RE_STRING_CHAR_AND_LENGTH): Likewise.
3636 * xdisp.c (string_char_and_length): Likewise.
3637
b0ca0f33
DN
36382009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
3639
3640 * xterm.c (x_new_font):
3641 * print.c (print_object):
3642 * cmds.c (Fself_insert_command): Move declarations before statements.
3643
dd5a6279
CY
36442009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
3645
3646 * s/cygwin.h: Remove unneeded linker flags.
3647
4a8e097d
JD
36482009-11-20 Jan Djärv <jan.h.d@swipnet.se>
3649
0d1d0d26
JD
3650 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
3651
3652 * xsettings.h: Declare xsettings_get_system_font.
3653
3654 * xsettings.c (xsettings_get_system_font): New function.
3655 (init_gconf): No use initiating gconf unless we have Xft also.
3656 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
3657 HAVE_GCONF.
3658
4a8e097d
JD
3659 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
3660 add a blank entry so it doesn't collapse into nothing.
3661
8ab1650e
SM
36622009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
3663
3664 * lread.c (Funintern): Comment out last change.
3665
82c602f0
RS
36662009-11-19 Richard Stallman <rms@gnu.org>
3667
3668 * lread.c (Funintern): Error if symbol is t or nil.
3669
87e32266
SM
36702009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
3671
3672 * insdel.c (make_gap_larger): Don't make as many assumptions about the
3673 representation of Lisp integers.
3674 Reported by MJ Chan <mjchan.inbox@gmail.com>.
3675
1b9ac145
AS
36762009-11-17 Andreas Schwab <schwab@linux-m68k.org>
3677
3678 * lisp.h: Remove declaration of Ffont_get_system_font.
3679 * xfns.c: Move include of "xsettings.h".
3680 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
3681
dfb3c4c6
JD
36822009-11-17 Jan Djärv <jan.h.d@swipnet.se>
3683
87e32266
SM
3684 * xsettings.c (something_changedCB, Ffont_get_system_font):
3685 Check use_system_font.
dfb3c4c6
JD
3686 (syms_of_xsettings): DEFVAR font-use-system-font.
3687
9370c1d8
AS
36882009-11-17 Andreas Schwab <schwab@linux-m68k.org>
3689
25fe851a
AS
3690 * xfns.c (x_default_font_parameter): Remove dead assignment.
3691
9370c1d8
AS
3692 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
3693
637fa988
JD
36942009-11-17 Jan Djärv <jan.h.d@swipnet.se>
3695
87e32266 3696 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 3697 not have FC_LCD_*. #define them if not there.
a6eb20d8 3698
87e32266 3699 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 3700
637fa988
JD
3701 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
3702
3703 * xterm.c (handle_one_xevent): Call xft_settings_event for
3704 ClientMessage, PropertyNotify and DestroyNotify.
3705 (x_term_init): If we have XFT, get DPI from Xft.dpi.
3706 Call xsettings_initialize.
3707
3708 * xftfont.c (xftfont_fix_match): New function.
3709 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
3710 Call xftfont_fix_match after XftFontMatch.
3711
3712 * xfont.c (xfont_driver): Initialize all members.
3713
87e32266
SM
3714 * xfns.c (x_default_font_parameter):
3715 Try font from Ffont_get_system_font.
637fa988
JD
3716 Do not get font from x_default_parameter if we got one from
3717 Ffont_get_system_font.
87e32266 3718 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
3719
3720 * w32font.c (w32font_driver): Initialize all members.
3721
3722 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
3723
3724 * lisp.h: Declare syms_of_xsettings.
3725
87e32266
SM
3726 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
3727 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
3728
3729 * ftfont.c (ftfont_filter_properties): New function.
3730
3731 * frame.c (x_set_font): Remove unused variable lval.
3732
87e32266 3733 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
3734
3735 * font.c (font_put_extra): Don't return if val is nil, it means
3736 boolean option is off.
3737 (font_parse_fcname): Collect all extra properties in extra_props
3738 and call filter_properties for all drivers with extra_props and
3739 font as parameter.
87e32266
SM
3740 (font_open_entity): Do not use cache, it does not pick up new
3741 fontconfig settings like hinting.
637fa988
JD
3742 (font_load_for_lface): If spec had a name in it, store it in entity.
3743
a73f9c9d 3744 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
3745
3746 * config.in: HAVE_GCONF is new.
3747
3748 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
3749 xsettings.o is new.
3750
5a942932
KH
37512009-11-17 Kenichi Handa <handa@m17n.org>
3752
3753 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
3754 back to the default font in case that no suitable font is found.
3755
b7c7a4d1
SM
37562009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
3757
3758 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
3759 Suggested by Chad Brown <yandros@mit.edu>.
3760 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
3761
072f1e39
JD
37622009-11-16 Jan Djärv <jan.h.d@swipnet.se>
3763
3764 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
3765
5d1e70a2
AS
37662009-11-14 Andreas Schwab <schwab@linux-m68k.org>
3767
87e32266 3768 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 3769
a53cfbe5
JD
37702009-11-14 Jan Djärv <jan.h.d@swipnet.se>
3771
473a99b7
JD
3772 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
3773 has a parent.
3774
a53cfbe5 3775 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 3776 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
3777
3778 * config.in: Generated (AUTO_DEPEND).
3779
f04bb9b2
MA
37802009-11-13 Michael Albinus <michael.albinus@gmx.de>
3781
b7c7a4d1 3782 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
3783 Vdbus_registered_functions_table, because it contains also
3784 properties. Fix docstring.
b7c7a4d1 3785 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 3786
8f11f7ec
SM
37872009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
3788
3789 * alloc.c (mark_object): Don't reprocess marked strings.
3790 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
3791 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
3792
8a605fe8
KH
37932009-11-13 Kenichi Handa <handa@m17n.org>
3794
8f11f7ec 3795 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
3796 semantics of Vword_combining_categories.
3797 (Vword_combining_categories): Describe the slight change of the
3798 semantics.
3799
241c4680
EZ
38002009-11-13 Eli Zaretskii <eliz@gnu.org>
3801
3802 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
3803
3804 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
3805
5d58e44c
SM
38062009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
3807
3808 * xdisp.c (syms_of_xdisp): Fix typo in last change.
3809
5e13f9d3
JB
38102009-11-12 Juanma Barranquero <lekktu@gmail.com>
3811
3812 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
3813
cf54c754
DR
38142009-11-11 David Reitter <david.reitter@gmail.com>
3815
3816 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
3817 variables to fix 2009-11-09 change.
3818
a4ada374
DN
38192009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
3820
91433552
DN
3821 * process.c (ifflag_def): Make flag_sym constant.
3822 (Fnetwork_interface_info): Use a constant pointer.
3823 (ifflag_table):
3824 * xfns.c (cursor_bits):
3825 * xdisp.c (power_letter):
3826 * termcap.c (speeds, esctab):
3827 * sysdep.c (baud_convert):
3828 * keyboard.c (lispy_accent_codes, modifier_names):
3829 * image.c (xbm_format, xpm_format, pbm_format, png_format)
3830 (jpeg_format, tiff_format, gif_format, svg_format)
3831 (interlace_start, interlace_increment, gs_format):
3832 * gtkutil.c (separator_names):
3833 * fringe.c (swap_nibble):
3834 * fns.c (base64_value_to_char, base64_char_to_value):
3835 * fileio.c (make_temp_name_tbl):
3836 * coding.c (suffixes): Make constant.
3837
f4265f6c
DN
3838 * frame.c (make_initial_frame):
3839 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
3840 build_string.
3841 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
3842
04420943
DN
3843 * s/freebsd.h:
3844 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
3845
0a5d24ae
DN
3846 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
3847 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
3848
a4ada374
DN
3849 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
3850 * xterm.c (syms_of_xterm):
3851 * xfaces.c (syms_of_xfaces):
3852 * xdisp.c (syms_of_xdisp):
3853 * lread.c (syms_of_lread):
3854 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
3855 build_string.
91433552 3856
a4ada374
DN
3857 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
3858
af98fc7f
SM
38592009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3860
8ab1650e 3861 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 3862
e90292a9
JD
38632009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3864
3865 * keyboard.h: Declare timer_check.
3866
3867 * keyboard.c (timer_check_2): New function that does what the old
3868 timer_check did.
3869 (timer_check): Call timer_check_2 until -1 or a non-zero time is
3870 returned, i.e. don't return -1 with timers pending.
3871
3872 * process.c: Remove extern declaration of timer_check.
3873
3874 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
3875 even if timer_check returned -1.
3876
af98fc7f
SM
3877 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
3878 xg_dialog_data.
e90292a9
JD
3879 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
3880 the event loop.
3881 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
3882 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
3883 Destroy the dialog after xg_dialog_run.
3884
045b83c0
SM
38852009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3886
3887 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
3888
1fb99a3a
JD
38892009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3890
3891 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
3892
04e452cb
JB
38932009-11-09 Juanma Barranquero <lekktu@gmail.com>
3894
3895 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
3896
ef7417fd
SM
38972009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
3898
3899 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
3900 w32menu.c, and nsmenu.m.
3901 Simplify the obsolete case where position is nil.
3902 (cleanup_popup_menu): New function, moved from nsmenu.m.
3903 (struct skp): Remove slot `notreal'.
3904 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
3905 adjust callers.
3906 (single_menu_item): Adjust call to parse_menu_item.
3907 (syms_of_menu): Defsubr x-popup-menu.
3908 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
3909 (keymap_panes): Don't export any more.
3910 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
3911 (xmenu_show): Declare.
3912 * keyboard.c (parse_menu_item): Remove arg `notreal'.
3913 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
3914 * keyboard.h (parse_menu_item): Update declaration.
3915 * xmenu.c (Fx_popup_menu): Remove.
3916 (syms_of_xmenu): Don't defsubr x-popup-menu.
3917 * w32menu.c (Fx_popup_menu): Remove.
3918 (syms_of_w32menu): Don't defsubr x-popup-menu.
3919 * nsmenu.m (cleanup_popup_menu): Remove.
3920 (ns_menu_show): Rename from ns_popup_menu and remove all the code
3921 moved to menu.c's Fx_popup_menu.
3922 (Fx_popup_menu): Remove.
3923 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
3924 menu_items (it's done in menu.c already).
3925
424d6179
SM
39262009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
3927
3928 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
3929 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
3930
c0df13a6 39312009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
3932
3933 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 3934 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
3935 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
3936 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
3937
2de9f71c
SM
39382009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
3939
3940 Let integers use up 2 tags to give them one extra bit and thus double
3941 their range.
3942 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
3943 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
3944 New macros.
3945 (enum Lisp_Type): Use them. Give explicit values.
3946 (Lisp_Type_Limit): Remove.
3947 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
3948 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
3949 Pay attention to USE_2_TAGS_FOR_INTS.
3950 (INTEGERP): Use LISP_INT_TAG_P.
3951 * fns.c (internal_equal): Simplify the default case.
3952 (sxhash): Use case_Lisp_Int.
3953 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
3954 any more.
3955 (Ftype_of): Use case_Lisp_Int.
3956 (store_symval_forwarding): Take into account the fact that Ints can
3957 now have more than one tag.
3958 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
3959 buffer_slot_type_mismatch):
3960 * xfaces.c (face_attr_equal_p):
3961 * print.c (print_object):
3962 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
3963 Use case_Lisp_Int.
3964
323637a2
EZ
39652009-11-06 Eli Zaretskii <eliz@gnu.org>
3966
7ac65b38
EZ
3967 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
3968
323637a2
EZ
3969 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
3970 warning.
3971
e511451f
JD
39722009-11-06 Jan Djärv <jan.h.d@swipnet.se>
3973
3974 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
3975
3976 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
3977
3978 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
3979 ButtonPressRelease and MotionNotify (bug#4870).
3980
5e2327cf
DN
39812009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
3982
5adc433e
DN
3983 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
3984
d67b4f80
DN
3985 * xterm.c (syms_of_xterm):
3986 * xselect.c (syms_of_xselect):
3987 * xmenu.c (syms_of_xmenu):
3988 * xfns.c (syms_of_xfns):
3989 * xfaces.c (syms_of_xfaces):
3990 * xdisp.c (syms_of_xdisp):
3991 * window.c (syms_of_window):
3992 * w32fns.c (syms_of_w32fns):
3993 * undo.c (syms_of_undo):
3994 * textprop.c (syms_of_textprop):
3995 * terminal.c (syms_of_terminal):
3996 * syntax.c (syms_of_syntax):
3997 * sound.c (syms_of_sound):
3998 * search.c (syms_of_search):
3999 * print.c (syms_of_print):
4000 * minibuf.c (syms_of_minibuf):
4001 * macros.c (syms_of_macros):
4002 * keymap.c (syms_of_keymap, initial_define_key)
4003 (initial_define_lispy_key):
4004 * keyboard.c (syms_of_keyboard):
4005 * insdel.c (syms_of_insdel):
4006 * image.c (syms_of_image):
4007 * fringe.c (syms_of_fringe):
4008 * frame.c (syms_of_frame):
4009 * fontset.c (syms_of_fontset):
4010 * fns.c (syms_of_fns):
4011 * fns.c (syms_of_fns):
4012 * fileio.c (syms_of_fileio):
4013 * fileio.c (syms_of_fileio):
4014 * eval.c (syms_of_eval):
4015 * doc.c (syms_of_doc):
4016 * dispnew.c (syms_of_display):
4017 * dired.c (syms_of_dired):
4018 * dbusbind.c (syms_of_dbusbind):
4019 * data.c (syms_of_data):
4020 * composite.c (syms_of_composite):
4021 * coding.c (syms_of_coding):
4022 * cmds.c (syms_of_cmds):
4023 * charset.c (define_charset_internal, syms_of_character):
4024 * ccl.c (syms_of_ccl):
4025 * category.c (syms_of_category, init_category_once):
4026 * casetab.c (syms_of_casetab):
4027 * casefiddle.c (syms_of_casefiddle):
4028 * callint.c (syms_of_callint):
4029 * bytecode.c (syms_of_bytecode):
4030 * buffer.c (keys_of_buffer, syms_of_buffer):
4031 * alloc.c (syms_of_alloc):
4032 * process.c (syms_of_process, init_process):
4033 * lread.c (syms_of_lread, init_obarray):
4034 * font.c (build_style_table):
4035 * emacs.c (syms_of_emacs, main): Replace calls to intern with
4036 intern_c_string, calls to make_pure_string with
4037 make_pure_c_string. Use pure_cons instead of Fcons.
4038
5e2327cf
DN
4039 * process.c (socket_options): Make it const.
4040 (set_socket_option, init_process): Use a const pointer.
4041
4042 * lread.c (intern_c_string): New function.
4043 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
4044 (defvar_int): Uset it. Make the name const char*.
4045
4046 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
4047 (defvar_int): Update prototypes.
4048 (DEFUN, EXFUN): Support for prototypes is now required.
4049 (intern_c_string): New prototype.
4050 (struct Lisp_Subr): Make symbol_name constant.
4051
4052 * font.c (struct table_entry): Remove unused member. Make NAMES
4053 constant.
4054 (weight_table, slant_table, width_table): Make constant.
4055
4056 * emacs.c (struct standard_args): Make name and longname constant.
4057
4058 * character.h (DEFSYM): Use intern_c_string.
4059
a56eaaef
DN
40602009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
4061
4062 * alloc.c (make_pure_c_string): New function.
4063
4064 * eval.c (Fautoload): Purecopy all arguments.
4065
f6a07420
KH
40662009-11-05 Kenichi Handa <handa@m17n.org>
4067
4068 * fileio.c (Finsert_file_contents): Be sure set coding-system of
4069 the buffer in case of replace.
4070
5d28d4b1
DN
40712009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
4072
4073 * puresize.h (BASE_PURESIZE): Increase to 1620000.
4074
b349d111
SM
40752009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
4076
d528b1ce
SM
4077 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
4078 when applicable (bug#4851).
4079
b349d111
SM
4080 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
4081 (P_): Support for prototypes is now required.
4082
c38eb027
CY
40832009-10-31 Chong Yidong <cyd@stupidchicken.com>
4084
4085 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
4086 (Bug#4827).
4087
0405f8d9
EZ
40882009-10-30 Eli Zaretskii <eliz@gnu.org>
4089
d528b1ce 4090 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 4091
ca0a881a
DN
40922009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
4093
4094 * puresize.h (BASE_PURESIZE): Increase to 1470000.
4095
d528b1ce
SM
4096 * lread.c (Fload): Purecopy the file name when building
4097 Vpreloaded_file_list.
ca0a881a 4098
47e0e0e4
JR
40992009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
4100
4101 * w32fns.c (syms_of_w32fns): Change default value of
4102 w32-scroll-lock-modifier to nil. (Bug#2827)
4103
057bce6f
JB
41042009-10-26 Juanma Barranquero <lekktu@gmail.com>
4105
782a943e 4106 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 4107
242bc74c
AS
41082009-10-26 Andreas Schwab <schwab@redhat.com>
4109
4110 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
4111
522d013a
JB
41122009-10-26 Juanma Barranquero <lekktu@gmail.com>
4113
4114 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
4115 For delta < 0, skip check that only makes sense when the mini-window
4116 is going to be enlarged. (Bug#4534)
4117
18060980
CY
41182009-10-25 Chong Yidong <cyd@stupidchicken.com>
4119
4120 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
4121 string in menu maps (Bug#4471).
4122
fec8f0fe
CY
41232009-10-24 Chong Yidong <cyd@stupidchicken.com>
4124
4125 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
4126 FRAME_NS_VIEW on terminal frames (Bug#4765).
4127
10d66ec0
AS
41282009-10-24 Andreas Schwab <schwab@linux-m68k.org>
4129
1cae01f7
AS
4130 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
4131 DBUS_TYPE_UINTnn separately to get proper sign extension.
4132
58a12889
AS
4133 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
4134 can properly handle unsigned types.
d528b1ce 4135 (make_uid, make_gid): Remove.
58a12889 4136
987c9327
AS
4137 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
4138 types again.
4139
522d013a 4140 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
4141 (system_process_attributes): Likewise.
4142
905a9ed3
DN
41432009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
4144
4145 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
4146
4147 * eval.c (Fautoload): Purecopy the filename. Simplify.
4148
4149 * category.c (Fdefine_category): Purecopy docstring.
4150
a599b3e8
AS
41512009-10-23 Andreas Schwab <schwab@linux-m68k.org>
4152
7b792fc9
AS
4153 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
4154
a599b3e8
AS
4155 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
4156
b35ac83e
CY
41572009-10-23 Chong Yidong <cyd@stupidchicken.com>
4158
4159 * window.c (Fwindow_edges, Fwindow_pixel_edges)
4160 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
4161 (Bug#4775).
4162
e8903e00
SM
41632009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
4164
4165 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
4166 (init_fileio_once):
4167 * lisp.h (init_fileio_once): Remove.
4168 * emacs.c (main): Don't call init_fileio_once.
4169
8f43cbf3
DN
41702009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
4171
4172 * puresize.h (BASE_PURESIZE): Increase to 1430000.
4173
26898943
AS
41742009-10-21 Andreas Schwab <schwab@linux-m68k.org>
4175
4176 * doprnt.c (doprnt): Fix overflow check.
4177
5c646d5a
JD
41782009-10-21 Jan Djärv <jan.h.d@swipnet.se>
4179
3132a7ea
JD
4180 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
4181
5c646d5a
JD
4182 * xterm.h (x_wait_for_event): Declare it.
4183
4184 * xterm.c (pending_event_wait): New variable.
4185 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
4186 see pending_event_wait.eventtype.
4187 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
4188 (x_new_font): Call change_frame_size with new rows/columns before we
4189 try to resize the frame.
5c646d5a 4190 (x_wait_for_event): New function.
d528b1ce
SM
4191 (x_set_window_size_1): Don't change gravity unless change_gravity
4192 is set.
5c646d5a
JD
4193 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
4194 don't change frame size, instead wait for the ConfigureNotify.
4195 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
4196 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
4197 (x_initialize): Initialize pending_event_wait.
4198
4199 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
4200 size.
4201
4202 * widget.c (EmacsFrameSetValues): Add comment.
4203 (EmacsFrameSetCharSize): Just call x_set_window_size.
4204
4205 * gtkutil.c (xg_frame_set_char_size): Flush events and call
4206 x_wait_for_event.
d528b1ce 4207 (flush_and_sync): Remove again.
5c646d5a
JD
4208 (xg_get_font_name): Suggest monospace if no previous font is known.
4209
e9c1637d
SM
42102009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
4211
4212 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 4213 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 4214
5a72cccb
YM
42152009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4216
4217 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
4218 processing pending events when event is filtered for input method.
ab04798f 4219 (Bug#3681)
5a72cccb 4220
2629aa37
JB
42212009-10-20 Juanma Barranquero <lekktu@gmail.com>
4222
4223 * fns.c: Add #endif accidentally removed in previous change.
4224
c3417a74
DN
42252009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
4226
4227 * fns.c: Remove code for unsupported system: MAC_OS.
4228 * image.c: Likewise. Include setjmp.h.
4229
9685cef2
JD
42302009-10-19 Jan Djärv <jan.h.d@swipnet.se>
4231
4232 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
4233 pixel -1 (bug #4742).
4234
d7306fe6
DN
42352009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
4236
019d2c4c
DN
4237 * process.c (create_pty): Remove conditionals for no longer
4238 supported systems: UNIPLUS and RTU.
4239
ee6bacd4
DN
4240 * xterm.c:
4241 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
4242
d7306fe6
DN
4243 * alloc.c: Do not define struct catchtag.
4244 * eval.c: Move struct catchtag definition ...
4245 * lisp.h: ... here.
4246
4247 * image.c: Move png.h #include earlier to avoid warnings.
4248
4249 * xterm.c:
4250 * xsmfns.c:
4251 * xselect.c:
4252 * xrdb.c:
4253 * xmenu.c:
4254 * xftfont.c:
4255 * xfont.c:
4256 * xfns.c:
4257 * xfaces.c:
4258 * xdisp.c:
4259 * window.c:
4260 * widget.c:
4261 * w32xfns.c:
4262 * w32uniscribe.c:
4263 * w32term.c:
4264 * w32select.c:
4265 * w32reg.c:
4266 * w32proc.c:
4267 * w32menu.c:
4268 * w32inevt.c:
4269 * w32heap.c:
4270 * w32font.c:
4271 * w32fns.c:
4272 * w32console.c:
4273 * w32.c:
4274 * w16select.c:
4275 * vm-limit.c:
4276 * unexsol.c:
4277 * unexec.c:
4278 * unexcw.c:
4279 * unexaix.c:
4280 * undo.c:
4281 * tparam.c:
4282 * textprop.c:
4283 * terminfo.c:
4284 * terminal.c:
4285 * termcap.c:
4286 * term.c:
4287 * syntax.c:
4288 * sound.c:
4289 * sheap.c:
4290 * search.c:
4291 * scroll.c:
4292 * region-cache.c:
4293 * regex.c:
4294 * ralloc.c:
4295 * process.c:
4296 * print.c:
b024548b
DN
4297 * nsterm.m:
4298 * nsselect.m:
4299 * nsmenu.m:
4300 * nsimage.m:
4301 * nsfont.m:
4302 * nsfns.m:
d7306fe6
DN
4303 * msdos.c:
4304 * minibuf.c:
4305 * menu.c:
4306 * marker.c:
4307 * macros.c:
4308 * keymap.c:
4309 * keyboard.c:
4310 * intervals.c:
4311 * insdel.c:
4312 * indent.c:
4313 * gtkutil.c:
4314 * ftxfont.c:
4315 * ftfont.c:
4316 * fringe.c:
4317 * frame.c:
4318 * fontset.c:
4319 * font.c:
4320 * fns.c:
4321 * floatfns.c:
4322 * filelock.c:
4323 * fileio.c:
4324 * emacs.c:
4325 * editfns.c:
4326 * dosfns.c:
4327 * doprnt.c:
4328 * doc.c:
4329 * dispnew.c:
4330 * dired.c:
4331 * dbusbind.c:
4332 * data.c:
4333 * composite.c:
4334 * coding.c:
4335 * cmds.c:
4336 * cm.c:
4337 * chartab.c:
4338 * charset.c:
4339 * character.c:
4340 * ccl.c:
4341 * category.c:
4342 * casetab.c:
4343 * casefiddle.c:
4344 * callproc.c:
4345 * callint.c:
4346 * bytecode.c:
4347 * buffer.c:
4348 * atimer.c: Include setjmp.h. (Bug#4643)
4349
fd5f21e6
SM
43502009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
4351
4c0354d7
SM
4352 Remove leftover table unibyte_to_multibyte_table.
4353 * character.c (unibyte_to_multibyte_table): Remove.
4354 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
4355 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
4356 * character.h (UNIBYTE_TO_CHAR): New macro.
4357 (MAKE_CHAR_MULTIBYTE): Use it.
4358 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
4359 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
4360 (message_dolog, set_message_1):
4361 * search.c (Freplace_match):
4362 * editfns.c (Fcompare_buffer_substrings):
4363 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
4364 (concat):
4365 * insdel.c (copy_text, count_size_as_multibyte):
4366 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
4367 * term.c (produce_glyphs):
4368 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
4369 * regex.c (RE_CHAR_TO_MULTIBYTE):
4370 * cmds.c (internal_self_insert):
4371 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
4372
fd5f21e6
SM
4373 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
4374
4418646e
DN
43752009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
4376
4377 * puresize.h (BASE_PURESIZE): Increase to 1310000.
4378
35f5c1d2
JB
43792009-10-16 Juanma Barranquero <lekktu@gmail.com>
4380
4381 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
4382
a0cd8f6b
AR
43832009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
4384
4385 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
4386 still needed under Tiger.
4387
4388 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
4389
4390 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
4391 __Apple__.
4392
4393 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
4394
01a8d3fa
KH
43952009-10-15 Kenichi Handa <handa@m17n.org>
4396
4397 * print.c (print_object): Escape a symbol like "2E10" too.
4398
bf6c75c9 43992009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
4400
4401 Cleanups and changes for 64-bit compile under Snow Leopard.
4402 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
4403
4404 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
4405
c5959062 4406 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
4407 (ns_findfonts, nsfont_list_family): Use long format in printf, and
4408 cast argument.
4409 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 4410 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
4411
4412 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
4413
4414 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
4415 where appropriate.
4416
4417 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
4418 where appropriate.
6e4780c5
JB
4419 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
4420 Use stringWithUTF8String.
bf6c75c9
AR
4421 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
4422
6e4780c5
JB
4423 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
4424 Add formal protocol mention to inheritance.
bf6c75c9
AR
4425 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
4426
6e4780c5
JB
4427 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
4428 Fix printf format.
bf6c75c9
AR
4429 (ns_query_color): Use CGFloat where appropriate.
4430 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 4431 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
4432 argument.
4433
3d87f118
AR
4434 * config.in (NS_HAVE_NSINTEGER): Drop.
4435
a95c8102
AR
4436 * dbusbind.c (dbus-method-return-internal)
4437 (dbus-method-error-internal): Use long format in printf, and cast
4438 argument.
4439
4440 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
4441 in printf, and cast argument.
4442
6873acca 4443 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
4444 cast argument.
4445
9ec6f100
GM
44462009-10-11 Glenn Morris <rgm@gnu.org>
4447
4448 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
4449
5be883cd
JD
44502009-10-08 Jan Djärv <jan.h.d@swipnet.se>
4451
4452 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
4453 menu bar with a small width so it doesn't enlarge the frame.
4454
d7a39b51
JB
44552009-10-08 Juanma Barranquero <lekktu@gmail.com>
4456
4457 * fontset.c (Fset_fontset_font): Fix typos in error messages.
4458
0c2b6f8e
GM
44592009-10-06 Glenn Morris <rgm@gnu.org>
4460
4461 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
4462 SOME_MACHINE_LISP (this enters indirectly via DOC).
4463
e02131a2
EZ
44642009-10-05 Eli Zaretskii <eliz@gnu.org>
4465
4466 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
4467
b4744254
EZ
44682009-10-04 Eli Zaretskii <eliz@gnu.org>
4469
4470 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
4471 Doc fix.
4472
dbf64827
JB
44732009-10-03 Martin Rudalics <rudalics@gmx.at>
4474
4475 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
4476
e9a0aef8
MA
44772009-10-02 Michael Albinus <michael.albinus@gmx.de>
4478
d528b1ce 4479 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
4480 used anymore outside fileio.c.
4481
4482 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
4483
64eb2b56
JB
44842009-10-01 Juanma Barranquero <lekktu@gmail.com>
4485
4486 * lisp.h (Qdelete_directory_internal):
4487 Declare, instead of Qdelete_directory.
4488
4489 * w32fns.c (Fsystem_move_file_to_trash): Use it.
4490
9d28c33e
SM
44912009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
4492
4493 * eval.c (Fcalled_interactively_p): Add `kind' argument.
4494
9d8f3bd9
MA
44952009-10-01 Michael Albinus <michael.albinus@gmx.de>
4496
9d28c33e 4497 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
4498 Fdelete_directory. It is not a command anymore. It has no file
4499 name handler.
4500
9694740b
SM
45012009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
4502
4503 * xdisp.c (get_next_display_element): Use an enum in last change.
4504
748e162f
KH
45052009-09-28 Kenichi Handa <handa@m17n.org>
4506
9694740b 4507 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
4508 unibyte_display_via_language_environment in handling
4509 Vnobreak_char_display.
4510
17efd58d
AR
45112009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
4512
4513 * nsterm.h (ns_app_name): New extern variable.
4514
4515 * nsterm.m (ns_app_name): New variable.
4516 (ns_term_init): Set and use it.
4517 (ns_term_shutdown): Use it.
4518
4519 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
4520 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
4521
4522 * nsfns.m (ns_set_name_iconic, ns_set_name)
4523 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
4524 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
4525
9694740b
SM
4526 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
4527 Remove double-casting in client_data comparison.
31c2d412 4528
3208cb35
YM
45292009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4530
4531 * keyboard.c (make_lispy_event): Remember last wheel direction.
4532 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
4533
b7d552d6
GM
45342009-09-26 Glenn Morris <rgm@gnu.org>
4535
4536 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
4537 internal.elc. Add term/pc-win.elc.
4538 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
4539 term/x-win.elc.
4540 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
4541 term/w32-win.elc.
4542 (NS_SUPPORT): New.
4543 (lisp): Add NS_SUPPORT.
4544 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
4545
4ff670a8
DR
45462009-09-25 David Reitter <david.reitter@gmail.com>
4547
4548 * nsmenu.m (EmacsMenu-clear): Recognize application menu
4549 on Mac OS X 10.6+ (bug#4513).
4550
feabfb6c
JB
45512009-09-24 Juanma Barranquero <lekktu@gmail.com>
4552
4553 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
4554 some parts of Emacs code (like font selection) don't grok them.
4555 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 4556
de59072a
AS
45572009-09-24 Andreas Schwab <schwab@redhat.com>
4558
4559 * coding.c (decode_coding_iso_2022): Fix operator precedence.
4560
a489517b
JB
45612009-09-24 Juanma Barranquero <lekktu@gmail.com>
4562
4563 * dired.c (Fdirectory_files): Fix typo in docstring.
4564
0592970c
AR
45652009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4566
4567 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
4568 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
4569 (EmacsScroller-setPosition:portion:whole:): Remove -display call
4570 under GNUstep.
4571 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
4572
4573 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
4574 glyph advancement.
4575
48e8a88b
AR
45762009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4577
4578 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 4579 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
4580
4581 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
4582 deleted (bug #4492).
4583
e14f0a78
AR
4584 * nsfont.m (Vns_reg_to_script): New lisp variable.
4585 (syms_of_nsfont): Declare it.
4586 (ns_registry_to_script): New function.
4587 (ns_get_req_script): Call it.
4588 (ns_findfonts): Don't give up on non-unicode registry.
4589
4590 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
4591
5b650faa
SM
45922009-09-20 Tom Tromey <tromey@redhat.com>
4593
4594 * eval.c (find_handler_clause): Make stack-trace-on-error work in
4595 batch mode (bug#4228).
4596
a489517b 45972009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
4598
4599 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 4600 carefully. (Bug #4339)
0bae4e09 4601
fcfe06f3
CY
46022009-09-18 Chong Yidong <cyd@stupidchicken.com>
4603
d798ba87 4604 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 4605
31642728
AR
46062009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
4607
4608 * emacs.c (inhibit_x_resources): Update doc string for NS.
4609 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 4610 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
4611
4612 * nsterm.h (ns_no_defaults): Remove.
4613
4614 * nsterm.m (ns_no_defaults): Remove.
4615 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
4616 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
4617 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
4618 don't update the NSWindow itself.
4619 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 4620 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
4621
4622 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
4623 ns_use_qd_smoothing.
4624
4625 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
4626 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 4627 (x-close-connection): Drop PSFlush() under OS X.
a489517b 4628 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 4629
8686ac71
JB
46302009-09-17 Juanma Barranquero <lekktu@gmail.com>
4631
4632 * emacs.c (inhibit_x_resources): New variable.
4633 (main) [HAVE_NS]: Don't process --quick command line option.
4634 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
4635
4636 * lisp.h (inhibit_x_resources): Declare it extern.
4637
4638 * w32reg.c (x_get_string_resource):
4639 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
4640
e227ba05
EZ
46412009-09-17 Eli Zaretskii <eliz@gnu.org>
4642
362654a6
JB
4643 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
4644 Add lisp/term/internal.elc.
e227ba05 4645
742d40e8
SM
46462009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
4647
4648 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
4649 (bug#4461).
4650
005bd5a2
DN
46512009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
4652
4653 * puresize.h (BASE_PURESIZE): Increase to 1290000.
4654
4655 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
4656 (OBJECTS_MACHINE): Remove, unused.
4657
f9af9719
SM
46582009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
4659
4660 * frame.c (x_get_resource_string): Remove unused.
4661
0307c7d2
JD
46622009-09-15 Jan Djärv <jan.h.d@swipnet.se>
4663
4664 * xterm.c (x_new_font): Call change_frame_size before calling
4665 x_set_window_size, in case frame size won't change.
4666
4667 * frame.c (x_set_font): Remove dead code.
4668
428b13d6
SM
46692009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
4670
4671 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
4672
5766c380
SM
46732009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4674
4675 * lread.c (Fload): Don't output a message after loading an obsolete
4676 package any more (done in Lisp now).
4677
2fd0161b
CY
46782009-09-12 Chong Yidong <cyd@stupidchicken.com>
4679
4680 * fns.c (syms_of_fns): Doc fix (Bug#4227).
4681
bc5e75b6
SM
46822009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4683
4684 * keymap.c (Fwhere_is_internal): Use nconc2.
4685
c31c985e
AM
46862009-09-11 Alan Mackenzie <acm@muc.de>
4687
4688 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
4689 batch mode.
4690
78012bd2
AS
46912009-09-11 Andreas Schwab <schwab@linux-m68k.org>
4692
4693 * xdisp.c (display_mode_element): Detect cycles.
4694
9d889332
SM
46952009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4696
4697 * keymap.c (where_is_internal): Don't erroneously return nil right after
4698 filling the cache.
4699 (where_is_internal_1): Fix up typo.
4700
7ab5d780
GM
47012009-09-11 Glenn Morris <rgm@gnu.org>
4702
4703 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
4704 share a common doc-string.
4705
5238a749
SM
47062009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4707
66d77eda
SM
4708 * keymap.c (get_keymap): Return the actual keymap symbol rather than
4709 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
4710
5238a749
SM
4711 * keymap.c (QCadvertised_binding): New constant.
4712 (syms_of_keymap): Initialize it.
4713 (Fwhere_is_internal): Try and use bindings from :advertised-binding
4714 if applicable.
4715
19f48442
SM
47162009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
4717
50d4ba39
SM
4718 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
4719 (parse_menu_item): Streamline since bindings are recomputed all the
4720 time anyway. Don't bother checking Vdefine_key_rebound_commands any
4721 more and don't support lmenu's menu-alias any more either.
4722
a88a5372
SM
4723 * keymap.c (where_is_internal_data): Make noindirect a boolean.
4724 (where_is_internal): Strip it down to only traverse the keymaps.
4725 Move the cache handling from Fwhere_is_internal to here.
4726 (Fwhere_is_internal): Move the handling of remapping and the choice of
4727 the best binding from where_is_internal to here.
4728 Unify the cached/noncached paths, so remapping is also handled
4729 correctly when the cache is used, and so the cache can be used to
4730 speed up remap-handling when applicable.
4731 Give preference to non-remapped bindings.
4732 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
4733 non-remapped bindings.
4734 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
4735 command remapping.
4736
19f48442
SM
4737 * xdisp.c (display_mode_element): Move list length limit from 50 to
4738 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
4739
599498c3 47402009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
4741
4742 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
4743
f9b7b5ac
SM
47442009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
4745
a53af587
JB
4746 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
4747 (Bug#4334)
4748
f9b7b5ac
SM
4749 * keymap.c (where_is_internal): Filter out shadowed remappings.
4750 Assume that where_is_internal returns unshadowed bindings to simplify
4751 the code and get rid of the gotos. Use ASIZE.
4752
04f4b72d
JD
47532009-09-04 Jan Djärv <jan.h.d@swipnet.se>
4754
4da146f2
JD
4755 * xterm.c (x_focus_changed): If we get a focusout and pointer
4756 is invisible, make it visible.
4757
04f4b72d
JD
4758 * xterm.h: Remove condition for declaration of
4759 x_*_window_to_frame.
4760
7cef7ce3
SM
47612009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
4762
4763 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
4764 initial terminal as well.
4765
a54fa5b7
JD
47662009-09-02 Jan Djärv <jan.h.d@swipnet.se>
4767
4768 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 4769 x_menubar_window_to_frame.
a54fa5b7 4770
50426a04 4771 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
4772 (XTmouse_position): Do not return valid positions
4773 for clicks in the menubar and the toolbar for Gtk+.
4774
4775 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
4776 if the widget for the event has the same top level as a frame,
4777 return the frame.
4778 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
4779 internal windows, bug #4122.
4780 (x_non_menubar_window_to_frame): Remove.
4781
5a021dd0
GM
47822009-09-02 Glenn Morris <rgm@gnu.org>
4783
4784 * buffer.c (default-major-mode): Move most of the doc from here...
4785 (major-mode): ... to here.
4786
548fe2f3
NR
47872009-08-30 Nick Roberts <nickrob@snap.net.nz>
4788
4789 * process.c (wait_reading_process_output): Keep the descriptor
4790 when pty is used by a non-child process, e.g., in I/O buffer of
4791 GDB this allows inferior to be restarted.
4792
e0840eef
EZ
47932009-08-29 Eli Zaretskii <eliz@gnu.org>
4794
4795 * xdisp.c (redisplay_internal): Remove redundant test and collapse
4796 both branches into one.
4797
82e98df4
SM
47982009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
4799
4800 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
4801 (main): Use enable-multibyte-characters rather than
4802 default-enable-multibyte-characters. Output a warning message when
4803 running a unibyte session.
4804
890617cb
YM
48052009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4806
4807 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
4808 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
4809 (copy_data_segment): Also copy __program_vars section.
4810 (copy_dyld_info) [LC_DYLD_INFO]: New function.
4811 (dump_it) [LC_DYLD_INFO]: Use it.
4812
4813 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
4814
e7adeadc
EZ
48152009-08-28 Eli Zaretskii <eliz@gnu.org>
4816
4817 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
4818 $(SRC)/buildobj.h.
4819 (buildobj.h): Renamed from $(SRC)/buildobj.h.
4820 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
4821 $(SRC)/buildobj.h.
4822 (clean): Add buildobj.h.
4823
3ed8bbdc
TZ
48242009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
4825
4826 * print.c (print_object): Set escapeflag to 1 when printing
4827 hashtable keys and values.
4828
155a6764
SM
48292009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
4830
4831 * lread.c (read_integer): Use doubles (and potentially return a float
4832 number) as we do in string-to-number.
4833 (read1): Use strtol to read integers, signal errors on strtol's
4834 overflow and use floats if strtol's output is too large for
4835 Elisp integers.
4836
877610de
EZ
48372009-08-27 Eli Zaretskii <eliz@gnu.org>
4838
4839 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
4840 (make-buildobj-SH): Fix last change.
4841 (SRC): Move to before where it's first used.
4842
ef73e7be
KH
48432009-08-27 Kenichi Handa <handa@m17n.org>
4844
550c8289
KH
4845 * process.c (send_process): Use encode_coding_object instead of
4846 encode_coding_string to perform eol-conversion even if the string
4847 is unibyte.
4848
60afa08d
KH
4849 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
4850 character.
4851
ef73e7be 4852 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 4853 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 4854
7b3a82d7
DN
48552009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
4856
5654bf63
DN
4857 * callproc.c (Fcall_process): Remove always true #if.
4858
7b3a82d7
DN
4859 * lisp.h: Replace #if 0 code for checking with text pointing to
4860 the --enable-checking configure flag.
4861
4862 * emacs.c (main): Mention the --enable-profiling configure flag
4863 instead of using CFLAGS.
4864
878bde49
KR
48652009-08-26 Ken Raeburn <raeburn@raeburn.org>
4866
4867 * Makefile.in (buildobj.h): New target.
4868 (doc.o): Depend on it.
4869 (temacs${EXEEXT}): Don't generate buildobj.lst.
4870 (mostlyclean): Delete buildobj.h, not buildobj.lst.
4871 * makefile.w32-in ($(SRC)/buildobj.h): New target.
4872 ($(BLD)/doc.$(O)): Depend on it.
4873 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
4874 provided by Eli Zaretskii.)
4875 ($(TEMACS)): Don't generate buildobj.lst.
4876 * doc.c: Include buildobj.h.
4877 (buildobj): New static variable.
4878 (Fsnarf_documentation): Use it, instead of opening and reading
4879 buildobj.lst.
4880
1574224c
MA
48812009-08-25 Michael Albinus <michael.albinus@gmx.de>
4882
4883 * dbusbind.c (Fdbus_call_method)
4884 (Fdbus_call_method_asynchronously): Use English numeric format for
4885 timeout values in doc string.
4886
d9da2f45
KH
48872009-08-25 Kenichi Handa <handa@m17n.org>
4888
ef73e7be
KH
4889 * alloc.c (mark_char_table): New function.
4890 (mark_object): Use mark_char_table for a char-table.
4891
d9da2f45
KH
4892 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
4893 (CHAR_TABLE_REF): Use it.
4894
c8edcc01
KR
48952009-08-23 Ken Raeburn <raeburn@raeburn.org>
4896
4897 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
4898 before invoking the newly build emacs to check for load-path
4899 shadowing.
4900
7763401b
GM
49012009-08-22 Glenn Morris <rgm@gnu.org>
4902
4903 * Makefile.in (bootstrap_exe): New variable.
4904 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
4905 Use ${bootstrap_exe}.
4906
729eadda
EZ
49072009-08-22 Eli Zaretskii <eliz@gnu.org>
4908
4909 * coding.h (encode_coding_string): Don't encode unibyte strings.
4910 (Bug#4047)
4911
eb4c6ace
MA
49122009-08-22 Michael Albinus <michael.albinus@gmx.de>
4913
4914 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
4915
4916 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
4917 intended as hotfix only.
4918 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
4919
36e34d1b
AR
49202009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4921
4922 * nsterm.m (ns_get_color): Update documentation properly for last
4923 change, and clean up loose ends in the code left by it. Fix
4924 longstanding bug with 16-bit hex parsing, and add support for
4925 yet another X11 format (rgb:r/g/b) for compatibility.
4926 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
4927 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
4928
f983eb8a
SM
49292009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
4930
4931 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
4932
3f56d3c6
MA
49332009-08-20 Michael Albinus <michael.albinus@gmx.de>
4934
4935 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
4936 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
4937 (xd_initialize, xd_pending_messages): Check, whether
4938 $DBUS_SESSION_BUS_ADDRESS is set.
4939
fb641d68
YM
49402009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4941
4942 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
4943
4944 * nsterm.m (ns_get_color): Remove incompatible color formats again.
4945
cf59a374
GM
49462009-08-20 Glenn Morris <rgm@gnu.org>
4947
4948 * emacs.c (system-type): Doc fix.
4949
1373f3be
SM
49502009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
4951
4952 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
4953 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
4954
058ed861
MA
49552009-08-18 Michael Albinus <michael.albinus@gmx.de>
4956
1373f3be
SM
4957 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
4958 New functions.
058ed861
MA
4959 (xd_initialize): Revert change from 2009-08-16.
4960
563a866e 49612009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
4962
4963 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 4964 font-group vector, return nil.
5fc05db0 4965
e42bdf01
CY
49662009-08-17 Chong Yidong <cyd@stupidchicken.com>
4967
4968 * process.c (status_notify): Don't perform redisplay.
4969 (Fdelete_process, list_processes_1, process_send_signal):
4970 Expliticly perform redisplay.
4971 (wait_reading_process_output): Always check process status, but
4972 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
4973
4230ab74
KR
49742009-08-17 Ken Raeburn <raeburn@raeburn.org>
4975
1373f3be 4976 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
4977 (XFLOAT_INIT): New macro for storing a float value.
4978 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
4979 * fns.c (sxhash): Copy out the value of a float in order to
4980 examine its bytes.
4981 * dbusbind.c (xd_append_arg): Likewise.
4982
4230ab74
KR
4983 * emacs.c (main): Don't call syms_of_data twice.
4984
a0645cdd
MA
49852009-08-16 Michael Albinus <michael.albinus@gmx.de>
4986
4987 * dbusbind.c (xd_initialize): Add connection file descriptor to
4988 input_wait_mask, in order to let select() detect, whether a new
4989 message has been arrived.
ca4f31ea 4990 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 4991
485db0ba
MA
49922009-08-15 Michael Albinus <michael.albinus@gmx.de>
4993
1373f3be
SM
4994 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
4995 New functions.
485db0ba
MA
4996
4997 * lisp.h (xd_pending_messages): Declare.
4998
4999 * keyboard.c (readable_events): Call xd_pending_messages.
5000
b5b98ff4
CY
50012009-08-15 Chong Yidong <cyd@stupidchicken.com>
5002
1373f3be 5003 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 5004
f8354c6e
CY
5005 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
5006
b5b98ff4
CY
5007 * buffer.c (set_buffer_internal_1)
5008 (swap_out_buffer_local_variables): Check for unbound local
5009 variables (Bug#4138).
5010
8b9fc636
EZ
50112009-08-14 Eli Zaretskii <eliz@gnu.org>
5012
5013 * process.c (create_pty): Fix last change.
5014
ce959360
CY
50152009-08-13 Chong Yidong <cyd@stupidchicken.com>
5016
5017 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
5018 (xbm_load_image): Caller changed.
64b807c9 5019 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 5020
c7baf7e9
NR
50212009-08-13 Nick Roberts <nickrob@snap.net.nz>
5022
5023 * process.c (create_pty): New function.
5024 (Fstart_process): Use it to allow Emacs to just associate a pty
5025 with the buffer. See associated change in gdb-mi.el.
5026 (list_processes_1): Deal with no program name.
5027 (start_process_unwind): Use pid == -2 to mean no process.
5028
1ac9108a
SM
50292009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
5030
5031 * cmds.c (nonundocount): New global variable.
5032 (keys_of_cmds): Initialize it.
5033 (Fself_insert_command): Use it to combine upto 20 sequential chars
5034 into a single undo entry, just like the Qself_insert_command code in
5035 keyboard.c does.
5036 Call frame_make_pointer_invisible, also like the Qself_insert_command
5037 code in keyboard.c does.
5038 * keyboard.c (command_loop_1): Use the new global nonundocount rather
5039 than its own local replacement for it.
5040
e267324c
KR
50412009-08-10 Ken Raeburn <raeburn@raeburn.org>
5042
1ac9108a 5043 * fns.c (concat): Don't re-set string length to its current value.
77437343 5044
1ac9108a
SM
5045 * coding.h (decode_coding_string, encode_coding_string):
5046 Use SBYTES macro.
f0bed503 5047
1ac9108a 5048 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
5049 (doprnt): Merge with doprnt1, discarding lispstrings code.
5050 * lisp.h (doprnt_lisp): Don't declare.
5051
416e006d
JL
50522009-08-07 Juri Linkov <juri@jurta.org>
5053
5054 * puresize.h (BASE_PURESIZE): Increase to 1270000.
5055
6f7d5780
DN
50562009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
5057
5058 * print.c (syms_of_print): Undo previous change.
5059
f19a0f5b
TZ
50602009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
5061
5062 * lread.c (read1, syms_of_lread): Read hashtables back from the
5063 readable format.
5064
5065 * print.c (print_preprocess, print_object): Print hashtables fully
5066 and readably.
5067 (syms_of_print): Provide 'hashtable-print-readable.
5068
b9173dc2
AR
50692009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5070
5071 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
5072 no family set.
5073 (nsfont_open): Handle case when entity has no family.
5074
1586503c
AR
50752009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5076
5077 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
5078 element, not a list, for match case.
5079
087048cd
KH
50802009-07-28 Kenichi Handa <handa@m17n.org>
5081
5082 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
5083 rigidly.
5084
5085 * xfont.c (xfont_list_pattern): Don't ignore the return value of
5086 font_parse_xlfd. Check font properties more rigidly.
5087
780c2506
DN
50882009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
5089
31fd7c5c
JB
5090 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
5091 bsd-common.h.
780c2506 5092
a8c0cc18
KH
50932009-07-27 Kenichi Handa <handa@m17n.org>
5094
5095 * xfaces.c (face_with_height): Call font_clear_prop.
5096
4fbe2306
CY
50972009-07-26 Chong Yidong <cyd@stupidchicken.com>
5098
111d9af3
CY
5099 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
5100
5101 * xterm.c (x_term_init): Use Qx.
5102
4fbe2306
CY
5103 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
5104
1ac9108a 5105 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
5106 (ns_get_color): Revert 2009-07-16 change.
5107
beb0b7f9
EZ
51082009-07-25 Eli Zaretskii <eliz@gnu.org>
5109
5110 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 5111 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 5112
2baf5e76
KR
51132009-07-25 Ken Raeburn <raeburn@raeburn.org>
5114
1ac9108a
SM
5115 * coding.h (decode_coding_string, encode_coding_string):
5116 Use SCHARS macro.
8890e5f5 5117
2baf5e76 5118 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 5119 (load_depth): Delete.
2baf5e76
KR
5120 (Qload_in_progress): New variable.
5121 (load_unwind): Don't reference load_depth or load_in_progress.
5122 (Fload): Likewise; specbind Qload_in_progress instead.
5123 (init_lread): Don't initialize load_depth.
5124 (syms_of_lread): Initialize and protect Qload_in_progress.
5125
1395c6f5
AR
51262009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5127
5128 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
5129
4e2f36cf
AR
51302009-07-23 Yavor Doganov <yavor@gnu.org>
5131
5132 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
5133
5dd9a6f7
AR
51342009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5135
5136 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
5137 Bugs 3792, 3720, 2402.
5138 (ns_lookup_indexed_color): Check for bad index.
5139 (ns_index_color): Init unused slot to 0.
5140 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
5141 Bug 3714, possibly 3082.
5dd9a6f7 5142
c902b920
JR
51432009-07-22 Jason Rumney <jasonr@gnu.org>
5144
1ac9108a
SM
5145 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
5146 Position IME window at cursor (Bug#2570).
c902b920
JR
5147 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
5148 (globals_of_w32fns): Dynamically load functions required above.
5149
5150 * w32term.c (w32_draw_window_cursor): Send message to reposition
5151 any IME window.
5152
090101cf
CY
51532009-07-21 Chong Yidong <cyd@stupidchicken.com>
5154
5155 * fileio.c: Revert 2009-07-16 changes.
5156 (Vauto_save_include_big_deletions): New variable.
5157 (Fdo_auto_save): Disable auto-save only if
5158 auto-save-include-big-deletions is nil.
5159
e6583e3d
CY
51602009-07-21 Chong Yidong <cyd@stupidchicken.com>
5161
5162 * xdisp.c (move_it_to): For continued lines ending in a tab, take
5163 the overflowed pixels into account (Bug#3879).
5164
ece435a5
KR
51652009-07-21 Ken Raeburn <raeburn@raeburn.org>
5166
5167 * lread.c (load_depth): New variable.
5168 (Fload, load_unwind, init_lread): Set it to the load recursion
5169 depth; set load_in_progress as a simple boolean based on the
5170 current load_depth. (Bug#3892)
5171
40b2d973
AR
51722009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5173
5174 * nsfont.m (ns_has_attribute): Remove.
5175 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
5176
10be7e0d
JL
51772009-07-18 Juri Linkov <juri@jurta.org>
5178
5179 * process.c (Fset_process_query_on_exit_flag): Mention killing
5180 a buffer in docstring.
5181
fa055055
KH
51822009-07-17 Kenichi Handa <handa@m17n.org>
5183
5184 * casetab.c (shuffle): Fix the logic of setting up the cycle.
5185
042f7b69
YM
51862009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5187
5188 * nsfns.m (Fns_set_alpha): Remove function.
5189 (syms_of_nsfns): Don't defsubr it.
5190
5191 * nsterm.m (ns_get_color): Remove incompatible color formats.
5192 (ns_color_to_lisp): Generate #rrggbb color format string.
5193
4be941e3
RS
51942009-07-16 Richard Stallman <rms@gnu.org>
5195
5196 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
5197 (Fset_buffer_auto_saved): Handle save_length = -2.
5198
4e6b227d
CY
51992009-07-16 Chong Yidong <cyd@stupidchicken.com>
5200
5201 * xterm.c (Qx_gtk_map_stock): New var.
5202
5203 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
5204 of calling intern each time.
5205
a1856973
YM
52062009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5207
5208 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
5209 does tiling.
5210
5211 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
5212
497e54d8
KH
52132009-07-14 Kenichi Handa <handa@m17n.org>
5214
72d36834
KH
5215 * font.c (font_vconcat_entity_vectors): New function.
5216 (struct font_sort_data): New member font_driver_preference.
5217 (font_compare): Check font_driver_preference.
5218 (font_sort_entities): The format of the first argument changed.
5219 (font_delete_unmatched): Likewise.
5220 (font_list_entities): The return type changed.
5221 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
5222 (font_find_for_lface): Adjuste for the above changes.
5223 Don't suppress the checking of C even if the repertory supports it.
5224 (Flist_fonts): Adjust for the above changes.
72d36834 5225
1ac9108a
SM
5226 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
5227 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
5228 Reject a font who has adstyle property that is different from a
5229 langname derived from registry property.
1ac9108a 5230 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 5231
b6046155
EZ
52322009-07-13 Eli Zaretskii <eliz@gnu.org>
5233
5234 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
5235 local copy of dirfilename.
5236
fb6b6049
KH
52372009-07-13 Kenichi Handa <handa@m17n.org>
5238
e2402a5e
KH
5239 * chartab.c (sub_char_table_ref_and_range): Fix the range check
5240 against max_char.
5241
fb6b6049
KH
5242 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
5243 calling XSYMBOL (sym).
5244
65156807
EZ
52452009-07-11 Eli Zaretskii <eliz@gnu.org>
5246
1ac9108a
SM
5247 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
5248 New function.
5249 (directory_files_internal) [WINDOWSNT]:
5250 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
5251 the filesystem of the directory is fast or slow.
5252
5253 * w32.c (logon_network_drive): Don't assume PATH is an absolute
5254 file name.
5255 (is_slow_fs): New function.
5256 (stat): Use it to determine whether to issue more system calls to
5257 get accurate file attributes, when w32-get-true-file-attributes is
5258 `local'.
5259
e0ab5fcf
JD
52602009-07-10 Jan Djärv <jan.h.d@swipnet.se>
5261
5262 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 5263 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
5264 parameter font-parameter as default to the font dialog.
5265
784ceded
KH
52662009-07-10 Kenichi Handa <handa@m17n.org>
5267
5268 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
5269
fb8edc0b
EZ
52702009-07-09 Eli Zaretskii <eliz@gnu.org>
5271
1ac9108a 5272 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 5273
fb8edc0b
EZ
5274 * w32.c (stat): Treat UNC file names as residing on remote
5275 drives. (Bug#3542)
5276
635c75b1
KH
52772009-07-09 Kenichi Handa <handa@m17n.org>
5278
5279 * fontset.c (fontset_find_font): Fix previous change.
5280
c1d5ce94
MA
52812009-07-08 Michael Albinus <michael.albinus@gmx.de>
5282
5283 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
5284 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
5285 error flag.
5286
edb61b39
KH
52872009-07-08 Kenichi Handa <handa@m17n.org>
5288
374bf7e4
KH
5289 * fontset.c (fontset_find_font): Fix the logic of handling
5290 charset_matched.
5291 (font_for_char): Delete unused var.
5292 (generate_ascii_font_name): Delete it.
5293
edb61b39
KH
5294 * coding.h (JIS_TO_SJIS2): Fix the code range check.
5295
5296 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
5297 (encode_coding_sjis): Fix the code range check.
5298
0f3f018c
CY
52992009-07-07 Chong Yidong <cyd@stupidchicken.com>
5300
5301 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
5302 (Fexpand_file_name): Copy string data properly (Bug#3772).
5303
fcaf6f3a
JD
53042009-07-07 Jan Djärv <jan.h.d@swipnet.se>
5305
5306 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
5307 first MapNotify.
5308
6809ca75
KH
53092009-07-07 Kenichi Handa <handa@m17n.org>
5310
5311 * character.h (unibyte_has_multibyte_table): Delete extern.
5312 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
5313
5314 * charset.c (Fset_charset_priority): Update charset_unibyte.
5315 (syms_of_charset): Initialize charset_unibyte.
5316
5317 * character.c (unibyte_has_multibyte_table): Delete it.
5318 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
5319 charset_unibyte.
5320 (multibyte_char_to_unibyte_safe): Likewise.
5321 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
5322
1ac9108a 5323 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
5324 (x_produce_glyphs): Likewise.
5325
5326 * .gdbinit (xcharset): Fix the treating $arg0.
5327
ad9e2d54
EZ
53282009-07-04 Eli Zaretskii <eliz@gnu.org>
5329
5330 Emulation of `getloadavg' on MS-Windows.
50426a04 5331 * w32.c: Include float.h.
ad9e2d54
EZ
5332 (g_b_init_get_native_system_info, g_b_init_get_system_times)
5333 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
5334 (get_native_system_info, get_system_times): New functions.
5335 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
5336 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
5337 (globals_of_w32): Initialize g_b_init_get_native_system_info,
5338 g_b_init_get_system_times, and num_of_processors.
5339
0a3472c7
JR
53402009-07-03 Jason Rumney <jasonr@gnu.org>
5341
5342 * w32term.c (w32_initialize): Use standard types.
5343
80904120
EZ
53442009-07-03 Eli Zaretskii <eliz@gnu.org>
5345
5346 * dired.c (Ffile_attributes): Decode user and group names by the
5347 locale's encoding. (Bug#3443)
5348
6978862d
DN
53492009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
5350
f8d23104
DN
5351 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
5352 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
5353
5354 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
5355
5356 * term.c (init_tty): Remove spurious #ifdef.
5357
6978862d
DN
5358 * m/mips.h: Mention this file is also used for netbsd.
5359 * m/pmax.h: Remove file.
5360
e044e4fc
JD
53612009-07-03 Jan Djärv <jan.h.d@swipnet.se>
5362
5363 * xterm.h (struct x_display_info): Add invisible_cursor.
5364 (struct x_output): Add current_cursor.
5365
5366 * xterm.c (XTtoggle_invisible_pointer): New function.
5367 (x_define_frame_cursor): Don't define cursor if invisible or the
5368 same as before. Set current_cursor.
5369 (x_create_terminal): Set toggle_invisible_pointer_hook.
5370
5371 * xfns.c (make_invisible_cursor): New function.
5372 (x_set_mouse_color): Call make_invisible_cursor.
5373 Set current_cursor.
5374 (x_window): Set current_cursor.
5375
5376 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
5377
5378 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
5379 inserting a character.
5380 (read_avail_input): Call frame_make_pointer_visible.
5381
5382 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
5383 (frame_make_pointer_invisible, frame_make_pointer_visible):
5384 New functions.
e044e4fc
JD
5385 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
5386
5387 * frame.h: Declare frame_make_pointer_invisible and
5388 frame_make_pointer_visible.
5389 (struct frame): Add pointer_invisible.
5390
574c8efa
JD
53912009-07-02 Jan Djärv <jan.h.d@swipnet.se>
5392
7b507248
JD
5393 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
5394 frame isn't visible.
5395 (xg_frame_resized): If width/height is -1, get size of window
5396 from X server.
5397
5398 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
5399 for MapNotify.
5400
835bdaa7 5401 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 5402 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 5403 (flush_and_sync): Reintroduce.
574c8efa 5404
3f1c6666 54052009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 5406
31fd7c5c 5407 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
5408
5409 * xterm.c (x_handle_net_wm_state): Also look for sticky.
5410 (x_term_init): Initialize Xatom_net_wm_state_sticky.
5411
5412 * frame.h: Declare Qsticky.
5413
cad9ef74
JD
5414 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
5415
5416 * nsfns.m (ns_frame_parm_handlers): Ditto.
5417
5418 * frame.c: Declare Qsticky.
5419 (frame_parms): Add sticky.
5420
5421 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
5422
5423 * xterm.h: Declare x_set_sticky.
5424
5425 * xterm.c (x_set_sticky): New function.
5426
69b16610
JD
5427 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
5428 (xg_tool_bar_menu_proxy): Attach enter/leave events to
5429 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
5430
5431 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
5432
5433 * frame.c: Qmaximized is new.
5434 (x_set_frame_parameters): Do not handle fullscreen specially.
5435 Only set width and height if explicitly set.
5436 (x_set_fullscreen): Handle Qmaximized.
5437 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
5438 (syms_of_frame): Initialize Qmaximized.
5439
1ac9108a
SM
5440 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
5441 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
5442
5443 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
5444 for Expose event. Add call to x_check_fullscreen for MapNotify event.
5445 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
5446 set gravity to NorthWestGravity when USE_GTK.
5447 (set_wm_state): New function.
31fd7c5c 5448 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
5449 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
5450 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 5451 or the case when no window manager is running. That means remove calls
3f1c6666
JD
5452 to x_real_positions and x_fullscreen_adjust.
5453
5454 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
5455 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
5456 flush_and_sync.
5457 (xg_height_changed): New function.
5458 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
5459 and gtk_window_set_policy. Set frame gravity after parsing the
5460 geometry string.
3f1c6666
JD
5461 (xg_update_frame_menubar, free_frame_menubar)
5462 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
5463 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
5464 Remove calls to xg_frame_set_char_size.
5465
fd503d99
KH
54662009-07-01 Kenichi Handa <handa@m17n.org>
5467
5468 * keyboard.c (decode_keyboard_code): New function.
5469 (tty_read_avail_input): Decode the input bytes if necessary.
5470
1ac9108a
SM
5471 * coding.c (setup_coding_system):
5472 Initialize coding->carryover_bytes to 0.
fd503d99
KH
5473 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
5474 use Qno_conversion.
5475
24ed93fb
YM
54762009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5477
5478 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
5479
99061dfc
CY
54802009-06-30 Chong Yidong <cyd@stupidchicken.com>
5481
1ac9108a 5482 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 5483
ff90fbde
JR
54842009-06-30 Jason Rumney <jasonr@gnu.org>
5485
5486 * w32term.c (w32_initialize): Use GetModuleHandle for library that
5487 is already loaded.
5488 Set user model ID if supported (bug#1849).
5489
5f445726
JM
54902009-06-29 Jim Meyering <meyering@redhat.com>
5491
5492 Remove useless if-before-xfree test.
5493 * nsfont.m (nsfont_close): Remove useless test.
5494 * term.c (delete_tty): Likewise.
5495 * w32.c (system_process_attributes): Likewise.
5496 * w32font.c (w32font_close): Likewise.
5497 * xfaces.c (x_free_gc): Likewise.
5498 * xselect.c (buffer): Likewise.
5499
b9607587
AS
55002009-06-28 Andreas Schwab <schwab@linux-m68k.org>
5501
5502 * process.c (send_process): Keep decoded string in a local
5503 variable and protect it from GC. (Bug#3521)
5504
89ba96f4
EZ
55052009-06-28 Eli Zaretskii <eliz@gnu.org>
5506
5507 * term.c (create_tty_output) [MSDOS]: #ifdef away.
5508 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
5509
098a1589
CY
55102009-06-28 Chong Yidong <cyd@stupidchicken.com>
5511
485422be
CY
5512 * xdisp.c (start_display, handle_face_prop)
5513 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
5514 (redisplay_window, try_window_id, produce_image_glyph):
5515 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 5516
098a1589
CY
5517 * xterm.c (x_update_window_begin, x_new_focus_frame)
5518 (x_scroll_bar_handle_click, handle_one_xevent)
5519 (handle_one_xevent, XTread_socket, x_focus_on_frame)
5520 (x_make_frame_visible, x_make_frame_invisible)
5521 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
5522 code chunks that are now obsolete.
5523
78c38319
MA
55242009-06-28 Michael Albinus <michael.albinus@gmx.de>
5525
5526 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
5527 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
5528 for hours, when optimzation is enabled.
5529 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
5530 (xd_read_message): Make them static.
5531
4189ed40
CY
55322009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
5533
5534 * term.c (turn_on_face): Allow simultaneously bold and dim
5535 terminal faces (Bug#3530).
5536
cd9b5e16
CY
55372009-06-27 Chong Yidong <cyd@stupidchicken.com>
5538
4e23bedb
CY
5539 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
5540
cd9b5e16
CY
5541 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
5542 truncation glyphs (Bug#3686).
5543
07cc3c35
GM
55442009-06-27 Glenn Morris <rgm@gnu.org>
5545
5546 * m/pmax.h: Restore file, with only netbsd portions.
5547
31fd7c5c 55482009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 5549
cd9b5e16 5550 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 5551
42d4a64f
KH
55522009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
5553
5554 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
5555 the arg FORCE_SYMBOL.
5556
930fe55b 55572009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
5558
5559 * fontset.c (fontset_find_font): When a usable rfont_def is found
5560 in a fallback font-group, make it the first element of the group.
5561
57ebc3fd
CY
55622009-06-24 Chong Yidong <cyd@stupidchicken.com>
5563
5564 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
5565
f084f942
KH
55662009-06-24 Kenichi Handa <handa@m17n.org>
5567
5568 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
5569 set for C.
5570 (fontset_font): Record the availability of a font for C both in
5571 the realized fontsets of the current one and the default one.
5572
2f686c87
DN
55732009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
5574
5575 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
5576 conditional, it is always defined on AIX.
5577
666e158e
MB
55782009-06-23 Miles Bader <miles@gnu.org>
5579
5580 * window.c (Vrecenter_redisplay): New variable.
5581 (syms_of_window): Initialize it.
5582 (Qtty): New extern declaration.
5583 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
5584
c6da7cd2
JM
55852009-06-23 Jim Meyering <meyering@redhat.com>
5586
1ac9108a
SM
5587 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
5588 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 5589 pointer dereferences are guaranteed to be valid.
c6da7cd2 5590
678dca3d
KH
55912009-06-23 Kenichi Handa <handa@m17n.org>
5592
74d75424
KH
5593 * emacs.c (main): Call init_font ().
5594
5595 * font.h (Vfont_log): Extern it.
5596 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
5597
5598 * font.c (font_sort_entities, font_list_entities)
5599 (font_matching_entity, font_open_entity)
5600 (font_close_object): Change font_add_log to FONT_ADD_LOG.
5601 (Vfont_log): Delete static.
5602 (font_log_env_checked): Delete this variable.
5603 (font_add_log): Don't check font_log_env_checked.
5604 (font_deferred_log): Check Vfont_log.
5605 (init_font): New function.
5606
678dca3d
KH
5607 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
5608
5609 * w32font.c: Change font_add_log to FONT_ADD_LOG.
5610
5611 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
5612
5613 * xfont.c: Change font_add_log to FONT_ADD_LOG.
5614
5615 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
5616 (face_for_char): Don't call font_deferred_log here.
5617 (font_for_char): Likewise.
5618
8a668709
CY
56192009-06-22 Chong Yidong <cyd@stupidchicken.com>
5620
9a01ee33
CY
5621 * w32term.c (x_draw_glyph_string): Use the glyph string's width
5622 rather than its background_width for drawing the overline and
5623 underline (Bug#489).
5624
5625 * xterm.c (x_draw_glyph_string): Use the glyph string's width
5626 rather than its background_width for drawing the overline and
5627 underline (Bug#489).
ec7c9926
CY
5628 (xg_default_icon_file): New variable.
5629 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
5630 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 5631
8a668709
CY
5632 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
5633 (load_overlay_strings): Remove externs.
5634 (fast_find_position): Function deleted.
5635 (mouse_face_from_buffer_pos): New function, based on
5636 fast_find_position. Correctly handle before-strings,
5637 display-strings, and after-strings (Bug#1220).
5638 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
5639
4d4c02d8
CY
56402009-06-21 Chong Yidong <cyd@stupidchicken.com>
5641
1ac9108a 5642 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
5643 (move_it_in_display_line_to, move_it_in_display_line_to)
5644 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
5645
70243478
CY
56462009-06-21 Chong Yidong <cyd@stupidchicken.com>
5647
5648 * Branch for 23.1.
5649
13087e59
JR
56502009-06-21 Jason Rumney <jasonr@gnu.org>
5651
5652 * w32term.c (keyboard_codepage): New static variable.
5653 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
5654 (w32_read_socket) [WM_CHAR]: Use it to decode character
5655 input (bug#3237).
5656 (w32_initialize): Initialize it.
5657 (codepage_for_locale): New function.
5658
4735b74e
KR
56592009-06-20 Ken Raeburn <raeburn@raeburn.org>
5660
5661 * process.c (status_message): Pass Faset index argument as a lisp
5662 object, so as to work with USE_LISP_UNION_TYPE.
5663
0e727afa
YM
56642009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5665
5666 * coding.c (Ffind_coding_systems_region_internal):
5667 Cache checked characters.
5668
cf299835
KH
56692009-06-18 Kenichi Handa <handa@m17n.org>
5670
1ac9108a 5671 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 5672
90f20d94
AS
56732009-06-18 Andreas Schwab <aschwab@redhat.com>
5674
5675 * xdisp.c (redisplay_internal): Check that the frame is still
5676 live after redisplay of its windows.
5677 (redisplay_windows): Check that the window is still live.
5678
7f1faf1c
KH
56792009-06-17 Andreas Schwab <schwab@linux-m68k.org>
5680
5681 * coding.c (detect_coding_utf_16): Fix previous change.
5682
cc13543e
KH
56832009-06-16 Kenichi Handa <handa@m17n.org>
5684
5685 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
5686 UTF-16 by checking the dispersion of Eth and Oth bytes.
5687
977b85f4
AS
56882009-06-15 Andreas Schwab <schwab@linux-m68k.org>
5689
5690 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
5691
66bd43d1
KH
56922009-06-15 Kenichi Handa <handa@m17n.org>
5693
5694 * process.c (status_message): Fix previous change. Be sure to
5695 decode a localized string.
5696
cb5ca9c5
YM
56972009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5698
5699 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
5700 add comment explaining why.
5701
ec7709ba 57022009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 5703
ec7709ba 5704 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 5705
4b7f335c
AR
57062009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
5707
5708 * nsfont.m (ns_attribute_value): Remove.
5709 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
5710 (ns_has_attribute): Shrink the normal range.
5711 (ns_findfonts): Don't worry about requested spec in determining
5712 need for synthItal.
e41820ee 5713 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 5714
73b26103
SZ
57152009-06-14 Seiji Zenitani <zenitani@mac.com>
5716
5717 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
5718
5753e4da
KH
57192009-06-11 Kenichi Handa <handa@m17n.org>
5720
5721 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
5722 overhang for the static composition case.
5723
3561b671
KH
57242009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5725
5753e4da
KH
5726 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
5727 overhang for the automatic composition case.
5728
3561b671
KH
5729 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
5730 composition case.
5731
852bbd41
CY
57322009-06-10 Chong Yidong <cyd@stupidchicken.com>
5733
5734 * xdisp.c (get_next_display_element): When handling wrap-prefix
5735 and line-prefix, treat \n as a control character (bug#3502).
5736
9903d1e6
KH
57372009-06-10 Kenichi Handa <handa@m17n.org>
5738
5739 * font.c (font_parse_family_registry): Fix for one-char foundry.
5740 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
5741
0bcbaaaa
CY
57422009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
5743
5744 * process.c (status_message): Fix handling of multibyte signal
5745 string (Bug#3499).
5746
40aa3f13
JM
57472009-06-09 Jim Meyering <meyering@redhat.com>
5748
1f80c7e2
CY
5749 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
5750 color name is missing.
40aa3f13 5751
72d51285
KH
57522009-06-09 Kenichi Handa <handa@m17n.org>
5753
5754 * charset.c (Fmap_charset_chars): In docstring, state clearly that
5755 FROM-CODE and TO-CODE are codepoints of CHARSET.
5756
c1d04d84
AR
57572009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
5758
5759 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
5760
57612009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
5762
5763 Changes to support :script/:lang/:otf in NS font driver.
5764 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
5765 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
5766 indicate not part of font driver interface, and change callers.
5767 (ns_get_family): Remove pointless null check.
5768 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
5769 ns_spec_to_descriptor, ns_descriptor_to_entity.
5770 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
5771 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
5772 (ns_spec_to_descriptor, ns_descriptor_to_entity)
5773 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
5774 (ns_get_req_script, ns_accumulate_script_ranges)
5775 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
5776 New functions.
5777 (nsfont_list, nsfont_match): Use ns_findfonts.
5778 (nsfont_open): Use font descriptor instead of traits.
5779 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
5780 (dump_glyphstring): Rename to ns_dump_glyphstring.
5781
c7eb9816
AR
5782 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
5783
c1d04d84
AR
5784 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
5785
5786 * fontset.c (fontset_from_font): Remove NS-specific code.
5787
ec7709ba 57882009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
5789
5790 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
5791 nonactive windows.
5792
31fd7c5c 57932009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 5794
1ac9108a 5795 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 5796
68852c13 57972009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
5798
5799 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
5800
6756cd1d
CY
58012009-06-07 Chong Yidong <cyd@stupidchicken.com>
5802
5803 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
5804 account for the overflowing of newlines into the last glyph on the
5805 display line (Bug#3482).
5806
28bf482a
DR
58072009-06-05 David Reitter <david.reitter@gmail.com>
5808
ec7709ba
JB
5809 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
5810 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
5811 Fns_selection_exists_p, Fns_selection_owner_p.
5812
fdb55376
JR
58132009-06-03 Jason Rumney <jasonr@gnu.org>
5814
5815 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
5816 available. (Bug#3379)
5817
05129fbe
KH
58182009-05-29 Kenichi Handa <handa@m17n.org>
5819
1ac9108a
SM
5820 * coding.c (get_translation_table):
5821 Check Venable_character_translation.
05129fbe 5822
ec7709ba 58232009-05-26 David Reitter <david.reitter@gmail.com>
15891144 5824
ec7709ba
JB
5825 * nsterm.m (ns_raise_frame): Only raise frame if visible.
5826 (x_make_frame_visible): Move frame to front rather than calling
15891144 5827 ns_raise_frame().
ec7709ba 5828 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 5829 isn't key window.
ec7709ba 5830 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
5831 drawRect may be called by NSView even if the frame is hidden.
5832
ec7709ba
JB
5833 * nsfns.m (Fx_create_frame): Follow other ports in
5834 determining visibility; default to t. Ensure async_visible is set.
15891144 5835
21f73755
EZ
58362009-05-23 Eli Zaretskii <eliz@gnu.org>
5837
5838 * dired.c (Ffile_attributes): Doc fix.
5839
34001e41
CY
58402009-05-22 Chong Yidong <cyd@stupidchicken.com>
5841
5842 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
5843
46306a17
SM
58442009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
5845
5846 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
5847 and xfont_scratch_props.
5848 (syms_of_xfont): Do it here instead.
5849 (xfont_find_ccl_program): Delete, unused.
5850 (xfont_open): Delete unused var `i'.
5851
ef6e0694
KH
58522009-05-21 Kenichi Handa <handa@m17n.org>
5853
5854 * fontset.c (Qlatin): Don't make it static.
5855
46306a17
SM
5856 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
5857 New functions.
ef6e0694
KH
5858 (xfont_scripts_cache, xfont_scratch_props): New variables.
5859 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
5860 (xfont_list_pattern): Argument changed. Callers changed.
5861 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
5862 (xfont_list): Don't reject a font spec with :script property.
5863 (xfont_has_char): Fix setting of encoding.
5864 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
5865 xfont_scratch_props.
5866
58672009-05-19 Kenichi Handa <handa@m17n.org>
5868
46306a17 5869 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
5870 Callers changed.
5871
58722009-05-18 Kenichi Handa <handa@m17n.org>
5873
5874 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
5875
ac71ced7
SM
58762009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
5877
5878 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
5879 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
5880
1c6d1051
YM
58812009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5882
5883 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
5884 (x_delete_terminal): Dissociate resource database from display and
5885 then call XrmDestroyDatabase before closing display.
5886
9b9b779c
AR
58872009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
5888
5889 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
5890 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
5891 whether selected frame is viable before raising it (based on patch
5892 by David Reitter), and improve commentary.
5893 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 5894
cccd42d5
KH
58952009-05-15 Kenichi Handa <handa@m17n.org>
5896
5897 * font.c (Ffont_spec): Check arguments.
5898
337fbd17
CY
58992009-05-14 Chong Yidong <cyd@stupidchicken.com>
5900
5901 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
5902 weight when testing attributes (Bug#3282).
5903
47a6002f
JD
59042009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5905
5906 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
5907 what we expect to get in the next ConfigureNotify event.
5908
9cb363db
YM
5909 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
5910 before Xft one (Bug#1696).
5911
b9126609
CY
59122009-05-07 David Reitter <david.reitter@gmail.com>
5913
5914 * nsfns.m (Fx_display_planes): Compute bitplanes using
5915 NSBitsPerPixelFromDepth (Bug#3207).
5916
27a69fd9
CY
59172009-05-10 Chong Yidong <cyd@stupidchicken.com>
5918
5919 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
5920
00f37552
TTN
59212009-05-10 Ulrich Mueller <ulm@gentoo.org>
5922
5923 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
5924
2d82a920
DR
59252009-05-07 David Reitter <david.reitter@gmail.com>
5926
ec7709ba
JB
5927 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
5928 Respect mouse face background.
2d82a920 5929
46b0d52d
DR
59302009-05-07 David Reitter <david.reitter@gmail.com>
5931
ec7709ba
JB
5932 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
5933 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
5934 in ns_update_begin and ns_update_end.
5935
ce1b23bb
SM
59362009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5937
5996e1b7
SM
5938 * nsfns.m (ns_get_screen): Rewrite.
5939 Don't presume selected-frame is of type `ns'.
5940
ba98e3a0
SM
5941 * font.c (font_update_drivers): Sanity fallback to avoid disabling
5942 all drivers.
5943
ce1b23bb
SM
5944 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
5945
bcda200f
YM
59462009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5947
5948 * keyboard.h (add_user_signal): Fix typo in extern.
5949
5950 * lisp.h (add_user_signal): Remove extern.
5951
5952 * unexelf.c (unexec): Consider a section to precede the .bss section
5953 if its addresses overlap that of .bss.
5954 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
5955 instead of dumping process.
5956
864660a2
SM
59572009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5958
5959 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
5960
50da4e56
SM
59612009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
5962
5963 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
5964
51520a1a
DN
59652009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
5966
5967 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
5968 any statements.
5969
409ea3a1
AS
59702009-05-02 Andreas Schwab <schwab@linux-m68k.org>
5971
59c4c60f
AS
5972 * process.c (read_process_output): Make sure the current buffer is
5973 always restored.
5974
409ea3a1
AS
5975 * coding.c (record_conversion_result): Don't modify
5976 Vlast_code_conversion_error for successful result.
5977 (alloc_destination): Don't clobber conversion result. (Bug#1650)
5978
56f00ed2
KH
59792009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
5980
5981 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 5982 (load_charset_map): Remove unnecessary code.
56f00ed2 5983
4491c9d2
DR
59842009-04-30 David Reitter <david.reitter@gmail.com>
5985
35f5b128 5986 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
5987 through f24.
5988
6970f632
CY
59892009-04-30 Chong Yidong <cyd@stupidchicken.com>
5990
5991 * xfaces.c (face_at_buffer_position): New arg base_face_id.
5992
5993 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
5994 face_at_buffer_position.
5995 (face_before_or_after_it_pos, get_next_display_element)
5996 (note_mouse_highlight): Update face_at_buffer_position call.
5997
5998 * term.c (term_mouse_highlight):
5999 * msdos.c (IT_note_mouse_highlight):
6000 * fontset.c (Finternal_char_font):
35f5b128 6001 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
6002
6003 * dispextern.h (face_at_buffer_position): Update prototype.
6004
0c616f63
KH
60052009-04-30 Kenichi Handa <handa@m17n.org>
6006
35f5b128 6007 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 6008
ad3aaf33
AS
60092009-04-29 Andreas Schwab <schwab@linux-m68k.org>
6010
6011 * callproc.c (Fcall_process): Fix GC protection. Make sure
6012 current buffer is always restored.
6013
c3c963a0
YM
60142009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6015
6016 * atimer.c (init_atimer): Also clear stopped_atimers.
6017
6018 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
6019
7e3386cb
YM
6020 * process.c (create_process): Clean up merger residues of
6021 2008-07-17 change.
6022
91f68422
CY
60232009-04-29 Ulrich Mueller <ulm@gentoo.org>
6024
6025 * lread.c (Vread_circle): New variable.
6026 (read1): Disable recursive read if Vread_circle is nil.
6027
24b34550
KH
60282009-04-29 Kenichi Handa <handa@m17n.org>
6029
6030 * fontset.h (set_default_ascii_font): Delete extern.
6031
6032 * fontset.c (set_default_ascii_font): Delete this unused function.
6033
6034 * frame.c (x_set_font): When ARG is a font-object, check if the
6035 font-object matches with the ASCII font-spec of the frame's
9c358bda 6036 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 6037
77bf07e1
AS
60382009-04-28 Andreas Schwab <schwab@linux-m68k.org>
6039
6040 * fns.c (Flocale_info): Protect vector from GC during decoding.
6041
6042 * process.c (Fstart_process): Protect argv strings from GC during
6043 encoding.
6044
2c55aacf
AS
60452009-04-27 Andreas Schwab <schwab@linux-m68k.org>
6046
6047 * sysdep.c: Include <ctype.h>.
6048
b892d3c9
DR
60492009-04-27 David Reitter <david.reitter@gmail.com>
6050
35f5b128 6051 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
6052 Remove commented-out code.
6053
9d0644c4
JB
60542009-04-26 Johan Bockgård <bojohan@gnu.org>
6055
6056 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
6057
b7053016
JR
60582009-04-25 Jason Rumney <jasonr@gnu.org>
6059
6060 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
6061
4e8231f3
YM
60622009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6063
6064 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
6065 Swap bytes in short integer if fringe bitmap width > 8.
6066
493dcf2c
KH
60672009-04-23 Kenichi Handa <handa@m17n.org>
6068
6069 * xfaces.c (Fx_list_fonts): If a font size is specified in
6070 PATTERN, set it in returned scalable fonts.
6071
401e9e57
CY
60722009-04-22 Chong Yidong <cyd@stupidchicken.com>
6073
708e05dc
CY
6074 * keyboard.c (Fset_input_meta_mode): Doc fix.
6075
6076 * dispnew.c (Fsend_string_to_terminal): Doc fix.
6077
1ac9108a 6078 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
6079
6080 * coding.c (Fterminal_coding_system): Doc fix.
6081
6082 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
6083 (Fx_display_pixel_height, Fx_display_planes)
6084 (Fx_display_color_cells, Fx_server_max_request_size)
6085 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
6086 (Fx_display_mm_height, Fx_display_mm_width)
6087 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
6088 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
6089 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
6090 (check_x_display_info): Handle terminal objects instead of
6091 terminal ids.
6092
401e9e57
CY
6093 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
6094 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
6095 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
6096 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 6097
df80c7f0
KH
60982009-04-21 Kenichi Handa <handa@m17n.org>
6099
5a8f12af 6100 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 6101 (font_score): Check AVGWIDTH too.
908567ef 6102
df80c7f0
KH
6103 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
6104 worst case.
1ac9108a
SM
6105 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
6106 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 6107
705af33f
JR
61082009-04-19 Jason Rumney <jasonr@gnu.org>
6109
6110 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 6111 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
6112
6113 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
6114 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
6115 get_phys_cursor_geometry.
6116
b71ac3dd 6117 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
6118 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
6119 using get_phys_cursor_geometry.
6120
6121 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
6122 correctly calculated.
6123
dc2933eb
JD
61242009-04-19 Jan Djärv <jan.h.d@swipnet.se>
6125
1ac9108a
SM
6126 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
6127 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
6128 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
6129 is deprecated.
6130
973e7849
AS
61312009-04-18 Andreas Schwab <schwab@linux-m68k.org>
6132
6133 * font.c (font_put_frame_data): Use xfree instead of free.
6134
314d66f4
JB
61352009-04-17 Juanma Barranquero <lekktu@gmail.com>
6136
6137 * w32font.c (Qja, Qko): Remove declarations.
6138 (syms_of_w32font): Don't DEFSYM them.
6139
cf702558
CY
61402009-04-17 Chong Yidong <cyd@stupidchicken.com>
6141
6142 * font.c (Qja, Qko): Move definitions here from ftfont.c.
6143
6144 * font.h (Qja, Qko): Extern them.
6145
6146 * ftfont.c (Qja, Qko): Remove declarations.
6147
6148 * xfont.c (Qja, Qko): Remove declarations.
6149
b50504f5
KH
61502009-04-17 Kenichi Handa <handa@m17n.org>
6151
bde25748
KH
6152 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
6153 string from a vector to handle Latin-1 characters correctly.
6154
b50504f5
KH
6155 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
6156 entity even if the cache hits.
6157
f4646fff
AS
61582009-04-16 Andreas Schwab <schwab@linux-m68k.org>
6159
6160 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 6161 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 6162
e7deaab0
AS
6163 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
6164 * lisp.h: Adjust prototypes.
6165
0a0e7d49
CY
61662009-04-16 Chong Yidong <cyd@stupidchicken.com>
6167
6168 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
6169 change (Bug#3003).
6170
3c908a57
KH
61712009-04-16 Kenichi Handa <handa@m17n.org>
6172
1ac9108a 6173 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
6174
6175 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
6176 adstyle.
6177
6178 * ftfont.c (Qja, Qko): Don't make them static.
6179 (enum ftfont_cache_for): New enum.
6180 (fc_charset_table): Undo the previous change.
6181 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
6182 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
6183 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
6184 non-scarable font, try to get AVERAGE_WIDTH.
6185 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
6186 Change ft_face_cache from a list of a hash-table. Don't check
6187 `ja' and `ko' adstyle here.
6188 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
6189 FTFONT_CACHE_FOR_CHARET.
6190 (ftfont_get_charset): Undo the previous change.
1ac9108a 6191 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
6192 (ftfont_close): Likewise.
6193 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
6194
6195 * font.c (font_sort_entites): Change the meaning of the arg
6196 BEST-ONLY. Don't optimize for VEC of lenght 1.
6197 (font_select_entity): Just return the value of font_sort_entites.
6198
6199 * xfaces.c (merge_face_vectors): Reflect font properties in
6200 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
6201 font_clear_prop if a face attribute doesn't change.
6202
3c908a57
KH
6203 * charset.h (charset_ksc5601): Extern it.
6204
6205 * charset.c (charset_ksc5601): New variable.
6206 (Fdefine_charset_internal): Set charset_ksc5601.
6207 (init_charset_once): Initialize charset_ksc5601 to -1.
6208
d65859c3
DN
62092009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
6210
6211 * fileio.c (history_delete_duplicates): Remove unused declaration.
6212
6213 * callint.c (history_delete_duplicates): New declaration.
6214 (Fcall_interactively): Remove command history duplicates when
6215 history_delete_duplicates is true.
6216
3ba010e5
EZ
62172009-04-14 Eli Zaretskii <eliz@gnu.org>
6218
6219 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
6220
06f19b91
KH
62212009-04-14 Kenichi Handa <handa@m17n.org>
6222
6223 * font.c (Ffont_info): Fix docstring. Fix the second element of
6224 the returned value (bug#2949).
6225
2cce8bfc
CY
62262009-04-14 Chong Yidong <cyd@stupidchicken.com>
6227
6228 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
6229
d156542d
KH
62302009-04-14 Kenichi Handa <handa@m17n.org>
6231
6232 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
6233 encoding charset is ascii_compatible.
6234
6235 * charset.c (Fdefine_charset_internal): Make charset
6236 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
6237 code_offset is 0, and covers all ASCII characters.
6238
86fa089e
SM
62392009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
6240
6241 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
6242 (ns_string_to_pasteboard_internal):
6243 * nsmenu.m (process_dialog):
6244 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
6245 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
6246 * lisp.h (Fx_load_color_file): Declare.
6247
a8a3728b
KH
62482009-04-13 Kenichi Handa <handa@m17n.org>
6249
1ac9108a 6250 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
6251 (font_select_entity): Suppress the code to optimize for the same
6252 kind of fonts.
6253 (font_load_for_lface): Get a font that supports at least ASCII
6254 characters.
6255
6256 * ftfont.c (Qja, Qko): New variables.
6257 (fc_charset_table): Delete uniquifier data for iso8859-1.
6258 (ftfont_get_latin1_charset): New function.
6259 (get_adstyle_property): New function.
6260 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
6261 bitmap fonts.
6262 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
6263 Delete iso-8859-1 range from the charset of fonts whose adstyle is
6264 `ko' or `ja'.
6265 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 6266 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
6267 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
6268 property.
6269 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
6270 (syms_of_ftfont): DEFSYM Qja and Qko.
6271
483670b5
KH
62722009-04-09 Kenichi Handa <handa@m17n.org>
6273
12b55765
KH
6274 * charset.c (map_charset_chars): For a charset of `superset'
6275 method, fix calculation of code range.
6276
483670b5
KH
6277 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
6278 from the list of extra properties.
6279 (font_clear_prop): Be sure to delete `:name' font property.
6280
57d3b93b
KH
62812009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6282
b4b2c2ca
YM
6283 * dispnew.c (redraw_overlapping_rows): Fix detection of
6284 overlapping for topmost and bottommost rows.
6285
1ac9108a 6286 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 6287
472c3609
JR
62882009-04-06 Jason Rumney <jasonr@gnu.org>
6289
6290 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
6291
ab193662
KH
62922009-04-06 Kenichi Handa <handa@m17n.org>
6293
6294 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
6295
6296 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
6297
0c26f026
KH
62982009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6299
6300 * ftfont.c (ftfont_open): Fix checking of the return value of
6301 FT_Load_Char. Fix setting font->underline_thickness.
6302
e173bbce
CY
63032009-04-04 Chong Yidong <cyd@stupidchicken.com>
6304
6305 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
6306 (Fterminal_parameters, Fterminal_parameter)
6307 (Fset_terminal_parameter): In doc string, refer to terminal
6308 objects rather than terminal ids.
6309
693a2698
EZ
63102009-04-04 Eli Zaretskii <eliz@gnu.org>
6311
6312 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
6313 ret_lim_data. (Bug#2867)
6314
d5221487
CY
63152009-04-03 Chong Yidong <cyd@stupidchicken.com>
6316
6317 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
6318 so they don't get wider than the window, matching 2006-01-23
6319 change to the partner function in xdisp.c (Bug#2800).
6320
223509a3
KH
63212009-04-03 Kenichi Handa <handa@m17n.org>
6322
6323 * print.c (print_object): Make each lowest sub_char_table start a
6324 new line (Bug#2866).
6325
74fcd0b1
KH
63262009-04-02 Kenichi Handa <handa@m17n.org>
6327
6328 * fontset.c (fontset_font): Record no-font when a fontset
6329 explicitly tells not to try another font-specs.
6330
c542407d
SM
63312009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
6332
6333 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
6334
e3869731
KH
63352009-03-30 Kenichi Handa <handa@m17n.org>
6336
d8d2f142
KH
6337 * fontset.c (fontset_from_font): Specify only registry in a
6338 font-spec for all characters supported by that registry.
6339
e3869731
KH
6340 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
6341 even if HAVE_M17N_FLT is not defined.
6342
5da5f805
CY
63432009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
6344
6345 * ftfont.c: Conditionalize prototyping and use of
6346 ftfont_variation_glyphs.
6347
ab226c50
SM
63482009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
6349
9628fed7
SM
6350 * frame.c (delete_frame): Work around compiler bug.
6351
6352 * editfns.c (general_insert_function): Adjust to insdel.c changes.
6353 * insdel.c (prepare_to_modify_buffer, signal_before_change):
6354 Some more EMACS_INT.
6355 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
6356
6357 * xdisp.c (dump_glyph): Fix typo.
6358
ae19ba7c
SM
6359 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
6360 (adjust_markers_gap_motion, adjust_markers_for_delete)
6361 (adjust_markers_for_insert, adjust_point)
6362 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
6363 (make_gap, copy_text, count_size_as_multibyte, insert)
6364 (insert_and_inherit, insert_before_markers)
6365 (insert_before_markers_and_inherit, insert_1)
6366 (count_combining_before, count_combining_after, insert_1_both)
6367 (insert_from_string, insert_from_string_before_markers)
6368 (insert_from_string_1, insert_from_gap, insert_from_buffer)
6369 (insert_from_buffer_1, adjust_after_replace)
6370 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
6371 (replace_range_2, del_range, del_range_1, del_range_byte)
6372 (del_range_both, del_range_2, modify_region)
6373 (prepare_to_modify_buffer, signal_before_change)
6374 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
6375 for buffer positions and sizes.
6376 * lisp.h: Adjust prototypes accordingly.
6377
6378 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
6379 (non_regular_inserted, non_regular_nbytes, read_non_regular)
6380 (Finsert_file_contents): Use EMACS_INT for buffer positions.
6381
ab226c50
SM
6382 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
6383
46dfb8fb
JD
63842009-03-27 Jan Djärv <jan.h.d@swipnet.se>
6385
6386 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
6387 lines and columns so we keep the same pixel height and width.
6388
6389 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
6390 the property _NET_WM_STATE has changed.
46dfb8fb
JD
6391 (x_handle_net_wm_state): New function to update frame parameter
6392 fullscreen.
6393 (x_term_init): Initialize atoms for _NET_WM_STATE.
6394
6395 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
6396
d347e494
SM
63972009-03-27 Kevin Ryde <user42@zip.com.au>
6398
6399 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
6400 Gpm_GetEvent as an error that justifies closing the filedescriptor.
6401 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
6402 (Fgpm_mouse_stop): Pass that new parameter.
6403 * termhooks.h (close_gpm): Adjust prototype.
6404
84db11d6
SM
64052009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
6406
c95a5008
SM
6407 * lisp.h (Fx_focus_frame): Declare.
6408
84db11d6
SM
6409 * callint.c (Fcall_interactively): For '^' just delegate the work to
6410 handle-shift-selection.
6411 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
6412
0a1958d6
CY
64132009-03-24 Chong Yidong <cyd@stupidchicken.com>
6414
0bfdff23
CY
6415 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
6416
0a1958d6
CY
6417 * data.c (Qinteractive_form): New variable.
6418 (Finteractive_form): Use it.
6419
6420 * eval.c (Fcommandp): Use Qinteractive_form.
6421
58aec0d6
JR
64222009-03-24 Jason Rumney <jasonr@gnu.org>
6423
6424 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
6425 Calculate total size precisely. Decode environment variables
6426 before substituting. (Bug#38)
6427
553dd618
KH
64282009-03-24 Kenichi Handa <handa@m17n.org>
6429
6430 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 6431 encoding (Bug#2722).
553dd618 6432
c39ea606
JD
64332009-03-23 Jan Djärv <jan.h.d@swipnet.se>
6434
6435 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
6436 that gdpy is set.
6437
bc9b2b5e
AM
64382009-03-22 Alan Mackenzie <acm@muc.de>
6439
6440 * callint.c (Finteractive): Clarify the doc string - even
6441 promptless elements need \n separators.
6442
9f995a76
JR
64432009-03-22 Jason Rumney <jasonr@gnu.org>
6444
6445 * w32term.c (syms_of_w32term): Doc fix for
6446 x-use-underline-position-properties.
6447
22749e9a
EZ
64482009-03-21 Eli Zaretskii <eliz@gnu.org>
6449
6450 * w32.c (getpwuid): Change argument type to unsigned.
6451 (struct w32_id): Change type of `rid' member to unsigned.
6452 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
6453 argument ID to unsigned. All callers changed.
6454 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
6455
e00553bf
EZ
64562009-03-20 Eli Zaretskii <eliz@gnu.org>
6457
6458 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
6459 negative, produce a float value.
6460
6461 * dired.c (make_uid, make_gid): New functions.
6462 (Ffile_attributes): Use them to avoid negative UID and GID.
6463
f761d6b6
JB
64642009-03-20 Juanma Barranquero <lekktu@gmail.com>
6465
6466 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
6467 (syms_of_keyboard) <command-hook-internal, input-method-function>:
6468 Fix typos in docstrings.
6469
d507f8d7
KH
64702009-03-19 Kenichi Handa <handa@m17n.org>
6471
6472 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
6473 changed, use font_load_for_lface to get a new font object.
6474 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
6475
6476 * frame.c (x_set_font): Handle the case that ARG is a cons.
6477
c68845e0
GM
64782009-03-19 Glenn Morris <rgm@gnu.org>
6479
6480 * fileio.c (Fsubstitute_in_file_name): Doc fix.
6481
bfa49dd1
CY
64822009-03-19 Chong Yidong <cyd@stupidchicken.com>
6483
6484 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
6485
8458d4c1
KH
64862009-03-19 Kenichi Handa <handa@m17n.org>
6487
6488 * charset.c (load_charset_map_from_file): When a mapfile can't be
6489 loaded, signal an error.
6490
78e7d1fe
EZ
64912009-03-18 Eli Zaretskii <eliz@gnu.org>
6492
6493 * dired.c (Ffile_attributes): Make sure UID and GID are always
6494 positive, even if the value is too large for a positive EMACS_INT.
6495 Doc fix.
6496
6497 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
6498
5da9fdfa
YM
64992009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6500
6501 * xmenu.c (xdialog_show): Move Fredisplay call ...
6502 (Fx_popup_dialog): ... here.
6503
7519c40d
SM
65042009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
6505
6506 * dired.c (file_name_completion): Disable the first optimization just
6507 installed, since it is not implemented correctly.
6508
2cd298e2
SM
65092009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
6510
6511 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 6512 only if the entry can affect bestmatch.
2cd298e2
SM
6513 Stop the search early, as Ftry_completion already does.
6514
48d37adf
CY
65152009-03-17 Chong Yidong <cyd@stupidchicken.com>
6516
e10c9c93 6517 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 6518
9286b16a
CY
65192009-03-15 Chong Yidong <cyd@stupidchicken.com>
6520
6521 * keyboard.c (parse_menu_item): Don't display remappings as menu
6522 equivalent bindings (Bug#788).
6523
f7b146dc
JR
65242009-03-15 Jason Rumney <jasonr@gnu.org>
6525
6526 * w32term.h (WM_EMACS_PAINT): New message.
6527 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
6528 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
6529 before passing to lisp thread. (Bug#950)
6530
f761d6b6 65312009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 6532
d93f9575
CY
6533 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
6534 variable as it was never reset.
6535 (ns_term_init): Remove initialization of Lisp-settable defaults
6536 and ns_expand_space.
6537 (-setPanelFromDefaultValues): Remove ns_expand_space.
6538 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
6539 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
6540 i.e. no additional spacing, similar to Carbon port.
6541
d93f9575
CY
6542 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
6543 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 6544
305018ec
JD
65452009-03-14 Jan Djärv <jan.h.d@swipnet.se>
6546
6547 * sound.c (alsa_configure): Remove call to deprecated
6548 snd_pcm_sw_params_set_xfer_align.
6549
f761d6b6 65502009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
6551
6552 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
6553 after clicking in a detached tool bar.
6554 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
6555
46e722a9
SM
65562009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
6557
348db3dd
SM
6558 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
6559 int/Lisp_Object mixup).
46e722a9 6560
a3d16f39
KH
65612009-03-13 Kenichi Handa <handa@m17n.org>
6562
6563 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 6564 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
6565 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
6566 (set_fontset_font): Change ARG to a vector. Handle range_list in
6567 ARG correctly.
6568 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 6569 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
6570 the above change.
6571 (fontset_from_font): Fix previous change.
fe24f56a 6572 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
6573 entry. If FONTSET is the default fontset, don't set the extra
6574 slot of the returning char-table.
6575
b066e6b6
JB
65762009-03-12 Juanma Barranquero <lekktu@gmail.com>
6577
6578 * nsfns.m (Fx_close_connection): Doc fix.
6579 (Fns_do_applescript): Reflow docstring.
6580 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
6581 (Fx_display_pixel_width, Fx_display_pixel_height)
6582 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
6583 Fix typos in docstrings.
6584 (Fns_set_alpha): Fix typos in error messages.
6585
d472514e 65862009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 6587
d472514e 6588 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
6589 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
6590 were used for such events.
6591
d472514e
JB
6592 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
6593 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 6594
d472514e 6595 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
6596 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
6597
fb930676
KH
65982009-03-11 Kenichi Handa <handa@m17n.org>
6599
ff85581a
KH
6600 * font.h (font_open_by_spec): Extern it.
6601
c50b7e98
KH
6602 * font.c (font_open_by_spec): New function.
6603 (font_open_by_name): Use font_open_by_spec.
6604
fb930676
KH
6605 * frame.c (x_set_font): When ARG is a font-object, don't alter the
6606 fontset of the frame.
6607
6608 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
6609 modify the default font of frames that use this fontset.
6610 (num_auto_fontsets): New variable.
6611 (fontset_from_font): Use num_auto_fontsets to decide a fontset
6612 name. Be sure to set FONTSET_ASCII to the correct font name.
6613 (update_auto_fontset_alist): New function.
6614
df4e8455
JB
66152009-03-11 Juanma Barranquero <lekktu@gmail.com>
6616
6617 * makefile.w32-in: Update dependencies.
6618
0a375797
AR
66192009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6620
6621 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
6622
61313fa3
SM
66232009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
6624
6625 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
6626
b55103fb
CY
66272009-03-10 Chong Yidong <cyd@stupidchicken.com>
6628
6629 * lread.c (Feval_buffer): Doc fix.
6630
dde2559c
KH
66312009-03-09 Kenichi Handa <handa@m17n.org>
6632
6633 * charset.c (Qfile_name_handler_alist): Extern it.
6634 (load_charset_map_from_file): Temporarily bind
6635 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
6636
df4e8455 66372009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 6638
47f588bb
GM
6639 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
6640 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 6641
4ddf94bd
AR
66422009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6643
4c9bdfc2
AR
6644 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
6645 (x_set_window_size): Change back to calculated method of setting
6646 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
6647 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
6648 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
6649
fe41ae9e
AR
6650 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
6651
4c9bdfc2
AR
6652 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
6653 accelerator in parens under GNUstep.
6654
825d0875
KH
66552009-03-06 Kenichi Handa <handa@m17n.org>
6656
6657 These changes are to detect incorrect composition sequence without
f3b3be74 6658 looking ahead the source. (Bug#2370)
825d0875
KH
6659
6660 * coding.h: Include "composite.h".
6661 (enum compisition_state): New enum.
6662 (struct compisition_status): New struct.
6663 (struct iso_2022_spec): New member cmp_status.
6664 (struct emacs_mule_spec): New struct.
6665 (struct coding_system): New members ctext_extended_segment_len and
6666 embedded_utf_8. Change the union member
6667 spec.emacs_mule_full_support to spec.emacs_mule.
6668
6669 * coding.c (CODING_ISO_CMP_STATUS): New macro.
6670 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 6671 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
6672 (ADD_COMPOSITION_DATA): New arg nbytes.
6673 (emacs_mule_char): New arg cmp_status.
6674 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
6675 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
6676 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
6677 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
6678 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
6679 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
6680 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
6681 (EMACS_MULE_COMPOSITION_END): New macro.
6682 (emacs_mule_finish_composition): New function.
6683 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
6684 (decode_coding_emacs_mule): Avoid long looking ahead while
6685 handling composition.
6686 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
6687 (ENCODE_COMPOSITION_RULE): New macro.
6688 (finish_composition): New function.
6689 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
6690 (DECODE_COMPOSITION_START): New implementation.
6691 (DECODE_COMPOSITION_END): Likewise.
6692 (STORE_COMPOSITION_RULE): New macro.
6693 (decode_coding_iso_2022): Avoid long looking ahead while handling
6694 composition, CTEXT extended segment, and embedded UTF-8.
6695 (setup_coding_system): For a coding of type iso-2022, reset
6696 CODING_ISO_EXTSEGMENT_LEN (coding) and
6697 CODING_ISO_EMBEDDED_UTF_8 (coding).
6698 (get_translation): Delete arguments last_block, from_nchars,
6699 to_nchars. Callers changed.
6700 (produce_chars): Don't modify charbuf. Adjusted for the change of
6701 get_translation.
98a326f7 6702 (produce_composition): Adjust for the new annotation sequence.
825d0875 6703 (handle_composition_annotation): Likewise.
98a326f7 6704 (consume_chars): Adjust for the change of get_translation.
825d0875 6705
ccbc4452
AR
67062009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
6707
4ddf94bd 6708 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 6709
988a7ddb
KH
67102009-03-05 Kenichi Handa <handa@m17n.org>
6711
6712 * font.c (font_select_entity): New function.
6713 (font_find_for_lface): Use font_select_entity to select a font.
6714
6715 * fontset.c (fontset_find_font): If a font found without
a8a3728b 6716 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
6717 font with C restriction.
6718
98a326f7 67192009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 6720
be1bce46 6721 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 6722
10ea2b82
JR
67232009-03-04 Jason Rumney <jasonr@gnu.org>
6724
2c93b248 6725 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 6726 characters that have already been read. (Bug#2569)
2c93b248 6727
10ea2b82
JR
6728 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
6729 Log an error message if check_image_size failed.
6730 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 6731 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 6732
71a0c011
EZ
67332009-03-02 Eli Zaretskii <eliz@gnu.org>
6734
6735 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
6736 when decoding process output.
6737
2f63bba8
RS
67382009-03-01 Richard M Stallman <rms@gnu.org>
6739
6740 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
6741
6742 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
6743
0a9564cb
EZ
67442009-02-28 Eli Zaretskii <eliz@gnu.org>
6745
6746 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
6747 (decode_coding_emacs_mule, decode_coding_iso_2022)
6748 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6749 (decode_coding_raw_text, decode_coding_charset)
6750 (setup_coding_system, decode_eol, decode_coding, consume_chars):
6751 Honor inhibit-eol-conversion. (Bug #2186)
6752
449148b3
JR
67532009-02-28 Jason Rumney <jasonr@gnu.org>
6754
6755 * coding.c (detect_coding_charset): If not checking latin extra,
6756 fail on characters between 0x80 and 0xA0. (Bug#2354)
6757
a4aee864
EZ
67582009-02-28 Eli Zaretskii <eliz@gnu.org>
6759
6760 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 6761 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 6762
d88bee5a
GM
67632009-02-27 Glenn Morris <rgm@gnu.org>
6764
6765 * callint.c (Finteractive): Doc fix.
6766
a808f22d
KH
67672009-02-27 Kenichi Handa <handa@m17n.org>
6768
6769 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
6770
caf8d60c
CY
67712009-02-27 Chong Yidong <cyd@stupidchicken.com>
6772
6773 * font.c (font_style_to_value): Set value for unknown symbols to
6774 100 instead of 255.
b61137ea
CY
6775 (weight_table, slant_table, width_table): Treat "unspecified" as
6776 the default value.
caf8d60c 6777
1a0de25c
JB
67782009-02-26 Juanma Barranquero <lekktu@gmail.com>
6779
6780 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
6781
8fc45744
JB
67822009-02-25 Juanma Barranquero <lekktu@gmail.com>
6783
107bd7d1
JB
6784 * lread.c (Fload): Stop checking Vloads_in_progress and signal
6785 error as soon as a recursive load is detected.
8fc45744 6786
f097e223
AR
67872009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6788
6789 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
6790 before caching.
6791
8810a12f
KH
67922009-02-24 Kenichi Handa <handa@m17n.org>
6793
6794 * fontset.c (fontset_find_font): Fix the condition for checking
6795 unavailable font.
6796
2c7d1565
GM
67972009-02-24 Glenn Morris <rgm@gnu.org>
6798
6799 * xfaces.c (Finternal_set_font_selection_order): Remove leading
6800 whitespace that confuses documentation.
6801
a20878b6
MB
68022009-02-23 Miles Bader <miles@gnu.org>
6803
6804 * process.c (Flist_system_processes, Fprocess_attributes)
6805 (syms_of_process): Rename `system-process-attributes' to
6806 `process-attributes'.
6807
b3b58c01
AS
68082009-02-22 Andreas Schwab <schwab@linux-m68k.org>
6809
1b3b981b
AS
6810 * coding.h (struct coding_system): Make safe_charsets a pointer to
6811 unsigned char.
6812 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
6813 being 255.
6814 (SAFE_CHARSET_P): Likewise.
6815 (setup_iso_safe_charsets): Properly setup safe_charsets.
6816 (Fdefine_coding_system_internal): Likewise.
6817 (setup_coding_system): Likewise. Remove unneeded casts.
6818 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
6819 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
6820 unneeded casts.
6821
b3b58c01
AS
6822 * insdel.c (del_range_2): Don't modify gap contents when called
6823 from decode_coding_object. (Bug#1809)
6824
0b6f228c
CY
68252009-02-21 Chong Yidong <cyd@stupidchicken.com>
6826
6827 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
6828 Qfont_object.
6829 (Ftype_of): Recognize font objects.
6830
6831 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
6832
6833 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
6834 moved to data.c.
6835
52f8870b
AR
68362009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6837
6838 * nsterm.m (x_make_frame_invisible): Unset async_visible,
6839 async_iconified. Based on a patch by Christian Lynbech
6840 <christian.lynbech@tieto.com>.
6841 (EmacsView-windowDidMiniaturize:): Unset async_visible.
6842
7087d5e9
GM
68432009-02-20 Glenn Morris <rgm@gnu.org>
6844
6845 * syntax.c (Fskip_chars_forward): Fix doc typo.
6846
41d2ceef
CY
68472009-02-20 Chong Yidong <cyd@stupidchicken.com>
6848
6849 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
6850
1a3b7ca6
CY
68512009-02-19 Chong Yidong <cyd@stupidchicken.com>
6852
6853 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
6854
73cce38d
KH
68552009-02-19 Kenichi Handa <handa@m17n.org>
6856
6857 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 6858 Don't overflow coding->carryover. (Bug#2370)
73cce38d 6859
a51092ee
DN
68602009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
6861
6862 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
6863
c423ecca
KH
68642009-02-18 Kenichi Handa <handa@m17n.org>
6865
6866 * font.c (font_check_otf_features): Fix handling of `nil' element.
6867 (Ffont_spec): Describe :lang and :otf in the docstring.
6868
4c1958f4
AS
68692009-02-16 Andreas Schwab <schwab@suse.de>
6870
6871 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
6872 string.
6873
5704f39a
KH
68742009-02-16 Kenichi Handa <handa@m17n.org>
6875
6876 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 6877 (Bug#1723)
5704f39a 6878
8f0085aa
CY
68792009-02-14 Chong Yidong <cyd@stupidchicken.com>
6880
a057d86a 6881 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
6882
6883 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
6884 (handle_line_prefix): Suppress wrapping of wrap prefixes.
6885
aff01dd9
EZ
68862009-02-14 Eli Zaretskii <eliz@gnu.org>
6887
6888 * msdos.c (MAX_SCREEN_BUF): New macro.
6889 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
6890 Encode the entire run of glyphs sharing the same face, instead of
6891 doing that one glyph at a time (fixes a bug with displaying
6892 double-size characters).
6893
ba301db3
AR
68942009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
6895
6896 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
6897
6898 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
6899 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 6900 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
6901
6902 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 6903 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 6904
51d861de
SM
69052009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
6906
ac146f82 6907 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
6908 invisible areas.
6909
7fed8996
JR
69102009-02-12 Jason Rumney <jasonr@gnu.org>
6911
631ea4fb
JR
6912 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
6913 (add_font_entity_to_list): Call check_face_name even when family
6914 is unspecified.
6915
cb4a3e42
JR
6916 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6917 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 6918 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 6919
7fed8996 6920 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 6921 raster fonts. (Bug#2219)
7fed8996 6922
895416e3
KH
69232009-02-12 Kenichi Handa <handa@m17n.org>
6924
6925 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
6926 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
6927 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 6928 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
6929 (find_automatic_composition): While looking forward and backward,
6930 check static composition. Fix where to stop looking forward.
6931 (composition_adjust_point): Fix checking of static composition.
6932 (Fcomposition_get_gstring): Pay attention to
1dacf998 6933 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
6934
6935 * lisp.h (fast_looking_at): Extern it.
6936
6937 * search.c (fast_looking_at): New function.
6938
51d861de 6939 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
6940 <struct glyph>.u.cmp.to.
6941 (append_composite_glyph): Likewise.
6942
51d861de 6943 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
6944 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
6945 composition.
51d861de 6946 (append_composite_glyph): Adjust for the change of
895416e3
KH
6947 <strcut glyph>.u.cmp.to.
6948
8510724d
JB
69492009-02-11 Juanma Barranquero <lekktu@gmail.com>
6950
6951 * casetab.c (init_casetab_once):
6952 * coding.c (ALLOC_CONVERSION_WORK_AREA):
6953 * font.c (font_update_lface):
6954 * fontset.c (Fnew_fontset):
6955 * ftfont.c (ftfont_drive_otf):
6956 * xfont.c (xfont_open):
6957 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
6958
294fa707
SM
69592009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
6960
6961 * fileio.c (Fwrite_region): !NILP -> CONSP.
6962
b5bfebec
AS
69632009-02-10 Andreas Schwab <schwab@suse.de>
6964
6965 * process.c (send_process): Properly relocate pointer into data
adab88bd 6966 when using encoded data. (Bug#2272)
b5bfebec 6967
cb84a2be
KH
69682009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
6969
6970 * coding.c (detect_coding_charset): Fix previous change.
6971
89e09428
JR
69722009-02-08 Jason Rumney <jasonr@gnu.org>
6973
6974 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 6975 disappeared while hourglass was displayed. (Bug #2193)
89e09428 6976
4470a277
AS
69772009-02-07 Andreas Schwab <schwab@suse.de>
6978
6979 * unexelf.c (unexec): Fix error message.
6980
3175b12a
AR
69812009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
6982
6983 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 6984 when modal window is active. (Bug #2152)
3175b12a
AR
6985 (applicationShouldTerminate:): Remove now-unneeded while loop
6986 around NSRunAlertPanel.
6987
6988 * nsmenu.m (popupSession): New file-global variable.
6989 (pop_down_menu): End the popupSession before closing dialog.
6990 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
6991 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
6992 don't query NSApp for events (just sleep instead).
6993
8434d0b8
EZ
69942009-02-07 Eli Zaretskii <eliz@gnu.org>
6995
51d861de
SM
6996 * coding.c (syms_of_coding) <translation-table-for-input>:
6997 Modify doc string to discourage use for character code unification.
8434d0b8 6998
aa82edfd
CY
69992009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7000
7001 * atimer.c (run_timers): Update pending_atimers.
7002
2d283c7c
CY
70032009-02-06 Chong Yidong <cyd@stupidchicken.com>
7004
eb306cab
CY
7005 * image.c (svg_load_image): Fix last change.
7006
2d283c7c
CY
7007 * xfns.c (Fx_create_frame): Signal an error if no font is
7008 found (Bug#2147).
7009
4d8e170e
JB
70102009-02-05 Juanma Barranquero <lekktu@gmail.com>
7011
7012 * character.c (syms_of_character) <script-representative-chars>:
7013 Fix typo in docstring.
7014
c96169a0
AR
70152009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7016
7017 * nsmenu.m (pop_down_menu): New function.
7018 (ns_popup_dialog): Call it on unwind.
7019 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
7020 call timer_check() (Bug#2154).
7021 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
7022 handling_signal is set.
7023 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
7024
31fd7c5c 7025 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
7026
7027 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
7028
7029 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
7030
51d861de
SM
7031 * keyboard.c (poll_for_input_1, handle_async_input):
7032 Set handling_signal under HAVE_NS.
c96169a0 7033
aacd8ba1
GM
70342009-02-04 Glenn Morris <rgm@gnu.org>
7035
7036 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
7037
4cb75c4b
KH
70382009-02-04 Kenichi Handa <handa@m17n.org>
7039
7040 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
7041
7042 * charset.c (Fchar_charset): New optional arg restriction.
7043
7044 * coding.h (coding_system_charset_list): Extern it.
7045
7046 * coding.c (coding_system_charset_list): New function.
7047
7048 * composite.c: Include coding.h and termhooks.h.
7049 (composition_gstring_p): Fix for the terminal case.
7050 (composition_gstring_width): Likewise.
7051 (fill_gstring_body): Likewise.
7052 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
7053 the frame.
7054 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
7055 is within a composition.
867d4bb3 7056 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
7057
7058 * term.c (encode_terminal_code): Fix handling of composition.
7059 (produce_composite_glyph): For static composition, get pixel_width
7060 from struct composition.
7061
826ba17e
AS
70622009-02-02 Andreas Schwab <schwab@suse.de>
7063
7064 * unexelf.c (unexec): Handle unaligned bss offset.
7065
8ad093db
AR
70662009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7067
7068 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
7069 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 7070
8ad093db
AR
7071 * keyboard.c (handle_interrupt): Don't call
7072 quit_throw_to_read_char() under NS.
d0a76a6e 7073
8ad093db
AR
7074 * blockinput.h: Remove NS-specific code.
7075
4d18a7a2
DN
70762009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
7077
db878925
DN
7078 * dispnew.c (window_change_signal): Don't try to get the size of a
7079 suspended tty frame.
7080 * term.c (Fresume_tty): Resize if the size has changed while the
7081 tty was suspended.
7082
4d18a7a2
DN
7083 * alloc.c (mark_stack): Properly conditionalize previous change.
7084
8984df7c
JB
70852009-01-30 Juanma Barranquero <lekktu@gmail.com>
7086
7087 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
7088 * w32term.c (w32_read_socket) [SYNC_INPUT]:
7089 Remove; this code is not used on Windows.
7090
75f4f1ac
EZ
70912009-01-30 Eli Zaretskii <eliz@gnu.org>
7092
7093 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
7094 EOLs that also has stray ^M characters.
7095
07a1e794
JB
70962009-01-30 Juanma Barranquero <lekktu@gmail.com>
7097
7098 * atimer.c (run_timers, alarm_signal_handler):
7099 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
7100 * w32inevt.c (w32_console_read_socket):
7101 * w32term.c (w32_read_socket):
7102 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
7103
a8b11cc9
CY
71042009-01-30 Chong Yidong <cyd@stupidchicken.com>
7105
7106 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
7107 Initialize it as a relative filename pattern.
7108 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
7109 (Fcall_process_region): Simplify temp file creation using
7110 temporary-file-directory.
7111
c279587b
EZ
71122009-01-29 Eli Zaretskii <eliz@gnu.org>
7113
7114 * msdos.c: Rename pending_signals to msdos_pending_signals.
7115 (sig_suspender, sigprocmask): Adjust.
7116
a8fe3242
CY
71172009-01-29 Chong Yidong <cyd@stupidchicken.com>
7118
7119 * keyboard.c (pending_signals): New var.
7120 (poll_for_input, input_available_signal, init_keyboard): Set it.
7121 (process_pending_signals): New function.
7122
7123 * lisp.h (QUIT): Check pending_signals instead of
7124 interrupt_input_pending. Use process_pending_signals.
7125
51d861de 7126 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 7127
51d861de 7128 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
7129
7130 * sysdep.c (emacs_write): Use process_pending_signals.
7131
7132 * xterm.c (XTread_socket): Update pending_signals.
7133
7134 * w32term.c (w32_read_socket): Update pending_signals.
7135
7136 * w32inevt.c (w32_console_read_socket): Update pending_signals.
7137
6570a1c4
KH
71382009-01-29 Kenichi Handa <handa@m17n.org>
7139
7140 * xftfont.c (xftfont_has_char): New function.
7141 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
7142
d72a4afa
AR
71432009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7144
7145 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
7146 under GNUstep.
7147 (ns_query_color): New declaration.
7148
7149 * nsterm.m (ns_confirm_quit): New variable.
7150 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
7151 (EmacsApp-applicationShouldTerminate:): Use it.
7152 (EmacsPrefsController): Let user set it.
7153 (ns_query_color): New function.
7154 (ns_defined_color): Use it.
7155 (ns_initialize): Drop.
7156 (ns_term_init): Add two lines from ns_initialize(), and set
7157 input_interrupt_mode to nil.
7158
7159 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 7160 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 7161
9fe78804
KH
71622009-01-28 Kenichi Handa <handa@m17n.org>
7163
7164 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
7165 (fontset_get_font_group): Remember that no font-group is specified
7166 for C.
9fe78804 7167
fa57de36
CY
71682009-01-27 Chong Yidong <cyd@stupidchicken.com>
7169
930600e9
CY
7170 * fns.c (concat): Check for string overflow (bug#1787).
7171
fa57de36
CY
7172 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
7173 Quadruple undo limits (bug#1501).
7174
7179ce7b
KH
71752009-01-27 Kenichi Handa <handa@m17n.org>
7176
7177 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
7178 directly use GT_Get_Char_index.
7179
7180 * xftfont.c (struct xftfont_info): New member `index'.
7181
7182 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 7183 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 7184
5be8fcc0
CY
71852009-01-26 Kenichi Handa <handa@m17n.org>
7186
7187 * fontset.c (fontset_find_font): Fix handling of non-cons return
7188 value of fontset_get_font_group.
7189 (fontset_font): Revert last change.
7190
19ae3e61
JR
71912009-01-26 Jason Rumney <jasonr@gnu.org>
7192
7193 * w32font.c (w32font_list_internal): Return quickly if registry is
7194 unknown. Simplify final return.
7195 (add_font_entity_to_list): Break complex logic down into more
7196 manageable chunks. Move unknown registry check to
7197 w32font_list_internal.
7198
8612b71a
AR
71992009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
7200
7201 Changes to remove Feval calls from GUI under NS.
7202
d8038940
JB
7203 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
7204 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
7205 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
7206
7207 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
7208 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
7209 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
7210 instead of NON_ASCII_KEYSTROKE_EVENT.
7211 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
7212 (EmacsApp-applicationShouldTerminate:): Query user.
7213 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
7214 instead of Feval.
7215
7216 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
7217
7218 * keyboard.c (kbd_buffer_get_event): Check for it.
7219 (keys_of_keyboard): Define lispy keys for
7220 ns-put/unput-working-text.
7221
7222 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
7223 versions.
7224 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
7225
6288ae55
CY
72262009-01-25 Chong Yidong <cyd@stupidchicken.com>
7227
7228 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 7229 setting current_buffer directly. (Bug#2044)
6288ae55 7230
289e7f8f
CY
72312009-01-24 Chong Yidong <cyd@stupidchicken.com>
7232
5ce87308 7233 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 7234 any work. (Bug#1952, bug#1990).
5ce87308 7235
64cc3cf6 7236 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 7237
b3243e6f
AR
72382009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7239
7240 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
7241 (ns_no_defaults): New declaration.
7242 (main): Use it.
e0d2e69a 7243
d900b2af 7244 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 7245
d900b2af 7246 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 7247
d900b2af
AR
7248 * nsterm.m (ns_no_defaults): New variable.
7249 (ns_initialize): Don't read defaults when ns_no_defaults.
7250 (EmacsView-readSelectionFromPasteboard:)
7251 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 7252 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
7253 (ns_dumpglyphs_stretch): New function.
7254 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 7255 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 7256
e0d2e69a
AR
7257 * nsimage.m (setPixmapData:): Set to ignore image DPI.
7258
3ac71f5d
CY
72592009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
7260
7261 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
7262 call for Sparc64.
7263
3fe53a83
AR
72642009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7265
7266 * nsfns.m:
7267 * nsgui.h:
7268 * nsmenu.m:
7269 * nsselect.m:
7270 * nsterm.h:
7271 * nsterm.m: Remove '23' comments that indicated code added during
7272 update from emacs-20 -> emacs-23.
7273
10f87c6f 72742009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
7275
7276 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 7277 ns_alternate_modifier. (Bug#1217)
a3b53a85 7278
c7cef62d
AR
7279 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
7280 Display all shortcuts, including those w/o super modifier.
7281
575fb8bd
AR
7282 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
7283
918b848b
CY
72842009-01-22 Chong Yidong <cyd@stupidchicken.com>
7285
7286 * fileio.c (Vwrite_region_post_annotation_function)
7287 (Vwrite_region_annotation_buffers): New vars.
7288 (build_annotations_unwind): Just reset
7289 Vwrite_region_annotation_buffers.
7290 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
7291 Call write-region-post-annotation-function.
7292 (build_annotations): Add to Vwrite_region_annotation_buffers if
7293 buffer changes.
7294
a39e2539
AR
72952009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7296
7297 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
7298 Tiger.
51d861de
SM
7299 * nsfns.m (ns_do_applescript):
7300 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 7301
35ed44db
AR
73022009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
7303
7304 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
7305
cbe0b5bf
AR
73062009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7307
7308 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 7309
6049d3a0
AR
7310 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
7311
7312 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
7313 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
7314 handle Ctrl-tab. (Bug#1841)
7315 (ns_get_color): Use unsigned long long for scanned hex string value.
7316 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 7317 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 7318 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 7319 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 7320 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 7321 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 7322 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 7323
d3810c21 7324 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 7325 DPI. (Bug#1316)
d3810c21
AR
7326 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
7327 values in onTiger section.
4c7077c3 7328
e301e634
CY
73292009-01-19 Chong Yidong <cyd@stupidchicken.com>
7330
7f82490b
CY
7331 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
7332 Check return value of font_spec_from_name.
64cc3cf6 7333 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
7334
7335 * font.c (font_spec_from_name): Return Qnil if font name could not
7336 be parsed.
7337 (font_parse_name): Treat a `?' character as part of an XLFD.
7338
e301e634
CY
7339 * fns.c (Fsubstring): Doc fix.
7340
1c0db158
KH
73412009-01-19 Kenichi Handa <handa@m17n.org>
7342
51d861de 7343 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
7344 (ftfont_list): Likewise.
7345
acf20901
JB
73462009-01-18 Juanma Barranquero <lekktu@gmail.com>
7347
fff4e459
JB
7348 * dbusbind.c (Fdbus_register_signal):
7349 * process.c (conv_sockaddr_to_lisp):
7350 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
7351
acf20901
JB
7352 * callproc.c (Fgetenv_internal): Doc fix.
7353
e7abcdfb
CY
73542009-01-16 Chong Yidong <cyd@stupidchicken.com>
7355
7356 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
7357 it is not even used.
7358
b60861e6
GM
73592009-01-16 Glenn Morris <rgm@gnu.org>
7360
7361 * font.c (Ffont_variation_glyphs): Silence compiler.
7362
8db52afe
JB
73632009-01-15 Juanma Barranquero <lekktu@gmail.com>
7364
7365 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
7366 Reported by David Robinow <drobinow@gmail.com>.
7367
4cddb209
KH
73682009-01-15 Kenichi Handa <handa@m17n.org>
7369
51d861de 7370 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 7371
f247f67b
JR
73722009-01-14 Jason Rumney <jasonr@gnu.org>
7373
7374 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 7375 never a fontset. (Bug#1562)
f247f67b 7376
f56a4450
KH
73772009-01-14 Kenichi Handa <handa@m17n.org>
7378
7379 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 7380 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 7381
4e99855e
CY
73822009-01-13 Chong Yidong <cyd@stupidchicken.com>
7383
7384 * font.c (font_clear_prop): If clearing the family, clear the font
7385 width index too.
7386
fff4e459 7387 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 7388
24f01470
JB
73892009-01-12 Juanma Barranquero <lekktu@gmail.com>
7390
7391 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
7392 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
7393 functions, use sizeof.
7394
a41240a3
MR
73952009-01-12 Martin Rudalics <rudalics@gmx.at>
7396
7397 * keyboard.c (read_char): Fix case where last_nonmenu_event
7398 returned a bad value with submenus. (Bug#447)
7399
944636b8
CY
74002009-01-12 Chong Yidong <cyd@stupidchicken.com>
7401
7402 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
7403 family, clear the font width index too.
7404
0dad7c6f
JR
74052009-01-11 Jason Rumney <jasonr@gnu.org>
7406
7407 * keyboard.c (cmd_error_internal): Exit when errors occur before
7408 frame creation and not in daemon mode. (Bug#1836)
7409
7c2363af
CY
74102009-01-10 Chong Yidong <cyd@stupidchicken.com>
7411
7412 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
7413 of a display vector, backtrack.
7414 (try_window_reusing_current_matrix): Check glyph type before
7415 referencing charpos member.
7416
97b1b294
EZ
74172009-01-10 Eli Zaretskii <eliz@gnu.org>
7418
7419 Fix Bug #876:
7420
7421 * coding.c (inhibit_null_byte_detection): New variable.
7422 (detect_coding, detect_coding_system): Don't pay attention to null
7423 bytes if inhibit_null_byte_detection is non-zero.
51d861de 7424 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
7425 <inhibit-iso-escape-detection>: Doc fix.
7426
4624b6e3
JR
74272009-01-09 Jason Rumney <jasonr@gnu.org>
7428
7429 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 7430 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
7431 Only report Unicode Plane 2 fonts as unicode-sip.
7432
323b840c
CY
74332009-01-09 Chong Yidong <cyd@stupidchicken.com>
7434
51d861de
SM
7435 * xfaces.c (Fx_font_family_list): Delete function.
7436 Move compatibility version to faces.el.
323b840c 7437
51d861de 7438 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 7439
eba7400d
MR
74402009-01-09 Martin Rudalics <rudalics@gmx.at>
7441
7442 * frame.c (x_set_frame_parameters): Remember requested value for
7443 fullscreen before it's reset by the parameter handler.
7444
4b09796d
GM
74452009-01-09 Glenn Morris <rgm@gnu.org>
7446
7447 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 7448 (last_command_event): ... and update all users.
4b09796d
GM
7449 (last_input_char): For clarity, rename to...
7450 (last_input_event): ... and update all users.
7451 (last-command-char, last-input-char): Move to subr.el as aliases.
7452 * cmds.c, commands.h: Update for last_command_char rename.
7453
14ccea62
CY
74542009-01-08 Chong Yidong <cyd@stupidchicken.com>
7455
51d861de 7456 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 7457
5f004711
JR
74582009-01-08 Jason Rumney <jasonr@gnu.org>
7459
7460 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
7461 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
7462 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
7463 Don't declare.
fff4e459 7464 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
7465 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
7466
b71f6f73
KH
74672009-01-07 Kenichi Handa <handa@m17n.org>
7468
50b06221 7469 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 7470 remember the coding system used for decoding in
50b06221
KH
7471 coding_system (Bug#1039).
7472
b71f6f73 7473 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 7474 breaking the loop. (Bug#870)
b71f6f73
KH
7475 (decode_coding_utf_16, decode_coding_emacs_mule)
7476 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7477 (decode_coding_charset): Likewise.
7478
56f668f7
MR
74792009-01-05 Martin Rudalics <rudalics@gmx.at>
7480
7481 * frame.c (x_set_frame_parameters): Make sure height (width) get
7482 applied when fullwidth (fullheight) is set. (Bug#1522)
7483
5da9424d
JB
74842009-01-04 Juanma Barranquero <lekktu@gmail.com>
7485
7486 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
7487 (utc_base): Declare as ULONGLONG, not long double.
7488 (convert_time_raw): Delete.
7489 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
7490 (initialize_utc_base): New function.
7491 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
7492 (convert_from_time_t): Use initialize_utc_base; compute result with
7493 64-bit arithmetic.
7494 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
7495
c4605e09
EZ
74962009-01-03 Eli Zaretskii <eliz@gnu.org>
7497
9acef61c 7498 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
7499 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
7500 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
7501 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
7502 [!subprocesses]: Define.
7503 (syms_of_process) [!subprocesses]: Intern and staticpro them.
7504 (Flist_system_processes, Fsystem_process_attributes)
7505 [!subprocesses]: Call list_system_processes and
7506 system_process_attributes instead of returning Qnil.
7507
9acef61c
JB
7508 * dosfns.c (system_process_attributes, list_system_processes):
7509 New functions.
c4605e09
EZ
7510
7511 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
7512
7513 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
7514 Don't use the default (no-op) implementation.
7515
8b7d0a16
JR
75162009-01-03 Jason Rumney <jasonr@gnu.org>
7517
a6d46bc1
JR
7518 * keyboard.c (parse_modifiers_uncached): Wheel events are
7519 clicks (bug#687).
7520
8b7d0a16
JR
7521 * w32term.c (x_query_colors, x_query_color): New functions.
7522
7523 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
7524 (svg_load_image): Cast returned pointers from dynamically loaded
7525 functions. Eliminate W32 specific code.
7526
bfe11752
DN
75272009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
7528
89e2438a
DN
7529 * nsfns.m (x_set_foreground_color, x_set_background_color)
7530 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
7531 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
7532 x_ prefix instead of ns_. Update references.
7533 (syms_of_nsfns): Add a FIXME comment.
7534
7535 * nsterm.m (x_set_cursor_type): New prototype.
7536 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
7537
bfe11752
DN
7538 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
7539 for Solaris instead of incorrectly providing Qutime and Qcutime.
7540
031da700
EZ
75412009-01-02 Eli Zaretskii <eliz@gnu.org>
7542
7543 * w32.c (process_times): Compute sum of utime and stime.
7544 (system_process_attributes): Add Qtime to the alist.
7545
7546 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
7547 and add them to the alist.
7548
7549 * process.c (top level) <Qtime, Qctime>: New variables.
7550 (syms_of_process): staticpro them.
7551 (Fsystem_process_attributes): Add their documentation to the doc
7552 string.
7553
7554 * process.h: Declare Qtime and Qctime.
7555
df23bf08
JR
75562009-01-02 Jason Rumney <jasonr@gnu.org>
7557
9acef61c 7558 * image.c (Qgobject): New symbol.
df23bf08
JR
7559 (syms_of_image): Initialize it.
7560 (init_svg_functions): Load some functions from gobject library.
7561
5bbdf7aa
DN
75622009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
7563
7564 * frame.c (make_terminal_frame): Remove redundant code and useless
7565 block.
7566
63136da6
AS
75672009-01-01 Andreas Schwab <schwab@suse.de>
7568
7569 * process.c (conv_sockaddr_to_lisp): Add workaround for
7570 getsockname bug on BSD.
7571
9ef69046
CY
75722009-01-01 Chong Yidong <cyd@stupidchicken.com>
7573
d6fafbe0
CY
7574 * xfns.c (x_create_tip_frame): Set border width of the X window.
7575
51d861de 7576 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 7577
f9c34147
JR
75782009-01-01 Jason Rumney <jasonr@gnu.org>
7579
9acef61c 7580 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
7581 Don't block input, as per earlier xterm.c changes.
7582
f5497e45
AR
75832008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
7584
7585 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
7586 (ns_appkit_version_int): New function.
7587 (x-server-version): Use ns_appkit_version_int and follow 21+
7588 convention of returning 3 integers.
7589
c19cab20
KH
75902008-12-30 Kenichi Handa <handa@m17n.org>
7591
7592 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
7593 (CHAR_SURROGATE_PAIR_P): New macro.
7594
7595 * font.h (struct font_driver): New member get_variation_glyphs.
7596
9acef61c 7597 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
7598 (Ffont_variation_glyphs): New function.
7599 (syms_of_font): Defsubr it.
7600
7601 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
7602 ftfont_variation_glyphs.
7603 (setup_otf_gstring): New function.
7604 (ftfont_drive_otf): Use it.
7605 (ftfont_shape_by_flt): Handle variation selector.
7606 (ftfont_variation_glyphs): New function.
7607
28cd591f
MR
76082008-12-30 Martin Rudalics <rudalics@gmx.at>
7609
7610 * frame.c (Vemacs_iconified): Remove.
7611
7f714baf
JR
76122008-12-30 Jason Rumney <jasonr@gnu.org>
7613
7614 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 7615 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 7616
9d2d22ab
CY
76172008-12-30 Chong Yidong <cyd@stupidchicken.com>
7618
7619 * indent.c (Fvertical_motion): Don't advance iterator if we have
7620 reseated to the desired position.
7621
7622 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
7623 checking for pos match.
7624
545312c2
KH
76252008-12-30 Kenichi Handa <handa@m17n.org>
7626
1ede3eb6
KH
7627 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
7628 just get the low 8-bit of the code.
7629
545312c2
KH
7630 * font.c (font_intern_prop): Validate str as multibyte.
7631
bd7bbf29
DN
76322008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
7633
31e0750e
DN
7634 * dispextern.h (struct face): Move lface and hash from the middle
7635 of bitfields.
7636
bd7bbf29
DN
7637 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
7638
b5672e7c
DN
76392008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
7640
7641 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
7642 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
7643 instead of intervals.h.
7644
d704470f
AS
76452008-12-26 Andreas Schwab <schwab@suse.de>
7646
7647 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
7648 cons.
7649
54b33868
MR
76502008-12-26 Martin Rudalics <rudalics@gmx.at>
7651
7652 * textprop.c (Qminibuffer_prompt): New variable.
7653 (syms_of_textprop): Initialize it.
7654 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
7655 in minibuffer-prompt face. (Bug#1662)
7656
40b615d6
JR
76572008-12-25 Jason Rumney <jasonr@gnu.org>
7658
7659 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
7660
baae5c2d
JR
76612008-12-24 Jason Rumney <jasonr@gnu.org>
7662
7663 * ralloc.c (r_alloc_reset_variable): New function.
7664
7665 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 7666 record of what points where. (Bug#716)
baae5c2d 7667
a9051c88
DN
76682008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
7669
7670 * minibuf.c (read_minibuf): Follow the non-interactive case when
7671 running as a daemon, before detaching.
7672
8b146312
AS
76732008-12-22 Andreas Schwab <schwab@suse.de>
7674
7675 * buffer.c (init_buffer): Use realloc instead of xrealloc.
7676 * gtkutil.c (free_widget_value): Use xfree instead of free.
7677
56f2de10
MR
76782008-12-22 Martin Rudalics <rudalics@gmx.at>
7679
7680 * frame.c (delete_frame): New function derived from
7681 Fdelete_frame to handle Qnoelisp value for FORCE argument.
7682 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
7683 (Fdelete_frame): Call delete_frame. Remove line from doc-string
7684 saying that FORCE non-nil doesn't run `delete-frame-functions'.
7685 * frame.h: Extern delete_frame.
7686 * window.c (window_loop):
7687 * terminal.c (delete_terminal):
7688 * xterm.c (x_connection_closed):
7689 * xfns.c (Fx_hide_tip):
9acef61c 7690 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 7691
1fc200d6
JR
76922008-12-21 Jason Rumney <jasonr@gnu.org>
7693
7694 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
7695 when character maps to .notdef character.
7696
5e252df2
SM
76972008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
7698
7699 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
7700
99b72cc4
JR
77012008-12-20 Jason Rumney <jasonr@gnu.org>
7702
7703 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 7704 a graphical frame on Windows. (Bug#1325)
99b72cc4 7705
acc49a52
JD
77062008-12-20 Jan Djärv <jan.h.d@swipnet.se>
7707
7708 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
7709
6ea15123
CY
77102008-12-20 Chong Yidong <cyd@stupidchicken.com>
7711
7712 * minibuf.c (Fread_buffer): Doc fix.
7713
b2dab6c8
JR
77142008-12-20 Jason Rumney <jasonr@gnu.org>
7715
54ea0c87 7716 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 7717 server name in UNC paths. (Bug#719)
54ea0c87 7718
b2dab6c8 7719 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 7720 charbuf. (Bug#1035)
b2dab6c8 7721
6d1921be
DN
77222008-12-19 Daniel Engeler <engeler@gmail.com>
7723
7724 * sysdep.c (serial_configure): Fix typo.
7725
53934c98
DN
77262008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
7727
7728 * sysdep.c: Include alloca.h.
f4f634e8
DN
7729 (system_process_attributes): Add implementation for Solaris.
7730
7731 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 7732
06e111a6
DN
77332008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
7734
7735 Reorganize implementation of Flist_system_processes and
7736 Fsystem_process_attributes. No functional changes.
7737 * process.c: Don't #include pwd.h, grp.h and limits.h.
7738 (Flist_system_processes): Just call list_system_processes.
7739 (Fsystem_process_attributes): Just call system_process_attributes.
7740 (procfs_list_system_processes, time_from_jiffies)
7741 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
7742 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
7743
7744 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
7745 (list_system_processes): Rename from
7746 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
7747 Provide a do nothing implementation.
7748 (system_process_attributes): Rename from
7749 procfs_list_system_processes.
7750 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 7751 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
7752
7753 * w32.c (list_system_processes): Rename from
7754 w32_list_system_processes.
7755 (system_process_attributes): Rename from
7756 w32_system_process_attributes.
7757
7758 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
7759
7760 * process.h (w32_list_system_processes)
7761 (w32_system_process_attributes): Remove.
362654a6
JB
7762 (list_system_processes, system_process_attributes):
7763 New prototypes.
06e111a6 7764
6a705b23
KH
77652008-12-19 Kenichi Handa <handa@m17n.org>
7766
7767 * xfont.c (xfont_decode_coding_xlfd): New function.
7768 (xfont_encode_coding_xlfd): New function.
7769 (xfont_list_pattern): Decode XLFD by iso-8859-1.
7770 (xfont_list): Decode and encode XLFD by iso-8859-1.
7771 (xfont_match): Likewise.
7772 (xfont_list_family): Likewise.
7773 (xfont_open): Likewise.
7774
d66c0241 7775 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
7776 names are utf-8.
7777
d66c0241 7778 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
7779 names are utf-8.
7780
5a130941
JD
77812008-12-18 Jan Djärv <jan.h.d@swipnet.se>
7782
7783 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
7784 changed.
bfd20325
JD
7785 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
7786 clicked on a detached tool bar button.
5a130941 7787
fd95644b
DN
77882008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
7789
7790 * emacs.c (main): Print and error and exit when no data is read
7791 from the pipe.
7792
e6eee6ae
JR
77932008-12-17 Jason Rumney <jasonr@gnu.org>
7794
7795 * w32font.c (w32font_has_char): Always return -1.
7796
a35dd56b
KH
77972008-12-16 Kenichi Handa <handa@m17n.org>
7798
7799 * font.c (font_open_entity): Fix previous change.
7800
0e3635c2
DN
78012008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
7802
7803 * process.c: Include <limits.h>.
7804
d4835507 78052008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
7806
7807 * font.c (font_update_drivers): Fix mistake in reconstructing the
7808 driver list.
7809
78102008-12-16 Chong Yidong <cyd@stupidchicken.com>
7811
7812 * font.c (font_clear_cache): Fix format of font cache data.
7813
e2cbc401
CY
78142008-12-15 Chong Yidong <cyd@stupidchicken.com>
7815
7816 * xftfont.c (xftfont_open): Free Xft font pattern if
7817 XftFontOpenPattern fails.
7818
7819 * xterm.c (x_free_frame_resources): Remove extraneous call to
7820 free_frame_faces.
7821
b131d535
CY
78222008-12-13 Chong Yidong <cyd@stupidchicken.com>
7823
7824 * xterm.c (x_delete_display): Move xim_close_dpy call to
7825 x_delete_terminal.
7826 (x_delete_terminal): Call xim_close_dpy.
7827
e6df5336
JR
78282008-12-13 Jason Rumney <jasonr@gnu.org>
7829
7830 * w32font.c (intern_font_name): New function.
7831 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
7832 (w32font_open_internal, Fx_select_font): Decode font name.
7833 (fill_in_logfont, list_all_matching_fonts): Encode font name.
7834
7835 * w32font.h (intern_font_name): Declare new function.
7836
7837 * w32uniscribe.c (add_opentype_font_name_to_list):
7838 Use intern_font_name.
7839
20d68145
CY
78402008-12-13 Chong Yidong <cyd@stupidchicken.com>
7841
9f2554de
CY
7842 * frame.c (Fdelete_frame): Call free_font_driver_list.
7843
3d9bec9a
CY
7844 * font.c (free_font_driver_list): Implement missing function.
7845
20d68145
CY
7846 * w32term.c (w32_term_init): Don't initialize the image cache
7847 here; it will be done in init_frame_faces.
7848
7849 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
7850 (struct x_display_info): Remove unused member null_pixel. New
7851 member xim_callback_data.
7852
7853 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
7854 (xim_initialize): Save pointer to callback function data.
7855 (xim_close_dpy): Free callback function data. Call XCloseIM,
7856 reverting 2008-11-04 change by David Smith.
7857 (x_term_init): Don't initialize the image cache here; it will be
7858 done in init_frame_faces. Remove ancient "null_pixel" cruft.
7859 (x_delete_display): Free x_dnd_atoms member.
7860
96f9306b
KH
78612008-12-13 Kenichi Handa <handa@m17n.org>
7862
6dec9044
JB
7863 * font.c (font_rescale_ratio): Moved from xfaces.c.
7864 Argument type changed. Handle a font-spec too.
96f9306b 7865 (font_score): Check Vface_font_rescale_alist.
6dec9044 7866 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
7867
7868 * xfaces.c (font_rescale_ratio): Moved to font.c.
7869
8d5b4964
CY
78702008-12-13 Chong Yidong <cyd@stupidchicken.com>
7871
7872 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
7873
e6df5336
JR
78742008-12-12 Jason Rumney <jasonr@gnu.org>
7875
7876 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
7877 Vwindow_system_version to the real w32 major version.
7878
97c6058a
DN
78792008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
7880
7881 * term.c (init_tty): Move setting the terminal name before the
7882 potential user: maybe_fatal.
7883
ec4e88d7
CY
78842008-12-11 Chong Yidong <cyd@stupidchicken.com>
7885
d4835507
JB
7886 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
7887 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 7888
b4233ec9
JR
78892008-12-11 Jason Rumney <jasonr@gnu.org>
7890
8ec71e23 7891 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 7892 SYMBOL_CHARSET. (Bug#547)
8ec71e23 7893
b4233ec9 7894 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 7895 size for surrogates. (Bug#1096, bug#872)
b4233ec9 7896
011a0143
JB
78972008-12-11 Juanma Barranquero <lekktu@gmail.com>
7898
7899 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
7900
3c309f34
JB
79012008-12-11 Juanma Barranquero <lekktu@gmail.com>
7902
7903 * process.c (Fsystem_process_attributes, syms_of_process):
7904 Fix typo in name of Ssystem_process_attributes.
7905 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
7906
fedc6ab5
JB
79072008-12-11 Juanma Barranquero <lekktu@gmail.com>
7908
7909 * syntax.c (Fmodify_syntax_entry): Doc fix.
7910
ba3de0e8
JB
79112008-12-10 Juanma Barranquero <lekktu@gmail.com>
7912
7913 * font.c (Ffont_spec): Move usage to end of docstring.
7914
174f1c74
JR
79152008-12-10 Jason Rumney <jasonr@gnu.org>
7916
7917 * w32font.c (Qcham): New symbol.
7918 (font_supported_scripts): Add cham, and comments for other new
7919 scripts in bitfield from OpenType spec.
9d32f818
JR
7920 (add_font_entity_to_list): Limit unicode-sip fonts to those that
7921 contain characters beyond the bmp.
174f1c74 7922
7b649478
KH
79232008-12-10 Kenichi Handa <handa@m17n.org>
7924
7925 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 7926 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
7927 Qunicode_sip.
7928
2133e2d1
JB
79292008-12-10 Juanma Barranquero <lekktu@gmail.com>
7930
7931 * coding.c (QCdefault_char): Rename from QCdefalut_char.
7932 (Fcoding_system_put): Use QCdefault_char.
7933 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
7934
9af886ee
CY
79352008-12-09 Chong Yidong <cyd@stupidchicken.com>
7936
74d819eb
CY
7937 * xftfont.c (syms_of_xftfont): Fix typo.
7938
4ccfa1c0 7939 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 7940
7c19d3ae
DN
79412008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
7942
7943 * emacs.c (main): Close daemon_pipe on exec.
7944
567826bb
CY
79452008-12-08 Chong Yidong <cyd@stupidchicken.com>
7946
7947 * termchar.h (struct tty): New members termcap_term_buffer and
7948 termcap_strings_buffer.
7949
7950 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 7951 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
7952 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
7953 All callers changed.
7954 (init_tty): Store termcap data and string buffers in new struct
7955 tty members termcap_term_buffer and termcap_strings_buffer.
7956 (delete_tty): Free them.
4ccfa1c0 7957 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 7958
aa96c42b
SZ
79592008-12-07 Seiji Zenitani <zenitani@mac.com>
7960
7961 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 7962 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 7963
b7e1d896
CY
79642008-12-06 Chong Yidong <cyd@stupidchicken.com>
7965
7966 * coding.c (make_conversion_work_buffer): Disable buffer
7967 modification hooks in the work buffer.
7968
b5ec91a5
EZ
79692008-12-05 Eli Zaretskii <eliz@gnu.org>
7970
7971 * process.c (procfs_system_process_attributes): If `nread' has a
7972 negative value, assign zero to it.
7973
a5d2a52b
CY
79742008-12-05 Chong Yidong <cyd@stupidchicken.com>
7975
68c5540b 7976 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 7977
7bf1bb21
KH
79782008-12-05 Kenichi Handa <handa@m17n.org>
7979
7980 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
7981 second character is a combining character.
7982
2fdc7d00
EZ
79832008-12-05 Eli Zaretskii <eliz@gnu.org>
7984
7985 * process.c (procfs_system_process_attributes): Don't use cmd,
7986 cmdsize, and q without initializing them first.
7987
bf6bfba8
JR
79882008-12-04 Jason Rumney <jasonr@gnu.org>
7989
7990 * w32font.c (w32font_draw): Initialize orig_clip before getting
7991 it, and delete it when finished.
7992
a3b1a468
DN
79932008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
7994
7995 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
7996 case when running as a daemon before detaching.
7997
8b8be8eb
JB
79982008-12-03 Juanma Barranquero <lekktu@gmail.com>
7999
805f2638 8000 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 8001
b1bde622
KH
80022008-12-03 Kenichi Handa <handa@m17n.org>
8003
e500c47d
KH
8004 * font.c (font_at): Set `multibyte' at first.
8005
ca516334
KH
8006 * coding.c (decode_coding_charset): Check type of an element of
8007 vector VALIDS.
7bf1bb21 8008 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 8009
4ccfa1c0 8010 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
8011 (font_for_char): Likewise.
8012
1e5ecd37
CY
80132008-12-03 Chong Yidong <cyd@stupidchicken.com>
8014
d5b01609 8015 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
8016 (font_update_lface): Handle fonts with corrupted size specs,
8017 i.e. non-int and non-float.
d5b01609 8018
11e3a6e4 8019 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 8020 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 8021 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 8022
ab06788b
CY
8023 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
8024
1e5ecd37 8025 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 8026 underline_minimum_offset for underline position.
1e5ecd37 8027
63c125ab
DN
80282008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
8029
8030 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
8031
8032 * character.c (c_string_width): Specify the type for LEN.
8033
3a8406e1
KH
80342008-12-03 Kenichi Handa <handa@m17n.org>
8035
4ccfa1c0 8036 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 8037 (decode_coding_utf_8): Likewise.
4ccfa1c0 8038 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 8039 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 8040
651df7d9
CY
80412008-12-02 Chong Yidong <cyd@stupidchicken.com>
8042
8043 * keyboard.c (make_lispy_position): Only use PT if the selected
8044 window is current.
8045
1f625c6c
AS
80462008-12-02 Andreas Schwab <schwab@suse.de>
8047
f7741ce9
AS
8048 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
8049
1f625c6c
AS
8050 * doprnt.c (doprnt1): Fix size of charbuf.
8051
92bc2678
CY
80522008-12-02 Chong Yidong <cyd@stupidchicken.com>
8053
8054 * keyboard.c (timer_check): Revert last change.
8055
93b9e8cc
JB
80562008-12-02 Juanma Barranquero <lekktu@gmail.com>
8057
8058 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
8059
fd7a37d5
JB
80602008-12-01 Juanma Barranquero <lekktu@gmail.com>
8061
8062 * makefile.w32-in: Update dependencies.
8063 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
8064
c115043b
AS
80652008-12-01 Andreas Schwab <schwab@suse.de>
8066
8067 * font.c (register_font_driver): Use xmalloc.
8068 (font_put_frame_data): Likewise.
8069
f5668d2a
CY
80702008-12-01 Chong Yidong <cyd@stupidchicken.com>
8071
860d96be
CY
8072 * xfaces.c (realize_x_face): Make abort condition clearer.
8073
f5668d2a
CY
8074 * gtkutil.c (update_frame_tool_bar): Initialize variable.
8075
379c17e7
CY
80762008-11-30 Chong Yidong <cyd@stupidchicken.com>
8077
8078 * keyboard.c (timer_check): After a timer runs, ensure that the
8079 selected window's buffer is current.
8080
35f36d65
JB
80812008-11-30 Juanma Barranquero <lekktu@gmail.com>
8082
f952c61c
JB
8083 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
8084 It was accidentally restored by the Unicode merge.
8085
35f36d65
JB
8086 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
8087
b23077df
JB
80882008-11-29 Juanma Barranquero <lekktu@gmail.com>
8089
8090 * w32proc.c: Include "coding.h".
8091 (Fw32_short_file_name): Encode filename passed to Windows API.
8092 (Fw32_long_file_name): Encode filename passed to Windows API and
8093 decode back the result. (Bug#1433)
8094
b8ebe9dd
KH
80952008-11-29 Kenichi Handa <handa@m17n.org>
8096
8cc53f96
KH
8097 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
8098 not before accessing it.
8099
b8ebe9dd
KH
8100 * charset.c (Fdefine_charset_internal): After calculating
8101 min_char, max_char, and fastmap, copy the charset structure again.
8102 (encode_char): Fix the previous change.
8103
59bc82c0
SZ
81042008-11-28 Seiji Zenitani <zenitani@mac.com>
8105
8106 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
8107
8108 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
8109
8110 * nsterm.m (x_set_frame_alpha): New function.
8111
32247e3d
EZ
81122008-11-27 Eli Zaretskii <eliz@gnu.org>
8113
8114 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
8115
b003e5ff
JB
81162008-11-27 Juanma Barranquero <lekktu@gmail.com>
8117
8118 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
8119 pointer to check_face_name.
8120
708550f5
KH
81212008-11-27 Kenichi Handa <handa@m17n.org>
8122
8123 * category.h (SET_CATEGORY_SET): Call set_category_set.
8124 (set_category_set): Extern it.
8125
8126 * category.c (hash_get_category_set): New function.
8127 (Fmodify_category_entry): Adjusted for the change of
8128 char_table_ref_and_range. Call hash_get_category_set to get a
8129 category set to store in the table.
8130
8131 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
8132 Funify_charset.
8133
2ae37cf0 8134 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
8135 (DECODE_CHAR): Check if the decoder vector is ready.
8136 (ENCODE_CHAR): Check if the encoder char-table is ready.
8137 (maybe_unify_char): Extern it.
8138
8139 * charset.c (Vchar_unified_charset_table): Delete it.
8140 (inhibit_load_charset_map): New variable.
8141 (temp_charset_work): New variable.
8142 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
8143 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
8144 New macros.
8145 (load_charset_map): Meaning of control_flag changed. If
8146 inhibit_load_charset_map is nonzero, setup a table in
8147 temp_charset_work.
8148 (load_charset): New argument control_flag.
8149 (map_charset_for_dump): New function.
8150 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
8151 map_charset_for_dump.
8152 (Fdefine_charset_internal): If the charset method is MAP, load
8153 mapping tables by calling load_charset.
8154 (Funify_charset): Don't load a mapping table but directly set
8155 Vchar_unify_table.
8156 (maybe_unify_char): New function.
8157 (decode_char): Don't handle the deleted method MAP_DEFERRED.
8158 Handle the case of inhibit_load_charset_map being nonzero.
8159 (encode_char): Don't handle the deleted method MAP_DEFERRED.
8160 Handle the case of inhibit_load_charset_map being nonzero.
8161 (Fclear_charset_maps): Just free temp_charset_work.
8162 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
8163 variable.
8164
8165 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
8166 change of char_table_ref_and_range.
8167 (char_table_ref_and_range): Change the meaning of argument FROM
8168 and TO. Now the caller must provide initial values for *FROM
8169 and *TO.
8170
8171 * fontset.c (fontset_add): Adjusted for the change of
8172 char_table_ref_and_range.
8173 (fontset_get_font_group): Likewise.
8174 (Ffontset_info): Likewise.
8175
8176 * keymap.c (describe_vector): Adjusted for the change of
8177 char_table_ref_and_range. For char-table, put boundary between
8178 non-ASCII and 8-bit characters.
8179
8180 * print.c (print_object): For bool-vector, delete unnecessary
8181 check of ASCII_BYTE_P.
8182
9196133b
JR
81832008-11-26 Jason Rumney <jasonr@gnu.org>
8184
8185 * w32font.c (w32font_open_internal): Don't include external
9acef61c 8186 leading in font height. (Bug#879)
9196133b 8187
9f688acf
GM
81882008-11-26 Glenn Morris <rgm@gnu.org>
8189
8190 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
8191 redefinition with ifdef. (Bug#1383)
8192
90d19aff
AR
81932008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8194
8195 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
8196
4ccfa1c0 81972008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
8198
8199 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
8200 New EmacsView methods.
8201 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
8202 Fixes bug #1048,1357,1414.
8203
82042008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8205
8206 Fix bug #1362.
8207 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
8208 is not an indexed color.
8209 * nsterm.m (free_indexed_color): Add argument checking.
8210 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
8211
e7d5ecb3
CY
82122008-11-24 Chong Yidong <cyd@stupidchicken.com>
8213
8214 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
8215 Document confirm-after-completion value for
8216 minibuffer-completion-confirm.
8217
c285743c
JR
82182008-11-24 Jason Rumney <jasonr@gnu.org>
8219
8220 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
8221 warning.
8222
b0857706
JR
82232008-11-23 Jason Rumney <jasonr@gnu.org>
8224
8225 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
8226 restored before returning.
8227
8228 * w32font.c (check_face_name): New function.
8229 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 8230 fonts. (Bug#642)
b0857706 8231
ee50ff07
MR
82322008-11-22 Martin Rudalics <rudalics@gmx.at>
8233
8234 * buffer.c (Fswitch_to_buffer): Reword and mention new option
8235 confirm-nonexistent-file-or-buffer in doc-string.
8236
b8ff72fa
SM
82372008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
8238
8239 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
8240 Fix copy/paste typo. Add checks.
8241
cee53ed4
KH
82422008-11-21 Kenichi Handa <handa@m17n.org>
8243
8244 * coding.c (detect_coding_iso_2022): Reject invalid composition
8245 sequence.
8246 (DECODE_COMPOSITION_START): If the current source is the last
8247 block, and the current composition doesn't end, regard this
8248 sequence as invalid.
8249 (decode_coding_iso_2022): Handle invalid composition sequence.
8250
f6ef1e65
MR
82512008-11-20 Martin Rudalics <rudalics@gmx.at>
8252
8253 * window.c (coordinates_in_window): Don't return
8254 ON_VERTICAL_BORDER for the rightmost position of a mode/header
8255 line when the window is not the rightmost one. (Bug#1372)
8256
e08b1705
MR
82572008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
8258
8259 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
8260
ad98e89f
EZ
82612008-11-15 Eli Zaretskii <eliz@gnu.org>
8262
8263 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
8264 and bright_bg if noninteractive is non-zero.
8265
fb098a4b
CY
82662008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8267
8268 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
8269 x_draw_glyph_string_background.
8270
8271 * w32term.c (x_draw_glyph_string): Likewise.
8272
ce952b6e
CY
82732008-11-15 Chong Yidong <cyd@stupidchicken.com>
8274
8275 * xterm.c (x_draw_glyph_string): Stop drawing the background of
8276 the next glyph string once past the overhang width.
8277
8278 * nsterm.m (ns_draw_glyph_string): Likewise.
8279
8280 * w32term.c (x_draw_glyph_string): Likewise.
8281
26ea7079
CY
82822008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
8283
8284 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
8285 double file close.
8286
1c33c906
MR
82872008-11-14 Martin Rudalics <rudalics@gmx.at>
8288
8289 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
8290 dedicated status of window before attempting to display another
8291 buffer in it.
8292
8fc29035
JB
82932008-11-14 Juanma Barranquero <lekktu@gmail.com>
8294
8295 * msdos.c (Fmsdos_long_file_names):
8296 (syms_of_msdos) <dos-unsupported-char-glyph>:
8297 * dosfns.c (Fint86): Fix typos in docstrings.
8298
55fb4286
EZ
82992008-11-14 Eli Zaretskii <eliz@gnu.org>
8300
8301 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
8302
3fda0315
KY
83032008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
8304
8305 * puresize.h (BASE_PURESIZE): Increase to 1260000.
8306
7e849c17
CY
83072008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
8308
8309 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
8310
8311 * frame.h: Negative alpha means "don't touch".
8312
8313 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
8314
8315 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
8316
b9fd67bd
DN
83172008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
8318
8319 * hftctl.c:
8320 * chpdef.h:
8321 * acldef.h: Remove files used only for systems no longer supported.
8322
8323 * Makefile.in: Fix .o alphabetical ordering.
8324 (hftctl.o): Remove dependency, file removed.
8325 (keymap.o, print.o): Depend on charset.h.
8326
d5998e03
KH
83272008-11-10 Kenichi Handa <handa@m17n.org>
8328
2ae37cf0 8329 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 8330
be70e183
CY
83312008-11-08 Chong Yidong <cyd@stupidchicken.com>
8332
8333 * dired.c (file_name_completion): If completion_ignore_case is
8334 enabled, ignore case when checking completion-regexp-list.
8335
7cf94eac
EZ
83362008-11-08 Eli Zaretskii <eliz@gnu.org>
8337
8338 * vm-limit.c (get_lim_data): Fix last change.
8339
ee107a89
KH
83402008-11-08 Kenichi Handa <handa@m17n.org>
8341
8342 * character.c (Fget_byte): New function.
8343 (syms_of_character): Defsubr Fget_byte.
8344
5fd15622
CY
83452008-11-07 Chong Yidong <cyd@stupidchicken.com>
8346
8347 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
8348 cursor position is valid after scrolling.
8349
13d62fad
JB
83502008-11-06 Juanma Barranquero <lekktu@gmail.com>
8351
8352 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
8353
a1dd2936
GM
83542008-11-06 Glenn Morris <rgm@gnu.org>
8355
8356 * xterm.c (handle_one_xevent): Don't let popup menus cause
8357 mouse-autoselect-window related window switching. (Bug#1261)
8358
860cd236
CY
83592008-11-04 David Smith <davidsmith@acm.org> (tiny change)
8360
8361 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
8362
653a3150
AS
83632008-11-04 Andreas Schwab <schwab@suse.de>
8364
8365 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
8366
870f5cac
CY
83672008-11-03 Chong Yidong <cyd@stupidchicken.com>
8368
8369 * xfns.c (Fx_wm_set_size_hint): New function.
8370
1e02f3cb
MR
83712008-11-03 Martin Rudalics <rudalics@gmx.at>
8372
8373 * textprop.c (Fprevious_single_char_property_change): Return 0
8374 when there's no change in a string. (Bug#1301)
8375
e630dfc6
MR
83762008-11-02 Martin Rudalics <rudalics@gmx.at>
8377
8378 * frame.c (do_switch_frame): New argument NORECORD passed to
8379 Fselect_window.
8380 (Fselect_frame): New argument NORECORD passed to
8381 do_switch_frame.
8382 (Fset_frame_selected_window): New argument NORECORD passed to
8383 Fselect_frame.
8384 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
8385 in call of do_switch_frame.
8386 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
8387 Handle NORECORD argument in call of Fselect_frame.
8388 * lisp.h (do_switch_frame, Fselect_frame)
8389 (Fset_frame_selected_window): Adjust declarations.
8390 * window.c (select_frame_norecord): New function.
8391 (run_window_configuration_change_hook): Use it and call
8392 Fselect_frame with NORECORD set.
8393 (Fselect_window): Pass NORECORD to Fselect_frame.
8394 (Fset_window_configuration): Handle NORECORD argument in call of
8395 do_switch_frame.
8396 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
8397 Fset_frame_selected_window.
8398 * keyboard.c (command_loop_1): Handle NORECORD in call of
8399 Fselect_frame (currently ifdefd).
8400
9020b223
GM
84012008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
8402
8403 * emacs.c (USAGE2): Untabify.
8404
793ffee8
SM
84052008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
8406
8407 * composite.c (fill_gstring_header): Fix copy/paste typo.
8408
ab6d1131
MR
84092008-10-31 Martin Rudalics <rudalics@gmx.at>
8410
8411 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
8412 (Fother_window): Rename argument and rewrite doc-string.
8413 (select_window_norecord): Fix return value. (Bug#1276)
8414
601a9cf1
JB
84152008-10-30 Juanma Barranquero <lekktu@gmail.com>
8416
8417 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
8418 new frames overriding foreground for tooltips. Based on similar patch
8419 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
8420
813b0652
CY
84212008-10-29 Chong Yidong <cyd@stupidchicken.com>
8422
8423 * emacs.c (Fdaemon_initialized): Initialize nfd.
8424
4414f58f
MR
84252008-10-29 Martin Rudalics <rudalics@gmx.at>
8426
8427 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
8428 (Fwindow_text_height): Clarify doc-strings.
8429 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
8430 doc-string of window-scroll-functions.
8431
ecdcaa09
RS
84322008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
8433
8434 * category.c (syms_of_category): Fix typo in docstring.
8435
23fe745a
JB
84362008-10-28 Juanma Barranquero <lekktu@gmail.com>
8437
8438 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
8439 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
8440 Fix typos in docstrings.
8441
ff808935
DN
84422008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
8443
8444 * emacs.c (daemon_pipe): Make non-static.
8445 (IS_DAEMON): Move definition ...
8446 * lisp.h (IS_DAEMON): ... here.
8447 (daemon_pipe): Declare.
8448 (is_daemon): Remove.
8449 * dispnew.c (init_display): Use IS_DAEMON.
8450
fc012771
SM
84512008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
8452
8453 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
8454 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
8455
8456 * emacs.c (is_daemon): Remove.
8457 (main): Don't set is_daemon.
8458 (IS_DAEMON): New macro.
8459 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 8460 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
8461 parent exits.
8462 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
8463
d8bdbe6f
CY
84642008-10-27 Chong Yidong <cyd@stupidchicken.com>
8465
d1a072bf
CY
8466 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
8467 over-sized glyph, draw it with the default glyph width.
8468
e2e325aa
CY
8469 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
8470 glyph, draw it with the default glyph width.
8471
8472 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
8473 glyph, draw it with the default glyph width.
8474
d8bdbe6f
CY
8475 * xdisp.c (try_scrolling): When computing the distance from the
8476 scroll margin to PT, try moving some distance past the window
8477 bottom before giving up.
8478
7bfac547
MR
84792008-10-27 Martin Rudalics <rudalics@gmx.at>
8480
8481 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
8482 (Fset_window_buffer): Explain in doc-string that a window can be
8483 "strongly" dedicated to its buffer.
8484
4ff029f6
DN
84852008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
8486
8487 * emacs.c (daemon_name): New variable.
8488 (main): Deal with --daemon=SERVER_NAME.
8489 (Fdaemonp): Return a name if one was passed to --daemon.
8490
5790ef40
DN
84912008-10-26 Romain Francoise <romain@orebokech.com>
8492
f9bd0df9 8493 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
8494 (main): Create a pipe before forking, make the parent exit only after
8495 the child has closed its end of the pipe. Move closing the
8496 descriptors ...
8497 (Fdaemon_initialized): ... here. New function.
8498
f5385255
SM
84992008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
8500
4d632321
SM
8501 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
8502 the previous unoptimized table.
8503
f5385255
SM
8504 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
8505 the distinction between non-nil and non-t value of `dedicated'.
8506
6c56a0f3
CY
85072008-10-25 Chong Yidong <cyd@stupidchicken.com>
8508
8509 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 8510 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 8511
fec89261
MR
85122008-10-25 Martin Rudalics <rudalics@gmx.at>
8513
8514 * window.c (Fget_buffer_window, Fdelete_windows_on)
8515 (Freplace_buffer_in_windows): Make buffer argument optional and
8516 rename to buffer_or_name.
8517
34fcddd0
CY
85182008-10-24 Chong Yidong <cyd@stupidchicken.com>
8519
f5385255
SM
8520 * xdisp.c (handle_single_display_spec, handle_display_prop):
8521 Undo 2005-05-16 change.
34fcddd0
CY
8522 (handle_stop): Pop iterator if it's loaded with an empty string.
8523 (get_overlay_strings_1): Don't save iterator if it's loaded with
8524 an empty string (bug#1201).
8525
064766f2
KH
85262008-10-24 Kenichi Handa <handa@m17n.org>
8527
8528 * ftfont.c (ftfont_otf_features): Fix previous change.
8529 (ftfont_otf_capability): Check FeatureList.FeatureCount before
8530 calling ftfont_otf_features.
8531
f9bd0df9 85322008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
8533
8534 * font.c (font_match_p): Fix for the case that a vector of
8535 characters is in script-representative-chars.
8536
1dae9197
MA
85372008-10-24 Michael Albinus <michael.albinus@gmx.de>
8538
8539 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 8540 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
8541 (xd_read_queued_messages): Catch Qdbus_error from the macros.
8542 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 8543 macro. (Bug#1186)
1dae9197 8544
f9bd0df9 85452008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
8546
8547 * s/sol2-10.h: New file.
8548
878a4584
JB
85492008-10-23 Juanma Barranquero <lekktu@gmail.com>
8550
8551 * xdisp.c (fill_glyph_string): Fix typo in source (though the
8552 poor beast has survived 9+ years and the jump from xterm.c!).
8553
cd265ca6
MR
85542008-10-23 Martin Rudalics <rudalics@gmx.at>
8555
8556 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
8557 Reword doc-string.
f5385255 8558 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 8559
472a4dc9
JB
85602008-10-23 Juanma Barranquero <lekktu@gmail.com>
8561
8562 * character.c (syms_of_character) <script-representative-chars>:
8563 <unicode-category-table>: Doc fixes.
8564
159bd5a2
NF
85652008-10-23 Noah Friedman <friedman@splode.com>
8566
8567 * coding.c (make_conversion_work_buffer): Check that
8568 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
8569 Fget_buffer_create.
8570
49f9c344
KH
85712008-10-23 Kenichi Handa <handa@m17n.org>
8572
8573 * font.c (font_add_log): Check the values of extra properties.
8574
12bb3111
MR
85752008-10-22 Martin Rudalics <rudalics@gmx.at>
8576
8577 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
8578 Reword doc-string.
8579 (Fset_window_parameter): Use NILP.
8580 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 8581 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 8582
bbeb4e99
JB
85832008-10-22 Juanma Barranquero <lekktu@gmail.com>
8584
8585 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
8586
85872008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
8588
8589 * nsfns.m (ns_appkit_version): New function.
8590 (x-server-version): Use it.
8591 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
8592 (x-server-vendor): Don't check_ns().
8593
8594 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
8595
a9b555d3
JB
85962008-10-22 Juanma Barranquero <lekktu@gmail.com>
8597
8598 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
8599 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
8600
4626499f
KH
86012008-10-22 Kenichi Handa <handa@m17n.org>
8602
e3681952
KH
8603 * syntax.c (scan_words): Call word_boundary_p instead of comparing
8604 scripts.
8605
4626499f
KH
8606 * category.c (word_boundary_p): Check scripts instead of charset.
8607 Handle nil value in word-separating-categories and
8608 word-combining-categories.
8609 (syms_of_category): Fix docstrings of word-separating-categories
8610 and word-combining-categories.
8611
1560f91a
EZ
86122008-10-21 Eli Zaretskii <eliz@gnu.org>
8613
8614 * coding.c (Fencode_coding_region, Fdecode_coding_region)
8615 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
8616
f4668441
MR
86172008-10-21 Martin Rudalics <rudalics@gmx.at>
8618
8619 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
8620 Rename arg "buffer" to "buffer_or_name".
8621 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
8622 it optional.
8623 (no_switch_window): Remove since the return value is not used.
a9b555d3 8624 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
8625 Consider window as dedicated when Fwindow_dedicated_p returns a
8626 non-nil value.
8627 * lisp.h: Remove prototype for no_switch_window.
8628
fd75ddb2
JD
86292008-10-21 Jan Djärv <jan.h.d@swipnet.se>
8630
8631 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 8632 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 8633
07295713
KH
86342008-10-21 Kenichi Handa <handa@m17n.org>
8635
8636 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
8637 check Vlatin_extra_code_table.
8638
712adc82
EZ
86392008-10-20 Eli Zaretskii <eliz@gnu.org>
8640
8641 * fileio.c (Fset_file_modes): Doc fix.
8642
f549eb0b
MA
86432008-10-19 Michael Albinus <michael.albinus@gmx.de>
8644
8645 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
8646 in arrays.
8647
aac0c6e3
MR
86482008-10-19 Martin Rudalics <rudalics@gmx.at>
8649
8650 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
8651 Mention kill-buffer in doc-string.
8652 (Fset_window_buffer): Reinsert tem check removed in last commit.
8653 (Fenlarge_window, Fshrink_window): Have argument names and
8654 doc-string follow Elisp manual more closely.
8655
86562008-10-18 Eli Zaretskii <eliz@gnu.org>
8657
8658 * fileio.c (Fset_file_modes): Doc fix.
8659
86602008-10-18 Martin Rudalics <rudalics@gmx.at>
8661
8662 * window.c (Fwindow_width, Fset_window_start)
8663 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
8664 (Fdelete_windows_on, Freplace_buffer_in_windows):
8665 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
8666 (Fwindow_dedicated_p): Make window argument optional.
8667 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
8668 (Fset_window_buffer): Respect any non-nil dedicated value for
8669 window. Rename "buffer" argument to "buffer_or_name".
8670
86712008-10-18 Ulrich Mueller <ulm@gentoo.org>
8672
8673 * m/sh3.h: New file, machine description for SuperH.
8674
86752008-10-17 Martin Rudalics <rudalics@gmx.at>
8676
8677 * window.c (Fsplit_window): Rename arg horflag to horizontal.
8678
86792008-10-17 Kenichi Handa <handa@m17n.org>
8680
8681 * ftfont.c (ftfont_otf_features): Fix indexing
8682 gsub_gpos->FeatureList.Feature. Check the validity of indices.
8683
86842008-10-16 Magnus Henoch <mange@freemail.hu>
8685
8686 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
8687 (Fdbus_call_method_asynchronously): Ditto.
8688 This change makes C-h f display the argument list.
8689
86902008-10-16 Chong Yidong <cyd@stupidchicken.com>
8691
8692 * fileio.c (Fexpand_file_name): Doc fix.
8693
8694 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
8695 of :foreground and :background equivalent to unspecified (20.x
8696 compatibility).
8697
86982008-10-15 Eli Zaretskii <eliz@gnu.org>
8699
8700 * buffer.c (syms_of_buffer): Doc fix.
8701
87022008-10-14 Kenichi Handa <handa@m17n.org>
8703
8704 * font.c (font_clear_prop): When clearing font width, clear the
8705 average width field too.
8706
87072008-10-12 Andreas Schwab <schwab@suse.de>
8708
8709 * ftfont.c (ftfont_shape_by_flt): Make static.
8710 * ftfont.h (ftfont_shape_by_flt): Don't declare.
8711
8712 * font.c: Don't include <m17n-flt.h>.
8713
87142008-10-10 Eli Zaretskii <eliz@gnu.org>
8715
8716 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
8717
87182008-10-09 Eli Zaretskii <eliz@gnu.org>
8719
8720 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
8721 away code.
8722
87232008-10-09 Chong Yidong <cyd@stupidchicken.com>
8724
8725 * dispnew.c (update_text_area): Avoid looping due to large glyph
8726 overhangs (bug#1070).
8727
87282008-10-09 Kenichi Handa <handa@m17n.org>
8729
8730 * fontset.c (face_for_char): If face->fontset is negative, just
8731 return ascii_face.
8732
f5385255
SM
8733 * font.c (font_delete_unmatched): Fix previous change.
8734 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
8735
87362008-10-09 Martin Rudalics <rudalics@gmx.at>
8737
8738 * frame.c (Fraise_frame): On text-only terminals select frame in
8739 order to make it visible. (Bug#1061)
8740
87412008-10-08 Chong Yidong <cyd@stupidchicken.com>
8742
8743 * fontset.c (fontset_find_font): Check frame validity.
8744
87452008-10-07 Chong Yidong <cyd@stupidchicken.com>
8746
a9b555d3 8747 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
8748 (xg_display_close): Allow Emacs to close all displays (bug#985).
8749
87502008-10-06 Andreas Schwab <schwab@suse.de>
8751
f5385255 8752 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
8753
87542008-10-06 Chong Yidong <cyd@stupidchicken.com>
8755
f5385255 8756 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 8757
a9b555d3 8758 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
8759
8760 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
8761 during initialization.
8762
87632008-10-04 Eli Zaretskii <eliz@gnu.org>
8764
8765 * xdisp.c (redisplay_internal): If frame switched, redisplay the
8766 whole thing on MSDOS frames as well as on a TTY.
8767
8768 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
8769 well as for TTY.
8770 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
8771 well as on a TTY.
8772
8773 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
8774 as well as for TTY.
8775
8776 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
8777
8778 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
8779 MSDOS frames as well.
8780
87812008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8782
8783 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
8784 correct arguments.
b71ac3dd 8785 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
8786
87872008-10-03 Glenn Morris <rgm@gnu.org>
8788
8789 * emacs.c (USAGE1): Add --daemon.
8790
87912008-10-02 Eli Zaretskii <eliz@gnu.org>
8792
8793 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
8794 100, so it's in percents as advertised.
8795
87962008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8797
8798 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
8799 (ns_output.current_cursor, ns_output.desired_cursor)
8800 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
8801 (FRAME_NEW_CURSOR_COLOR): Remove.
8802
8803 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 8804 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
8805 enumeration (HOLLOW_BOX_CURSOR, etc.).
8806
8807 * nsterm.m (ns_frame_rehighlight): Remove commented code.
8808 (draw_window_cursor): Simplify code.
f5385255
SM
8809 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
8810 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 8811 updates manually.
a9b555d3
JB
8812 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
8813 Use core Emacs cursor types.
aac0c6e3 8814
b8ff72fa 8815 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
8816
88172008-10-02 Martin Rudalics <rudalics@gmx.at>
8818
8819 * process.c (Faccept_process_output): Fix doc-string.
8820
88212008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
8822
8823 * gmalloc.c (__sbrk): Also define for uClibc.
8824
8825 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
8826 for uClibc.
8827
88282008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8829
8830 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
8831 styles.
8832 (nsfont_open): Reenable the cache.
8833
88342008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8835
8836 * font.c (font_matching_entity): Reflect ATTRS in font selection.
8837 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
8838
88392008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
8840
8841 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
8842 a suspended terminal.
8843
88442008-09-30 Michael Albinus <michael.albinus@gmx.de>
8845
8846 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
8847
88482008-09-30 Eli Zaretskii <eliz@gnu.org>
8849
8850 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
8851
88522008-09-30 Chong Yidong <cyd@stupidchicken.com>
8853
8854 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
8855 in a continued line coincides with a line beginning.
8856
88572008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8858
8859 * nsfont.m (nsfont_trait_distance): Fix bug.
8860 (nsfont_list): Return a list rather than a vector (syncs with Handa
8861 changes of 2008-05-14).
8862 (nsfont_open): Improve logging.
8863
88642008-09-29 Andreas Schwab <schwab@suse.de>
8865
8866 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
8867
88682008-09-28 Martin Rudalics <rudalics@gmx.at>
8869
8870 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
8871 name as char-resolve-modifiers.
8872 Reported by: Markus Triska <markus.triska@gmx.at>
8873
88742008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
8875
8876 * dispnew.c (init_display): Return earlier when running as a daemon.
8877
88782008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8879
8880 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
8881
88822008-09-27 Eli Zaretskii <eliz@gnu.org>
8883
8884 * composite.c (Fcomposition_get_gstring)
8885 (Fcompose_region_internal, Fcompose_string_internal)
8886 (Ffind_composition_internal): Doc fix.
8887 (syms_of_composite) <compose-chars-after-function>: Doc fix.
8888 (syms_of_composite) <auto-composition-function>: Doc fix.
8889 (syms_of_composite) <composition-function-table>: Doc fix.
8890
88912008-09-25 Chong Yidong <cyd@stupidchicken.com>
8892
8893 * search.c (wordify): New argument for lax word-ends.
8894 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
8895
88962008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
8897
8898 * lisp.h (is_daemon): Declare.
8899 * dispnew.c (init_display): Do not try to initialize the terminal
8900 when running as a daemon.
8901
89022008-09-22 Chong Yidong <cyd@stupidchicken.com>
8903
8904 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
8905 x_display_pixel_height.
8906
89072008-09-22 Martin Rudalics <rudalics@gmx.at>
8908
8909 * undo.c (record_point): Don't call Fundo_boundary for first
8910 change. (Bug#731)
8911
89122008-09-22 Juanma Barranquero <lekktu@gmail.com>
8913
8914 * emacs.c (Fdaemonp): Doc fix.
8915
89162008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
8917
8918 * emacs.c (main): Place #ifdef in the proper place.
8919
89202008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
8921
8922 * emacs.c (standard_args): Add --daemon.
8923 (main): Disconnect from the terminal when --daemon is passed.
8924 (is_daemon): New variable.
8925 (Fdaemonp): New function.
8926 (syms_of_emacs): Defsubr it.
8927
89282008-09-20 Chong Yidong <cyd@stupidchicken.com>
8929
8930 * xdisp.c (get_next_display_element): Handle string display
8931 correctly when checking for the end of a box run.
8932
89332008-09-20 Glenn Morris <rgm@gnu.org>
8934
8935 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
8936 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
8937 (Frename_file): Avoid copying to trash if a rename involves
8938 a delete. (Bug#964).
8939
89402008-09-20 Eli Zaretskii <eliz@gnu.org>
8941
8942 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
8943 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
8944 frames as well as termcap frames.
8945 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
8946 get_named_tty.
8947
89482008-09-19 Eli Zaretskii <eliz@gnu.org>
8949
8950 * process.c (procfs_system_process_attributes): Fix cmdline in
8951 case /proc/PID/cmdline is empty.
8952
8953 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
8954 x_display_pixel_height.
8955
89562008-09-19 Juanma Barranquero <lekktu@gmail.com>
8957
8958 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
8959
8960 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
8961 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
8962
89632008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
8964
8965 * dispextern.h (struct it): Move line_wrap away from the middle of
8966 bitfields. Move voffset in struct iterator_stack_entry after the
8967 bitfields. Move tab_width near after another short.
8968
89692008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
8970
8971 * frame.h (struct frame): Move alpha from the middle of bitfields.
8972
8973 * window.h (struct window): Move frozen_window_start_p after the
8974 rest of the bitfields to reduce padding.
8975
89762008-09-18 Chong Yidong <cyd@stupidchicken.com>
8977
8978 * xterm.h (x_display_info): Remove `height' and `width' members.
8979
8980 * nsterm.h (ns_display_info): Remove `height' and `width' members.
8981
8982 * w32term.h (w32_display_info): Remove `height', `width',
8983 `height_in', and `width_in' members.
8984
b8ff72fa
SM
8985 * xterm.c (x_display_pixel_height, x_display_pixel_width):
8986 New functions.
aac0c6e3
MR
8987 (x_calc_absolute_position): Use them.
8988 (x_term_init): Omit removed `height' and `width' members.
8989
b8ff72fa
SM
8990 * w32term.c (x_display_pixel_height, x_display_pixel_width):
8991 New functions.
aac0c6e3
MR
8992 (w32_read_socket, x_calc_absolute_position): Use them.
8993 (w32_initialize_display_info, w32_term_init): Omit removed members
8994 of w32_display_info.
8995
b8ff72fa
SM
8996 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
8997 New functions.
8998 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 8999
b8ff72fa
SM
9000 * xterm.c (x_display_pixel_height, x_display_pixel_width):
9001 New functions.
aac0c6e3
MR
9002 (x_calc_absolute_position): Use them.
9003 (x_term_init): Omit removed `height' and `width' members.
9004
9005 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
9006 (compute_tip_xy):
9007 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
9008 * xmenu.c (menu_position_func): Use x_display_pixel_height and
9009 x_display_pixel_width.
9010
90112008-09-18 Kenichi Handa <handa@m17n.org>
9012
9013 * composite.c (fill_gstring_header): Don't check FROM and TO here.
9014 (composition_compute_stop_pos): Fix handling of static composition.
9015 (Fcomposition_get_gstring): Check FROM and TO at first.
9016
90172008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
9018
46e722a9 9019 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
9020 mixup (YAILOM).
9021
90222008-09-17 Chong Yidong <cyd@stupidchicken.com>
9023
9024 * indent.c (Fvertical_motion): Use position reported by iterator
9025 instead of PT for determining screen motion (bug#943).
9026
90272008-09-17 Romain Francoise <romain@orebokech.com>
9028
9029 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
9030
90312008-09-17 Kenichi Handa <handa@m17n.org>
9032
9033 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
9034
9035 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
9036 if necessary.
9037
90382008-09-16 Kenichi Handa <handa@m17n.org>
9039
9040 * coding.c (make_conversion_work_buffer): Avoid calling
9041 Fget_buffer_create if it is not necessary.
9042
90432008-09-15 Martin Rudalics <rudalics@gmx.at>
9044
9045 * window.c (Fselect_window): Don't update window_select_count and
9046 use_time when norecord is not nil.
9047
90482008-09-14 Kenichi Handa <handa@m17n.org>
9049
9050 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
9051 specpdl_ptr.
9052
90532008-09-12 Kenichi Handa <handa@m17n.org>
9054
9055 * indent.c (scan_for_column): Don't handle automatic composition
9056 if the current buffer is not associated with a window.
9057
9058 * composite.c (composition_reseat_it): If the current buffer is
9059 not associated with a window, ignore the automatic composition.
9060 (find_automatic_composition): Likewise.
9061
90622008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
9063
9064 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
9065 (Fgpm_mouse_stop): Use it.
9066 * termhooks.h (close_gpm): Declare.
9067 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
9068 connection if Gpm_GetEvent fails.
9069
9070 * window.c (set_window_buffer): Always preserve current-buffer.
9071
90722008-09-12 Glenn Morris <rgm@gnu.org>
9073
9074 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
9075
90762008-09-11 Glenn Morris <rgm@gnu.org>
9077
9078 * charset.c (charset-map-path): Doc fix.
9079
90802008-09-10 Kenichi Handa <handa@m17n.org>
9081
9082 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
9083
9084 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
9085 compose a grapheme cluster with the preceding base glyph.
9086
9087 * composite.c (composition_compute_stop_pos): Fix previous change.
9088 Reset cmp_it->id to -1 at first.
9089
90902008-09-10 Glenn Morris <rgm@gnu.org>
9091
9092 * Makefile.in (character.o, chartab.o): Fix config.h typo.
9093
90942008-09-09 Chong Yidong <cyd@stupidchicken.com>
9095
9096 * keyboard.c (read_key_sequence): Reapply translation maps when
9097 switching keyboards.
9098
90992008-09-09 Kenichi Handa <handa@m17n.org>
9100
9101 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
9102 characters.
9103
9104 * composite.c (FORWARD_CHAR): Fix calculation
9105 of (POSITION).pos_byte.
9106 (composition_compute_stop_pos): Limit the search of composition to
9107 at most 500 characters ahead. If we reach the limit or find a
9108 newline, set cmp_it->ch to -2 and return 0.
9109 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
9110
91112008-09-08 Kenichi Handa <handa@m17n.org>
9112
9113 * indent.c (Fvertical_motion): Be sure to set
9114 it_overshoot_expected if it.cmp_it.id is non-negative.
9115
91162008-09-07 Andreas Schwab <schwab@suse.de>
9117
9118 * callproc.c (Fcall_process): Don't hold references to string data
9119 across garbage collection. Move initialisation of new_argv down
9120 to avoid compiler bug.
9121
91222008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
9123
9124 * process.c (Fsystem_process_attributes): Doc fix.
9125
91262008-09-07 Chong Yidong <cyd@stupidchicken.com>
9127
9128 * callproc.c (Fcall_process): Canonicalize current directory name.
9129
9130 * xdisp.c (move_it_to): When moving by vpos, ensure that the
9131 iterator advances to the next line if the current line ends in a
9132 continued tab.
9133
91342008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
9135
9136 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
9137 member to point to cmp_from.
9138
9139 * xdisp.c: Doc fix for references to gidx data member.
9140
91412008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
9142
9143 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
9144
91452008-09-07 Kenichi Handa <handa@m17n.org>
9146
9147 * composite.c (FORWARD_CHAR): Check STOP after
9148 incrementing (POSITION).pos.
9149
91502008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
9151
9152 * process.c (Fsystem_process_attributes): Doc fix.
9153
91542008-09-06 Chong Yidong <cyd@stupidchicken.com>
9155
9156 * keyboard.c (Ftop_level): Doc fix.
9157
91582008-09-06 Eli Zaretskii <eliz@gnu.org>
9159
9160 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
9161 minibuffer, don't let lower part of menu invade the echo area.
9162
9163 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
9164 "char *q" to access menu text and advance through it. Revert the
9165 change that displayed ">" instead of ASCII character 0x10.
9166
91672008-09-05 Eli Zaretskii <eliz@gnu.org>
9168
9169 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
9170 toggle boxes and radio buttons on MS-DOS as well.
9171
91722008-09-05 Kenichi Handa <handa@m17n.org>
9173
9174 * composite.c (autocmp_chars): Check lookback count.
9175 (composition_compute_stop_pos): Set cmp_it->lookback.
9176 (composition_reseat_it): Check lookback count.
9177 (struct position_record): New struct.
9178 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
9179 (find_automatic_composition): New function.
9180 (composition_adjust_point): Use find_automatic_composition.
9181
9182 * dispextern.h (struct composition_it): New member lookback.
9183
91842008-09-02 Chong Yidong <cyd@stupidchicken.com>
9185
9186 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
9187 if moving by a single line.
9188
91892008-09-02 Andreas Schwab <schwab@suse.de>
9190
9191 * xterm.c (x_delete_display): Fix merge error.
9192
9193 * fileio.c (Fexpand_file_name): Remove unused variables.
9194
91952008-09-02 Eli Zaretskii <eliz@gnu.org>
9196
9197 * fileio.c (Fexpand_file_name): Copy argument `name' into local
9198 storage on all platforms, not just on DOS_NT.
9199
92002008-09-02 Jason Rumney <jasonr@gnu.org>
9201
b8ff72fa
SM
9202 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
9203 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
9204
92052008-09-01 Chong Yidong <cyd@stupidchicken.com>
9206
9207 * xfaces.c (Finternal_set_alternative_font_family_alist)
9208 (Finternal_set_alternative_font_registry_alist): Properly copy
9209 entire alist structure.
9210
92112008-09-01 Kenichi Handa <handa@m17n.org>
9212
d66c0241 9213 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 9214 representative chars of the script is a vector.
d66c0241
JB
9215 (ftfont_list): Handle the case where the representative chars of
9216 the script is a vector.
aac0c6e3
MR
9217
9218 * character.c (syms_of_character): Docstring of
9219 script-representative-chars fixed.
9220
92212008-08-31 Eli Zaretskii <eliz@gnu.org>
9222
9223 * msdos.c (BUILD_CHAR_GLYPH): New macro.
9224 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
9225 the menu. Allocate larger buffer for `text', to account for
9226 possible ^C characters.
9227
92282008-08-31 Martin Rudalics <rudalics@gmx.at>
9229
9230 * xdisp.c (prepare_menu_bars): Don't call
9231 Vwindow_size_change_functions with arg Qt.
9232
92332008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
9234
9235 * font.h (font_range):
9236 * fileio.c (report_file_error):
46e722a9
SM
9237 * composite.c (composition_update_it): Yet another int/Lisp_Object
9238 mixup (YAILOM).
aac0c6e3
MR
9239
92402008-08-30 Glenn Morris <rgm@gnu.org>
9241
9242 * data.c (Fmake_variable_frame_local): Doc fix.
9243
9244 * frame.c (Fmodify_frame_parameters): Doc fix.
9245
92462008-08-30 Eli Zaretskii <eliz@gnu.org>
9247
9248 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
9249 needed by GetTokenInformation.
9250 (w32_system_process_attributes): Check return values of all system
9251 APIs.
9252
9253 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
9254 only when the state changes.
9255 (IT_update_begin, IT_update_end): Add termscript trace.
9256
9257 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
9258 clipboard is unavailable. Set dst to NULL if it doesn't point to
9259 malloc'ed data.
9260 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
9261 passing random values to xfree.
9262
9263 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 9264 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
9265
92662008-08-29 Jason Rumney <jasonr@gnu.org>
9267
9268 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
9269
92702008-08-29 Eli Zaretskii <eliz@gnu.org>
9271
9272 * composite.c (fill_gstring_body): Avoid compiler warnings.
9273
9274 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
9275 LGLYPH_SET_CODE to avoid compiler warnings.
9276
2ae37cf0 9277 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
9278
9279 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
9280
9281 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
9282 LGLYPH_SET_CODE.
9283
92842008-08-29 Kenichi Handa <handa@m17n.org>
9285
9286 * fileio.c (report_file_error): Don't downcase the first character
9287 of errstring if it is still unibyte.
9288
92892008-08-29 Kenichi Handa <handa@m17n.org>
9290
9291 These changes are to re-implement the automatic composition so
9292 that it doesn't use text properties.
9293
9294 * Makefile.in (ftfont.o): Depend on composite.h.
9295 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
9296
9297 * character.h (Vunicode_category_table): Extern it.
9298
9299 * character.c (Vunicode_category_table): New variable.
9300 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
9301
9302 * chartab.c (optimize_sub_char_table): Perform more greedy
9303 optimization.
9304
b8ff72fa
SM
9305 * composite.h (enum composition_method):
9306 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
9307 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
9308 (Vcomposition_function_table): Extern it.
9309 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
9310 (composition_gstring_put_cache, composition_gstring_from_id)
9311 (composition_gstring_p, composition_gstring_width)
9312 (composition_compute_stop_pos, composition_reseat_it)
9313 (composition_update_it, composition_adjust_point): Extern them.
9314 (Fcomposition_get_gstring): EXFUN it.
9315
d66c0241 9316 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
9317 (Vcomposition_function_table)
9318 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
9319 (gstring_hash_table, gstring_work, gstring_work_headers):
9320 New variables.
aac0c6e3
MR
9321 (gstring_lookup_cache, composition_gstring_put_cache)
9322 (composition_gstring_from_id, composition_gstring_p)
9323 (composition_gstring_width, fill_gstring_header)
9324 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
9325 (composition_reseat_it, composition_update_it)
b8ff72fa 9326 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
9327 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
9328 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 9329 Defsubr composition_get_gstring.
aac0c6e3
MR
9330
9331 * dispextern.h (struct glyph): New union u.cmp. Delete the member
9332 cmp_id.
9333 (struct glyph_string): Delete the member gidx. New members
9334 cmp_id, cmp_from, and cmp_to.
9335 (enum it_method): Delete GET_FROM_COMPOSITION.
9336 (struct composition_it): New struct.
9337 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
9338 Delete c, len, cmp_id, cmp_len in u.comp.
9339
9340 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 9341 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 9342 (enum lglyph_indices): Likewise.
b8ff72fa 9343 (font_range): Adjust extern.
aac0c6e3
MR
9344 (font_fill_lglyph_metrics): Extern it.
9345
9346 * font.c (QCf): New variable.
9347 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
9348 (font_prepare_composition): Delete this function.
9349 (font_range): Type and arguments changed.
9350 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
9351 (font_fill_lglyph_metrics): New function.
b8ff72fa 9352 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 9353 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
9354 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
9355 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
9356
9357 * fontset.h (font_for_char): Extern it.
9358
9359 * fontset.c (font_for_char): New function.
9360
9361 * ftfont.c: Include composite.h.
9362 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 9363 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
9364
9365 * indent.c: Include composite.h and dispextern.h.
9366 (check_composition): Delete this function.
9367 (scan_for_column): Handle composition by
9368 composition_compute_stop_pos, composition_reseat_it, and
9369 composition_update_it.
9370 (compute_motion): Likewise.
9371 (Fvertical_motion): Fix checking of composition.
9372
9373 * keyboard.c (adjust_point_for_property): Check composition by
9374 composition_adjust_point.
9375
b8ff72fa 9376 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
9377 struct glyph_string.
9378
b8ff72fa
SM
9379 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
9380 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
9381 struct glyph.
9382 (produce_composite_glyph): Likewise.
9383
b8ff72fa
SM
9384 * w32term.c (x_draw_composite_glyph_string_foreground):
9385 Adjust for the change of struct glyph_string.
aac0c6e3
MR
9386 (x_draw_glyph_string): Likewise.
9387
9388 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
9389 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
9390
9391 * xdisp.c: Include font.h.
9392 (it_props): Delete the entry for Qauto_composed.
9393 (init_iterator): Initialize it->cmp_it.id to -1.
9394 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 9395 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
9396 (handle_auto_composed_prop): Delete it.
9397 (handle_composition_prop): Handle only static composition.
9398 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
9399 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 9400 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
9401 (pop_it): Likewise.
9402 (get_next_element): Delete next_element_from_composition.
9403 (CHAR_COMPOSED_P): New macro.
9404 (get_next_display_element): For automatic composition, get a face
9405 from the font in the glyph-string.
9406 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 9407 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
9408 (next_element_from_string): Check if the character at the current
9409 position is composed by CHAR_COMPOSED_P.
9410 (next_element_from_buffer): Likewise.
d66c0241
JB
9411 (next_element_from_composition): Adjust for the change of struct it.
9412 Update it->cmp_it.
b8ff72fa
SM
9413 (dump_glyph): Adjust for the change of struct glyph.
9414 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
9415 it and struct glyph. Don't handle automatic composition here.
9416 (fill_gstring_glyph_string): New function.
9417 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 9418 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
9419 (BUILD_GSTRING_GLYPH_STRING): New macro.
9420 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
9421 automatic composition.
b8ff72fa 9422 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 9423 struct glyph.
b8ff72fa 9424 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 9425
b8ff72fa 9426 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
9427 the change of struct glyph_string.
9428 (x_draw_glyph_string): Likewise.
9429
94302008-08-29 Glenn Morris <rgm@gnu.org>
9431
9432 * buffer.c (word-wrap): Doc fix.
9433 * xdisp.c (truncate-partial-width-windows): Doc fix.
9434 Increase default to 50.
9435
94362008-08-29 Chong Yidong <cyd@stupidchicken.com>
9437
9438 * xdisp.c (update_tool_bar_unwind): New function.
9439 (update_tool_bar): Temporarily set selected frame before building
9440 tool-bar items.
9441
94422008-08-28 Michael Albinus <michael.albinus@gmx.de>
9443
9444 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
9445 snprintf, respectively.
9446 (xd_append_arg): Convert strings with Fstring_make_unibyte.
9447
94482008-08-28 Chong Yidong <cyd@stupidchicken.com>
9449
9450 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
9451 LDFLAGS to GNUstep CC invocation.
9452
94532008-08-27 Chong Yidong <cyd@stupidchicken.com>
9454
9455 * indent.c (Fvertical_motion): Revert last change. Handle the
9456 general case where we are moving forward, and PT spans multiple
9457 screen lines.
9458
9459 * eval.c (find_handler_clause): Temporarily increase
9460 max-lisp-eval-depth while printing the backtrace buffer, to
9461 guarantee that help-mode code can run.
9462
94632008-08-27 Eli Zaretskii <eliz@gnu.org>
9464
9465 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
9466 colors under -rv.
9467 (IT_set_frame_parameters): Don't swap foreground and background
9468 colors if `(reverse . t)' is present in the frame properties.
9469 (internal_terminal_init): Call init_frame_faces only for the
9470 initial frame.
9471
94722008-08-27 Andreas Schwab <schwab@suse.de>
9473
9474 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
9475
94762008-08-27 Andreas Schwab <schwab@suse.de>
9477
9478 * search.c (search_buffer): Set char_base to zero only at the end.
9479
94802008-08-27 Kenichi Handa <handa@m17n.org>
9481
b8ff72fa 9482 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
9483
94842008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
9485
9486 * xterm.c (x_term_init): Temporarily hide the partially
9487 initialized terminal while calling vendor-specific-keysyms.
9488
94892008-08-26 Eli Zaretskii <eliz@gnu.org>
9490
9491 * msdos.c (internal_terminal_init): Most initializations done only
9492 once, especially initial_screen_colors[] and termscript open.
9493
94942008-08-26 Chong Yidong <cyd@stupidchicken.com>
9495
9496 * eval.c (Fcondition_case): Doc fix.
9497
9498 * widgetprv.h (EmacsFramePart): Change font member to the new font
9499 struct.
9500
9501 * widget.c: Include character.h and font.h for XSETFONT.
9502 (setup_frame_gcs): Compute X font id from font struct, just once.
9503
95042008-08-26 Eli Zaretskii <eliz@gnu.org>
9505
9506 * term.c (get_named_tty): Fix last change.
9507
95082008-08-26 Chong Yidong <cyd@stupidchicken.com>
9509
9510 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 9511 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
9512
95132008-08-25 Eli Zaretskii <eliz@gnu.org>
9514
9515 * frame.c (do_switch_frame): Mark previously displayed frame as
9516 obscured for FRAME_MSDOS_P frames as well.
9517
95182008-08-24 Eli Zaretskii <eliz@gnu.org>
9519
9520 * frame.c (make_terminal_frame): Initialize f->terminal,
9521 f->terminal->reference_count, and scroll bars on MS-DOS as well.
9522 Set the top frame to newly created frame.
9523 (Fmake_terminal_frame): Reuse the_only_display_info.
9524
9525 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
9526 estimating available memory.
9527
b97439ce 95282008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
9529
9530 * nsterm.m (ns_draw_window_cursor): Don't call
9531 NSDisableScreenUpdates and NSEnableScreenUpdates on
9532 non-NS_IMPL_COCOA systems.
9533
95342008-08-23 Andreas Schwab <schwab@suse.de>
9535
9536 * process.c (procfs_system_process_attributes): Fix use of
9537 uninitialized variables.
9538
95392008-08-23 Eli Zaretskii <eliz@gnu.org>
9540
9541 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
9542
9543 * dispnew.c (init_display): Remove MS-DOS specific conditions for
9544 calling tty-set-up-initial-frame-faces.
9545
b8ff72fa
SM
9546 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
9547 Allow MSDOS frames along with X frames.
aac0c6e3
MR
9548
9549 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
9550 addition to output_termcap.
9551
9552 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
9553
9554 * termchar.h (FRAME_TTY): Support output_msdos_raw.
9555 (struct tty_display_info) [MSDOS]: Add fields related to mouse
9556 highlight.
9557
9558 * process.c [!subprocesses]: Define QCname.
9559 (syms_of_process): Intern and staticpro it.
9560
9561 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
9562 Adjust for changes in encoding/decoding routines.
9563 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
9564 encode_coding and decode_coding.
9565
b8ff72fa 9566 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
9567
9568 * dosfns.c: Include frame.h before termhooks.h.
9569 (dos_cleanup): Use CURTTY ()->termscript instead of a global
9570 variable termscript.
9571
9572 * s/msdos.h (USER_FULL_NAME): Define.
9573 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
9574
9575 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
9576 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
9577 pw->pw_gecos.
9578
9579 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
9580 SELECTED_FRAME as additional (1st) argument.
9581 (tty_read_avail_input): Handle output_msdos_raw in
9582 addition to output_termcap.
9583
9584 * msdos.c: Include frame.h before termhooks.h.
9585 (mouse_on, mouse_off, mouse_moveto, mouse_init)
9586 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
9587 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
9588 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
9589 (IT_set_terminal_modes, IT_reset_terminal_modes)
9590 (IT_set_frame_parameters): Use tty->termscript instead of a global
9591 variable termscript.
9592 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
9593 global variable terminal_coding. Don't refer to
9594 Vnonascii_translation_table.
9595 (internal_terminal_init): Set Vwindow_system in current_kboard.
9596 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
9597 Announce date and time of session start, if termscript is open.
9598 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
9599 term.c:init_tty). Open termscript only of not already open.
9600 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
9601 here instead of dos_ttraw. Don't initialize display if this is an
9602 initial tty. Don't set FRAME_FONT.
9603 (Vwindow_system_version): Bump to 23.
9604 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
9605 is available, set up mouse_position_hook.
9606 (dos_ttraw, IT_set_terminal_modes): If called with initial
9607 terminal, do nothing.
9608 (IT_set_frame_parameters): Handle the Qtty_type frame
9609 parameter by calling internal_terminal_init.
9610 (dos_set_window_size, show_mouse_face)
9611 (clear_mouse_face, IT_note_mode_line_highlight)
9612 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
9613 (dos_rawgetc): Use tty_display_info instead of x_display_info.
9614 (initialize_msdos_display): New function.
9615 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
9616 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
9617 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
9618 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 9619 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
9620 (request_sigio, unrequest_sigio): Don't define, now defined on
9621 sysdep.c.
9622 (IT_write_glyphs): Rewrite to use encode_terminal_code.
9623
9624 * term.c [MSDOS]: Include msdos.h.
9625 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
9626 conditional to DOS_NT. Allow only one call to this function in a
9627 session. Don't allocate a new struct tty_display_info; instead,
9628 reuse the_only_display_info. Call get_tty_size to get screen
9629 dimensions. Call init_baud_rate to set bad_rate.
9630 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
9631 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 9632 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
9633 (get_tty_terminal, get_named_tty, Ftty_type)
9634 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
9635 output_termcap.
b8ff72fa
SM
9636 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
9637 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 9638 only when subprocesses are supported.
aac0c6e3
MR
9639
9640 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
9641 f->output_data.x.
9642 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
9643 terminal devices.
9644
5582fbc7 9645 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
9646 x_output.
9647 (FRAME_FONT): Use output_data.tty.
9648 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
9649 (struct x_display_info): Rename from display_info. Update all users in
9650 msdos.c.
aac0c6e3 9651 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 9652 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
9653 (dos_ttraw): Update prototype.
9654
9655 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
9656 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
9657
96582008-08-23 Jason Rumney <jasonr@gnu.org>
9659
9660 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
9661 (fn_TIFFSetDirectory): New library function used.
9662 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
9663 (tiff_load): Use :index to select among multiple images. Set count
9664 property when multiple images exist.
9665 (gif_format): Use :index, not :image.
9666
96672008-08-23 Chong Yidong <cyd@stupidchicken.com>
9668
9669 * xdisp.c (try_scrolling): Check INT_MAX instead of
9670 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
9671 to obtain INT_MAX.
9672
96732008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
9674
9675 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
9676
96772008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
9678
9679 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
9680 GNUstep library location.
9681
96822008-08-21 Chong Yidong <cyd@stupidchicken.com>
9683
9684 * xfaces.c (x_update_menu_appearance): Check validity of menu font
9685 before using it.
9686
9687 * puresize.h (BASE_PURESIZE): Increase to 1250000.
9688
96892008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9690
9691 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
9692 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
9693 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
9694 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
9695 (EmacsApp-cursor_blink_handler): Remove declaration.
9696 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
9697 match 01 Feb 2008 changes in xterm.c.
9698 (ns_read_socket): Add cast to avoid warning.
9699 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
9700 GNUstep.
9701
97022008-08-20 Chong Yidong <cyd@stupidchicken.com>
9703
9704 * xselect.c (x_get_foreign_selection): Return nil if desired
9705 selection could not be obtained, instead of signalling an error.
9706
97072008-08-20 David Reitter <david.reitter@gmail.com>
9708
9709 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
9710 * nsterm.m: Remove ns-specific code for cursor blinking.
9711 (ns_draw_window_cursor): Clear cursor properly rather than
9712 redrawing the area. Respect width of bar cursors.
9713 These changes enable the use of generic blink-cursor-mode and
9714 generic cursor types in NS and support smooth cursor movements (do
9715 not blink off after command).
9716 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
9717 Nextstep, too.
9718
97192008-08-19 Kenichi Handa <handa@m17n.org>
9720
9721 * font.c (Vfont_log_deferred): New variable.
9722 (font_add_log): Check Vfont_log_deferred.
9723 (font_deferred_log): New function.
9724
9725 * font.h (font_deferred_log): Extern it.
9726
9727 * fontset.c (reorder_font_vector): Use encoding charset of fonts
9728 for sorting.
9729 (face_for_char): Use deferred log.
9730
97312008-08-18 Kenichi Handa <handa@m17n.org>
9732
9733 * fontset.c (face_for_char): Add font log.
9734
9735 * font.c (font_add_log): Add the font properties :script, :lang,
9736 and :otf in the log.
9737
97382008-08-17 Chong Yidong <cyd@stupidchicken.com>
9739
9740 * xdisp.c: Remove dead code.
9741 (handle_invisible_prop, next_overlay_string): Defer call to
9742 setup_for_ellipsis.
9743 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
9744
97452008-08-15 Chong Yidong <cyd@stupidchicken.com>
9746
9747 * xfaces.c (lookup_derived_face): Properly handle possible zero
9748 return value of get_lface_attributes.
9749 (merge_faces): Don't tell lookup_derived_face to signal an error
9750 if face is not found.
9751
9752 * dired.c (Fdirectory_files): Doc fix.
9753
9754 * process.c (make_process): Initialize kill_without_query struct
9755 member.
9756
97572008-08-15 Eli Zaretskii <eliz@gnu.org>
9758
9759 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
9760 Alternative calculation of totphys for Visual Studio 6.
9761
9762 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
9763
9764 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
9765 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
9766 All users changed.
9767 (stat): Only root directory passed to GetDriveType. Allow RAM
9768 disk as well as local fixed disk when w32-get-true-file-attributes
9769 is set to `local'.
9770 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
9771 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
9772 (w32_cached_id, w32_add_to_cache): New functions.
9773 (get_name_and_id): Look account names in the cache before calling
9774 lookup_account_sid.
9775 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
9776 New initialization flags.
9777 (globals_of_w32): Initialize them to zero.
9778 (w32_system_process_attributes): Use w32_cached_id and
9779 w32_add_to_cache.
9780
97812008-08-14 Lawrence Mitchell <wence@gmx.li>
9782
9783 * lread.c (Fread_char, Fread_char_exclusive): If no character
9784 event is read before timeout is reached, return nil, rather than
9785 converting to a number.
9786
97872008-08-14 Chong Yidong <cyd@stupidchicken.com>
9788
9789 * fns.c (use_dialog_box): Doc fix.
9790
9791 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
9792 on OS X.
9793
97942008-08-13 Chong Yidong <cyd@stupidchicken.com>
9795
9796 * frame.c (Qns_parse_geometry): New var.
9797 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
9798
97992008-08-11 Chong Yidong <cyd@stupidchicken.com>
9800
9801 * xdisp.c (x_produce_glyphs): Handle the case when font has no
9802 space character in calculating tabs.
9803
98042008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
9805
9806 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
9807
98082008-08-10 Glenn Morris <rgm@gnu.org>
9809
9810 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
9811 silence gcc "limited range of data type" warnings in some
9812 make_fixnum_or_float calls.
9813
98142008-08-09 Eli Zaretskii <eliz@gnu.org>
9815
9816 * w32.c (w32_system_process_attributes): If the process does not
9817 exist, return nil.
9818
9819 * w32.c: Include thelp32.h, psapi.h and coding.h.
9820 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
9821 declarations.
9822 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
9823 (Process32Next_Proc): New typedefs.
9824 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
9825 (g_b_init_process32_next, g_b_init_open_thread_token)
9826 (g_b_init_impersonate_self, g_b_init_revert_to_self)
9827 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
9828 (g_b_init_get_process_working_set_size)
9829 (g_b_init_global_memory_status_ex): New static variables.
9830 (globals_of_w32): Initialize them.
9831 (create_toolhelp32_snapshot, process32_first, process32_next)
9832 (open_thread_token, impersonate_self, revert_to_self)
9833 (get_process_memory_info, get_process_working_set_size)
9834 (global_memory_status, global_memory_status_ex): New wrapper
9835 functions.
9836 (w32_list_system_processes, w32_system_process_attributes)
9837 (enable_privilege, restore_privilege, ltime, process_times):
9838 New functions.
9839 (convert_time_raw): New function.
9840 (convert_time): Remove conversion of FILETIME into time in 100
9841 nsec units, call convert_time_raw instead.
9842
9843 * process.h (w32_list_system_processes, w32_system_process_attributes):
9844 Add prototypes.
9845 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
9846 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
9847 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
9848 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
9849
9850 * process.c (Fsystem_process_attributes): Doc fix.
9851
98522008-08-08 Chong Yidong <cyd@stupidchicken.com>
9853
9854 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
9855 a continued multi-char glyph; if so, advance to the actual glyph.
9856
98572008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
9858
9859 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
9860
9861 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
9862 (.m.o): Use it.
9863 * config.in: Regenerate.
9864
98652008-08-07 Chong Yidong <cyd@stupidchicken.com>
9866
9867 * xdisp.c (redisplay_window): Revert last change.
9868 (try_window): Check bottom scroll margin too.
9869
98702008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9871
9872 * config.in: Regenerate.
9873
9874 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
9875 -list-load-path-shadows'.
9876 (nsgui.h): Reduce number of things depending on it.
9877
98782008-08-06 Chong Yidong <cyd@stupidchicken.com>
9879
9880 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
9881 instead of window-end which does the wrong thing at eob.
9882 (try_cursor_movement): Minor optimization.
9883 (redisplay_window): If scroll margin is defined, don't assume
9884 window doesn't need scrolling.
9885
98862008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9887
9888 * config.in: Regenerate.
9889
9890 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
9891 (mostlyclean): Don't delete *.d under NS.
9892
9893 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
9894
98952008-08-06 Kenichi Handa <handa@m17n.org>
9896
9897 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
9898
98992008-08-06 Andreas Schwab <schwab@suse.de>
9900
9901 * config.in: Regenerate.
9902
99032008-08-05 Chong Yidong <cyd@stupidchicken.com>
9904
9905 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
9906 forcing a window start.
9907
9908 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
9909 (auto_save_1): Update modtime when auto-save-list-file-name is on.
9910
99112008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9912
9913 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
9914 argument.
9915
99162008-08-05 Juanma Barranquero <lekktu@gmail.com>
9917
9918 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
9919 <scroll-down-aggressively, before-change-functions>:
9920 <after-change-functions>: Reflow docstrings.
9921
99222008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 9923 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
9924
9925 Dock menu customization, based on a patch by Ken Raeburn, plus some
9926 other fixes.
9927 * nsmenu.m (dockMenu): New variable.
9928 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
9929
9930 * nsterm.h (dockMenu): Declare.
9931
9932 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
9933 (ns_term_init): Initialize dockMenu.
9934 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
9935 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
9936 left.
9937
9938 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
9939
99402008-08-04 Chong Yidong <cyd@stupidchicken.com>
9941
9942 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
9943
9944 * config.in: Regenerate.
9945
99462008-08-04 Seiji Zenitani <zenitani@mac.com>
9947
9948 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
9949
99502008-08-04 Chong Yidong <cyd@stupidchicken.com>
9951
9952 * nsterm.h (find_and_call_menu_selection): Fix prototype.
9953
99542008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9955
9956 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
9957
9958 * keyboard.h: Comment an #endif.
9959
9960 * lisp.h (have_menus_p): Adjust comment.
9961
9962 * menu.c (find_and_return_menu_selection): Fix comparison with
9963 client_data.
9964
9965 * nsmenu.m (popup_activated_flag): New variable.
9966 (popup_activated): New function.
9967 (menu-or-popup-active-p): New exported lisp definition.
9968 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
9969 when popup done.
9970 (ns_popup_dialog): Set popup_activated_flag.
9971
9972 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
9973 version for GNUstep (handled by conditional typedef in nsterm.m).
9974 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
9975 in rgb.txt).
9976
9977 * process.c (init_process): Use DARWIN_OS, not DARWIN.
9978
9979 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
9980
9981 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
9982
9983 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
9984 shortcircuit if popup_activated like GTK and X toolkit.
9985
9986 * m/inter386.h: Change DARWIN to DARWIN_OS.
9987
9988 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
9989 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
9990 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
9991 comment on NO_SOCK_SIGIO.
9992
99932008-08-03 Chong Yidong <cyd@stupidchicken.com>
9994
9995 * nsterm.m (windowDidResize): Remove stopModal call.
9996
99972008-08-03 Andreas Schwab <schwab@suse.de>
9998
9999 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
10000 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
10001
100022008-08-02 Chong Yidong <cyd@stupidchicken.com>
10003
10004 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
10005 Don't use uninitialized pointer variable when using getrlimit.
10006
100072008-08-02 Jason Rumney <jasonr@gnu.org>
10008
10009 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
10010
100112008-08-02 Eli Zaretskii <eliz@gnu.org>
10012
10013 * alloc.c (NSTATICS): Bump to 0x640.
10014
10015 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
10016
10017 * lisp.h: Add prototype for directory_files_internal.
10018
10019 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
10020 New functions.
10021 (syms_of_process): Defsubr them. Add initializations for various
10022 Q* symbols used in procfs_system_process_attributes.
10023 (procfs_list_system_processes, procfs_system_process_attributes)
10024 [HAVE_PROCFS]: New functions.
10025 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
10026 (procfs_get_total_memory): New functions.
10027
100282008-08-01 Juanma Barranquero <lekktu@gmail.com>
10029
10030 * xfaces.c (Fx_load_color_file): Fix previous change;
10031 it is #ifdef WINDOWSNT, not WINDOWS_NT.
10032
100332008-08-01 Michael Albinus <michael.albinus@gmx.de>
10034
10035 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
10036
100372008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10038
10039 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
10040
100412008-08-01 Chong Yidong <cyd@stupidchicken.com>
10042
10043 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
10044
10045 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
10046 define NSApplicationDelegateReplySuccess.
10047 (EmacsView -converstationIdentifier): Use long instead of
10048 NSInteger for GNUstep, since it doesn't have NSInteger.
10049
10050 * xmenu.c: Revert last change.
10051
10052 * keyboard.h: Fix last change.
10053
100542008-08-01 Juanma Barranquero <lekktu@gmail.com>
10055
10056 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
10057 on Windows.
10058
100592008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10060
10061 Warning clearing and clean-up in NS port.
10062 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
10063 Add prototypes.
10064 * nsgui.h (FACE_DEFAULT): Remove, unused.
10065 (XGCValues): Change colors to unsigned long.
10066 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
10067 nsterm.m.
10068 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
10069 (ns_list_fonts): Remove, unused.
10070 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
10071 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
10072 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
10073 (nsfont_draw): Compare face colors to 0, not nil.
10074 * nsmenu.m (struct widget_value): Drop unneeded declaration.
10075 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
10076 (-addSubmenuWithTitle:): Use NSMenuItem class.
10077 (ns_popup_menu): Use NO, not NULL, for enabled setting.
10078 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
10079 (ns_clip_to_row): Make gc arg a BOOL.
10080 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
10081 ns_clip_to_row() call.
10082 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
10083 used). Cast FRAME_FONT assignments.
10084 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
10085 (ns_string_to_lispmod): Change arg to const char.
10086 (ns_term_init): Use NSMenuItem class.
10087 (EmacsApp -openFile:): Move to different section of file.
10088 (EmacsApp -application:openFiles:): Don't return a value, call
10089 -replyToOpenOrPrint:.
10090 (EmacsView -keyDown:): Fix up cast.
10091 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
10092 (EmacsView -menuDown:): Cast tag in call to
10093 find_and_call_menu_selection().
10094 (ns_list_fonts): Remove, unused.
10095 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
10096 (ns_fontname_to_xlfd): Make static.
10097 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
10098 Remove prototypes (now in keyboard.h).
10099 (next_menubar_widget_id): Remove, unused.
10100 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
10101 Remove prototypes (now in keyboard.h).
10102 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
10103
101042008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
10105
10106 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
10107 (floatfns.o): Depend on syssignal.h.
10108 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
10109
10110 * systty.h: Fix previous change that removed BSD_TERMIOS.
10111 Add comments to #ifdefs.
10112
101132008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10114
10115 * w32fns.c (w32-load-color-file): Remove.
10116 (x-open-connection): Use renamed Fx_load_color_file.
10117 * xfaces.c (x-load-color-file): Add.
10118 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
10119 Emacs.clr.
10120 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
10121
101222008-07-31 Michael Albinus <michael.albinus@gmx.de>
10123
10124 * dbusbind.c (Fdbus_call_method_asynchronously)
10125 (Fdbus_method_error_internal): New defuns.
10126 (xd_read_message): Handle also reply messages.
10127 (Vdbus_registered_functions_table): Extend docstring.
10128
101292008-07-31 Juanma Barranquero <lekktu@gmail.com>
10130
10131 * keyboard.c (gobble_input): Fix previous change.
10132
101332008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
10134
10135 * bitmaps/README:
10136 * xfns.c:
10137 * termcap.c:
10138 * term.c:
10139 * syswait.h:
10140 * systty.h:
10141 * systime.h:
10142 * syssignal.h:
10143 * sysdep.c:
10144 * process.h:
10145 * process.c:
10146 * print.c:
10147 * ndir.h:
10148 * lread.c:
10149 * keyboard.c:
10150 * getpagesize.h:
10151 * floatfns.c:
10152 * fileio.c:
10153 * emacs.c:
10154 * doc.c:
10155 * dispnew.c:
10156 * dired.c:
10157 * data.c:
10158 * callproc.c:
10159 * buffer.c:
10160 * README:
10161 * Makefile.in:
10162 * s/template.h:
10163 * s/msdos.h:
10164 * m/vax.h: Remove VMS support.
10165 * s/vms.h:
10166 * vlimit.h:
10167 * uaf.h:
10168 * temacs.opt:
10169 * param.h:
10170 * ioctl.h: Remove file.
10171
101722008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
10173
10174 * s/ms-w32.h (MULTI_KBOARD): Remove.
10175 * xterm.c:
10176 * xselect.c:
10177 * xfns.c:
10178 * window.c:
10179 * w32term.c:
10180 * w32fns.c:
10181 * terminal.c:
10182 * termhooks.h:
10183 * term.c:
10184 * sysdep.c:
10185 * keyboard.h:
10186 * keyboard.c:
10187 * frame.h:
10188 * frame.c:
10189 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
10190 * config.in: Regenerate.
10191
101922008-07-30 Jason Rumney <jasonr@gnu.org>
10193
10194 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
10195
10196 * w32font.c (w32font_encode_char): Leave as unicode if in range.
10197 (w32font_open_internal): Get unicode version of textmetrics.
10198 Don't enable or disable glyph indices here.
10199 (w32font_open): Disable use of glyph indices.
10200
10201 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
10202
102032008-07-30 Chong Yidong <cyd@stupidchicken.com>
10204
10205 * minibuf.c (Vread_buffer_function): Doc fix.
10206
102072008-07-30 John Paul Wallington <jpw@pobox.com>
10208
10209 * minibuf.c (read_buffer_completion_ignore_case): New var.
10210 (Fread_buffer): Use it.
10211
102122008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
10213
10214 * systty.h (sensemode): Remove empty #if. Remove reference to
10215 BSD_TERMIOS, unused.
10216
10217 * sysdep.c: Remove reference to DGUX.
10218 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
10219
10220 * config.in: Regenerate.
10221
102222008-07-30 Jason Rumney <jasonr@gnu.org>
10223
10224 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
10225
102262008-07-29 Jason Rumney <jasonr@gnu.org>
10227
10228 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
10229 is populated.
10230 (uniscribe_encode_char): Always use uniscribe.
10231 Avoid using context if cache is populated.
10232
102332008-07-29 Jan Djärv <jan.h.d@swipnet.se>
10234
10235 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
10236 open menu.
10237
10238 * gtkutil.c (menu_nav_ended): Remove.
10239 (create_menus): Remove signal connect for menu_nav_ended.
10240
102412008-07-28 Chong Yidong <cyd@stupidchicken.com>
10242
10243 * xdisp.c (redisplay_window): Check return value of
10244 compute_window_start_on_continuation_line before forcing a window
10245 start.
10246
102472008-07-28 Jason Rumney <jasonr@gnu.org>
10248
10249 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
10250
10251 * w32term.c (w32_enable_unicode_output, cleartype_active):
10252 Remove obsolete display options.
10253 (x_draw_glyph_string_background): Don't use old cleartype_active
10254 workaround.
10255 (w32_initialize): Remove cleartype_active initialization.
10256 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
10257
102582008-07-28 Andreas Schwab <schwab@suse.de>
10259
10260 * lisp.h (init_weak_hash_tables, syms_of_font)
10261 (xd_read_queued_messages, syms_of_dbusbind): Declare.
10262 (remove_hash_entry): Don't declare.
10263 * eval.c (maybe_call_debugger): Make static and move before use.
10264 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
10265 * xdisp.c: Include "gtkutil.h" if USE_GTK.
10266 * xterm.h (x_set_frame_alpha): Declare.
10267
102682008-07-28 Jan Djärv <jan.h.d@swipnet.se>
10269
10270 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
10271 (create_menus): Connect selection-done to menu_nav_ended.
10272
102732008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10274
10275 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
10276 Set Vx_resource_name to a fallback. Replace read of 'buffered'
10277 parameter with read of 'alpha' one.
10278 (Qns_frame_parameter): Remove.
5582fbc7 10279 * nsselect.m (selection-coding-system)
aac0c6e3
MR
10280 (next-selection-coding-system, Vselection_coding_system)
10281 (Vnext_selection_coding_system): Drop.
10282
102832008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10284
10285 * nsfns.m (do-applescript, do_applescript): Rename to
10286 ns-do-applescript, ns_do_applescript, and move within file.
10287
102882008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
10289
10290 Remove support for Mac Carbon.
10291 * mactoolbox.c:
10292 * macterm.h:
10293 * macterm.c:
10294 * macselect.c:
10295 * macmenu.c:
10296 * macgui.h:
10297 * macfns.c:
10298 * mac.c: Remove file.
10299 * s/darwin.h:
10300 * m/intel386.h:
10301 * xfaces.c:
10302 * xdisp.c:
10303 * window.c:
10304 * tparam.c:
10305 * termhooks.h:
10306 * termcap.c:
10307 * term.c:
10308 * syssignal.h:
10309 * sysselect.h:
10310 * sysdep.c:
10311 * process.c:
10312 * lread.c:
10313 * lisp.h:
10314 * keyboard.c:
10315 * image.c:
10316 * fringe.c:
10317 * frame.h:
10318 * frame.c:
10319 * fontset.c:
10320 * font.h:
10321 * font.c:
10322 * fns.c:
10323 * fileio.c:
10324 * emacs.c:
10325 * dispnew.c:
10326 * dispextern.h:
10327 * config.in:
10328 * atimer.c:
2ae37cf0 10329 * Makefile.in: Remove code for Carbon.
aac0c6e3 10330
f0131492 103312008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
10332
10333 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
10334
103352008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10336
10337 * macterm.h (kCGBitmapByteOrder32Host): New define for
10338 non-universal SDKs.
10339
10340 * image.c (mac_create_cg_image_from_image, image_load_image_io)
10341 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
10342
10343 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
10344 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
10345
103462008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
10347
10348 * w32inevt.c: Include dispextern.h.
10349
103502008-07-26 Andreas Schwab <schwab@suse.de>
10351
10352 * print.c (print_object): Fix off-by-one in last change.
10353
103542008-07-25 Juanma Barranquero <lekktu@gmail.com>
10355
10356 * term.c (syms_of_term): Don't initialize default_orig_pair,
10357 default_set_foreground and default_set_background on Windows.
10358
103592008-07-25 Jason Rumney <jasonr@gnu.org>
10360
10361 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
10362 ScriptItemize. Clean up return value checking. Remove unused
10363 variables.
10364 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
10365 shaping engine.
10366
10367 * w32font.c (w32font_has_char): Handle the case where we can't
10368 determine the script for a character.
10369
103702008-07-25 Chong Yidong <cyd@stupidchicken.com>
10371
10372 * term.c (syms_of_term): Initialize default_orig_pair,
10373 default_set_foreground, and default_set_background.
10374
10375 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
10376 clash (bug#86).
10377 (getloadavg): Callers changed.
10378
10379 * image.c (svg_load_image): Fix last change.
10380 (svg_load_image): Use rsvg_handle_get_dimensions to check that
10381 image size is valid. Use g_object_unref instead of deprecated
10382 rsvg_handle_free to free rsvg handle.
10383 (x_from_xcolors): Don't initialize pixmap (silence compiler).
10384
103852008-07-25 Jason Rumney <jasonr@gnu.org>
10386
10387 * w32font.c (w32font_encode_char): Encode characters outside BMP as
10388 surrogates before looking up glyph index.
10389 (w32font_text_extents): Encode as surrogates if falling back to
10390 functions that need UTF-16 wide chars.
10391
10392 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
10393 BMP as surrogates before looking up glyph index.
10394
103952008-07-25 Chong Yidong <cyd@stupidchicken.com>
10396
10397 * image.c (svg_load_image): Check for failure in return value of
10398 rsvg_handle_get_pixbuf. Free rsvg handle when done.
10399
104002008-07-25 Jason Rumney <jasonr@gnu.org>
10401
10402 * w32font.c (Fx_select_font): Reverse sense of second arg.
10403
104042008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
10405
10406 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
10407 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
10408
10409 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
10410 (PURESIZE): Use it.
10411
104122008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
10413
10414 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
10415 * m/alpha.h (TEXT_END):
10416 * m/ibmrs6000.h (TEXT_END):
10417 * m/macppc.h (TEXT_END):
10418 * s/darwin.h (TEXT_END):
10419 * s/msdos.h (TEXT_END): Remove, unused.
10420 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
10421 * s/cygwin.h: Remove comment.
10422
10423 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
10424 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
10425 * m/intel386.h (DOT_GLOBAL_START):
10426 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
10427 (USG): Remove, file not used on USG platforms.
10428
10429 * Makefile.in (HAVE_X11): Remove empty #else.
10430
104312008-07-24 Andreas Schwab <schwab@suse.de>
10432
10433 * fileio.c (Finsert_file_contents): Properly adjust undo list
10434 after format conversion.
10435
104362008-07-24 Jan Djärv <jan.h.d@swipnet.se>
10437
10438 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
10439 (menu_nav_ended): Remove.
10440 (create_menus): Remove signal connect for menu_nav_ended.
10441 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
10442 create_menus.
10443 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
10444
104452008-07-23 Jason Rumney <jasonr@gnu.org>
10446
10447 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
10448 with opened font.
10449 (w32font_open): Set font type to gdi.
10450
10451 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
10452
104532008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
10454
10455 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
10456 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
10457 defines it.
10458 * unexec.c (ADDR_CORRECT): Define unconditionally.
10459
10460 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
10461
10462 * unexec.c: Remove code depending on !COFF and USG, the file is
10463 not used for such systems.
10464
10465 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
10466 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
10467 (LD_SWITCH_SYSTEM_1): Remove, update users.
10468
10469 * s/darwin.h (DATA_END):
10470 * m/intel386.h (DATA_END):
10471 * m/ibmrs6000.h (DATA_END):
10472 * m/alpha.h (DATA_END): Remove, unused.
10473
10474 * config.in: Regenerate.
10475 * s/ms-w32.h (subprocesses): Define unconditionally.
10476 * s/template.h (subprocesses): Update comment.
10477 * s/vms.h (subprocesses):
10478 * s/usg5-4.h (subprocesses):
10479 * s/hpux10-20.h (subprocesses):
10480 * s/gnu-linux.h (subprocesses):
10481 * s/cygwin.h (subprocesses):
10482 * s/bsd-common.h (subprocesses):
10483 * s/aix4-2.h (subprocesses):
10484 * s/darwin.h (subprocesses): Do not define, defined by default now.
10485
10486 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
10487 Remove all references.
10488 (temacs): Add GNUstep specific ld flags.
10489
10490 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
10491 similarly to what X does.
10492
104932008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10494
10495 * nsfns.m (x-list-fonts): Remove.
10496 (syms_of_nsfns): Drop the x-list-fonts declaration.
10497 * nsterm.m: Get rid of remaining "//" comments.
10498
104992008-07-22 Chong Yidong <cyd@stupidchicken.com>
10500
10501 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
10502
10503 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
10504 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
10505 (Fns_own_selection_internal, Fx_disown_selection_internal)
10506 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
10507
10508 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
10509 ... */' style of docstrings. Doc fixes.
10510
105112008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
10512
10513 * terminfo.c (UP, BC, PC): Undo previous change.
10514
10515 * nsfns.m: Rename ns prefixed functions/variables to the
10516 corresponding x versions. Update references.
10517
105182008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
10519
10520 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
10521
105222008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
10523
10524 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
10525 Remove forwarding functions.
10526 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
10527 non-static.
10528 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
10529 non-static.
10530 (ns_frame_parm_handlers): Use the new names.
10531 (syms_of_nsfns): Move to the end of file.
10532
10533 * nsterm.m (syms_of_nsterm): Move to the end of file.
10534
10535 * dispnew.c (init_display): Remove code for X10.
10536
105372008-07-22 Jason Rumney <jasonr@gnu.org>
10538
10539 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
10540 bare drive.
10541
105422008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10543
10544 * nsterm.m (syms_of_nsterm): Remove debugging println.
10545
105462008-07-22 David Reitter <david.reitter@gmail.com>
10547
10548 * nsfns.m (do_applescript, F_do_applescript): NS version of the
10549 Carbon implementation of the same functionality: execute arbitrary
10550 AppleScript code.
10551
105522008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10553
10554 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
10555 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
10556 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
10557 (Fx_display_mm_height, Fx_display_mm_width)
10558 (Fx_display_backing_store, Fx_display_visual_class)
10559 (Fx_display_save_under, Fx_open_connection)
10560 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
10561 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
10562 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
10563 (Fx_display_pixel_width, Fx_display_pixel_height)
10564 (Fx_display_usable_bounds, Fx_display_planes)
10565 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
10566 ... */' style of docstrings.
10567
105682008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
10569
10570 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
10571 on this platform.
10572 (mips):
10573 * m/iris4d.h (mips): Do not define.
10574 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
10575
10576 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
10577
10578 * image.c:
10579 * nsfns.m:
10580 * nsselect.m:
10581 * nsterm.h:
10582 * nsterm.m: Rename ns prefixed functions/variables to the
10583 corresponding x versions. Update references.
10584
10585 * m/ibms390x.h (NO_REMAP): Do not undefine.
10586
10587 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
10588
105892008-07-21 Chong Yidong <cyd@stupidchicken.com>
10590
10591 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
10592 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
10593 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
10594 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
10595 (Fns_display_mm_height, Fns_display_mm_width)
10596 (Fns_display_backing_store, Fns_display_visual_class)
10597 (Fns_display_save_under, Fns_open_connection)
10598 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
10599 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
10600 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
10601 (Fns_display_pixel_width, Fns_display_pixel_height)
10602 (Fns_display_usable_bounds, Fx_display_planes)
10603 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
10604
106052008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
10606
10607 * print.c (print_object): Check print_depth before searching for
10608 circularities.
10609
106102008-07-21 Michael Albinus <michael.albinus@gmx.de>
10611
10612 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
10613 only sprintf.
10614
106152008-07-21 Kenichi Handa <handa@m17n.org>
10616
10617 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
10618
106192008-07-20 Andreas Schwab <schwab@suse.de>
10620
10621 * syntax.c (find_start_pos, find_start_value)
10622 (find_start_value_byte, find_start_begv, find_defun_start)
10623 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
10624
106252008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
10626
10627 * s/sol2-3.h: Insert contents of s/sol2.h.
10628 (LD_SWITCH_SYSTEM): Remove redundant definition.
10629 * s/sol2.h: Remove, unused.
10630
106312008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10632
10633 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
10634
106352008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10636
10637 * Makefile.in (ns_appdir): Fix typo in find command.
10638
106392008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
10640
10641 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
10642
10643 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
10644 added not supported anymore.
10645
10646 * s/usg5-4-2.h (LIBS_SYSTEM):
10647 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
10648
10649 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10650 * s/lynxos.h (GETPGRP_NO_ARG):
10651 * s/hpux10-20.h (NO_SIOCTL_H):
10652 * s/gnu.h (GETPGRP_NO_ARG):
10653 * s/gnu-linux.h (NO_SIOCTL_H):
10654 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10655 * s/cygwin.h (GETPGRP_NO_ARG):
10656 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
10657 (C_DEBUG_SWITCH): Remove duplicate definition.
10658
10659 * m/ibms390.h: Remove boilerplate comments.
10660
10661 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
10662
10663 * process.c (HAVE_SERIAL): Consolidate ifdefs.
10664 (wait_reading_process_output): Remove code for SunOS, platform not
10665 supported anymore. Use SOLARIS2 instead of sun.
10666
106672008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10668
10669 * font.c (font_open_by_name): Under NS, default lface height to zero.
10670 (font_open_for_lface): Under NS, set size based on frame fontsize.
10671 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
10672 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
10673
106742008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10675
10676 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
10677 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
10678 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
10679 YES/NO.
10680 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
10681 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
10682 * Makefile.in (clean): Clear out build destination dir.
10683
106842008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10685
10686 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
10687 xterm, xselect.
10688 * lisp.h: Remove declaration of hash_remove.
10689 * nsgui.h: Remove redefinitions of hash_remove.
10690 * fns.c (hash_remove): Rename to hash_remove_from_table.
10691
106922008-07-19 Seiji Zenitani <zenitani@mac.com>
10693
10694 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
10695 strdup() the family UTF8String before modifying it.
10696
106972008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10698
10699 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
10700 NS_FACE_BACKGROUND with 0 instead of nil.
10701 * nsfont.m (nsfont_draw): Same.
10702
107032008-07-19 Chong Yidong <cyd@stupidchicken.com>
10704
10705 * nsfns.m (ns_set_background_color): Fix crash.
10706
107072008-07-18 Chong Yidong <cyd@stupidchicken.com>
10708
10709 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
10710
107112008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
10712
10713 * puresize.h (BASE_PURESIZE): Increase to 1240000.
10714
107152008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10716
10717 * gtkutil.c: Include <config.h> instead of "config.h".
10718
10719 * lisp.h (Foverlay_buffer): Add EXFUN.
10720
10721 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
10722 child process to complete child_setup. Undo 2005-09-21 change.
10723
10724 * s/darwin.h: Mention setsid after vfork.
10725
107262008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10727
10728 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
10729 Depend on macgui.h.
10730
10731 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
10732 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
10733
10734 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
10735 and f19.
10736 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
10737
10738 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
10739 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
10740 Remove enumerators.
10741
10742 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
10743 Check if FACE_FROM_ID returns NULL.
10744
107452008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
10746
10747 * w32inevt.c (change_frame_size): Remove extern declaration.
10748 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
10749 change_frame_size.
10750
107512008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
10752
10753 * getloadavg.c: Revert last change (2008-07-15).
10754
107552008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
10756
10757 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 10758 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
10759 from configure.
10760
107612008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
10762
10763 * s/sol2.h:
10764 * s/sol2-4.h: Reorganize conditionals.
10765
10766 * ecrt0.c: Remove code depending on m68000, not used anymore.
10767
10768 * fns.c (hash_remove): Make static.
10769 * lisp.h (hash_remove): Don't prototype.
10770
10771 * m/ibmrs6000.h:
10772 * m/ibms390x.h:
10773 * m/macppc.h: Remove boilerplate comments.
10774
10775 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
10776 Solaris, which does not need them.
10777
10778 * m/vax.h: Remove comments about unsupported systems.
10779
10780 * s/darwin.h: Reorganize ifdefs.
10781
107822008-07-17 Andreas Schwab <schwab@suse.de>
10783
10784 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
10785
107862008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
10787
10788 Use SDATA. Follow coding convention of placing operators at
10789 beginning of next line rather than end of previous line, and placing
10790 spaces around infix operators.
10791
10792 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
10793 in case it was defined already.
10794 USE @GNUSTEP_MAKEFILES@ rather than envvars.
10795 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
10796 ns_default.
10797 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
10798 Lisp_Objects.
10799 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
10800 (ns_defined_color, ns_color_to_lisp): Declare.
10801 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
10802 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
10803 it's accepted even with USE_LISP_UNION_TYPE.
10804 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
10805 (update_frame_tool_bar): Remove apparently obsolete tests for
10806 non-integerness of f->tool_bar_lines.
10807 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
10808 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
10809 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
10810 (nsfont_open): Don't confuse NULL for Qnil.
10811 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
10812 * menu.h (find_and_call_menu_selection):
10813 * menu.c (find_and_call_menu_selection): Use just int for vector size.
10814 (find_and_return_menu_selection): Always return something.
10815 * frame.h: Include dispextern.h for Display_Info.
10816 (display_x_get_resource): Declare.
10817
108182008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
10819
10820 * syntax.c: Remove stdio.h include accidentally introduced in
10821 Emacs.app commit.
10822 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
10823 NS_IMPL_COCOA.
10824 * keyboard.c (handle_async_input, input_available_signal): Remove
10825 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
10826
108272008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
10828
10829 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
10830 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
10831 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
10832 Use SDATA.
10833
10834 * keymap.c: Remove all NS-specific code.
10835 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
10836 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
10837 where_is_preferred_modifier, return a different value depending on how
10838 preferred is the binding.
10839 (where_is_internal): Adjust accordingly.
10840 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
10841 Adjust to new preferred_sequence_p.
10842 (syms_of_keymap): Declare `where-is-preferred-modifier'.
10843 * keyboard.c (parse_solitary_modifier): Not static any more.
10844 * keyboard.h (parse_solitary_modifier): Declare.
10845
108462008-07-16 Andreas Schwab <schwab@suse.de>
10847
10848 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
10849 of easymenu.
10850
108512008-07-16 Chong Yidong <cyd@stupidchicken.com>
10852
10853 * xdisp.c (move_it_in_display_line): Account for word wrap, so
10854 that we don't move off the line.
10855
108562008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
10857
10858 * keyboard.c (Qsuper): Remove.
10859 (parse_menu_item): Don't call where_is_internal specially for NS.
10860
108612008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10862
10863 * s/gnu-linux.h: Remove boilerplate comments.
10864
10865 * m/alpha.h (__ELF__): Consolidate conditions.
10866
10867 * m/m68k.h (linux): Use GNU_LINUX instead.
10868 Remove boilerplate comments.
10869
10870 * m/intel386.h: Undo refactoring from previous change.
10871 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
10872 too, remove dead code.
10873 (linux): Use GNU_LINUX instead.
10874
108752008-07-16 Jason Rumney <jasonr@gnu.org>
10876
10877 * w32gui.h: Repeat 26 June changes lost by last change.
10878
108792008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10880
10881 * systty.h: Remove code for Aix on 386, unsupported platform.
10882
10883 * s/ms-w32.h: Remove boilerplate comments.
10884 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
10885
10886 * s/gnu-linux.h (TERM): Remove support.
10887 (HAVE_SYSVIPC): Remove, unused.
10888 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
10889 for this system.
10890
10891 * process.c: Remove support for IRIS, unused.
10892 Remove support for TERM, not relevant anymore.
10893
10894 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
10895 used with the definition.
10896
10897 * s/aix4-2.h (static): Do not undef.
10898
10899 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
10900 only used on Aix.
10901 (HAVE_SYSVIPC): Remove, unused.
10902
10903 * m/hp800.h (CANNOT_DUMP): Do not undef.
10904
10905 * m/alpha.h: Fix comment.
10906
10907 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
10908 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
10909 used by this configuration.
10910 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
10911 * unexec.c: Remove code depending on HPUX and
10912 USG_SHARED_LIBRARIES, not used with this file. Remove code
10913 depending on IRIS, unused. Remove if 0-ed code.
10914
10915 * s/template.h: Remove comments about static.
10916
10917 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
10918 Remove if 0-ed code.
10919 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
10920 were the same as the default.
10921 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
10922 Remove boilerplate comments.
10923 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
10924 (HAVE_SYSVIPC): Remove, unused.
10925 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
10926
10927 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10928 Remove boilerplate comments.
10929 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10930 Remove boilerplate comments.
10931 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10932 Remove boilerplate comments.
10933 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
10934
10935 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
10936 USG systems which do not use DATA_SEG_BITS.
10937 Refactor code. Remove boilerplate comments.
10938
10939 * m/ibms390.h:
10940 * m/m68k.h:
10941 * s/bsd-common.h:
10942 * s/cygwin.h:
10943 * s/darwin.h:
10944 * s/freebsd.h:
10945 * s/gnu.h:
10946 * s/msdos.h: Remove boilerplate comments.
10947
10948 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 10949 do not use this file.
aac0c6e3
MR
10950 (IRIS_4D): Remove, unused.
10951
10952 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 10953 do not use this file.
aac0c6e3
MR
10954 (SIGN_EXTEND_CHAR):
10955 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
10956 * unexmips.c: Remove file, unused.
10957
10958 * editfns.c (Fuser_full_name): Replace the only use of
10959 USER_FULL_NAME with its value.
10960 * config.in: Regenerate.
10961
109622008-07-16 David Reitter <david.reitter@gmail.com>
10963
10964 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
10965 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
10966
109672008-07-16 Glenn Morris <rgm@gnu.org>
10968
10969 * emacs.c (system-type): Doc fix.
10970
109712008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
10972
10973 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
10974 If the cache doesn't work, let's fix it, rather than work around it.
10975
109762008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10977
10978 * Makefile.in: Correct additions for nsfont.o in last commit.
10979 * nsfont.m: New file (forgot last commit).
10980
109812008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
10982
10983 * callproc.c (set_initial_environment): Initialize
10984 Vprocess_environment under CANNOT_DUMP (fixes crash when
10985 batch-compiling for bootstrap).
10986
109872008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 10988 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
10989
10990 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
10991 fix crash due to different init order.
10992
109932008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10994
10995 Changes and additions for NeXTstep windowing system (Cocoa and
10996 GNUstep) support.
10997
10998 * Makefile.in:
10999 * config.in: Support defines and build commands for NS port.
11000 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
11001 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
11002 * dispextern.h: Include nsgui.h and add needed typedefs under NS
11003 windowing.
11004 (struct face): Add synth_ital field.
11005 * dispnew.c: Include nsterm.h when compiling under NS windowing.
11006 (init_display): Initialize Vinitial_window_system to "ns" when so
11007 compiled.
11008 * emacs.c: Include GSConfig.h when compiling under GNUstep.
11009 (display_arg): Use under NS.
11010 (main): Under NS, allocate autorelease pool and handle command line
11011 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
11012 (standard_args): Add NS-specific args.
11013 (shut_down_emacs): Shut down NS terminal if compiled under NS.
11014 * font.c (DEFAULT_ENCODING): New variable.
11015 (font_find_for_lface): Use it.
11016 (syms_of_font): Load syms_of_nsfont under NS.
11017 * font.h: Declare nsfont_driver when compiled under NS.
11018 * fontset.c: When compiling under NS, include nsterm.h.
11019 (fontset_from_font): Autoconstruct fontset under NS.
11020 * frame.c (various): Under NS, include nsterm.h, add Qns window system
11021 symbol, document and use it.
11022 (do_switch_frame): When for_deletion under Cocoa, add
11023 Fraise_frame(Qnil).
11024 (x_set_frame_parameters): Ensure font attribute changes are picked up.
11025 (x_get_arg): Allow "yes" and "no" as boolean values.
11026 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
11027 Qright under Cocoa.
11028 (focus-follows-mouse): Default to 0 under NS.
11029 * frame.h (enum output_method): Add output_ns.
11030 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
11031 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
11032 (FRAME_WINDOW_P): NS-specific definition.
11033 * fringe.c (max_used_fringe_bitmap): Make public.
11034 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
11035 (getloadavg): Use NeXT code under descendant OS's.
11036 * image.c (includes and header section, x_create_bitmap_from_data)
11037 (x_create_bitmap_from_file, free_bitmap_record, image_background)
11038 (image_background_transparent, x_clear_image_1)
11039 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
11040 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
11041 (x_to_xcolors, x_from_xcolors, x_disable_image)
11042 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
11043 other GUIs, including XPM support using code originally written for
11044 Carbon GUI.
11045 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
11046 using NS API.
11047 (image_ascent): Use font metrics macros instead of direct struct field
11048 access.
11049 * keyboard.c (includes): Add nsterm.h when compiling under NS.
11050 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
11051 Also, handle NS as GTK for menu bar purposes.
11052 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
11053 toolkit where they differ.
11054 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
11055 use cachelist, still needed under NS.
11056 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
11057 (struct widget_value): Define it here for menu.c.
11058 * keymap.c (includes): Include modifier internals.
11059 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
11060 NS.
11061 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
11062 support for preferring sequences using certain modifiers, specified by
11063 the FIRSTONLY argument.
11064 * lisp.h (hash_remove): Rename to avoid name clash when compiling
11065 under NS GNUstep implementation.
11066 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
11067 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
11068 * menu.c: Include nsterm.h under NS.
11069 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
11070 (free_menubar_widget_tree_value, update_submenu_strings)
11071 (find_and_call_menu_selection): Treat NS as X and NT.
11072 (find_and_return_menu_selection): New function, used for popup menus.
11073 * nsgui.h:
11074 * nsterm.h:
11075 * nsfns.m:
11076 * nsimage.m:
11077 * nsmenu.m:
11078 * nsselect.m:
11079 * nsterm.m: New files.
11080 * process.c (wait_reading_process_output): Under NS, call ns_select()
11081 instead of plain select().
11082 * syntax.c (char_quoted): Under NS, avoid a crash when called near
11083 beginning of buffer.
11084 * sysselect.h (init_process): Rename when compiling under Cocoa to
11085 avoid name conflict.
11086 * termhooks.h (display_info): Add ns_display_info to union.
11087 * terminal.c (Fterminal_live_p): Add ns to terminal types.
11088 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
11089 COCOA environment.
11090 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
11091 unexec() signature. (Note, this will dump, but the resulting file
11092 crashes; unexosx is used instead; keeping around for reference and
11093 possible aid in getting dump working under GNUstep.)
11094 * w32gui.h (button_type, widget_value): Remove definitions (now in
11095 keyboard.h).
11096 * window.c: Include nsterm.h when compiling under NS.
11097 * xdisp.c (includes): Include nsterm.h when compiling under NS.
11098 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
11099 other GUI windowing systems.
11100 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
11101 GTK.
11102 (x_consider_frame_title): Under NS, set icon type and frame
11103 modified-state indicator; use ns_set_name_as_filename() when using
11104 formatted title.
11105 (update_window_cursor): Make public when compiling under NS.
11106 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
11107 (hourglass_atimer, Vhourglass_delay
11108 * xfaces.c (header section, init_frame_faces, clear_font_table)
11109 (defined_color, unload_color, x_face_list_fonts)
11110 (prepare_face_for_display): Add NS support parallel to other GUIs.
11111 Emulate GCs like other non-X GUIs.
11112 (split_font_name): Don't lowercase font name under NS.
11113 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
11114 under NS.
11115 * s/darwin.h: Add support for compilation under NS.
11116
111172008-07-15 Jason Rumney <jasonr@gnu.org>
11118
11119 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
11120 (w32_show_hourglass): Rename from show_hourglass.
11121 (w32_hide_hourglass): Rename from hide_hourglass.
11122 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
11123 (Vhourglass_delay): Declare extern.
11124 (hourglass_started): Remove.
11125
11126 * xdisp.c (Vhourglass_delay): Remove static.
11127 (hourglass_started, start_hourglass, cancel_hourglass):
11128 Don't include these versions on WINDOWSNT.
11129
111302008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11131
11132 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
11133 variables (formerly in xfns.c).
11134 (show_hourglass, hide_hourglass): New prototypes (same).
11135 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
11136 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
11137 in xfns.c).
11138 (syms_of_xdisp): Declare/initialize display-hourglass,
11139 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
11140 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
11141 formerly in xfns.c.
11142 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
11143 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
11144 (start_hourglass, cancel_hourglass): Remove.
11145 (show_hourglass, hide_hourglass): Remove prototypes and static
11146 modifiers.
11147 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
11148 hourglass_atimer, hourglass_shown_p declaration/initialization.
11149 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
11150 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
11151 (start_hourglass, cancel_hourglass): Remove.
11152 (show_hourglass, hide_hourglass): Remove prototypes and static
11153 modifiers.
11154 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
11155 hourglass_atimer, hourglass_shown_p declaration/initialization.
11156 * w32fns.c (display_hourglass_p, Vhourglass_delay)
11157 (DEFAULT_HOURGLASS_DELAY): Remove.
11158 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
11159 hourglass_shown_p declaration/initialization.
11160
111612008-07-14 Jason Rumney <jasonr@gnu.org>
11162
11163 * w32fns.c (w32_get_arg): Remove wrapper function.
11164 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
11165 directly.
11166 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
11167
111682008-07-14 Kenichi Handa <handa@m17n.org>
11169
11170 * xfont.c (xfont_open): Add workaround for X's bug.
11171
111722008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
11173
11174 * fontset.c: Include <stdio.h> unconditionally.
11175
111762008-07-13 Michael Albinus <michael.albinus@gmx.de>
11177
11178 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
11179 for filtering.
11180
111812008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
11182
11183 * s/vms.h: Use __GNUC__ instead of _GNUC_.
11184
11185 * m/macppc.h:
11186 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
11187
11188 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
11189 (SPECIAL_EMACS_INT):
11190 * m/ia64.h (SPECIAL_EMACS_INT):
11191 * m/amdx86-64.h (SPECIAL_EMACS_INT):
11192 * s/gnu.h (NLIST_STRUCT):
11193 * s/aix4-2.h (X11R5_INHIBIT_I18N):
11194 * s/gnu-linux.h (LINUX):
11195 * s/msdos.h (HAVE_FACES):
11196 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
11197
11198 * systty.h:
11199 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
11200 anymore.
11201
112022008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
11203
11204 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
11205 always defined as int.
11206
11207 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
11208 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
11209 * s/gnu-linux.h (HAVE_WAIT_HEADER):
11210 * s/freebsd.h (HAVE_WAIT_HEADER):
11211 * s/bsd-common.h (HAVE_UNION_WAIT):
11212 * s/aix4-2.h (HAVE_WAIT_HEADER):
11213 * m/mips.h (HAVE_UNION_WAIT):
11214 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
11215 (COFF, static): Do not define, they are undefined later in the file.
11216
11217 * process.c (update_status): Don't use a union.
11218 (status_convert):
11219 (sigchld_handler): Use int instead of WAITTYPE.
11220
112212008-07-12 Chong Yidong <cyd@stupidchicken.com>
11222
11223 * indent.c (Fvertical_motion): Restore hscroll before moving to
11224 goal column.
11225
112262008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
11227
11228 * lisp.h: Remove left over code.
11229
112302008-07-11 Andreas Schwab <schwab@suse.de>
11231
11232 * lisp.h: Fix logic in last change.
11233
11234 * menu.h: New file.
11235 * menu.c: Include it.
11236 * xmenu.c: Likewise.
11237 * Makefile.in: Update dependencies.
11238
112392008-07-11 Kenichi Handa <handa@m17n.org>
11240
11241 * fontset.c (fontset_from_font): Cancel the previous change.
11242
112432008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
11244
11245 * lisp.h:
11246 * w32heap.c:
11247 * emacs.c:
11248 * alloc.c: Replace all references of NO_UNION_TYPE with
11249 USE_LISP_UNION_TYPE.
11250
11251 * m/xtensa.h (NO_UNION_TYPE):
11252 * m/vax.h (NO_UNION_TYPE):
11253 * m/template.h (NO_UNION_TYPE):
11254 * m/sparc.h (NO_UNION_TYPE):
11255 * m/mips.h (NO_UNION_TYPE):
11256 * m/macppc.h (NO_UNION_TYPE):
11257 * m/m68k.h (NO_UNION_TYPE):
11258 * m/iris4d.h (NO_UNION_TYPE):
11259 * m/intel386.h (NO_UNION_TYPE):
11260 * m/ibms390x.h (NO_UNION_TYPE):
11261 * m/ibms390.h (NO_UNION_TYPE):
11262 * m/ibmrs6000.h (NO_UNION_TYPE):
11263 * m/ia64.h (NO_UNION_TYPE):
11264 * m/hp800.h (NO_UNION_TYPE):
11265 * m/arm.h (NO_UNION_TYPE):
11266 * m/amdx86-64.h (NO_UNION_TYPE):
11267 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
11268 defining it the same.
11269
112702008-07-10 Chong Yidong <cyd@stupidchicken.com>
11271
11272 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
11273
112742008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
11275
11276 * fileio.c:
50426a04 11277 * sysdep.c:
aac0c6e3
MR
11278 * systty.h:
11279 * m/ibmrs6000.h:
11280 * m/iris4d.h:
11281 * s/aix4-2.h:
11282 * s/freebsd.h:
11283 * s/gnu-linux.h:
11284 * s/hpux10-20.h:
11285 * s/hpux11.h:
11286 * s/netbsd.h:
11287 * s/sol2-3.h:
11288 * s/sol2-4.h:
11289 * s/sol2.h:
11290 * s/usg5-4.h:
11291 * s/vms.h: Remove references to unused variables.
11292
112932008-07-10 Andreas Schwab <schwab@suse.de>
11294
11295 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
11296 pattern before matching the generic family.
11297
112982008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
11299
11300 * unexec.c:
11301 * s/vms.h:
11302 * s/usg5-4-2.h:
11303 * s/sol2-5.h:
11304 * s/freebsd.h:
11305 * s/darwin.h: Remove dead code.
11306
11307 * m/template.h:
11308 * m/sparc.h:
11309 * m/mips.h:
11310 * m/m68k.h:
11311 * m/iris4d.h:
11312 * m/intel386.h:
11313 * m/ibms390x.h:
11314 * m/ibms390.h:
11315 * m/ia64.h:
11316 * m/hp800.h:
11317 * m/arm.h:
11318 * m/amdx86-64.h: Remove dead code and references to unused
11319 and compiler defined symbols.
11320
11321 * unexmips.c:
11322 * unexelf.c: Remove references to desupported systems.
11323
11324 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
11325
11326 * m/powermac.h: Remove boilerplate comments.
11327 (NO_REMAP): Remove unused definition.
11328
11329 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
11330 define them.
11331
113322008-07-10 Kenichi Handa <handa@m17n.org>
11333
11334 * xfont.c (xfont_open): Log the reason of failure.
11335
113362008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
11337
11338 * fontset.c (fontset_get_font_group):
11339 * font.c (font_check_otf): Specify argument types.
11340
113412008-07-09 Kenichi Handa <handa@m17n.org>
11342
11343 * coding.c (detect_coding_utf_8): Set detect_info->found only when
11344 non-ASCII char is found.
11345
11346 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
11347 (reorder_font_vector): Change the arg preferred_family to font.
11348 Prefer the spec matching with font.
11349 (fontset_get_font_group): New function.
11350 (fontset_find_font): Change the format of an element of a realized
11351 fontset. Use fontset_get_font_group.
11352 (fontset_font): Try the current fontset, the default fontset, the
11353 fallbacks of the current fontset, and the fallbacks of the default
11354 fontset in this order.
11355 (face_for_char): Delete the shortcut to use the current font.
11356 (fontset_from_font): Don't set fonts for Latin in the fontset.
11357
11358 * font.h (font_make_object, font_match_p): Adjust prototypes.
11359
11360 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
11361
11362 * font.c (font_make_object): New arg entity and pixelsize.
11363 (font_check_otf_features, font_check_otf): New functions.
11364 (font_match_p): Check :lang, :script, and :otf properties.
11365
11366 * xfont.c (xfont_open): Adjust it for the change of
11367 font_make_object.
11368 (xfont_text_extents): Fix initial setting of metrics.
11369
11370 * ftfont.c (struct ftfont_info): New member index, delete member
11371 fc_charset_idx. Make the member order compatible with struct
11372 xftfont_info.
11373 (fc_charset_table): Change charset names to registry names.
11374 (ftfont_pattern_entity): Delete the args registry and
11375 fc_charset_idx. Change the value of :font-entity property
11376 to (FONTNAME . INDEX). Always set :registry property to
11377 `iso10646-1'.
11378 (struct ftfont_cache_data): New struct.
11379 (ftfont_lookup_cache): New arg for_face.
11380 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
11381 (ftfont_driver): Set the member otf_capability.
11382 (ftfont_get_charset): Adjust it for the change of
11383 fc_charset_table.
11384 (OTF_TAG_SYM): New macro.
11385 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
11386 for the change of fc_charset_table.
11387 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
11388 ftfont_pattern_entity. Add FC_INDEX to objset.
11389 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
11390 and ftfont_pattern_entity.
11391 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
11392 font_make_object, struct ftfont_info.
11393 (ftfont_has_char): Use ftfont_get_fc_charset.
11394 (ftfont_otf_features, ftfont_otf_capability): New functions.
11395 (ftfont_shape): Use ftfont_get_otf.
11396 (ftfont_text_extents): Fix initial setting of metrics.
11397
11398 * xftfont.c (struct xftfont_info): New member ft_size. Make the
11399 member order compatible with struct ftfont_info.
11400 (xftfont_open): Add FC_CHARSET to the pattern. Set
11401 xftfont_info->ft_size. Don't unlock the face. Check BDF
11402 properties if appropriate.
11403 (xftfont_close): Unlock the face.
11404 (xftfont_anchor_point, xftfont_shape): Deleted.
11405 (syms_of_xftfont): Don't set members anchor_point and shape of
11406 xftfont_driver.
11407
11408 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
11409 font_make_object.
11410
11411 * w32font.c (w32font_open): Adjust it for the change of
11412 font_make_object.
11413 (w32font_open_internal): Don't set properties of font_object here.
11414
114152008-07-08 Chong Yidong <cyd@stupidchicken.com>
11416
11417 * macfns.c (x_create_tip_frame):
11418 * w32fns.c (x_create_tip_frame):
11419 * xfns.c (x_create_tip_frame): Pass parameter argument to
11420 face-set-after-frame-default.
11421
11422 * xfaces.c (Finternal_merge_in_global_face): Save merged
11423 attributes for the default face back into the face vector.
11424
114252008-07-08 Andreas Schwab <schwab@suse.de>
11426
11427 * fontset.h: Declare fontset_from_font. Don't declare
11428 new_fontset_from_font and fontset_from_font_name.
11429 * xterm.c: Include "fontset.h".
11430 * Makefile.in (xterm.o): Update dependencies.
11431
114322008-07-08 Glenn Morris <rgm@gnu.org>
11433
11434 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
11435 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
11436
114372008-07-07 Chong Yidong <cyd@stupidchicken.com>
11438
11439 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
11440 (x_set_frame_parameters): Don't bind it.
11441
114422008-07-07 Juanma Barranquero <lekktu@gmail.com>
11443
11444 * w32fns.c (map_w32_filename): Declare extern.
11445
114462008-07-07 Jason Rumney <jasonr@gnu.org>
11447
11448 * w32term.c (WS_EX_LAYERED): Define if not already.
11449
114502008-07-06 Chong Yidong <cyd@stupidchicken.com>
11451
11452 * xfaces.c (set_font_frame_param): Don't try to set the font
11453 parameter if it is still unspecified in the lface.
11454
114552008-07-05 Chong Yidong <cyd@stupidchicken.com>
11456
11457 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
11458 face if it didn't already exist.
11459
11460 * xdisp.c (try_window_id): Give up if word-wrapping is on.
11461
114622008-07-05 Andreas Schwab <schwab@suse.de>
11463
11464 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
11465
114662008-07-05 Chong Yidong <cyd@stupidchicken.com>
11467
11468 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
11469 word-wrapping.
11470 (IT_DISPLAYING_WHITESPACE): New macro.
11471 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
11472 when word-wrapping. Simplify word-wrapping logic. Use correct
11473 pixel positions when saving copies of the iterator.
11474 (display_line): Use proper wrap point if the last character on a
11475 line was preceded by whitespace.
11476
114772008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
11478
11479 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
11480
114812008-07-04 Kenichi Handa <handa@m17n.org>
11482
11483 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
11484
11485 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
11486
114872008-07-02 Jason Rumney <jasonr@gnu.org>
11488
11489 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 11490 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
11491
11492 * xdisp.c (next_element_from_display_vector): Move assignment out
11493 of if statement.
11494
114952008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
11496
11497 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
11498
11499 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
11500 (syms_of_fileio): Initialize and export them.
11501 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
11502
11503 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
11504 (Fsystem_move_file_to_trash): New function.
11505 (syms_of_w32fns): Export it to lisp.
11506
115072008-07-01 Jason Rumney <jasonr@gnu.org>
11508
11509 * w32font.c (w32font_text_extents): Don't count overhang as part
11510 of width.
11511
115122008-06-30 Miles Bader <miles@gnu.org>
11513
11514 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
11515 Add `avoid_cursor_p' field.
11516
11517 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
11518 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
11519 (append_glyph, append_composite_glyph, produce_image_glyph)
11520 (append_stretch_glyph): Initialize avoid_cursor_p.
11521 (get_it_property): Rename from `get_line_height_property'.
11522 (x_produce_glyphs): Use get_it_property.
11523 (handle_line_prefix, push_display_prop): New functions.
11524 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
11525 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
11526 New variables.
11527 (syms_of_xdisp): Initialize them.
11528
115292008-06-30 Kenichi Handa <handa@m17n.org>
11530
11531 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
11532 XftDefaultSubstitute (they are called in XftFontMatch).
11533 (xftfont_open): Fix args to ftfont_font_format.
11534
11535 * ftfont.c (fc_charset_table): New member lang.
11536 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 11537 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
11538 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
11539 (ftfont_open): Fix args to ftfont_font_format.
11540 (ftfont_font_format): New arg filename.
11541
115422008-06-30 Chong Yidong <cyd@stupidchicken.com>
11543
11544 * xfaces.c (Finternal_merge_in_global_face): If default face was
11545 modified, realize it again. Update the font face attribute.
11546
115472008-06-29 Jason Rumney <jasonr@gnu.org>
11548
11549 * w32term.c (x_set_frame_alpha): Fix logic.
11550
115512008-06-29 Kenichi Handa <handa@m17n.org>
11552
11553 * fontset.c (Finternal_char_font): Return font-object instead of
11554 font-name.
11555
11556 * composite.c (get_composition_id): Fix the width calculation for TAB.
11557
115582008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
11559
11560 * indent.c (Fvertical_motion): Properly handle float column arg.
11561
115622008-06-28 Jason Rumney <jasonr@gnu.org>
11563
11564 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
11565 (pfnSetLayeredWindowAttributes): New function pointer.
11566 (w32_initialize): Initialize it when supported.
11567 (x_set_frame_alpha): New function.
11568
11569 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
11570 (w32_frame_parm_handlers): Set alpha handler.
11571
11572 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
11573
115742008-06-27 Jason Rumney <jasonr@gnu.org>
11575
11576 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
11577 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
11578 (w32_to_x_charset, x_to_w32_charset)
11579 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
11580 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
11581 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
11582 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
11583 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
11584 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
11585 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
11586 (Qw32_charset_unicode): Remove.
11587 (syms_of_w32fns): Update for above changes.
11588
11589 * w32font.c (w32_to_x_charset, x_to_w32_charset)
11590 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
11591 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
11592 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
11593 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
11594 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
11595 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
11596 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
11597 (syms_of_w32font): Update for above changes.
11598
115992008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
11600
11601 * s/usg5-4.h: Fix previous change: keep the correct branch of a
11602 removed #if.
11603 (USG_SHARED_LIBRARIES): Remove duplicate definition.
11604
116052008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 11606 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
11607
11608 * makefile.w32-in (LOCAL_FLAGS):
11609 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
11610
11611 * sysdep.c (_spawnlp, _getpid):
11612 Declare with explicit _cdecl instead of _CRTAPI1.
11613
11614 * editfns.c (Fget_internal_run_time):
11615 Check for WINDOWSNT with #ifdef, not #if.
11616
116172008-06-26 Jason Rumney <jasonr@gnu.org>
11618
11619 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
11620
11621 * w32term.c (x_draw_glyph_string_foreground)
11622 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
11623 Use FONT_HANDLE macro.
11624 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
11625
11626 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
11627 (uniscribe_encode_char): Use FONT_HANDLE macro.
11628
11629 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
11630 (w32font_text_extents): Use precast w32_font.
11631 (w32font_close): Free cached metrics.
11632 (w32font_open_internal): Allocate space for name on stack.
11633
116342008-06-26 Chong Yidong <cyd@stupidchicken.com>
11635
11636 * xdisp.c (extend_face_to_end_of_line): Fix last change.
11637
116382008-06-26 Jason Rumney <jasonr@gnu.org>
11639
11640 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
11641 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
11642
116432008-06-26 Juanma Barranquero <lekktu@gmail.com>
11644
11645 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
11646
116472008-06-26 Jason Rumney <jasonr@gnu.org>
11648
11649 * w32bdf.c, w32bdf.h: Remove obsolete files.
11650
11651 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
11652
11653 * w32gui.h: Don't include w32bdf.h.
11654 (XCharStruct, enum w32_char_font_type, W32FontStruct):
11655 Remove obsolete font support.
11656
11657 * w32font.h (struct w32font_info): Remove compat_w32_font.
11658 Add hfont member.
11659 (FONT_COMPAT): Remove obsolete macro.
11660
11661 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
11662 (w32font_encode_char, w32font_text_extents): Use new hfont member.
11663 (w32font_open_internal): Remove compat code. Set new hfont member.
11664 (Fx_select_font): Use new hfont member.
11665
11666 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
11667 (uniscribe_encode_char): Use new hfont member.
11668
11669 * w32term.c (x_draw_glyph_string_foreground)
11670 (x_draw_composite_glyph_string_foreground): Use new hfont member.
11671 (x_draw_glyph_string): Use metrics in w32font_info.
11672
116732008-06-26 Kenichi Handa <handa@m17n.org>
11674
11675 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
11676
116772008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
11678
11679 * unexnext.c:
11680 * m/ews4800.h:
11681 * m/hp9000s300.h:
11682 * m/ibm370aix.h:
11683 * m/mips-siemens.h:
11684 * m/ncr386.h:
11685 * m/next.h:
11686 * m/pmax.h:
11687 * m/powerpcle.h:
11688 * m/tandem-s2.h:
11689 * s/386bsd.h:
11690 * s/bsd386.h:
11691 * s/bsd4-1.h:
11692 * s/bsd4-2.h:
11693 * s/bsdos2-1.h:
11694 * s/bsdos2.h:
11695 * s/bsdos3.h:
11696 * s/bsdos4.h:
11697 * s/nextstep.h:
11698 * s/ultrix4-3.h:
11699 * s/usg5-0.h:
11700 * s/usg5-2-2.h:
11701 * s/usg5-2.h:
11702 * s/usg5-4-3.h:
11703 * s/ux4800.h:
11704 * s/uxpds.h:
11705 * s/uxpv.h: Remove support for obsolete systems.
11706 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 11707 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
11708 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
11709 Remove, insert contents in s/aix4-2.h.
11710 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
11711 * s/bsd4-3.h: Rename to ...
11712 * s/bsd-common.h: ... this.
11713 * data.c:
11714 * doc.c:
11715 * ecrt0.c:
11716 * emacs.c:
11717 * fileio.c:
11718 * floatfns.c:
11719 * keyboard.c:
11720 * mem-limits.h:
11721 * print.c:
11722 * process.c:
11723 * sysdep.c:
11724 * syssignal.h:
11725 * systty.h:
11726 * syswait.h:
11727 * term.c:
11728 * unexec.c:
11729 * unexelf.c:
11730 * unexhp9k800.c:
11731 * m/hp800.h:
11732 * m/ibmrs6000.h:
11733 * m/mips.h:
11734 * m/vax.h:
11735 * s/darwin.h:
11736 * s/freebsd.h:
11737 * s/gnu.h:
11738 * s/ms-w32.h:
11739 * s/msdos.h:
11740 * s/netbsd.h:
11741 * s/template.h: Remove references to obsolete variables.
11742
11743 * Makefile.in: Add dependencies for all unexec files.
11744 (admindir): Remove unused variable.
11745 (UNEXEC_SRC): Remove references.
11746
117472008-06-25 Chong Yidong <cyd@stupidchicken.com>
11748
11749 * xfns.c (x_default_font_parameter): If Xft is available, first
11750 try Monospace-12 for the default font.
11751
117522008-06-25 Jason Rumney <jasonr@gnu.org>
11753
11754 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
11755
117562008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
11757
11758 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
11759
11760 * buffer.c (syms_of_buffer): Remove default-word-wrap.
11761
117622008-06-25 Juanma Barranquero <lekktu@gmail.com>
11763
11764 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
11765 <scroll-conservatively>: Fix typo in docstring.
11766
11767 * xselect.c (Fx_send_client_event): Doc fix.
11768
117692008-06-25 Kenichi Handa <handa@m17n.org>
11770
11771 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
11772
11773 * font.c (font_parse_fcname): Remove unused variables.
11774 (font_sort_entites): Delete the arg SPEC. Caller changed.
11775 Fix for the case of ! best_only.
11776 (font_delete_unmatched): Check DPI and AVGWIDTH too.
11777
11778 * lisp.h (Fstring_to_unibyte): EXFUN it.
11779
11780 * character.h (str_to_unibyte): Extern it.
11781
11782 * character.c (str_to_unibyte): New function.
11783
11784 * fns.c (Fstring_to_unibyte): New function.
11785 (syms_of_fns): Defsubr it.
11786
117872008-06-24 Kenichi Handa <handa@m17n.org>
11788
11789 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
11790 DPI too.
11791 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
11792
117932008-06-24 Andreas Schwab <schwab@suse.de>
11794
11795 * Makefile.in (${lispsource}loaddefs.el): Rename from
11796 ../lisp/loaddefs.el.
11797 (bootstrap-clean): Do what distclean does but don't remove
11798 Makefile.
11799 (distclean): Depend on bootstrap-clean and remove Makefile.
11800
118012008-06-24 Chong Yidong <cyd@stupidchicken.com>
11802
11803 * buffer.h (struct buffer): New member word_wrap.
11804
11805 * buffer.c (syms_of_buffer): New variables default-word-wrap and
11806 word-wrap.
11807 (init_buffer_once): Initialize them.
11808
11809 * dispextern.h (struct it): Replace bool truncate_lines_p with a
11810 line_wrap enum possessing three possible values.
11811
11812 * termopts.h: Replace truncate_partial_width_windows with
11813 Vtruncate_partial_width_windows.
11814
11815 * dispnew.c (direct_output_for_insert): Avoid direct output when
11816 inserting a space with word wrap on.
11817
11818 * indent.c (compute_motion): Obey integer values of
11819 truncate-partial-width-windows.
11820
11821 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
11822 replacing truncate_partial_width_windows.
11823 (init_iterator): If Vtruncate_partial_width_windows is an integer,
11824 truncate only if the window width is below that integer.
11825 (start_display, resize_mini_window, produce_stretch_glyph)
11826 (display_string, move_it_in_display_line_to): Use line_wrap.
11827 (back_to_previous_visible_line_start, reseat_1): Reset
11828 string_from_display_prop_p.
11829 (display_line): Extend default face to end of line when wrapping.
11830
118312008-06-24 Kim F. Storm <storm@cua.dk>
11832
11833 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
11834 to wrap continued lines at word boundaries.
11835
118362008-06-24 Jason Rumney <jasonr@gnu.org>
11837
11838 * font.c (Ffont_face_attributes): Multiply pixel size before point
11839 conversion to avoid multiplying rounding error.
11840
118412008-06-23 Jason Rumney <jasonr@gnu.org>
11842
11843 * w32term.c (x_draw_glyph_string_background)
11844 (x_draw_glyph_string): Remove old bdf font code.
11845
11846 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
11847
118482008-06-22 Kenichi Handa <handa@m17n.org>
11849
11850 * font.c (font_find_for_lface): Try the adstyle specified in
11851 the property of LFACE_FONT of LFACE (if any).
11852
118532008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 11854 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
11855
11856 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
11857
118582008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
11859
11860 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
11861 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
11862 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
11863 (witness-emacs): Remove.
11864 (lisp, shortlisp): Move loaddefs.el earlier.
11865 (mostlyclean): Forget about witness-emacs.
11866
118672008-06-22 Glenn Morris <rgm@gnu.org>
11868
11869 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
11870 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
11871
118722008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11873
11874 * Makefile.in (PRECOMP): Remove.
11875 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
11876 (witness-emacs): Run `compile-first'.
11877 (.el.elc): Use the new compile-onefile target.
11878
118792008-06-21 Kenichi Handa <handa@m17n.org>
11880
11881 * xftfont.c (xftfont_open): Handle QCembolden only when
11882 FC_EMBOLDEN is defined.
11883
118842008-06-21 Andreas Schwab <schwab@suse.de>
11885
11886 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
11887 (.el.elc): Likewise.
11888
118892008-06-21 Miles Bader <miles@gnu.org>
11890
11891 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
11892 build dir, not the lisp source dir.
11893
118942008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11895
11896 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
11897 (bootstrapclean): Remove.
11898 (.el.elc): New rule.
11899 (PRECOMP): New var.
11900 (../lisp/subdirs.el): Remove.
11901 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
11902 (witness-emacs): New target.
11903 (mostlyclean): Remove witness-emacs as well.
11904 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
11905 Add witness-emacs dependency.
11906
119072008-06-20 Chong Yidong <cyd@stupidchicken.com>
11908
11909 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
11910 defined by the font.
11911
119122008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11913
11914 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
11915 (bootstrap-clean): New target that keeps TAGS around.
11916 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
11917 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
11918
119192008-06-20 Jason Rumney <jasonr@gnu.org>
11920
11921 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
11922 Remove obsolete font code.
11923
11924 * w32font.c (font_matches_spec): Use csb bitfield from font signature
11925 to determine language support.
11926
119272008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11928
11929 * sysdep.c (cfsetspeed): New fun extracted from the code.
11930 (cfmakeraw): Move before first use.
11931
119322008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
11933
11934 * sysdep.c (cfmakeraw): Provide fallback implementation.
11935 (serial_configure): Provide fallback implementation of cfsetspeed.
11936
119372008-06-20 Kenichi Handa <handa@m17n.org>
11938
11939 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
11940 the pattern.
11941
11942 * fontset.c (fontset_from_font): Copy font_spec before changing
11943 the elements.
11944
11945 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
11946
119472008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11948
11949 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
11950 for explicit `font' parameters.
11951
11952 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
11953
119542008-06-19 Kenichi Handa <handa@m17n.org>
11955
11956 * frame.c: Include <ctype.h>.
11957 (x_set_font_backend): Allow spacing characters in the X resource
11958 for FontBackend.
11959
119602008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
11961
11962 * w32fns.c, xfns.c (Qfont_param): New var.
11963 (syms_of_w32fns): Initialize it.
11964 (x_default_font_parameter): Record explicit `font' into
11965 `font-parameter'.
11966
119672008-06-18 Kenichi Handa <handa@m17n.org>
11968
11969 * font.c (font_parse_xlfd): Fix previous change.
11970 (font_parse_fcname): Don't use :fc-unknown-spec.
11971 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
11972 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
11973 (font_add_log): Prepend the driver name to the resulting fonts.
11974
11975 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
11976 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
11977 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
11978
11979 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
11980 (QCembolden): New variables.
11981 (syms_of_xftfont): DEFSYM them.
11982 (xftfont_open): Call XftFontMatch. Don't trust the result of
11983 XftTextExtents8 if the pixel_size is less than 5.
11984
119852008-06-18 Andreas Schwab <schwab@suse.de>
11986
11987 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
11988 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
11989
119902008-06-18 Jason Rumney <jasonr@gnu.org>
11991
11992 * w32font.c (w32font_list, w32font_match): Add logging.
11993
11994 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
11995
119962008-06-17 Chong Yidong <cyd@stupidchicken.com>
11997
11998 * font.c (font_parse_fcname): Store divider characters for
11999 unknown-spec list. For known key symbols, intern using correct
12000 symbol name.
12001
120022008-06-17 Kenichi Handa <handa@m17n.org>
12003
12004 * xfaces.c (realize_default_face): If the frame is not on window
12005 system, set the fontset of face to nil.
12006
120072008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
12008
12009 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
12010
120112008-06-16 Juanma Barranquero <lekktu@gmail.com>
12012
12013 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
12014 (build_font_name_from_vector): Delete externs.
12015
12016 * xfaces.c (struct font_name): Don't declare.
12017
120182008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
12019
12020 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
12021
120222008-06-16 Chong Yidong <cyd@stupidchicken.com>
12023
12024 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
12025
120262008-06-16 Juanma Barranquero <lekktu@gmail.com>
12027
12028 * font.c (Ffont_spec): Fix usage in docstring.
12029 (Ffont_face_attributes): Doc fix.
12030
120312008-06-16 Andreas Schwab <schwab@suse.de>
12032
12033 * font.c (Ffont_face_attributes): Fix definition.
12034
120352008-06-16 Jason Rumney <jasonr@gnu.org>
12036
12037 * font.h (font_style_symbolic_from_value): Remove.
12038
12039 * font.c (font_style_symbolic_from_value): Remove.
12040 (font_style_symbolic): Revert to pre 2008-06-13 version.
12041
12042 * w32font.c (w32_to_fc_weight): New function.
12043 (w32font_full_name, logfont_to_fcname): Use it.
12044
120452008-06-16 Kenichi Handa <handa@m17n.org>
12046
12047 * font.c (font_check_object): Delete it.
12048 (font_clear_cache): Check if a font-object is alive.
12049 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
12050 font-object to nil.
12051 (font_close_object): Don't check FONT_CLOSE_OBJECT.
12052 (font_at): Don't call font_check_object.
12053 (Ffont_get): Return a symbol for :weight, :slant, and :width.
12054
120552008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
12056
12057 * puresize.h (BASE_PURESIZE): Increase to 1230000.
12058
120592008-06-16 Chong Yidong <cyd@stupidchicken.com>
12060
12061 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
12062
120632008-06-15 Chong Yidong <cyd@stupidchicken.com>
12064
12065 * font.c (font_parse_fcname): Only one decimal point.
12066 (font_unparse_fcname): Handle data in family and foundry indices
12067 as symbols, not strings.
12068 (font_unparse_gtkname, Ffont_face_attributes): New functions.
12069
12070 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
12071
12072 * font.h (font_unparse_gtkname): Add prototype.
12073
120742008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
12075
12076 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
12077
120782008-06-15 Andreas Schwab <schwab@suse.de>
12079
12080 * font.c (font_update_drivers): Fix crash when no drivers match.
12081
120822008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
12083
12084 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
12085 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
12086
120872008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
12088
12089 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
12090
120912008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
12092
12093 * process.c (Fserial_process_configure, Fprocess_send_eof):
12094 Use EQ to compare Lisp_Objects.
12095
120962008-06-13 Jason Rumney <jasonr@gnu.org>
12097
12098 * w32fns.c (Fw32_select_font): Remove old font API function.
12099
12100 * w32font.c (logfont_to_fcname): New function.
12101 (Fx_select_font): New font dialog function compatible with
12102 GTK/fontconfig version.
12103
12104 * font.c (font_style_symbolic_from_value): New function.
12105 (font_style_symbolic): Use it.
12106
12107 * font.h (font_style_symbolic_from_value): Declare new function.
12108
121092008-06-13 Juanma Barranquero <lekktu@gmail.com>
12110
12111 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
12112 <font-width-table>: Fix typos in docstrings.
12113
121142008-06-13 Daniel Engeler <engeler@gmail.com>
12115
12116 These changes add serial port access.
12117 * process.c: Add HAVE_SERIAL.
12118 (Fdelete_process, Fprocess_status, Fset_process_buffer)
12119 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
12120 (list_processes_1, select_wrapper, Fstop_process)
12121 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
12122 (status_notify): Modify to handle serial processes.
12123 [HAVE_SERIAL] (Fserial_process_configure)
12124 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
12125 New functions.
12126 * process.h (struct Lisp_Process): Add `type'.
12127 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
12128 New functions.
12129 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
12130 serial ports.
b71ac3dd 12131 (serial_open, serial_configure): New functions.
aac0c6e3
MR
12132 * w32.h: Add FILE_SERIAL.
12133 (struct _child_process): Add ovl_read, ovl_write.
12134
121352008-06-13 Kenichi Handa <handa@m17n.org>
12136
12137 * dispextern.h (enum lface_attribute_index): New member
12138 LFACE_FOUNDRY_INDEX.
12139
12140 * font.c (font_score): Delete arg alternate_families. Check only
12141 weight, slant, width, and size. Ignore the difference of alias
12142 style symbols.
12143 (font_sort_entites): Adjust for the above change. Reflect the
12144 order of font-driver to scores.
12145 (font_list_entities): Don't check alternate_familes here.
12146 (font_clear_prop): Handle foundry.
12147 (font_update_lface): Don't parse "foundry-family" form here.
12148 Handle FONT_FOUNDRY_INDEX.
12149 (font_find_for_lface): Likewise. Handle alternate families here.
12150 If registry is nil, try iso8859-1 and ascii-0.
12151 (font_open_for_lface): Pay attention to size in ENTITY.
12152 (font_open_by_name): Simplify by calling font_load_for_lface.
12153 (free_font_driver_list): Delete it.
12154 (font_update_drivers): Preserve the order of backends.
12155 (syms_of_font): Setting of sort_shift_bits adjusted for the change
12156 of font_score and font_sort_entites.
12157 (font_update_sort_order): Likewise.
12158
12159 * xfaces.c (LFACE_FOUNDRY): New macro.
12160 (check_lface_attrs): Check foundry.
12161 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
12162 (merge_face_vectors): Check foundry.
12163 (merge_face_ref): Likewise.
12164 (Finternal_set_lisp_face_attribute): Likewise.
12165 (x_update_menu_appearance): Likewise.
12166 (Finternal_get_lisp_face_attribute): Likewise.
12167 (lface_hash): Likewise.
12168 (lface_same_font_attributes_p): Likewise.
12169 (x_supports_face_attributes_p): Likewise.
12170 (tty_supports_face_attributes_p): Likewise.
12171 (Finternal_set_alternative_font_family_alist): Intern strings.
12172 (Finternal_set_alternative_font_registry_alist): Downcase strings.
12173 (realize_default_face): Set LFACE_FOUNDRY (lface).
12174
12175 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
12176 font-driver at first.
12177
12178 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
12179
121802008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12181
12182 * lread.c (Fload): Use xfree, not free on saved_doc_string.
12183
121842008-06-12 Jim Meyering <meyering@redhat.com>
12185
12186 Make unexec_free handle NULL the same way free does.
12187 * unexmacosx.c (unexec_free): Ignore a NULL argument.
12188
121892008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
12190
12191 * character.h (CHAR_TO_BYTE_SAFE): New macro.
12192 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
12193 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
12194 (WEAK_ALIAS): Simplify.
12195 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
12196 when searching a unibyte buffer.
12197
121982008-06-12 Chong Yidong <cyd@stupidchicken.com>
12199
12200 * xfns.c (Fx_select_font): Rename from x-font-dialog.
12201
122022008-06-12 Juanma Barranquero <lekktu@gmail.com>
12203
12204 * w32font.c: Include ctype.h.
12205
122062008-06-11 Jason Rumney <jasonr@gnu.org>
12207
12208 * w32font.c (w32font_encode_char): Detect missing glyphs that are
12209 misreported as space.
12210 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
12211 as aliases for registry iso10646-1.
12212
122132008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
12214
12215 * buffer.c (clone_per_buffer_values): Skip `name'.
12216
122172008-06-11 Chong Yidong <cyd@stupidchicken.com>
12218
12219 * font.c (font_parse_fcname): Fix last change; accept decimal
12220 points in font size.
12221
122222008-06-10 Jason Rumney <jasonr@gnu.org>
12223
12224 * w32uniscribe.c (add_opentype_font_name_to_list):
12225 Skip non unicode fonts.
12226
122272008-06-10 Chong Yidong <cyd@stupidchicken.com>
12228
12229 * xfns.c (Fx_font_dialog): New function.
12230
12231 * gtkutil.c (xg_dialog_response_cb): Rename from
12232 xg_file_response_callback.
12233 (pop_down_dialog): Rename from pop_down_file_dialog.
12234 (xg_get_file_name): Callers changed.
12235 (xg_get_font_name): New function.
12236
12237 * gtkutil.h (xg_get_font_name): Insert prototype.
12238
122392008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
12240
12241 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
12242 x_underline_minimum_display_offset.
12243 (syms_of_xdisp): Declare it here rather than in xterm.c.
12244 * dispextern.h (underline_minimum_offset): Declare it.
12245 * w32term.c (x_draw_glyph_string): Use it.
12246 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
12247 (syms_of_xterm): Don't declare it any more.
12248 (x_draw_glyph_string): Adjust to the new name.
12249
8719abec 122502008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
12251
12252 * xterm.c (x_underline_minimum_display_offset): New var.
12253 (x_draw_glyph_string): Use it.
12254 (syms_of_xterm): Declare it.
12255
122562008-06-10 Chong Yidong <cyd@stupidchicken.com>
12257
12258 * font.c (font_parse_fcname): Accept GTK-style font names too.
12259
122602008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
12261
12262 * dired.c (file_name_completion): Don't return t if the match is exact
12263 but with different capitalization.
12264 * minibuf.c (Ftry_completion): Simplify.
12265
12266 * window.c (Vwindow_point_insertion_type): New var.
12267 (set_window_buffer): Use it.
12268 (syms_of_window): Init and export it to Lisp.
12269
122702008-06-10 Kenichi Handa <handa@m17n.org>
12271
12272 * font.h (font_intern_prop): Prototype adjusted.
12273
12274 * font.c (font_intern_prop): New arg force_symbol.
12275 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
12276 Adjust for the change of font_intern_prop.
12277
12278 * ftfont.c (ftfont_pattern_entity):
12279 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
12280 (w32_registry):
12281 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
12282 the change of font_intern_prop.
12283
122842008-06-09 Juanma Barranquero <lekktu@gmail.com>
12285
12286 * w32menu.c (digest_single_submenu): Declare extern.
12287
122882008-06-09 Jason Rumney <jasonr@gnu.org>
12289
12290 * w32term.c (x_make_frame_visible): Use alternate restore flags.
12291
12292 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
12293 (parse_single_submenu): Remove.
12294 (digest_single_submenu): Remove.
12295 (syms_of_w32menu): Don't initialise variables that have moved
12296 to menu.c.
12297 (set_frame_menubar): Sync with version in xmenu.c.
12298 (w32_menu_show): Sync with xmenu_show in xmenu.c.
12299
12300 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
12301 Make static again.
12302
123032008-06-09 Jason Rumney <jasonr@gnu.org>
12304
12305 Changes to w32 files related to the move of common menu code
12306 to menu.c on 2008-06-08 by Chong Yidong.
12307
12308 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
12309 defs to w32gui.h.
12310 (single_keymap_panes, push_menu_item, push_menu_pane):
12311 Make globally visible.
12312
12313 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
12314 (local_free, malloc_widget_value, free_widget_value)
12315 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
12316 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
12317 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
12318 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
12319 (menu_items, menu_items_allocated, menu_items_used)
12320 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
12321 (init_menu_items, finish_menu_items, discard_menu_items)
12322 (grow_menu_items, push_submenu_start, push_submenu_end)
12323 (push_left_right_boundary, push_menu_pane, push_menu_item)
12324 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
12325 (free_menubar_widget_tree_value, parse_single_submenu)
12326 (update_submenu_strings): Remove functions.
12327 (xmalloc_widget_value): Remove and declare extern.
12328
12329 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
12330 (OBJ1): Build it.
12331
12332 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
12333 (local_heap, local_alloc, local_free, malloc_widget_value)
12334 (free_widget_value): Define here.
12335
123362008-06-09 Kenichi Handa <handa@m17n.org>
12337
12338 * font.h (Qascii_0): Extern it.
12339
12340 * font.c (Qascii_0): New variable.
12341 (syms_of_font): DEFSYM it.
12342 (font_open_by_name): If the registry "iso8859-1" fails, try also
12343 "ascii-0".
12344
12345 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
12346
123472008-06-08 Kenichi Handa <handa@m17n.org>
12348
12349 * .gdbinit (xfont): New command.
12350
123512008-06-08 Andreas Schwab <schwab@suse.de>
12352
12353 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
12354 * Makefile.in (menu.o): Update dependencies.
12355
12356 * Makefile.in (obj): Always add menu.o.
12357 * emacs.c (main): Always call syms_of_menu.
12358 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
12359
123602008-06-08 Chong Yidong <cyd@stupidchicken.com>
12361
12362 * Makefile.in: Compile menu.c.
12363
12364 * lisp.h: Declare syms_of_menu.
12365
12366 * emacs.c (main): Call syms_of_menu.
12367
12368 * keyboard.h: Relocate platform-independent menu definitions from
12369 xmenu.c.
12370
12371 * menu.c: New file. Relocate platform-independent menu
12372 definitions from xmenu.c. Suggested by Adrian Robert.
12373
12374 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 12375 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
12376 (menu_items_used, menu_items_n_panes)
12377 (menu_items_submenu_depth): Move to keyboard.h.
12378 (init_menu_items, finish_menu_items, unuse_menu_items)
12379 (discard_menu_items, restore_menu_items, save_menu_items)
12380 (grow_menu_items, push_submenu_start, push_submenu_end)
12381 (push_left_right_boundary, push_menu_pane, push_menu_item)
12382 (keymap_panes, single_keymap_panes, single_menu_item)
12383 (list_of_panes, list_of_items, find_and_call_menu_selection)
12384 (xmalloc_widget_value, free_menubar_widget_value_tree)
12385 (parse_single_submenu, digest_single_submenu)
12386 (update_submenu_strings): Move to menu.c.
12387
123882008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
12389
12390 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
12391
123922008-06-06 Miles Bader <miles@gnu.org>
12393
12394 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
12395 face, not frame default.
12396
123972008-06-05 Martin Rudalics <rudalics@gmx.at>
12398
12399 * window.c (pop_up_windows, pop_up_frames)
12400 (display_buffer_reuse_frames, Vpop_up_frame_function)
12401 (Vdisplay_buffer_function, Veven_window_heights)
12402 (Vspecial_display_buffer_names, Vspecial_display_regexps)
12403 (Vspecial_display_function, Vsame_window_buffer_names)
12404 (Vsame_window_regexps, split_height_threshold)
12405 (Vsplit_window_preferred_function): Move those vars to window.el.
12406 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
12407 (Fdisplay_buffer): Move those functions to window.el.
12408 (syms_of_window): Remove corresponding declarations.
12409 (display_buffer): New function.
12410 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
12411 * dispnew.c (Flast_nonminibuf_frame): New function.
12412 * buffer.c (Fpop_to_buffer): Move to window.el.
12413
124142008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12415
12416 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
12417
124182008-06-05 Kenichi Handa <handa@m17n.org>
12419
12420 * coding.c (detect_coding): Fix previous change.
12421 (detect_coding_system): Likewise.
12422
124232008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12424
12425 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
12426
12427 * keymap.c (Vminibuffer_local_filename_must_match_map):
12428 Rename from Vminibuffer_local_must_match_filename_map.
12429 (syms_of_keymap):
12430 * minibuf.c (Fcompleting_read): Adjust accordingly.
12431 * commands.h: Rename declaration as well.
12432
124332008-06-05 Kenichi Handa <handa@m17n.org>
12434
12435 * font.c (Ffont_spec): Don't use font_parse_family_registry for
12436 family name.
12437 (Ffont_put): Likewise.
12438
12439 * fontset.c (fontset_find_font): Call font_open_for_lface with the
12440 current font-spec.
12441
12442 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
12443 is unspecified.
12444
12445 * xfaces.c (realize_x_face): If the font-related face attributes
12446 are the same as those of default face, realize a new fontset from
12447 default->fontset.
12448 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
12449
124502008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12451
12452 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
12453 (move_it_in_display_line): New wrapper.
12454
12455 * window.c (window_scroll_pixel_based_preserve_x)
12456 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
12457 (window_scroll_pixel_based, window_scroll_line_based):
12458 Use them to preserve column positions.
12459 (syms_of_window): Initialize them.
12460
12461 * indent.c (Fvertical_motion): Extend first arg to allow passing an
12462 (HPOS . VPOS) pair.
12463
12464 * dispextern.h (move_it_in_display_line): Declare.
12465
124662008-06-05 Juanma Barranquero <lekktu@gmail.com>
12467
12468 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
12469 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
12470 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
12471
124722008-06-04 Juanma Barranquero <lekktu@gmail.com>
12473
12474 * window.c (Fset_window_parameter): Doc fix.
12475 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
12476
124772008-06-04 Joakim Verona <joakim@verona.se>
12478
12479 * window.h (struct window): Add new member window_parameters.
12480
12481 * window.c (Fwindow_parameters, Fwindow_parameter)
12482 (Fset_window_parameter): New defuns.
12483 (syms_of_window): Defsubr the new defuns.
12484 (make_window): Initialize window_parameters to nil.
12485
124862008-06-04 John Paul Wallington <jpw@pobox.com>
12487
12488 * eval.c (Fdefmacro): Doc fix.
12489
124902008-06-04 Kenichi Handa <handa@m17n.org>
12491
12492 * coding.c (detect_coding): Fix handling of coding->head_ascii.
12493 Be sure to call setup_coding_system when we find a proper coding system.
12494 (detect_coding_system): Fix handling of coding->head_ascii.
12495
124962008-06-03 Andreas Schwab <schwab@suse.de>
12497
12498 * font.c (font_prop_validate_spacing): Fix last change.
12499
125002008-06-03 Kenichi Handa <handa@m17n.org>
12501
12502 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
12503 (font_parse_fcname): Fix handling of unknown key.
12504
12505 * xfont.c (xfont_list): Try an alias.
12506
12507 * charset.c (char_charset): Return NULL if the arg charset_list is
12508 specified and C doesn't belong to any of them.
12509
125102008-06-02 Chip Coldwell <coldwell@redhat.com>
12511
12512 * font.c (font_pixel_size): Don't take cdr of an integer.
12513
125142008-06-02 Jim Meyering <meyering@redhat.com>
12515
12516 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
12517 * alloc.c (xfree): Return right away for a NULL arg.
12518 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
12519 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
12520 * mac.c (create_apple_event_from_event_ref): Likewise.
12521 (create_apple_event_from_drag_ref, cfstring_create_normalized):
12522 Likewise.
12523 * doprnt.c (doprnt1): Likewise.
12524 * frame.c (frame): Likewise.
12525 * keyboard.c (wipe_kboard): Likewise.
12526 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
12527 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
12528 * term.c (tty_default_color_capabilities, maybe_fatal)
12529 (delete_tty): Likewise.
12530 * w16select.c (string): Likewise.
12531 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
12532 * w32bdf.c (w32_free_bdf_font): Likewise.
12533 * w32fns.c (w32_unload_font): Likewise.
12534 * w32font.c (w32font_close): Likewise.
12535 * window.c (size_window): Likewise.
12536 * xselect.c (receive_incremental_selection): Likewise.
12537 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
12538 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
12539 * w32.c (stat): Likewise.
12540
12541 Remove useless if-before-free tests.
12542 * editfns.c (Fset_time_zone_rule): Likewise.
12543 * lread.c (nosuffix): Likewise.
12544 * ralloc.c (get_bloc): Likewise.
12545 * regex.c (reg_free): Likewise.
12546 * xftfont.c (xftfont_open, xftfont_close): Likewise.
12547 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
12548 * xsmfns.c (smc_save_yourself_CB): Likewise.
12549
125502008-06-02 Kenichi Handa <handa@m17n.org>
12551
12552 * font.c (font_find_for_lface): Handle float font size.
12553 (font_open_for_lface): Likewise.
12554
12555 * xfaces.c (x_supports_face_attributes_p): Check face->font before
12556 comparing the properties.
12557
125582008-06-01 Jason Rumney <jasonr@gnu.org>
12559
12560 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
12561 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
12562 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
12563 Don't add empty script list.
12564 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
12565
125662008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
12567
12568 * Makefile.in (dot, dotdot): Remove, update users.
12569 ".." has been used elsewhere in the file for a long time.
12570 (LIBXT_STATIC): Remove conditional based on unused variable.
12571
125722008-06-01 Miles Bader <miles@gnu.org>
12573
12574 * xfaces.c (Vface_remapping_alist): New variable.
12575 (syms_of_xfaces): Initialize it.
12576 (enum named_merge_point_kind): New type.
12577 (struct named_merge_point): Add `named_merge_point_kind' field.
12578 (push_named_merge_point): Make cycle detection respect different
12579 named-merge-point kinds.
12580 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
12581 Remove face-name alias resolution.
12582 (lface_from_face_name): New definition using
12583 `lface_from_face_name_no_resolve'.
12584 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
12585 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
12586 (get_lface_attributes): New definition that layers face-remapping on
12587 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
12588 (lookup_basic_face): New function.
12589 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
12590 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
12591 `get_lface_attributes'.
12592 (face_at_buffer_position): Use `lookup_basic_face' to lookup
12593 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
12594 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
12595
12596 * xdisp.c (init_iterator): Pass base_face_id through
12597 `lookup_basic_face' when we actually use it as a face-id.
12598 (handle_single_display_prop): Use `lookup_basic_face' to lookup
12599 DEFAULT_FACE_ID.
12600
12601 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
12602 lookup the initial face-id.
12603
12604 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
12605
126062008-06-01 Juanma Barranquero <lekktu@gmail.com>
12607
12608 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
12609 (Fremove_text_properties): Fix typos in docstrings.
12610
126112008-05-31 Kenichi Handa <handa@m17n.org>
12612
12613 * font.c (font_list_entities): Fix the car part of data to be
12614 stored in the cache.
12615
12616 * ftfont.c (ftfont_font_format): Don't use strcasestr.
12617
126182008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
12619
12620 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
12621 Add a `test' argument so another predicate than `equal' can be used.
12622 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
12623 (map_char_table): Remove unused vars `c' and `i'.
12624 * lisp.h (Foptimize_char_table): Adjust declaration.
12625 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
12626
126272008-05-30 Kenichi Handa <handa@m17n.org>
12628
12629 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
12630 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
12631 defined.
12632
126332008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
12634
12635 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
12636 (Fmake_variable_frame_local): Disallow mixing buffer-local and
12637 frame-local settings for the same variable.
12638
126392008-05-30 Kenichi Handa <handa@m17n.org>
12640
12641 * fontset.c (Ffont_info): Move to font.c.
12642 (syms_of_fontset): Delete defsubr of Sfont_info.
12643
12644 * font.c (font_style_to_value, font_score): Delete casting of the
12645 args to xstcasecmp.
12646 (register_font_driver): Increment num_font_drivers only when
12647 registering the driver globally.
12648 (Ffont_info): Move from fontset.c. Handle a font object too.
12649 (syms_of_font): Defsubr Sfont_info.
12650
126512008-05-29 Kenichi Handa <handa@m17n.org>
12652
12653 * coding.h (enum define_coding_utf8_arg_index): New enum.
12654 (enum coding_attr_index): Change coding_attr_utf_16_bom to
12655 coding_attr_utf_bom.
12656 (enum utf_bom_type): Rename from utf_16_bom_type.
12657 (struct utf_16_spec): Adjust for the above change.
12658 (struct coding_system): Add utf_8_bom in `spec' union.
12659
12660 * coding.c (CODING_UTF_8_BOM): New macro.
12661 (enum coding_category): Delete coding_category_utf_8, add
12662 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
12663 coding_category_utf_8_sig.
12664 (CATEGORY_MASK_UTF_8): Delete it.
12665 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
12666 (CATEGORY_MASK_UTF_8_SIG): New macros.
12667 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
12668 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
12669 CATEGORY_MASK_UTF_8_SIG.
12670 (CATEGORY_MASK_UTF_8): New macro.
12671 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
12672 (detect_coding_utf_8): Check BOM.
12673 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
12674 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
12675 (encode_coding_utf_16): Likewise.
12676 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
12677 (detect_coding, detect_coding_system): Handle utf-8-auto.
12678 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
12679 (syms_of_coding): Fix setting up of Vcoding_category_table.
12680
126812008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
12682
12683 * process.c (Faccept_process_output): If `millisec' is non-nil,
12684 `seconds' default to 0.
12685 (wait_reading_process_output): Also return non-nil if we read output
12686 from a non-running process.
12687
126882008-05-29 Jason Rumney <jasonr@gnu.org>
12689
12690 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
12691 `raster' specified.
12692 (add_font_entity_to_list): Allow non-opentype truetype fonts back
12693 in the uniscribe backend, but disallow any font that has no
12694 unicode subrange support.
12695
126962008-05-29 Juanma Barranquero <lekktu@gmail.com>
12697
12698 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
12699 Fix typos in docstrings.
12700
127012008-05-29 Kenichi Handa <handa@m17n.org>
12702
12703 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
12704 (Fx_family_fonts): Set frame correctly.
12705
127062008-05-28 Jason Rumney <jasonr@gnu.org>
12707
12708 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
12709
127102008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
12711
12712 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
12713 calling build_annotations.
12714
127152008-05-28 Juanma Barranquero <lekktu@gmail.com>
12716
12717 * coding.c (Fdecode_coding_region, Fencode_coding_region)
12718 (Fencode_coding_string):
12719 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
12720 <latin-extra-code-table>: Fix typos in docstrings.
12721 (syms_of_coding) <coding-system-alist>: Doc fix.
12722 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
12723
127242008-05-28 Kenichi Handa <handa@m17n.org>
12725
12726 * fontset.c (Ffont_info): Don't call font_close_object.
12727
12728 * font.c (font_parse_family_registry): Use Ffont_put to validate
12729 foundry and family.
12730 (font_delete_unmatched): Don't check spacing.
12731 (font_list_entities): Add spacing to the spec to list fonts.
12732
12733 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
12734 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
12735
12736 * coding.c (encode_coding_raw_text): Fix previous change.
12737 (encode_coding_object): When the dst_object is a buffer and is
12738 different from src_object, move gap to PT.
12739
127402008-05-27 Chong Yidong <cyd@stupidchicken.com>
12741
12742 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
12743
127442008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
12745
12746 * coding.c (encode_coding_raw_text): Set coding->produced_char for
12747 all branches. Compute it differently.
12748
12749 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
12750
127512008-05-27 Juanma Barranquero <lekktu@gmail.com>
12752
12753 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
12754 into "else if () ... else ...".
12755
127562008-05-27 Jason Rumney <jasonr@gnu.org>
12757
12758 * w32font.c (w32font_open_internal): Determine if glyph indices
12759 are likely to work here.
12760
127612008-05-27 Chong Yidong <cyd@stupidchicken.com>
12762
12763 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
12764 draw overlap glyphs with appropriate highlighting.
12765
127662008-05-27 Kenichi Handa <handa@m17n.org>
12767
12768 * xfont.c (xfont_open): Fix calculation of font->average_width.
12769
127702008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
12771
12772 * casefiddle.c (casify_object): Try to guess better whether the
12773 argument is a byte or a char.
12774
127752008-05-26 Andreas Schwab <schwab@suse.de>
12776
12777 * xselect.c (x_reply_selection_request): Properly handle format == 32.
12778 Always send multiples of format size.
12779
12780 * xterm.c (x_set_frame_alpha): Fix type mismatch.
12781
127822008-05-26 Jason Rumney <jasonr@gnu.org>
12783
12784 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
12785 (compute_metrics): Don't set failure if we just cleared the cache.
12786 (w32_weight_table): Remove unused variable.
12787 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
12788 backwards compatibility.
12789
127902008-05-25 Kenichi Handa <handa@m17n.org>
12791
12792 * w32term.c (x_draw_glyph_string):
12793 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
12794
12795 * xfaces.c: Delete unused function prototypes.
12796 (xstrlwr, font_frame): Delete them.
12797 (clear_face_cache): Delete unused variable.
12798
12799 * xftfont.c (xftfont_open): Delete unused variable.
12800 If underline_thickness is not 1, adjust underline_position.
12801
12802 * ftxfont.c (ftxfont_open): Delete unused variable.
12803
12804 * fontset.c (face_for_char): Optimize for the case of no charset
12805 property.
12806
12807 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
12808 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
12809 (otf_open, font_otf_capability, generate_otf_features)
12810 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
12811 Comment out by surrounding "#if 0" and "#endif" for the moment.
12812 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
12813 (syms_of_font): Codes for accessing above commented out.
12814
128152008-05-24 Eli Zaretskii <eliz@gnu.org>
12816
12817 * w32proc.c: Include dispextern.h.
12818
12819 * w32.c: Include dispextern.h.
12820
128212008-05-23 Juanma Barranquero <lekktu@gmail.com>
12822
12823 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
12824 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
12825 Fix typos in docstrings.
12826
128272008-05-23 Jason Rumney <jasonr@gnu.org>
12828
12829 * xsmfns.c: Remove includes that are already included by config.h.
12830
128312008-05-23 Kenichi Handa <handa@m17n.org>
12832
12833 * charset.c (Qemacs, charset_emacs): New variables.
12834 (char_charset): Fix for non-Unicode characters.
12835 (syms_of_charset): Define charset_emacs.
12836
12837 * w32term.c (x_draw_glyph_string): Be sure to update
12838 s->underline_thickness and s->underline_position. Be sure to draw
12839 underline within the current line area.
12840
12841 * xterm.c (x_draw_glyph_string): Be sure to update
12842 s->underline_thickness and s->underline_position. Be sure to draw
12843 underline within the current line area.
12844
12845 * fontset.c: Delete unused variables and add casting for char *
12846 throughout the file.
12847 (fontset_font): Try the fallback fonts of the current fontset
12848 before consulting the default fontset.
12849
12850 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
12851
12852 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
12853
128542008-05-22 Jason Rumney <jasonr@gnu.org>
12855
12856 * font.c: Don't include strings.h.
12857
12858 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
12859
12860 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
12861 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
12862 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
12863 to call xstrcasecmp.
12864
12865 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
12866
12867 * fontset.c (fs_query_fontset): Use xstrcasecmp.
12868
12869 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
12870
12871 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
12872
128732008-05-22 Kenichi Handa <handa@m17n.org>
12874
12875 * puresize.h (BASE_PURESIZE): Increase to 1220000.
12876
12877 * font.c (font_prop_validate_style): Adjust for the format
12878 change of font_style_table.
12879
12880 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
12881 two args.
12882
12883 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
12884 two args.
12885
128862008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
12887
12888 * minibuf.c (keys_of_minibuf): Delete.
12889 * lisp.h (keys_of_minibuf): Delete.
12890 * emacs.c (main): Don't call keys_of_minibuf.
12891
128922008-05-22 Kenichi Handa <handa@m17n.org>
12893
12894 * ftfont.c (ftfont_resolve_generic_family): Rename from
12895 ftfont_list_generic_family. Return a single family for each
12896 generic family.
12897 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
12898 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
12899 Call font_add_log.
12900 (ftfont_match): Call font_add_log.
12901
12902 * font.h (Ffont_xlfd_name): EXFUN adjusted.
12903 (FONT_DEBUG): Define it.
12904 (font_add_log): Extern it.
12905 (font_assert): Rename from xassert.
12906
12907 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
12908 (xfont_list_family): Call font_add_log.
12909 (xfont_match): Likewise.
12910 (memq_no_quit): Delete.
12911
12912 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
12913 call of Ffont_xlfd_name.
12914
12915 * xfaces.c (struct table_entry, slant_table, weight_table)
12916 (swidth_table): Move to font.c.
12917
12918 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
12919 xassert are changed to font_assert. Delete many unused variables.
12920 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
12921 New variables.
12922 (struct table_entry): Move from xfaces.c and modified.
12923 (weight_table, slant_table, width_table): Move from xfaces.c and
12924 contents adjusted for the change of struct table_entry.
12925 (font_style_to_value, font_style_symbolic): Adjust for the
12926 format change of font_style_table.
12927 (font_parse_family_registry): Don't overwrite existing foundry and
12928 family of font_spec.
12929 (font_score): Fix calculation of diff for sizes.
12930 (font_sort_entites): Call font_add_log.
12931 (font_delete_unmatched): Return a newly created list.
12932 (font_list_entities): Fix previous change. Call font_add_log.
12933 (font_matching_entity, font_open_entity, font_close_entity):
12934 Call font_add_log.
12935 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
12936 (Finternal_set_font_style_table): Delete.
12937 (BUILD_STYLE_TABLE): New macro.
12938 (build_style_table): New function.
12939 (Vfont_log, font_log_env_checked): New variables.
12940 (font_add_log): New function.
12941 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
12942 Declare Lisp variables "font-weight-table", "font-slant-table",
12943 "font-width-table", and "font-log". Initialize font_style_table.
12944
129452008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
12946
12947 * xterm.c (x_set_frame_alpha): Move declarations before statements.
12948
129492008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 12950 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
12951
12952 * frame.c (Qalpha): Add a new frame parameter `alpha'.
12953 (Vframe_alpha_lower_limit): New variable.
12954 (x_set_alpha): New function.
12955
12956 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
12957
12958 * xfns.c (x-create-frame, Qalpha):
12959 Initialize the frame parameter `alpha'.
12960 * xterm.c (OPAQUE, OPACITY): New.
12961 (x_set_frame_alpha): New function.
12962 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
12963
12964 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
12965 * w32fns.c (w32_frame_parm_handlers): Likewise.
12966
129672008-05-20 Jason Rumney <jasonr@gnu.org>
12968
12969 * w32font.c (add_font_entity_to_list): Don't add non-opentype
12970 truetype fonts to opentype list.
12971
129722008-05-20 Juanma Barranquero <lekktu@gmail.com>
12973
12974 * fontset.c (Ffontset_info): Doc fix.
12975 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
12976 <ignore-relative-composition>: Fix typos in docstrings.
12977
12978 * font.c (syms-of-font) <font-encoding-alist>:
12979 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
12980 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
12981 (Ffont_otf_alternates): Doc fixes.
12982
129832008-05-20 Kenichi Handa <handa@m17n.org>
12984
12985 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
12986 font.h through out the file.
12987 (FONT_DRIVERS): Rename from FONTOBJ.
12988 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
12989 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
12990
12991 * emacs.c (main): Call syms_of_font unconditionally.
12992
12993 * font.h (find_font_encoding): Extern it.
12994
12995 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
12996 fontset.c.
194d44e7 12997 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
12998 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
12999 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
13000 only when HAVE_WINDOW_SYSTEM is defined.
13001 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
13002 when HAVE_WINDOW_SYSTEM is defined.
13003
13004 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
13005 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
13006
13007 * xfaces.c: Include font.h unconditionally.
13008 (merge_face_ref, merge_face_vectors)
13009 (Finternal_set_lisp_face_attribute): Cancel the previous change.
13010
130112008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
13012
13013 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
13014 indirect_variable.
13015 * eval.c (lisp_indirect_variable): New fun.
13016 (Fuser_variable_p): Use it.
13017
130182008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
13019
13020 * lisp.h (indirect_variable):
13021 * data.c (indirect_variable, let_shadows_buffer_binding_p):
13022 Use Lisp_Symbol pointers rather than Lisp_Object.
13023 Adjust callers.
13024 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
13025 To this end, change calling-convention.
13026
13027 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
13028 if some non-hidden buffers are selected by string&pred.
13029
130302008-05-19 Chong Yidong <cyd@stupidchicken.com>
13031
13032 * process.c (wait_reading_process_output): Always check status
13033 when in batch mode.
13034
130352008-05-19 Kenichi Handa <handa@m17n.org>
13036
13037 * font.c (font_list_entities): Fix handling of cache.
13038 (font_matching_entity): Likewise.
13039
13040 * ftfont.c (cs_iso8859_1): Delete.
13041 (ft_face_cache): New variable.
13042 (struct ftfont_info): New member fc_charset_idx.
13043 (ftfont_build_basic_charsets): Delete.
13044 (fc_charset_table): New variable.
13045 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
13046 . FC_CHARSET_IDX) as :font-entity property in the font entity.
13047 Callers changed.
13048 (ftfont_lookup_cache, ftfont_get_charset): New functions.
13049 (ftfont_spec_pattern): New argument fc_charset_idx.
13050 Check registry more rigidly. Change callers.
13051 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
13052 change of :font-entity property of the font.
13053
13054 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
13055 property of the font.
13056
130572008-05-18 Juanma Barranquero <lekktu@gmail.com>
13058
13059 * coding.c (Fcoding_system_p): Rename argument to match docstring.
13060 (Funencodable_char_position, Fcheck_coding_systems_region)
13061 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
13062 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
13063 (Ffind_operation_coding_system, Fset_coding_system_priority)
13064 (Fcoding_system_eol_type): Doc fixes.
13065
130662008-05-17 Glenn Morris <rgm@gnu.org>
13067
13068 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
13069
130702008-05-16 Eli Zaretskii <eliz@gnu.org>
13071
13072 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
13073 and st_gid.
13074
13075 * frame.c (Fdelete_frame): Don't call font_update_drivers if
13076 HAVE_WINDOW_SYSTEM is not defined.
13077
13078 * xfaces.c (merge_face_ref, merge_face_vectors)
13079 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
13080 HAVE_WINDOW_SYSTEM is defined.
13081 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
13082
130832008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
13084
13085 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
13086
130872008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13088
13089 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
13090
130912008-05-15 Kenichi Handa <handa@m17n.org>
13092
13093 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
13094 preference.
13095
130962008-05-15 Glenn Morris <rgm@gnu.org>
13097
13098 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
13099
131002008-05-15 Chong Yidong <cyd@stupidchicken.com>
13101
13102 * fns.c (init_fns): Don't initialize weak_hash_tables here.
13103 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
13104
13105 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
13106
131072008-05-15 Kenichi Handa <handa@m17n.org>
13108
13109 * ftfont.c (ftfont_list): Downcase family name to check generic
13110 families.
13111
13112 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
13113 font-spec for QCfont value.
13114
13115 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
13116 buffer. Check the return value of it.
13117
131182008-05-14 Jason Rumney <jasonr@gnu.org>
13119
13120 * w32term.c (w32_get_glyph_overhangs): Remove.
13121 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
13122
131232008-05-14 Kenichi Handa <handa@m17n.org>
13124
13125 * font.c (font_prop_validate): Make nil a valid value.
13126 (font_clear_cache): Check if the cached vector of entities is nil
13127 or not.
13128
131292008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13130
13131 * emacs.c (main_thread): Conditionalize on
13132 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
13133 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
13134
13135 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
13136 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
13137 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
13138
131392008-05-14 Kenichi Handa <handa@m17n.org>
13140
13141 * coding.c (detect_coding_iso_2022): Ignore a coding category that
13142 has no corresponding coding system.
13143
131442008-05-14 Jason Rumney <jasonr@gnu.org>
13145
13146 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
13147
13148 * w32font.h (w32font_open_internal): Update declaration.
13149
13150 * w32font.c (w32font_open_internal): Change last argument from
13151 w32font_info struct to font object. Fill in font object from
13152 font_entity. Get Outline metrics if possible. Use them to
13153 calculate underline position and thickness. Use xlfd name as name
13154 property. Don't set codepage.
13155 (w32font_open): Pass font_object to w32font_open_internal. Don't
13156 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
13157 (w32font_draw): Use s->font.
13158 (clear_cached_metrics): Don't clear non-existent blocks.
13159
13160 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
13161 font was not found.
13162 (x_draw_glyph_string): Use underline position and thickness from font.
13163
13164 * w32uniscribe.c (uniscribe_open): Pass font_object to
13165 w32font_open_internal.
13166
131672008-05-14 Kenichi Handa <handa@m17n.org>
13168
13169 These changes are to delete all legacy font-handling codes, and
13170 make Emacs use only font-backends.
13171
13172 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
13173 (frame.o, image.o, print.o): Depend on $(FONTSRC).
13174
13175 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
13176
13177 * charset.h (Vcharset_non_preferred_head)
13178 (Vcurrent_iso639_language): Extern them.
13179
13180 * charset.c (Vcharset_non_preferred_head): New variable.
13181 (Vcurrent_iso639_language): New variable.
13182 (syms_of_charset): Declare it as a Lisp variable.
13183 (char_charset): Don't check non preferred charsets. As a last
13184 resort, return charset_unicode.
13185 (Fset_charset_priority): Update Vcharset_non_preferred_head.
13186
13187 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
13188 conditionals. Don't check enable_font_backend. Delete all codes
13189 used only when USE_FONT_BACKEND is not defined.
13190
13191 * dispextern.h (struct glyph_string): Change type of `font' to
13192 `struct font *'.
13193 (struct glyph_string): New member underline_position and
13194 underline_thickness.
13195 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
13196 (struct face): Change type of `font' to `struct font *'. Remove
13197 members `font_name', `font_info_id'.
13198 (per_char_metric, encode_char): Delete externs.
13199 (calc_pixel_width_or_height): Adjust the prototype.
13200
13201 * emacs.c (enable_font_backend): Delete extern.
13202 (main): Don't set enable_font_backend. Don't check the command
13203 line argument "-disable-font-backend".
13204
13205 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
13206 (enum font_property_index): New members FONT_DPI_INDEX,
13207 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
13208 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
13209 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
13210 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
13211 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
13212 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
13213 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
13214 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
13215 (struct font_spec, struct font_entity): New structs.
13216 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
13217 (struct font): Many members from old "struct font_info" moved to
13218 here. Members font and entity deleted.
13219 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
13220 the new font-related objects.
13221 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
13222 (CHECK_FONT_GET_OBJECT): Likewise.
13223 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
13224 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
13225 (struct font_driver): New members case_sensitive anc check. Type
13226 of the member list and open changed.
13227 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
13228 (font_symbolic_width, font_find_object, font_get_spec)
13229 (font_set_lface_from_name): Delete extern.
13230 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
13231
13232 * font.c: Include <strings.h>.
13233 (enable_font_backend): Delete it.
13234 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
13235 (CHECK_VALIDATE_FONT_SPEC): Delete it.
13236 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
13237 (null_string): Delete it.
13238 (null_vector): Make it static.
13239 (font_family_alist): Delete it.
13240 (Qnormal): Extern it.
13241 (QCextra, QClanguage): Delete it.
13242 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
13243 (font_make_spec, font_make_entity, font_make_object)
13244 (font_intern_prop): Renamed from intern_downcase. Don't downcase
13245 the string. Callers changed.
13246 (font_pixel_size): Adjusted for the format change of font-related
13247 objects.
13248 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
13249 (font_style_to_value, font_style_symbolic): New function.
13250 (build_font_family_alist): Delete it.
13251 (font_registry_charsets): Use Fassoc_string instead of
13252 assq_no_quit.
13253 (font_prop_validate_symbol): Don't return null_string.
13254 (font_prop_validate_style): Adjusted for the change of
13255 style-related values in a font vector.
13256 (font_property_table): Delete entries for QClanguage and
13257 QCantialias, add entries for QCavgwidth.
13258 (get_font_prop_index): Delete the 2nd argument FROM.
13259 (font_prop_validate): Arguments changed.
13260 (font_put_extra): Adjusted for the change of font-related objects.
13261 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
13262 (font_parse_fcname, font_unparse_fcname)
13263 (font_prepare_composition): Likewise.
13264 (font_parse_family_registry): Renamed from font_merge_old_spec.
13265 (otf_open): Delete the 1st arg entity.
13266 (font_otf_capability): Adjusted for the above change.
13267 (font_score): New arg alternate_families. Adjusted for the change
13268 of font-related objects.
13269 (font_sort_entites): New arg best_only.
13270 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
13271 Delete them.
13272 (font_match_p): Check alternate families.
13273 (font_find_object): Delete it.
13274 (font_check_object): New function.
13275 (font_clear_cache): Adjusted for the change of font-related objects.
13276 (font_delete_unmatched): New arg.
13277 (font_list_entities): Call font_driver->list with a spec that
13278 doesn't specify style-related properties.
13279 (font_matching_entity): Arguments changed. Caller changed.
13280 (font_open_entity): Adjusted for the change of font-related objects.
13281 (font_close_object, font_has_char, font_encode_char)
13282 (font_get_name, font_get_spec): Likewise.
13283 (font_spec_from_name, font_clear_prop, font_update_lface):
13284 New functions.
13285 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
13286 (font_prepare_for_face, font_done_for_face, font_open_by_name)
13287 (font_at): Adjusted for the change of font-related objects.
13288 (font_range): New function.
13289 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
13290 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
13291 (Fcopy_font_spec, Fmerge_font_spec): New function.
13292 (Ffont_family_list): Renamed from list-families.
13293 (Finternal_set_font_style_table): Arguments changed.
13294 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
13295 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
13296 change of font-related objects.
13297 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
13298
13299 * fontset.h (struct font_info): Delete it. Most members go to
13300 struct font.
13301 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
13302 (enum FONT_SPEC_INDEX): Delete it.
13303 (font_info, list_fonts_func, load_font_func, query_font_func)
13304 (set_frame_fontset_func, find_ccl_program_func)
13305 (get_font_repertory_func, new_fontset_from_font_name): Delete
13306 externs.
13307 (fontset_from_font_name): Extern it.
13308 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
13309 (FONT_INFO_FROM_FACE): Deleted.
13310 (face_for_font): Adjust prototype.
13311
13312 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
13313 conditionals. Don't check enable_font_backend. Delete all codes
13314 used only when USE_FONT_BACKEND is not defined.
13315 (get_font_info_func, list_font_func, load_font_func)
13316 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
13317 (get_font_repertory_func): Delete them.
13318 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
13319 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
13320 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
13321 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
13322 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
13323 (fontset_compare_rfontdef): New function.
13324 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
13325 rfont-defs by qsort. Adjusted for the change of font-group vector.
13326 (load_font_get_repertory): Deleted.
13327 (fontset_find_font): Use new macros to ref/set elements of
13328 font-def and rfont-def.
13329 (fontset_font): Fix the timing of remembering that no font for C.
13330 (free_face_fontset): Do nothing if the face has no fontset.
13331 (face_suitable_for_char_p): Use new macros to ref/set elements of
13332 rfont-def.
13333 (face_for_char): Likewise. Call face_for_char with font_object.
13334 (fs_load_font): Delete. Delete #pragma surrounding it.
13335 (fs_query_fontset): Use strcasecmp instead of strcmp.
13336 (generate_ascii_font_name): Adjusted for the format change of
13337 font-spec.
13338 (Fset_fontset_font): Likewise. Use new macros to set elements of
13339 font-def.
13340 (Fnew_fontset): Use font_unparse_xlfd to generate
13341 FONTSET_ASCII (fontset).
13342 (new_fontset_from_font_name): Deleted.
13343 (fontset_from_font): Renamed from new_fontset_from_font. Check if
13344 a fontset is already created for the font. FIx updating of
13345 Vfontset_alias_alist.
13346 (fontset_ascii_font): Deleted.
13347 (Ffont_info): Adjusted for the format change of font-spec.
13348 (Finternal_char_font): Likewise.
13349 (Ffontset_info): Likewise.
13350 (syms_of_fontset): Don't check load_font_func.
13351
13352 * fns.c (internal_equal): Handle PREV_FONT.
13353
13354 * frame.h: Delete USE_FONT_BACKEND conditional.
13355
13356 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
13357 conditionals. Don't check enable_font_backend. Delete all codes
13358 used only when USE_FONT_BACKEND is not defined.
13359 (x_set_font): Call x_new_font, not x_new_fontset2.
13360 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
13361 already set for the frame.
13362
13363 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
13364 a font-entity by font_make_entity. Use font_intern_prop instead
13365 of intern_downcase. Use FONT_SET_STYLE to set a style-related
13366 font property. If a font is scalable, set avgwidth property to 0.
13367 Set font-entity property by font_put_extra.
13368 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
13369 (ffont_driver): Adjusted for the change of struct font_driver.
13370 (ftfont_spec_pattern): New function.
13371 (ftfont_list): Return a list, not vector.
13372 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
13373 (ftfont_list_family): Don't downcase names.
13374 (ftfont_free_entity): Deleted.
13375 (ftfont_open): Return a font-object. Adjusted for the change of
13376 struct font. Get underline_thickness and underline_position from
13377 font property. Don't update dpyinfo->smallest_font_height and
13378 dpyinfo->smallest_char_width.
13379 (ftfont_close): Don't free `struct font'.
13380 (ftfont_has_char): Adjusted for the format change of font-entity.
13381 (ftfont_encode_char, ftfont_text_extents): Likewise.
13382
13383 * ftxfont.c (ftxfont_list): Return a list, not vector.
13384 (ftxfont_open): Return a font-object. Adjusted for the change of
13385 struct font. Get underline_thickness and underline_position from
13386 font property. Don't update dpyinfo->smallest_font_height and
13387 dpyinfo->smallest_char_width.
13388 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
13389 (ftxfont_draw): Adjusted for the change of struct font.
13390
13391 * image.c (image_ascent): Don't include "charset.h". Include
13392 "character.h" and "font.h".
13393
13394 * lisp.h (enum pvec_type): New member PREV_FONT.
13395 (Fassoc_string): EXFUN it.
13396
13397 * print.c: Include font.h.
13398 (print_object): Handle font-related objects.
13399
13400 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
13401 conditionals. Don't check enable_font_backend. Delete all codes
13402 used only when USE_FONT_BACKEND is not defined.
13403 (handle_auto_composed_prop): Do nothing if it->f is not on a
13404 window system. Check how many following characters can be
13405 displayed by the same font.
13406 (calc_pixel_width_or_height): Type of the 4th arg is changed to
13407 'struct font *'.
13408 (get_char_face_and_encoding): Assign the whole encoding task to
13409 the `encode-char' method of a font driver.
13410 (fill_composite_glyph_string): Adjusted for the change of `struct
13411 face' and `struct glyph_string'.
13412 (fill_glyph_string): Likewise.
13413 (get_per_char_metric): Arguments changed.
13414 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
13415 and `struct glyph_string'.
13416 (produce_stretch_glyph, calc_line_height_property)
13417 (x_produce_glyphs): Likewise.
13418
13419 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
13420 conditionals. Don't check enable_font_backend. Delete all codes
13421 used only when USE_FONT_BACKEND is not defined. Use
13422 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
13423 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
13424 (Qp): Extern them.
13425 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
13426 Deleted.
13427 (struct font_name): Deleted.
13428 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
13429 (compare_fonts_by_sort_order): New function.
13430 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
13431 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
13432 Deleted.
13433 (Fx_family_fonts): Use font_list_entities, and sort fonts by
13434 compare_fonts_by_sort_order.
13435 (Fx_font_family_list): Call Ffont_family_list.
13436 (face_numeric_value, face_numeric_weight, face_numeric_slant)
13437 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
13438 (face_symbolic_slant, face_symbolic_swidth)
13439 (split_font_name_into_vector, build_font_name_from_vector)
13440 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
13441 (font_rescale_ratio, split_font_name, build_font_name)
13442 (free_font_names, sort_fonts, x_face_list_fonts)
13443 (face_font_available_p, sorted_font_list, cmp_font_names)
13444 (font_list_1, concat_font_list, font_list, remove_duplicates):
13445 Deleted.
13446 (Fx_list_fonts): Use Ffont_list.
13447 (LFACE_AVGWIDTH): Deleted.
13448 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
13449 by FONTP.
13450 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
13451 (set_lface_from_font_name): Delete it.
13452 (set_lface_from_font): Renamed from
13453 set_lface_from_font_and_fontset. Caller changed. Don't set
13454 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
13455 for face.
13456 (merge_face_vectors): Copy font-spec if necessary.
13457 Clear properties of the font-spec if necessary.
13458 (merge_face_ref): Clear properties of the font-spec if necessary.
13459 (Finternal_set_lisp_face_attribute): Likewise.
13460 (set_font_frame_param): Use font_load_for_lface to load a
13461 font-object, and call Fmodify_frame_parameters with it.
13462 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
13463 font name by Ffont_xlfd_name.
13464 (Finternal_lisp_face_attribute_values): Don't check QCweight,
13465 QCslant, and QCwidth.
13466 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
13467 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
13468 Compare fonts by EQ.
13469 (lookup_non_ascii_face): Deleted.
13470 (face_for_font): The 2nd argument changed.
13471 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
13472 Check atomic font properties by case insensitive.
13473 (realize_non_ascii_face): Set face->overstrike correctly.
13474 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
13475 (dump_realized_face): Get font name from
13476 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
13477
13478 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
13479 conditionals. Don't check enable_font_backend. Delete all codes
13480 used only when USE_FONT_BACKEND is not defined.
13481 (xic_create_xfontset): Original code deleted and renamed from
13482 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
13483 (x_make_gc): Don't set GCFont in GCs.
13484 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
13485 opened by "fixed".
13486 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
13487 find_ccl_program_func, query_font_func, set_frame_fontset_func,
13488 get_font_repertory_func.
13489
13490 * xfont.c: Include <stdlib.h> and "ccl.h".
13491 (struct xfont_info): New structure.
13492 (xfont_query_font): Deleted.
13493 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
13494 moved from xterm.c.
13495 (xfont_driver): Adjusted for the change of struct font_driver.
13496 (compare_font_names): New function.
13497 (xfont_list_pattern): Sort font names case insensitively. Make
13498 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
13499 (xfont_list): Return a list, not vector.
13500 (xfont_match): If the font doesn't have QCname property, generate
13501 a name from the other font properties.
13502 (xfont_open): Return a font-object. Adjusted for the change of
13503 struct font. Get underline_thickness and underline_position from
13504 font property. Don't update dpyinfo->smallest_font_height and
13505 dpyinfo->smallest_char_width.
13506 (xfont_close): Don't free struct font.
13507 (xfont_prepare_face): Adjusted for the change of struct font.
13508 (xfont_done_face): Deleted.
13509 (xfont_has_char): Adjusted for the change of struct font.
13510 (xfont_encode_char, xfont_draw): Likewise.
13511 (xfont_check): New function.
13512
13513 * xftfont.c (xftfont_list): Adjusted for the change of `list'
13514 callback function.
13515 (xftfont_match): Adjusted for the format change of font-entity.
13516 (xftfont_open): Adjusted for the format change of font-entity and
13517 font-object. Adjusted for the change of struct font. Return a
13518 font-object. Don't update dpyinfo->smallest_font_height and
13519 dpyinfo->smallest_char_width.
13520 (xftfont_close): Block input while calling XftFontClose.
13521 (xftfont_prepare_face): Don't block input while calling
13522 xftfont_get_colors. Adjusted for the change of struct font.
13523 (xftfont_shape): Return value of error case fixed.
13524
13525 * xrdb.c (x_load_resources): Don't setup a fontset resource.
13526
13527 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
13528 conditionals.
13529 (FONT_WIDTH): Return (f)->max_width.
13530 (struct x_display_info): Delete member `font'.
13531 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
13532 (x_find_ccl_program, x_get_font_repertory): Delete externs.
13533 (struct x_output): Change type of `font' to `struct font *'.
13534
13535 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
13536 conditionals. Don't check enable_font_backend. Delete all codes
13537 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
13538 (x_per_char_metric, x_encode_char): Deleted.
13539 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
13540 (x_compute_glyph_string_overhangs): Adjusted for the change of
13541 `struct face'.
13542 (x_draw_glyph_string_foreground)
13543 (x_draw_composite_glyph_string_foreground): Likewise.
13544 (x_draw_glyph_string): Likewise. Use font->underline_position and
13545 font->underline_thickness.
13546 (x_new_font): Renamed from x_new_fontset2.
13547 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
13548 (x_check_font): Call `check' method of a font driver.
13549 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
13550 (x_query_font, x_get_font_repertory): Deleted.
13551 (x_find_ccl_program): Renamed and moved to xfont.c.
13552 (x_redisplay_interface): Adjusted for the change of `struct
13553 redisplay_interface'.
13554
13555 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
13556 conditionals. Don't check enable_font_backend. Delete all codes
13557 used only when USE_FONT_BACKEND is not defined. Surround non-used
13558 code by "#ifdef OLD_FONT" and "endif".
13559 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
13560
13561 * w32font.h (struct w32font_info): New member.
13562 (FONT_COMPAT): New macro.
13563 (w32font_open_internal): Prototype adjusted.
13564
13565 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
13566 OLD_FONT" and "endif".
13567
13568 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
13569 conditionals. Don't check enable_font_backend. Delete all codes
13570 used only when USE_FONT_BACKEND is not defined.
13571 (w32font_open): Return a font-object. Make a font-object by
13572 font_make_object. Adjusted for the change of struct w32font_info.
13573 (w32font_close): Don't free struct font. Adjusted for the change
13574 of struct w32font_info.
13575 (w32font_encode_char, w32font_text_extents, w32font_draw):
13576 Adjusted for the change of struct w32font_info.
13577 (w32font_draw): Likewise.
13578 (w32font_list_internal): Return a list, not vector.
13579 (w32font_open_internal): Change the 4th arg to font-object.
13580 Adjusted for the change of struct w32font_info and font-object format.
13581 (add_font_name_to_list): Don't downcase names.
13582 (w32_enumfont_pattern_entity): Make a font-entity by
13583 font_make_entity. Adjusted for the format change of font-entity.
13584 Use FONT_SET_STYLE to set a style-related font property. If a
13585 font is scalable, set avgwidth property to 0. Set font-entity
13586 property by font_put_extra.
13587 (font_matches_spec): Adjusted for the format change of font-entity.
13588 (w32_weight_table, w32_decode_weight): New variables.
13589 (w32_encode_weight): New function.
13590 (fill_in_logfont): Adjusted for the format change of font-spec.
13591 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
13592 weight value.
13593 (w32font_driver): Adjusted for the change of struct font_driver.
13594
13595 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
13596 conditionals. Don't check enable_font_backend. Surround non-used
13597 code by "#ifdef OLD_FONT" and "endif".
13598 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
13599 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
13600
13601 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
13602 conditionals. Don't check enable_font_backend. Delete all codes
13603 used only when USE_FONT_BACKEND is not defined. Surround non-used
13604 code by "#ifdef OLD_FONT" and "endif".
13605
13606 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
13607 (uniscribe_open): Return value changed to font-object.
13608 Adjusted for the format change of font-object.
13609 (uniscribe_otf_capability): Adjusted for the change of struct font.
13610 (add_opentype_font_name_to_list): Don't downcase names.
13611 (uniscribe_font_driver): Adjusted for the change of struct
13612 font_driver.
13613
136142008-05-13 Chong Yidong <cyd@stupidchicken.com>
13615
13616 * dispnew.c (update_frame_1): Check if tty output is still valid
13617 before flushing it.
13618
136192008-05-13 Jan Djärv <jan.h.d@swipnet.se>
13620
13621 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
13622 to Gtk+ menus.
13623
136242008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
13625
13626 * dired.c (file_name_completion): Tweak the code so as to always do it
13627 in a single pass. Tighten the scope of some variables.
13628
13629 * dired.c (Qdefault_directory): New var.
13630 (file_name_completion): Use it instead of Fexpand_file_name.
13631 (syms_of_dired): Initialize it.
13632
136332008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
13634
13635 * fileio.c (double_dollars): Remove dead code.
13636
136372008-05-10 Eli Zaretskii <eliz@gnu.org>
13638
13639 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
13640 Mention w32-get-true-file-attributes in doc string.
13641
13642 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
13643
136442008-05-09 Glenn Morris <rgm@gnu.org>
13645
13646 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
13647 2008-04-23.
13648
136492008-05-09 Eli Zaretskii <eliz@gnu.org>
13650
13651 Support for reporting owner and group of each file on MS-Windows:
13652 * dired.c (stat_uname, stat_gname): New functions, with special
13653 implementation for w32.
13654 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
13655
13656 * w32.c: Rename the_passwd_* to dflt_passwd_*.
13657 (dflt_group_name): New static variable.
13658 (dflt_group): Rename from the_group.
13659 (init_user_info): Init dflt_group fields. Get user's group name
13660 from LookupAccountSid.
13661 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
13662 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
13663 New initialization states.
13664 (globals_of_w32): Initialize them to zero. Initialize the default
13665 group name to "None".
13666 (GetFileSecurity_Name): New global var, the name of the function
13667 to call for GetFileSecurity.
13668 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
13669 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
13670 (get_file_security, get_security_descriptor_owner)
13671 (get_security_descriptor_group, is_valid_sid)
13672 (get_file_security_desc, get_rid, get_name_and_id)
13673 (get_file_owner_and_group): New functions.
13674 (stat): Use get_file_security_desc and get_file_owner_and_group to
13675 report the owner and primary group of each file. Don't ignore the
13676 high 32 bits of file's size, now that st_size is 64-bit wide.
13677 Fix test when to get true file attributes.
13678 (init_user_info): Use get_rid instead of equivalent inline code.
13679 (fstat): Don't ignore the high 32 bits of file's size.
13680
136812008-05-09 Chong Yidong <cyd@stupidchicken.com>
13682
13683 * image.c (png_load): Use correct bit-depth for setting background
13684 color.
13685
136862008-05-08 Eli Zaretskii <eliz@gnu.org>
13687
13688 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
13689 epa-hook.elc.
13690
136912008-05-08 Juanma Barranquero <lekktu@gmail.com>
13692
13693 * font.c (Ffont_match_p): Don't use `iff' in docstring.
13694
136952008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
13696
13697 * macfns.c (Fx_create_frame): Make a copy of frame parameters
13698 because the original parameters are in pure storage now.
13699 (mac_window): Remove unused params. Update callers.
13700
137012008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
13702
13703 * lread.c (substitute_object_recurse): Use lower-level primitives.
13704 Don't signal errors when traversing sub-char-tables.
13705 Don't loop over all the possible characters when traversing char-tables.
13706
13707 * print.c (print_preprocess): Add sub-char-tables to the print-table,
13708 just like we do in print.c.
13709
137102008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
13711
13712 * minibuf.c (Ftry_completion): Remove code left over from when we used
13713 scmp instead of Fcompare_strings.
13714
137152008-05-04 Juanma Barranquero <lekktu@gmail.com>
13716
13717 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
13718
137192008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13720
13721 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
13722 Create bitmap context in native byte order.
13723
13724 * macterm.c (XDrawLine)
13725 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
13726 context in native byte order.
13727
137282008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13729
13730 * config.in: Regenerate.
13731
13732 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
13733 New definitions for Image I/O support.
13734 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
13735 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
13736 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
13737 (mac_data_provider_release_data, image_load_image_io)
13738 [USE_MAC_IMAGE_IO]: New functions.
13739 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
13740 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
13741 (init_image_func_pointer) [MAC_OSX]: Remove function.
13742 (image_load_quartz2d) [MAC_OSX]: Check availability of
13743 CGImageCreateWithPNGDataProvider at compile time.
13744 Use lowercase `false' for boolean constant.
13745 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
13746 Use image_load_image_io.
13747 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
13748 Don't check MyCGImageCreateWithPNGDataProvider.
13749 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
13750 Don't call init_image_func_pointer.
13751
13752 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
13753
13754 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
13755 Make variable non-static.
13756 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
13757 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
13758
13759 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
13760 (RED_FROM_ULONG): Mask off higher bits.
13761 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
13762
13763 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
13764 Include AvailabilityMacros.h.
13765 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
13766 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
13767
137682008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
13769
13770 * chartab.c (Fset_char_table_range): If range is t, really set all
13771 chars to that value.
13772
137732008-05-03 Eli Zaretskii <eliz@gnu.org>
13774
13775 * dired.c (Ffile_attributes): Don't allow the device number become
13776 negative.
13777
137782008-05-02 Daiki Ueno <ueno@unixuser.org>
13779
13780 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
13781
137822008-05-02 Juri Linkov <juri@jurta.org>
13783
13784 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
13785 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
13786 DEFAULT argument as a list of default values in docstrings.
13787
137882008-05-01 Chong Yidong <cyd@stupidchicken.com>
13789
13790 * puresize.h (BASE_PURESIZE): Increase to 1210000.
13791
137922008-05-01 Martin Rudalics <rudalics@gmx.at>
13793
13794 * dispnew.c (change_frame_size_1): Preserve small windows when
13795 shrinking frames by calling set_window_height|width with third
13796 arg 2.
13797
13798 * window.h (struct window): Replace field too_small_ok by field
13799 resize_proportionally.
13800
13801 * window.c (make_window): Initialize resize_proportionally.
13802 (enlarge_window): Temporarily set resize_proportionally to make
13803 sure that shrink_windows does scale the window proportionally.
13804 (shrink_windows): When window has resize_proportionally set try
13805 to shrink it proportionally by stealing from other windows.
13806 (struct saved_window, Fset_window_configuration)
13807 (compare_window_configurations): Handle resize_proportionally.
13808 (WINDOW_TOTAL_SIZE): New macro.
13809 (window_min_size, shrink_windows, size_window): Use it.
13810 (check_min_window_sizes): Remove. Invalid values of
13811 window-min-height|width are handled by window_min_size_2 now.
13812 (size_window, Fsplit_window, enlarge_window)
13813 (adjust_window_trailing_edge, grow_mini_window): Don't call
13814 check_min_window_sizes.
13815 (window_min_size_2, window_min_size_1, window_min_size):
13816 New argument safe_p for retrieving "safe" minimum sizes.
13817 (Fdisplay_buffer, Fsplit_window, enlarge_window)
13818 (adjust_window_trailing_edge, grow_mini_window):
13819 Adjust arguments of window_min_size... functions.
13820 (shrink_windows): Argument min_size removed. New argument
13821 safe_p allows shrinking windows to their safe minimum sizes.
13822 Calculate minimum size and decide whether a window shall be
13823 deleted for each window individually.
13824 (size_window): When nodelete_p equals 2, tell shrink_windows to
13825 delete windows only if their new minimum size is no more safe.
13826 (shrink_window_lowest_first): Call window_min_size_1 to make
13827 sure to preserve modeline of bottom-most window when resizing
13828 the minibuffer.
13829 (Fset_window_configuration, Fcurrent_window_configuration)
13830 (compare_window_configurations): Do not handle
13831 window-min-height|width any more.
13832 (syms_of_window): Clarify window-min-height|width doc-strings.
13833
138342008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
13835
13836 * dired.c (file_name_completion): Fix up the encoding/decoding issue
13837 some more. Copy some of the code from Ftry_completions.
13838 Remove special case code that dates back to initial revision when the
13839 slash was only added when necessary and that can't trigger nowadays.
13840
138412008-04-27 Kenichi Handa <handa@m17n.org>
13842
13843 * font.c (font_prop_validate): Signal `error' instead of `font'.
13844
138452008-04-29 Jason Rumney <jasonr@gnu.org>
13846
13847 * w32fns.c (Fw32_battery_status): New defun.
13848 (syms_of_w32fns): Defsubr it.
13849
138502008-04-28 Andreas Schwab <schwab@suse.de>
13851
13852 * dired.c (file_name_completion): Fix another mixing of encoded
13853 and decoded names.
13854
138552008-04-28 Juanma Barranquero <lekktu@gmail.com>
13856
13857 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
13858
138592008-04-27 Juanma Barranquero <lekktu@gmail.com>
13860
13861 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
13862
138632008-04-27 Andreas Schwab <schwab@suse.de>
13864
13865 * dired.c (file_name_completion): Fix inappropriate mixing of
13866 encoded and decoded names.
13867
13868 * xterm.c (XTread_socket): Fix use of uninitialized variable.
13869
13870 * puresize.h (BASE_PURESIZE): Increase to 1200000.
13871
138722008-04-26 Eli Zaretskii <eliz@gnu.org>
13873
13874 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
13875 2008-03-31, it's not needed anymore with `struct stat' definition
13876 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
13877 for the same reasons.
13878
138792008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
13880
13881 * m/sparc.h: Additional redefinitions for GNU/Linux.
13882
138832008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13884
13885 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
13886 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
13887 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
13888 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
13889 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13890 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
13891 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13892 Likewise.
13893
13894 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
13895 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
13896 (mac_ax_number_of_characters): Add externs.
13897 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13898 [USE_MAC_TSM]: Likewise.
13899 (mac_handle_text_input_event) [MAC_OSX]:
13900 Handle kEventTextInputOffsetToPos for no active input area case.
13901 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
13902 (mac_handle_document_access_event)
13903 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
13904 (install_application_handler) [MAC_OSX]: Register handlers for
13905 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
13906 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13907 Register mac_handle_document_access_event.
13908
13909 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
13910 Make functions non-static.
13911
139122008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
13913
13914 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
13915 (read_file_name_completion_ignore_case, insert_default_directory)
13916 (Qdefault_directory): Move to minibuffer.el.
13917 (Fread_file_name): Call the new `read-file-name' instead.
13918
139192008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13920
13921 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
13922 Make function non-static.
13923 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
13924 Remove function.
13925 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
13926 Move to mactoolbox.c.
13927 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
13928
13929 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
13930 (mac_rect_make): New macro.
13931
13932 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
13933 instead of float.
13934 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
13935 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
13936 (XSetBackground) [USE_CG_DRAWING]: Likewise.
13937 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
13938 CGRectMake.
13939 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
13940 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
13941 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
13942 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
13943 instead of WindowRef in argument type.
13944 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
13945 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
13946 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
13947 instead of DISPLAY. All uses changed.
13948 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
13949 (x_calc_absolute_position): Simplify so as not to use
13950 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
13951
13952 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
13953 instead of WindowRef in argument type.
13954 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
13955 [TARGET_API_MAC_CARBON]: Remove externs.
13956 (create_apple_event, mac_event_parameters_to_lisp)
13957 [TARGET_API_MAC_CARBON]: Add externs.
13958
13959 * mactoolbox.c (Vmac_ts_script_language_on_focus)
13960 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
13961 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
13962 is clicked.
13963 (x_activate_menubar): Remove extern for saved_menu_event_location.
13964 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
13965 Move from mac.c.
13966
139672008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13968
13969 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
13970 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
13971
139722008-04-23 Jason Rumney <jasonr@gnu.org>
13973
13974 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
13975 attributes only for local files.
13976
13977 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
13978 default to Qlocal.
13979
139802008-04-22 Juri Linkov <juri@jurta.org>
13981
13982 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
13983 read-buffer-to-switch instead of using the letter "B".
13984
139852008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
13986
13987 * fileio.c (Qdefault_directory): New variable.
13988 (Fread_file_name): Use it to pass `dir' to the completion functions.
13989
139902008-04-20 Chong Yidong <cyd@stupidchicken.com>
13991
13992 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
13993
139942008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
13995
13996 * keyboard.c (Vpre_help_message): Remove.
13997 (show_help_echo): Remove default C code.
13998
13999 * dired.c (directory_files_internal, file_name_completion):
14000 Only call ENCODE_FILE if the string is indeed decoded.
14001
140022008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
14003
14004 * Makefile.in (TOOLKIT_DEFINES): Remove.
14005 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
14006
140072008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14008
14009 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
14010 (mactoolbox.o): New target.
14011
14012 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
14013 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
14014
14015 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
14016 Use mac_set_frame_window_background instead of XSetWindowBackground.
14017 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
14018 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
14019 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
14020 instead of SetWindowTitleWithCFString.
14021 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
14022 Move function to mactoolbox.c.
14023 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
14024 Use mac_set_window_modified instead of SetWindowModified.
14025 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
14026 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
14027 (Fx_focus_frame): Use mac_front_non_floating_window instead of
14028 FrontNonFloatingWindow. Use mac_activate_window instead of
14029 ActivateWindow. Use mac_active_non_floating_window instead of
14030 ActiveNonFloatingWindow.
14031 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
14032 Use mac_show_hourglass and mac_hide_hourglass.
14033 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
14034 instead of GetGlobalMouse.
14035 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
14036 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
14037 Use mac_bring_window_to_front instead of BringToFront.
14038 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
14039 mactoolbox.c.
14040 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
14041 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
14042 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
14043 mactoolbox.c.
14044
14045 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
14046 (XtPointer): Move typedef from macmenu.c.
14047 (enum button_type): Move enum from macmenu.c.
14048 (widget_value): Move typedef from macmenu.c.
14049 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
14050 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
14051 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
14052 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
14053 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
14054 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
14055 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
14056 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
14057 (Selection): Move typedef from macselect.c.
14058 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
14059 macterm.c.
14060 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
14061 (mac_is_window_collapsed, mac_bring_window_to_front)
14062 (mac_send_window_behind, mac_hide_window, mac_show_window)
14063 (mac_collapse_window, mac_front_non_floating_window)
14064 (mac_active_non_floating_window, mac_activate_window)
14065 (mac_move_window_structure, mac_move_window, mac_size_window)
14066 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
14067
14068 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
14069 (enum mac_menu_kind): Move enum to mactoolbox.c.
14070 (min_menu_id): Move variable to mactoolbox.c.
14071 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
14072 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
14073 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
14074 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
14075 [TARGET_API_MAC_CARBON]: Likewise.
14076 (XtPointer): Move typedef to macgui.h.
14077 (enum button_type): Move enum to macgui.h.
14078 (widget_value): Move typedef to macgui.h.
14079 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
14080 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
14081 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
14082 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
14083 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
14084 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
14085 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
14086 (popup_activated_flag): Make variable non-static.
14087 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
14088 (add_menu_item, fill_menu, dispose_menus):
14089 Move functions to mactoolbox.c.
14090 (restore_show_help_function, menu_target_item_handler)
14091 (install_menu_target_item_handler, mac_handle_dialog_event)
14092 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
14093 [TARGET_API_MAC_CARBON]: Likewise.
14094 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
14095 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
14096 (find_and_call_menu_selection, name_is_separator): Make function
14097 non-static.
14098 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
14099 to mactoolbox.c.
14100 (set_frame_menubar): Don't call install_menu_quit_handler.
14101 (menu_item_selection): New variable.
14102 (mac_menu_show): Use create_and_show_popup_menu.
14103 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
14104 selection but set variable menu_item_selection. All uses changed.
14105 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
14106 Call install_menu_quit_handler. Move to mactoolbox.c.
14107
14108 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
14109 (Selection): Move typedef to macgui.h.
14110 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
14111 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
14112 Make variables non-static.
14113 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
14114 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
14115 Make functions non-static.
14116 (Vmac_service_selection) [MAC_OSX]: Likewise.
14117 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
14118 (mac_valid_selection_target_p, mac_clear_selection)
14119 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
14120 (mac_put_selection_value, mac_selection_has_target_p)
14121 (mac_get_selection_value, mac_get_selection_target_list)
14122 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
14123 Move functions to mactoolbox.c.
14124 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
14125 Likewise.
14126 (copy_scrap_flavor_data, mac_handle_service_event)
14127 (install_service_handler) [MAC_OSX]: Likewise.
14128 (syms_of_macselect) <Vmac_dnd_known_types>:
14129 Use mac_dnd_default_known_types.
14130
14131 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
14132 Move to mactoolbox.c.
14133 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
14134 (Fx_selection_owner_p): Add EXFUN.
14135 (install_window_handler, remove_window_handler, XSetWindowBackground):
14136 Remove externs.
14137 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
14138 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
14139 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
14140 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
14141 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
14142 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
14143 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
14144 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
14145 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
14146 (create_and_show_popup_menu, mac_get_selection_from_symbol)
14147 (mac_valid_selection_target_p, mac_clear_selection)
14148 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
14149 (mac_put_selection_value, mac_selection_has_target_p)
14150 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
14151 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
14152 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
14153 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
14154 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
14155 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
14156 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
14157 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
14158 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
14159
14160 * mactoolbox.c: New file.
14161
141622008-04-18 Jason Rumney <jasonr@gnu.org>
14163
14164 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
14165
141662008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
14167
14168 * character.c (Fmultibyte_char_to_unibyte):
14169 Return latin1 chars unchanged.
14170
14171 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
14172 relocated if it points to `name'.
14173
141742008-04-17 Kenichi Handa <handa@m17n.org>
14175
14176 * data.c (Faset): Allow setting a multibyte character in an
14177 ASCII-only unibyte string.
14178
14179 * lisp.h (STRING_SET_MULTIBYTE): New macro.
14180
141812008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
14182
14183 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
14184 done in config.h.
14185
141862008-04-16 Juanma Barranquero <lekktu@gmail.com>
14187
14188 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
14189 (Fchar_direction): Add usage in the docstring.
14190
141912008-04-15 Chong Yidong <cyd@stupidchicken.com>
14192
14193 * keyboard.c (read_key_sequence): Remove always-true checks.
14194
141952008-04-14 Jason Rumney <jasonr@gnu.org>
14196
14197 * w32font.c (w32font_open_internal): Set max_bounds.descent in
14198 compatibility struct, for better underline positioning.
14199
142002008-04-13 David Hansen <david.hansen@gmx.net>
14201
14202 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
14203 string.
14204
142052008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
14206
14207 * m/hp800.h (XUINT, XSET): Remove.
14208
142092008-04-12 Juanma Barranquero <lekktu@gmail.com>
14210
14211 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
14212 previous change.
14213
142142008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
14215
14216 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
14217 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
14218
142192008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
14220
14221 * keymap.h (map_keymap_canonical): Declare.
14222 * xmenu.c (single_keymap_panes): Use it.
14223
142242008-04-11 Glenn Morris <rgm@gnu.org>
14225
14226 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
14227 set the target's value to that of the alias.
14228
142292008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
14230
14231 * term.c (set_tty_color_mode): Left over typo.
14232
142332008-04-10 Michael Albinus <michael.albinus@gmx.de>
14234
14235 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
14236 only after check for file name handler functions. Signal, when
14237 native functionality is not supported.
14238 (syms_of_fileio): Declare it unconditionally.
14239
142402008-04-10 Jason Rumney <jasonr@gnu.org>
14241
14242 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
14243 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
14244
14245 * w32.c (logon_network_drive): Also logon to remote drives that
14246 are mapped to drive letters.
14247
142482008-04-10 Glenn Morris <rgm@gnu.org>
14249
14250 * xdisp.c (truncate-partial-width-windows): Doc fix.
14251
142522008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
14253
14254 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
14255 Move functions to minibuffer.el.
14256 (syms_of_fileio): Don't declare them.
14257
142582008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
14259
14260 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
14261 (syms_of_minibuf): Remove its initialization.
14262
14263 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
14264
142652008-04-09 Juanma Barranquero <lekktu@gmail.com>
14266
14267 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
14268
142692008-04-09 Jason Rumney <jasonr@gnu.org>
14270
14271 * makefile.w32-in (distclean): Delete makefile too.
14272 (maintainer-clean): New target.
14273
14274 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
14275
14276 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
14277 for new font backend and composite cases.
14278
142792008-04-09 Jan Djärv <jan.h.d@swipnet.se>
14280
14281 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
14282 Most of the code moved to run_timers.
14283 (do_pending_atimers): Call run_timers.
14284 (run_timers): New function.
14285
14286 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
14287 run atimers.
14288
14289 * process.c (wait_reading_process_output): The same as above.
14290
142912008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
14292
14293 * minibuf.c (last_exact_completion): Remove variable.
14294 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
14295 (complete_and_exit_1, complete_and_exit_2)
14296 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
14297 (Fdisplay_completion_list, display_completion_list_1)
14298 (Fminibuffer_completion_help, Fself_insert_and_exit)
14299 (Fexit_minibuffer, Fminibuffer_message): Move functions to
14300 minibuffer.el.
14301 (syms_of_minibuf): Remove corresponding initializations.
14302
14303 * keyboard.c (Qdeactivate_mark): New var.
14304 (command_loop_1): Use it to call `deactivate-mark'.
14305 (syms_of_keyboard): Initialize it.
14306
14307 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
14308 to another frame.
14309 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
14310 Don't call set_tty_color_mode.
14311 (store_frame_param): Reset previous_frame rather than call
14312 set_tty_color_mode.
14313 * term.c (set_tty_color_mode): Rewrite.
14314 * dispextern.h (set_tty_color_mode): New type.
14315 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
14316
143172008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
14318
14319 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
14320 for generic chars, which do not exist any more in emacs-unicode.
14321
143222008-04-08 Michael Albinus <michael.albinus@gmx.de>
14323
14324 * coding.c (detect_coding_emacs_mule)
14325 (Ffind_operation_coding_system): Fix typo.
14326
143272008-04-08 Jason Rumney <jasonr@gnu.org>
14328
14329 * w32uniscribe.c (SNAME): Extract only symbol name.
14330
14331 * w32font.h (struct w32_metric_cache): New struct.
14332 (w32font_info): Use it.
14333 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
14334 (CACHE_BLOCKSIZE): New constants.
14335
14336 * w32font.c (Qja, Qko, Qzh): New symbols.
14337 (syms_of_w32font): Initialise them.
14338 (font_matches_spec): Use them to filter by language.
14339 (recompute_cached_metrics): Remove function.
14340 (compute_metrics, clear_cached_metrics): New functions.
14341 (w32font_encode_char): Use them to manage metric cache.
14342 (w32font_text_extents): Cache metrics for all glyphs on demand.
14343 Delay converting glyph indices to WORD until needed.
14344 (w32font_open_internal): Initialize metric cache to empty.
14345 (registry_to_w32_charset): Charset should always be a symbol.
14346 (fill_in_logfont, list_all_matching_fonts): Family should
14347 always be a symbol.
14348
143492008-04-06 Jason Rumney <jasonr@gnu.org>
14350
14351 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
14352 Give up if glyph indices not supported. Use uniscribe obtained
14353 ABC widths for individual metrics. Map glyph clusters back to
14354 characters using fClusterStart flag. Return number of glyphs
14355 produced, not chars processed.
14356 (uniscribe_shape): Map char at FROM to current glyph.
14357
143582008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14359
14360 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
14361 Use SetMenuItemHierarchicalMenu.
14362
143632008-04-05 Jason Rumney <jasonr@gnu.org>
14364
14365 * image.c (pbm_load): Allow color values up to 65535.
14366 Throw an error if max_color_idx is outside the supported range.
14367 Report an error when image size is invalid.
14368 Read two bytes at a time when raw images have max_color_idx above 255.
14369
aac0c6e3
MR
143702008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
14371
14372 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
14373 append "CCL: Quitted" when the CCL program is quitted.
14374 (setup_ccl_program): Initialize ccl->quit_silently to zero.
14375
14376 * ccl.h (struct ccl_program): New member quit_silently.
14377
143782008-04-05 Chong Yidong <cyd@stupidchicken.com>
14379
14380 * search.c (compile_pattern_1): Treat non-nil and non-string of
14381 search-spaces-regexp as nil.
14382
14383 * minibuf.c (Fassoc_string): Tweak docstring.
14384
143852008-04-05 Eli Zaretskii <eliz@gnu.org>
14386
14387 * dired.c (Ffile_attributes): Support inode numbers wider than 32
14388 bits. Remove ugly WINDOWSNT-specific kludge introduced on
14389 2008-03-14 to force inode be positive.
14390
14391 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
14392 _S_* ones, since we now use our own sys/stat.h.
14393 (stat, fstat): Don't mangle the inode number.
14394 (init_user_info): Don't restrict UID and GID to 0-60000 range.
14395
143962008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
14397
14398 * frame.h (struct frame): Give one more bit to `visible' since we use
14399 values larger than 1 to indicate obscured frames on ttys.
14400
14401 * keymap.c (Qkeymap_canonicalize): New var.
14402 (Fmap_keymap_internal): New fun.
14403 (describe_map): Use keymap-canonicalize.
14404
14405 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
14406 (Fundo_boundary): Set them.
14407 (syms_of_undo): Initialize them.
14408 (record_point): Use them instead of last_point_position*.
14409 (last_undo_buffer): Change type.
14410
144112008-04-04 Jason Rumney <jasonr@gnu.org>
14412
14413 * w32font.c (w32font_text_extents): Use font's ascent and descent.
14414 (recompute_cached_metrics): Don't set ascent and descent per char.
14415
14416 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
14417 (uniscribe_check_otf): Add GC protection before consing.
14418 Rearrange loop for counting features.
14419
144202008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
14421
14422 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
14423 buffer with byte-size of source buffer.
14424
144252008-04-03 Chong Yidong <cyd@stupidchicken.com>
14426
14427 * callint.c (Fcall_interactively): Handle temporary region even
14428 when shift-select-mode is off.
14429
144302008-04-03 Jason Rumney <jasonr@gnu.org>
14431
14432 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
14433
144342008-04-03 Kenichi Handa <handa@m17n.org>
14435
14436 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
14437 (CATEGORY_MASK_UTF_16): Likewise.
14438 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
14439 binary file.
14440 (detect_coding): Add null-byte detection for a binary file.
14441 (detect_coding_system): Likewise.
14442
144432008-04-03 Jason Rumney <jasonr@gnu.org>
14444
14445 * w32uniscribe.c: New file.
14446
14447 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
14448
14449 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
14450
14451 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
14452 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
14453 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
14454 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
14455 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
14456 (Qphonetic): New symbols.
14457 (syms_of_w32font): Initialize them.
14458 (font_supported_scripts): Use them.
14459 (w32font_list_family): List all charsets.
14460 (w32font_text_extents, recompute_cached_metrics): Fix metric
14461 calculations.
14462 (w32_enumfont_pattern_entity): Make full_type a DWORD.
14463 Give opentype fonts their own format.
14464 (font_matches_spec): New arguments backend and logfont.
14465 Handle :otf spec for uniscribe backend.
14466 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
14467 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
14468
14469 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
14470 font backend.
14471 (globals_of_w32fns): Initialize uniscribe font backend.
14472
14473 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
14474 dependencies.
14475 (w32uniscribe.$(O)): New file to build.
14476 (FONT_OBJ): Include w32uniscribe.$(O).
14477 (LIBS): Add uniscribe libraries.
14478
14479 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
14480
144812008-04-02 Chong Yidong <cyd@stupidchicken.com>
14482
14483 * callint.c (Vshift_select_mode): New var.
14484 (Finteractive): Document new ^ spec.
14485 (Fcall_interactively): Call handle-shift-selection if the ^ spec
14486 is present.
14487
14488 * keyboard.c (Vthis_command_keys_shift_translated): New var.
14489 (command_loop_1): Avoid running the direct display versions of
14490 forward-char and backward-char if shift-selection may occur.
14491 (read_key_sequence): Set Vthis_command_keys_shift_translated if
14492 shift-translation takes place.
14493
14494 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
14495 avoid clobbering by define-minor-mode.
14496
14497 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
14498 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
14499
14500 * syntax.c (Fforward_word): Add ^ interactive spec.
14501
14502 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
14503 (Fscroll_right): Add ^ interactive spec.
14504
145052008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
14506
14507 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
14508
14509 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
14510
14511 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
14512
145132008-03-31 Juri Linkov <juri@jurta.org>
14514
14515 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
14516
145172008-03-30 Jan Djärv <jan.h.d@swipnet.se>
14518
14519 * gtkutil.c (xg_set_geometry): Fix indentation.
14520 (xg_resize_outer_widget): Remove.
14521 (x_wm_size_hint_off): Fix indentation.
14522 (xg_frame_set_char_size): Call flush_and_sync after
14523 gtk_window_resize.
14524 (x_wm_set_size_hint): Pass NULL as geometry window to
14525 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
14526 Add menu bar and tool bar height to base height.
14527 (xg_update_frame_menubar, free_frame_menubar)
14528 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
14529 (update_frame_tool_bar, free_frame_tool_bar):
14530 Change xg_resize_outer_widget to xg_frame_set_char_size.
14531
145322008-03-30 Michael Albinus <michael.albinus@gmx.de>
14533
14534 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
14535 (Fdbus_call_method): New parameter TIMEOUT.
14536 (dbus-send-signal): Optimize UNGCPRO call.
14537
145382008-03-29 Juri Linkov <juri@jurta.org>
14539
14540 * window.c (Fdisplay_buffer): Move call to
14541 Vsplit_window_preferred_function out of conditions that check
14542 if window is eligible for vertical splitting.
14543 When Vsplit_window_preferred_function is non-nil, call it and use
14544 its non-nil return value as window. Otherwise, continue doing
14545 vertical splitting using Fsplit_window with arg horflag=nil.
14546 (syms_of_window) <Vsplit_window_preferred_function>: Change the
14547 default value from `split-window' to nil.
14548
145492008-03-29 Juri Linkov <juri@jurta.org>
14550
14551 * callint.c (Fcall_interactively): Revert 2008-03-16 change
14552 for interactive code letters 'b' and 'B'.
14553
145542008-03-29 Eli Zaretskii <eliz@gnu.org>
14555
14556 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
14557 multibyte string.
14558
145592008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
14560
14561 * keyboard.c (pending_funcalls): New var.
14562 (timer_check): Run it.
14563 (syms_of_keyboard): Initialize it.
14564 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
14565 (Vdelete_terminal_functions): New vars.
14566 (syms_of_terminal): Initialize them.
14567 (Fdelete_terminal): Run delete-terminal-functions.
14568 * xdisp.c (safe_eval): Rewrite.
14569 (safe_call2): New fun.
14570 * frame.c (Qdelete_frame_functions): New var.
14571 (syms_of_frame): Initialize it.
14572 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
14573 * lisp.h (safe_call2, pending_funcalls): Declare.
14574
145752008-03-28 Andreas Schwab <schwab@suse.de>
14576
14577 * indent.c (Fmove_to_column): Move declaration before statements.
14578
145792008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
14580
14581 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
14582 (struct frame): Use bit fields for boolean vars.
14583
14584 * process.c (server_accept_connection): Simplify naming.
14585 (emacs_get_tty_pgrp): Use SDATA.
14586
14587 * coding.c (decode_coding_object): Fix last change.
14588
145892008-03-27 Jason Rumney <jasonr@gnu.org>
14590
14591 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
14592
145932008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
14594
14595 * charset.c (Fdefine_charset_internal): Change the way of
14596 registering charsets in Vcharset_order_list.
14597 (syms_of_charset): Make the charset `eight-bit' supplementary.
14598
145992008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
14600
14601 * regex.c (EXTEND_BUFFER): Change order of pointer addition
14602 operations, to avoid having the difference between pointers
14603 overflow.
14604
146052008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
14606
14607 * indent.c (check_display_width): New fun.
14608 (scan_for_column): Use it.
14609
14610 * data.c (syms_of_data): Mark most-positive-fixnum and
14611 most-negative-fixnum as constants.
14612
14613 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
14614
14615 * indent.c (scan_for_column): Extract from current_column_1.
14616 Merge with the same code from Fmove_to_column.
14617 (current_column_1, Fmove_to_column): Use it.
14618
146192008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
14620
14621 * keymap.c (map_keymap_internal): New fun.
14622 (map_keymap): Use it.
14623 (Fmap_keymap_internal): New fun.
14624 (Fmap_keymap): Remove left-out test from before make_save_value.
14625
14626 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
14627
14628 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
14629 Use XCAR/XCDR.
14630
14631 * process.h (struct Lisp_Process): Remove filter_multibyte.
14632 * process.c (QCfilter_multibyte): Remove.
14633 (setup_process_coding_systems): Don't use filter_multibyte.
14634 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
14635 (read_process_output): Don't adjust multibyteness to filter_multibyte.
14636 (Fset_process_filter_multibyte): Change the coding-system to
14637 approximate the previous behavior.
14638 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
14639 coding-system.
14640
14641 * coding.c (decode_coding_object): When not decoding into a buffer,
14642 obey the coding system's preference of (uni|multi)byte.
14643
146442008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
14645
14646 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
14647 every char is changed and has a different byte-length.
14648 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
14649 Fix int -> EMACS_INT.
14650
146512008-03-23 David Hansen <david.hansen@gmx.net>
14652
14653 * dbusbind.c (xd_read_message): Remove extra copying of message
14654 strings. Check for NULL `interface' or `member'.
14655
146562008-03-22 Eli Zaretskii <eliz@gnu.org>
14657
14658 * w32.c (readdir): If FindFirstFile/FindNextFile return in
14659 cFileName a file name that includes `?' characters, use the 8+3
14660 alias in cAlternateFileName instead.
14661
146622008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
14663
14664 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
14665
146662008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
14667
14668 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
14669 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
14670 work on current_buffer only instead (that was already the case
14671 for some of the code anyway).
14672 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
14673 (temp_set_point, temp_set_point_both): Use EMACS_INT.
14674 (SET_PT, SET_PT_BOTH): Adjust.
14675 * intervals.h (set_point, temp_set_point, set_point_both)
14676 (temp_set_point_both): Remove redundant declarations.
14677
146782008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
14679
14680 * fileio.c (Finsert_file_contents):
14681 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
14682 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
14683 when buffer != current_buffer anyway.
14684
146852008-03-20 Andreas Schwab <schwab@suse.de>
14686
14687 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
14688 as default.
14689
146902008-03-19 Jason Rumney <jasonr@gnu.org>
14691
14692 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
14693 (syms_of_w32fns): Initialize them.
14694 (HOURGLASS_ID): New constant.
14695 (x_window_to_frame): Don't check hourglass_window.
14696 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
14697 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
14698 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
14699 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
14700 Only change the cursor if hourglass is not active.
14701 (Fx_create_frame): Initialize frame's current_cursor.
14702 (hourglass_atimer): Remove.
14703 (hourglass_started): New function.
14704 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
14705 (show_hourglass): Adapt to w32, changing argument to frame.
14706
14707 * w32term.h (struct w32_output): Remove hourglass_window.
14708 Add current_cursor.
14709
14710 * eval.c (call_debugger, Fsignal):
14711 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
14712 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
14713 (Fexecute_extended_command, cancel_hourglass_unwind):
14714 * minibuf.c (read_minibuf):
14715 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
14716
147172008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
14718
14719 * window.c (run_funs): New fun.
14720 (run_window_configuration_change_hook): Use it to run the buffer-local
14721 and the global part of the hook.
14722
14723 * xdisp.c (format_mode_line_unwind_data): Add window argument.
14724 (unwind_format_mode_line): Restore selected window.
14725 (x_consider_frame_title, Fformat_mode_line): Set selected window.
14726
147272008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
14728
14729 * editfns.c (Fchar_equal): Check they are valid characters.
14730
14731 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
14732
147332008-03-17 Andreas Schwab <schwab@suse.de>
14734
14735 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
14736 against a charset.
14737
14738 * lisp.h (Fbuffer_list): Declare.
14739
147402008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 14741
aac0c6e3
MR
14742 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
14743 handlebox_widget is != 0.
14744
147452008-03-16 Juri Linkov <juri@jurta.org>
14746
14747 * callint.c (Fcall_interactively): For interactive code letters
14748 'b' and 'B' put the buffer list into the list of default "future"
14749 values of the minibuffer.
14750
147512008-03-16 Andreas Schwab <schwab@suse.de>
14752
14753 * keyboard.c (read_key_sequence): Fix downcasing of letters with
14754 modifiers.
14755
14756 * regex.c (re_match_2_internal): Correct matching of a charset
14757 against latin-1 characters.
14758
147592008-03-16 Kenichi Handa <handa@m17n.org>
14760
14761 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
14762 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
14763 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
14764 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
14765 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
14766 CHAR_STRING_ADVANCE.
14767 (produce_chars): Fix for the case that the source and the
14768 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
14769 instead of CHAR_STRING_ADVANCE.
14770 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
14771 STRING_CHAR_ADVANCE.
14772
147732008-03-15 Andreas Schwab <schwab@suse.de>
14774
14775 * regex.c (re_match_2_internal): Correct matching of eight bit
14776 characters in unibyte strings.
14777
147782008-03-15 Martin Rudalics <rudalics@gmx.at>
14779
14780 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
14781 at end of range when it coincides with the end of the buffer.
14782
147832008-03-14 Eli Zaretskii <eliz@gnu.org>
14784
14785 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
14786
14787 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
14788
147892008-03-14 Jason Rumney <jasonr@gnu.org>
14790
14791 * editfns.c (initial_tz): New variable.
14792 (syms_of_editfns): Initialize it.
14793 (Fset_time_zone_rule): Set it when first called.
14794 Use it when TZSTRING is nil.
14795
14796 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
14797 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
14798 (monitor_from_point_fn, get_monitor_info_fn): New globals.
14799 (globals_of_w32fns): Initialize them.
14800 (compute_tip_xy): Use them to position tooltips.
14801
148022008-03-14 Glenn Morris <rgm@gnu.org>
14803
14804 * emacs.c (main): Revert previous change.
14805 (standard_args): Revert -internal-script back to -scriptload,
14806 and remove the long-option form.
14807
148082008-03-13 Glenn Morris <rgm@gnu.org>
14809
14810 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
14811 Remove option -enable-font-backend.
14812
148132008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
14814
14815 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
14816
148172008-03-11 Jan Djärv <jan.h.d@swipnet.se>
14818
14819 * xterm.c (x_connection_closed): For GTK: If this is the last
14820 terminal just exit without closing the display.
14821
148222008-03-11 Jason Rumney <jasonr@gnu.org>
14823
14824 * w32font.c (w32font_full_name): Use floor to round.
14825
f0131492 148262008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
14827
14828 * sound.c (alsa_configure): Declare vol at beginning of block.
14829
14830 * fontset.c (Ffontset_info): Remove extra semicolon.
14831
148322008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
14833
14834 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
14835 size of resulting string.
14836
148372008-03-10 Jason Rumney <jasonr@gnu.org>
14838
14839 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
14840
148412008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14842
14843 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
14844 Don't pretend as if characters with display property haven't been
14845 consumed for string-replacing-string case.
14846
148472008-03-08 Kim F. Storm <storm@cua.dk>
14848
14849 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
14850 (get_next_display_element, next_element_from_string)
14851 (next_element_from_ellipsis, next_element_from_buffer): Use it.
14852
148532008-03-08 Andreas Schwab <schwab@suse.de>
14854
14855 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
14856
148572008-03-06 Jason Rumney <jasonr@gnu.org>
14858
14859 * w32font.c (w32_registry): Take font_type argument. Use ANSI
14860 when charset not specified. Only translate ANSI to unicode when
14861 font_type is truetype.
14862 (w32font_coverage_ok): New function.
14863 (add_font_entity_to_list): Use it to filter unsuitable fonts.
14864
148652008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
14866
14867 * lread.c (Fread_char): Resolve modifiers.
14868 (Fread_char_exclusive): Likewise.
14869
14870 * character.c (char_resolve_modifier_mask): New function.
14871 (char_string): Use char_resolve_modifier_mask.
14872 (Fchar_resolve_modifiers): New function.
14873 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
14874 function.
14875
148762008-03-04 Jason Rumney <jasonr@gnu.org>
14877
14878 * makefile.w32-in: Always include w32font.c in the build.
14879 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
14880
148812008-03-04 Andreas Schwab <schwab@suse.de>
14882
14883 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
14884 (versionclean): Likewise.
14885
148862008-03-04 Juanma Barranquero <lekktu@gmail.com>
14887
14888 * .cvsignore: Add oo.
14889
148902008-03-03 Andreas Schwab <schwab@suse.de>
14891
14892 * coding.c (decode_coding_object): Inhibit gap shrinking while
14893 decoding in place.
14894
148952008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
14896
14897 * w32term.c: Remove unused include "gnu.h".
14898 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
14899
14900 * gnu.h: Rename to ...
14901 * emacs-icon.h: ... this.
14902 * xterm.c: Use emacs-icon.h instead of gnu.h.
14903 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
14904
149052008-03-03 Juanma Barranquero <lekktu@gmail.com>
14906
14907 * w32font.c: Include math.h.
14908
149092008-03-03 Jason Rumney <jasonr@gnu.org>
14910
14911 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
14912 Compute options separately.
14913 (w32font_open_internal): Set glyph_idx before caching metrics.
14914
14915 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
14916 Define if system headers don't.
14917 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
14918 (w32font_encode_char): Don't declare here.
14919
14920 * w32font.c (Quniscribe, QCformat): New symbols.
14921 (syms_of_w32font): Define them.
14922 (w32font_has_char): Indicate uncertainty.
14923 (w32font_encode_char): Encode as glyph point. Make static.
14924 (recompute_cached_metrics): New function.
14925 (w32font_open_internal): Use it. Set font to use glyph points
14926 initially. Set format based on type of font.
14927 (w32font_text_extents, w32font_draw): Optionally use glyph points.
14928 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
14929 on it. Set format based on information available here.
14930 (add_font_entity_to_list): Identify backend based on opentype_only.
14931
149322008-03-02 Andreas Schwab <schwab@suse.de>
14933
14934 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
14935
14936 * coding.c (decode_coding_big5, produce_chars):
14937 Fix typos in last change.
14938
149392008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
14940
14941 * gnu.h: New icon.
14942
149432008-03-02 Kenichi Handa <handa@m17n.org>
14944
14945 * coding.c (decode_coding_utf_8): When eol-type of CODING is
14946 `dos', don't decode '\r' if that is the last in the source.
14947 (decode_coding_utf_16, decode_coding_emacs_mule)
14948 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14949 (decode_coding_raw_text, decode_coding_charset): Likewise.
14950 (produce_chars): Don't decode EOL here. Use EMACS_INT.
14951
149522008-03-01 Jason Rumney <jasonr@gnu.org>
14953
14954 * w32font.c (w32font_full_name): Report point size for scalable fonts.
14955
149562008-03-01 Kim F. Storm <storm@cua.dk>
14957
14958 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
14959
149602008-03-01 Jason Rumney <jasonr@gnu.org>
14961
14962 * w32font.c (w32font_full_name): New function.
14963 (w32font_open_internal): Use it.
14964
149652008-03-01 Kim F. Storm <storm@cua.dk>
14966
14967 * dispnew.c (line_draw_cost): Fix invalid glyph check.
14968
149692008-03-01 Jason Rumney <jasonr@gnu.org>
14970
14971 * font.c (font_unparse_fcname): Increase len when style is a symbol.
14972
149732008-03-01 Jan Djärv <jan.h.d@swipnet.se>
14974
14975 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
14976 xg_frame_resized when the event is for the edit widget.
14977
14978 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
14979
14980 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
14981 set_char_size.
14982 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
14983 operations on widgets here. Just set frame size if needed.
14984 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
14985 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
14986 (x_wm_set_size_hint): Set size hints on the edit widget only, not
14987 the whole frame.
14988 (xg_create_tool_bar): Move attachment of the tool bar to
14989 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
14990 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
14991
149922008-03-01 Jason Rumney <jasonr@gnu.org>
14993
14994 * w32fns.c (w32_msg_pump): Disable debug code.
14995
149962008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14997
14998 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
14999
150002008-02-29 Chong Yidong <cyd@stupidchicken.com>
15001
15002 * xdisp.c (next_overlay_string): Don't set
15003 overlay_strings_at_end_processed_p if we're currently reading from
15004 a display string.
15005
150062008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
15007
15008 * xdisp.c (get_overlay_strings_1): Fix typo.
15009
150102008-02-29 Chong Yidong <cyd@stupidchicken.com>
15011
15012 * xdisp.c (get_overlay_strings_1): Add missing argument type.
15013
150142008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
15015
15016 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
15017
15018 * xdisp.c (display_mode_element): Cancel the previous change.
15019 (decode_mode_spec): Likewise.
15020 (handle_auto_composed_prop): Don't make composition if it->string
15021 is a string.
15022
150232008-02-27 Kim F. Storm <storm@cua.dk>
15024
15025 * lisp.h (GLYPH): Change type from int to struct with separate char
15026 and face_id members.
15027 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
15028 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
15029 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
15030 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
15031 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
15032 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
15033 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
15034 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
15035 handle new Lisp glyph code encoding, either an integer or a cons.
15036
15037 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
15038 (GLYPH_ALIAS): Delete.
15039 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
15040 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
15041 (GLYPH_FROM_CHAR): Replace macro by ...
15042 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
15043
15044 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
15045 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
15046 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
15047 (GLYPH_INVALID_P): New macro.
15048 (spec_glyph_lookup_face): Update prototype.
15049
15050 * dispnew.c (line_draw_cost): Adapt to new glyph type.
15051 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
15052 new glyph code encoding.
15053 (spec_glyph_lookup_face): No return value; update passed glyph instead.
15054 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
15055
15056 * xdisp.c (get_next_display_element, next_element_from_display_vector):
15057 Adapt to new glyph type and new glyph code encoding.
15058
15059 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
15060
15061 * indent.c (current_column, current_column_1, Fmove_to_column)
15062 (compute_motion): Adapt to new glyph code encoding.
15063
15064 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
15065
150662008-02-27 Chong Yidong <cyd@stupidchicken.com>
15067
15068 * process.c (wait_reading_process_output): Check for window
15069 changes caused by timers.
15070 Suggested by Johan Bockgård.
15071
150722008-02-27 Glenn Morris <rgm@gnu.org>
15073
15074 * emacs.c (USAGE1): Add `--disable-font-backend'.
15075
150762008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
15077
15078 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
15079 is made to the buffer.
15080
150812008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
15082
15083 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
15084 (face_at_string_position):
15085 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
15086 (face_at_string_position):
15087 * xdisp.c (display_string, next_overlay_change):
15088 * buffer.h (overlays_at):
15089 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
15090 Update callers.
15091
150922008-02-26 Chong Yidong <cyd@stupidchicken.com>
15093
15094 * editfns.c (Fformat): Doc fix.
15095
150962008-02-26 Juanma Barranquero <lekktu@gmail.com>
15097
15098 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
15099 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
15100 (Ffont_otf_alternates, Fquery_font): Doc fixes.
15101
151022008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
15103
15104 * buffer.c (Fbuffer_swap_text): New function.
15105 (syms_of_buffer): Defsubr it.
15106
151072008-02-25 Chong Yidong <cyd@stupidchicken.com>
15108
15109 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
15110
151112008-02-25 Jason Rumney <jasonr@gnu.org>
15112
15113 * w32font.c (w32font_draw): Draw one character at a time when padding.
15114
151152008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
15116
15117 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
15118 Handle a nil arg. Use run_window_configuration_change_hook.
15119 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
15120 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
15121 Use run_window_configuration_change_hook.
15122
151232008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
15124
15125 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
15126 1-pixel width.
15127
151282008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
15129
15130 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
15131 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
15132 if the glyph in the font is zero pixel with.
15133
15134 * dispextern.h (struct glyph_string): New member padding_p.
15135
15136 * w32font.c (w32font_draw): Pay attention to s->padding_p.
15137
15138 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
15139
15140 * xfont.c (xfont_draw): Pay attention to s->padding_p.
15141
15142 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
15143
15144 * font.c: If the font driver doesn't have `shape' function, return Qnil.
15145
151462008-02-25 Jason Rumney <jasonr@gnu.org>
15147
15148 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
15149
151502008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
15151
15152 Allow fine-grained image-cache flushing.
15153 * dispextern.h (struct image): Add `dependencies' field.
15154 (clear_image_caches): Change arg to Lisp_Object.
15155 * image.c (make_image): Initialize `dependencies' field.
15156 (clear_image_cache): Change arg to allow fine-grained flushing.
15157 Perform the flush even if image-cache-eviction-delay is nil.
15158 (clear_image_caches): Change arg to Lisp_Object.
15159 (Fclear_image_cache): Expand meaning of the argument.
15160 (mark_image): Mark `dependencies' field.
15161 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
15162 (lface_hash): Use XHASH rather than XFASTINT.
15163 (face_at_buffer_position): Fix int -> EMACS_INT position.
15164 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
15165 (select_frame_for_redisplay): Remove code duplication.
15166 (redisplay_internal): Adapt arg to call to clear_image_caches.
15167
151682008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
15169
15170 * s/vms4-0.h:
15171 * s/vms4-2.h:
15172 * s/vms4-4.h:
15173 * s/vms5-5.h: Remove, unused.
15174
15175 * s/irix5-2.h:
15176 * s/irix6-0.h:
15177 * s/riscos5.h:
15178 * s/mach-bsd4-3.h:
15179 * m/mips4.h: Remove files for obsolete systems.
15180
15181 * Makefile.in:
15182 * filelock.c:
15183 * unexmips.c:
15184 * m/hp9000s300.h:
15185 * m/iris4d.h:
15186 * s/aix3-1.h:
15187 * s/hpux.h:
15188 * s/msdos.h:
15189 * s/usg5-0.h:
15190 * s/usg5-2-2.h:
15191 * s/usg5-2.h:
15192 * s/usg5-3.h: Remove references to obsolete variables.
15193
15194 * s/irix5-0.h: Remove, move all the contents ...
15195 * s/irix6-5.h: ... here. Simplify.
15196 * config.in: Regenerate.
15197
151982008-02-24 Jason Rumney <jasonr@gnu.org>
15199
15200 * w32term.c (x_draw_glyph_string_background): Clear the background
15201 manually when cleartype is in use.
15202 (x_draw_glyph_string_foreground): Draw text transparently when
15203 cleartype is in use.
15204
15205 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
15206 a font into it unless we have to.
15207
152082008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
15209
15210 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
15211 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 15212
aac0c6e3
MR
152132008-02-18 Jason Rumney <jasonr@gnu.org>
15214
15215 * w32fns.c (Fw32_shell_execute): Encode parameters.
15216
152172008-02-09 Eli Zaretskii <eliz@gnu.org>
15218
15219 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
15220
152212008-02-05 Juanma Barranquero <lekktu@gmail.com>
15222
15223 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
15224
152252008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
15226
15227 * xterm.c (x_set_offset): Don't change the gravity if
15228 CHANGE_GRAVITY is -1.
15229
152302008-02-23 Chong Yidong <cyd@stupidchicken.com>
15231
15232 * fileio.c (auto_save_error_occurred): New var.
15233 (auto_save_error): Set it.
15234 (Fdo_auto_save): Don't overwrite the error message if an auto-save
15235 error occurred.
15236
152372008-02-23 Eli Zaretskii <eliz@gnu.org>
15238
15239 * w32.c (globals_of_w32): Add initializations for
15240 g_b_init_get_sid_sub_authority and
15241 g_b_init_get_sid_sub_authority_count.
15242
152432008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
15244
15245 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
15246 (font_parse_xlfd): Use them for sanity check.
15247 (Finternal_set_font_style_table): Make sure the table is bijective.
15248
15249 Consolidate the image_cache to the terminal struct.
15250 * termhooks.h (P_): Remove redundant def.
15251 (struct terminal): New field `image_cache'.
15252 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
15253 of FRAME_X_IMAGE_CACHE.
15254 * xterm.h (struct x_display_info): Remove image_cache field.
15255 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15256 * w32term.h (struct w32_display_info): Remove image_cache field.
15257 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15258 * macterm.h (struct mac_display_info): Remove image_cache field.
15259 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15260 * xterm.c (x_term_init):
15261 * w32term.c (w32_term_init):
15262 * macterm.c (mac_term_init): Set the image_cache in the terminal.
15263 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
15264 Remove declarations.
15265 (clear_image_caches, mark_image_cache): New declarations.
15266 * xfaces.c (clear_face_cache):
15267 * xdisp.c (redisplay_internal): Use clear_image_caches.
15268 * image.c (clear_image_cache): Don't check that a frame is on
15269 a window-system before checking if it shares the same cache.
15270 (clear_image_caches): New function.
15271 (Fclear_image_cache): Use it.
15272 (mark_image): Move from allo.c.
15273 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
15274 * alloc.c (mark_image, mark_image_cache): Move to image.c.
15275 (mark_object): Don't call mark_image_cache for frames.
15276 (mark_terminals): Call mark_image_cache.
15277
15278 * lisp.h (Fdelete_terminal): Declare.
15279
15280 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
15281 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
15282 wrong_type_argument.
15283
152842008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
15285
15286 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
15287 malayalam.el, and tamil.el. Add sinhala.el.
15288
152892008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
15290
15291 * xterm.c (x_connection_closed): Consolidate identical tests.
15292 (x_delete_terminal): Don't crash if called via x_connection_closed.
15293
152942008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
15295
15296 * xdisp.c (decode_mode_spec): New arg string.
15297 (display_mode_element): Adjust for the above change.
15298
152992008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
15300
15301 * callint.c (Fcall_interactively): Use AREF.
15302
153032008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
15304
15305 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
15306
153072008-02-18 Jan Djärv <jan.h.d@swipnet.se>
15308
15309 * xfns.c (Fx_show_tip): Set string to " " if empty.
15310
153112008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
15312
15313 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
15314 with Qt.
15315
153162008-02-17 Kenichi Handa <handa@m17n.org>
15317
15318 * ftfont.c (ftfont_shape): Return Lispy number.
15319
15320 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
15321 for GCs.
15322 (Finternal_set_font_selection_order): Call font_update_sort_order
15323 only when enable_font_backend is set.
15324 (realize_x_face): Set face->font_info to that of default face only
15325 when enable_font_backend is set.
15326
15327 * xdisp.c (handle_composition_prop): Set it->c to the fist
15328 character of the composed region.
15329 (fill_composite_glyph_string): Set base_face->font_info to
15330 s->font_info. Get a face for ascii from base_face->ascii_face.
15331 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
15332 with a face already decided.
15333 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
15334 non-negative.
15335 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
15336 call font_prepare_composition unconditionally.
15337
15338 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
15339
15340 * xterm.h (struct x_display_info): New member font.
15341
15342 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
15343 (x_set_mouse_face_gc, x_new_font): Likewise.
15344 (x_term_init): Setup display_info->font.
15345 (x_delete_terminal): Free display_info->font.
15346
15347 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
15348
15349 * ftxfont.c (ftxfont_default_fid): Delete it.
15350 (ftxfont_open): Set xfont->fid to 0.
15351 (ftxfont_end_for_frame): Clear data specific to the frame and the
15352 font-driver.
15353
15354 * xftfont.c (xftfont_default_fid): Delete it.
15355 (xftfont_open): Set xfont->fid to 0.
15356
15357 * fontset.c (FONTSET_OBJLIST): New macro.
15358 (fontset_find_font): Update font-object list of the fontset.
15359 (free_realized_fontset): New function.
15360 (free_face_fontset): Call free_realized_fontset.
15361 (Ffont_info): Call font_close_object only when enable_font_backend
15362 is set.
15363
15364 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
15365 [HAVE_NTGUI]: Include w32term.h.
15366 [MAC_OS]: Include macterm.ch.
15367 (font_otf_ValueRecord): Use make_number.
15368 (font_finish_cache): Fix handling of reference count.
15369 (font_clear_cache): Update num_fonts.
15370 (font_open_entity): Update smallest_char_width and
15371 smallest_font_height of the frame.
15372 (font_close_object): Update num_fonts.
15373 (Fclear_font_cache): Fix finding the target cache data.
15374
153752008-02-16 Glenn Morris <rgm@gnu.org>
15376
15377 * fontset.c (Finternal_char_font): Fix compilation warning.
15378
153792008-02-16 Eli Zaretskii <eliz@gnu.org>
15380
15381 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
15382 instead of char arrays. Enlarge the size of array passed to
15383 get_token_information.
15384
15385 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
15386 warnings.
15387
153882008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
15389
15390 * .gdbinit: Don't set `args', it breaks gdb --args.
15391
153922008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
15393
15394 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
15395 within a narrowed buffer.
15396
153972008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
15398
15399 * coding.c (decode_coding_object, encode_coding_object):
15400 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
15401
154022008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
15403
15404 * coding.c (coding_set_destination): Use BEG_BYTE rather than
15405 hardcoding 1.
15406 (detect_coding_system):
15407 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
15408 (string_char_to_byte, string_byte_to_char, insert_from_gap):
15409 * insdel.c (insert_from_gap):
15410 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
15411 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
15412 (string_to_multibyte):
15413 * character.c (chars_in_text, multibyte_chars_in_text):
15414 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
15415
15416 * character.h (FETCH_STRING_CHAR_ADVANCE)
15417 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
15418 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
15419 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
15420
15421 * casefiddle.c (casify_region): Only call after-change and composition
15422 functions on the part of the region that was changed.
15423
15424 * keyboard.c (read_avail_input):
15425 * frame.c (Fdelete_frame): Call Fdelete_terminal.
15426
154272008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
15428
15429 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
15430 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
15431
154322008-02-11 Juanma Barranquero <lekktu@gmail.com>
15433
15434 * w32menu.c (push_submenu_start, push_submenu_end)
15435 (push_left_right_boundary, push_menu_pane, push_menu_item):
15436 * keyboard.c (read_key_sequence): Don't pass args with side effects
15437 to AREF, it fails when compiling with -DENABLE_CHECKING.
15438
154392008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
15440
15441 * Makefile.in (${lispsource}international/charprop.el):
15442 Delete this target.
15443
15444 * search.c (boyer_moore): Fix incorrect synching of the trunk and
15445 emacs-unicode-2.
15446
154472008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
15448
15449 * terminal.c (Fdelete_terminal): Clean up the `force' path.
15450
154512008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
15452
15453 * frame.c (Qnoelisp): New symbol.
15454 (syms_of_frame): Initialize it.
15455 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
15456 harmless Elisp code, from a strong `force' from x_connection_closed.
15457 * frame.h (Qnoelisp): Declare.
15458 * xterm.c (x_connection_closed): Pass `noelisp'.
15459
15460 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
15461 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
15462 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
15463 rather than `int' for the type of `type'.
15464
154652008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
15466
15467 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
15468
15469 * Makefile.in (GNUC): Remove support for gcc-1.x.
15470
154712008-02-10 Richard Stallman <rms@gnu.org>
15472
15473 * lisp.h (ASET): Use AREF, not ASLOT.
15474
154752008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
15476
15477 * lisp.h (ASET): Check bounds.
15478
154792008-02-10 Glenn Morris <rgm@gnu.org>
15480
15481 * buffer.c (mode-name): Doc fix.
15482
154832008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
15484
15485 * Makefile.in:
15486 * emacs.c:
15487 * gmalloc.c:
15488 * keyboard.c:
15489 * lisp.h:
15490 * m/ibm370aix.h:
15491 * process.c:
15492 * regex.c:
15493 * s/hpux.h:
15494 * sysdep.c:
15495 * sysselect.h:
15496 * systty.h:
15497 * unexec.c:
15498 * w32term.c:
15499 * xsmfns.c:
15500 * xterm.c: Remove code that deals with obsolete variables.
15501
15502 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
15503
15504 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
15505 nothing else needs it anymore.
15506
155072008-02-09 Eli Zaretskii <eliz@gnu.org>
15508
15509 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
15510 instead of unibyte_char_to_multibyte.
15511
155122008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
15513
15514 * s/gnu-linux.h: Remove commented out code.
15515
15516 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
15517
15518 * Makefile.in: Update what RMS says about using autoconf.
15519 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
15520 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
15521 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
15522 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
15523
155242008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
15525
15526 * keymap.c (Fkey_description): Move side effect outside of macro call.
15527
15528 * xfaces.c (Finternal_make_lisp_face):
15529 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
15530
15531 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
15532 (syms_of_fontset): Use ASET.
15533
15534 * fns.c (concat): Move side effect outside of macro call.
15535 (hash_clear): Use ASET.
15536
155372008-02-08 Richard Stallman <rms@gnu.org>
15538
15539 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
15540 If FORCE, and frame has a surrogate minibuffer for another frame,
15541 delete the other frame first.
15542
155432008-02-07 Timo Savola <timo.savola@iki.fi>
15544
15545 * xterm.c (x_detect_focus_change): Handle embed client message.
15546 (handle_one_xevent): Ditto.
15547 (handle_one_xevent): If embedded and we get a button press/release,
15548 request focus.
15549 (xembed_set_info, xembed_send_message): New functions.
15550 (x_make_frame_visible): Call xembed_set_info if embedded.
15551 (x_make_frame_invisible): Call xembed_set_info if embedded.
15552 (x_term_init): Initialize Xatom_XEMBED.
15553 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
15554 (x_iconify_frame): Ditto.
15555
15556 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
15557 (enum xembed_info, enum xembed_message, enum xembed_focus)
15558 (enum xembed_modifier, enum xembed_accelerator): New.
15559 (xembed_set_info, xembed_send_message): Declare.
15560 (FRAME_X_EMBEDDED_P): New.
15561
15562 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
15563 gtk_plug_new.
15564
15565 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
15566 window ID of a frame.
15567 (x_window): Reparent frame if embedded.
15568 (Fx_create_frame): Don't set border width if embedded.
15569
15570 * emacs.c (USAGE3): Add --parent-id.
15571 (standard_args): Ditto.
15572
155732008-02-07 Jan Djärv <jan.h.d@swipnet.se>
15574
15575 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
15576
155772008-02-07 Jim Meyering <meyering@redhat.com>
15578
15579 Use "do...while (0)", not "if (1)...else" in macro definitions.
15580 The latter provokes a warning from gcc about the empty else, when
15581 followed by ";". Also, without that trailing semicolon, it would
15582 silently swallow up any following statement.
15583 * syntax.h (SETUP_SYNTAX_TABLE)
15584 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
15585 * buffer.h (DECODE_POSITION): Likewise.
15586 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
15587 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
15588 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
15589 (FETCH_CHAR_ADVANCE): Likewise.
15590 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
15591
155922008-02-07 Jim Meyering <meyering@redhat.com>
15593
15594 * lread.c [lint]: Don't include <sys/inode.h>.
15595
155962008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
15597
15598 * xselect.c (x_handle_dnd_message):
15599 * xmenu.c (digest_single_submenu, xmenu_show):
15600 * xdisp.c (with_echo_area_buffer_unwind_data)
15601 (format_mode_line_unwind_data, unwind_format_mode_line)
15602 (display_menu_bar):
15603 * eval.c (Ffetch_bytecode):
15604 * doc.c (store_function_docstring):
15605 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
15606 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
15607 * buffer.c (add_overlay_mod_hooklist): Use ASET.
15608
156092008-02-07 Kenichi Handa <handa@m17n.org>
15610
15611 * ftxfont.c (ftxfont_open): Don't set
15612 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
15613
15614 * ftfont.c (ftfont_open): Fix previous change.
15615
156162008-02-06 Jason Rumney <jasonr@gnu.org>
15617
15618 * w32font.c (w32font_text_extents): Fill in lbearing metric.
15619 Use cached metrics for ASCII characters.
15620 (w32font_open_internal): Don't set font's owning_frame.
15621 Cache metrics for ASCII characters.
15622
15623 * w32font.h (struct w32font_info): Add ascii_metrics.
15624 Remove owning_frame.
15625
156262008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
15627
15628 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
15629 to negative value.
15630
15631 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
15632
15633 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
15634
15635 * charset.c (syms_of_charset): Set QCtest and Qeq.
15636
156372008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
15638
15639 * process.c (Fstart_process):
15640 * callproc.c (Fcall_process): Handle the case where
15641 Funhandled_file_name_directory returns nil.
15642
15643 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
15644 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
15645 * font.c (check_gstring): Use them and AREF to access the vector before
15646 we know it's really a gstring.
15647 (Ffont_shape_text): Fix typo.
46e722a9 15648 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
15649
15650 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
15651 Declare.
15652
15653 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
15654
156552008-02-05 Jason Rumney <jasonr@gnu.org>
15656
15657 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
15658 Set smallest_font_height and smallest_char_width in display info.
15659
156602008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
15661
15662 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
15663
156642008-02-05 Miles Bader <miles@gnu.org>
15665
15666 * xfaces.c (get_lface_attributes, merge_named_face)
15667 (lookup_named_face, lookup_derived_face, realize_named_face):
15668 Revert 2008-02-01 change by cyd@stupidchicken.com.
15669
156702008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
15671
15672 * fontset.c (Ffontset_info): Handle the case of inhibitting the
15673 fallback fonts.
15674 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
15675
156762008-02-04 Jason Rumney <jasonr@gnu.org>
15677
15678 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
15679 set full_name.
15680 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
15681
156822008-02-03 Jason Rumney <jasonr@gnu.org>
15683
15684 * makefile.w32-in (OBJ1): Include font.o here.
15685 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
15686
156872008-02-02 Jason Rumney <jasonr@gnu.org>
15688
15689 * makefile.w32-in (temacs): Bump EMHEAP to 21.
15690
156912008-02-01 Jason Rumney <jasonr@gnu.org>
15692
15693 * s/cygwin.h: Define VIRT_ADDR_VARIES.
15694
15695 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
15696
156972008-02-01 Andreas Schwab <schwab@suse.de>
15698
15699 * Makefile.in (shortlisp, lisp): Update for rename of
15700 ../lisp/language/myanmar.el.
15701
157022008-02-01 Chong Yidong <cyd@stupidchicken.com>
15703
15704 * xfaces.c (get_lface_attributes): Delete function.
15705 (merge_named_face, lookup_named_face, lookup_derived_face)
15706 (realize_named_face): Call lface_from_face_name directly, and use
15707 the fact that merge_face_vectors does not alter its FROM argument.
15708
157092008-02-01 Jason Rumney <jasonr@gnu.org>
15710
15711 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
15712 input in the default locale. Handle non-Unicode multibyte input.
15713
157142008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15715
15716 * fontset.c (reorder_font_vector): Exclude nil elements from the
15717 font group. Don't try multiple fonts.
15718 (fontset_font): Adjust for the above change.
15719 (Finternal_char_font): Return nil if the found font doesn't
15720 contain the character ch.
15721
15722 * Makefile.in (lisp, shortlisp): Add cham.el.
15723
157242008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15725
15726 * font.h (FONTP): Make it return 1 also for a font-object.
15727
15728 * .gdbinit (xfontset): New function.
15729
15730 * font.c (font_find_for_lface): Check if the character C is
15731 supported or not only for the first font.
15732
15733 * fontset.c (reorder_font_vector): Fix typo.
15734 (fontset_find_font): Don't add a font-spec specifying a script.
15735 Use 0 (not Qt) for the indication of empty font-group. Change the
15736 format of RFONT-DEF. Return Qt if no font in the font-group
15737 support the character.
15738 (fontset_font): Adjust for the above change. If no font was
15739 found the character, remember that.
15740 (face_for_char): Adjust for the change of RFONT-DEF.
15741 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
15742 no font for the target.
15743 (Finternal_char_font): Adjust for the change of RFONT-DEF.
15744
157452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15746
15747 * font.c (font_load_for_face): Handle the case that the font in
15748 face->lface is a string.
15749
157502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15751
15752 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
15753
157542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15755
15756 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
15757 Fix previous change. If the frame is not on a window system,
15758 signal an error.
15759
157602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15761
15762 * coding.c (decode_coding_object, encode_coding_object): Adjust
15763 marker positions after conversion.
15764
15765 * lisp.h (struct Lisp_Marker): New member need_adjustment.
15766
157672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15768
15769 * font.c (font_find_for_lface): Fix the handling of the return
15770 value of font_has_char.
15771 (Ffont_shape_text): Fix previous change.
15772
15773 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
15774 (fontset_ref_and_range): Delete it.
15775 (fontset_find_font): Call char_table_ref_and_range instead of
15776 FONTSET_REF_AND_RANGE.
15777 (make_fontset): Don't setup font groups of Latin here.
15778 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
15779 (new_fontset_from_font): Make the specified font the default for
15780 all Latin characters.
15781
157822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15783
15784 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
15785 is on a window system before accessing the fontset of the frame.
15786
157872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15788
15789 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
15790
15791 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
15792 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
15793
15794 * font.c (Ffont_shape_text): If the font driver doesn't have a
15795 shaper function, make zero-width glyphs to have at least one-pixel
15796 width. Fix setting of `to' field of glyphs.
15797
157982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15799
15800 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
15801 glyphs.
15802
15803 * font.h (struct font_driver): Improve docstring of member `shape'.
15804
158052008-02-01 Kenichi Handa <handa@m17n.org>
15806
15807 * composite.c (syms_of_composite): Fix docstring of
15808 auto-composition-function.
15809
15810 * font.h (LGLYPH_SIZE): New macro.
15811
15812 * font.c (Ffont_fill_gstring): Stop filling when a character not
15813 supported by the font is found.
15814 (Ffont_shape_text): When a shape callback function returns nil,
15815 try at most two more times with larger gstring.
15816 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
15817
15818 * xdisp.c (handle_auto_composed_prop): Change the argument to
15819 auto-composition-function.
15820
15821 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
15822 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
15823 Lispy glyph and store it in the lgstring.
15824
15825 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
15826
15827 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
15828
158292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15830
15831 * font.c (Ffont_shape_text): Avoid unnecessary composition.
15832
15833 * fontset.c (Vfont_encoding_charset_alist): New variable.
15834 (syms_of_fontset): DEFVAR it.
15835 (reorder_font_vector, fontset_find_font): Optimize for the case of
15836 no need of reordering.
15837 (face_for_char): Map the charset property by
15838 Vfont_encoding_charset_alist.
15839
158402008-02-01 Jason Rumney <jasonr@gnu.org>
15841
15842 * w32font.c (logfonts_match): Don't check adstyle here.
15843 (font_matches_spec): Check here against physical font instead.
15844 (add_font_entity_to_list): Avoid some substitutions.
15845
15846 * font.c (font_parse_fcname): Default weight and slant to normal.
15847 (font_score): Prefer normal fonts if weight or slant unspecified.
15848 (font_score) [WINDOWSNT]: Scale weight difference down to closer
15849 match freetype scores.
15850
158512008-02-01 Jason Rumney <jasonr@gnu.org>
15852
15853 * w32font.c (w32font_text_extents): Don't use the frame stored in the
15854 font, as it may have been deleted.
15855 (w32_enumfont_pattern_entity): Map generic family to adstyle using
15856 most common hyphenless variation.
15857 (logfonts_match): Check generic family.
15858 (font_matches_spec): Don't check generic family here.
15859 (fill_in_logfont): Set generic family based on adstyle.
15860
15861 * w32font.h (w32font_get_cache): Update declaration.
15862
158632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15864
15865 * ftfont.c (ftfont_get_cache): Adjust the argument type.
15866
15867 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
15868 If none of the new drivers are available, call font_update_drivers
15869 with the old drivers.
15870
15871 * w32font.c (w32font_get_cache): Adjust the argument type.
15872
15873 * xfont.c (xfont_get_cache): Adjust the argument type.
15874
15875 * font.h (struct font_driver): Change argument type of get_cache.
15876
15877 * xftfont.c (xftfont_start_for_frame): Delete prototype.
15878
15879 * font.c (Ffont_get): Fix arguments to Fassoc.
15880 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
15881 (font_clear_cache): New function.
15882 (font_list_entities, font_matching_entity): Use font_get_cache.
15883 (font_update_drivers): Call font_clear_cache when finishing a driver.
15884
15885 * fontset.c (fontset_find_font): Fix previous change.
15886
158872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15888
15889 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
15890 dpyinfo->font_table.
15891 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
15892 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
15893
15894 * font.c (font_at): Handle the case that the arg C is negative.
15895 Handle the unibyte case.
15896 (Ffont_at): Call font_at with the arg C -1.
15897
15898 * xdisp.c (handle_auto_composed_prop): Don't get a character at
15899 the position here, and call font_at with the arg C -1.
15900 Don't check the range of the existing composition at the point.
15901
159022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15903
15904 * fontset.c (fontset_add): New args charset_id and family.
15905 Change caller.
15906 (load_font_get_repertory, fontset_find_font): Assume that
15907 font_spec is always a font-spec object.
15908 (Fset_fontset_font): Always store a font-spec object in a fontset.
15909
15910 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
15911 instead of get_property_and_range.
15912
159132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15914
15915 * xftfont.c (struct xftfont_info): Delete the member ft_face.
15916 (xftfont_open): Don't keep locking face.
15917 (xftfont_close): Don't unlock face.
15918 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
15919
15920 * fontset.c (fontset_find_font): Don't prefer a font of
15921 supplementary charset.
15922
159232008-02-01 Kenichi Handa <handa@m17n.org>
15924
15925 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
15926 script, langsys_tag to langsys, new member script.
15927 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 15928 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
15929 listing to the script specified in that property. Fix arg to
15930 OTF_check_features.
15931
159322008-02-01 Jason Rumney <jasonr@gnu.org>
15933
15934 * w32font.h: New file.
15935
15936 * w32font.c: Include it.
15937 (struct w32font_info): Add owning_frame field. Move to w32font.h.
15938 (w32font_open): Set owning_frame.
15939 (w32font_text_extents): Use owning_frame.
15940 (struct font_callback_data): Add opentype_only field.
15941 (add_font_entity_to_list): Use it to filter fonts.
15942 Don't check against full name.
15943 (w32font_list_internal): New function.
15944 (w32font_list): Use it.
15945 (w32font_match_internal): New function.
15946 (w32font_match): Use it.
15947 (w32font_open_internal): New function.
15948 (w32font_open): Use it.
15949 (w32font_get_cache, w32font_close, w32font_has_char)
15950 (w32font_encode_char, w32font_text_extents, w32font_draw):
15951 Make non-static.
15952
15953 * makefile.w32-in (w32font.o): Depend on w32font.h.
15954
159552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15956
15957 * charset.c (Fdefine_charset_internal): Record a supplementary
15958 charset at the tail of Vcharset_order_list.
15959
15960 * font.c (Ffont_shape_text): Fix the return value.
15961
15962 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
15963
15964 * xdisp.c (handle_auto_composed_prop): Fix previous change.
15965
159662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15967
15968 * ftfont.c (struct OpenTypeSpec): New struct.
15969 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
15970 (ftfont_get_open_type_spec): New function.
15971 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
15972
15973 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
15974
159752008-02-01 Jason Rumney <jasonr@gnu.org>
15976
15977 * w32font.c (add_font_entity_to_list): Compare only the beginning
15978 of full name.
15979
159802008-02-01 Kenichi Handa <handa@m17n.org>
15981
15982 * xdisp.c (handle_auto_composed_prop): Simplify the code.
15983 Never return HANDLED_RECOMPUTE_PROPS.
15984
159852008-02-01 Kenichi Handa <handa@m17n.org>
15986
15987 * font.c (font_gstring_produce): Delete it.
15988
15989 * composite.h (COMPOSITION_METHOD):
15990 Handle COMPOSITION_WITH_GLYPH_STRING.
15991
159922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15993
15994 * xfont.c (Qx): Delete.
15995 (syms_of_xfont): Don't initialize Qx.
15996
15997 * composite.h (enum composition_method):
15998 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
15999
160002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16001
16002 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
16003 (choose_face_font): Accept new form of font-spec.
16004
16005 * frame.h (font_driver_list): Declare it unconditionally.
16006 (struct frame): Define members font_driver_list and font_data_list
16007 unconditionally.
16008
16009 * fontset.c: Include "font.h" unconditionally.
16010 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
16011 (Fset_fontset_font): Accept a font-spec object.
16012
16013 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
16014 PIXEL_SIZE part a wild card.
16015
16016 * dispextern.h (struct glyph_string): Define members clip and
16017 num_clips unconditionally.
16018 (struct face): Define members font_info and extra unconditionally.
16019
16020 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
16021 ftfont_info only when HAVE_LIBOTF is defined.
16022
160232008-02-01 Andreas Schwab <schwab@suse.de>
16024
16025 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
16026 and end.
16027
160282008-02-01 Jason Rumney <jasonr@gnu.org>
16029
16030 * w32font.c (w32font_driver): Add new fields.
16031
160322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16033
16034 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
16035 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
16036 (LIBES): Add @M17N_FLT_CFLAGS@.
16037
16038 * composite.c (compose_text): Don't treat the new style
16039 composition specially.
16040
16041 * emacs.c (main): Call syms_of_font unconditionally.
16042
16043 * font.h (FONT_ENTITY_NOT_LOADABLE)
16044 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
16045 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
16046 (struct font_driver): New member shape.
16047 (font_registry_charsets): Extern it.
16048 (font_find_for_lface, font_prepare_composition): Adjust prototype.
16049 (font_otf_capability, font_drive_otf): Delete their externs.
16050
16051 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
16052 (font_charset_alist, font_registry_charsets): Move from xfont.c
16053 and rename.
16054 (font_prop_validate_otf): New function.
16055 (font_property_table): Register it for QCotf.
16056 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
16057 (font_drive_otf): Delete.
16058 (font_prepare_composition): New arg F. Adjust for the change of
16059 lispy gstring.
16060 (font_find_for_lface): New arg C.
16061 (font_load_for_face): Adjust for the change of font_find_for_lface.
16062 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
16063 lispy gstring.
16064 (Ffont_shape_text): New function.
16065 (Fopen_font): If the font size is not given, use 12-pixel.
16066 (Ffont_at): New arg STRING.
16067 (syms_of_font): Initalize font_charset_alist.
16068 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
16069 conditionally.
16070
16071 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
16072 fonts of the same font-spec. Change the format of RFONT-DEF.
16073 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
16074 Adjust for the change of RFONT-DEF.
16075 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
16076
16077 * ftfont.h: New file.
16078
16079 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
16080 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
16081 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
16082 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
16083 font_otf_capability and font_drive_otf, set ftfont_shape.
16084 (ftfont_list): Adjust for the change of :otf property value.
16085 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
16086 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
16087 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
16088 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
16089 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
16090 (otf_gstring, gstring, m17n_flt_initialized): New variables.
16091
16092 * w32term.c (x_draw_composite_glyph_string_foreground):
16093 Adjust for the change of lispy gstring.
16094
16095 * xdisp.c (handle_composition_prop): Adjust for the change of
16096 lispy gstring. Call a function for auto-composition with the
16097 third arg it->window.
16098 (fill_composite_glyph_string): Adjust for the change of lispy string.
16099 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
16100
16101 * xfaces.c (set_font_frame_param): Adjust for the change of
16102 font_find_for_lface.
16103
16104 * xfont.c (x_font_charset_alist): Move to font.c and rename.
16105 (xfont_registry_charsets): Likewise. Change caller.
16106 (syms_of_xfont): Don't handle x_font_charset_alist.
16107
16108 * xftfont.c: Include "ftfont.h".
16109 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
16110 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
16111 (xftfont_close) [HAVE_LIBOTF]: Close otf.
16112 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
16113 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
16114 Set xftfont_driver.shape to xftfont_shape.
16115
16116 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
16117 the change of lispy gstring.
16118
161192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16120
16121 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
16122
161232008-02-01 Jason Rumney <jasonr@gnu.org>
16124
16125 * w32font.c (w32font_draw): Fill background manually.
16126
161272008-02-01 Jason Rumney <jasonr@gnu.org>
16128
16129 * font.c (Qfontp): Remove unused symbol.
16130 (QCantialias): New symbol.
16131 (syms_of_font): Define it.
16132 (font_property_table): Set a validator for QCantialias.
16133
16134 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
16135 Define if not already.
16136 (QCfamily): Share with xfaces.c.
16137 (Qstandard, Qsubpixel, Qnatural): New symbols.
16138 (syms_of_w32font): Define them. Don't define QCfamily here.
16139 (w32_antialias_type, lispy_antialias_type): New functions.
16140 (w32_enumfont_pattern_entity): New arg requested_font.
16141 Set antialias parameter if non-default was requested.
16142 (fill_in_logfont): Fill in lfQuality if :antialias specified.
16143
161442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16145
16146 * lread.c (read1): Undo the previous change.
16147
161482008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
16149
16150 * frame.c (Fdelete_frame): Call font_update_drivers only when
16151 USE_FONT_BACKEND is defined.
16152
161532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16154
16155 * font.h (struct font_bitmap): New member bits_per_pixel.
16156 (struct font_driver): New members start_for_frame and end_for_frame.
16157 (struct font_data_list): New struct.
16158 (font_put_frame_data, font_get_frame_data): Extern them.
16159
16160 * frame.h (struct frame): New member font_data_list.
16161
16162 * font.c (font_update_drivers): Call driver->start_for_frame and
16163 driver->end_for_frame at proper timings.
16164 (font_put_frame_data, font_get_frame_data): New functions.
16165 (Ffont_spec): Add usage in the docstring.
16166
16167 * frame.c (make_frame): Initialize f->font_data_list to NULL.
16168 (Fdelete_frame): Call font_update_drivers.
16169
16170 * xftfont.c (struct xftface_info): Delete the member xft_draw.
16171 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
16172 (xftfont_get_xft_draw): New function.
16173 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
16174 (xftfont_end_for_frame): New function.
16175 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
16176
16177 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
16178 Change argument. Cache GCs in the per-frame data.
16179 (struct ftxfont_frame_data): New struct.
16180 (ftxfont_draw_bitmap): New arg gc_fore and flush.
16181 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
16182 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
16183 (ftxfont_end_for_frame): New function.
16184 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
16185
16186 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
16187
161882008-02-01 Kenichi Handa <handa@m17n.org>
16189
16190 * xselect.c (Vselection_coding_system)
16191 (Vnext_selection_coding_system): Delete them.
16192 (syms_of_xselect): Don't declare selection-coding-system and
16193 next-selection-coding-system. They are declared in select.el.
16194
161952008-02-01 Jason Rumney <jasonr@gnu.org>
16196
16197 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
16198
16199 * w32fns.c: Include imm.h.
16200 (get_composition_string_fn, get_ime_context_fn): New optional
16201 system functions.
16202 (globals_of_w32fns): Load them from imm32.dll.
16203 (ignore_ime_char): New flag.
16204 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
16205 WM_IME_ENDCOMPOSITION messages.
16206
16207 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
16208 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
16209
162102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16211
16212 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
16213 (READCHAR_REPORT_MULTIBYTE): New macro.
16214 (readchar): New 2nd arg MULTIBYTE.
16215 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
16216 Make symbol's name multibyte according to the multibyteness of the
16217 source.
16218
162192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16220
16221 * xfaces.c (face_for_overlay_string): Call lookup_face with
16222 correct arguments (fix of synching with the trunk).
16223
162242008-02-01 Kenichi Handa <handa@m17n.org>
16225
16226 * font.c (font_prop_validate_symbol, font_prop_validate_style)
16227 (font_prop_validate_non_neg, font_prop_validate_spacing):
16228 Delete argument prop_index.
16229 (font_property_table): Change arguments to validater. Change Callers.
16230 (font_lispy_object): Delete.
16231 (font_at): Use font_find_object instead fo font_lispy_object.
16232
162332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16234
16235 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
16236 and file names.
16237
162382008-02-01 Jason Rumney <jasonr@gnu.org>
16239
16240 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
16241 (font_matches_spec): Remove debug output.
16242 (add_font_entity_to_list): Avoid using substituted fonts.
16243
162442008-02-01 Jason Rumney <jasonr@gnu.org>
16245
16246 * doc.c (Fsnarf_documentation):
16247 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
16248
162492008-02-01 Miles Bader <miles@gnu.org>
16250
16251 * dispextern.h (struct glyph_row): Only define "clip" field if
16252 HAVE_WINDOW_SYSTEM is defined.
16253
162542008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16255
16256 Fix up multi-tty merge.
16257
16258 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
16259 and indentation.
16260
16261 * xfaces.c (free_realized_face, clear_face_gcs):
16262 Include font_done_for_face in the input_blocked section, just in case.
16263
16264 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
16265 (get_char_face_and_encoding): Undo last change and remove the *other*
16266 duplicate definition (i.e. keep the one that's better scoped and that
16267 includes code for the font-backend).
16268
16269 * terminal.c (create_terminal): Default keyboard_coding to
16270 `no-conversion' and terminal_coding to `undecided'.
16271
16272 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
16273
16274 * fontset.c (free_realized_fontsets): Check that the table entry does
16275 contain a fontset before trying to compare it to `base'.
16276
16277 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
16278 syms_of_charset, and syms_of_coding earlier because init_window_once
16279 now needs Vcoding_system_hash_table to be setup.
16280
16281 * coding.h (default_buffer_file_coding): Remove.
16282
16283 * coding.c (default_buffer_file_coding): Remove.
16284 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
16285 than ->symbol, and use the terminal-local coding system.
16286 (syms_of_coding): Don't setup the coding-systems that are not
16287 terminal-local.
16288 (Fdefine_coding_system_internal): Use XCAR/XCDR.
16289
16290 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
16291 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
16292
16293 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
16294 in chartab.c and were re-added here by mistake.
16295 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
16296
16297 * doc.c (Fsnarf_documentation):
16298 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
16299 src to etc.
16300
16301 * ChangeLog.10: Add mistakenly removed entry.
16302
163032008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
16304
16305 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
16306
163072008-02-01 Miles Bader <miles@gnu.org>
16308
16309 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
16310 Add extra args to FACE_FOR_CHAR.
16311
163122008-02-01 Kenichi Handa <handa@m17n.org>
16313
16314 * keymap.c (where_is_internal_1): If key is a cons, store the copy
16315 in sequence.
16316
16317 * chartab.c (map_sub_char_table, map_char_table): If the range
16318 contains just one character, call the function with that character
16319 even if the depth is not 3.
16320
163212008-02-01 Jason Rumney <jasonr@gnu.org>
16322
16323 * w32font.c (w32font_text_extents): Calculate metrics for the
16324 whole string.
16325
163262008-02-01 Jason Rumney <jasonr@gnu.org>
16327
16328 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
16329
163302008-02-01 Jason Rumney <jasonr@gnu.org>
16331
16332 * w32term.c (x_set_glyph_string_clipping): Use
16333 get_glyph_string_clip_rects.
16334 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
16335 Adjust for the change of struct glyph_string.
16336
16337 * w32font.c (w32font_draw): Do clipping here.
16338
163392008-02-01 Kenichi Handa <handa@m17n.org>
16340
16341 * xftfont.c (xftfont_draw): Adjust for the change of struct
16342 glyph_string.
16343
16344 * xterm.c (x_set_glyph_string_clipping): Use
16345 get_glyph_string_clip_rects.
16346 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
16347 Adjust for the change of struct glyph_string.
16348
16349 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
16350 the resulting clip(s}.
16351 (expose_overlaps): Add arg r. Change callers. Set it to
16352 row->clip temporarily.
16353 (expose_window): Redraw rows overlapping the exposed area.
16354
16355 * dispextern.h (struct glyph_row): New member clip.
16356 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
16357 clip_height, new member clip, and num_clips.
16358
163592008-02-01 Kenichi Handa <handa@m17n.org>
16360
16361 * data.c (Fchar_or_string_p): Fix docstring.
16362
163632008-02-01 Kenichi Handa <handa@m17n.org>
16364
16365 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
16366 create a temporary XftDraw object.
16367
163682008-02-01 Kenichi Handa <handa@m17n.org>
16369
16370 * font.c (Ffontp): Fix docstring.
16371
16372 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
16373 strong evidence of ISO-2022.
16374
163752008-02-01 Kenichi Handa <handa@m17n.org>
16376
16377 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
16378 SYNTAX_ENTRY_FOLLOW_PARENT.
16379
163802008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16381
16382 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
16383 its type.
16384 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
16385 Update to the new type of weak_hash_tables and next_weak.
16386
16387 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
16388 a plain C pointer to Lisp_Hash_Table.
16389
16390 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
16391 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
16392 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
16393 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
16394 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
16395 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
16396 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
16397 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
16398 (GC_EQ): Remove since they've been identical to their non-GC_
16399 alter-egos ever since the markbit was eradicated.
16400
16401 * alloc.c:
16402 * buffer.c:
16403 * buffer.h:
16404 * data.c:
16405 * fileio.c:
16406 * filelock.c:
16407 * fns.c:
16408 * frame.h:
16409 * lisp.h:
16410 * macterm.c:
16411 * print.c:
16412 * process.c:
16413 * w32fns.c:
16414 * w32menu.c:
16415 * w32term.c:
16416 * xfns.c:
16417 * xmenu.c:
16418 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
16419
164202008-02-01 Kenichi Handa <handa@m17n.org>
16421
16422 * chartab.c (map_sub_char_table): Make it work for the top-level
16423 char-table. Fix handling of parent char-table.
16424 (map_char_table): Adjust for the above change.
16425
164262008-02-01 Jason Rumney <jasonr@gnu.org>
16427
16428 * w32font.c (Qgdi): Rename from Qw32.
16429
164302008-02-01 Jason Rumney <jasonr@gnu.org>
16431
16432 * w32bdf.c (get_quoted_string): Make function static.
16433
164342008-02-01 Kenichi Handa <handa@m17n.org>
16435
16436 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
16437 bigger ascent and descent than those of the font, use them as
16438 font's ascent and descent.
16439
164402008-02-01 Kenichi Handa <handa@m17n.org>
16441
16442 * Makefile.in (${lispsource}international/charprop.el): Move this
16443 target within "#ifdef HAVE_UNIDATA" and "#endif".
16444
164452008-02-01 Kenichi Handa <handa@m17n.org>
16446
16447 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
16448 (shortlisp): Add ../lisp/language/tai-viet.el.
16449
164502008-02-01 Ulrich Mueller <ulm@gentoo.org>
16451
16452 * Makefile.in (${lispsource}international/charprop.el): Depend on
16453 temacs${EXEEXT}.
16454
164552008-02-01 Jason Rumney <jasonr@gnu.org>
16456
16457 * w32font.c (w32font_close): Delete the GDI font object.
16458
16459 * w32menu.c: Include character.h.
16460
16461 * w32proc.c: Likewise.
16462
16463 * w32select.c: Likewise.
16464
16465 * makefile.w32-in (w32proc.o): Depend on character.h.
16466
164672008-02-01 Jason Rumney <jasonr@gnu.org>
16468
16469 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
16470
16471 * w32menu.c (syms_of_w32menu): Likewise.
16472
16473 * w32proc.c (syms_of_ntproc): Likewise.
16474
16475 * w32select.c (syms_of_w32select): Likewise.
16476
16477 * w32term.c (syms_of_w32term): Likewise.
16478
164792008-02-01 Jason Rumney <jasonr@gnu.org>
16480
16481 * w32font.c (w32font_draw): Delete brush after using it.
16482
164832008-02-01 Jason Rumney <jasonr@gnu.org>
16484
16485 * w32font.c (w32font_open): Don't set font_idx.
16486 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
16487 to font settings.
16488 (w32font_draw): Fill background explicitly.
16489
164902008-02-01 Jason Rumney <jasonr@gnu.org>
16491
16492 * w32term.c (w32_initialize): Don't call w32font_initialize.
16493
16494 * w32font.c (w32font_info): Remove subranges.
16495 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
16496 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
16497 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
16498 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
16499 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
16500 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
16501 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
16502 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
16503 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
16504 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
16505 New symbols.
16506 (font_callback_data): New struct.
16507 (w32font_list, w32font_match): Use it.
16508 (w32font_open): Don't populate subranges.
16509 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
16510 (w32font_encode_char): Always return unicode code-point as-is.
16511 (w32font_text_extents): Supply a transformation matrix to
16512 GetGlyphOutline. Never look up by glyph index. Avoid looping
16513 twice. Use unicode version of GetTexExtentPoint32 instead of
16514 glyph index version.
16515 (set_fonts_frame): Remove.
16516 (w32_enumfont_pattern_entity): Add frame parameter, use it to
16517 set frame parameter. Use backward compatible fake foundries.
16518 Save generic family in extra slot under QCfamily. Make width slot
16519 constant. Save QCspacing value. Save list of scripts instead of
16520 binary subranges.
16521 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
16522 (add_font_entity_to_list): Use font_callback_data struct. Filter
16523 unwanted fonts.
16524 (add_one_font_entity_to_list): Use font_callback_data struct.
16525 (w32_registry): Default to iso10646_1.
16526 (fill_in_logfont): Use dpi from extra slot. Don't bother with
16527 string font registries. Don't fill in font name if it is a generic
16528 family name, fill family instead. Use spacing, family and script
16529 extra info to fill pitch, family and charset fields.
16530 (list_all_matching_fonts): Use font_callback_data struct.
16531 (unicode_range_for_char): Remove.
16532 (font_supported_scripts): New function.
16533 (w32font_initialize): Remove.
16534 (syms_of_w32font): Update which symbols are defined.
16535
165362008-02-01 Jason Rumney <jasonr@gnu.org>
16537
16538 * font.c (font_pixel_size): Reverse assq_no_quit args.
16539
16540 * w32term.h (FONT_WIDTH): Report max width, not average.
16541 (FONT_MAX_WIDTH): Remove.
16542 (FONT_AVG_WIDTH): New macro.
16543
16544 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
16545 redefinition of FONT_WIDTH.
16546
16547 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
16548 (w32_cache_char_metrics): Use FONT_WIDTH.
16549
16550 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
16551
165522008-02-01 Jason Rumney <jasonr@gnu.org>
16553
16554 * w32font.c (w32font_open): Make lfHeight negative.
16555
16556 * w32fns.c (x_default_font_parameter): Use new style font name.
16557 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
16558
165592008-02-01 Jason Rumney <jasonr@gnu.org>
16560
16561 * w32font.c (QCsubranges): New symbol.
16562 (w32font_open, w32font_has_char): Get subranges from subproperty
16563 of extra.
16564 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
16565 (syms_of_w32font): Define :subranges symbol.
16566
16567 * font.c (font_put_extra): Expose externally.
16568
16569 * font.h (font_put_extra): Move declaration from font.c.
16570
16571 * font.c (Ffont_get): Use font driver to determine otf capability.
16572 (adjust_anchor): Check if driver defines anchor_point before using.
16573
16574 * w32font.c (w32font_open): Handle size, height and pixel_size better.
16575 (w32font_draw): Use options.
16576 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
16577 Fix detection of truetype fonts.
16578 (registry_to_w32_charset): Handle charsets other than iso8859-1
16579 expressed as lisp symbols.
16580 (w32_registry): Express charset as lisp symbol.
16581 (fill_in_logfont): Reverse pixel and point height logic.
16582 Don't set width here. Set quality to default.
16583
16584 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
16585 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
16586
16587 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
16588 Remove redundant loop and allocation.
16589
16590 * makefile.w32-in (font.o, w32font.o): New objects.
16591 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
16592 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
16593
16594 * xdisp.c (fill_composite_glyph_string): Make the first arg to
16595 STORE_XCHARB a valid l-value.
16596
16597 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
16598 calculations for non-Truetype fonts.
16599 (x_draw_glyph_string): Sync with xterm.c.
16600 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
16601 Remove redundant code.
16602 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
16603
16604 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
16605 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
16606
16607 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
16608 (x_to_w32_charset, w32_to_x_charset): Expose externally.
16609
16610 * w32font.c: New file for w32 font backend.
16611
166122008-02-01 Kenichi Handa <handa@m17n.org>
16613
16614 * term.c: Don't include "buffer.h" twice.
16615
166162008-02-01 Kenichi Handa <handa@m17n.org>
16617
16618 * character.c (Funibyte_string): New function.
16619 (syms_of_character): Defsubr it.
16620
166212008-02-01 Jason Rumney <jasonr@gnu.org>
16622
16623 * w32term.c [USE_FONT_BACKEND]:
16624 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
16625 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
16626 (x_draw_glyph_string, x_draw_glyph_string_foreground)
16627 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
16628 (x_free_frame_resources): Sync with xterm.c.
16629
166302008-02-01 Andreas Schwab <schwab@suse.de>
16631
16632 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
16633 char-table size.
16634
166352008-02-01 Kenichi Handa <handa@m17n.org>
16636
16637 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
16638
166392008-02-01 Kenichi Handa <handa@m17n.org>
16640
16641 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
16642 font_otf_gpos, add font_drive_otf.
16643
16644 * fontset.c (fontset_find_font): Pay attention to font size
16645 specified for a font.
16646 (reorder_font_vector): Check contents of font_def.
16647
16648 * font.c (struct otf_list): Delete it.
16649 (otf_list): Make it a lisp variable.
16650 (otf_open): Use lispy otf_list.
16651 (generate_otf_features): Rename from parse_gsub_gpos_spec.
16652 (check_otf_features): New function.
16653 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
16654 New functions.
16655 (font_drive_otf): New function merging font_otf_gsub and
16656 font_otf_gpos.
16657 (font_open_for_lface): New arg spec. Change argument order.
16658 (font_load_for_face): Adjust for the change of font_open_for_lface.
16659 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
16660 Ffont_otf_gpos.
16661 (syms_of_font): Staticpro otf_list. Delete defsubr of
16662 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
16663
16664 * xfaces.c (set_font_frame_param): Adjust for the change of
16665 font_open_for_lface.
16666
16667 * font.h (font_open_for_lface): Adjust prototype.
16668 (struct font_driver): Delete members otf_gsub and otf_gpos, add
16669 member otf_drive.
16670 (font_otf_gsub, font_otf_gpos): Delete externs.
16671 (font_drive_otf): Extern it.
16672
166732008-02-01 Kenichi Handa <handa@m17n.org>
16674
16675 * font.c (font_at): If the window W is not on a window system,
16676 return Qnil.
16677
16678 * coding.c (produce_chars, encode_coding): Don't call
16679 insert_from_gap if no characters to produce.
16680
166812008-02-01 Kenichi Handa <handa@m17n.org>
16682
16683 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
16684 Fclear_face_cache.
16685
16686 * xfaces.c (face_for_font): Check also face->font==font->font.font.
16687
166882008-02-01 Miles Bader <miles@gnu.org>
16689
16690 * emacs.c (main): Change default value of `enable_font_backend' to 1.
16691 Parse "--disable-font-backend" option.
16692 (standard_args): Add "--disable-font-backend" option.
16693
166942008-02-01 Kenichi Handa <handa@m17n.org>
16695
16696 * fontset.c (fontset_find_font): New function.
16697 (fontset_font): Use fontset_find_font.
16698 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
16699 Register the specified font for all Latin characters.
16700 (new_fontset_from_font): Register the specified font for all Latin
16701 characters.
16702 (dump_fontset): For a realized fontset, include the base fontset
16703 name in the returned vector.
16704
167052008-02-01 Kenichi Handa <handa@m17n.org>
16706
16707 * character.h (CHAR_STRING): Cast C to unsigned on calling
16708 char_string.
16709
16710 * character.c (char_string): Type of arg C changed to unsigned.
16711 Signal an error if C is an invalid character code.
16712
16713 * editfns.c (general_insert_function, Fchar_to_string):
16714 Use CHARACTERP, not INTEGERP.
16715
167162008-02-01 Kenichi Handa <handa@m17n.org>
16717
16718 * character.h (MIN_MULTIBYTE_LEADING_CODE)
16719 (MAX_MULTIBYTE_LEADING_CODE): New macros.
16720
16721 * regex.c (analyse_first): Fix for multibyte characters in "case
16722 charset:" and "case categoryspec:".
16723
167242008-02-01 Andreas Schwab <schwab@suse.de>
16725
16726 * Makefile.in (LIBES): Move standard libraries to the end.
16727
167282008-02-01 Kenichi Handa <handa@m17n.org>
16729
16730 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
16731 nonzero, don't shrink the buffer nextb.
16732
16733 * buffer.h (struct buffer_text): New member inhibit_shrinking.
16734
16735 * coding.c (coding_alloc_by_making_gap): New arg offset.
16736 (alloc_destination): Call coding_alloc_by_making_gap with the arg
16737 offset.
16738 (decode_coding_iso_2022): Update coding->safe_charsets.
16739 (decode_coding_gap): Temporarily set
16740 current_buffer->text->inhibit_shrinking to 1.
16741
167422008-02-01 Kenichi Handa <handa@m17n.org>
16743
16744 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
16745 indexing into elements of s->cmp and s->char2b.
16746
167472008-02-01 Juanma Barranquero <lekktu@gmail.com>
16748
16749 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
16750
167512008-02-01 Kenichi Handa <handa@m17n.org>
16752
16753 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
16754 target_multibyte instead of multibyte.
16755 (re_match_2_internal): Call bcmp_translate with target_multibyte.
16756 (bcmp_translate): Change the argument name from multibyte to
16757 target_multibyte.
16758
167592008-02-01 Kenichi Handa <handa@m17n.org>
16760
16761 These changes are to compile a regexp into a pattern that can be
16762 used both for multibyte and unibyte targets.
16763
16764 * Makefile.in (search.o): Depend on charset.h.
16765
16766 * character.c (multibyte_char_to_unibyte_safe): New function.
16767
16768 * search.c: Include "charset.h".
16769 (compile_pattern_1): Delete argument multibyte. Don't set
16770 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
16771 (compile_pattern): Don't compare cp->buf.target_multibyte.
16772 Compare cp->buf.charset_unibyte.
16773 (compile_pattern): Set cp->buf.target_multibyte.
16774
16775 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
16776
16777 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
16778
16779 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
16780 multibyte. Change callers.
16781 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
16782 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
16783 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
16784 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
16785 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
16786 (regex_compile): Make the compiled pattern usable both for
16787 multibyte and unibyte targets.
16788 (analyse_first): Make the fastmap usable both for multibyte and
16789 unibyte targets.
16790 (TRANSLATE_VIA_MULTIBYTE): Delete.
16791 (re_match_2_internal): Pay attention to the case that the
16792 multibyteness of bufp and target may be different.
16793
167942008-02-01 Kenichi Handa <handa@m17n.org>
16795
16796 * xdisp.c (x_produce_glyphs): When a font is not found, make the
16797 empty box occupy at least one column width.
16798
167992008-02-01 Miles Bader <miles@gnu.org>
16800
16801 * Makefile.in: Remove redundant HAVE_XFT clause.
16802
168032008-02-01 Kenichi Handa <handa@m17n.org>
16804
16805 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
16806
168072008-02-01 Kenichi Handa <handa@m17n.org>
16808
16809 * fontset.c (Finternal_char_font): Fix for the case of POSITION
16810 being nil.
16811
168122008-02-01 Kenichi Handa <handa@m17n.org>
16813
16814 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
16815
168162008-02-01 Kenichi Handa <handa@m17n.org>
16817
16818 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
16819
168202008-02-01 Kenichi Handa <handa@m17n.org>
16821
16822 * search.c (simple_search): Fix previous change.
16823
168242008-02-01 Kenichi Handa <handa@m17n.org>
16825
16826 * xftfont.c (ftfont_font_format): Extern declaration.
16827
16828 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
16829
16830 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
16831 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
16832
16833 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
16834 (ftfont_font_format): Fix previous change.
16835
16836 * font.h (Ffont_xlfd_name): EXFUN it.
16837
16838 * font.c (font_parse_xlfd): Fix the array size of `f'.
16839 (register_font_driver): Use EQ to compare driver->type.
16840
16841 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
16842 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
16843 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
16844
168452008-02-01 Kenichi Handa <handa@m17n.org>
16846
16847 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
16848 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
16849
168502008-02-01 Kenichi Handa <handa@m17n.org>
16851
16852 * xfont.c (xfont_open): Set font->format.
16853
16854 * xftfont.c (xftfont_open): Set font->format.
16855
16856 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
16857 (ftfont_list): Include FC_FONTFORMAT in FcObject.
16858 (ftfont_open): Set font->format.
16859 (ftfont_font_format): New function.
16860
16861 * font.h (struct font): New member format.
16862
16863 * font.c (Qopentype): New variable.
16864 (syms_of_font): Defsym it.
16865 (Fquery_font): Change the format of the last element of the return
16866 value.
16867
168682008-02-01 Kenichi Handa <handa@m17n.org>
16869
16870 * xfns.c (xic_create_xfontset): Try the default fontset name as a
16871 last resort.
16872
168732008-02-01 Kenichi Handa <handa@m17n.org>
16874
16875 * coding.c (detect_coding_charset): Fix detection of multi-byte
16876 charset.
16877
168782008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
16879
16880 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
16881
168822008-02-01 Kenichi Handa <handa@m17n.org>
16883
16884 * xdisp.c (get_next_display_element): Set it->face_id for the
16885 first component of a composition.
16886 (x_produce_glyphs): Check if the font is changed or not for composition.
16887
168882008-02-01 Kenichi Handa <handa@m17n.org>
16889
16890 * fontset.c (Qlatin): New variable.
16891 (syms_of_fontset): Define it as a lisp symbol.
16892 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
16893
168942008-02-01 Kenichi Handa <handa@m17n.org>
16895
16896 * font.c (font_unparse_fcname): Pay attention to the case that
16897 some of font property is a null string.
16898
168992008-02-01 Kenichi Handa <handa@m17n.org>
16900
16901 * term.c: Include "composite.h".
16902 (encode_terminal_code): Output all components of composition.
16903 Check the size of encode_terminal_src.
16904 (produce_glyphs): For composition, call produce_composite_glyph.
16905 (append_composite_glyph, produce_composite_glyph): New functions.
16906
16907 * xdisp.c (x_produce_glyphs): In handling composition, if a font
16908 is not found, get font_info from the current ascii face.
16909
169102008-02-01 Kenichi Handa <handa@m17n.org>
16911
16912 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
16913 buffer-file-name to Qnil before calling insert_from_buffer.
16914
16915 * font.c (font_unparse_fcname): Pay attention to the case that
16916 foundry is a null string.
16917
169182008-02-01 Kenichi Handa <handa@m17n.org>
16919
16920 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
16921
16922 * font.c (Qunicode_sip): New variable.
16923 (syms_of_font): Declare it as a Lisp symbol.
16924
16925 * font.h (Qunicode_sip): Extern it.
16926
169272008-02-01 Kenichi Handa <handa@m17n.org>
16928
16929 * composite.c (get_composition_id): Pay attention to TAB component.
16930
16931 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
16932 TAB. Adjust for the change of s->char2b which always points to
16933 the first element of allocated memory.
16934
16935 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
16936
16937 * xdisp.c (handle_composition_prop): Set it->c to the first
16938 non-TAB component.
16939 (fill_composite_glyph_string): Change argument.
16940 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
16941 (x_produce_glyphs): Fix handling of left/right padding.
16942
169432008-02-01 Kenichi Handa <handa@m17n.org>
16944
16945 * coding.c (detect_coding_system): Fix for handling off
16946 inhibit_iso_escape_detection. Fix for the case that no coding
16947 system is defined for a specific coding category.
16948
169492008-02-01 Kenichi Handa <handa@m17n.org>
16950
16951 * font.c (font_matching_entity): Delete unused local var.
16952
16953 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
16954 opening a font.
16955
16956 * fileio.c (Finsert_file_contents): On recovering a file, assume
16957 Unix-like eol.
16958 (choose_write_coding_system): On auto-saving a file, force
16959 Unix-like eol.
16960
16961 * coding.c (setup_coding_system): Fix setting of
16962 coding->common_flags based on eol_type.
16963 (coding_inherit_eol_type): If PARENT is not nil, be sure to
16964 inherit from it.
16965
169662008-02-01 Kenichi Handa <handa@m17n.org>
16967
16968 * alloc.c (NSTATICS): Increas to 0x600.
16969
169702008-02-01 Kenichi Handa <handa@m17n.org>
16971
16972 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
16973 (ftfont_list): Don't check :name property.
16974 (ftfont_match): New function.
16975 (ftfont_pattern_entity): If the pattern doesn't contain
16976 FC_SPACING, don't assume FC_MONO.
16977
16978 * font.h (struct font_driver): New member `match'.
16979 (font_update_drivers): Adjust prototype.
16980
16981 * font.c (font_parse_fcname, font_parse_name): Don't change :name
16982 property of FONT.
16983 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
16984 them unconditionally.
16985 (font_matching_entity): New function.
16986 (font_open_by_name): Try font_matching_entity if exact match is
16987 not found.
16988 (font_update_drivers): Delete the arg FONT. Return a list of
16989 actually used backends. Don't free faces, font caches here.
16990 Don't store data in frame parameters. Don't call x_set_font.
16991 (Ffont_spec): Store :name property as is.
16992 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
16993 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
16994 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
16995 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
16996 Call font->driver->otf_gsub instead of font_otf_gsub.
16997
16998 * frame.c (x_set_font_backend): Do more works that were done in
16999 font_update_drivers before.
17000
17001 * xfont.c (xfont_match): New function.
17002 (xfont_driver): Set xfont_driver.match to xfont_match.
17003 (xfont_draw): Set font in GC if necessary.
17004
17005 * ftxfont.c (ftxfont_match): New function.
17006 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
17007
17008 * xftfont.c (xftfont_match): New function.
17009 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
17010
170112008-02-01 Kenichi Handa <handa@m17n.org>
17012
17013 * font.h (struct font): New member scalable.
17014 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
17015 (font_otf_gsub): Adjust prototype.
17016
17017 * font.c (font_otf_capability): Fix handling of the default langsys.
17018 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
17019 Check the contents of SPEC.
17020 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
17021 (check_gstring): New function.
17022 (REPLACEMENT_CHARACTER): New macro.
17023 (font_otf_gsub): New arg alternate_subst. Be sure to set all
17024 glyph codes of GSTRING.
17025 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
17026 (font_prepare_composition): Set cmp->glyph_len.
17027 (font_open_entity): Set font->scalable.
17028 (Ffont_get): Handle :otf property.
17029 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
17030 functions.
17031 (Fquery_font): Use font->font.full_name.
17032 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
17033 Sfont_otf_alternates.
17034
17035 * ftfont.c (ftfont_open): Set font->font.full_name and
17036 font->font.name properly. Fix calculation of font->font.height
17037 and font->min_width.
17038
17039 * ftxfont.c (ftxfont_create_gcs): New function.
17040 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
17041 (ftxfont_draw_backgrond): Fix filling region.
17042 (ftxfont_default_fid): New function.
17043 (ftxfont_open): Set xfont->fid to the return value of
17044 ftxfont_default_fid.
17045 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
17046 (ftxfont_done_face): Free only GCs that are created by
17047 ftxfont_create_gcs.
17048 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
17049
17050 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
17051 Clip to src->width, etc (not src->clip_XXX).
17052
17053 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
17054 FontBackend frame parameter.
17055
170562008-02-01 Kenichi Handa <handa@m17n.org>
17057
17058 * font.h (struct font_driver_list): New member `on'.
17059 (Fclear_font_cache): EXFUN it.
17060 (font_update_drivers): Extern it.
17061
17062 * font.c (font_unparse_fcname): Fix typo (swidth->width).
17063 (font_list_entities): Check driver_list->on.
17064 (register_font_driver): Initalize `on' member to 0.
17065 (font_update_drivers): New function.
17066 (Fclear_font_cache): Check driver_list->on.
17067
17068 * frame.h (Qfont_backend): Extern it.
17069 (x_set_font_backend): Extern it.
17070
17071 * frame.c (Qfont_backend): New variable.
17072 (frame_parms): New element for font-backend.
17073 (x_set_font_backend): New function.
17074
17075 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
17076 FontBackend frame parameter.
17077 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
17078 x_set_font_backend.
17079
17080 * xfont.c (xfont_list): Don't try listing by :name property if the
17081 name is not for XLFD.
17082
170832008-02-01 Kenichi Handa <handa@m17n.org>
17084
17085 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
17086 (LGLYPH_SET_TO): New macros.
17087 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
17088 element of G is vector or not.
17089 (font_at): Extern it.
17090
17091 * font.c: Include window.h.
17092 (font_lispy_object): New function.
17093 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
17094 end of valid glyph.
17095 (font_close_object): Fix getting (struct font *).
17096 (font_at): New function.
17097 (Ffont_get): If FONT is a font-object, get entity from it.
17098 (Ffont_make_gstring): Initialize elements of glyphs with nil.
17099 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
17100 range check.
17101 (Ffont_at): New function.
17102 (syms_of_font): Defsubr Sfont_at.
17103
17104 * xdisp.c (it_props): Move the entry for Qauto_composed to just
17105 before the entry for Qcomposition.
17106 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
17107 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
17108 the font in gstring.
17109 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
17110 LGLYPH_FORM (g) to detect the end of valid glyph.
17111 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
17112 we are composing with gstring.
17113
17114 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
17115 Check if adjustment is vector or not.
17116
17117 * Makefile.in (font.o): Make it depends on window.h.
17118
171192008-02-01 Kenichi Handa <handa@m17n.org>
17120
17121 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
17122 adjustment is vector or not.
17123
171242008-02-01 Miles Bader <miles@gnu.org>
17125
17126 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
17127
171282008-02-01 Kenichi Handa <handa@m17n.org>
17129
17130 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
17131 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
17132 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
17133
17134 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
17135 (DEVICE_DELTA): Fix typo.
17136 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
17137 LGLYPH format.
17138
17139 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17140 the change of LGLYPH format.
17141
171422008-02-01 Kenichi Handa <handa@m17n.org>
17143
17144 * ftfont.c (ftfont_list): Fix typo.
17145 (ftfont_build_basic_charsets): Don't include letters with diacritics.
17146
171472008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17148
17149 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
17150
17151 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
17152 xftface_info is non-NULL.
17153
171542008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17155
17156 * ftfont.c (ftfont_list): Move misplaced #endif.
17157
171582008-02-01 Kenichi Handa <handa@m17n.org>
17159
17160 * ftfont.c (ftfont_list): Pay attention to the case that
17161 FC_CAPABILITY is not defined.
17162
171632008-02-01 Kenichi Handa <handa@m17n.org>
17164
17165 * xftfont.c (xftfont_open): Set charset related members to -1.
17166
17167 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
17168 QCname.
17169 (ftfont_open): Set charset related members to -1.
17170
17171 * fontset.c (Votf_script_alist): New variable.
17172 (syms_of_fontset): Initialize it.
17173 (fontset_font): Delete unused variable.
17174
17175 * fontset.h (Votf_script_alist): Extern it.
17176
17177 * font.c (font_find_for_lface): Optimize code.
17178
17179 * font.h (font_close_object, font_merge_old_spec): Extern them.
17180
171812008-02-01 Kenichi Handa <handa@m17n.org>
17182
17183 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
17184 (syms_of_font): Initialize them.
17185 (font_pixel_size): Allow float value in dpi.
17186 (font_prop_validate_type): Delete.
17187 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
17188 Change caller.
17189 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
17190 (font_prop_validate_extra): Delete.
17191 (font_prop_validate_spacing): New function.
17192 (font_property_table): Add elements for all known properties.
17193 (get_font_prop_index): Rename from check_font_prop_name. New
17194 argument FROM. Change caller.
17195 (font_prop_validate): Validate all known properties.
17196 (font_put_extra): Delete argument force. Change caller.
17197 (font_expand_wildcards): Make it static. Fix the way of shrinking
17198 the possible range.
17199 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
17200 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
17201 Change caller.
17202 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
17203 (font_parse_fcname): Delete argument merge. Fix parsing of point
17204 size. Don't validate properties values here. Change caller.
17205 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
17206 (font_open_by_name): Delete unused variable.
17207 (Ffont_spec): Likewise. Validate property values.
17208 (Ffont_match_p): New function.
17209
17210 * font.h (QCscalable): Extern it.
17211 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
17212
17213 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
17214
17215 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
17216 (xfont_list_pattern): New function.
17217 (xfont_list): Use xfont_list_pattern.
17218
172192008-02-01 Kenichi Handa <handa@m17n.org>
17220
17221 * font.h (Flist_fonts): EXFUN it.
17222
172232008-02-01 Jason Rumney <jasonr@gnu.org>
17224
17225 * w32term.c (w32_initialize): Add back smoothing_type and
17226 smoothing_enabled definitions.
17227
172282008-02-01 Kenichi Handa <handa@m17n.org>
17229
17230 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
17231 s->face->font on determining underline position.
17232
172332008-02-01 Kenichi Handa <handa@m17n.org>
17234
17235 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
17236 (font_has_char): Accept font-object too.
17237 (font_find_for_lface): Try at first with a size specified in face.
17238
172392008-02-01 Kenichi Handa <handa@m17n.org>
17240
17241 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
17242 font_open_by_name.
17243
172442008-02-01 Kenichi Handa <handa@m17n.org>
17245
17246 * font.h (QCspacing, QCdpi): Extern them.
17247 (enum font_spacing): New enum.
17248 (FONT_PIXEL_SIZE_QUANTUM): New macro.
17249
17250 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
17251 (QCspacing, QCdpi): New variables.
17252 (syms_of_font): Initialize them.
17253 (font_pixel_size): New function.
17254 (font_put_extra): New function.
17255 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
17256 in FONT_EXTRA.
17257 (font_parse_fcname): Handle enumerated values (e.g. bold).
17258 Fix handling font size. Add QCname property that contains only
17259 unknown properties.
17260 (font_score): Change argument. Change caller. Pay attention to
17261 FONT_PIXEL_SIZE_QUANTUM.
17262 (font_sort_entites, font_list_entities, font_find_for_lface)
17263 (font_open_for_lface, font_open_by_name): Fix handling of font size.
17264 (Ffont_spec): Add QCname property that contains only unknown properties.
17265
17266 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
17267 include weight in listing pattern, instead check weight of each
17268 listed font. Don't include scalable in pattern. Pay attention to
17269 FONT_PIXEL_SIZE_QUANTUM.
17270
172712008-02-01 Kenichi Handa <handa@m17n.org>
17272
17273 * font.c (font_parse_fcname): Fix parsing of point-size.
17274 (font_unparse_fcname): Produce symbolic names for style properties.
17275 (font_list_entities): Handle float size correctly.
17276 (font_open_by_name): Prefer `normal' property values if the name
17277 doesn't specify them.
17278
17279 * fontset.c (Finternal_char_font): Use font_get_name, not
17280 Ffont_xlfd_name.
17281
17282 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
17283 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
17284 pattern. Don't force scalable.
17285
17286 * xftfont.c (xftfont_open): For generating a name, start from
17287 96-byte buffer.
17288
172892008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17290
17291 * frame.h (x_new_fontset2): Fix prototype.
17292
172932008-02-01 Kenichi Handa <handa@m17n.org>
17294
17295 * font.h (struct font_driver): Delete member parse_name.
17296 (font_match_p, font_get_spec, font_parse_fcname)
17297 (font_unparse_fcname): Extern them.
17298 (font_get_name): Adjust prototype.
17299
17300 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
17301 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
17302 (font_expand_wildcards): Fix handling ENCODING field. Avoid
17303 unnecessary checks for weight, slant, and swidth.
17304 (font_parse_fcname): New function.
17305 (font_unparse_fcname): New function.
17306 (font_parse_name): New function.
17307 (font_match_p): New function.
17308 (font_get_name): Change return value to Lisp string.
17309 (font_get_spec): New function.
17310 (Qunspecified, Qignore_defface): Don't extern them.
17311 (font_find_for_lface): Assume that LFACE is fully specified.
17312 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
17313 object, use it for FACE.
17314 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
17315 driver->parse_name.
17316 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
17317
17318 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
17319 prototype.
17320
17321 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
17322 argument F. Don't call Fnew_fontset. Instead, directly call
17323 make_fontset.
17324
17325 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
17326
17327 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
17328 of x_new_fontset2.
17329
17330 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
17331 (Qsans__serif): New variables.
17332 (ftfont_generic_family_list): New variable.
17333 (syms_of_ftfont): Initialize the above variables.
17334 (ftfont_pattern_entity): Delete argument NAME.
17335 (ftfont_list_generic_family): New function.
17336 (ftfont_parse_name): Delete this function.
17337 (ftfont_list): Try generic family only when FcFontList found no font.
17338 (ftfont_list_family): Fix args to FcObjectSetBuild.
17339
17340 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
17341 object in attrs[LFACE_FONT_INDEX].
17342 (set_lface_from_font_name): Cancel all changes for font-backend.
17343 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
17344 function.
17345 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
17346 font object in QCfont attribute.
17347 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
17348 (realize_default_face) [USE_FONT_BACKEND]: Call
17349 set_lface_from_font_and_fontset.
17350
17351 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
17352 "fixed", and signal error here if no suitable font was found.
17353
17354 * xfont.c (xfont_parse_name): Delete this function.
17355
17356 * xftfont.c (xftfont_open): Change coding style of error
17357 handling. Generate fontconfig's fontname pattern.
17358
17359 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
17360 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
17361
17362 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
17363 Both args FONTSET and FONT_OBJECT must be existing ones.
17364
173652008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17366
17367 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
17368
173692008-02-01 Kenichi Handa <handa@m17n.org>
17370
17371 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
17372
17373 * font.h (struct font): Fix typo.
17374
17375 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
17376 XLFD_XXX_INDEX.
17377 (enum xlfd_field_mask): New enum.
17378 (intern_font_field): Changed argument. Change caller. If digits
17379 are followed by non-digits, return a symbol.
17380 (font_expand_wildcards): New function.
17381 (font_parse_xlfd): Fix wildcard handling.
17382 (Ffont_spec): If :name is specified, reflect the info in the other
17383 properties.
17384
17385 * ftfont.c (ftfont_pattern_entity): Fix typo.
17386 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
17387 locale.
17388
173892008-02-01 Kenichi Handa <handa@m17n.org>
17390
17391 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
17392
17393 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
17394 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
17395 registry doesn't specify encoding part.
17396 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
17397 (font_open_by_name): At first try parsing the name.
17398 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
17399 as Lisp symbols.
17400
17401 * fontset.c (reorder_font_vector): Pay attention to the case that
17402 the 3rd element of font_def is nil.
17403 (fontset_font): For the default fontset, append one more fontset
17404 elements for a script-based font specification. Don't add script
17405 attribute on finding a font.
17406 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
17407 font name.
17408 (fontset_ascii_font): If a font can't be opened, return nil.
17409
17410 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
17411 (ftfont_pattern_entity): New function.
17412 (ftfont_get_cache): Assume that freetype_font_cache is already
17413 initialized.
17414 (ftfont_list): Handle the case that a file is specified in font
17415 name. Use ftfont_pattern_entity to generate entities.
17416 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
17417 (syms_of_ftfont): Initialize freetype_font_cache.
17418
17419 * xftfont.c (xftfont_open): Make the font name fontconfig's
17420 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
17421 (xftfont_close): Free font->font.name if not NULL.
17422
17423 * xfont.c (xfont_list): If script is specified for a font, return
17424 null_vector.
17425 (xfont_list_family): Declare argument type.
17426
17427 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
17428 name, set LFACE_FONT (lface) to nil.
17429
17430 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
17431 return Qnil.
17432
174332008-02-01 Kenichi Handa <handa@m17n.org>
17434
17435 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
17436 (standard_args): Add "-enable-font-backend".
17437
174382008-02-01 Kenichi Handa <handa@m17n.org>
17439
17440 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
17441 (struct xftdraw_list, xftdraw_list): Delete them.
17442 (register_xftdraw, check_xftdraw): Delete them.
17443 (xftfont_prepare_face): Don't call register_xftdraw.
17444 (xftfont_done_face): Don't call check_xftdraw.
17445 (xftfont_draw): Get background color only when with_background is
17446 nonzero.
17447
17448 * xfont.c (xfont_encode_char): Fix calculation of char2b.
17449
174502008-02-01 Kenichi Handa <handa@m17n.org>
17451
17452 These changes are for the new font handling codes.
17453
17454 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
17455 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
17456 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
17457 (FONTSRC, FONTOBJ): New variables.
17458 (obj): Add $(FONTOBJ).
17459 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
17460 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
17461 @LIBOTF_LIBS@.
17462 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
17463 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
17464
17465 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
17466
17467 * character.h (Vscript_representative_chars): Extern it.
17468
17469 * character.c (Vscript_representative_chars): New variable.
17470 (syms_of_character): Declare it as a Lisp variable.
17471
17472 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
17473 enable_font_backend is nonzero, accept the composition method
17474 COMPOSITION_WITH_GLYPH_STRING.
17475
17476 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
17477 enumeration COMPOSITION_WITH_GLYPH_STRING.
17478
17479 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
17480 members clip_x, clip_y, clip_width, and clip_height.
17481 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
17482
17483 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
17484 --enable-font-backend. Call syms_of_font.
17485
17486 * fns.c (assoc_no_quit): New function.
17487
17488 * fontset.h (FONT_INFO_FROM_FACE): New macro.
17489 (face_for_font, new_fontset_from_font)
17490 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
17491
17492 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
17493 (fontset_font, fontset_ascii, face_for_char)
17494 (make_fontset_for_ascii_face, Ffont_info)
17495 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
17496 is nonzero, use font-backend mechanism.
17497 (find_font_encoding): Make it non-static.
17498 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
17499 New functions.
17500
17501 * frame.h (struct frame): New members resx and resy.
17502 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
17503 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
17504
17505 * frame.c [USE_FONT_BACKEND]: Include "font.h".
17506 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
17507
17508 * lisp.h (assoc_no_quit): Extern it.
17509
17510 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
17511 Through out the file, use FONT_INFO_FROM_FACE instead of
17512 FONT_INFO_FROM_ID, use get_per_char_metric instead of
17513 rif->per_char_metric.
17514 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
17515 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
17516 (get_glyph_face_and_encoding, fill_composite_glyph_string)
17517 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
17518 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
17519 nonzero, use font-backend mechanism.
17520 (get_per_char_metric): New function.
17521
17522 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
17523 (set_lface_from_font_name)
17524 (set_font_frame_param, free_realized_face)
17525 (prepare_face_for_display, clear_face_gcs)
17526 (Finternal_set_font_selection_order, realize_x_face)
17527 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
17528 font-backend mechanism.
17529 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
17530 (load_face_font) [USE_FONT_BACKEND]: Abort.
17531 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
17532 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
17533
17534 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
17535 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
17536 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
17537 nonzero, register all available font drivers. Call
17538 x_default_font_parameter for deciding a font.
17539 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
17540
17541 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
17542 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
17543 (x_set_glyph_string_clipping_exactly)
17544 (x_compute_glyph_string_overhangs)
17545 (x_draw_glyph_string_foreground)
17546 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
17547 (x_free_frame_resources) [USE_FONT_BACKEND]: If
17548 enable_font_backend is nonzero, use font-backend mechanism.
17549 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
17550
175512008-02-01 Kenichi Handa <handa@m17n.org>
17552
17553 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
17554 system_eol_type.
17555 (syms_of_coding): Initialize system_eol_type.
17556
17557 * process.c (Fset_process_coding_system): Inherit system's eol
17558 format if necessary.
17559
175602008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17561
17562 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
17563
175642008-02-01 Kenichi Handa <handa@m17n.org>
17565
17566 * coding.c (decode_eol): Pay attention to buffer relocation in
17567 del_range_2.
17568 (decode_coding): Call decode_eol before restoring undo_list.
17569
175702008-02-01 Kenichi Handa <handa@m17n.org>
17571
17572 * charset.c (Fdefine_charset_internal): Fix setting of
17573 emacs_mule_bytes.
17574
175752008-02-01 Kenichi Handa <handa@m17n.org>
17576
17577 * keyboard.c (read_char): Check if C is a character or not before
17578 looking up Vkeyboard_translate_table.
17579
175802008-02-01 Kenichi Handa <handa@m17n.org>
17581
17582 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
17583 condition to terminate the loop.
17584
175852008-02-01 Kenichi Handa <handa@m17n.org>
17586
17587 * coding.c (produce_composition): Compare charbuf[i] instead of
17588 args[i] against 0.
17589 (Fterminal_coding_system): Use EQ to compare Lisp objects.
17590
175912008-02-01 Kenichi Handa <handa@m17n.org>
17592
17593 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
17594 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
17595 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
17596 detect_coding.
17597 (emacs_mule_char): Handle old style (Emacs 20) component character
17598 of a composition.
17599 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
17600 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
17601 composition rule.
17602 (decode_coding_emacs_mule): Handle invalid bytes correctly.
17603
176042008-02-01 Kenichi Handa <handa@m17n.org>
17605
17606 * coding.c (encode_coding_ccl): Allocate destination dynamically
17607 when necessary.
17608
176092008-02-01 Kenichi Handa <handa@m17n.org>
17610
17611 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
17612 the loop. When quitted, show a proper error message.
17613
176142008-02-01 Kenichi Handa <handa@m17n.org>
17615
17616 * xterm.c (x_set_glyph_string_clipping_exactly): Set
17617 src->clip_head and src->clip_tail temporarily instead of src->hl.
17618
17619 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
17620 character sequence.
17621 (Fccl_execute_on_string): Use ASET, not XSET.
17622
176232008-02-01 Kenichi Handa <handa@m17n.org>
17624
17625 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
17626
176272008-02-01 Kenichi Handa <handa@m17n.org>
17628
17629 * coding.c (decode_coding): Fix the condition of terminating the
17630 decoding loop.
17631
176322008-02-01 Kenichi Handa <handa@m17n.org>
17633
17634 * data.c (Faset): On setting a character bigger than 255 in a
17635 unibyte string, signal an error instead of make the string multibyte.
17636
176372008-02-01 Kenichi Handa <handa@m17n.org>
17638
17639 * charset.c (map_charset_chars): Fix for ascii-compatible charset
17640 made by a mapping table.
17641
176422008-02-01 Kenichi Handa <handa@m17n.org>
17643
17644 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
17645 not.
17646 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
17647 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
17648
17649 * xterm.c (x_draw_composite_glyph_string_foreground): Check
17650 s->face is NULL or not.
17651
176522008-02-01 Kenichi Handa <handa@m17n.org>
17653
17654 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
17655 (x_draw_glyph_string): Fix drawing of right_overhang and
17656 left_overhang around/on cursor.
17657
17658 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
17659
176602008-02-01 Kenichi Handa <handa@m17n.org>
17661
17662 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
17663
176642008-02-01 Kenichi Handa <handa@m17n.org>
17665
17666 * coding.c (Fdefine_coding_system_internal)
17667 (Fdefine_coding_system_alias): Avoid a duplicated element in
17668 Vcoding_system_alist.
17669
176702008-02-01 Kenichi Handa <handa@m17n.org>
17671
17672 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
17673
17674 * coding.c (Qcoding_system_define_form): New variable.
17675 (syms_of_coding): Intern and staticpro it.
17676 (Fcoding_system_p): Check Qcoding_system_define_form.
17677 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
17678
17679 * coding.h (CODING_SYSTEM_P): If ID is not available, call
17680 Fcoding_system_p.
17681 (CHECK_CODING_SYSTEM): If ID is not available, call
17682 Fcheck_coding_system.
17683 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
17684 Try also Fcheck_coding_system.
17685
176862008-02-01 Kenichi Handa <handa@m17n.org>
17687
17688 * coding.c (code_conversion_restore): GCPRO arg.
17689
176902008-02-01 Kenichi Handa <handa@m17n.org>
17691
17692 * character.c (lisp_string_width): Check multibyteness of STRING.
17693
176942008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17695
17696 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
17697 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
17698 (decode_mac_font_name): Use decode_coding_c_string instead of
17699 decode_coding.
17700 (x_load_font): Initialize fontp->fontset to -1. Set
17701 fontp->encoding_type.
17702
177032008-02-01 Kenichi Handa <handa@m17n.org>
17704
17705 * search.c (search_buffer): Give up BM search on case-fold-search
17706 if one of a target character has a case-equivalence of different
17707 byte length even if that target charcter is an ASCII.
17708 (simple_search): Fix calculation of byte length of matched text.
17709 (boyer_moore): Fix handling of case-equivalent multibyte characters.
17710
177112008-02-01 Kenichi Handa <handa@m17n.org>
17712
17713 * coding.c (decode_coding): Fix handling of invalid bytes.
17714
177152008-02-01 Kenichi Handa <handa@m17n.org>
17716
17717 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
17718 Unicode characters.
17719
177202008-02-01 Kenichi Handa <handa@m17n.org>
17721
17722 * coding.c (encode_coding_object): If a pre-write-conversion
17723 function makes a new buffer, kill it.
17724
177252008-02-01 Kenichi Handa <handa@m17n.org>
17726
17727 * coding.c (QCascii_compatible_p): New variable.
17728 (syms_of_coding): Initialize it.
17729 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
17730 calling string_char.
17731 (record_conversion_result): Add `default:' case.
17732 (coding_charset_list): Delete unused variable `coding_type'.
17733 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
17734 property in the plist of the coding system.
17735 (Fcoding_system_put): Check QCascii_compatible_p.
17736
177372008-02-01 Miles Bader <miles@gnu.org>
17738
17739 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
17740 removed calculation of frame `f', as it's now used.
17741
177422008-02-01 Kenichi Handa <handa@m17n.org>
17743
17744 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
17745 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
17746 (UNIDATA): New variable.
17747 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
17748 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
17749 $(RUN_TEMACS) unconditionally.
17750
177512008-02-01 Kenichi Handa <handa@m17n.org>
17752
17753 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
17754 (admindir): New variable.
17755 ($(lispsource)international/charprop.el): New target.
17756
177572008-02-01 Miles Bader <miles@gnu.org>
17758
17759 * character.c (chars-in-region): Remove obsolete function.
17760 (syms_of_character): Remove its initialization.
17761
177622008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
17763
17764 * w32select.c (validate_coding_system)
17765 (setup_windows_coding_system): New functions.
17766 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
17767 setup_windows_coding_system.
17768 (setup_config, Fw32_get_clipboard_data): Use
17769 validate_coding_system.
17770 (Fx_selection_exists): Move call to setup_config to a place
17771 where signals are allowed.
17772
17773 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
17774 (Fcheck_coding_system): Add declarations.
17775
177762008-02-01 Kenichi Handa <handa@m17n.org>
17777
17778 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
17779
177802008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17781
17782 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
17783 string as the second argument for x_new_fontset.
17784
177852008-02-01 Kenichi Handa <handa@m17n.org>
17786
17787 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
17788 (encode_coding_object): Use safe_call instead of call2.
17789
177902008-02-01 Kenichi Handa <handa@m17n.org>
17791
17792 * fontset.c (Fset_fontset_font): Check family element of a given vector.
17793
17794 * Makefile.in (lisp): Include charprop.el.
17795
177962008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17797
17798 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
17799 Not sure if it's unnecessary.
17800
178012008-02-01 Steven Tamm <steventamm@mac.com>
17802
17803 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
17804 some possibly unnecessary fontset checking code that crashed
17805 when creating a new frame.
17806
178072008-02-01 Kenichi Handa <handa@m17n.org>
17808
17809 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
17810 lookup_face.
17811
17812 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
17813
17814 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
17815
178162008-02-01 Kenichi Handa <handa@m17n.org>
17817
17818 * coding.c: Cancel the change done in HEAD on 2008-02-01.
17819 (coding_charset_list): New function.
17820
17821 * coding.h (coding_charset_list): Extern it.
17822
178232008-02-01 Kenichi Handa <handa@m17n.org>
17824
17825 * fontset.c (Fset_fontset_font): Call find_font_encoding with
17826 concatenation of family and registry.
17827
178282008-02-01 Kenichi Handa <handa@m17n.org>
17829
17830 * character.h (BYTE8_STRING): Fix typo.
17831
17832 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
17833 string to multibyte (sync to HEAD).
17834
17835 * casefiddle.c (casify_region): Handle changes in byte-length
17836 using replace_range_2 (sync to HEAD).
17837
178382008-02-01 Andreas Schwab <schwab@suse.de>
17839
17840 * chartab.c (map_char_table): GCPRO table and arg.
17841
178422008-02-01 Kenichi Handa <handa@m17n.org>
17843
17844 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
17845 already at limit.
17846
178472008-02-01 Kenichi Handa <handa@m17n.org>
17848
17849 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
17850 instead of fast_c_string_match_ignore_case.
17851 (find_font_encoding): Change argument to Lisp_Object. Use
17852 fast_string_match_ignore_case instead of
17853 fast_c_string_match_ignore_case. Change caller.
17854
178552008-02-01 Kenichi Handa <handa@m17n.org>
17856
17857 * xdisp.c (get_next_display_element): In unibyte case, decide to
17858 display in octal form by checking a character by
17859 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
17860
17861 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
17862
17863 * character.c (unibyte_has_multibyte_table): New variable.
17864
17865 * character.h (unibyte_has_multibyte_table): Extern it.
17866 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
17867
178682008-02-01 Kenichi Handa <handa@m17n.org>
17869
17870 * coding.c (encode_coding_iso_2022): Fix handling of charset
17871 annotation.
17872
178732008-02-01 Kenichi Handa <handa@m17n.org>
17874
17875 * coding.c (setup_coding_system): If coding_system is nil, use
17876 Qundecided.
17877 (Fterminal_coding_system): Return nil if terminal coding system is
17878 `undecided'.
17879 (syms_of_coding): Define coding-system `undecided' here. Setup
17880 terminal_coding as `undecided'.
17881
178822008-02-01 Kenichi Handa <handa@m17n.org>
17883
17884 * xdisp.c (message_dolog, set_message_1): Call
17885 unibyte_char_to_multibyte with arg type int.
17886
17887 * lread.c (read1): Fix reading of a char-table.
17888
17889 * print.c (print_object): Include sub char-table in circularities
17890 detection.
17891
178922008-02-01 Kenichi Handa <handa@m17n.org>
17893
17894 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
17895 Append the found sequences in car of ARGS instead of prepending.
17896
178972008-02-01 Kenichi Handa <handa@m17n.org>
17898
17899 * fileio.c (report_file_error): Make a unibyte string from
17900 strerror (errorno).
17901 (Fsubstitute_in_file_name): Fix the arg to
17902 unibyte_char_to_multibyte. It is evaluated twice.
17903
179042008-02-01 Kenichi Handa <handa@m17n.org>
17905
17906 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
17907
179082008-02-01 Kenichi Handa <handa@m17n.org>
17909
17910 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
17911 BOM is not found.
17912 (detect_coding, detect_coding_system): Optimization for ISO-2022
17913 when no 8-bit data is found.
17914
179152008-02-01 Jason Rumney <jasonr@gnu.org>
17916
17917 * w32fns.c (x_to_w32_font): Update to use new coding struct.
17918
179192008-02-01 Kenichi Handa <handa@m17n.org>
17920
17921 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
17922 CHARS.
17923
179242008-02-01 Steven Tamm <steventamm@mac.com>
17925
17926 * macterm.c (mac_encode_char): Add charset argument and update
17927 to use encoding_type.
17928 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
17929 switch to pure fontset.
17930 (decode_mac_font_name): Temporarily remove decoding.
17931 (x_font_name_to_mac_font_name): Temporarily remove encoding.
17932 (x_load_font): Temporarily remove encoding.
17933
179342008-02-01 Kenichi Handa <handa@m17n.org>
17935
17936 * xfaces.c (Fface_font): If frame is not on a window system,
17937 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
17938 refer to face->font.
17939 (split_font_name_into_vector, build_font_name_from_vector)
17940 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
17941 when HAVE_WINDOW_SYSTEM is defined.
17942
179432008-02-01 Kenichi Handa <handa@m17n.org>
17944
17945 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
17946 (x_produce_glyphs): Fix setting of members of cmp in case
17947 cmp->glyph_len is zero.
17948
17949 * fontset.c (Fset_fontset_font): Fix docstring.
17950 (Ffontset_info): Make it backward compatible. New arg ALL.
17951
179522008-02-01 Kim F. Storm <storm@cua.dk>
17953
17954 * process.c (read_process_output): Grow decoding_buf when needed;
17955 this could cause a crash in allocate_string and compact_small_strings.
17956
179572008-02-01 Kenichi Handa <handa@m17n.org>
17958
17959 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
17960
179612008-02-01 Kenichi Handa <handa@m17n.org>
17962
17963 * coding.c (setup_coding_system): Set coding->common_flags
17964 correctly for raw-text.
17965 (consume_chars): On encoding unibyte text by raw-text, don't check
17966 multibyte form.
17967 (encode_coding): On encoding by raw-text, never use translation tables.
17968
17969 * fileio.c (e_write): Short cut for the case of no encoding.
17970
179712008-02-01 Kenichi Handa <handa@m17n.org>
17972
17973 * coding.c (detect_coding, detect_coding_system): Delete unused
17974 variables.
17975
179762008-02-01 Kenichi Handa <handa@m17n.org>
17977
17978 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
17979 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
17980
179812008-02-01 Kenichi Handa <handa@m17n.org>
17982
17983 * coding.c (Ffind_coding_systems_region_internal): Include
17984 raw-text and no-conversion in the result.
17985
179862008-02-01 Kenichi Handa <handa@m17n.org>
17987
17988 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
17989 (load_font_get_repertory): Delete unnecessary check of ENCODING of
17990 FONT_DEF.
17991 (font_def_arg, add_arg, from_arg, to_arg): New args.
17992 (set_fontset_font): Change argument.
17993 (Fset_fontset_font): Fix for the case that TARGET is a script
17994 name and charset name.
17995 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
17996
179972008-02-01 Kenichi Handa <handa@m17n.org>
17998
17999 * fontset.c (fontset_font): Rename from fontset_face. Change return
18000 value.
18001 (face_suitable_for_char_p, face_for_char): Adjust for the change
18002 of fontset_font.
18003 (make_fontset_for_ascii_face): Fix setting of the fontset element
18004 for ASCII.
18005 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
18006 to get a font name.
18007 (Ffontset_info): Adjust for the change of fontset_font.
18008
18009 * coding.c (emacs_mule_char): Check invalid code more rigidly.
18010
18011 * character.h (LEADING_CODE_LATIN_1_MIN)
18012 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
18013
180142008-02-01 Kenichi Handa <handa@m17n.org>
18015
18016 * editfns.c (check_translation): New function.
18017 (Ftranslate_region_internal): Handle M:N mapping.
18018
180192008-02-01 Kenichi Handa <handa@m17n.org>
18020
18021 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
18022
180232008-02-01 Kenichi Handa <handa@m17n.org>
18024
18025 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
18026 goto invalid_code.
18027 (decode_coding_iso_2022): Fix handling of invalid designation.
18028
18029 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
18030 after calling code_conversion_save.
18031
180322008-02-01 Kenichi Handa <handa@m17n.org>
18033
18034 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
18035
18036 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
18037
18038 * fontset.c: Include "intervals.h".
18039 (fontset_face): Fix comparing of Lisp_Objects.
18040 (free_face_fontset, new_fontset_from_font_name): Fix
18041 Lisp_Object/int mixup.
18042
18043 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
18044
18045 * coding.c: Add many prototypes for static functions.
18046 (get_translation_table): Allow max_lookup to be NULL.
18047 (decode_coding, Ffind_coding_systems_region_internal)
18048 (Funencodable_char_position, Fcheck_coding_systems_region): Call
18049 get_translation_table with max_lookup NULL.
18050
180512008-02-01 Kenichi Handa <handa@m17n.org>
18052
18053 * coding.c (get_translation_table): Declare it as Lisp_Object.
18054 (LOOKUP_TRANSLATION_TABLE): New macro.
18055 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
18056 instead of CHAR_TABLE_REF.
18057
180582008-02-01 Kenichi Handa <handa@m17n.org>
18059
18060 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
18061 annotation data format.
18062 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
18063 Change arguments FROM and TO to single argument NCHARS. Change caller.
18064 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
18065 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18066 (decode_coding_ccl, decode_coding_charset): Pay attention to
18067 coding->charbuf_used.
18068 (get_translation): New function.
18069 (produce_chars): New arguments translation_table and last_block.
18070 Translate characters here. Return number of carryover chars.
18071 Change caller.
18072 (produce_composition): New argument pos. Change caller.
18073 Adjust for the change of annotation data format.
18074 (produce_charset, produce_annotation): Likewise.
18075 (decode_coding, encode_coding): Don't call translate_chars.
18076 (consume_chars): New arg translation_table. Change caller.
18077 (translate_chars): Delete.
18078 (syms_of_coding): Make translation-table's number of extra slots 2.
18079
180802008-02-01 Kenichi Handa <handa@m17n.org>
18081
18082 * search.c (simple_search): Fix setting this_pos_byte in backward
18083 search.
18084
18085 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
18086 byte sequence.
18087 (detect_coding_ccl): Fix setting of the variable valids.
18088
180892008-02-01 Kenichi Handa <handa@m17n.org>
18090
18091 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
18092
18093 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
18094
18095 * editfns.c (Ftranslate_region_internal): Rename from
18096 Ftranslate_region. Accept a char-table in TABLE.
18097 (syms_of_editfns): Defsubr Stranslate_region_internal.
18098
18099 * xfaces.c (set_lface_from_font_name): If a font is specified for
18100 a frame, generate a fontset from the font.
18101 (build_scalable_font_name): If the scalable font is requested for
18102 a specific size, don't change that size.
18103 (try_font_list): Try a scalable font also in the case that a
18104 pattern string is specified.
18105
181062008-02-01 Kenichi Handa <handa@m17n.org>
18107
18108 * xfaces.c (Fface_font): New optional arg CHARACTER.
18109
181102008-02-01 Kenichi Handa <handa@m17n.org>
18111
18112 * charset.h (CHARSET_OFFSET): New macro.
18113
181142008-02-01 Kenichi Handa <handa@m17n.org>
18115
18116 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
18117
18118 * fontset.c (fontset_face): Handle the case that repertory is a
18119 char-table.
18120 (find_font_encoding): Return nil for unknown encoding.
18121 (Fset_fontset_font): Ignore a font of unknown encoding.
18122
181232008-02-01 Kenichi Handa <handa@m17n.org>
18124
18125 * keymap.c (describe_vector): Handle default value of a char table.
18126
18127 * fontset.c (fontset_face): Handle fallback fonts correctly.
18128 (Ffontset_info): Return infomation about fallback fonts.
18129
181302008-02-01 Kenichi Handa <handa@m17n.org>
18131
18132 * fontset.c (FONTSET_DEFAULT): New macro.
18133 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
18134 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
18135 the case that it is nil.
18136 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
18137 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
18138
18139 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
18140 subset or superset.
18141
181422008-02-01 Kenichi Handa <handa@m17n.org>
18143
18144 * emacs.c (main): Call init_charset after syms_of_XXX.
18145
18146 * charset.c (Vcharset_map_directory): Delete.
18147 (Vcharset_map_path): New variable.
18148 (load_charset_map_from_file): Use Vcharset_map_path instead.
18149 (init_charset): Initialize Vcharset_map_path.
18150 (syms_of_charset): Delete declaration of "charset-map-directory",
18151 add declaration of "charset-map-path".
18152
181532008-02-01 Kenichi Handa <handa@m17n.org>
18154
18155 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
18156 ASCII only string.
18157
18158 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
18159
18160 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
18161 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
18162
181632008-02-01 Kenichi Handa <handa@m17n.org>
18164
18165 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
18166
18167 * coding.c (QCmnemonic, QCdefalut_char)
18168 (QCdecode_translation_table, QCencode_translation_table)
18169 (QCpost_read_conversion, QCpre_write_conversion): New variables.
18170 (get_translation_table): Return a list of translation tables if
18171 necessary.
18172 (decode_coding): Call get_translation_table with ENCODEP 0.
18173 (char_encodable_p): If translation_table is non-nil, always call
18174 translate_char.
18175 (Fdefine_coding_system_internal): Accept list of translation
18176 tables as :encode-translation-table and :decode-translation-table.
18177 (Fcoding_system_put): New function.
18178 (syms_of_coding): Declare new symbols. Defsubr
18179 Scoding_system_put.
18180 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
18181 typically JISX0212.
18182
18183 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
18184 when the charset is superset type.
18185
18186 * character.c (translate_char): Accept list of translation tables.
18187
181882008-02-01 Kenichi Handa <handa@m17n.org>
18189
18190 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
18191 (CODING_ATTR_TRANS_TBL): New macro.
18192
18193 * coding.c (get_translation_table): New function.
18194 (translate_chars): Fix the bug of skipping annotation data.
18195 (decode_coding, encode_coding): Utilize get_translation_table.
18196 (char_encodable_p, Funencodable_char_position): Translate char if
18197 necessary.
18198 (Ffind_coding_systems_region_internal)
18199 (Fcheck_coding_systems_region): Setup translation table for encode
18200 in a coding system attribute vector in advance.
18201 (Fdefine_coding_system_internal): Allow a symbol as translation
18202 table. For shift-jis type coding system, allow 4th charset.
18203
182042008-02-01 Kenichi Handa <handa@m17n.org>
18205
18206 * coding.c (decode_coding_sjis): Check the first byte rigidly.
18207
18208 * xdisp.c (get_next_display_element): Pass -1 as POS to
18209 FACE_FOR_CHAR if displaying a C-string.
18210
182112008-02-01 Kenichi Handa <handa@m17n.org>
18212
18213 * composite.c (get_composition_id): Handle xoff and yoff in a
18214 composition rule.
18215
18216 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
18217 (struct composition): New member lbearing and rbearing.
18218
18219 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
18220 (x_get_glyph_overhangs): Handle a composition glyph.
18221 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
18222
18223 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
18224 composition glyph.
18225
182262008-02-01 Kenichi Handa <handa@m17n.org>
18227
18228 * print.c: Include charset.h.
18229 (Vprint_charset_text_property): New variable.
18230 (Qdefault): Extern it.
18231 (PRINT_STRING_NON_CHARSET_FOUND)
18232 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
18233 (print_check_string_result): New variable.
18234 (print_check_string_charset_prop): New function.
18235 (print_prune_charset_plist): New variable.
18236 (print_prune_string_charset): New function.
18237 (print_object): Call print_prune_string_charset if
18238 Vprint_charset_text_property is not t.
18239 (print_interval): Print nothing if interval->plist is nil.
18240 (syms_of_print): Declare Vprint_charset_text_property as a lisp
18241 variable. Init and staticpro print_prune_charset_plist.
18242
182432008-02-01 Kenichi Handa <handa@m17n.org>
18244
18245 * fontset.c (new_fontset_from_font_name): Use the specified font
18246 for all characters in the new fontset.
18247
18248 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
18249 OBJECT args.
18250
18251 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
18252 OBJECT args for composition too.
18253
18254 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
18255 OBJECT args.
18256
182572008-02-01 Kenichi Handa <handa@m17n.org>
18258
18259 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
18260
18261 * fontset.c (reorder_font_vector): Adjust for the change of
18262 FONT_DEF format.
18263 (fontset_face): New arg id. Change caller.
18264 (face_for_char): New args pos and object.
18265 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
18266 (fs_query_fontset): Check NAME by Fassoc too.
18267 (Fset_fontset_font): Allow non-XLFD font name.
18268 (Ffontset_info): Adjust for the change of FONT_DEF format.
18269
18270 * fontset.h (face_for_char): Adjust prototype.
18271
18272 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
18273 (append_space, extend_face_to_end_of_line)
18274 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
18275 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
18276
18277 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
18278 POS and OBJECT args.
18279
18280 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
18281 POS and OBJECT args.
18282
182832008-02-01 Jason Rumney <jasonr@gnu.org>
18284
18285 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
18286 of GlobalAlloc'ed memory.
18287
182882008-02-01 Kenichi Handa <handa@m17n.org>
18289
18290 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
18291
18292 * charset.h (charset_table_used): Delete extern.
18293
18294 * charset.c (charset_table_used): Make it static.
18295 (map_charset_chars): Fix args to c_function with.
18296
18297 * chartab.c (map_sub_char_table_for_charset): Fix args to
18298 c_function with.
18299
18300 * coding.h (enum coding_result_code): Delete
18301 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
18302
18303 * coding.c (Qinsufficient_source, Qinconsistent_eol)
18304 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
18305 (Vlast_code_conversion_error): New variables.
18306 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
18307 (ONE_MORE_BYTE): Record error if any instead of signaling an
18308 error. If non-ASCII multibyte char is found, return the negative
18309 value of the code. All callers changed to check it.
18310 (ONE_MORE_BYTE_NO_CHECK): Likewise.
18311 (record_conversion_result): New function. Change all codes setting
18312 coding->result to call this function.
18313 (detect_coding_utf_8, decode_coding_utf_8)
18314 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
18315 Don't use the local variable incomplete.
18316 (emacs_mule_char): Change the second arg to `const'.
18317 (decode_coding): Fix of flushing out unprocessed data.
18318 (make_conversion_work_buffer): Fix making of a work buffer.
18319 (decode_coding_object): Return coding->dst_object.
18320
18321 * fontset.c (set_fontset_font): Fix args.
18322
18323 * lisp.h (CHARACTERBITS): Define as 22.
18324
18325 * process.c (send_process): Be sure to set coding->src_multibyte.
18326
18327 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
18328
183292008-02-01 Kenichi Handa <handa@m17n.org>
18330
18331 * xdisp.c (handle_auto_composed_prop): Give limit to
18332 Fnext_single_char_property_change.
18333
183342008-02-01 Kenichi Handa <handa@m17n.org>
18335
18336 * composite.c (syms_of_composite): Don't make the composition hash
18337 table weak.
18338
18339 * fontset.c (Fset_fontset_font): Fix docstring.
18340
18341 * lisp.h (detect_coding_system): Adjust prototype.
18342
18343 * fileio.c (kill_workbuf_unwind): Delete this function.
18344 (Finsert_file_contents): Adjust the call of detect_coding_system.
18345 Get conversion_buffer by code_conversion_save. Use the macro
18346 CODING_MAY_REQUIRE_DECODING. After decoding, update
18347 coding_system.
18348
18349 * coding.h (make_conversion_work_buffer): Delete extern.
18350 (code_conversion_save): Extern it.
18351
18352 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
18353 (CODING_GET_INFO): Delete argument eol_type. Change callers.
18354 (decode_coding_utf_8): Don't do eol converion.
18355 (detect_coding_utf_16): Check coding->src_chars, not
18356 coding->src_bytes. Add heuristics for those that have no signature.
18357 (decode_coding_emacs_mule, decode_coding_iso_2022)
18358 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
18359 Don't do eol converion.
18360 (adjust_coding_eol_type): Return a new coding system.
18361 (detect_coding): Don't detect eol. Fix for utf-16 detection.
18362 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
18363 each change.
18364 (decode_coding): Pay attention to undo_list. Do eol conversion for
18365 all types of coding-systems (if necessary).
18366 (Vcode_conversion_work_buf_list): Delete it.
18367 (Vcode_conversion_reused_workbuf): Rename from
18368 Vcode_conversion_reused_work_buf.
18369 (Vcode_conversion_workbuf_name): New variable.
18370 (reused_workbuf_in_use): New variable.
18371 (make_conversion_work_buffer): Delete the arg DEPTH.
18372 (code_conversion_restore): Change argument to cons.
18373 (code_conversion_save): Delete the argument BUFFER. Change callers.
18374 (detect_coding_system): New argument src_chars. Change callers.
18375 Fix for utf-16 detection.
18376 (init_coding_once): Don't use ISO_carriage_return.
18377 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
18378 reused_workbuf_in_use.
18379
183802008-02-01 Kenichi Handa <handa@m17n.org>
18381
18382 * keymap.c (store_in_keymap): Pay attention to the case that idx
18383 is a cons specifying a character range.
18384
183852008-02-01 Kenichi Handa <handa@m17n.org>
18386
18387 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
18388 HANDLED_RECOMPUTE_PROPS.
18389
18390 * coding.c (Fdefine_coding_system_internal): Fix checking of
18391 ascii compatibility.
18392
183932008-02-01 Kenichi Handa <handa@m17n.org>
18394
18395 * charset.c (find_charsets_in_text): Delete unused locale variable.
18396 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
18397
18398 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
18399 Resync charset_list to Vemacs_mule_charset_list.
18400
18401 * keymap.c (store_in_keymap): Pay attention to the case that idx
18402 is a cons specifying a character range.
18403
184042008-02-01 Kenichi Handa <handa@m17n.org>
18405
18406 * composite.c (update_compositions): Bind inhibit-read-only, etc
18407 to t before calling remove-list-of-text-properties.
18408
18409 * print.c (print_object): Always print ASCII chars as is.
18410
184112008-02-01 Kenichi Handa <handa@m17n.org>
18412
18413 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
18414
18415 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
18416 is a char table.
18417
184182008-02-01 Kenichi Handa <handa@m17n.org>
18419
18420 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
18421
184222008-02-01 Kenichi Handa <handa@m17n.org>
18423
18424 * xfaces.c (set_lface_from_font_name): Fix for the case that
18425 FONTNAME is not fontset name.
18426
184272008-02-01 Kenichi Handa <handa@m17n.org>
18428
18429 * fns.c (base64_encode_1): Fix previous change.
18430
184312008-02-01 Kenichi Handa <handa@m17n.org>
18432
18433 * fontset.c (set_fontset_font): New function.
18434 (Fset_fontset_font): If a font is specified for a charset, use
18435 map_charset_chars to store the font spec in a fontset.
18436
184372008-02-01 Kenichi Handa <handa@m17n.org>
18438
18439 * fontset.c (fontset_face): Create a fallback fontset on demand.
18440 (make_fontset): Don't create a fallback fontset here.
18441 (free_face_fontset): Free a fallback fontset (if any) too.
18442 (n_auto_fontsets): Delete this variable.
18443 (auto_fontset_alist): New variable.
18444 (new_fontset_from_font_name): Check auto_fontset_alist.
18445 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
18446 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
18447 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
18448 Defsubr Sfontset_list_all.
18449
184502008-02-01 Kenichi Handa <handa@m17n.org>
18451
18452 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
18453
184542008-02-01 Kenichi Handa <handa@m17n.org>
18455
18456 * fontset.c (Fnew_fontset): Check NAME more rigidly.
18457
184582008-02-01 Kenichi Handa <handa@m17n.org>
18459
18460 * editfns.c (Fgoto_char): Fix docstring.
18461
184622008-02-01 Kenichi Handa <handa@m17n.org>
18463
18464 * insdel.c (insert_from_gap): Adjust intervals correctly.
18465
184662008-02-01 Jason Rumney <jasonr@gnu.org>
18467
18468 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
18469 (pfnGetFontUnicodeRanges): New dynamically loaded function.
18470 (w32_initialize): Try to load it.
18471 (x_get_font_repertory): Use it if available.
18472 (w32_encode_char): Add shortcut for unicode output.
18473
18474 * w32fns.c (w32_load_system_font): Default charset to -1.
18475 (x_to_w32_charset): Match all fonts for unicode.
18476 (w32_to_x_charset): New parameter matching. Don't return partial
18477 or wildcard charsets.
18478 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
18479 (w32_codepage_for_font): Return CP_UNICODE for unicode.
18480 (w32_to_x_font): Match charset to real charset.
18481 (enum_font_cb2): Always list unicode versions.
18482
18483 * makefile.w32-in (temacs): Increase EMHEAP.
18484
184852008-02-01 Jason Rumney <jasonr@gnu.org>
18486
18487 * w32term.c (w32_encode_char): New charset parameter.
18488 font_info.encoding becomes encoding_type.
18489 (x_get_font_repertory): New function. Warning: stub only!
18490 (x_new_font): Return quickly if font already set.
18491 (x_new_fontset): fontsetname parameter is Lisp_Object.
18492 Use new fs_query_fontset. Try new_fontset_from_font_name.
18493 Use fontset_name for return value.
18494
18495 * w32term.h: Declare x_get_font_repertory.
18496
18497 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
18498 place of find_charset_in_text. Use encode_coding_object in place
18499 of encode_coding.
18500 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
18501 decode_coding.
18502
18503 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
18504 of x_new_fontset.
18505 (w32_load_system_font): Initialize charset as unicode.
18506 font_info.encoding becomes encoding_type.
18507 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
18508 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
18509 (syms_of_w32fns): Set get_font_repertory_func.
18510
18511 * w32console.c: Include character.h. Use terminal_encode_buffer
18512 from term.c.
18513 (write_glyphs): Use new version of encode_terminal_code. Use
18514 encode_coding_object in place of encode_coding.
18515
18516 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
18517 encoding becomes encoding_type.
18518
18519 * term.c (terminal_encode_buffer): Make externally visible.
18520
18521 * makefile.w32-in: Add character.h dependancies.
18522 (character.o, chartab.o): New targets.
18523
185242008-02-01 Kenichi Handa <handa@m17n.org>
18525
18526 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
18527 CODING_ID_EOL_TYPE.
18528
185292008-02-01 Andreas Schwab <schwab@suse.de>
18530
18531 * coding.c (produce_chars): Revert last change.
18532
185332008-02-01 Kenichi Handa <handa@m17n.org>
18534
18535 * charset.h (charset_unicode): Extern it.
18536
18537 * charset.c (string_xstring_p): Check by (C >= 0x100).
18538 (find_charsets_in_text): Change format of the arc CHARSETS. New
18539 arg MULTIBYTE.
18540 (Ffind_charset_region, Ffind_charset_string): Adjust for the
18541 change of find_charsets_in_text.
18542 (Fsplit_char): Fix doc. Never return unknown.
18543
18544 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
18545
18546 * coding.c (Fdefine_coding_system_alias): Update
18547 Vcoding_system_list.
18548
18549 * fontset.c (load_font_get_repertory): Pay attention to the case
18550 that ENCODING of a font is specified by a char-table.
18551
18552 * xterm.c (x_get_font_repertory): Handle the case that the
18553 encoding of font is other than Unicode.
18554
185552008-02-01 Kenichi Handa <handa@m17n.org>
18556
18557 * term.c (encode_terminal_code): Don't handle glyph-table. Check
18558 if a character is encodable by the terminal coding system. If
18559 not, produces proper number of `?'s. Update
18560 terminal_encode_buffer and terminal_encode_buf_size if necessary.
18561 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
18562
185632008-02-01 Kenichi Handa <handa@m17n.org>
18564
18565 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
18566 variables.
18567 (encode_terminal_code): Change argument. Encode multiple
18568 characters at once. Store the result of encoding in
18569 terminal_encode_buffer.
18570 (write_glyphs, insert_glyphs): Adjust for the change of
18571 encode_terminal_code.
18572 (term_init): Initialize terminal_encode_buffer and
18573 terminal_encode_buf_size.
18574
18575 * coding.c (consume_chars): If coding->src_object is nil, don't
18576 check annotation.
18577
185782008-02-01 Kenichi Handa <handa@m17n.org>
18579
18580 * character.c (char_string): Use ASCII_CHAR_P instead of
18581 SINGLE_BYTE_CHAR_P.
18582
185832008-02-01 Kenichi Handa <handa@m17n.org>
18584
18585 * xdisp.c (handle_auto_composed_prop): Check if the last
18586 characters of auto-composed region is newly composed with the
18587 following characters.
18588 (handle_composition_prop): Fix checking of point being inside
18589 composition.
18590
185912008-02-01 Kenichi Handa <handa@m17n.org>
18592
18593 * fns.c (concat): Don't change multibyteness of the result by
18594 concatenating an 8-bit character.
18595
18596 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
18597 multibyteness of the result when newelt is an 8-bit character.
18598
185992008-02-01 Dave Love <fx@gnu.org>
18600
18601 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
18602 EMACS_INT.
18603
18604 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
18605
18606 * xfaces.c (face_numeric_value): Declare dim size_t.
18607 (Finternal_lisp_face_equal_p): Remove unused f.
18608
18609 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
18610 (MATRIX_ROW): Remove unused vars.
18611 (draw_glyphs, x_insert_glyphs, fast_find_position)
18612 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
18613 byte/char counts.
18614
18615 * regex.c (regex_compile): Remove unused var.
18616
18617 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
18618
18619 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
18620 (Faccessible_keymaps, where_is_internal): Remove unused vars.
18621
18622 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
18623
18624 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
18625
18626 * fileio.c (Fwrite_region): Remove unused var.
18627
18628 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
18629 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
18630
18631 * composite.c (Fremove_list_of_text_properties): Declare.
18632
18633 * coding.c (inhibit_pre_post_conversion): Remove (unused).
18634 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
18635 (coding_inherit_eol_type): Remove unused attrs.
18636 (detect_coding): Cast arg of detect_eol.
18637
18638 * charset.c (syms_of_charset): Remove unused var p.
18639 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
18640 byte/char counts.
18641
18642 * casetab.c (set_case_table): Remove unused var.
18643
18644 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
18645 unused vars.
18646
186472008-02-01 Dave Love <fx@gnu.org>
18648
18649 * xterm.c (x_bitmap_mask): Declare.
18650
186512008-02-01 Dave Love <fx@gnu.org>
18652
18653 * xterm.c (x_term_init): Fix type error.
18654
18655 * lisp.h: Add Funibyte_char_to_multibyte.
18656
18657 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
18658 (Fset_coding_system_priority): Doc fix.
18659
18660 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
18661
18662 * indent.c (check_composition): Make start and end EMACS_INT.
18663
18664 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
18665
18666 * xdisp.c (handle_composition_prop, check_point_in_composition):
18667 Make buffer positions EMACS_INT.
18668
18669 * composite.c (find_composition, run_composition_function)
18670 (update_compositions, Ffind_composition_internal): Make buffer
18671 positions EMACS_INT.
18672
18673 * composite.h (find_composition, update_compositions): Make
18674 position args EMACS_INT.
18675
18676 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
18677
18678 * intervals.c (get_property_and_range):
18679 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
18680
18681 * unexalpha.c: Don't include varargs.h.
18682
186832008-02-01 Dave Love <fx@gnu.org>
18684
18685 * coding.h (ENCODE_UTF_8): New.
18686
18687 * Makefile.in (gtkutil.o): Depend on coding.h.
18688
18689 * coding.c (Fset_coding_system_priority): Doc fix.
18690
186912008-02-01 Kenichi Handa <handa@m17n.org>
18692
18693 * fileio.c (Finsert_file_contents): Call setup_coding_system in
18694 the case of auto saving.
18695
186962008-02-01 Andreas Schwab <schwab@suse.de>
18697
18698 * chartab.c (map_char_table, map_char_table_for_charset): Protect
18699 `range' from GC.
18700
187012008-02-01 Kenichi Handa <handa@m17n.org>
18702
18703 * coding.c (decode_coding_sjis): Check bytes more rigidly.
18704
187052008-02-01 Kenichi Handa <handa@m17n.org>
18706
18707 * fileio.c (choose_write_coding_system): Return a decided coding system.
18708 (Fwrite_region): Set Vlast_coding_system_used to the return value
18709 of choose_write_coding_system.
18710
187112008-02-01 Kenichi Handa <handa@m17n.org>
18712
18713 * charset.c (Fset_charset_priority): Pay attention to duplicated
18714 arguments.
18715
18716 * coding.c (QCcategory): New variable.
18717 (syms_of_coding): Defsym it. Set all elements of
18718 Vcoding_category_table and their symbol values.
18719 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
18720 coding-category-XXX, and coding-category-list.
18721 (Fdefine_coding_system_internal): Add category in the plist.
18722
187232008-02-01 Kenichi Handa <handa@m17n.org>
18724
18725 * callproc.c (Fcall_process): Handle carryover correctly.
18726
18727 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
18728 (raw_text_coding_system): Check NILP (coding_system).
18729 (coding_inherit_eol_type): Check NILP (coding_system) and
18730 NILP (parent).
18731 (consume_chars): Fix for the case of raw-text.
18732
18733 * process.c (read_process_output): Handle carryover correctly.
18734
187352008-02-01 Dave Love <fx@gnu.org>
18736
18737 * regex.c (re_search_2): Fix last change.
18738
187392008-02-01 Kenichi Handa <handa@m17n.org>
18740
18741 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
18742 target_multibyte. Even in a unibyte case, return a converted
18743 multibyte char.
18744 (GET_CHAR_AFTER): New macro.
18745 (PATFETCH): Translate via multibyte char.
18746 (HANDLE_UNIBYTE_RANGE): Delete this macro.
18747 (SETUP_MULTIBYTE_RANGE): New macro.
18748 (regex_compile): Setup compiled code so that its multibyteness
18749 matches that of a target. Fix the handling of "[X-YZ]" using
18750 SETUP_MULTIBYTE_RANGE.
18751 (analyse_first) <charset>: For filling fastmap for all multibyte
18752 characters, don't check by BASE_LEADING_CODE_P.
18753 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
18754 the same as RE_MULTIBYTE_P (bufp) now.
18755 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
18756 (TARGET_CHAR_AND_LENGTH): Delete this macro.
18757 (TRANSLATE_VIA_MULTIBYTE): New macro.
18758 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
18759 It is the same as RE_MULTIBYTE_P (bufp) now.
18760 <exactn>: Translate via multibyte.
18761 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
18762 translate it.
18763 <charset, charset_not>: Fetch a character by
18764 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
18765 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
18766 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
18767 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
18768 by GET_CHAR_AFTER.
18769 (bcmp_translate): Likewise.
18770
18771 * search.c (compile_pattern): Check the member target_multibyte,
18772 not the member multibyte of buf.
18773
18774 * lread.c (read1): While reading a string, set force_singlebyte
18775 and force_multibyte correctly.
18776
18777 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
18778 up of unibyte_to_multibyte_table.
18779
187802008-02-01 Kenichi Handa <handa@m17n.org>
18781
18782 * coding.c (setup_coding_system): If coding has
18783 post-read-conversion or pre-write-conversion, set
18784 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
18785 respectively.
18786 (decode_coding_gap): Run post-read-conversion if any.
18787
18788 * fileio.c (Finsert_file_contents): Even if we read into a
18789 unibyte buffer, check if we must decode the result or not.
18790
187912008-02-01 Kenichi Handa <handa@m17n.org>
18792
18793 * coding.c (make_conversion_work_buffer): Change the work buffer
18794 name to the same one as that of Emacs 21.
18795
187962008-02-01 Kenichi Handa <handa@m17n.org>
18797
18798 * coding.h (make_conversion_work_buffer): Adjust prototype.
18799 (code_conversion_restore): Don't extern it.
18800
18801 * coding.c (detected_mask): Delete unused variable.
18802 (decode_coding_iso_2022): Pay attention to the byte sequence of
18803 CTEXT extended segment, and retain those bytes as is.
18804 (decode_coding_ccl): Delete unused variable `valids'.
18805 (setup_coding_system): Delete unused variable `category'.
18806 (consume_chars): Delete unused variable `category'. Make it work
18807 for non-multibyte case.
18808 (make_conversion_work_buffer): Change argument.
18809 (saved_coding): Delete unused variable.
18810 (code_conversion_restore): Don't check saved_coding->destination.
18811 (code_conversion_save): New function.
18812 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
18813 instead of record_unwind_protect.
18814 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
18815 (detect_coding_system): Delete unused variable `mask'.
18816 (Fdefine_coding_system_internal): Delete unused variable id.
18817
18818 * fileio.c (kill_workbuf_unwind): New function.
18819 (Finsert_file_contents): On replacing, call
18820 make_conversion_work_buffer with correct args, and call
18821 record_unwind_protect with the first arg kill_workbuf_unwind.
18822
18823 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
18824
188252008-02-01 Kenichi Handa <handa@m17n.org>
18826
18827 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
18828 (fontset_add): Fix for the case that TO is less than TO1.
18829 (Ffontset_info): Don't use fallback fontset on checking the
18830 default fontset.
18831 (dump_fontset): New function for debugging.
18832
18833 * coding.c (Fdefine_coding_system_internal): Fix for the case that
18834 coding_type is Qcharset.
18835
188362008-02-01 Kenichi Handa <handa@m17n.org>
18837
18838 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
18839 (map_char_table): Don't inherit the value from the parent on
18840 initializing VAL. Adjust for the above change.
18841
188422008-02-01 Kenichi Handa <handa@m17n.org>
18843
18844 * coding.c (Qsignature, Qendian): Delete these variables.
18845 (syms_of_coding): Don't initialize them.
18846 (CATEGORY_MASK_UTF_16_AUTO): New macro.
18847 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
18848 detect_info->found.
18849 (decode_coding_utf_16): Don't detect BOM here.
18850 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
18851 is NOT utf_16_without_bom.
18852 (setup_coding_system): For a coding system of type utf-16, check
18853 if the attribute :endian is Qbig or not (not nil or not), and set
18854 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
18855 (detect_coding): If coding type is utf-16 and BOM detection is
18856 required, detect it.
18857 (Fdefine_coding_system_internal): For a coding system of type
18858 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
18859
188602008-02-01 Kenichi Handa <handa@m17n.org>
18861
18862 * coding.c (coding_set_source): Fix for the case that the current
18863 buffer is different from coding->src_object.
18864 (decode_coding_object): Don't use the conversion work buffer if
18865 DST_OBJECT is a buffer.
18866
188672008-02-01 Dave Love <fx@gnu.org>
18868
18869 * lread.c (read_emacs_mule_char) [len==2]: Index
18870 emacs_mule_charset correctly.
18871
188722008-02-01 Dave Love <fx@gnu.org>
18873
18874 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
18875 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
18876 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
18877 treated specially.)
18878 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
18879 (detected_mask): Remove Big5 bits.
18880
188812008-02-01 Kenichi Handa <handa@m17n.org>
18882
18883 The following changes are to make the font rescaling facility
18884 compatible with Emacs 21.
18885
18886 * xfaces.c (Vface_font_rescale_alist): Rename from
18887 Vface_resizing_fonts.
18888 (struct font_name): Rename member resizing_ratio to rescale_ratio.
18889 (font_rescale_ratio): Rename from font_resizing_ratio.
18890 (split_font_name): Set font->rescale_ratio.
18891 (better_font_p): Pay attention to font->rescale_ratio.
18892 (build_scalable_font_name): Likewise. Change RESX, and RESY
18893 fields.
18894 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
18895
188962008-02-01 Kenichi Handa <handa@m17n.org>
18897
18898 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
18899 (Qutf_16_le): Remove these variables.
18900 (syms_of_coding): Don't DEFSYM them.
18901 (decode_coding_utf_16): Fix handling of BOM.
18902 (encode_coding_utf_16): Fix handling of BOM.
18903
189042008-02-01 Kenichi Handa <handa@m17n.org>
18905
18906 * fileio.c (Finsert_file_contents): On replacing, before decoding
18907 the file into the work buffer, set point of the work buffer to the end.
18908
189092008-02-01 Dave Love <fx@gnu.org>
18910
18911 * coding.c (Fcheck_coding_systems_region): Fix type errors.
18912
189132008-02-01 Dave Love <fx@gnu.org>
18914
18915 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
18916 and fix C types.
18917
189182008-02-01 Kenichi Handa <handa@m17n.org>
18919
18920 * xdisp.c (SKIP_GLYPHS): New macro.
18921 (set_cursor_from_row): Pay attention to string display properties.
18922
18923 * category.c (copy_category_entry): Fix for the case that RANGE
18924 is an integer.
18925
18926 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
18927
18928 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
18929
189302008-02-01 Kenichi Handa <handa@m17n.org>
18931
18932 * charset.c (Fcharset_id_internal): New function.
18933 (syms_of_charset): Defsubr it.
18934
18935 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
18936 with the last arg charset_list acquired from coding.
18937 (Fdefine_coding_system_internal): For ccl-based coding system, fix
18938 the attribute coding_attr_ccl_valids.
18939
18940 * coding.h (enum define_coding_ccl_arg_index): Set the first
18941 member coding_arg_ccl_decoder to coding_arg_max.
18942
18943 * ccl.h (ccl_driver): Adjust prototype.
18944
18945 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
18946 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 18947 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
18948 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
18949 last arg Qnil.
18950
189512008-02-01 Kenichi Handa <handa@m17n.org>
18952
18953 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
18954 call encode_char.
18955
18956 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
18957
189582008-02-01 Dave Love <fx@gnu.org>
18959
18960 * composite.c (syms_of_composite): Make composition_hash_table weak.
18961
189622008-02-01 Kenichi Handa <handa@m17n.org>
18963
18964 * dispextern.h (check_face_attributes, generate_ascii_font_name)
18965 (font_name_registry): Don't extern them.
18966 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
18967
18968 * fontset.h (Qfontset): Don't extern it.
18969 (new_fontset_from_font_name): Extern it.
18970
18971 * fontset.c: Give 8 extra slots to fontset objects.
18972 (Qfontset_info): New variable.
18973 (syms_of_fontset): Defsym it.
18974 (FONTSET_FALLBACK): New macro.
18975 (fontset_face): Try also the default fontset.
18976 (make_fontset): Realize a fallback fontset from the default fontset.
18977 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
18978 using split_font_name_into_vector and build_font_name_from_vector.
18979 (Fset_fontset_font): Access the elements of font_spec by enum
18980 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
18981 name by using split_font_name_into_vector.
18982 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
18983 generate a proper font name from the fontset name. Update
18984 Vfontset_alias_alist.
18985 (n_auto_fontsets): New variable.
18986 (new_fontset_from_font_name): New function.
18987 (Ffont_info): Store the information about fonts generated from the
18988 default fontset in the first extra slot of the returned char-table.
18989
18990 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
18991 (font_name_registry): Delete function.
18992 (split_font_name_into_vector): New function.
18993 (build_font_name_from_vector): New function.
18994 (font_list): The argument REGISTRY is now a list of registry names.
18995 (choose_face_font): If we are choosing an ASCII font, and ATTRS
18996 specifies an explicit font name, return the name as is. Make a
18997 list of registy names.
18998
18999 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
19000 of x_new_fontset.
19001 (Fx_create_frame): Don't call x_new_fontset here. Just use
19002 x_list_fonts to check the existence of fonts.
19003
19004 * xterm.h (x_new_fontset): Adjust prototype.
19005
19006 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
19007 string. Use new_fontset_from_font_name to create a fontset from a
19008 font name.
19009
190102008-02-01 Kenichi Handa <handa@m17n.org>
19011
19012 * syntax.c (Vfind_word_boundary_function_table): New name for
19013 Vnext_word_boundary_function_table.
19014 (find-word-boundary-function-table): New name for
19015 next-word-boundary-function-table.
19016
190172008-02-01 Dave Love <fx@gnu.org>
19018
19019 * Makefile.in: Fix some dependencies.
19020
19021 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
19022 set it to nil before returning.
19023
19024 * composite.c (update_compositions): Fix type error.
19025
19026 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
19027
190282008-02-01 Kenichi Handa <handa@m17n.org>
19029
19030 * xterm.c (x_new_font): Optimize for the case that the font is
19031 already set for the frame.
19032
190332008-02-01 Kenichi Handa <handa@m17n.org>
19034
19035 * chartab.c (char_table_ascii): Check if the char table contents
19036 is sub-char-table or not.
19037 (char_table_set, char_table_set_range): Fix argument to
19038 char_table_ascii.
19039
19040 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
19041 (detect_coding_utf_8, detect_coding_utf_16)
19042 (detect_coding_emacs_mule, detect_coding_iso_2022)
19043 (detect_coding_sjis, detect_coding_big5)
19044 (detect_coding_ccl, detect_coding_charset): Change argument MASK
19045 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
19046 sequence is valid in this coding system. Change callers.
19047 (MAX_ANNOTATION_LENGTH): New macro.
19048 (ADD_ANNOTATION_DATA): New macro.
19049 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
19050 ADD_ANNOTATION_DATA. Change the format of annotation data.
19051 (ADD_CHARSET_DATA): New macro.
19052 (emacs_mule_char): New argument ID. Change callers.
19053 (decode_coding_emacs_mule, decode_coding_iso_2022)
19054 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
19055 Produce charset annotation data in coding->charbuf.
19056 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
19057 to charset annotation data in coding->charbuf.
19058 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
19059 coding->common_flags if the coding system is iso-2022 based and
19060 uses designation.
19061 (produce_composition): Adjust for the new annotation data format.
19062 (produce_charset): New function.
19063 (produce_annotation): Handle charset annotation.
19064 (handle_composition_annotation, handle_charset_annotation): New
19065 functions.
19066 (consume_chars): Handle charset annotation. Utilize the above two
19067 functions.
19068 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
19069 buffer, get the deleted text as a string and set
19070 coding->src_object to that string.
19071 (detect_coding, detect_coding_system): Use the new struct
19072 coding_detection_info.
19073
19074 * coding.h (struct coding_detection_info): New structure.
19075 (struct coding_system): Adjust prototype of the member `detector'.
19076 (CODING_ANNOTATE_CHARSET_MASK): New macro.
19077
190782008-02-01 Kenichi Handa <handa@m17n.org>
19079
19080 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
19081
190822008-02-01 Dave Love <fx@gnu.org>
19083
19084 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
19085 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
19086 to new local and nullify apropos_accumulate before returning.
19087 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
19088
190892008-02-01 Kenichi Handa <handa@m17n.org>
19090
19091 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
19092 correctly.
e3eea1fc 19093
aac0c6e3
MR
190942008-02-01 Dave Love <fx@gnu.org>
19095
19096 * fns.c (Flanginfo): Call synchronize_system_time_locale.
19097
190982008-02-01 Kenichi Handa <handa@m17n.org>
19099
19100 The following changes are to make character composition happen
19101 automatically on displaying.
19102
19103 * Makefile.in (lisp, shortlisp): Add composite.elc.
19104
19105 * composite.h (Qauto_composed, Vauto_composition_function)
19106 (Qauto_composition_function): Extern them.
19107
19108 * composite.c (Vcomposition_function_table)
19109 (Qcomposition_function_table): Delete variables.
19110 (Qauto_composed, Vauto_composition_function)
19111 (Qauto_composition_function): New variables.
19112 (run_composition_function): Don't call
19113 compose-chars-after-function.
19114 (update_compositions): Clear `auto-composed' text property.
19115 (compose_chars_in_text): Delete this function.
19116 (syms_of_composite): Staticpro Qauto_composed and
19117 Qauto_composition_function. Declare Vauto_composition_function as
19118 a Lisp variable.
19119
19120 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
19121
19122 * xdisp.c (it_props): Add an entry for Qauto_composed.
19123 (handle_auto_composed_prop): New function.
19124
19125 * xselect.c (selection_data_to_lisp_data): Don't call
19126 compose_chars_in_text.
19127
191282008-02-01 Dave Love <fx@gnu.org>
19129
19130 * keyboard.c (read_char): Modify checking around use of
19131 Vkeyboard_translate_table.
19132
19133 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
19134 and fix C types.
19135
191362008-02-01 Kenichi Handa <handa@m17n.org>
19137
19138 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
19139 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19140 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
19141 the case that the last byte is '\r' correctly.
19142 (decode_coding): Flush out the unprocessed data correctly.
19143 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
19144
191452008-02-01 Dave Love <fx@gnu.org>
19146
19147 * xterm.c (XTread_socket): Fix changes for defined keysyms.
19148 Add XK_ISO... case.
19149 (xaw_scroll_callback): Revert last change.
19150
191512008-02-01 Kenichi Handa <handa@m17n.org>
19152
19153 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
19154
191552008-02-01 Kenichi Handa <handa@m17n.org>
19156
19157 * xfaces.c (Vface_resizing_fonts): New variable.
19158 (struct font_name): New member `resizing_ratio'.
19159 (font_resizing_ratio): New function.
19160 (split_font_name): Set font->resizing_ratio.
19161 (better_font_p): Pay attention to font->resizing_ratio.
19162 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
19163 RESX, and RESY fields.
19164 (try_alternative_families): Try scalable fonts if
19165 Vscalable_fonts_allowed is not Qt.
19166 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
19167
191682008-02-01 Dave Love <fx@gnu.org>
19169
19170 * xterm.c (xaw_scroll_callback): Cast correctly.
19171
191722008-02-01 Dave Love <fx@gnu.org>
19173
19174 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
19175 (lispy_kana_keys): Comment out.
19176 (make_lispy_event) [XK_kana_A]: Comment out.
19177
19178 * xterm.c (xaw_scroll_callback): Cast call_data.
19179 (XTread_socket): Deal with ASCII keysyms.
19180 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
19181
191822008-02-01 Dave Love <fx@gnu.org>
19183
19184 * xterm.c (Vx_keysym_table): New.
19185 (syms_of_xterm): Initialize it.
19186 (XTread_socket): Use it.
19187 From head: Eliminate incorrect optimization that tried to avoid
19188 decoding the output of X*LookupString.
19189 (x_get_font_repertory): Delete charset declaration.
19190
191912008-02-01 Kenichi Handa <handa@m17n.org>
19192
19193 * coding.c (detect_coding_charset): If only ASCII bytes are found,
19194 return 0.
19195 (Fdefine_coding_system_internal): Setup
19196 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
19197
191982008-02-01 Dave Love <fx@gnu.org>
19199
19200 * coding.c (Fcheck_coding_system): Doc fix.
19201
19202 * editfns.c (Finsert_byte): Return a proper value.
19203
192042008-02-01 Kenichi Handa <handa@m17n.org>
19205
19206 * coding.c (decode_coding): Fix args to translate_chars. Pay
19207 attention to Vstandard_translation_table_for_decode.
19208 (encode_coding): Fix args to translate_chars. Pay attention to
19209 Vstandard_translation_table_for_encode.
19210
19211 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
19212 SINGLE_BYTE_CHAR_P.
19213
19214 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
19215 not by SINGLE_BYTE_CHAR_P.
19216
19217 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
19218 SINGLE_BYTE_CHAR_P.
19219
19220 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
19221 SINGLE_BYTE_CHAR_P.
19222
19223 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
19224 by SINGLE_BYTE_CHAR_P.
19225
19226 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
19227 SINGLE_BYTE_CHAR_P.
19228
192292008-02-01 Dave Love <fx@gnu.org>
19230
19231 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
19232
192332008-02-01 Dave Love <fx@gnu.org>
19234
19235 * fns.c (Flanginfo): Fix typo.
19236
19237 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
19238
192392008-02-01 Kenichi Handa <handa@m17n.org>
19240
19241 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
19242 (detect_coding_emacs_mule, detect_coding_iso_2022)
19243 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
19244 incomplete byte sequence. Don't update *mask when correctly detected.
19245 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
19246 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
19247 (detect_coding, detect_coding_system): Adjust for the changes above.
19248
192492008-02-01 Kenichi Handa <handa@m17n.org>
19250
19251 * character.c (char_string): Rename from
19252 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
19253 (string_char): Rename from string_char.
19254
19255 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
19256 if C is greater than MAX_3_BYTE_CHAR.
19257 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
19258 string_char instead of string_char_with_unification.
19259
192602008-02-01 Dave Love <fx@gnu.org>
19261
19262 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
19263
192642008-02-01 Kenichi Handa <handa@m17n.org>
19265
19266 * keymap.c (push_key_description): Pay attention to force_multibyte.
19267
19268 * regex.c (re_search_2): Fix for the case of unibyte buffer.
19269
192702008-02-01 Dave Love <fx@gnu.org>
19271
19272 * charset.c (define_charset_internal): Rename `supprementary'.
19273
19274 * Makefile.in (lisp, shortlisp): Remove latin-N.
19275
192762008-02-01 Dave Love <fx@gnu.org>
19277
19278 * xfns.c (x_window, x_window): Use use_xim.
19279
19280 * xterm.c (use_xim): Initialize.
19281 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
19282 (x_term_init): Maybe set use_xim.
19283
19284 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
19285
192862008-02-01 Kenichi Handa <handa@m17n.org>
19287
19288 * search.c (search_buffer): Fix case-fold-search of multibyte
19289 characters.
19290 (boyer_moore): Rename the last argument to char_high_bits.
19291
192922008-02-01 Kenichi Handa <handa@m17n.org>
19293
19294 * xdisp.c (display_string): Fix for the case of zero width glyph.
19295
19296 * xfns.c (x_set_font): Change the error message of the case that
19297 x_new_fontset returns Qt.
19298
19299 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
19300 (Finternal_set_lisp_face_attribute): Use signal_error for the
19301 error of invalid fontset.
19302
19303 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
19304 fontset, return Qt.
19305
193062008-02-01 Dave Love <fx@gnu.org>
19307
19308 * unexelf.c (unexec): Make .got handling not SGI-specific.
19309
19310 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
19311
19312 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
19313
19314 * keyboard.c (read_key_sequence): Fix type error.
19315
19316 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
19317 type error.
19318
19319 * fontset.c (fontset_add): Return Lisp_Object.
19320
193212008-02-01 Dave Love <fx@gnu.org>
19322
19323 * charset.h (charset_ordered_list_tick): Declare extern.
19324
193252008-02-01 Kenichi Handa <handa@m17n.org>
19326
19327 The following changes (and some of 2008-02-01 changes of mine) are
19328 for handling syntax, category, and case conversion for unibyte
19329 characters by converting them to multibyte on the fly. With these
19330 changes, we don't have to setup syntax and case tables for unibyte
19331 characters in each language environment.
19332
19333 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
19334 multibyte if necessary.
19335
19336 * bytecode.c (Fbyte_code): Likewise.
19337
19338 * character.h (LEADING_CODE_LATIN_1_MIN)
19339 (LEADING_CODE_LATIN_1_MAX): New macros.
19340 (unibyte_to_multibyte_table): Extern it.
19341 (unibyte_char_to_multibyte): New macro.
19342 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
19343 (CHAR_LEADING_CODE): New macro.
19344 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
19345
19346 * character.c (unibyte_to_multibyte_table): New variable.
19347 (unibyte_char_to_multibyte): Move to character.h and define as macro.
19348 (multibyte_char_to_unibyte): If C is an eight-bit character,
19349 convert it to the corresponding byte value.
19350
19351 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
19352 not 1, signals an error. Update the elements of
19353 unibyte_to_multibyte_table.
19354 (init_charset_once): Initialize unibyte_to_multibyte_table.
19355 (syms_of_charset): Define the charset `iso-8859-1'.
19356
19357 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
19358 as is without converting it to unibyte. In a unibyte buffer,
19359 convert C to multibyte before checking the syntax.
19360
19361 * lisp.h (unibyte_char_to_multibyte): Delete extern.
19362
19363 * minibuf.c (Fminibuffer_complete_word): Use the macro
19364 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
19365
19366 * regex.h (struct re_pattern_buffer): New member target_multibyte.
19367
19368 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
19369 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
19370 that is zero, convert an eight-bit char to multibyte.
19371 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
19372 non-emacs case.
19373 (PATFETCH): Convert an eight-bit char to multibyte.
19374 (HANDLE_UNIBYTE_RANGE): New macro.
19375 (regex_compile): Setup the compiled pattern for multibyte chars
19376 even if the given regex string is unibyte. Use PATFETCH_RAW
19377 instead of PATFETCH in many places. To handle `charset'
19378 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
19379 only for ASCII chars.
19380 (analyse_first) <exactn>: Simplify because the compiled pattern
19381 is multibyte.
19382 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
19383 <charset>: Use CHAR_LEADING_CODE to get leading codes.
19384 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
19385 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
19386 multibyte always 1.
19387 (re_search_2): In emacs, set the locale variable multibyte to 1,
19388 otherwise to 0. New local variable target_multibyte. Check it
19389 to decide the multibyteness of STR1 and STR2. If
19390 target_multibyte is zero, convert unibyte chars to multibyte
19391 before translating and checking fastmap.
19392 (TARGET_CHAR_AND_LENGTH): New macro.
19393 (re_match_2_internal): In emacs, set the locale variable multibyte
19394 to 1, otherwise to 0. New local variable target_multibyte. Check
19395 it to decide the multibyteness of STR1 and STR2. Use
19396 TARGET_CHAR_AND_LENGTH to fetch a character from D.
19397 <charset, charset_not>: If multibyte is nonzero, check fastmap
19398 only for ASCII chars. Call bcmp_translate with
19399 target_multibyte, not with multibyte.
19400 <begline>: Declare the local variable C as `unsigned'.
19401 (bcmp_translate): Change the last arg name to target_multibyte.
19402
19403 * search.c (compile_pattern_1): Don't adjust the multibyteness of
19404 the regexp pattern and the matching target. Set cp->buf.multibyte
19405 to the multibyteness of the regexp pattern. Set
19406 cp->but.target_multibyte to the multibyteness of the matching target.
19407 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
19408 FETCH_STRING_CHAR_ADVANCE.
19409 (Freplace_match): Convert unibyte chars to multibyte.
19410
19411 * syntax.c (char_quoted, back_comment, scan_words)
19412 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
19413 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
19414 unibyte chars to multibyte.
19415 (skip_chars): Delete the arg syntaxp, and move the code for
19416 handling syntaxes to skip_syntaxes. Change callers.
19417 Fix the case that the multibyteness of STRING and the current
19418 buffer doesn't match.
19419 (skip_syntaxes): New function.
19420 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
19421 SINGLE_BYTE_CHAR_P.
19422
194232008-02-01 Kenichi Handa <handa@m17n.org>
19424
19425 * xfaces.c (QCfontset): New variable.
19426 (LFACE_FONTSET): New macro.
19427 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
19428 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
19429 (Finternal_set_lisp_face_attribute)
19430 (Finternal_get_lisp_face_attribute): Handle QCfontset.
19431 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
19432 check also LFACE_FONTSET_INDEX.
19433 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
19434 attrs[LFACE_FONT_INDEX].
19435 (syms_of_xfaces): Intern and staticpro QCfontset.
19436
19437 * dispextern.h (enum lface_attribute_index): New member
19438 LFACE_FONTSET_INDEX.
19439
19440 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
19441
194422008-02-01 Kenichi Handa <handa@m17n.org>
19443
19444 * coding.c (coding_set_destination): Fix coding->destination for
19445 the case converting a region.
19446 (encode_coding_utf_8): Encode eight-bit chars as single byte.
19447 (encode_coding_object): Fix coding->dst_pos and
19448 coding->dst_pos_byte for the case converting a region.
19449
19450 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
19451
19452 * character.h (BYTE8_STRING): New macro.
19453
19454 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
19455
194562008-02-01 Kenichi Handa <handa@m17n.org>
19457
19458 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
19459 characters by octal form.
19460
19461 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
19462
19463 * buffer.h (_fetch_multibyte_char_len): Delete extern.
19464 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
19465 _fetch_multibyte_char_len.
19466 (FETCH_CHAR_AS_MULTIBYTE): New macro.
19467
19468 * casetab.c (set_canon, set_identity, shuffle): Simplify.
19469
19470 * casefiddle.c (casify_object): Simplify. Handle the case that
19471 the case conversion change the byte length.
19472 (casify_region): Likewise.
19473
19474 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
19475
19476 * character.c (_fetch_multibyte_char_len): Delete this variable.
19477 (syms_of_character): Setup Vprintable_chars.
19478
19479 * editfns.c (Fchar_equal): Fix for the unibyte case.
19480 (Finsert_byte): New function.
19481 (syms_of_editfns): Defsubr it.
19482
19483 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
19484 of direct code 0x3ffff.
19485
19486 * search.c (Freplace_match): Fix for the unibyte case.
19487
194882008-02-01 Kenichi Handa <handa@m17n.org>
19489
19490 * lread.c (safe_to_load_p): Fix the logic.
19491
19492 * syntax.c (scan_words): Don't treat characters belonging to
19493 different scripts as constituting a word.
19494
19495 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19496
19497 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
19498
19499 * emacs.c (main): In the case of --unibyte, instead of aborting on
19500 finding non-empty buffer, make it unibyte.
19501
195022008-02-01 Kenichi Handa <handa@m17n.org>
19503
19504 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
19505 to create a fontset.
19506
195072008-02-01 Dave Love <fx@gnu.org>
19508
19509 * character.c (Funibyte_char_to_multibyte): Doc fix.
19510
19511 * xfns.c [HAVE_STDLIB_H]: Fix last change.
19512
195132008-02-01 Kenichi Handa <handa@m17n.org>
19514
19515 * fontset.c (fontset_add): Make the type `int'.
19516 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
19517
19518 * character.c (unibyte_char_to_multibyte)
19519 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
19520 charset_unibyte, not charset_primary.
19521
19522 * charset.h (charset_unibyte): Extern it instead of charset_primary.
19523
19524 * charset.c (charset_unibyte): Rename from charset_primary.
19525 (Funibyte_charset): Rename from Fprimary_charset.
19526 (Fset_unibyte_charset): Rename from Fset_primary_charset.
19527 (syms_of_charset): Adjust for the above changes.
19528
19529 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
19530 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
19531 it->multibyte_p is zero.
19532
19533 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
19534 Delete extern.
19535
195362008-02-01 Kenichi Handa <handa@m17n.org>
19537
19538 * coding.c (Fdefine_coding_system_internal): Fix category setting
19539 for a coding system of type iso-2022.
19540
195412008-02-01 Kenichi Handa <handa@m17n.org>
19542
19543 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
19544
195452008-02-01 Kenichi Handa <handa@m17n.org>
19546
19547 * syntax.c (Vnext_word_boundary_function_table): New variable.
19548 (next-word-boundary-function-table): Declare it as a Lisp variable
19549 in syms_of_syntax.
19550 (scan_words): Call functions in Vnext_word_boundary_function_table
19551 if any.
19552
19553 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
19554
19555 * fontset.c (fs_load_font): If fontp->charset is not negative,
19556 return fontp without setting its members.
19557
195582008-02-01 Dave Love <fx@gnu.org>
19559
19560 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
19561
19562 * m/sparc.h (HAVE_ALLOCA): Delete.
19563
19564 * s/irix6-5.h: Don't include strings.h.
19565 (bcopy, bzero, bcmp): Don't undef.
19566
19567 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
19568
19569 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
19570 (TIOCSIGSEND): Don't test IRIX6.
19571 (bcopy, bzero, bcmp): Define conditionally.
19572
195732008-02-01 Kenichi Handa <handa@m17n.org>
19574
19575 * buffer.c (Qas, Qmake, Qto): New variables.
19576 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
19577 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
19578
19579 * callproc.c (Fcall_process): Don't call insert_1_both directly if
19580 we are inserting a process output into a multibyte buffer.
19581
19582 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
19583 multibyte_char_to_unibyte.
19584
19585 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
19586 by the primary charset, make it eight-bit char.
19587 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
19588
19589 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
19590 (charset_8_bit__control, charset_8_bit_graphic)
19591 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
19592 (define_charset_internal): New function.
19593 (syms_of_charset): Call define_charset_internal for pre-defined
19594 charsets.
19595
19596 * charset.h (charset_8_bit): Extern it.
19597
19598 * coding.c (make_conversion_work_buffer): Adjust for the change
19599 of Fset_buffer_multibyte.
19600 (encode_coding_raw_text): Increment p0 in the loop.
19601
19602 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
19603
19604 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
19605 for the change of Fset_buffer_multibyte.
19606
19607 * fns.c (Fstring_to_multibyte): New function.
19608 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
19609
196102008-02-01 Dave Love <fx@gnu.org>
19611
19612 * xfns.c (x_put_x_image): Declare args.
19613
19614 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
19615 (try_font_list): Declare an arg.
19616
19617 * xdisp.c (message2_nolog, set_message): Declare an arg.
19618
19619 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
19620
19621 * syntax.c (scan_sexps_forward): Declare an arg.
19622
19623 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
19624 Declare an arg.
19625
19626 * lisp.h (Fnew_fontset): Declare.
19627
19628 * keymap.c (push_key_description): Call CHARACTERP correctly.
19629
19630 * fontset.c (fontset_add): Declare args. Call make_number correctly.
19631 (face_for_char): Delete unused vars.
19632 (Fset_fontset_font): Doc fix. Delete unused vars.
19633
19634 * doc.c (Fsubstitute_command_keys): Delete unused vars.
19635
19636 * composite.c (update_compositions): Declare arg.
19637
19638 * cm.c (calccost, cmgoto): Declare args.
19639
19640 * charset.c: Remove `emacs' conditional. Doc fixes.
19641 (map_char_table_for_charset): Declare.
19642
19643 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
19644
19645 * ccl.c: Remove `emacs' conditional.
19646
196472008-02-01 Kenichi Handa <handa@m17n.org>
19648
19649 The following changes are to allow specifying multiple font
19650 patterns for a character range (specified by script or charset).
19651
19652 * Makefile.in (abbrev.o): Depend on syntax.h.
19653 (xfaces.o): Depend on charset.h.
19654
19655 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
19656 SINGLE_BYTE_CHAR_P.
19657
19658 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
19659
19660 * character.h (Vchar_script_table): Extern it.
19661
19662 * character.c (Vscript_alist): Delete.
19663 (Vchar_script_table, Qchar_script_table): New variable.
19664 (syms_of_character): Declare Vchar_script_table as a lisp variable
19665 and initialize it.
19666
19667 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
19668 have property char-table-extra-slots, make no extra slot.
19669
19670 * dispextern.h (struct face): Delete member `charset'.
19671 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
19672 SINGLE_BYTE_CHAR_P.
19673 (choose_face_font, lookup_non_ascii_face, font_name_registry):
19674 Add prototypes.
19675 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
19676 (generate_ascii_font_name): Rename from generate_ascii_font.
19677
19678 * fontset.h (get_font_repertory_func): New prototype.
19679 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
19680 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
19681
19682 * fontset.c (Qprepend, Qappend): New variables.
19683 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
19684 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
19685 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
19686 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
19687 (fontset_ref_and_range, fontset_add, reorder_font_vector)
19688 (load_font_get_repertory): New functions.
19689 (fontset_set): Delete.
19690 (fontset_face): New arg FACE. Return face ID, not face.
19691 Complete re-write to handle new fontset structure. Change caller.
19692 (free_face_fontset): Use ASET istead of AREF (X) = Y.
19693 (face_for_char): Don't call lookup_face.
19694 (make_fontset_for_ascii_face): New arg FACE.
19695 (fs_load_font): New arg CHARSET_ID. Don't check
19696 Vfont_encoding_alist here.
19697 (find_font_encoding): New function.
19698 (list_fontsets): Use STRINGP, not ! NILP.
19699 (accumulate_script_ranges): New function.
19700 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
19701 re-written to handle new fontset structure.
19702 (Ffontset_font): Return a copy of element.
19703 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
19704 docstring of font-encoding-alist.
19705
19706 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
19707 (Fset_fotset_font): Fix arguments to 5.
19708
19709 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
19710
19711 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
19712 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19713 (highlight_trailing_whitespace): Adjust for the change of
19714 lookup_named_face.
19715
19716 * xfaces.c: Include charset.h.
19717 (load_face_font): Delete argument C. Change caller.
19718 (generate_ascii_font_name): Rename from generate_ascii_font.
19719 (font_name_registry): New function.
19720 (cache_face): Store ascii faces before non-ascii faces in buckets.
19721 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
19722 Lookup only ascii faces.
19723 (lookup_non_ascii_face): New function.
19724 (lookup_named_face): Delete argument C. Change caller.
19725 (lookup_derived_face): Delete argument C. Change caller.
19726 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
19727 a string, just call font_list with it.
19728 (choose_face_font): Delete arguments FACE and C. New arg
19729 FONT_SPEC. Change caller.
19730 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
19731 Change caller.
19732 (realize_non_ascii_face): New function.
19733 (realize_x_face): Call load_face_font here.
19734 (realize_tty_face): Delete argument C. Change caller.
19735 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
19736 get a face ID.
19737 (dump_realized_face): Don't print charset of FACE.
19738
19739 * xfns.c (x_set_font): Always call x_new_fontset and
19740 store_frame_parameter.
19741 (Fx_create_frame): Call x_new_fontset, not x_new_font.
19742 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
19743
19744 * xterm.h (x_get_font_repertory): Extern it.
19745
19746 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
19747 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
19748 it->multibyte_p is zero.
19749 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19750 (x_new_fontset): If FONTSETNAME doesn't match any existing
19751 fontsets, create a new one.
19752 (x_get_font_repertory): New function.
19753
197542008-02-01 Kenichi Handa <handa@m17n.org>
19755
19756 * coding.c (Ffind_coding_systems_region_internal): Detect an
19757 ASCII only string correctly.
19758
19759 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
19760 version is 0.
19761
197622008-02-01 Kenichi Handa <handa@m17n.org>
19763
19764 * lread.c: Include "coding.h".
19765 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
19766 (load_each_byte, unread_char): New variables.
19767 (readchar_backlog): Delete.
19768 (readchar): Return a character unless load_each_byte is nonzero.
19769 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
19770 cons. If unread_char is not -1, simply return it.
19771 (unreadchar): Handle the case that readcharfun is
19772 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
19773 (read_multibyte): Delete.
19774 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
19775 (read_emacs_mule_char): New functions.
19776 (Fload): Even if the file doesn't have the extension ".elc", if
19777 safe_to_load_p returns a positive version number, assume that the
19778 file contains bytecompiled code. If the version is less than 22,
19779 load the file while decoding multibyte sequences by emacs-mule.
19780 (readevalloop): Don't use readchar_backlog.
19781 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
19782 (Fread_from_string): Pay attention to the case that STREAM is a cons.
19783 (read_escape): Delete the arg BYTEREP.
19784 (read1): Set load_each_byte to 1 temporarily while handling
19785 #@NUMBER. Don't call read_multibyte.
19786 (read_vector): Call Fread with a cons. If readcharfun is
19787 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
19788 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
19789 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
19790 and Qload_force_doc_strings.
19791
197922008-02-01 Kenichi Handa <handa@m17n.org>
19793
19794 * xdisp.c (face_before_or_after_it_pos): Call
19795 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
19796
197972008-02-01 Kenichi Handa <handa@m17n.org>
19798
19799 * character.h (TRAILING_CODE_P): New macro.
19800 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
19801 (string_char_with_unification): Fix prototype.
19802 (Vscript_alist): Extern it.
19803
19804 * character.c (Vscript_alist): New variable.
19805 (string_char_with_unification, str_as_unibyte)
19806 (string_escape_byte8): Add `const' to local variables.
19807 (syms_of_character): Declare script-alist as a Lisp variable.
19808
19809 * charset.h (Vcharset_ordered_list): Extern it.
19810 (charset_ordered_list_tick): Extern it.
19811 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
19812 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
19813 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
19814 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
19815 (Funify_charset): Adjust for the change of Funify_charset.
19816
19817 * charset.c (charset_ordered_list_tick): New variable.
19818 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
19819 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
19820 deunify intead of unify a charset.
19821 (string_xstring_p): Add `const' to local variables.
19822 (find_charsets_in_text): Add `const' to arguments and local variables.
19823 (encode_char): Adjust for the change of Funify_charset. Fix
19824 detecting of invalid code.
19825 (Fset_charset_priority): Increment charset_ordered_list_tick.
19826 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
19827 and TO_CODE.
19828
19829 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
19830 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
19831 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
19832 (decode_coding_ccl, consume_chars)
19833 (Ffind_coding_systems_region_internal)
19834 (Fcheck_coding_systems_region): Add `const' to local variables.
19835
19836 * print.c (print_object): Use octal form for printing the
19837 contents of a bool vector.
19838
198392008-02-01 Dave Love <fx@gnu.org>
19840
19841 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
19842 <version == 20>: Refuse to load.
19843
198442008-02-01 Dave Love <fx@gnu.org>
19845
19846 * fns.c: Move coding.h.
19847 (Qcodeset, Qdays, Qmonths): New.
19848 (concat): Use CHARACTERP instead of INTEGERP.
19849 (Flocale_codeset): Delete.
19850 (Flanginfo): New function.
19851 (syms_of_fns): Change accordingly.
19852
19853 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
19854
198552008-02-01 Dave Love <fx@gnu.org>
19856
19857 * casetab.c (init_casetab_once, init_casetab_once): Fix
19858 CHAR_TABLE_SET call.
19859
19860 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
19861
19862 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
19863
19864 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
19865 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
19866 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
19867
19868 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
19869
19870 * coding.c (ENCODE_DESIGNATION, decode_eol)
19871 (make_conversion_work_buffer, code_conversion_restore)
19872 (Fdefine_coding_system_internal): Convert Lisp types.
19873 (code_conversion_restore): Use EQ, not ==.
19874 (Fencode_coding_string): Fix code_convert_string call.
19875
19876 * coding.h (code_convert_region): Fix prototype.
19877
19878 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
19879
19880 * fontset.c (fontset_ref, fontset_set, fs_load_font)
19881 (Ffontset_info): Convert Lisp types.
19882
19883 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
19884
19885 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
19886
19887 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
19888
19889 * chartab.c: Include "...h", not <...h> in some cases.
19890
19891 * callproc.c (Fcall_process): Remove unused variables.
19892
198932008-02-01 Dave Love <fx@gnu.org>
19894
19895 * coding.c (Fset_coding_system_priority): Allow null arg list.
19896
198972008-02-01 Dave Love <fx@gnu.org>
19898
19899 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
19900 (Fself_insert_and_exit): Use CHARACTERP.
19901
19902 * callproc.c (Fcall_process): Remove unused vars.
19903
19904 * xterm.c (XTread_socket): Add extra dead keysyms.
19905
19906 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
19907
19908 * dispextern.h: Remove prototypes for redraw_frame,
19909 redraw_garbaged_frames.
19910
19911 * cmds.c (Fself_insert_command): Use CHARACTERP.
19912
19913 * chartab.c (make_sub_char_table): Remove unused var.
19914 (Fset_char_table_default, Fmap_char_table): Doc fix.
19915
19916 * keymap.c (access_keymap): Remove generic char code.
19917 (push_key_description): Use CHARACTERP.
19918
199192008-02-01 Dave Love <fx@gnu.org>
19920
19921 * charset.c: Doc fixes.
19922 (Funify_charset): Extra checking.
19923
199242008-02-01 Dave Love <fx@gnu.org>
19925
19926 * lread.c: Remove some unused variables.
19927 (safe_to_load_p): If safe, return the magic number version byte.
19928 (Fload): Maybe use load-with-code-conversion.
19929
199302008-02-01 Kenichi Handa <handa@m17n.org>
19931
19932 * category.c (Fmodify_category_entry): Don't modify the contents
19933 of category_set for characters out of the range. Avoid
19934 unnecessary modification.
19935
19936 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
19937 Vchar_unify_table. The default value of the table is now nil.
19938
19939 * character.c (syms_of_character): Setup Vchar_width_table for
19940 eight-bit-control and raw-byte chars.
19941
19942 * charset.h (enum define_charset_arg_index): Delete
19943 charset_arg_parents and add charset_arg_subset and
19944 charset_arg_superset.
19945 (enum charset_attr_index): Delete charset_parents and add
19946 charset_subset and charset_superset.
19947 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
19948 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
19949 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
19950 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
19951 (CHARSET_SUPERSET): New macros.
19952 (charset_work): Extern it.
19953 (ENCODE_CHAR): Use charset_work.
19954 (CHAR_CHARSET_P): Adjust for the change of encoder format.
19955 (map_charset_chars): Extern it.
19956
19957 * charset.c (load_charset_map): Set the default value of encoder
19958 and deunifier char-tables to nil.
19959 (map_charset_chars): Change argument. Change callers. Use
19960 map_char_table_for_charset instead of map_char_table.
19961 (Fmap_charset_chars): New optional args from_code and to_code.
19962 (Fdefine_charset_internal): Adjust for the change of
19963 `define-charset' (:parents -> :subset or :superset).
19964 (charset_work): New variable.
19965 (encode_char, syms_of_charset): Adjust for the change of
19966 Fdefine_charset_internal.
19967 (Ffind_charset_string): Setup the vector `charsets' correctly.
19968
19969 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
19970 the previous change.
19971 (char_table_ref_and_range): Adjust for the above change.
19972 (map_sub_char_table_for_charset): New function.
19973 (map_char_table_for_charset): New function.
19974
19975 * keymap.c (describe_vector): Handle a char-table directly here.
19976 (describe_char_table): Delete.
19977
19978 * lisp.h (map_charset_chars): Delete.
19979
199802008-02-01 Dave Love <fx@gnu.org>
19981
19982 * fns.c (count_combining): Comment out (unused).
19983 (Flocale_codeset): New.
19984 (syms_of_fns): Defsubr it.
19985
19986 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
19987 (size_t): Remove.
19988
199892008-02-01 Dave Love <fx@gnu.org>
19990
19991 * Makefile.in (chartab.o): Depend on charset.h.
19992
199932008-02-01 Kenichi Handa <handa@m17n.org>
19994
19995 * character.c (syms_of_character): Set the default value of
19996 Vprintable_chars to Qnil.
19997
199982008-02-01 Dave Love <fx@gnu.org>
19999
20000 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
20001
200022008-02-01 Kenichi Handa <handa@m17n.org>
20003
20004 * charset.c (load_charset_map): Handle the case that from < to
20005 correctly.
20006
20007 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
20008 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
20009 Pay attention to raw-8-bit chars.
20010
200112008-02-01 Kenichi Handa <handa@m17n.org>
20012
20013 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
20014 It is not bytecompiled now.
20015
20016 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
20017 (charset_jisx0208): New variables.
20018 (Fdefine_charset_internal): Setup them if appropriate.
20019 (init_charset_once): Initialize them to -1.
20020
20021 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
20022 (charset_jisx0208): Extern them.
20023
20024 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
20025 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
20026 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
20027 (setup_iso_safe_charsets): Fix arguments to Fassq.
20028 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
20029 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
20030 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
20031 (encode_coding_iso_2022): Change the 1st arg to
20032 ENCODE_ISO_CHARACTER to a variable.
20033
200342008-02-01 Kenichi Handa <handa@m17n.org>
20035
20036 * charset.h (enum define_charset_arg_index): New enums
20037 charset_arg_min_code and charset_arg_max_code.
20038 (struct charset): New member char_index_offset.
20039
20040 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
20041 Take charset->char_index_offset into account.
20042 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
20043 args[charset_arg_max_code]. Setup charset.char_index_offset.
20044 (syms_of_charset): Fix args to Fdefine_charset_internal.
20045
200462008-02-01 Dave Love <fx@gnu.org>
20047
20048 * coding.c (decode_coding_utf_8): Reject overlong sequences.
20049
200502008-02-01 Dave Love <fx@gnu.org>
20051
20052 * coding.c: Doc fixes.
20053 (Fcoding_system_aliases): Fix return value.
20054 (Qmac): Remove (duplicated) definition.
20055
200562008-02-01 Dave Love <fx@gnu.org>
20057
362654a6
JB
20058 * charset.c (Fcharset_priority_list, Fset_charset_priority):
20059 New functions.
aac0c6e3
MR
20060
20061 * character.c (Fstring): Doc fix.
20062
20063 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
20064
362654a6 20065 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
20066 (font-encoding-alist): Doc fix.
20067
200682008-02-01 Dave Love <fx@gnu.org>
20069
20070 * term.c (costs_set): Declare static, non-initialized for pcc.
20071 (encode_terminal_code): Remove unused var.
20072
20073 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
20074 for K&R.
20075
20076 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
20077
20078 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
20079 (suffixes): Move out of make_subsidiaries for K&R.
20080
20081 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
20082
20083 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
20084
200852008-02-01 Dave Love <fx@gnu.org>
20086
20087 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
20088
20089 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
20090
200912008-02-01 Yong Lu <lyongu@asia-infonet.com>
20092
20093 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
20094
20095 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
20096
200972008-02-01 Kenichi Handa <handa@m17n.org>
20098
20099 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
20100 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
20101
201022008-02-01 Kenichi Handa <handa@m17n.org>
20103
20104 * coding.c (decode_coding_charset): Adjust for the change of
20105 Fdefine_coding_system_internal.
20106 (Fdefine_coding_system_internal): For a coding system of
20107 `charset' type, store a list of charset IDs in
20108 `charset_attr_charset_valids' element of coding attributes.
20109
201102008-02-01 Kenichi Handa <handa@m17n.org>
20111
20112 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
20113 (emacs_mule_char): New arg src. Delete arg `composition'. Change
20114 caller. Handle 2-byte and 3-byte charsets correctly.
20115 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
20116 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
20117 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
20118 (DECODE_EMACS_MULE_21_COMPOSITION): Call
20119 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
20120 sequence.
20121 (decode_coding_emacs_mule): Handle composition correctly. Rewind
20122 `src' and `consumed_chars' correctly before calling emacs_mule_char.
20123 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
20124 and alt&rule composition.
20125 (decode_coding_iso_2022): Handle composition correctly.
20126 (init_coding_once): Setup emacs_mule_bytes for private charsets.
20127
20128 * charset.c (Fdefine_charset_internal): Fix bug for the case of
20129 re-defining a charset. If the charset has :emacs-mule-id, setup
20130 emacs_mule_bytes.
20131 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
20132
201332008-02-01 Kenichi Handa <handa@m17n.org>
20134
20135 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
20136 (encode_coding_big5, encode_coding_charset): If coding requires safe
20137 encoding, produce a character specified by
20138 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
20139
201402008-02-01 Dave Love <fx@gnu.org>
20141
20142 * xterm.c (XSetIMValues): Declare.
20143
20144 * process.c: Conditionally include sys/wait.h, pty.h.
20145
20146 * print.c (print_object): Fix print format for 64-bit systems.
20147
20148 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
20149
20150 * buffer.c (emacs_strerror): Declare.
20151
20152 * fontset.c (Fclear_face_cache): Declare.
20153 (accumulate_font_info): Comment-out (unused).
20154 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
20155 variables.
20156
20157 * character.h (string_escape_byte8): Declare.
20158
20159 * charset.c (load_charset_map, load_charset_map_from_file): Remove
20160 unused vars.
20161 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
20162 (Fmap_charset_chars): Doc fix.
20163
20164 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
20165 (Fset_coding_system_priority, Fset_coding_system_priority)
20166 (Fdefine_coding_system_internal): Doc fix.
20167
201682008-02-01 Dave Love <fx@gnu.org>
20169
20170 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
20171
201722008-02-01 Kenichi Handa <handa@m17n.org>
20173
20174 * character.c (string_escape_byte8): Make multibyte string with
20175 correct size.
20176
20177 * charset.c (Fmake_char): Delete unnecessary code.
20178
201792008-02-01 Kenichi Handa <handa@m17n.org>
20180
20181 * xfns.c (x_encode_text): Allocate coding.destination here, and
20182 call encode_coding_object with dst_object Qnil.
20183
20184 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
20185 multibyte form correctly.
20186
20187 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
20188 against Vfont_encoding_alist.
20189
20190 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
20191 handling of charset list.
20192 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
20193 (decode_coding_object): Move point to coding->dst_pos before
20194 calling post-read-conversion function.
20195 (encode_coding_object): Give correct arguments to
20196 pre-write-conversion. Ignore the return value of
20197 pre-write-conversion function. Pay attention to the case that
20198 pre-write-conversion changes the current buffer. If dst_object is
20199 Qt, even if coding->src_bytes is zero, allocate at least one byte
20200 to coding->destination.
20201
20202 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
20203
20204 * charset.c (Fmake_char): Make it more backward compatible.
20205 (Fmap_charset_chars): Fix docstring.
20206
202072008-02-01 Dave Love <fx@gnu.org>
20208
20209 * coding.c: Doc fixes.
20210 (Fdefine_coding_system_alias): Use names, not symbols, in
20211 coding-system-alist.
20212
202132008-02-01 Kenichi Handa <handa@m17n.org>
20214
20215 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
20216 of calling free_realized_face.
20217
202182008-02-01 Yong Lu <lyongu@asia-infonet.com>
20219
20220 * charset.c (read_hex): Don't treat SPC as a comment starter.
20221 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
20222 (Fdecode_char): Fix typo.
20223
202242008-02-01 Kenichi Handa <handa@m17n.org>
20225
20226 * charset.h (struct charset): New member `code_space_mask'.
20227
20228 * coding.c (coding_set_source): Delete the local variable beg_byte.
20229 (encode_coding_charset, Fdefine_coding_system_internal):
20230 Delete the local variable charset.
20231 (Fdefine_coding_system_internal): Setup
20232 attrs[coding_attr_charset_valids] correctly.
20233
20234 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
20235 member to check if CODE is valid or not.
20236 (Fdefine_charset_internal): Initialize `code_space_mask' member.
20237 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
20238 is within the range of charset->min_code and carset->max_code.
20239
202402008-02-01 Dave Love <fx@gnu.org>
20241
20242 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
20243
20244 * dispextern.h (generate_ascii_font): Fix return type.
20245
20246 * xfaces.c (generate_ascii_font): Fix arg declaration.
20247
20248 * coding.c (coding_inherit_eol_type)
20249 (Fset_terminal_coding_system_internal)
20250 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
20251
202522008-02-01 Kenichi Handa <handa@m17n.org>
20253
20254 * coding.c (decode_coding_charset, encode_coding_charset): Handle
20255 multiple charsets correctly.
20256
202572008-02-01 Kenichi Handa <handa@m17n.org>
20258
20259 * search.c (boyer_moore): Fix handling of multibyte character
20260 translation.
20261
20262 * xdisp.c (display_mode_element): When the variable `elt' is
20263 changed, update `this' and `lisp_string'.
20264
202652008-02-01 Kenichi Handa <handa@m17n.org>
20266
20267 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
20268
20269 * callproc.c (Fcall_process): Be sure to give the current buffer
20270 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
20271
20272 * charset.c (struct charset_map_entries): New struct.
20273 (load_charset_map): Rename from parse_charset_map. New args
20274 entries and n_entries. Change caller.
20275 (load_charset_map_from_file): Rename from load_charset_map.
20276 Change caller. New arg control_flag. Call load_charset_map at
20277 the tail.
20278 (load_charset_map_from_vector): New function.
20279 (Fdefine_charset_internal): Setup charset.compact_codes_p.
20280 (encode_char): If the charset is compact, change a character index
20281 to a code point.
20282
20283 * coding.c (coding_alloc_by_making_gap): Check the case that the
20284 source and destination are the same correctly.
20285 (decode_coding_raw_text): Set coding->consumed_char and
20286 coding->consumed to 0.
20287 (produce_chars): If coding->chars_at_source is nonzero, update
20288 coding->consumed_char and coding->consumed before calling
20289 alloc_destination.
20290 (Fdefine_coding_system_alias): Register ALIAS in
20291 Vcoding_system_alist.
20292 (syms_of_coding): Define `no-conversion' coding system at the tail.
20293
20294 * fileio.c (Finsert_file_contents): Set coding_system instead of
20295 val. If the current buffer is multibyte, always call
20296 decode_coding_gap.
20297
20298 * xfaces.c (try_font_list): Give higher priority to fontset's
20299 family than face's family.
20300
203012008-02-01 Kenichi Handa <handa@m17n.org>
20302
20303 * callproc.c (Fcall_process): Be sure to give the current buffer
20304 to decode_coding_c_string.
20305
20306 * xfaces.c (try_font_list): Give a family specified in a fontset
20307 higher priority than a family specified in a face.
20308
203092008-02-01 Kenichi Handa <handa@m17n.org>
20310
20311 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
20312 Fix arguments to insert_from_buffer.
20313
20314 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
20315
203162008-02-01 Kenichi Handa <handa@m17n.org>
20317
20318 * coding.c (produce_chars): Set the variable `multibytep' correctly.
20319 (decode_coding_gap): Set coding->dst_multibyte correctly.
20320
203212008-02-01 Kenichi Handa <handa@m17n.org>
20322
20323 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
20324 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
20325 (encode_coding_utf_16): Substitute coding->default_char for
20326 non-Unicode characters.
20327 (decode_coding): Don't call record_insert here.
20328 (setup_coding_system): Initialize `surrogate' of
20329 coding->spec.utf_16 to 0.
20330 (EMIT_ONE_BYTE): Fix for multibyte case.
20331
20332 * insdel.c (insert_from_gap): Call record_insert.
20333
203342008-02-01 Kenichi Handa <handa@m17n.org>
20335
20336 * casefiddle.c (casify_region): Fix multibyte case.
20337
20338 * character.c (c_string_width): Add return type `int'.
20339 (char_string_with_unification): Delete arg ADVANCED.
20340
20341 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
20342 (CHAR_STRING): Adjust for the change of char_string_with_unification.
20343 (CHAR_STRING_ADVANCE): Make it do-while statement.
20344
20345 * chartab.c (sub_char_table_set_range): Optimize for the case
20346 DEPTH == 3. Add workaround code for a GCC optimization bug.
20347
20348 * charset.c (parse_charset_map): Remove an unused variable.
20349
20350 * coding.c: Delete unused variables.
20351
20352 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
20353 earlier. If inserted is zero and the coding system doesn't
20354 require flushing, don't call decode_coding_gap.
20355
20356 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
20357
203582008-02-01 Kenichi Handa <handa@m17n.org>
20359
20360 The following changes are for using Unicode as an internal
20361 character model, and use UTF-8 format for buffer/string
20362 representation.
20363
20364 * .gdbinit (xchartable): Adjust for the change of char table structure.
20365 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
20366
20367 * Makefile.in (obj): Add character.o and chartab.o.
20368 (lisp, shortlisp): Remove utf-8.elc.
20369 (*.o): For many files, change dependency on charset.h to
20370 character.h, and add dependency on character.h.
20371 (character.o, chartab.o): New targets.
20372
20373 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
20374 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
20375 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
20376 of "charset.h".
20377
20378 * dired.c, filelock.c: Include "character.h".
20379
20380 * alloc.c: Include "character.h" instead of "charset.h".
20381 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
20382 (syms_of_alloc): Remove defsubr for Smake_char_table.
20383
20384 * buffer.c: Include "character.h" instead of "charset.h", don't
20385 include "coding.h".
20386 (Fset_buffer_multibyte): Adjust for UTF-8.
20387
20388 * buffer.h: EXFUN Fbuffer_live_p.
20389
20390 * callproc.c: Include "character.h" instead of "charset.h".
20391 (Fcall_process): Big change for the new code-conversion APIs.
20392
20393 * casetab.c: Include "character.h" instead of "charset.h".
20394 (set_canon, set_identity, shuffle): Adjust for the new
20395 map_char_table spec.
20396 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
20397 accessing the char table structure.
20398
20399 * chartab.c: New file that implements char table.
20400
20401 * category.c: Include "character.h".
20402 (copy_category_entry): New function.
20403 (copy_category_table): Call map_char_table and copy_category_entry.
20404 (Fmake_category_table): Initialize all top-level slots.
20405 (char_category_set): New function.
20406 (modify_lower_category_set): Delete.
20407 (Fmodify_category_entry): Call char_table_ref_and_range.
20408
20409 * category.h (CATEGORY_SET): Just call char_category_set.
20410
20411 * ccl.c: Include "character.h".
20412 (Qccl, Qcclp): New variables.
20413 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
20414 it's less than 256.
20415 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
20416 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
20417 and DST type.
20418 (ccl_driver): Change types of argument, adjust code accordingly.
20419 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
20420 ccl_driver.
20421 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
20422
20423 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
20424 New members src_multibyte, dst_multibyte, consumed, and produced.
20425 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
20426 (CODING_SPEC_CCL_PROGRAM): New macro.
20427 (ccl_driver): Update prototype.
20428 (Qccl, Qcclp, Fccl_program_p): Extern them.
20429 (CHECK_CCL_PROGRAM): New macro.
20430
20431 * character.c, character.h, chartab.c: New files.
20432
20433 * charset.c: Mostly re-written. Move character and multibyte sequence
20434 handling codes to character.c.
20435
20436 * charset.h: Mostly re-written. Move character and multibyte sequence
20437 handling codes to character.h.
20438
20439 * coding.c, coding.h: Mostly re-written.
20440
20441 * composite.c: Include "character.h" instead of "charset.h".
20442 (CHAR_WIDTH): Move to character.h.
20443 (HASH_KEY, HASH_VALUE): Delete.
20444
20445 * composite.h (enum composition_method): Change order of enumeration
20446 symbols.
20447
20448 * data.c: Include "character.h" instead of "charset.h".
20449 (Faref): Call CHAR_TABLE_REF for a char table.
20450 (Faset): Call CHAR_TABLE_SET for a char table.
20451
20452 * dispextern.h (free_realized_face, check_face_attribytes)
20453 (generate_ascii_font): Extern them.
20454 (free_realized_multibyte_face): Delete extern.
20455
20456 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
20457 table structure.
20458
20459 * editfns.c: Include "character.h" instead of "charset.h".
20460 (Fchar_to_string): Always call CHAR_STRING.
20461
20462 * emacs.c (main): Call init_charset_once, init_charset,
20463 syms_of_chartab, and syms_of_character.
20464
20465 * fileio.c: Include "character.h" instead of "charset.h".
20466 (Finsert_file_contents): Big change for the new code-conversion API.
20467 (choose_write_coding_system, Fwrite_region): Likewise.
20468 (build_annotations_2): Delete.
20469 (e_write): Big change for the new code-conversion API.
20470
20471 * fns.c: Include "character.h" instead of "charset.h".
20472 (copy_sub_char_table): Move to chartab.c.
20473 (Fcopy_sequence): Call copy_char_table for a char table.
20474 (concat): Delete codes calling count_multibyte.
20475 (string_char_to_byte, string_byte_to_char): Adjust for the new
20476 multibyte form.
20477 (internal_equal): Adjust for the change of char table structure.
20478 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
20479 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
20480 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
20481 (char_table_translate, optimize_sub_char_table)
20482 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
20483 chartab.c.
20484 (char_table_ref_and_index): Delete.
20485 (HASH_KEY, HASH_VALUE): Move to lisp.h.
20486 (Fmd5): Call preferred_coding_system instead of accessing
20487 Vcoding_category_list. Adjust for the new code-conversion API.
20488 (syms_of_fns): Move defsubr for char table related functions to
20489 chartab.c.
20490
20491 * fontset.c: Mostly re-written.
20492
20493 * fontset.h (struct font_info): Change type of the member encoding_type.
20494 (enum FONT_SPEC_INDEX): New enum.
20495 (fontset_font_pattern, fs_load_font): Update prototype.
20496 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
20497
20498 * indent.c: Include "character.h" instead of "charset.h".
20499 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
20500
20501 * insdel.c: Include "character.h" instead of "charset.h".
20502 (copy_text): Don't refer to Vnonascii_translation_table.
20503 (insert_from_gap): New function.
20504
20505 * keyboard.c: Include "character.h" instead of "charset.h".
20506 (command_loop_1): Never call direct_output_forward_char before
20507 a non-ASCII character.
20508 (read_char): If Vkeyboard_translate_table is a char table, always
20509 translate a character.
20510
20511 * keymap.c: Include "character.h".
20512 (store_in_keymap): Handle the case that IDX is a cons.
20513 (Fdefine_key): Handle the case that KEY is a cons and the car part
20514 is also a cons (range).
20515 (push_key_description): Adjust for the new character code.
20516 (describe_vector): Call describe_char_table for a char table.
20517 (describe_char_table): New function.
20518
20519 * keymap.h (describe_char_table): Extern it.
20520
20521 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
20522 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
20523 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
20524 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
20525 Delete.
20526 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
20527 structure.
20528 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
20529 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
20530 (CHARTAB_SIZE_BITS_3): New macros.
20531 (chartab_size): Extern it.
20532 (struct Lisp_Char_Table): Re-design.
20533 (struct Lisp_Sub_Char_Table): New structure.
20534 (HASH_KEY, HASH_VALUE): Move from fns.c.
20535 (CHARACTERBITS): Define as 22.
20536 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
20537 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
20538 (GC_SUB_CHAR_TABLE_P): New macro.
20539 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
20540 (code_convert_string_norecord): Deleted extern.
20541 (init_character_once, syms_of_character, init_charset)
20542 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
20543
20544 * lread.c: Include "character.h".
20545 (read_multibyte): New arg NBYTES.
20546 (read_escape): Change the meaning of returned *BYTEREP.
20547 (to_multibyte): Delete.
20548 (read1): Adjust the handling of char table and string.
20549
20550 * print.c: Include "character.h" instead of "charset.h".
20551 (print_string): Convert 8-bit raw bytes to octal form by
20552 string_escape_byte8.
20553 (print_object): Adjust for the new multibyte form. Print 8-bit
20554 raw bytes always in octal form. Handle sub char table correctly.
20555
20556 * process.c: Include "character.h" instead of "charset.h".
20557 (read_process_output, send_process): Adjust for the new
20558 code-conversion API.
20559
20560 * puresize.h (BASE_PURESIZE): Increase.
20561
20562 * regex.c: Include "character.h" instead of "charset.h".
20563 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
20564 (regex_compile): Accept a range whose starting and ending
20565 character have different leading bytes.
20566 (analyse_first): Adjust for the above change.
20567
20568 * search.c: Include "character.h" instead of "charset.h".
20569 (search_buffer, boyer_moore): Adjust for the new multibyte form.
20570 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
20571
20572 * syntax.c: Include "character.h" instead of "charset.h".
20573 (syntax_parent_lookup): Delete.
20574 (Fmodify_syntax_entry): Accept a cons as CHAR.
20575 (skip_chars): Adjust for the new multibyte form.
20576 (init_syntax_once): Call char_table_set_range instead of directly
20577 accessing the structure of a char table.
20578
20579 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
20580 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
20581 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
20582 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
20583
20584 * term.c: Include "buffer.h" and "character.h".
20585 (encode_terminal_code, write_glyphs): Adjust for the new
20586 code-conversion API.
20587 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
20588
20589 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
20590
20591 * xdisp.c: Include "character.h".
20592 (get_next_display_element): Adjust for the new multibyte form.
20593 (disp_char_vector): Adjust for the new char table structure.
20594 (decode_mode_spec_coding): Adjust for the new structure of
20595 coding system.
20596 (decode_mode_spec): Adjust for the new code-conversion API.
20597
20598 * xfaces.c: Include "character.h" instead of "charset.h".
20599 (load_face_font): Adjust for the change of choose_face_font and
20600 FS_LOAD_FONT.
20601 (generate_ascii_font): New function.
20602 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
20603 (set_font_frame_param): Adjust for the change of choose_face_font.
20604 (free_realized_face): Make it public.
20605 (free_realized_faces_for_fontset): Rename from
20606 free_realized_multibyte_face. Free also faces realized for ASCII.
20607 (choose_face_font): Change arguments. Adjust for the change of
20608 fontset_font_pattern and FS_LOAD_FONT.
20609
20610 * xfns.c: Include "character.h".
20611 (x_encode_text): Adjust for the new code-conversion API.
20612
20613 * xselect.c: Don't include "charset.h".
20614 (selection_data_to_lisp_data): Adjust for the new code conversion API.
20615
20616 * xterm.c: Include "character.h".
20617 (x_encode_char): New argument CHARSET. Change caller.
20618 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
20619 Call ENCODE_CHAR instead of SPLIT_CHAR.
20620 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
20621 CHAR_WIDTH instead of CHARSET_WIDTH.
20622 (XTread_socket): Adjust for the new code-conversion API.
20623 (x_new_font): Adjust for the change of FS_LOAD_FONT.
20624 (x_load_font): Adjust for the change of struct font.
20625
206262008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
20627
20628 * xfaces.c (face_at_buffer_position): Remove unused vars.
20629
206302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20631
20632 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
20633 Fix overflow checking.
20634
206352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20636
20637 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
20638 Cancel previous change.
20639
206402008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
20641
20642 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
20643 ccl->eight_bit_control. Fix check for buffer overflow.
20644 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
20645 (ccl_driver): Initialize extra_bytes to 0.
20646
206472008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
20648
20649 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
20650 return it ORed with ctrl_modifier.
20651
206522008-01-29 Miles Bader <miles@gnu.org>
20653
20654 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
20655
206562008-01-28 Jason Rumney <jasonr@gnu.org>
20657
20658 * w32.c (stat): Don't double check for networked drive.
20659
206602008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
20661
20662 * window.c (run_window_configuration_change_hook): New function.
20663 Code extracted from set_window_buffer. Set the selected frame.
20664 (set_window_buffer): Use it.
20665 * window.h (run_window_configuration_change_hook): Declare.
20666 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
20667
20668 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
20669
206702008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
20671
20672 * Makefile.in: Remove references to unused macros.
20673
206742008-01-26 Eli Zaretskii <eliz@gnu.org>
20675
20676 * w32.c (g_b_init_get_sid_sub_authority)
20677 (g_b_init_get_sid_sub_authority_count): New static variables.
20678 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
20679 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
20680 (init_user_info): Use them to retrieve uid and gid.
20681 Use 500/513, the Windows defaults, as Administrator's uid/gid.
20682 (fstat): Use pw_uid and pw_gid from the_passwd structure for
20683 st_uid and st_gid of the file.
20684
206852008-01-26 Jason Rumney <jasonr@gnu.org>
20686
20687 * w32.c (logon_network_drive): New function.
20688 (stat): Use it.
20689
206902008-01-26 Chong Yidong <cyd@stupidchicken.com>
20691
20692 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
20693 invisible text covered with an ellipsis.
20694
206952008-01-25 Richard Stallman <rms@gnu.org>
20696
20697 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
20698 jump back to beginning. Move some other initializations after that.
20699 (Qwindow_text_change_functions, Vwindow_text_change_functions):
20700 New variables.
20701 (syms_of_xdisp): Init them.
20702
20703 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
20704
20705 * buffer.c (reset_buffer_local_variables):
20706 Implement `permanent-local-hook'.
20707 (Qpermanent_local_hook): New variable.
20708 (syms_of_buffer): Init and staticpro it.
20709
207102008-01-25 Michael Albinus <michael.albinus@gmx.de>
20711
20712 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
20713
207142008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
20715
20716 * fns.c (Fclrhash): Return TABLE.
20717
207182008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20719
20720 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
20721 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
20722 is set even without positional changes.
20723 (x_scroll_bar_clear): Set bar->redraw_needed_p.
20724
20725 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
20726
207272008-01-23 Jason Rumney <jasonr@gnu.org>
20728
20729 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
20730
20731 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
20732 the unicode range available in MULE by locale-coding-system.
20733 Improve dbcs lead byte detection. Set event timestamp and modifiers
20734 earlier.
20735
207362008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20737
20738 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
20739 [MAC_OSX] (init_mac_osx_environment): Initialize it.
20740 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
20741 when used on child processes.
20742
207432008-01-21 Michael Albinus <michael.albinus@gmx.de>
20744
20745 * dbusbind.c (Fdbus_method_return_internal): Rename from
20746 Fdbus_method_return.
20747 (Fdbus_unregister_object): Move to dbus.el.
20748 (Fdbus_call_method, Fdbus_method_return_internal)
20749 (Fdbus_send_signal): Improve debug messages.
20750
207512008-01-20 Martin Rudalics <rudalics@gmx.at>
20752
20753 * undo.c (undo_inhibit_record_point): New variable.
20754 (syms_of_undo): Initialize it.
20755 (record_point): Don't record point when undo_inhibit_record_point
20756 is set.
20757
207582008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
20759
20760 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
20761
20762 * xdisp.c (Qauto_hscroll_mode): New var.
20763 (syms_of_xdisp): Initialize it.
20764 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
20765 window's buffer.
20766 (hscroll_windows): Don't check automatic_hscrolling_p here.
20767
20768 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
20769 vscroll if we're setting window-buffer to the value it already has.
20770
207712008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
20772
20773 * m/intel386.h: Remove references to XENIX.
20774
207752008-01-17 Andreas Schwab <schwab@suse.de>
20776
20777 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
20778 instead of HAVE_X86_64_LIB64_DIR.
20779 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
20780
207812008-01-17 Glenn Morris <rgm@gnu.org>
20782
20783 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
20784 to HAVE_X86_64_LIB64_DIR.
20785
207862008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
20787
20788 * s/irix3-3.h:
20789 * s/irix4-0.h:
20790 * s/386-ix.h:
20791 * s/domain.h:
20792 * s/hpux9-x11r4.h:
20793 * s/hpux9shxr4.h: Remove files for systems no longer supported.
20794
20795 * sysdep.c: Remove code containing references to symbols defined
20796 by unsupported systems.
20797
207982008-01-16 Glenn Morris <rgm@gnu.org>
20799
20800 * coding.c (select-safe-coding-system-function): Doc fix.
20801
208022008-01-15 Glenn Morris <rgm@gnu.org>
20803
20804 * config.in: Revert 2008-01-13 change: this is a generated file.
20805
208062008-01-13 Tom Tromey <tromey@redhat.com>
20807
20808 * lisp.h: Fix typo.
20809
208102008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
20811
20812 * m/sequent-ptx.h:
20813 * m/sequent.h:
20814 * s/ptx.h:
20815 * s/ptx4-2.h:
20816 * s/ptx4.h: Remove files for systems no longer supported.
20817
20818 * callproc.c (Fcall_process): Fix previous change.
20819
208202008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
20821
20822 * unexsunos4.c: Remove file, system not supported anymore.
20823
20824 * m/mips.h:
20825 * m/intel386.h:
20826 * callproc.c:
20827 * config.in:
20828 * ecrt0.c:
20829 * emacs.c:
20830 * fileio.c:
20831 * frame.c:
20832 * getpagesize.h:
20833 * keyboard.c:
20834 * lread.c:
20835 * process.c:
20836 * puresize.h:
20837 * sysdep.c:
20838 * systty.h:
20839 * syswait.h:
20840 * unexec.c:
20841 * xdisp.c:
20842 * alloc.c: Remove code containing references to symbols defined by
20843 unsupported systems.
20844
208452008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
20846
20847 * coding.c (detect_coding_mask): Fix previous change.
20848
208492008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
20850
20851 * coding.c (detect_coding_iso2022): New arg
20852 latin_extra_code_state. Allow Latin extra codes only
20853 when *latin_extra_code_state is nonzero.
20854 (detect_coding_mask): If there is a NULL byte, detect the encoding
20855 as UTF-16 or binary. If Latin extra codes exist, detect the
20856 encoding as ISO-2022 only when there's no other proper encoding is
20857 found.
20858
208592008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20860
20861 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
20862 #ifdef MAC_OS.
20863
208642008-01-08 Richard Stallman <rms@gnu.org>
20865
20866 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
20867
208682008-01-06 Nick Roberts <nickrob@snap.net.nz>
20869
20870 * keyboard.c (parse_menu_item): Don't enclose key bindings on
20871 menu bar in parentheses.
20872
208732008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
20874
20875 * m/7300.h:
20876 * m/acorn.h:
20877 * m/alliant-2800.h:
20878 * m/alliant.h:
20879 * m/alliant1.h:
20880 * m/alliant4.h:
20881 * m/altos.h:
20882 * m/amdahl.h:
20883 * m/apollo.h:
20884 * m/att3b.h:
20885 * m/aviion-intel.h:
20886 * m/aviion.h:
20887 * m/celerity.h:
20888 * m/clipper.h:
20889 * m/cnvrgnt.h:
20890 * m/convex.h:
20891 * m/cydra5.h:
20892 * m/delta88k.h:
20893 * m/dpx2.h:
20894 * m/dual.h:
20895 * m/elxsi.h:
20896 * m/f301.h:
20897 * m/gould-np1.h:
20898 * m/gould.h:
20899 * m/i860.h:
20900 * m/ibmps2-aix.h:
20901 * m/ibmrt-aix.h:
20902 * m/ibmrt.h:
20903 * m/irist.h:
20904 * m/is386.h:
20905 * m/isi-ov.h:
20906 * m/mega68.h:
20907 * m/mg1.h:
20908 * m/news-r6.h:
20909 * m/news-risc.h:
20910 * m/news.h:
20911 * m/nh3000.h:
20912 * m/nh4000.h:
20913 * m/ns16000.h:
20914 * m/ns32000.h:
20915 * m/nu.h:
20916 * m/orion.h:
20917 * m/orion105.h:
20918 * m/paragon.h:
20919 * m/pfa50.h:
20920 * m/plexus.h:
20921 * m/pyramid.h:
20922 * m/pyrmips.h:
20923 * m/sh3el.h:
20924 * m/sps7.h:
20925 * m/sr2k.h:
20926 * m/stride.h:
20927 * m/sun1.h:
20928 * m/sun2.h:
20929 * m/sun3-68881.h:
20930 * m/sun3-fpa.h:
20931 * m/sun3-soft.h:
20932 * m/sun3.h:
20933 * m/sun386.h:
20934 * m/symmetry.h:
20935 * m/tad68k.h:
20936 * m/tahoe.h:
20937 * m/targon31.h:
20938 * m/tek4300.h:
20939 * m/tekxd88.h:
20940 * m/tower32.h:
20941 * m/tower32v3.h:
20942 * m/ustation.h:
20943 * m/wicat.h:
20944 * m/xps100.h:
20945 * s/cxux.h:
20946 * s/cxux7.h:
20947 * s/dgux.h:
20948 * s/dgux4.h:
20949 * s/dgux5-4-3.h:
20950 * s/dgux5-4r2.h:
20951 * s/esix.h:
20952 * s/esix5r4.h:
20953 * s/hiuxmpp.h:
20954 * s/hiuxwe2.h:
20955 * s/iris3-5.h:
20956 * s/iris3-6.h:
20957 * s/isc2-2.h:
20958 * s/isc3-0.h:
20959 * s/isc4-0.h:
20960 * s/isc4-1.h:
20961 * s/newsos5.h:
20962 * s/newsos6.h:
20963 * s/osf1.h:
20964 * s/osf5-0.h:
20965 * s/riscix1-1.h:
20966 * s/riscix12.h:
20967 * s/sco4.h:
20968 * s/sco5.h:
20969 * s/sunos4-0.h:
20970 * s/sunos4-1.h:
20971 * s/sunos413.h:
20972 * s/sunos4shr.h:
20973 * s/umax.h:
20974 * s/unipl5-2.h:
20975 * s/xenix.h:
20976 * cxux-crt0.s:
20977 * unexapollo.c:
20978 * unexconvex.c:
20979 * unexenix.c:
20980 * unexsni.c: Remove files for systems no longer supported.
20981
20982 * m/intel386.h: Remove references to unsupported systems.
20983
20984 * w32.c (get_emacs_configuration): Remove reference to i860.
20985
20986 * sysdep.c: Remove dead code.
20987
209882008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
20989
20990 * s/rtu.h:
20991 * m/masscomp.h: Remove files. Platform is obsolete.
20992
209932008-01-04 Michael Albinus <michael.albinus@gmx.de>
20994
20995 * dbusbind.c (Fdbus_method_return): New function.
20996 (xd_read_message): Add the serial number to the event.
20997 (Fdbus_register_method): Activate the function.
20998
209992008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
21000
21001 * keyboard.c (read_key_sequence): Fix typo.
21002
210032008-01-03 Michael Albinus <michael.albinus@gmx.de>
21004
21005 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
21006 (xd_signature, xd_append_arg): Handle element type detection for
21007 empty arrays.
21008 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
21009 SDATA () calls; this must be solved more general.
21010 (Fdbus_register_signal): Use SBYTES instead of strlen.
21011
210122008-01-03 Magnus Henoch <magnus@zemdatav>
21013
21014 * dbusbind.c (xd_append_arg): Use unsigned char instead of
21015 unsigned int for byte values (necessary for big-endian platform).
21016 (Fdbus_call_method): Handle the case of no returned arguments.
21017
210182007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
21019
21020 * dbusbind.c (xd_read_message): Use non-static input_event struct.
21021
210222007-12-31 Magnus Henoch <mange@freemail.hu>
21023
21024 * dbusbind.c (xd_signature): Signature of variant is just "v".
21025
210262007-12-30 Michael Albinus <michael.albinus@gmx.de>
21027
21028 * dbusbind.c: Fix several errors and compiler warnings.
21029 Reported by Tom Tromey <tromey@redhat.com>.
21030 (XD_ERROR, XD_DEBUG_MESSAGE)
21031 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
21032 (xd_append_arg): Part for basic D-Bus types rewritten.
21033 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
21034 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
21035 appropriate.
21036 (xd_read_message): Return Qnil. Don't signal an error; it is not
21037 useful during event reading.
21038 (Fdbus_register_signal): Signal an error if the check for
21039 FUNCTIONP fails.
21040 (Fdbus_register_method): New function. The implementation is not
21041 complete, the call of the function signals an error therefore.
21042 (Fdbus_unregister_object): New function, renamed from
21043 Fdbus_unregister_signal. The initial check signals an error, if
21044 the object is not well formed.
21045
210462007-12-30 Richard Stallman <rms@gnu.org>
21047
21048 * textprop.c (get_char_property_and_overlay):
21049 Signal error if POSITION is out of range in a buffer.
21050
210512007-12-29 Martin Rudalics <rudalics@gmx.at>
21052
21053 * w32fns.c (Fx_create_frame): Make copy of frame parameters
21054 because the original parameters are in pure storage now.
21055
210562007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21057
21058 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
21059
210602007-12-22 Eli Zaretskii <eliz@gnu.org>
21061
21062 * callint.c (syms_of_callint) <command-history>: Add reference to
21063 history-length in the doc string.
21064
210652007-12-17 Jason Rumney <jasonr@gnu.org>
21066
21067 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
21068 before passing as wParam.
21069
210702007-12-22 Michael Albinus <michael.albinus@gmx.de>
21071
21072 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
21073 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
21074 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
21075 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
21076 as number.
21077 (Fdbus_call_method): Fix docstring.
21078
210792007-12-21 Michael Albinus <michael.albinus@gmx.de>
21080
21081 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
21082 New macros.
21083 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
21084 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
21085 Simplify.
21086 (xd_signature): New function.
21087 (xd_append_arg): Compute also signatures. Major rewrite.
21088 (xd_retrieve_arg): Make debug messages friendly.
21089 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
21090 Check for signatures of arguments.
21091
210922007-12-19 Michael Albinus <michael.albinus@gmx.de>
21093
21094 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
21095 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
21096 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
21097 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
21098 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
21099 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
21100 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
21101 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
21102 (xd_retrieve_value): Remove. Functionality included in ...
21103 (xd_append_arg): New function.
21104 (Fdbus_call_method, Fdbus_send_signal): Apply it.
21105
211062007-12-16 Michael Albinus <michael.albinus@gmx.de>
21107
21108 * dbusbind.c (top): Include <stdio.h>.
21109 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
21110 dbus_message_new_method_call and dbus_message_new_signal.
21111 (Fdbus_register_signal): Rename unique_name to uname.
21112 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
21113 non-existing unique name. Fix typos in matching rule. Return an
21114 object which is useful in Fdbus_unregister_signal.
21115 (Fdbus_unregister_signal): Reimplementation, in order to remove
21116 only the corresponding entry.
21117 (Vdbus_registered_functions_table): Change the order of entries.
21118 Apply these changes in xd_read_message and Fdbus_register_signal.
21119
211202007-12-16 Andreas Schwab <schwab@suse.de>
21121
21122 * fileio.c (Finsert_file_contents): Fix overflow check to not
21123 depend on undefined integer overflow.
21124
211252007-12-14 Jason Rumney <jasonr@gnu.org>
21126
21127 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
21128 for characters above 127.
21129
211302007-12-13 Jason Rumney <jasonr@gnu.org>
21131
21132 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
21133 before dereferencing array.
21134 (lookup_vk_code): Remove zero comparison.
21135
211362007-12-14 Michael Albinus <michael.albinus@gmx.de>
21137
21138 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
21139 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
21140 Use `unsigned int' instead of `uint'.
21141 (xd_read_message, Fdbus_register_signal): Split expressions into
21142 multiple lines before operators "&&" and "||", according to the
21143 GNU Coding Standards.
21144
211452007-12-14 Eli Zaretskii <eliz@gnu.org>
21146
21147 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
21148
211492007-12-12 Juri Linkov <juri@jurta.org>
21150
21151 * buffer.c (Frename_buffer): In interactive spec replace
21152 `read-buffer' with `read-string' that uses `buffer-name-history'
21153 as history, and the current buffer's name as default.
21154
211552007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
21156
21157 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
21158 manipulating the backtrace manually.
21159 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
21160 (struct backtrace, backtrace_list): Remove.
21161 (command_loop_1): Remove dead var `no_direct'.
21162
21163 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
21164 preserve non-built-in buffer-local variables.
21165 (Fkill_all_local_variables): Don't re-create&re-set permanent
21166 buffer-local variables.
21167
211682007-12-09 Juri Linkov <juri@jurta.org>
21169
21170 * buffer.c (Frename_buffer): Change interactive spec from "s" to
21171 Lisp code that uses `read-buffer' with current buffer as default.
21172
211732007-12-08 Michael Albinus <michael.albinus@gmx.de>
21174
21175 * dbusbind.c (xd_read_message): Generate an event for every
21176 registered handler. There might be several handlers registered
21177 for the same signal.
21178 (Fdbus_register_signal): Don't overwrite a registration for the
21179 same signal. Add a new registration if handlers are different.
21180 (Vdbus_registered_functions_table): Rework doc string.
21181
211822007-12-07 Michael Albinus <michael.albinus@gmx.de>
21183
21184 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
21185 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
21186 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
21187 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
21188 Unify argument lists.
21189 (xd_read_message, Fdbus_register_signal): Reorder and extend event
21190 arguments and hash table keys. Use unique name for service.
21191 (Fdbus_unregister_signal): Remove checks.
21192 (Vdbus_registered_functions_table): Fix doc string.
21193
211942007-12-05 Magnus Henoch <mange@freemail.hu>
21195
21196 * process.c (make_process): Initialize pty_flag to 0.
21197
211982007-12-05 Jason Rumney <jasonr@gnu.org>
21199
21200 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
21201 specified XBMs.
21202
212032007-12-05 Richard Stallman <rms@gnu.org>
21204
21205 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
21206
212072007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21208
21209 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
21210 New variable.
21211 (mac_try_close_socket) [MAC_OSX]: New function.
21212 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
21213 Update cfsockets_for_select. Replace invalid CFRunLoop source.
21214
21215 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
21216 Use mac_try_close_socket.
21217
212182007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21219
21220 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
21221 reloc_base.
21222 (copy_dysymtab): Compute relocation base here.
21223 (rebase_reloc_address) [__ppc64__]: New function.
21224 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
21225 changed.
21226
212272007-12-05 Jason Rumney <jasonr@gnu.org>
21228
21229 * w32proc.c (sys_spawnve): Quote args with wildcards.
21230
212312007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21232
21233 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
21234 __objc_* sections.
21235 (unrelocate) [_LP64]: Set relocation base to address of data segment.
21236
212372007-12-05 Michael Albinus <michael.albinus@gmx.de>
21238
21239 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
21240 Move check for Vdbus_registered_functions_table to
21241 xd_read_queued_messages.
21242 (xd_read_queued_messages): Protect xd_read_message calls by
21243 internal_condition_case_1.
21244
212452007-12-04 Michael Albinus <michael.albinus@gmx.de>
21246
21247 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
21248 Qdbus_system_bus and Qdbus_session_bus, respectively.
21249 (Vdbus_intern_symbols): Remove.
21250 (Vdbus_registered_functions_table): New hash table.
21251 (XD_SYMBOL_INTERN_SYMBOL): Remove.
21252 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
21253 Rewrite in order to manage registered functions by hash table
21254 Vdbus_registered_functions_table.
21255
212562007-12-03 Jan Djärv <jan.h.d@swipnet.se>
21257
21258 * xterm.c: Update URL to Window Manager Specification in comment.
21259
212602007-12-02 Michael Albinus <michael.albinus@gmx.de>
21261
21262 * config.in (HAVE_DBUS): Add.
21263
21264 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
21265 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
21266 (obj): Add $(DBUS_OBJ).
21267 (LIBES): Add $(DBUS_LIBS).
21268 (dbusbind.o): New target.
21269
21270 * dbusbind.c: New file.
21271
21272 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
21273
21274 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
21275 (Qdbus_event): New Lisp symbol.
21276 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
21277 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 21278 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
21279
21280 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
21281
212822007-12-01 Richard Stallman <rms@gnu.org>
21283
21284 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
21285
212862007-11-30 Jason Rumney <jasonr@gnu.org>
21287
21288 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
21289 (w32con_reset_terminal_modes): Clear screen buffer.
21290 (w32_face_attributes): Don't use color indexes that are out of range.
21291 Only reverse the default colors.
21292
21293 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
21294 WINDOWSNT.
21295
21296 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
21297
212982007-11-29 Jason Rumney <jasonr@gnu.org>
21299
21300 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
21301 (w32_face_attributes): Use Vtty_defined_color_alist to determine
21302 if the terminal colors are initialized.
21303 (unspecified_fg, unspecified_bg): Remove unused declarations.
21304
213052007-11-29 Andreas Schwab <schwab@suse.de>
21306
21307 * keyboard.c (apply_modifiers): Fix typo.
21308
213092007-11-29 Richard Stallman <rms@gnu.org>
21310
21311 * keymap.c (Fcurrent_local_map): Doc fix.
21312
213132007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
21314
21315 * s/gnu-kfreebsd.h: New file.
21316
213172007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
21318
21319 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
21320 Don't cast redundantly.
21321
21322 * keyboard.c (KEY_TO_CHAR): New macro.
21323 (parse_modifiers, apply_modifiers): Accept integer arguments.
21324 (read_key_sequence): Use them to unify the "shift->unshift" mapping
21325 for chars and symbol keys.
21326 After doing such remapping, apply function-key-map again.
21327
213282007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
21329
21330 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
21331 compiled anymore.
21332
213332007-11-26 Andreas Schwab <schwab@suse.de>
21334
21335 * process.c (list_processes_1): Fix indentation level of the
21336 command column.
21337
213382007-11-23 Andreas Schwab <schwab@suse.de>
21339
21340 * editfns.c (Fformat): Handle %c specially since it requires the
21341 argument to be of type int.
21342
213432007-11-23 Markus Triska <markus.triska@gmx.at>
21344
21345 * emacs.c (main): Call init_editfns before init_process, since
21346 init_process sets Vprocess_connection_type depending on OS release.
21347
213482007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
21349
21350 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
21351 (find_symbol_value): Use do_symval_forwarding.
21352
21353 * data.c (set_internal): Set the value in the `cons-cell' (for
21354 Buffer_Local_values) not only for frame-local variables.
21355
213562007-11-22 Andreas Schwab <schwab@suse.de>
21357
21358 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
21359 values to sprintf.
21360 * keymap.c (Fsingle_key_description): Likewise.
21361 * print.c (print_object): Likewise.
21362
213632007-11-22 Jan Djärv <jan.h.d@swipnet.se>
21364
21365 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
21366 file for image is nil.
21367
213682007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
21369
21370 * term.c: Include stdarg.h.
21371 (fatal): Implement using varargs.
21372 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
21373
213742007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
21375
21376 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
21377 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
21378 Update call to buffer_slot_type_mismatch.
21379 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
21380 (buffer_slot_type_mismatch): Update.
21381 * buffer.c (buffer_local_types): Remove.
21382 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
21383 (defvar_per_buffer): Set the type in the buffer_objfwd.
21384
213852007-11-21 Jason Rumney <jasonr@gnu.org>
21386
21387 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
21388 CreateFileMapping returns NULL on failure.
21389
213902007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
21391
21392 * search.c (Fset_match_data): Remove the `evaporate' feature.
21393 (unwind_set_match_data): Don't use the `evaporate' feature.
21394
213952007-11-21 Jason Rumney <jasonr@gnu.org>
21396
21397 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
21398
21399 * w32console.c (w32con_write_glyphs): Remove unused variables.
21400
214012007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
21402
21403 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
21404
21405 * s/darwin.h (MULTI_KBOARD): Remove.
21406
21407 * macfns.c (x_create_tip_frame, Fx_create_frame)
21408 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
21409
214102007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
21411
21412 * buffer.c (Fbuffer_local_value): Remove redundant test.
21413 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
21414 than in `current-buffer' to match the comment.
21415 Do the swap using swap_in_global_binding.
21416
21417 * data.c (store_symval_forwarding, set_internal):
21418 * eval.c (specbind): Remove dead code.
21419
21420 * coding.c (detect_coding, Fupdate_coding_systems_internal):
21421 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
21422 Since we do not want to see internal Lisp_*fwd objects here.
21423
214242007-11-18 Jan Djärv <jan.h.d@swipnet.se>
21425
21426 * sysdep.c (init_system_name): Use getaddrinfo if available.
21427
21428 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
21429 (x_scroll_bar_note_movement): start, end, with, height in struct
21430 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
21431
214322007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
21433
21434 * puresize.h (BASE_PURESIZE): Increase to 1190000.
21435
214362007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
21437
21438 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
21439 This undoes Richard's change of 14-Oct-2002.
21440
21441 * alloc.c (allocate_other_vector):
21442 * lisp.h (allocate_other_vector): Remove.
21443
21444 * window.c (struct save_window_data): Move non-lisp data to the end
21445 and make it `int' rather than Lisp_Object.
21446 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
21447 Done wrap/unwrap integer values.
21448 (Fset_window_configuration, compare_window_configurations):
21449 Update use of fields to their new types.
21450
21451 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
21452 Turn integer fields into `int'. Merge x_window_low and x_window_high.
21453 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
21454 (SET_SCROLL_BAR_X_WINDOW): Remove.
21455 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
21456 Access the new x_window field directly.
21457 * xterm.c (x_scroll_bar_create): Use a pseudovector.
21458 Don't wrap/unwrap integers into Lisp_Objects.
21459 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
21460 (x_scroll_bar_report_motion):
21461 Don't wrap/unwrap integers into Lisp_Objects.
21462 (x_term_init): Use SDATA.
21463 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
21464 (x_scroll_bar_set_handle, x_scroll_bar_remove)
21465 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
21466 (x_scroll_bar_report_motion, x_scroll_bar_clear):
21467 * xfns.c (x_set_background_color):
21468 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
21469 Access the new x_window field directly.
21470
21471 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
21472 (allocate_pseudovector): Make non-static.
21473
21474 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
21475 (allocate_pseudovector): Declare.
21476 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
21477
214782007-11-15 Andreas Schwab <schwab@suse.de>
21479
21480 * editfns.c (Fformat): Correctly format EMACS_INT values.
21481 Also take precision into account when formatting an integer.
21482
21483 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
21484
214852007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
21486
21487 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
21488 (syms_of_keyboard): Defsubr it.
21489
21490 * data.c (swap_in_global_binding): Fix longstanding bug where
21491 store_symval_forwarding was not called with the right second argument,
21492 thus causing objfwd-ing from being dropped.
21493
214942007-11-14 Juanma Barranquero <lekktu@gmail.com>
21495
21496 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
21497 (Fx_display_pixel_height, Fx_display_planes)
21498 (Fx_display_color_cells, Fx_server_max_request_size)
21499 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
21500 (Fx_display_visual_class, Fx_display_save_under):
21501 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
21502 (Fx_display_pixel_height, Fx_display_planes)
21503 (Fx_display_color_cells, Fx_server_max_request_size)
21504 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
21505 (Fx_display_mm_height, Fx_display_mm_width)
21506 (Fx_display_backing_store, Fx_display_visual_class)
21507 (Fw32_select_font, Fx_display_save_under):
21508 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
21509 (Fx_display_pixel_height, Fx_display_planes)
21510 (Fx_display_color_cells, Fx_server_max_request_size)
21511 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
21512 (Fx_display_save_under): Fix typos in docstrings.
21513
215142007-11-14 Juanma Barranquero <lekktu@gmail.com>
21515
21516 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
21517 corresponding to deleted entries; they are an implementation detail.
21518 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
21519 Remove variables.
21520 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
21521 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
21522 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
21523 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
21524 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
21525 (Fw32_define_rgb_color, Fw32_load_color_file)
21526 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
21527 Fix typos in docstrings.
21528 (Fx_server_version): Reflow docstring.
21529 (Fw32_shell_execute): Doc fixes.
21530
215312007-11-13 Juanma Barranquero <lekktu@gmail.com>
21532
21533 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
21534 if w32_parse_hot_key returned nil.
21535
215362007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
21537
21538 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
21539
215402007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 21541
aac0c6e3
MR
21542 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
21543
21544 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
21545
21546 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
21547 Remove W32_SCROLL_BAR_CLICK_EVENT.
21548
21549 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
21550 Add MULTIMEDIA_KEY_EVENT.
21551
21552 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
21553 (lispy_multimedia_keys) [WINDOWSNT]: New array.
21554 (make_lispy_event) [WINDOWSNT]: Use it to translate
21555 MULTIMEDIA_KEY_EVENT.
21556
21557 * w32term.h (WM_APPCOMMAND): Define if not already.
21558 (GET_APPCOMMAND_LPARAM): Likewise.
21559
21560 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
21561 WM_APPCOMMAND.
21562
21563 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
21564 (syms_of_w32fns): Export and initialize it.
21565 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
21566
215672007-11-09 Chong Yidong <cyd@stupidchicken.com>
21568
21569 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
21570 twice.
21571
21572 * xdisp.c (handle_face_prop): Fix last change.
21573
215742007-11-09 Richard Stallman <rms@gnu.org>
21575
21576 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
21577 not just for after-strings and before-strings.
21578 Call face_for_overlay_string and pass the overlay to it.
21579 (handle_display_prop): Determine whether property came from an overlay.
21580 Pass OVERLAY arg to handle_single_display_spec.
21581 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
21582 (load_overlay_strings): Fill in it->string_overlays.
21583 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
21584
21585 * xfaces.c (face_for_overlay_string): Function renamed from
21586 face_at_buffer_position_no_overlays, and add arg OVERLAY.
21587
21588 * dispextern.h (struct it): New elt string_overlays.
21589 New elt from_overlay, also in stack.
21590 Rearrange a few elements.
21591 (face_for_overlay_string): Decl renamed from
21592 face_at_buffer_position_no_overlays, and add argument.
21593
215942007-11-09 Richard Stallman <rms@gnu.org>
21595
21596 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
21597 to get the base face for an overlay string.
21598
21599 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
21600
21601 * xfaces.c (face_at_buffer_position_no_overlays): New function.
21602
21603 * xdisp.c (handle_stop): Move some code out of loop.
21604
216052007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21606
21607 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
21608 Fix conversion from Lisp object to ATSUFontID.
21609
216102007-11-09 Jason Rumney <jasonr@gnu.org>
21611
21612 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
21613
216142007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21615
21616 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
21617 Don't assume regions are aligned to page boundary.
21618 (print_load_command_name): Add LC_UUID if defined.
21619
216202007-11-09 Richard Stallman <rms@gnu.org>
21621
21622 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
21623
216242007-11-07 Jason Rumney <jasonr@gnu.org>
21625
21626 * s/windows95.h: Remove.
21627
216282007-11-06 Jan Djärv <jan.h.d@swipnet.se>
21629
21630 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
21631 abort with a message on unhandled store_type values.
21632
216332007-11-01 Jan Djärv <jan.h.d@swipnet.se>
21634
21635 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
21636 Remove HAVE_X11R5 and HAVE_X11R4.
21637
216382007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
21639
21640 * Makefile.in: Remove references to sunfns.c and sunfns.o.
21641
216422007-11-01 Johan Bockgård <bojohan@gnu.org>
21643
21644 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
21645 Don't set s->stippled_p here, since it has already been set by
21646 x_set_glyph_string_gc from x_draw_glyph_string.
21647
216482007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
21649
21650 * sunfns.c: Remove file.
21651
21652 * m/sun386.h:
21653 * m/sun2.h:
21654 * m/sparc.h: Remove Sun windows code.
21655
216562007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
21657
21658 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
21659 (init_keyboard): Set current_kboard's window-system to nil.
21660 (tty_read_avail_input): Typo.
21661 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
21662
216632007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
21664
21665 * s/usg5-4.h:
21666 * s/usg5-3.h:
21667 * s/ptx.h:
21668 * m/is386.h:
21669 * m/ibmps2-aix.h:
21670 * Makefile.in: Remove all mentions of X10.
21671
21672 * dispnew.c (syms_of_display): Don't mention version 10.
21673
216742007-10-28 Juanma Barranquero <lekktu@gmail.com>
21675
21676 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
21677 ($(BLD)/abbrev.$(O)): Remove.
21678
216792007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
21680
21681 Rewrite abbrev.c in Elisp.
21682 * image.c (Qcount): Don't declare as extern.
21683 (syms_of_image): Initialize and staticpro `Qcount'.
21684 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
21685 * emacs.c (main): Don't call syms_of_abbrev.
21686 * Makefile.in (obj): Remove abbrev.o.
21687 (abbrev.o): Remove.
21688 * abbrev.c: Remove.
21689
216902007-10-26 Martin Rudalics <rudalics@gmx.at>
21691
21692 * window.c (window_min_size_2): Don't count header-line.
21693
216942007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
21695
21696 * frame.h (struct frame): Move all bit fields after the first bit
21697 field to take advantage of the available space. Group all the
21698 chars together to reduce wasted space due to padding.
21699
217002007-10-26 Juanma Barranquero <lekktu@gmail.com>
21701
21702 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
21703
21704 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
21705 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
21706 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
21707 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
21708 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
21709 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
21710 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
21711 (last_marked, mark_object_loop_halt): Make static.
21712
21713 * frame.c (syms_of_frame) <delete-frame-functions>:
21714 Fix typo in docstring.
21715
217162007-10-25 Juanma Barranquero <lekktu@gmail.com>
21717
21718 * w32.c (init_environment): Fix tiny memory leak.
21719 (w32_get_resource): Remove unused variable `ok'.
21720
217212007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
21722
21723 Make `window-system' into a keyboard-local variable (rather than
21724 frame-local as done originally by multi-tty).
21725
21726 * keyboard.h (struct kboard): Add Vwindow_system.
21727 * keyboard.c (init_kboard): Set a default for Vwindow_system.
21728 (mark_kboards): Mark Vwindow_system.
21729
21730 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
21731 (init_display): Don't set the obsolete `window-system' frame-param.
21732
21733 * xterm.c (x_term_init):
21734 * w32term.c (w32_create_terminal):
21735 * term.c (init_tty): Set Vwindow_system.
21736 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
21737 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
21738
21739 * xfns.c (Fx_create_frame, x_create_tip_frame):
21740 * w32fns.c (Fx_create_frame, x_create_tip_frame):
21741 * macfns.c (Fx_create_frame):
21742 Don't set the obsolete `window-system' frame-param.
21743
21744 * frame.h (Qwindow_system): Remove.
21745 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
21746 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
21747
217482007-10-24 Richard Stallman <rms@gnu.org>
21749
21750 * frame.c (x_figure_window_size): For fullscreen case,
21751 set USPosition | PPosition without clobbering rest of window_prompting.
21752
21753 * keyboard.c (Fcurrent_idle_time): Doc fix.
21754
21755 * print.c (Fwith_output_to_temp_buffer): Doc fix.
21756
217572007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
21758
21759 * process.c (unwind_request_sigio): Only define if __ultrix__.
21760
21761 * callproc.c (child_setup): Remove spurious *.
21762
21763 * lisp.h (Fget_text_property): Declare.
21764 (have_menus_p): Declare it here rather than in sys-dep header files.
21765 * macterm.h (have_menus_p):
21766 * msdos.h (have_menus_p):
21767 * xterm.h (have_menus_p): Remove.
21768
21769 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
21770 (Fmake_variable_frame_local): Just check the variable's const-ness
21771 rather than checking nil or t.
21772
217732007-10-22 Jason Rumney <jasonr@gnu.org>
21774
21775 * w32fns.c: Include math.h.
21776 (w32_abort): Declaration moved to nt/config.nt.
21777
21778 * s/ms-w32.h (HAVE_STDLIB_H): Define.
21779 (abort): Redefinition moved to nt/config.nt.
21780
21781 * m/windowsnt.h: Remove.
21782
217832007-10-22 Juanma Barranquero <lekktu@gmail.com>
21784
21785 * emacs.c (Fdump_emacs): Fix typo in message.
21786 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
21787 <installation-directory>: Reflow docstring.
21788
217892007-10-22 Juri Linkov <juri@jurta.org>
21790
21791 * minibuf.c: Allow minibuffer default to be a list of default values.
21792 With empty input use the first element of this list as returned default.
21793 (string_to_object)
21794 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
21795 (read_minibuf): If defalt is cons, set histstring to its car.
21796 (Fread_string): If default_value is cons, set val to its car.
21797 (Fread_buffer): If def is cons, use its car.
21798 (Fcompleting_read): If defalt is cons, set val to its car.
21799
218002007-10-21 Michael Albinus <michael.albinus@gmx.de>
21801
21802 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
21803
218042007-10-20 Juanma Barranquero <lekktu@gmail.com>
21805
21806 * doc.c (Fdocumentation): Check for advice in all cases.
21807
218082007-10-19 Chong Yidong <cyd@stupidchicken.com>
21809
21810 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
21811
218122007-10-19 Richard Stallman <rms@gnu.org>
21813
21814 * doc.c (Fdocumentation): Check for and handle an advised function.
21815
218162007-10-19 Juanma Barranquero <lekktu@gmail.com>
21817
21818 * process.c (Fset_process_filter): Doc fix.
21819
218202007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
21821
21822 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
21823 which caused key-translation-map to applied repeatedly (thus breaking
21824 double-mode).
21825
218262007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21827
21828 * xselect.c (x_own_selection, x_handle_selection_clear)
21829 (x_clear_frame_selections):
21830 * w32menu.c (list_of_panes, list_of_items):
21831 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
21832 * textprop.c (validate_plist, interval_has_all_properties)
21833 (interval_has_some_properties, interval_has_some_properties_list)
21834 (add_properties, text_property_list):
21835 * process.c (Fget_buffer_process, list_processes_1, status_notify):
21836 * minibuf.c (Fassoc_string):
21837 * macselect.c (x_own_selection, x_clear_frame_selections)
21838 (Fx_disown_selection_internal):
21839 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
21840 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
21841
218422007-10-17 Chong Yidong <cyd@stupidchicken.com>
21843
21844 * process.c: Link to libs for calling res_init() if available.
21845 (Fmake_network_process): Call res_init() before getaddrinfo or
21846 gethostbyname, if possible.
21847
218482007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21849
21850 * lread.c (read1): Set pvectype for char_tables.
21851
21852 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
21853 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
21854 Add type checks.
21855 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
21856
21857 * alloc.c (free_misc): Use XMISCTYPE.
21858 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
21859
218602007-10-17 Glenn Morris <rgm@gnu.org>
21861
21862 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
21863 (syms_of_minibuf): Add Qcompletion_ignore_case.
21864 * dired.c (Qcompletion_ignore_case): Change to external.
21865 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
21866 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
21867 (Fread_file_name): Use it rather than intern'ing.
21868
21869 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
21870 (Fread_coding_system): Ignore case of user input.
21871
218722007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21873
21874 * xdisp.c (handle_display_prop): Ignore display specs after
21875 replacing one when string text is being replaced.
21876 (handle_single_display_spec): Pretend as if characters with display
21877 property haven't been consumed only when buffer text is being replaced.
21878
218792007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
21880
21881 * xfns.c (Fx_create_frame, Fx_display_list):
21882 * window.c (window_fixed_size_p, enlarge_window)
21883 (shrink_window_lowest_first):
21884 * macterm.c (init_font_name_table):
21885 * macfns.c (Fx_create_frame, Fx_display_list):
21886 * lread.c (close_load_descs):
21887 * keyboard.c (read_char_x_menu_prompt):
21888 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
21889 * coding.c (code_convert_region_unwind): Test the type of an object
21890 rather than just !NILP before extracting data from it.
21891
21892 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
21893
21894 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
21895 (XMISCANY): New macro.
21896 (XMISCTYPE): Use it.
21897 (struct Lisp_Misc_Any): New type.
21898 (union Lisp_Misc): Use it.
21899 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
21900 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
21901 (find_symbol_value, set_internal, default_value, Fset_default)
21902 (Fmake_variable_buffer_local, Fmake_local_variable)
21903 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
21904 (Flocal_variable_if_set_p, Fvariable_binding_locus):
21905 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
21906 * alloc.c (allocate_buffer): Set the size and tag.
21907 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
21908 Use XMISCANY.
21909 (die): Follow the GNU convention for error messages.
21910 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
21911 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
21912 tag any more.
21913 (set_buffer_internal_1):
21914 * frame.c (store_frame_param):
21915 * eval.c (specbind):
21916 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
21917
21918 * doc.c (Fsnarf_documentation): Simplify.
21919
219202007-10-14 Juanma Barranquero <lekktu@gmail.com>
21921
21922 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
21923 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
21924
219252007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
21926
21927 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
21928
219292007-10-14 Juanma Barranquero <lekktu@gmail.com>
21930
21931 * eval.c (do_autoload): Don't save autoloads.
21932
21933 * data.c (Ffset): Save autoload of the function being set.
21934
219352007-10-07 John Paul Wallington <jpw@pobox.com>
21936
21937 * xfns.c (x_create_tip_frame): Set the `display-type' frame
21938 parameter before setting up faces.
21939
219402007-10-13 Eli Zaretskii <eliz@gnu.org>
21941
21942 * ccl.c (Fregister_code_conversion_map):
21943 * keyboard.c (append_tool_bar_item): Reformat last change.
21944
21945 * lisp.h (eabs): Rename from `abs'. All callers changed.
21946
219472007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
21948
21949 * buffer.c (add_overlay_mod_hooklist):
21950 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
21951 * fontset.c (make_fontset):
21952 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
21953 (append_tool_bar_item):
21954 * macmenu.c (grow_menu_items):
21955 * w32menu.c (grow_menu_items):
21956 * xmenu.c (grow_menu_items): Use larger_vector.
21957
219582007-10-13 Eli Zaretskii <eliz@gnu.org>
21959
21960 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
21961 selected frame'' on MSDOS).
21962
219632007-10-12 Martin Rudalics <rudalics@gmx.at>
21964
21965 * frame.c (Qexplicit_name): New variable.
21966 (x_report_frame_params): Report it in parameter alist.
21967 (syms_of_frame): Intern and staticpro it.
21968
219692007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
21970
21971 * macfns.c (x_create_tip_frame): Set terminal for frame.
21972
219732007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
21974
21975 * frame.c (Qenvironment): Remove.
21976 (syms_of_frame) <Qenvironment>: Don't initialize.
21977 (Fdelete_frame): Don't treat the `environment' param specially.
21978 * frame.h (Qenvironment): Don't declare.
21979 * callproc.c (set_initial_environment): Don't set unused frame param.
21980
21981 * frame.c (Fframe_with_environment): Remove.
21982 (syms_of_frame) <Sframe_with_environment>: Don't declare.
21983
21984 * lisp.h (Fframe_with_environment): Don't declare.
21985
219862007-10-10 Juanma Barranquero <lekktu@gmail.com>
21987
21988 * indent.c (indent_tabs_mode, last_known_column)
21989 (last_known_column_modified): Make static.
21990 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
21991
219922007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
21993
21994 * puresize.h (BASE_PURESIZE): Increase to 1170000.
21995
219962007-10-09 Jason Rumney <jasonr@gnu.org>
21997
21998 * w32term.c (x_set_window_size): Disable code that attempts to tell
21999 Lisp code about a size change before it actually happens.
22000
220012007-10-09 Richard Stallman <rms@gnu.org>
22002
22003 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
22004 return HANDLED_RETURN.
22005
220062007-10-08 Martin Rudalics <rudalics@gmx.at>
22007
22008 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
22009 when there's an unread command event.
22010
22011 * frame.c (focus_follows_mouse): Move here from frame.el to allow
22012 window autoselection act appropriately when leaving selected frame.
22013 (syms_of_frame): Initialize focus_follows_mouse.
22014 * frame.h (focus_follows_mouse): Extern it.
22015 * macterm.c (XTread_socket): When focus_follows_mouse is nil
22016 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
22017 * msdos.c (dos_rawgetc): Likewise.
22018 * w32term.c (w32_read_socket): Likewise.
22019 * xterm.c (handle_one_xevent): Likewise.
22020 * xdisp.c (syms_of_xdisp): In doc-string of
22021 mouse-autoselect-window mention focus-follows-mouse.
22022
220232007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22024
22025 * macterm.c (mac_load_query_font): Fix missing return value.
22026 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
22027 Add BLOCK_INPUT.
22028
220292007-10-08 Richard Stallman <rms@gnu.org>
22030
22031 * xdisp.c (get_window_cursor_type): Implement documented behavior
22032 for cursor-in-non-selected-windows = t.
22033
220342007-10-08 Jason Rumney <jasonr@gnu.org>
22035
22036 * w32.c (w32_get_resource): Always close registry keys.
22037
220382007-10-08 Jason Rumney <jasonr@gnu.org>
22039
22040 * makefile.w32-in (LIBS): Add COMCTL32.
22041
22042 * w32fns.c (globals_of_w32fns): Init common controls.
22043
220442007-10-08 Richard Stallman <rms@gnu.org>
22045
22046 * image.c (our_memory_buffer): Rename from omfib_buffer.
22047
220482007-10-08 Richard Stallman <rms@gnu.org>
22049
22050 * buffer.c (Foverlays_at): Doc fix.
22051
220522007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
22053
22054 * fns.c (Fplist_put): Preserve uneven tail data.
22055
220562007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
22057
22058 * termhooks.h (enum event_kind): Remove trailing comma.
22059
22060 * frame.h (enum): Remove trailing comma.
22061
220622007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
22063
22064 * w32proc.c (delete_child): Don't terminate threads of zombies.
22065
220662007-10-08 Martin Rudalics <rudalics@gmx.at>
22067
22068 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
22069
22070 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
22071 last-repeatable-command.
22072 (init_kboard): Initialize Vlast_repeatable_command.
22073 (command_loop_1): Set it to real_this_command unless that was
22074 bound to an input event.
22075 (mark_kboards): Mark it.
22076
220772007-10-08 Richard Stallman <rms@gnu.org>
22078
22079 * eval.c (condition-case): Doc fix.
22080
220812007-10-08 Masatake YAMATO <jet@gyve.org>
22082
22083 * xfaces.c (tty_supports_face_attributes_p): Fix code
22084 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
22085 was copied and not edited.
22086
220872007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
22088
22089 Add new `input-decode-map' keymap and use it for terminal
22090 escape sequences.
22091 * keyboard.h (struct kboard): Add Vinput_decode_map.
22092 Remove Vlocal_key_translation_map.
22093 * keyboard.c (read_key_sequence): Add support for input-decode-map.
22094 (init_kboard): Init input-decode-map.
22095 Replace local-key-translation-map back with key-translation-map.
22096 (syms_of_keyboard): Declare input-decode-map.
22097 Remove local-key-translation-map. Update docstrings.
22098 (mark_kboards): Mark Vinput_decode_map.
22099 Don't mark Vlocal_key_translation_map.
22100 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
22101 Replace local-key-translation-map back with key-translation-map.
22102 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
22103 Bind in input-decode-map rather than function-key-map.
22104
22105 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
22106 This was made redundant by the previous introduction of XSETPVECTYPE.
22107
221082007-10-09 Richard Stallman <rms@gnu.org>
22109
22110 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
22111
221122007-09-29 Richard Stallman <rms@gnu.org>
22113
22114 * eval.c (internal_condition_case_2, internal_condition_case_1)
22115 (internal_condition_case): Reenable abort if x_catching_errors ()
22116 to see if that really happens and why.
22117
221182007-10-06 Andreas Schwab <schwab@suse.de>
22119
22120 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
22121
221222007-10-04 Juanma Barranquero <lekktu@gmail.com>
22123
22124 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
22125
221262007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
22127
22128 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
22129
221302007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
22131
22132 * window.h (struct window):
22133 * window.c (struct save_window_data, struct saved_window):
22134 * termhooks.h (struct terminal):
22135 * process.h (struct Lisp_Process):
22136 * frame.h (struct frame):
22137 * buffer.h (struct buffer):
22138 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
22139 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
22140 The size field of (pseudo)vectors is now unsigned.
22141 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
22142
22143 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
22144 Turn `count' into an integer.
22145
22146 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
22147 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
22148 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
22149 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
22150 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
22151
22152 * alloc.c (allocate_pseudovector): New fun.
22153 (ALLOCATE_PSEUDOVECTOR): New macro.
22154 (allocate_window, allocate_terminal, allocate_frame)
22155 (allocate_process): Use it.
22156 (mark_vectorlike): New function.
22157 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
22158 (mark_terminals): Use it.
22159 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
22160 (Fmake_byte_code): Use XSETPVECTYPE.
22161
22162 * frame.c (Fframe_parameters): Minor simplification.
22163
22164 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
22165
22166 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
22167
22168 * buffer.c (Fget_buffer_create, init_buffer_once):
22169 * lread.c (defsubr):
22170 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
22171
22172 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
22173 defined differently in the m/*.h files.
22174 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
22175 (XSETPVECTYPE): New macro.
22176 (XSETPSEUDOVECTOR): Use it.
22177
22178 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
22179 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
22180
22181 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
22182 * lread.c (defvar_per_buffer):
22183 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
22184
22185 * window.c (candidate_window_p): Only consider as visible frames that
22186 are on the same terminal.
22187
22188 * m/ibms390x.h (MARKBIT): Remove unused macro.
22189
221902007-10-01 Juanma Barranquero <lekktu@gmail.com>
22191
22192 * lread.c (Fload): Fix typo in docstring.
22193
221942007-10-01 Michaël Cadilhac <michael@cadilhac.name>
22195
22196 * floatfns.c (Fexpt): Manually check for overflows, so that a power
22197 of a non-zero value can't yield zero.
22198
221992007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
22200
22201 * term.c (term_clear_mouse_face, term_mouse_highlight)
22202 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
22203
22204 * print.c (safe_debug_print): Use XHASH.
22205
22206 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
22207 Lisp elements such as tags.
22208 (XHASH): New macro.
22209 (EQ): Use it.
22210 (SREF, SSET, STRING_COPYIN): Use SDATA.
22211 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
22212
22213 * alloc.c (mark_terminal): Remove left-over declaration.
22214 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
22215 (allocate_vectorlike): Remove type argument. Adjust callers.
22216 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
22217 Only handle the one remaining MEM_TYPE_VECTORLIKE.
22218
22219 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
22220 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
22221 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
22222 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
22223 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
22224 Use them.
22225
22226 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
22227 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
22228 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
22229
222302007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
22231
22232 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
22233 loaded by default.
22234
222352007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
22236
22237 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
22238 on this tty.
22239 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
22240
22241 * term.c (mouse_face_window): Rename from Qmouse_face_window.
22242 Update all users.
22243 (handle_one_term_event): Use Gpm_DrawPointer.
22244 (Fgpm_mouse_start): Rename from Fterm_open_connection.
22245 Signal errors instead of returning nil. Always return nil.
22246 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
22247 Make it a noop if gpm-mouse was not activated.
22248 (syms_of_term): Update names.
22249
222502007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
22251
22252 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
22253 (init_sys_modes): Check that gpm_tty is the current tty.
22254
22255 * alloc.c (allocate_terminal): Set the vector size to only count the
22256 lisp fields. Initialize those to nil.
22257 (mark_object): Don't treat terminals specially.
22258 (mark_terminal): Remove.
22259 (mark_terminals): Use mark_object instead.
22260
22261 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
22262 the GC to the beginning.
22263
22264 * indent.h:
22265 * indent.c: Use EMACS_INT for ints coming from Elisp data.
22266
22267 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
22268
222692007-09-25 Jason Rumney <jasonr@gnu.org>
22270
22271 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
22272
22273 * w32console.c (create_w32cons_output): Remove.
22274
22275 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
22276
22277 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
22278 (reset_sys_modes): Use reset_terminal_modes_hook.
22279
222802007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
22281
22282 * eval.c (do_autoload): Don't output any message.
22283
222842007-09-24 Juri Linkov <juri@jurta.org>
22285
22286 * emacs.c (standard_args): Change priority of "--no-splash"
22287 from 40 to 3. Add "--no-desktop" with the same priority.
22288
222892007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
22290
22291 * alloc.c (gc_sweep): Check cons cell mark bits word by word
22292 and optimize the case where they are all 1.
22293
222942007-09-23 Johannes Weiner <hannes@saeurebad.de>
22295
22296 * lisp.h (abs): Define if not defined.
22297 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
22298 Don't define `abs', since it's defined in lisp.h.
22299
223002007-09-22 Eli Zaretskii <eliz@gnu.org>
22301
22302 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
22303 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
22304 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
22305 (init_tty): Use DEV_TTY instead of "/dev/tty".
22306 [WINDOWSNT]: No need to protect from NAME arg being null.
22307
223082007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
22309
22310 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
22311 up the tty state.
22312
223132007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
22314
22315 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
22316 (gpm_tty): Change its type.
22317 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
22318 (gpm_tty): Change its type and initialize it.
22319 (Fterm_open_connection): Check the frame is indeed a tty.
22320 Use the new gpm_tty.
22321 (Fterm_close_connection): Use the new gpm_tty.
22322 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
22323 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
22324
223252007-09-21 Juanma Barranquero <lekktu@gmail.com>
22326
22327 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
22328 underline_color, to draw strike-through.
22329
223302007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
22331
22332 * lisp.h (allocate_terminal): Declare.
22333
22334 * window.c (candidate_window_p): Consider frames that are being placed
22335 by the user as somewhere between visible and iconified.
22336 (window_loop): Prefer windows on the current frame.
22337 (Fselect_window): Move the use of select-frame to the beginning so we
22338 can just delegate all the work (it'll call us back anyway).
22339
22340 * frame.c (Qdisplay_environment_variable):
22341 * frame.h (Qdisplay_environment_variable): Delete.
22342
22343 * .gdbinit (xbacktrace): Print the arg's address rather than the value
22344 of the first arg, since that value may be a union.
22345
22346 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
22347 parameter rather than Qdisplay_environment_variable. If all else
22348 fails, look for DISPLAY in initial-environment.
22349
223502007-09-21 Glenn Morris <rgm@gnu.org>
22351
22352 * Makefile.in (emacstool): Remove target.
22353 (lisp, shortlisp): Remove termdev.elc.
22354
223552007-09-21 Markus Triska <markus.triska@gmx.at>
22356
22357 * xterm.c (x_delete_display): Compile session management conditionally.
22358
223592007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
22360
22361 * callproc.c (getenv_internal_1): New function.
22362 (getenv_internal): Use it.
22363 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
22364
22365 * terminal.c (get_terminal): Don't accept ints to represent terminals.
22366 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
22367 (Fset_terminal_parameter): Work with dead terminals as well.
22368 (Fmodify_terminal_parameters): Remove.
22369
22370 * terminal.c (get_terminal): Handle terminals.
22371 Make sure the terminal returned is live.
22372 (create_terminal): Use allocate_terminal.
22373 (mark_terminals): Move to alloc.c.
22374 (delete_terminal): Use terminal->name as liveness status.
22375 NULL out fields after freeing their contents.
22376 Don't deallocate the object.
22377 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
22378 rather than an int.
22379 (Fterminal_live_p): Accept non-integer arguments.
22380 (Fterminal_list): Return terminal objects rather than an ints.
22381
22382 * alloc.c (enum mem_type): New member for `terminal' objects.
22383 (allocate_terminal): New function.
22384 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
22385 Handle terminals.
22386 (mark_terminal): New fun.
22387 (mark_terminals): Move from terminal.c.
22388
22389 * term.c (get_tty_terminal): Don't treat output_initial specially.
22390 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
22391 (delete_tty): Use terminal->name as liveness status.
22392
22393 * termhooks.h (struct terminal): Make it into a pseudovector.
22394 Remove `deleted' replaced by checking `name's nullness.
22395
22396 * print.c (print_object): Handle terminals.
22397
22398 * lisp.h (enum pvec_type): New `terminal' pseudovector.
22399 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
22400
22401 * frame.c (make_terminal_frame):
22402 * keyboard.c (tty_read_avail_input):
22403 * w32term.c (x_delete_terminal):
22404 * xfns.c (Fx_create_frame, x_create_tip_frame):
22405 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
22406
224072007-09-20 Glenn Morris <rgm@gnu.org>
22408
22409 * process.c (Fmake_network_process): Doc fix.
22410
224112007-09-19 Jason Rumney <jasonr@gnu.org>
22412
22413 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
22414
224152007-09-19 Michaël Cadilhac <michael@cadilhac.name>
22416
22417 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
22418 Fix a C warning regarding variable constness.
22419
22420 * xterm.c (handle_one_xevent): Fix a C warning.
22421
224222007-09-18 Jason Rumney <jasonr@gnu.org>
22423
22424 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
22425
224262007-09-17 Jan Djärv <jan.h.d@swipnet.se>
22427
22428 * gtkutil.c (gdpy_def): New variable.
22429 (xg_initialize): Initialize gdpy_def.
22430 (xg_display_close): If no other display exists, set gdpy_def to a
22431 new connection.
22432
224332007-09-16 Jan Djärv <jan.h.d@swipnet.se>
22434
22435 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
22436 when we have no file name for the icon.
22437 (xg_tool_bar_expose_callback): Remove.
22438 (xg_create_tool_bar): Don't connect expose signal to
22439 xg_tool_bar_expose_callback.
22440 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
22441
224422007-09-16 Andreas Schwab <schwab@suse.de>
22443
22444 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
22445 values instead of zapping them.
22446
224472007-09-14 Glenn Morris <rgm@gnu.org>
22448
22449 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
22450 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
22451 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
22452 scope and rename to omfib_buffer for clarity.
22453 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
22454
224552007-09-14 Kenichi Handa <handa@m17n.org>
22456
22457 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
22458
224592007-09-13 Jason Rumney <jasonr@gnu.org>
22460
22461 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
22462
22463 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
22464
22465 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
22466 (mac_term_init): Call here instead, passing rif.
22467
224682007-09-13 Glenn Morris <rgm@gnu.org>
22469
22470 * s/hpux.h: No longer define `static' as nothing.
22471
224722007-09-13 Johan Bockgård <bojohan@gnu.org>
22473
22474 * callint.c (Fcall_interactively): Remove unused var `fun'.
22475
224762007-09-12 Romain Francoise <romain@orebokech.com>
22477
22478 * window.c (prefer_window_split_horizontally, display_buffer):
22479 Revert 2007-09-08 change.
22480
224812007-09-12 Glenn Morris <rgm@gnu.org>
22482
22483 * alloca.c: Remove file.
22484 * Makefile.in (alloca): Do not undef.
22485 (allocaobj, alloca.o): Remove.
22486 (otherobj): Remove allocaobj.
22487 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
22488 * regex.c (C_ALLOCA): Remove all references and code that was only
22489 used when this was defined.
22490 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
22491 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
22492 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
22493
22494 * Makefile.in (SOURCES, unlock, relock): Delete.
22495
22496 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
22497 (menu_grab_callback): All uses changed.
22498
22499 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
22500 (x_reply_selection_request): All uses changed.
22501
225022007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
22503
22504 * lread.c (load_warn_old_style_backquotes): Change message to look
22505 better when it appears in the middle of byte-compiler messages.
22506
225072007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
22508
22509 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
22510
22511 * xterm.c (x_create_terminal): Add comment.
22512
22513 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
22514
225152007-09-10 Richard Stallman <rms@gnu.org>
22516
22517 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
22518
225192007-09-10 Michaël Cadilhac <michael@cadilhac.name>
22520
22521 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
22522 (DEFUN): Document `intspec', use it instead of `prompt'.
22523
22524 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
22525
22526 * data.c (Finteractive_form): If the interactive specification starts
22527 with a `(', use it as a Lisp form.
22528
22529 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
22530 name and file modes.
22531
22532 * callint.c (Fcall_interactively): Comment fixes.
22533
225342007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
22535
22536 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
22537 and compiled functions.
22538
225392007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
22540
22541 * window.c (prefer_window_split_horizontally): New variable.
22542 (display_buffer): Consider splitting window horizontally depending
22543 on prefer_window_split_horizontally.
22544
225452007-09-08 Eli Zaretskii <eliz@gnu.org>
22546
22547 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
22548
225492007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
22550
22551 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
22552
22553 * frame.c (x_set_frame_parameters): Check number is positive before
22554 using XFASTINT.
22555
22556 * window.c (freeze_window_start): Don't presume selected_window holds
22557 a window object.
22558 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
22559
225602007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
22561
22562 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
22563
225642007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
22565
22566 * window.c (Vsplit_window_preferred_function): New var.
22567 (Fdisplay_buffer): Use it.
22568 (syms_of_window): Export, and initialize it.
22569
225702007-09-06 Pixel <pixel@mandriva.com> (tiny change)
22571
22572 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
22573
225742007-09-06 Glenn Morris <rgm@gnu.org>
22575
22576 * gtkutil.c (menu_grab_callback) <cnt>:
22577 * xselect.c (x_reply_selection_request) <cnt>: Move static
22578 variable to file scope.
22579
225802007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
22581
22582 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
22583 consistent values of selected_frame and selected_window.
22584
225852007-09-04 Jason Rumney <jasonr@gnu.org>
22586
22587 * w32console.c (initialize_w32_display): Zero unused hooks.
22588
225892007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
22590
22591 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
22592 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
22593
225942007-09-04 Jason Rumney <jasonr@gnu.org>
22595
22596 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
22597 in w32console.c. Set up input. Remove XXX comments that have been
22598 confirmed as correct.
22599
22600 * s/ms-w32.h (MULTI_KBOARD): Define.
22601
22602 * w32console.c (one_and_only_w32cons): Remove.
22603 (initialize_w32_display): Take terminal argument.
22604
22605 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
22606 initialize_w32_display.
22607 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
22608
22609 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
22610
22611 * keyboard.c (discard_mouse_events): Discard it.
22612 (make_lispy_event): Translate it to a lisp event.
22613 (lispy_wheel_names): Add wheel-left and right events.
22614 (syms_of_keyboard): Enlarge wheel_syms.
22615
22616 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
22617 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
22618
22619 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
22620
22621 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
22622 from WM_MOUSEHWHEEL.
22623 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
22624
22625 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
22626 terminal.
22627
22628 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
22629 keyboard for the terminal.
22630
226312007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
22632
22633 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
22634 (Vresume_tty_hook): Rename from Vresume_tty_functions.
22635 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
22636 and resume-tty-function to resume-tty-hook.
22637 (Fsuspend_tty, Fresume_tty): Use new names.
22638
226392007-09-02 Jan Djärv <jan.h.d@swipnet.se>
22640
22641 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
22642 if it starts with "n:".
22643
226442007-08-31 Jan Djärv <jan.h.d@swipnet.se>
22645
22646 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
22647
226482007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
22649
22650 * frame.h:
22651 * frame.c (Qterm_environment_variable): Remove.
22652 (syms_of_frame): Don't init and staticpro it.
22653
22654 * callproc.c (getenv_internal): Remove special case for $TERM.
22655
22656 * callproc.c (Vinitial_environment): New variable.
22657 (set_initial_environment): Initialize it.
22658 (syms_of_callproc): Declare it.
22659 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
22660 TERM under which a process runs is never related to the TERM in which
22661 Emacs is running.
22662
226632007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
22664
22665 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
22666 * s/darwin.h: ... do it here.
22667
226682007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
22669
22670 * lisp.h (set_initial_environment): Rename from set_global_environment.
22671
22672 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
22673 removed by mistake on the multi-tty branch.
22674
22675 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
22676 (Fmodify_frame_parameters): Return a value.
22677
22678 * image.c (png_load): Comment-out var only used in commented-out code.
22679
22680 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
22681 before passing it to mark_object.
22682
22683 * xfaces.c (internal_resolve_face_name): Return a value.
22684 (internal_resolve_face_name, resolve_face_name_error): Comment out.
22685
22686 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
22687 (x_icon): Comment-out var only used in commented-out code.
22688
226892007-08-29 Romain Francoise <romain@orebokech.com>
22690
22691 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
22692 QUIT hasn't been provided.
22693
226942007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
22695
22696 * callproc.c (child_setup, getenv_internal): Use the
22697 display-environment-variable and term-environment-variable frame params.
22698 (set_initial_environment): Initialise Vprocess_environment.
22699
22700 * config.in: Disable multi-keyboard support on a mac.
22701
22702 * frame.c (Qterm_environment_variable)
22703 (Qdisplay_environment_variable): New variables.
22704 (syms_of_frame): Intern and staticpro them.
22705 (Fmake_terminal_frame): Disable output method test.
22706
22707 * frame.h: Declare them here.
22708
22709 * macfns.c (x_set_mouse_color): Get rif from the frame.
22710 (x_set_tool_bar_lines): Don't use updating_frame.
22711 (mac_window): Add 2 new parameters for consistency with other systems.
22712 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
22713 frame parameters following what is done in X11 and w32. Don't use
22714 FRAME_MAC_DISPLAY_INFO.
22715 (Fx_open_connection, start_hourglass): Remove window-system check.
22716 (x_create_tip_frame): Get the keyboard from the terminal.
22717
22718 * macmenu.c: Reorder includes.
22719 (Fx_popup_menu): Use terminal specific mouse_position_hook.
22720
22721 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
22722 terminal parameter.
22723 (x_clear_frame): Add a frame parameter.
22724 (note_mouse_movement): Get rif from the frame.
22725 (mac_term_init): Initialize the terminal.
22726 (mac_initialize): Make static and move terminal initialization ...
22727 (mac_create_terminal): ... to this new function.
22728
22729 * macterm.h (struct mac_display_info): Add terminal.
22730 (mac_initialize): Delete declaration.
22731
22732 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
22733
22734 * sysdep.c: Comment out text after #endif.
22735
22736 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
22737 is defined. Better initialize ttys in windows. Use terminal
22738 specific mouse_position_hook.
22739
22740 * termhooks.h (union display_info): Add mac_display_info.
22741
22742 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
22743 Set the default minibuffer frame, window_system and the rest of the
22744 frame parameters following what is done in X11.
22745
22746 * w32term.c (w32_initialize): Make static.
22747
22748 * xselect.c (x_handle_selection_clear): Only access
22749 terminal->kboard when MULTI_KBOARD is defined.
22750
22751 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
22752 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
22753
227542007-08-29 Jason Rumney <jasonr@gnu.org>
22755
22756 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
22757 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
22758
22759 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
22760 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
22761
22762 * keyboard.c (restore_kboard_configuration): Only define when
22763 MULTI_KBOARD defined.
22764
22765 * makefile.w32-in: Update dependancies from Makefile.in.
22766 (OBJ1): Add terminal.$(O)
22767
22768 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
22769 Don't define function body.
22770 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
22771
22772 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
22773
22774 * w32.c (request_sigio, unrequest_sigio): Remove.
22775
22776 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
22777 (w32con_clear_frame, w32con_clear_end_of_line)
22778 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
22779 (w32con_delete_glyphs, w32con_set_terminal_window)
22780 (scroll_line, w32_sys_ring_bell): Add frame arg.
22781 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
22782 Add terminal arg.
22783 (PICK_FRAME): Remove.
22784 (w32con_write_glyphs): Use frame specific terminal coding.
22785 (one_and_only_w32cons): New global variable.
22786 (initialize_w32_display): Use it for storing hooks.
22787 (create_w32cons_output): New function.
22788
22789 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
22790 arg a frame.
22791
22792 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
22793 Set window_system.
22794 (x_set_tool_bar_lines): Don't use updating_frame.
22795 (Fx_create_frame): Set terminal and ref count.
22796 (Fx_open_connection): Remove window-system check.
22797
22798 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
22799
22800 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
22801 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
22802 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
22803 Add frame arg.
22804 (x_delete_terminal, w32_create_terminal): New functions.
22805 (w32_term_init): Create a terminal.
22806 (w32_initialize): Move terminal specific initialization to
22807 w32_create_terminal.
22808
22809 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
22810 (w32_clear_rect, w32_clear_area): Use background from frame.
22811 (w32_display_info): Add terminal.
22812 (w32_sys_ring_bell, x_delete_display): Declare here.
22813
22814 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
22815
22816 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
22817
228182007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
22819
22820 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
22821 Fix get_named_tty calls for the controlling tty.
22822
228232007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
22824
194d44e7 22825 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
22826
228272007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
22828
22829 * term.c (tty_insert_glyphs): Add missing first parameter.
22830
228312007-08-29 Károly Lőrentey <karoly@lorentey.hu>
22832
22833 * buffer.c (Fbuffer_list, Fbury_buffer):
22834 Take frame->buried_buffer_list into account.
22835
22836 * cm.c (current_tty): New variable, for cmputc().
22837 (cmputc): Use it.
22838 (cmcheckmagic): Add tty parameter, look up terminal streams there.
22839 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
22840 (cmgoto): Add tty parameter. Pass it on to calccost().
22841 Use emacs_tputs() instead of tputs().
22842
22843 * cm.h (emacs_tputs): New macro to set current_tty, and then call
22844 tputs().
22845 (current_tty): New variable, for cmputc().
22846 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
22847
22848 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
22849 (internal_condition_case, internal_condition_case_1)
22850 (internal_condition_case_2): Don't abort when x_catching_errors.
22851
22852 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
22853 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
22854 prevent crashes caused by bogus longjmps in read_char.
22855
22856 * keymap.h (Fset_keymap_parent): Add EXFUN.
22857
22858 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
22859 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
22860 Remove redundant definition.
22861
22862 * macfns.c (x_set_mouse_color, x_make_gc):
22863 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22864
22865 * w32term.c (x_free_frame_resources):
22866 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22867 (w32_initialize): Use the accessor macros for terminal characteristics.
22868
22869 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
22870 Use the accessor macros for terminal characteristics.
22871 * msdos.c (internal_terminal_init): Use the accessor macros for
22872 terminal characteristics.
22873 (ScreenVisualBell, internal_terminal_init):
22874 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22875
22876 * termopts.h (no_redraw_on_reenter): Declare.
22877
22878 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
22879 (mark_terminals, mark_ttys): Declare.
22880 (Fgarbage_collect): Call them.
22881 (mark_object): Mark buried_buffer_list.
22882
22883 * prefix-args.c: Include stdlib.h for exit.
22884
22885 * syssignal.h: Add comment.
22886
22887 * indent.c: Include stdio.h.
22888
22889 * window.h (Vinitial_window_system): Declare.
22890 (Vwindow_system): Delete declaration.
22891
22892 * fontset.c (Finternal_char_font): Use FRAME_RIF.
22893
22894 * image.c (lookup_image): Don't initialize `c' until the xasserts
22895 have been run.
22896
22897 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
22898 FRAME_FOREGROUND_PIXEL.
22899
22900 * print.c (print_preprocess): Don't lose print_depth levels while
22901 iterating.
22902
22903 * widget.c (update_from_various_frame_slots):
22904 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22905
22906 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
22907 frames.
22908 (window_internal_height): Remove bogus make_number call.
22909 (init_window_once): Call make_terminal_frame with two zero parameters.
22910
22911 * fileio.c (Fread_file_name): Update comment.
22912
22913 * callint.c (Fcall_interactively):
22914 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
22915 Make sure it is correctly unwound.
22916
22917 * xsmfns.c (x_session_close): New function.
22918
22919 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
22920 Delete declarations.
22921
22922 * xterm.h: Remove declaration for x_fully_uncatch_errors.
22923 (x_output): Remove background_pixel and foreground_pixel fields.
22924 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
22925 (x_delete_device, x_session_close): Declare.
22926
22927 * lread.c: Include setjmp.h. Update declaration of `read_char'.
22928 (read_filtered_event): Call `read_char' with a local
22929 `wrong_kboard_jmpbuf'.
22930
22931 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
22932 Don't call single_kboard_state. Use FRAME_RIF.
22933
22934 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
22935 systems.
22936
22937 * lisp.h (set_process_environment): Rename to `set_global_environment'.
22938 (Fframe_with_environment, Fset_input_meta_mode)
22939 (Fset_quit_char): EXFUN.
22940 (x_create_device, tty_output, terminal, tty_display_info): Declare.
22941 (init_sys_modes, reset_sys_modes): Update prototypes.
22942 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
22943
22944 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
22945 Vlocal_key_translation_map, and Vkeyboard_translate_table.
22946 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
22947 Delete declarations.
22948 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
22949 (temporarily_switch_to_single_kboard, tty_read_avail_input):
22950 New declarations.
22951
22952 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
22953 already does that during init_display(). Call syms_of_keymap
22954 before syms_of_keyboard. Call `syms_of_terminal'.
22955 Call set_initial_environment, not set_process_environment.
22956 (shut_down_emacs): Call reset_all_sys_modes() instead of
22957 reset_sys_modes().
22958
22959 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
22960 (internal_resolve_face_name, resolve_face_name_error): New functions.
22961 (resolve_face_name): Protect against loops and errors thrown by Fget.
22962 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
22963 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
22964
22965 * scroll.c: Replace CURTTY() with local variables throughout the
22966 file (where applicable).
22967 (calculate_scrolling, calculate_direct_scrolling)
22968 (scrolling_1, scroll_cost): Use the accessor macros for terminal
22969 characteristics.
22970
22971 * keymap.c (Vfunction_key_map): Remove.
22972 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
22973 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
22974 (Vkey_translation_map): Remove.
22975 (syms_of_keymap): Remove DEFVAR for key-translation-map.
22976 (Fdescribe_buffer_bindings)
22977 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
22978 Update for terminal-local key-translation-map.
22979
22980 * Makefile.in (callproc.o): Update dependencies.
22981 (lisp, shortlisp): Add termdev.elc.
22982 (obj): Add terminal.o.
22983 (terminal.o): Add dependencies.
22984 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
22985 (data.o, fns.o): Add termhooks.h dependency.
22986 (SOME_MACHINE_LISP): Add dnd.elc.
22987 (minibuf.o): Fix typo.
22988 Update dependencies.
22989
22990 * data.c (do_symval_forwarding, store_symval_forwarding)
22991 (find_symbol_value): Use the selected frame's keyboard, not
22992 current_kboard.
22993
22994 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
22995 Vwindow_system.
22996
22997 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
22998 Fmenu_bar_open.
22999 (syms_of_xmenu): Update defsubr.
23000 (mouse_position_for_popup, Fx_popup_menu)
23001 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
23002 (set_frame_menubar, free_frame_menubar)
b97439ce 23003 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
23004 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
23005 an X frame.
23006
23007 * xselect.c (x_own_selection): Abort if not an X frame.
23008 (some_frame_on_display): Check if it is an X frame.
23009 (x_handle_selection_clear): Deal with MULTI_KBOARD.
23010
23011 * coding.c: Include frame.h and termhooks.h.
23012 (terminal_coding, keyboard_coding): Delete.
23013 (Fset_terminal_coding_system_internal)
23014 (Fset_keyboard_coding_system_internal)
23015 (Fkeyboard_coding_system)
23016 (Fterminal_coding_system): Add a terminal parameter.
23017 Get terminal_coding from the terminal.
23018 (init_coding_once): Don't call setup_coding_system here.
23019
23020 * dispextern.h (set_scroll_region, turn_off_insert)
23021 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
23022 (tty_clear_end_of_line, tty_setup_colors)
23023 (delete_tty, updating_frame)
23024 (produce_special_glyphs, produce_glyphs, write_glyphs)
23025 (insert_glyphs): Remove.
23026 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
23027 (tty_turn_off_highlight, get_tty_size): Add declaration.
23028 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
23029
23030 * frame.h (enum output_method): Add output_initial.
23031 (struct x_output): Delete.
23032 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
23033 Access foreground_pixel and background_pixel directly from the frame.
23034 (tty_display): Delete.
23035 (struct frame): Add buried_buffer_list, foreground_pixel,
23036 background_pixel and terminal. Delete kboard.
23037 (union output_data): Add tty.
23038 (FRAME_KBOARD): Get the kboard from the terminal.
23039 (FRAME_INITIAL_P): New macro.
23040 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
23041 (Qterm_environment_variable, Qdisplay_environment_variable)
23042 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
23043 New declarations.
23044
23045 * termchar.h (tty_output, tty_display_info): New structures.
23046 (tty_list): Declare.
23047 (FRAME_TTY, CURTTY): New macros.
23048 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
23049 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
23050 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
23051 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
23052
23053 * callproc.c: Include frame.h and termhooks.h, for terminal
23054 parameters.
23055 (add_env): New function.
23056 (child_setup): Use it.
23057 (child_setup, getenv_internal): Handle the new Vprocess_environment.
23058 (getenv_internal): Fix get_terminal_param call.
23059 (Fgetenv_internal, egetenv): Update doc.
23060 (syms_of_callproc): Initialize Vprocess_environment to nil.
23061 Register and initialize them. Remove obsolete defvars. Update doc
23062 strings.
23063 (child_setup): Handle Vlocal_environment_variables.
23064 (getenv_internal): Add terminal parameter.
23065 Handle Vlocal_environment_variables.
23066 (Fgetenv_internal): Add terminal parameter.
23067 (child_setup, getenv_internal, Fgetenv_internal): Store the local
23068 environment in a frame (not terminal) parameter. Update doc strings.
23069 (set_initial_environment): Rename from set_global_environment.
23070 Store Emacs environment in initial frame parameter.
23071
23072 * xdisp.c (redisplay_internal): Update references to
23073 `previous_terminal_frame'.
23074 (display_mode_line, Fformat_mode_line): Replace calls to
23075 `push_frame_kboard' with `push_kboard'.
23076 (get_glyph_string_clip_rects): Add extra parentheses and
23077 braces to prevent compiler warnings.
23078 (calc_pixel_width_or_height): Add xassert to check that the
23079 frame is alive. Don't call `lookup_image' on a termcap frame.
23080 (message2_nolog, message3_nolog, redisplay_internal)
23081 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
23082 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
23083 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
23084 (Fx_display_pixel_width, Fx_display_pixel_height)
23085 (Fx_display_planes, Fx_display_color_cells)
23086 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
23087 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
23088 (Fx_display_backing_store, Fx_display_visual_class)
23089 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
23090 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
23091
23092 * xfns.c (x_set_foreground_color x_set_background_color)
23093 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
23094 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23095 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
23096 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
23097 terminal that is being deleted.
23098 (Fx_create_frame): Use `store_frame_param' to set `window-system'
23099 frame parameter, and make sure it overrides any user-supplied setting.
23100 (Fx_close_connection, Fx_synchronize): Unify argument names with
23101 the rest of the DEFUNs.
23102
23103 * dispnew.c (Fsend_string_to_terminal): Update call to
23104 `get_tty_terminal'.
23105 (Fredraw_frame, Fsend_string_to_terminal)
23106 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
23107 FRAME_TERMCAP_P and FRAME_TTY.
23108 (window_change_signal): Don't believe width/height values that are
23109 impossibly small.
23110 (Vinitial_window_system): Rename from Vwindow_system.
23111 (termscript, Wcm, rif): Delete.
23112
23113 * termhooks.h (struct terminal): New struct containing the
23114 previously global text display hooks and new members NAME,
23115 DELETED and PARAM_ALIST.
23116 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
23117 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
23118 (FRAME_RIF): New macros.
23119 (get_terminal_param, get_device): New declarations.
23120 (termscript): Delete declaration.
23121
23122 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
23123 (XTflash, x_free_frame_resources, x_scroll_bar_create)
23124 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
23125 FRAME_FOREGROUND_PIXEL.
23126 (x_fully_uncatch_errors): Disable definition.
23127 (x_scroll_bar_expose): Fix reference to foreground pixel.
23128 (XTread_socket): Disable loop on all X displays.
23129 (x_delete_terminal): Don't set terminal->deleted and let
23130 delete_terminal delete the frames on the terminal.
23131 (x_delete_display): Doc update to reflect changes in
23132 delete_terminal.
23133 (x_display_info) <terminal>: Move member earlier in the struct.
23134 (deleting_tty): Remove old variable.
23135 (Fsuspend_tty): Call clear_tty_hooks.
23136 (Fresume_tty, init_tty): Call set_tty_hooks.
23137 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
23138 errors on X frames.
23139 (x_catch_errors_unwind): Abort if x_error_message is NULL.
23140 (handle_one_xevent): Initialize `f' to NULL.
23141 (x_delete_terminal, x_create_terminal): New functions.
23142 (XTset_terminal_modes, XTreset_terminal_modes)
23143 (XTread_socket, x_connection_closed, x_term_init)
23144 (x_term_init, x_delete_display): Add terminal parameter.
23145 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
23146 X connections.
23147
23148 * frame.c: Include termchar.h.
23149 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
23150 (Qwindow_system, Qenvironment, Qterm_environment_variable)
23151 (Qdisplay_environment_variable): New vars.
23152 (Fframep): Deal with output_initial.
23153 (Fframe-live-p): Doc fix.
23154 (Fwindow-system): New function.
23155 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
23156 (make_terminal_frame): Don't create frames on a terminal that is
23157 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23158 (store_frame_param): Check for found_for_frame before calling XFRAME.
23159 (Fmake_terminal_frame): Handle NULL tty names correctly.
23160 (syms_of_frame): Enhance doc string of `default-frame-alist'.
23161 (Fdelete_frame): Remove unused variable `count'. Don't allow other
23162 frames to refer to a deleted frame in their 'environment parameter.
23163 (Fframe_with_environment): New function.
23164 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
23165 (get_future_frame_param): New function.
23166 (Fmake_terminal_frame): Use it.
23167 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
23168
23169 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
23170 * sysdep.c (reset_sys_modes): Update for renames.
23171
23172 * keyboard.c (tty_read_avail_input): New function.
23173 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
23174 (syms_of_keyboard): Defsubr them.
23175 (Fset_input_meta_mode, Fset_quit_char): New functions.
23176 (Fset_input_mode): Split to above functions.
23177 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
23178 parameter. Use it in call to `read_char'.
23179 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
23180 Set wrong_kboard_jmpbuf correctly in recursive calls.
23181 Use current_kboard to access Vkeyboard_translate_table.
23182 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
23183 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
23184 Update longjmp invocations. Remember the original current_kboard,
23185 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
23186 changes it. Comment out unnecessary calls to
23187 `record_single_kboard_state' and `any_kboard_state'.
23188 Update recursive calls.
23189 (wrong_kboard_jmpbuf): Remove global variable.
23190 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
23191 Handle deleted interrupted_kboards correctly; that is a legal
23192 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
23193 and read_char calls. Abort if interrupted_kboard died in read_char.
23194 (any_kboard_state, single_kboard_state)
23195 (push_frame_kboard): Remove function.
23196 (pop_kboard): Switch out of single_kboard mode if the kboard has
23197 been deleted. Remove unused variable. Help debugging by not
23198 changing current_kboard unnecessarily. Set current_kboard to the
23199 kboard of the selected frame when the stored kboard object has
23200 been deleted before pop_kboard.
23201 (temporarily_switch_to_single_kboard): Change first parameter to a
23202 frame pointer. Throw an error when caller wants to change kboards
23203 while in single_kboard mode. Don't push_kboard if we weren't in
23204 single kboard state. Don't pop_kboard if we popped into any
23205 kboard state.
23206 (restore_kboard_configuration): Abort if pop_kboard changed the
23207 kboard in single_kboard mode. Call pop_kboard only after setting
23208 up single_kboard mode.
23209 (Frecursive_edit): Switch to single_kboard mode only in nested
23210 command loops.
23211 (cmd_error, command_loop, command_loop_1, timer_check):
23212 Comment out unnecessary call to `any_kboard_state' and
23213 `record_single_kboard_state'.
23214 (delete_kboard): Exit single_kboard mode if we have just deleted
23215 that kboard. Use FRAME_KBOARD.
23216 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
23217 `fatal_error_signal'.
23218 (record_single_kboard_state): Don't push_kboard if we weren't in
23219 single kboard state. Don't pop_kboard if we popped into any
23220 kboard state.
23221 (push_frame_kboard): Rename to push_kboard.
23222 (kbd_buffer_get_event): Use FRAME_TERMINAL.
23223 (read_avail_input): Read input from all terminals.
23224 (mark_kboards): Also mark Vkeyboard_translate_table.
23225 (kbd_buffer_store_event_hold): Simplify condition.
23226 (read_key_sequence): Reinitialize fkey and keytran at each replay.
23227 (Vkeyboard_translate_table): Move to struct kboard.
23228 (init_kboard): Initialize Vkeyboard_translate_table.
23229 (syms_of_keyboard): Use DEFVAR_KBOARD to define
23230 Vkeyboard_translate_table. Update doc strings. Update docs of
23231 local-function-key-map and function-key-map.
23232
23233 * terminal.c: New file.
23234
23235 * term.c: Include errno.h.
23236 (Vring_bell_function, device_list, initial_device)
23237 (next_device_id, ring_bell, update_begin, update_end)
23238 (set_terminal_window, cursor_to, raw_cursor_to)
23239 (clear_to_end, clear_frame, clear_end_of_line)
23240 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
23241 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
23242 (syms_of_term): Move their initialization to terminal.c.
23243 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
23244 (Ftty_display_color_cells)
23245 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
23246 (clear_tty_hooks, set_tty_hooks)
23247 (init_tty, maybe_fatal): New functions.
23248 (Ftty_type): Return nil if terminal is not on a tty instead of
23249 throwing an error. Doc update.
23250 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
23251 Doc update. Initialize new subrs and variables.
23252 (delete_tty): Use terminal->deleted.
23253 (tty_set_terminal_modes): Rename from set_terminal_modes.
23254 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
23255 (set_scroll_region): Rename to `tty_set_scroll_region'.
23256 (turn_on_insert): Rename to `tty_turn_on_insert'.
23257 (turn_off_insert): Rename to `tty_turn_off_insert'.
23258 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
23259 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
23260 (toggle_highligh): Rename to `tty_toggle_highlight'.
23261 (background_highlight): Rename to `tty_background_highlight'.
23262 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
23263 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
23264 (tty_set_scroll_region, tty_background_highlight)
23265 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
23266 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
23267 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
23268 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
23269 Add static modifier.
23270 (tty_reset_terminal_modes, tty_set_terminal_window)
23271 (tty_set_scroll_region, tty_background_highlight)
23272 (tty_highlight_if_desired, tty_cursor_to)
23273 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
23274 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
23275 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
23276 renames.
23277
232782007-08-28 Jan Djärv <jan.h.d@swipnet.se>
23279
23280 * keyboard.c: Qrtl is new.
23281 (parse_tool_bar_item): Handle :rtl keyword.
23282 (syms_of_keyboard): Intern :rtl keyword.
23283
23284 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
23285
23286 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
23287 so no Lisp code is executed.
23288 (file_for_image, find_rtl_image): New functions.
23289 (xg_get_image_for_pixmap): Use file_for_image.
23290 (update_frame_tool_bar): If direction is RTL, use RTL image if
23291 defined. Use Gtk stock images if defined.
23292
232932007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23294
23295 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
23296 for nonexistent or zero-width glyph in composition glyph.
23297
232982007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
23299
23300 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
23301
23302 * xdisp.c (Finvisible_p): New function.
23303 (syms_of_xdisp): defsubr it.
23304
233052007-08-24 Juanma Barranquero <lekktu@gmail.com>
23306
23307 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
23308 Doc fixes.
23309
233102007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23311
23312 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
23313
233142007-08-24 Martin Rudalics <rudalics@gmx.at>
23315
23316 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
23317 whether decoding has modified buffer contents.
23318
233192007-08-24 Jason Rumney <jasonr@gnu.org>
23320
23321 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
23322 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
23323 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
23324 (init_svg_functions) [HAVE_NTGUI]: New function.
23325 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
23326 (svg_load_image): Use them.
23327 (svg_load_image) [HAVE_NTGUI]: Implement background.
23328
233292007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23330
23331 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
23332 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
23333 (LIBX): Remove @RSVG_LIBS@.
23334 (LIBES): Add $(RSVG_LIBS).
23335
23336 * image.c (svg_load_image): Blend with specified background if exists.
23337 Use IMAGE_BACKGROUND. Add Mac OS Support.
23338
23339 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
23340 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
23341 Remove macros.
23342 [MAC_OSX] (socket_callback): Do nothing.
23343 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
23344 ReceiveNextEvent.
23345 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
23346 socket_callback.
23347 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
23348
233492007-08-22 Glenn Morris <rgm@gnu.org>
23350
23351 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
23352
233532007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
23354
23355 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
23356
23357 * image.c: Add support for SVG images. Some additional comments
23358 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
23359 (svg_image_p): New function to test for SVG image.
23360 (svg_load): New function to load SVG image.
23361 (svg_load_image): New function, helper for svg_load.
23362 (Qsvg): New Lisp_object.
23363 (svg_keyword_index): New enum.
23364 (svg_format): New static `image_keyword' struct.
23365 (svg_type): New static `image_type' struct.
23366 (librsvg/rsvg.h): Include it.
23367
233682007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
23369
23370 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
23371
233722007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
23373
23374 * lread.c (Qold_style_backquotes): New var.
23375 (syms_of_lread): Init and staticpro it.
23376 (load_warn_old_style_backquotes): New fun.
23377 (Fload): Use them to warn about old style backquotes.
23378 (end_of_file_error, Fload): Remove unused vars.
23379
23380 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
23381
23382 * lread.c (Vold_style_backquotes): New var.
23383 (syms_of_lread): Init and export it to Elisp.
23384 (read1): Set it when we find an old-style (back)quote.
23385
233862007-08-22 Jason Rumney <jasonr@gnu.org>
23387
23388 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
23389
233902007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
23391
23392 * puresize.h (BASE_PURESIZE): Increase to 1140000.
23393
233942007-08-19 Richard Stallman <rms@gnu.org>
23395
23396 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
23397
233982007-08-19 Andreas Schwab <schwab@suse.de>
23399
23400 * alloc.c (pure): Round PURESIZE up.
23401
234022007-08-17 Jan Djärv <jan.h.d@swipnet.se>
23403
23404 * xterm.c (handle_one_xevent): Remove check that mouse click is in
23405 active frame.
23406
234072007-08-16 Richard Stallman <rms@gnu.org>
23408
23409 * eval.c (Fcommandp): Add parens to clarify.
23410
23411 * minibuf.c (Fall_completions): Use enum for type of table.
23412
23413 * emacs.c (USAGE2): Improve text.
23414
234152007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
23416
23417 * term.c (tty_default_color_capabilities): Declare static
23418 variables in file scope, to avoid HPUX compiler problem.
23419
234202007-08-13 Jan Djärv <jan.h.d@swipnet.se>
23421
23422 * gtkutil.c (update_frame_tool_bar): Use -1 as index
23423 to gtk_toolbar_insert.
23424
234252007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
23426
23427 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
23428
23429 * insdel.c (reset_var_on_error): New fun.
23430 (signal_before_change, signal_after_change):
23431 Use it to reset (after|before)-change-functions to nil in case of error.
23432 Bind inhibit-modification-hooks to t.
23433 Don't bind (after|before)-change-functions to nil while they run.
23434
234352007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23436
23437 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
23438 filling pixmap with stippled background.
23439
234402007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23441
23442 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
23443 Don't use invisible frame as parent window for repositioning.
23444
234452007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
23446
23447 * print.c (new_backquote_output): Rename from old_backquote_output.
23448 (print): Inverse its logic (according to its name) so as to match the
23449 behavior of new_backquote_flag in lread.c.
23450
234512007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23452
23453 * gmalloc.c (posix_memalign): New function.
23454
23455 * macterm.c (frame_highlight, frame_unhighlight): Don't call
23456 ActivateControl/DeactivateControl here.
23457 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
23458 frame-notice-user-settings is non-nil.
23459 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
23460 for kEventParamFMFontStyle.
23461 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
23462 mac_pass_command_to_system and mac_pass_control_to_system here.
23463 (XTread_socket): Call ActivateControl/DeactivateControl here.
23464 (XTread_socket) [TARGET_API_MAC_CARBON]:
23465 Check mac_pass_command_to_system and mac_pass_control_to_system here.
23466 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
23467 for window repositioning.
23468
234692007-08-08 Glenn Morris <rgm@gnu.org>
23470
23471 * Replace `iff' in doc-strings and comments.
23472
234732007-08-07 Chong Yidong <cyd@stupidchicken.com>
23474
23475 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
23476
234772007-08-07 Martin Rudalics <rudalics@gmx.at>
23478
23479 * fileio.c (Finsert_file_contents): Run format-decode and
23480 after_insert_file_functions on entire buffer when REPLACE is
23481 non-nil and inhibit modification_hooks and point_motion_hooks.
23482 For consistency, run after_insert_file_functions iff something
23483 got inserted. Move signal_after_change and update_compositions
23484 after code running after_insert_file_functions. Make sure that
23485 undo_list doesn't record intermediate steps of the decoding process.
23486
234872007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23488
23489 * emacs.c (main)
23490 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
23491 Call malloc_enable_thread on interactive startup.
23492
23493 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
23494 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
23495 [USE_PTHREAD]: Conditionalize with it.
23496 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
23497 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
23498 New functions.
23499
235002007-08-06 Chong Yidong <cyd@stupidchicken.com>
23501
23502 * xdisp.c (redisplay_window): When restoring original buffer
23503 position, make sure it is still valid.
23504
23505 * image.c (png_load): Ignore png-supplied background color.
23506
235072007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23508
23509 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
23510 Use kCFAbsoluteTimeIntervalSince1970.
23511
23512 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
23513 New variable.
23514 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
23515 event loop should be quit.
23516 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
23517 Quit dialog event loop if quit_dialog_event_loop is set.
23518
23519 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
23520 (Selection): New typedef. Use instead of ScrapRef.
23521 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
23522 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
23523 (mac_clear_selection): Rename from clear_scrap.
23524 (get_flavor_type_from_symbol): New argument SEL and subsume function of
23525 scrap_has_target_type. All uses changed.
23526 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
23527 (mac_selection_has_target_p): New functions.
23528 (mac_put_selection_value): Rename from put_scrap_string.
23529 (mac_get_selection_value): Rename from get_scrap_string.
23530 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
23531 (put_scrap_private_timestamp, scrap_has_target_type)
23532 (get_scrap_private_timestamp): Remove functions.
23533 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
23534 (x_own_selection, x_get_local_selection):
23535 Use mac_valid_selection_value_p.
23536 (x_own_selection): Don't use put_scrap_private_timestamp.
23537 Record OWNERSHIP-INFO into Vselection_alist instead.
23538 (x_get_local_selection): Don't check type if request is local.
23539 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
23540 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
23541
235422007-08-04 Jan Djärv <jan.h.d@swipnet.se>
23543
23544 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
23545 add comment explaining why.
23546
235472007-08-03 Richard Stallman <rms@gnu.org>
23548
23549 * fileio.c (Fvisited_file_modtime): Use make_time.
23550
235512007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
23552
23553 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
23554 build.
23555
235562007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
23557
23558 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
23559
235602007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
23561
23562 * puresize.h (BASE_PURESIZE): Increase to 1130000.
23563
235642007-07-30 Richard Stallman <rms@gnu.org>
23565
23566 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
23567
235682007-07-29 Jan Djärv <jan.h.d@swipnet.se>
23569
23570 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
23571
235722007-07-28 Nick Roberts <nickrob@snap.net.nz>
23573
23574 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
23575 remote default-directory.
23576
23577 * buffer.c (mode-line-format): Update doc string.
23578
235792007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23580
23581 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
23582 scroll bar gap.
23583 (x_scroll_bar_create): Set bar->fringe_extended_p.
23584 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
23585 on frame edge. Check fringe background extension. Don't clear
23586 extended fringe background area.
23587
23588 * w32term.h (struct scroll_bar): New member fringe_extended_p.
23589 (w32_fill_area): Enclose multiple statements with do ... while (0).
23590
23591 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
23592 Extend fringe background to scroll bar gap.
23593 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
23594 Set bar->fringe_extended_p.
23595 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
23596 Put leftmost/rightmost scroll bars on frame edge. Check fringe
23597 background extension. Don't clear extended fringe background area.
23598
23599 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
23600 New member fringe_extended_p.
23601
236022007-07-25 Glenn Morris <rgm@gnu.org>
23603
23604 * Relicense all FSF files to GPLv3 or later.
23605
23606 * COPYING: Switch to GPLv3.
23607
236082007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
23609
23610 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
23611
23612 * data.c (Finteractive_form): Check for the presence of an
23613 `interactive-form' symbol property more thoroughly.
23614
23615 * data.c (Finteractive_form): Use an `interactive-form' property if
23616 present, analogous to the function-documentation property.
23617
236182007-07-24 Jason Rumney <jasonr@gnu.org>
23619
23620 * w32fns.c (x_real_positions): Get real position from OS instead of
23621 calculating it.
23622
236232007-07-23 Jason Rumney <jasonr@gnu.org>
23624
23625 * filelock.c (current_lock_owner): Allow for @ sign in username.
23626
236272007-07-22 Nick Roberts <nickrob@snap.net.nz>
23628
23629 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
23630 remote default-directory.
23631
23632 * buffer.c (mode-line-format): Describe above case in doc string.
23633
236342007-07-20 Eli Zaretskii <eliz@gnu.org>
23635
23636 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
23637 Define if not defined.
23638
236392007-07-18 Jason Rumney <jasonr@gnu.org>
23640
23641 * w32proc.c (w32_executable_type): Handle 64 bit executables.
23642
236432007-07-18 Richard Stallman <rms@gnu.org>
23644
23645 * data.c (Fsetq_default): Doc fix.
23646
23647 * eval.c (Fsetq): Doc fix.
23648
236492007-07-18 Juanma Barranquero <lekktu@gmail.com>
23650
23651 * coding.c (Ffind_operation_coding_system):
23652 * eval.c (For, Fand): Doc fixes.
23653 Reported by Johan Bockgård.
23654
236552007-07-18 Jan Djärv <jan.h.d@swipnet.se>
23656
23657 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
23658
23659 * xterm.h: Declare x_ewmh_activate_frame.
23660
23661 * xterm.c (x_ewmh_activate_frame): New function.
23662 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
23663
236642007-07-17 Martin Rudalics <rudalics@gmx.at>
23665
23666 * window.c (Fdisplay_buffer): If largest or LRU window is the
23667 only window, split it even if it is not eligible for splitting.
23668 This restores the original behavior broken by the 2007-07-15
23669 change.
23670
236712007-07-17 Glenn Morris <rgm@gnu.org>
23672
23673 * abbrev.c (abbrev_check_chars): New function.
23674 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
23675 Call abbrev_check_chars to check abbrev characters are word
23676 constituents. Doc fix.
23677
236782007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
23679
23680 * process.c (Fstart_process, Fmake_network_process)
23681 (read_process_output): Fix up last changes.
23682
236832007-07-16 Eli Zaretskii <eliz@gnu.org>
23684
23685 * makefile.w32-in (clean): Don't delete *~.
23686
236872007-07-16 Andreas Schwab <schwab@suse.de>
23688
23689 * window.c (Fdisplay_buffer): Use NILP.
23690 (Fset_window_scroll_bars): Likewise.
23691
236922007-07-15 Martin Rudalics <rudalics@gmx.at>
23693
23694 * window.c (window_min_size_2): New function.
23695 (window_min_size_1, size_window, Fdisplay_buffer)
23696 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
23697 windows without mode- or header-lines when window-min-height is
23698 too small.
23699 (size_window): Reset nodelete_p after testing it, following an
23700 earlier note by Kim F. Storm.
23701 (display_buffer): Do not set split_height_threshold to twice the
23702 value of window_min_height to avoid changing the value of a
23703 customizable variable. Rather explicitly check whether the
23704 height of the window that shall be splitted is at least as large
23705 as split_height_threshold.
23706 (Fwindow_full_width_p): New defun.
23707 (syms_of_window): Defsubr it.
23708
23709 * window.h: Add EXFUN for Fwindow_full_width_p.
23710
237112007-07-14 Jason Rumney <jasonr@gnu.org>
23712
23713 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
23714
237152007-07-14 Richard Stallman <rms@gnu.org>
23716
23717 * eval.c (maybe_call_debugger): New function.
23718 (find_handler_clause): Use maybe_call_debugger.
23719 Call it when the handler says `debug'.
23720 Eliminate DEBUGGER_VALUE_PTR.
23721 (Fsignal): Eliminate debugger_value.
23722 (Qdebug): New variable.
23723 (syms_of_eval): Initialize it.
23724
237252007-07-14 Juanma Barranquero <lekktu@gmail.com>
23726
23727 * eval.c (Fprogn):
23728 * keyboard.c (Ftrack_mouse):
23729 * print.c (Fwith_output_to_temp_buffer):
23730 * window.c (Fsave_window_excursion): Doc fix.
23731
237322007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
23733
23734 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
23735
237362007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
23737
23738 * process.h (struct Lisp_Process): Turn slots infd, outfd,
23739 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
23740 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
23741 read_output_delay, and read_output_skip from Lisp_Objects to ints.
23742 Remove unused encoding_carryover.
23743 * process.c: Adjust all functions accordingly.
23744
237452007-07-12 Richard Stallman <rms@gnu.org>
23746
23747 * term.c: Include unistd.h only if HAVE_UNISTD_H.
23748
237492007-07-11 Jason Rumney <jasonr@gnu.org>
23750
23751 * makefile.w32-in (LIBS): Include OLE32.
23752
23753 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
23754 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
23755
237562007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
23757
23758 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
23759 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
23760 from a Lisp_Object into a bare pointer.
23761 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
23762 Adjust the code correspondingly.
23763
23764 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
23765
23766 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
23767 (term_show_mouse_face): Remove unused var `j'.
23768 (handle_one_term_event): Remove unused vars `i' and `j'.
23769 Don't cast return value of ttyname since it's not necessary.
23770
237712007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
23772
23773 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
23774 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
23775
23776 * fns.c (map_char_table): Use an array of int for `indices' rather than
23777 an array of Lisp_Objects (which are only ever integers anyway).
23778 (Fmap_char_table): Update caller.
23779 * lisp.h: Update prototype.
23780 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
23781 * fontset.c (Ffontset_info):
23782 * casetab.c (set_case_table): Update callers.
23783
23784 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
23785
23786 * keymap.c (struct accessible_keymaps_data)
23787 (struct where_is_internal_data): New structures.
23788 (accessible_keymaps_1, where_is_internal_1): Use them to change
23789 interface to adhere to the one used by map_keymap.
23790 (Faccessible_keymaps, where_is_internal): Use map_keymap.
23791 (accessible_keymaps_char_table, where_is_internal_2): Remove.
23792
23793 * keymap.h (map_keymap_function_t): More informative prototype.
23794
237952007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
23796
23797 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
23798 (looking_at_1): Don't change search_regs and last_thing_searched
23799 if `inhibit-changing-match-data' is non-nil.
23800 (string_match_1, search_buffer, set_search_regs): Likewise.
23801 (syms_of_search): Add Lisp level definition for
23802 `inhibit-changing-match-data' and set it to nil.
23803 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
23804 start and end of the match, instead of using values in search_regs.
23805
238062007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
23807
23808 * minibuf.c (Fcompleting_read): New value `confirm-only'
23809 for `require-match'.
23810
238112007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
23812
23813 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
23814 part of the 2007-06-27 change to syms_of_fileio.
23815
238162007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23817
23818 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
23819 Check WINDOWP before using XWINDOW. Consolidate return statements.
23820
238212007-06-27 Richard Stallman <rms@gnu.org>
23822
23823 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
23824
238252007-06-27 Juanma Barranquero <lekktu@gmail.com>
23826
23827 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
23828
238292007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23830
23831 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
23832 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
23833 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
23834 (_free_internal, memalign): Use them.
23835 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
23836 Initialize to PTHREAD_MUTEX_INITIALIZER.
23837 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
23838 (morecore_nolock): Rename from morecore. All uses changed.
23839 Use only nolock versions of internal allocation functions.
23840 (_malloc_internal_nolock, _realloc_internal_nolock)
23841 (_free_internal_nolock): New functions created from
23842 _malloc_internal, _realloc_internal, and _free_internal.
23843 (_malloc_internal, _realloc_internal, _free_internal): Use them.
23844 Copy hook value to automatic variable before its use.
23845 (memalign): Copy hook value to automatic variable before its use.
23846
238472007-06-26 Kenichi Handa <handa@m17n.org>
23848
23849 * coding.c (Ffind_operation_coding_system): Docstring improved.
23850 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
23851
238522007-06-25 David Kastrup <dak@gnu.org>
23853
23854 * keymap.c (Fcurrent_active_maps): Add `position' argument.
23855 (Fwhere_is_internal): Adjust call to `current-active-maps' to
23856 cater for additional parameter.
23857
23858 * keymap.h: Adjust number of parameters to `current-active-maps'.
23859
23860 * doc.c (Fsubstitute_command_keys): Adjust call of
23861 `current-active-maps'.
23862
238632007-06-25 David Kastrup <dak@gnu.org>
23864
23865 * callint.c (Fcall_interactively): Make the parsing of interactive
23866 specs somewhat more readable.
23867
238682007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23869
23870 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
23871 to scroll bar gap also when bitmap fills fringe. Draw only foreground
23872 if extended background has already been filled.
23873
238742007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23875
23876 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
23877 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
23878
23879 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
23880 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
23881 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
23882 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
23883 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
23884 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
23885 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
23886 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
23887 Run timers during dialog popup.
23888 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
23889
238902007-06-21 Jason Rumney <jasonr@gnu.org>
23891
23892 * image.c (convert_mono_to_color_image): Swap fore and background.
23893
238942007-06-20 Jason Rumney <jasonr@gnu.org>
23895
23896 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
23897 (w32_free_bdf_font): Unmap memory not handle.
23898
238992007-06-20 Sam Steingold <sds@gnu.org>
23900
23901 * gmalloc.c (__morecore): Fix the declaration to comply with the
23902 definition.
23903
239042007-06-20 Juanma Barranquero <lekktu@gmail.com>
23905
23906 * w32term.c (w32_delete_display): Remove leftover declaration.
23907 (w32_define_cursor, w32_initialize): Make static.
23908
23909 * w32.c (_wsa_errlist): Fix typo in error message.
23910 (init_environment): Ignore any environment variable from the
23911 registry having a null value.
23912
239132007-06-20 Glenn Morris <rgm@gnu.org>
23914
23915 * Makefile.in (LIBGIF): Default to -lgif.
23916
239172007-06-17 Jason Rumney <jasonr@gnu.org>
23918
23919 * w32menu.c (add_menu_item): Don't use multibyte string functions on
23920 unicode strings.
23921
239222007-06-16 Juanma Barranquero <lekktu@gmail.com>
23923
23924 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
23925 Fix typo in docstring.
23926
239272007-06-16 Eli Zaretskii <eliz@gnu.org>
23928
23929 * w32menu.c (add_menu_item): Escape `&' characters in menu items
23930 and their keybindings.
23931
239322007-06-15 Chong Yidong <cyd@stupidchicken.com>
23933
23934 * composite.c (update_compositions): Fix last fix.
23935
239362007-06-14 Jason Rumney <jasonr@gnu.org>
23937
23938 * w32.c (get_process_times_fn): New function pointer.
23939 (globals_of_w32): Intialize it if present in kernel32.dll.
23940 (w32_get_internal_run_time): New function.
23941
23942 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
23943
239442007-06-14 Kenichi Handa <handa@etlken.m17n.org>
23945
23946 * composite.c (update_compositions): Check the validness of
23947 compositions.
23948
239492007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23950
23951 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
23952 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
23953
23954 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
23955 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
23956
23957 * macgui.h (USE_MAC_TOOLBAR): New define.
23958
23959 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
23960 Return immediately unless popup is activated.
23961
23962 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
23963 background to scroll bar gap.
23964 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
23965 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
23966 scroll bars on frame edge. Check fringe background extension.
23967 Don't clear extended fringe background area.
23968 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
23969 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
23970 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
23971 [USE_MAC_TOOLBAR]: New macros.
23972 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
23973 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
23974 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
23975 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
23976 [USE_MAC_TOOLBAR]: New functions.
23977 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
23978 manually if previous repositioning has failed.
23979 (mac_handle_keyboard_event): Use precomputed event kind.
23980 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
23981 as tool bar item click. Handle mouse movement over tool bar items.
23982
23983 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
23984 toolbar_win_gravity.
23985 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
23986 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
23987 Add externs.
23988
23989 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
23990 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
23991
239922007-06-14 Chong Yidong <cyd@stupidchicken.com>
23993
23994 * image.c (search_image_cache): Remove unused variable.
23995
239962007-06-13 Chong Yidong <cyd@stupidchicken.com>
23997
23998 * xfns.c, xmenu.c: Link to xaw3d if available.
23999
240002007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24001
24002 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
24003 frame_foreground and frame_background.
24004
24005 * image.c (lookup_image): Save frame foreground and background colors.
24006 (search_image_cache): Check if saved and current frame colors match.
24007
240082007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
24009
24010 * regex.c (regex_compile): Remove the `regnum' counter.
24011 Use bufp->re_nsub instead. Add support for \(?N:RE\).
24012
240132007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
24014
24015 * term.c: Include intervals.h to declare Fget_text_property.
24016
240172007-06-10 Jason Rumney <jasonr@gnu.org>
24018
24019 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
24020
240212007-06-08 Juanma Barranquero <lekktu@gmail.com>
24022
24023 * callint.c (Fcall_interactively):
24024 * editfns.c (Fdelete_and_extract_region):
24025 * fileio.c (Fread_file_name):
24026 * fns.c (Fmapconcat):
24027 * keyboard.c (cmd_error_internal):
24028 * keymap.c (Fkey_description):
24029 * lread.c (openp):
24030 * minibuf.c (read_minibuf):
24031 * search.c (wordify):
24032 * sunfns.c (sel_read):
24033 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
24034 * xfns.c (x_default_scroll_bar_color_parameter):
24035 * xmenu.c (menu_help_callback):
24036 * xselect.c (Fx_get_atom_name):
24037 * xterm.c (x_term_init): Use empty_unibyte_string.
24038
240392007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
24040
24041 * alloc.c (init_strings): Initialize canonical empty strings.
24042 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
24043 canonical empty string when the requested size is 0.
24044
24045 * emacs.c (empty_unibyte_string): Rename from empty_string.
24046 (empty_multibyte_string): New canonical empty string.
24047 (syms_of_emacs): Don't initialize empty_string.
24048
24049 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
24050 string, if appropriate.
24051 (empty_unibyte_string, empty_multibyte_string): New externs.
24052 (empty_string): Remove extern.
24053
24054 * lread.c (syms_of_lread): Use empty_unibyte_string.
24055
240562007-06-07 Jason Rumney <jasonr@gnu.org>
24057
24058 * s/ms-w32.h: Don't define HAVE_TZNAME.
24059
24060 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
24061
240622007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24063
24064 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
24065
24066 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
24067 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
24068
24069 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
24070 Don't call next handler.
24071 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
24072 Remove argument. Install handler to application.
24073 (set_frame_menubar): Don't change deep_p.
24074 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
24075 FRAME_OUTER_TO_INNER_DIFF_Y.
24076 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
24077 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
24078 [HAVE_DIALOGS]: New macros.
24079 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
24080 Use them.
24081 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
24082
24083 * macselect.c [MAC_OSX] (install_service_handler): Rename from
24084 init_service_handler. All callers changed. Return OSStatus value.
24085
24086 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
24087 All callers changed so as not to call SetPortWindowPort.
24088 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
24089 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
24090 mac_draw_string_common.
24091 (mac_draw_image_string_qd): Likewise.
24092 (mac_draw_string_common): Use them. Add INLINE.
24093 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
24094 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
24095 GetGlobalMouse.
24096 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
24097 and FRAME_OUTER_TO_INNER_DIFF_Y.
24098 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
24099 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
24100 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
24101 repositioning window to mac_handle_window_event.
24102 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
24103 saving window location to mac_handle_window_event
24104 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
24105 (install_menu_target_item_handler): Remove argument in extern.
24106 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
24107 Also accept command events.
24108 (do_keystroke): New function created from XTread_socket.
24109 (init_command_handler): Remove functions.
24110 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
24111 and save window location by kEventWindowShowing and kEventWindowHiding
24112 handlers here. Don't call next handler for window state change and
24113 focus events.
24114 (mac_handle_application_event, mac_handle_keyboard_event)
24115 [TARGET_API_MAC_CARBON]: New functions.
24116 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
24117 kEventWindowShowing and kEventWindowHiding events. Move installation
24118 of mouse, font, text input and menu target item handlers to
24119 install_application_handler.
24120 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
24121 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
24122 New function.
24123 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
24124 Register it.
24125 (XTread_socket) [TARGET_API_MAC_CARBON]:
24126 Consolidate SendEventToEventTarget calls.
24127 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
24128 Move application activation handler to mac_handle_application_event.
24129 Move keyboard handler to mac_handle_keyboard_event.
24130 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
24131 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
24132 init_command_handler. Call install_application_handler.
24133
24134 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
24135 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
24136
241372007-06-07 Glenn Morris <rgm@gnu.org>
24138
24139 * emacs.c (main): Use `emacs-copyright' in --version output.
24140
241412007-06-06 Chong Yidong <cyd@stupidchicken.com>
24142
24143 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
24144
241452007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24146
24147 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
24148
24149 * macgui.h: Replace WindowPtr with WindowRef.
24150
24151 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
24152 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
24153 Replace ControlHandle with ControlRef.
24154 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
24155
24156 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
24157 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
24158 Replace ControlHandle with ControlRef.
24159 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
24160 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
24161
24162 * macterm.h (struct scroll_bar): Rename member control_handle_low
24163 and control_handle_high to control_ref_low and control_ref_high.
24164 All uses changed.
24165 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
24166 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
24167 respectively. All uses changed.
24168 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
24169 (install_window_handler, remove_window_handler): Replace WindowPtr
24170 with WindowRef in externs.
24171
241722007-06-05 Juanma Barranquero <lekktu@gmail.com>
24173
24174 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
24175
241762007-06-03 Nick Roberts <nickrob@snap.net.nz>
24177
24178 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
24179
24180 * frame.c (Fmouse_position, Fmouse_pixel_position):
24181 Condition on HAVE_GPM too.
24182
24183 * term.c (term_mouse_highlight): Remove unused variables.
24184 (Fterm_open_connection): Set gpm_zerobased to 1.
24185 (term_mouse_movement, term_mouse_click, handle_one_term_event):
24186 Use zero based co-ordinates.
24187 (handle_one_term_event): Report a drag as mouse movement too.
24188
24189 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
24190
241912007-06-03 Chong Yidong <cyd@stupidchicken.com>
24192
24193 * image.c (search_image_cache): New function. Require background
24194 color match if background color is unspecified in the image spec.
24195 (uncache_image, lookup_image): Use it.
24196
241972007-06-01 Juanma Barranquero <lekktu@gmail.com>
24198
24199 * window.c (Fshrink_window): Reflow docstring.
24200
242012007-06-02 Chong Yidong <cyd@stupidchicken.com>
24202
24203 * Version 22.1 released.
24204
242052007-06-01 Richard Stallman <rms@gnu.org>
24206
24207 * xfns.c (x_encode_text): Add GCPRO.
24208
242092007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24210
24211 * xfns.c (x_set_name_internal): Save encoded name before
24212 x_encode_text in case string data is relocated.
24213
242142007-05-31 Richard Stallman <rms@gnu.org>
24215
24216 * buffer.c (syms_of_buffer): Doc fix.
24217
242182007-05-30 Nick Roberts <nickrob@snap.net.nz>
24219
24220 * sysdep.c (init_sys_modes): Add rather than replace with
24221 O_NONBLOCK.
24222
24223 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
24224 term_mouse_moveto.
24225
24226 * termhooks.h (term_mouse_moveto): New extern.
24227
24228 * term.c (mouse_face_window): Rename...
24229 (Qmouse_face_window): ...to this.
24230 (term_show_mouse_face, term_clear_mouse_face)
24231 (term_mouse_highlight): Use Qmouse_face_window.
24232 (term_mouse_moveto): New function.
24233 (term_mouse_position): Make it work.
24234 (syms_of_term): Uncomment assignment to mouse_position_hook.
24235 Staticpro Qmouse_face_window.
24236
242372007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24238
24239 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
24240 around current_column call.
24241
242422007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
24243
24244 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
24245 * xdisp.c (next_element_from_buffer):
24246 * window.c (delete_window):
24247 * term.c (term_mouse_highlight):
24248 * msdos.c (getdefdir):
24249 * macterm.c (mac_create_bitmap_from_bitmap_data)
24250 (init_font_name_table):
24251 * fns.c (Fsxhash):
24252 * data.c (Fmake_local_variable):
24253 * ccl.c (ccl_driver): Likewise.
24254
242552007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24256
24257 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
24258 Call mac_wakeup_from_rne on window size change.
24259
242602007-05-25 Chong Yidong <cyd@stupidchicken.com>
24261
24262 * image.c (uncache_image): Fix typo.
24263
242642007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
24265
24266 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
24267
242682007-05-22 Richard Stallman <rms@gnu.org>
24269
24270 * xterm.c (x_connection_closed): Remove NO_RETURN.
24271
242722007-05-22 Martin Rudalics <rudalics@gmx.at>
24273
24274 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
24275
242762007-05-21 Chong Yidong <cyd@stupidchicken.com>
24277
24278 * image.c (uncache_image): New function.
24279 (Fimage_refresh): New function.
24280
242812007-05-20 Jan Djärv <jan.h.d@swipnet.se>
24282
24283 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
24284
242852007-05-20 Nick Roberts <nickrob@snap.net.nz>
24286
24287 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
24288 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
24289
242902007-05-20 Nick Roberts <nickrob@snap.net.nz>
24291
24292 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
24293 conditional on [HAVE_GPM_H].
24294
242952007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
24296
24297 * syntax.c (skip_chars): Update syntax-table only after we checked that
24298 the new location is valid.
24299
243002007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24301
24302 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
24303 mac_get_window_bounds.
24304
243052007-05-20 Nick Roberts <nickrob@snap.net.nz>
24306
24307 * Makefile.in (LIBGPM): Allow it to be set from configure.
24308 If set then link Emacs with it.
24309
24310 * config.in: Regenerate.
24311
24312 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
24313 New externs.
24314
24315 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
24316 Include gpm.h.
24317 (handle_one_term_event, term_gpm): New externs.
24318
24319 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
24320 and allow it to be interrupted by SIGIO.
24321
24322 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
24323 (wait_reading_process_output): Wait on gpm_fd too.
24324 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
24325 (add_gpm_wait_descriptor_called_flag): New variable.
24326 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
24327
24328 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
24329 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
24330 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
24331 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
24332 (make_lispy_event): Add case GPM_CLICK_EVENT.
24333 (read_avail_input): Handle mouse input.
24334
24335 * term.c (write_glyphs_with_face): New function.
24336 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
24337 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
24338 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
24339 (mouse_face_face_id, term_gpm, pos_x, pos_y)
24340 (last_mouse_x, last_mouse_y): New variables.
24341 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
24342 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
24343 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
24344 (Fterm_close_connection): New functions.
24345 (term_init): Initialise mouse_face_window.
24346
243472007-05-19 Chong Yidong <cyd@stupidchicken.com>
24348
24349 * xdisp.c (redisplay_window): If first window line is a
24350 continuation line, recompute the new window start instead of
24351 recentering.
24352
243532007-05-18 Glenn Morris <rgm@gnu.org>
24354
24355 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
24356 Suggested by Alfred M. Szmidt <ams@gnu.org>.
24357
243582007-05-17 Glenn Morris <rgm@gnu.org>
24359
24360 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
24361
243622007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24363
24364 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
24365 dead key repeat and up events.
24366
243672007-05-14 Chong Yidong <cyd@stupidchicken.com>
24368
24369 * image.c (pbm_load): Check image size for monochrome pbm.
24370
243712007-05-13 Chong Yidong <cyd@stupidchicken.com>
24372
24373 * xterm.c (XTread_socket): Revert last change.
24374
243752007-05-12 Chong Yidong <cyd@stupidchicken.com>
24376
24377 * image.c (pbm_load): Correctly check image size for greyscale pbm.
24378
24379 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
24380
243812007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
24382
24383 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
24384 mixup (YAILOM).
24385
243862007-05-07 Andreas Schwab <schwab@suse.de>
24387
24388 * keymap.c (Flookup_key): Fix typo in last change.
24389
243902007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
24391
24392 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
24393 mapping for unibyte strings.
24394
243952007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24396
24397 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
24398 (Fx_popup_dialog) [MAC_OSX]: Likewise.
24399
244002007-04-29 Richard Stallman <rms@gnu.org>
24401
24402 * insdel.c (replace_range): For undo, record insertion first.
24403
244042007-04-29 Andreas Schwab <schwab@suse.de>
24405
24406 * lisp.h (VECSIZE): Use OFFSETOF.
24407
244082007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24409
24410 * xdisp.c (try_window_reusing_current_matrix): Fix number of
24411 disabled lines.
24412
244132007-04-28 Richard Stallman <rms@gnu.org>
24414
24415 * lread.c (read_escape): In a string, \s is always space.
24416
244172007-04-27 Jan Djärv <jan.h.d@swipnet.se>
24418
24419 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
24420
24421 * gtkutil.c (xg_update_menubar, create_menus): Create empty
24422 submenu for menu bar items.
24423
24424See ChangeLog.10 for earlier changes.
24425
24426;; Local Variables:
24427;; coding: utf-8
24428;; add-log-time-zone-rule: t
aac0c6e3
MR
24429;; End:
24430
e3eb1dae 24431 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
24432
24433 This file is part of GNU Emacs.
24434
24435 GNU Emacs is free software: you can redistribute it and/or modify
24436 it under the terms of the GNU General Public License as published by
24437 the Free Software Foundation, either version 3 of the License, or
24438 (at your option) any later version.
24439
24440 GNU Emacs is distributed in the hope that it will be useful,
24441 but WITHOUT ANY WARRANTY; without even the implied warranty of
24442 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24443 GNU General Public License for more details.
24444
24445 You should have received a copy of the GNU General Public License
24446 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
24447
24448;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40