Fix menu bar display on MS-DOS.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
ae492bec
EZ
12010-07-03 Eli Zaretskii <eliz@gnu.org>
2
1e6255ae
EZ
3 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
4 to menu-bar-mode, if not set in the frame parameters or in
5 default-frame-alist.
6
ae492bec
EZ
7 * w32console.c (sys_tputs): Adjust argument list to prototype in
8 term.c.
9
3a35a84c
JB
102010-07-03 Juanma Barranquero <lekktu@gmail.com>
11
12 * lisp.h (memory_warnings): Fix prototype.
13
14 * cm.h (evalcost): Fix prototype.
15
16 * cm.c (evalcost): Fix arg type.
17
c532d349
DN
182010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
19
20 * term.c (term_clear_mouse_face, Fidentity):
21 * syssignal.h (signal_handler_t):
22 * lisp.h (memory_warnings):
23 * coding.h (preferred_coding_system):
24 * cm.h (evalcost):
25 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
26
c0b36d46
EZ
272010-07-02 Eli Zaretskii <eliz@gnu.org>
28
29 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
30 from prototypes.
31
32 * msdos.h (load_pixmap): Don't define away.
33
383e0970
J
342010-07-02 Jan Djärv <jan.h.d@swipnet.se>
35
f57e2426
J
36 * lisp.h:
37 * atimer.h: Remove define for P_.
38
39 * alloc.c: Remove __P and P_ from .c and .m files.
40 * atimer.c:
41 * buffer.c:
42 * callint.c:
43 * category.c:
44 * charset.c:
45 * chartab.c:
46 * cm.c:
47 * coding.c:
48 * composite.c:
49 * data.c:
50 * dired.c:
51 * dispnew.c:
52 * doc.c:
53 * editfns.c:
54 * emacs.c:
55 * eval.c:
56 * fileio.c:
57 * filelock.c:
58 * fns.c:
59 * font.c:
60 * fontset.c:
61 * frame.c:
62 * ftfont.c:
63 * ftxfont.c:
64 * gmalloc.c:
65 * gtkutil.c:
66 * image.c:
67 * indent.c:
68 * intervals.c:
69 * keyboard.c:
70 * keymap.c:
71 * lread.c:
72 * marker.c:
73 * menu.c:
74 * minibuf.c:
75 * print.c:
76 * process.c:
77 * scroll.c:
78 * search.c:
79 * sound.c:
80 * strftime.c:
81 * syntax.c:
82 * sysdep.c:
83 * term.c:
84 * terminal.c:
85 * textprop.c:
86 * unexalpha.c:
87 * w32console.c:
88 * w32fns.c:
89 * w32font.c:
90 * w32menu.c:
91 * w32term.c:
92 * w32uniscribe.c:
93 * window.c:
94 * xdisp.c:
95 * xfaces.c:
96 * xfns.c:
97 * xfont.c:
98 * xftfont.c:
99 * xmenu.c:
100 * xselect.c:
101 * xterm.c: Likewise.
102
383e0970 103 Remove P_ and __P macros.
f57e2426
J
104 * atimer.h: Remove P_ and __P macros.
105 * buffer.h:
383e0970
J
106 * category.h:
107 * ccl.h:
108 * character.h:
109 * charset.h:
110 * cm.h:
111 * coding.h:
112 * composite.h:
113 * dispextern.h:
114 * disptab.h:
9e892c8d 115 * dosfns.h:
383e0970
J
116 * font.h:
117 * fontset.h:
118 * frame.h:
119 * gtkutil.h:
120 * indent.h:
121 * intervals.h:
122 * keyboard.h:
123 * keymap.h:
124 * lisp.h:
125 * macros.h:
126 * md5.h:
127 * menu.h:
128 * msdos.h:
129 * nsterm.h:
130 * puresize.h:
131 * region-cache.h:
132 * syntax.h:
133 * syssignal.h:
134 * systime.h:
135 * termhooks.h:
9e892c8d 136 * w32font.h:
383e0970
J
137 * w32term.h:
138 * widget.h:
139 * window.h:
140 * xgselect.h:
141 * xsettings.h:
142 * xterm.h: Likewise.
143
98601119
DN
1442010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
145
d9170db5
DN
146 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
147
98601119
DN
148 Cleanup old code.
149 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
150 * syssignal.h: Remove code for Lynx, not supported anymore.
151 * vm-limit.c: Remove unused code the depends on emacs not being
152 defined and NO_LIM_DATA being defined.
153 * mem-limits.h: Remove dead code.
154
1f984e12
J
1552010-07-01 Jan Djärv <jan.h.d@swipnet.se>
156
c49d071a
J
157 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
158
9d5405ec
J
159 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
160 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
161
7a18115b
J
162 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
163 parameters, they are already absolute.
164
581a8100
J
165 * nsterm.m (x_set_window_size, initFrameFromEmacs): Renamed
166 FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
167
168 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGH
169
170 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar): Update
171 FRAME_TOOLBAR_HEIGHT.
172
1f984e12
J
173 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar): Add
174 BLOCK/UNBLOCK_INPUT so asserts don't trigger.
175
c1ef4455
CY
1762010-06-30 Chong Yidong <cyd@stupidchicken.com>
177
178 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
179 check default-frame-alist.
180
ce8f5a9a
AS
1812010-06-30 Andreas Schwab <schwab@linux-m68k.org>
182
183 * process.c (create_process): Avoid using invalid file descriptors.
184
185 * callproc.c (child_setup): Avoid closing a file descriptor twice.
186
bf935339
J
1872010-06-30 Jan Djärv <jan.h.d@swipnet.se>
188
189 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
190 Improve documentation. Return font regardless of use_system_font.
191 (syms_of_xsettings): Improve documentation for font-use-system-font.
192
769e9d47
KH
1932009-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
194
195 * xftfont.c (xftfont_open): Check font width one by one also when
196 spacing is dual.
197
198 * ftfont.c (ftfont_open): Ditto.
199
6259c2ec
GM
2002010-06-30 Glenn Morris <rgm@gnu.org>
201
a46007e9
GM
202 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
203
6259c2ec
GM
204 * Makefile.in (CANNOT_DUMP): Update for configure name change.
205
206 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
207 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
208 * s/darwin.h (SYSTEM_MALLOC):
209 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
210
5d1d3d04
J
2112010-06-29 Jan Djärv <jan.h.d@swipnet.se>
212
213 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
214 (ns_get_screen): Don't assign integer to f.
215 (Fx_display_color_cells): Declarations before statements.
216
e547b051
J
2172010-06-28 Jan Djärv <jan.h.d@swipnet.se>
218
5fc8e5bc
J
219 * xfns.c (x_default_font_parameter): Remove got_from_system
220 (Bug#6526).
221
e547b051
J
222 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
223 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
224 defines based on what configure finds.
225
226 * xterm.c (XTflash): Use gtk_widget_get_window.
227 (xg_scroll_callback): Use gtk_adjustment_get_upper and
228 gtk_adjustment_get_page_size.
229 (handle_one_xevent): Use gtk_widget_get_mapped.
230 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
231 messages.
232
233 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
234
235 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
236 HAVE_GTK_FILE_SELECTION_NEW.
237
238 * gtkutil.c (xg_display_open, xg_display_close): Remove
239 HAVE_GTK_MULTIDISPLAY, it is always defined.
240 (xg_display_open): Return type is void.
241 (gtk_widget_set_has_window)
242 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
243 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
244 (gtk_adjustment_set_page_increment)
245 (gtk_adjustment_get_step_increment): #define these if not found
246 by configure.
247 (remove_submenu): New define based on Gtk+ version.
248 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
249 gtk_widget_get_window.
250 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
251 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
252 (create_dialog): Use gtk_dialog_get_action_area and
253 gtk_dialog_get_content_area.
254 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
255 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
256 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
257 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
258 g_object_ref and g_object_unref.
259 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
260 gtk_widget_get_sensitive.
261 (xg_update_submenu): Use remove_submenu.
262 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
263 properties instead to get old x and y position.
264 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
265 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 266 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
267 (xg_get_tool_bar_widgets): New function.
268 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
269 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
270 (toolbar_set_orientation): New #define based on if configure
271 finds gtk_orientable_set_orientation.
272 (xg_create_tool_bar): Call toolbar_set_orientation.
273 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
274 instead of gtk_box_pack_start_defaults.
275
b9229673
CY
2762010-06-28 Chong Yidong <cyd@stupidchicken.com>
277
278 * cmds.c (Fdelete_backward_char): Move into Lisp.
279
bbc803b0
DN
2802010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
281
282 * s/freebsd.h (BSD4_2): Remove redundant definition.
283 bsd-common.h defines it already.
284
6431f2e6
CY
2852010-06-27 Chong Yidong <cyd@stupidchicken.com>
286
287 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
288 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
289 tool-bar-mode, which are now set using these X resources at
290 startup, to determine the defaults (Bug#2249).
291
292 * w32fns.c (Fx_create_frame):
293 * nsfns.m (Fx_create_frame): Likewise.
294
295 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
296
8c079ebb
JB
2972010-06-24 Juanma Barranquero <lekktu@gmail.com>
298
299 * gtkutil.c (xg_update_scrollbar_pos):
300 Avoid C99 mid-block variable declaration.
301
e9b7ab96
JD
3022010-06-22 Jan Djärv <jan.h.d@swipnet.se>
303
bc869eca
JD
304 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
305
2b7e356a 306 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
307
308 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
309 if height is less than scroll bar min size.
310 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
311
e9b7ab96
JD
312 * xfns.c (x_default_font_parameter): Try to open font from system
313 before using it (bug#6478). Rename got_from_gconf to got_from_system.
314
32a679fd
JD
3152010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
316
317 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
318
70c4cfbb
EZ
3192010-06-20 Eli Zaretskii <eliz@gnu.org>
320
321 * xdisp.c (try_scrolling): When scroll-conservatively is set to
322 most-positive-fixnum, be extra accurate when scrolling window
323 start, to avoid missing the cursor line.
324
ad5a12b5
EZ
3252010-06-19 Eli Zaretskii <eliz@gnu.org>
326
327 * xdisp.c (try_scrolling): Compute the limit for searching point
328 in forward scroll from scroll_max, instead of an arbitrary limit
329 of 10 screen lines. See
330 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
331 and
332 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
333 for details.
334
2a64315a 3352010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
336
337 * editfns.c (Fbyte_to_string): Pacify compiler.
338
288cf4e9
SM
3392010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
340
341 * lread.c (read1): Phase out old-style backquotes a bit more.
342
6e6e5760
EZ
3432010-06-12 Eli Zaretskii <eliz@gnu.org>
344
cbc4fd20
EZ
345 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
346 bidimirror.h.
347
348 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
349
317fbf33
EZ
350 * bidi.c (bidi_initialize): Remove explicit initialization of
351 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 352 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 353 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
354
355 * biditype.h: New file.
356
cbc4fd20
EZ
357 * bidimirror.h: New file.
358
6e6e5760
EZ
359 * window.c (syms_of_window): Doc fix (bug#6409).
360
4176cba2
RF
3612010-06-12 Romain Francoise <romain@orebokech.com>
362
363 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
364 ediff-hook.
365
cb4bfcb5
GM
3662010-06-10 Glenn Morris <rgm@gnu.org>
367
64c60c2f
GM
368 * editfns.c (Fbyte_to_string): Pacify compiler.
369
cb4bfcb5
GM
370 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
371
e454a4a3
SM
3722010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
373
374 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
375 Check `object's type before accessing its guts.
376
c1b1acc2
DN
3772010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
378
379 * s/usg5-4.h: Fix previous change.
380 Suggested by Lawrence Mitchell <wence@gmx.li>
381
657d4c0b
AS
3822010-06-08 Andreas Schwab <schwab@linux-m68k.org>
383
384 * minibuf.c (Fall_completions): Add more checks.
385
9b27fd9f
JB
3862010-06-08 Juanma Barranquero <lekktu@gmail.com>
387
388 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
389
a99ebb40
DN
3902010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
391
d7c5d87d
DN
392 * lread.c (X_OK): Remove, unused.
393
0263a941
DN
394 * dispnew.c: Remove obsolete comment.
395
a99ebb40
DN
396 Remove INCLUDED_FCNTL.
397 * xterm.c (INCLUDED_FCNTL):
398 * callproc.c (INCLUDED_FCNTL):
399 * alloc.c (INCLUDED_FCNTL):
400 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
401 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
402
13b5221f
MR
4032010-06-07 Martin Rudalics <rudalics@gmx.at>
404
405 * window.c (Fselect_window): Move `record_buffer' up to the
406 beginning of this function, so the buffer gets recorded
407 even if the selected window does not change.
408 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
409
5220357f
JB
4102010-06-07 Juanma Barranquero <lekktu@gmail.com>
411
412 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
413 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
414
3085237c
DN
4152010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
416
417 Remove BSTRING related code, all platforms define it.
418 * s/usg5-4.h (BSTRING): Remove definition.
419 * s/template.h (BSTRING):
420 * s/msdos.h (BSTRING):
421 * s/ms-w32.h (BSTRING):
422 * s/hpux10-20.h (BSTRING):
423 * s/gnu-linux.h (BSTRING):
424 * s/darwin.h (BSTRING):
425 * s/cygwin.h (BSTRING):
426 * s/bsd-common.h (BSTRING):
427 * s/aix4-2.h (BSTRING): Likewise.
428 * sysdep.c: Remove code depending on BSTRING not being defined.
429
409f2919
JB
4302010-06-05 Juanma Barranquero <lekktu@gmail.com>
431
432 Remove obsolete macro BASE_LEADING_CODE_P.
433 * character.h (BASE_LEADING_CODE_P): Remove.
434 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
435 * buffer.c (Fset_buffer_multibyte):
436 * indent.c (scan_for_column, compute_motion):
437 * insdel.c (count_combining_before, count_combining_after):
438 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
439
087fc47a
JB
4402010-06-04 Juanma Barranquero <lekktu@gmail.com>
441
442 Turn `directory-sep-char' into a noop.
443
444 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
445 (DIRECTORY_SEP): Define unconditionally.
446
447 * s/ms-w32.h (DIRECTORY_SEP): Remove.
448
449 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
450 call dostounix_filename directly.
451
452 * fileio.c (CORRECT_DIR_SEPS): Remove.
453 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
454 (Fsubstitute_in_file_name): Use dostounix_filename instead.
455 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
456 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
457
458 * w32proc.c (CORRECT_DIR_SEPS): Remove.
459 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
460
0eb7675e
AS
4612010-06-03 Andreas Schwab <schwab@linux-m68k.org>
462
463 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
f07b083d 464 address. (Bug#6346)
0eb7675e 465
78edd3b7
JB
4662010-06-03 Juanma Barranquero <lekktu@gmail.com>
467
468 * ccl.c (Fccl_program_p): Fix typo in docstring.
469
eb697db5
DN
4702010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
471
472 Move UNEXEC definition to autoconf.
473 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
474 * s/sol2-10.h (UNEXEC):
475 * s/irix6-5.h (UNEXEC):
476 * s/hpux10-20.h (UNEXEC):
477 * s/gnu-linux.h (UNEXEC):
478 * s/darwin.h (UNEXEC):
479 * s/cygwin.h (UNEXEC):
480 * s/bsd-common.h (UNEXEC):
481 * s/aix4-2.h (UNEXEC):
482 * m/alpha.h (UNEXEC): Likewise.
483 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
484
aa3830c4
JB
4852010-06-03 Juanma Barranquero <lekktu@gmail.com>
486
487 Remove obsolete pre-unicode2 macros.
488 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
489 * composite.c (composition_reseat_it):
490 * data.c (Faset):
491 * fns.c (Ffillarray):
492 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
493 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
494
d234d13e
JL
4952010-06-03 Juri Linkov <juri@jurta.org>
496
497 * buffer.c (Fother_buffer): Add CHECK_FRAME.
498 (Fswitch_to_buffer): Remove unused variable `err'.
499
0d4bcf4d
GM
5002010-06-03 Glenn Morris <rgm@gnu.org>
501
e23dc1e2
GM
502 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
503
05b09564
GM
504 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
505 now that AH_BOTTOM does it.
506
824e2978
GM
507 * m/hp800.h (HAVE_ALLOCA):
508 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
509
0d4bcf4d
GM
510 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
511 Remove NOT_C_CODE tests, it is always true now.
512
c55d2abf
DN
5132010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
514
08a494a3
DN
515 Fix config.h includes.
516 * xsettings.c:
517 * xgselect.c:
518 * nsterm.m:
519 * nsselect.m:
520 * nsimage.m:
521 * nsfont.m:
522 * nsfns.m:
523 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
524 other files do.
525
75934b1d
DN
526 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
527
9f32a766
DN
528 * s/sol2-6.h: Remove obsolete comments.
529
c55d2abf
DN
530 Remove unnecessary alloca.h includes.
531 * keymap.c: Do not include alloca.h, config.h does that.
532 * sysdep.c: Likewise. Do not define fwrite, not used.
533
06ac62b4
SM
5342010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
535
536 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
537 the HAVE_TERMIO where it belongs (bug#6149).
538
1ab8293c
SM
5392010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
540
541 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
542 of bug#6305).
543
6dcfd253
EZ
5442010-05-30 Eli Zaretskii <eliz@gnu.org>
545
546 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
547 state is always cached (bug#6306).
548
6d26bbb2
EZ
5492010-05-29 Eli Zaretskii <eliz@gnu.org>
550
06fa4a23
EZ
551 Fix cursor motion in bidi-reordered continued lines.
552 * xdisp.c (try_cursor_movement): Backup to non-continuation line
553 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
554 over continuation lines in bidi-reordered buffers. Return
555 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
556 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
557
f5783df3
MA
5582010-05-28 Michael Albinus <michael.albinus@gmx.de>
559
560 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
561
7d56b2dd
KH
5622010-05-28 Kenichi Handa <handa@m17n.org>
563
564 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
565 Don't sheck SPEC if it is nil.
566 (font_list_entities): Call font_delete_unmatched if
b925d231 567 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 568
e58d4ff7
GM
5692010-05-28 Glenn Morris <rgm@gnu.org>
570
571 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
572
f1a5d776
CY
5732010-05-27 Chong Yidong <cyd@stupidchicken.com>
574
575 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
576 whether to trash.
577 (internal_delete_file, Frename_file): Callers changed.
578 (delete_by_moving_to_trash): Doc fix.
579 (Fdelete_directory_internal): Don't move to trash.
580
581 * callproc.c (delete_temp_file):
582 * buffer.c (Fkill_buffer): Callers changed.
583
584 * lisp.h: Update prototype.
585
f44a59e6
CY
5862010-05-27 Chong Yidong <cyd@stupidchicken.com>
587
588 * xdisp.c (redisplay_window): After redisplay, check if point is
589 still valid before setting it (Bug#6177).
590
81ac4f35
GM
5912010-05-27 Glenn Morris <rgm@gnu.org>
592
593 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
594 Convert comments to Makefile format.
595
596 * Makefile.in (bootstrap-clean): No more Makefile.c.
597
ccd89fb3
GM
5982010-05-26 Glenn Morris <rgm@gnu.org>
599
90278cb6
GM
600 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
601 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
602
ccd89fb3
GM
603 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
604 Remove.
605 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
606
b7050583
KH
6072010-05-26 Kenichi Handa <handa@m17n.org>
608
609 * composite.c (composition_compute_stop_pos): Fix condition for
610 backward scanning.
611
e5458003
GM
6122010-05-25 Glenn Morris <rgm@gnu.org>
613
c345fe90
GM
614 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
615 Move before TEMACS_LDFLAGS.
616 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
617 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
618
2e0689ab
GM
619 * Makefile.in (NOT_C_CODE): No longer define.
620 (config.h): No longer include.
621
8009a5e8
GM
622 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
623 variables it may reference.
624
e5458003
GM
625 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
626 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
627
10f72a37
KH
6282010-05-25 Kenichi Handa <handa@m17n.org>
629
630 * dispextern.h (struct composition_it): New members rule_idx and
631 charpos.
632
633 * xdisp.c (set_iterator_to_next): While scanning backward, assume
634 that the character positions of IT point the last character of the
635 current grapheme cluster.
636 (next_element_from_composition): Don't change character positions
637 of IT.
638 (append_composite_glyph): Set glyph->charpos to
639 it->cmp_it.charpos.
640
641 * composite.c (autocmp_chars): Change the first argument to RULE,
642 and try composition with RULE only.
643 (composition_compute_stop_pos): Record the index number of the
644 composition rule in CMP_IT->rule_idx.
645 (composition_reseat_it): Call autocmp_chars repeatedly until the
646 correct rule of the composition is found.
647 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
648 is at the last character of the current grapheme cluster when
649 CMP_IT->reversed_p is nonzero.
650
171eda53 6512010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 652
171eda53
SM
653 * editfns.c (Fbyte_to_string): New function.
654
66a9f7f4
SM
6552010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
656
657 * process.c (Fmake_network_process): Set :host to nil if it's not used.
658 Suggested by Masatake YAMATO <yamato@redhat.com>.
659
d8c315d1
EZ
6602010-05-23 Eli Zaretskii <eliz@gnu.org>
661
171eda53 662 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 663
f5b416d2 6642010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
665
666 * s/netbsd.h: If terminfo is found, use it in preference to
667 termcap. (Bug#6190) [Backport from trunk]
668
0416466c
EZ
6692010-05-19 Eli Zaretskii <eliz@gnu.org>
670
11117830 671 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
672
673 * dispextern.h (struct glyph_row): New members minpos and maxpos.
674 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
675 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
676 and maxpos members instead of start.pos and end.pos, respectively.
677
678 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
679 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
680 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
681 (try_window_reusing_current_matrix, try_window_id):
682 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
683 (init_from_display_pos, init_iterator): Use EMACS_INT for
684 character and byte positions.
66a9f7f4 685 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
686 arguments for minimum and maximum buffer positions seen by
687 display_line for this row. Don't use iterator to find the
688 position following the maximum one; instead, increment the
11117830
EZ
689 position found by display_line directly. Fix logic; eol_pos
690 should be tested before the rest. Handle the case of characters
691 delivered from display vector (bug#6036). Fix tests related to
692 it->method. Handle the truncated_on_right_p rows.
693 (RECORD_MAX_MIN_POS): New macro.
694 (display_line): Use it to record the minimum and maximum buffer
695 positions for glyphs in the row being assembled. Record the
696 position of the newline that terminates the line. If word wrap is
697 in effect, restore minimum and maximum positions seen up to the
698 wrap point, when iterator returns to it.
699 (try_window_reusing_current_matrix): Give up if in bidi-reordered
700 row and cursor not already at point. Restore original pre-bidi
701 code for unidirectional buffers.
d36fe237
EZ
702
703 * dispnew.c (increment_row_positions, check_matrix_invariants):
704 Increment and check row->start.pos and row->end.pos, in addition
705 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
706
11117830
EZ
707 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
708 Display truncated_on_left_p and truncated_on_right_p flags.
709 Formatting fixes.
710 (pmtxrows): Display the ordinal number of each row. Don't display
711 rows beyond the last one.
712
713 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
714 it is not copied by bidi_copy_it.
715
6e83d800
EZ
7162010-05-22 Eli Zaretskii <eliz@gnu.org>
717
718 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
719 (Bug#6237)
720
110683ad
CY
7212010-05-22 Chong Yidong <cyd@stupidchicken.com>
722
723 * image.c (Fimage_flush): Rename from image-refresh.
724
98fe5161
CY
7252010-05-21 Chong Yidong <cyd@stupidchicken.com>
726
727 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
728 just one window.
729
730 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
731 (clear_image_cache): If the number of cached images is unusually
732 large, decrease the cache eviction delay (Bug#6230).
733
e8752c66
GM
7342010-05-21 Glenn Morris <rgm@gnu.org>
735
66dbf213
GM
736 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
737 Move these rules to ns.mk.
738 * ns.mk: New file.
739
04384b2d
GM
740 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
741
e8752c66
GM
742 * Makefile.in (CANNOT_DUMP): New, set by configure.
743 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
744
2e2bbddb
JL
7452010-05-20 Juri Linkov <juri@jurta.org>
746
747 * fileio.c (Fdelete_file): Change interative spec to use
748 `read-file-name' like in `find-file-read-args' where the default
749 value is `default-directory' instead of `buffer-file-name'.
750 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
751
31c4aaf6
KR
7522010-05-20 Kevin Ryde <user42@zip.com.au>
753
754 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
755 (Voverriding_terminal_local_map, Vsystem_key_alist)
756 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
757
9d5cf9b6
GM
7582010-05-20 Glenn Morris <rgm@gnu.org>
759
760 * Makefile.in (DEPDIR): New constant.
761 (DEPFLAGS): Set with configure, not cpp.
762 (MKDEPDIR): New, set by configure.
763 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
764 (clean): Use $DEPDIR.
765 (deps_frag): Include from configure.
766 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
767 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
768
ead6f8f5
EZ
769 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
770 reallocation of the cache. (Bug#6210)
771
7f34aec3
GM
7722010-05-19 Glenn Morris <rgm@gnu.org>
773
d494e8f2
GM
774 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
775
c1d0dcfd
GM
776 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
777 (GNULIB_VAR): Remove.
778 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
779
780 * m/ibms390x.h (LINKER):
781 * m/macppc.h (LINKER) [GNU_LINUX]:
782 * s/aix4-2.h (ORDINARY_LINK):
783 * s/cygwin.h (LINKER):
784 * s/darwin.h (ORDINARY_LINK):
785 * s/gnu.h (ORDINARY_LINK):
786 * s/netbsd.h (LINKER):
787 * s/usg5-4.h (ORDINARY_LINK):
788 Move to configure.
789
7f34aec3
GM
790 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
791
754790b6
CY
7922010-05-18 Chong Yidong <cyd@stupidchicken.com>
793
794 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
795 prevent stack overflow if number of arguments is too large
796 (Bug#6214).
797
161e44d1
JB
7982010-05-18 Juanma Barranquero <lekktu@gmail.com>
799
800 * charset.c (load_charset_map_from_file): Don't call close after fclose.
801
be4ff9da
GM
8022010-05-18 Glenn Morris <rgm@gnu.org>
803
9539dc5d
GM
804 * s/gnu-linux.h: Combine two conditionals.
805
806 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
807 $(POST_ALLOC_OBJ).
808
40dc6bf4
GM
809 * Makefile.in (RALLOC_OBJ): New, set by configure.
810 (rallocobj): Replace with the previous variable.
811 (otherobj): Use $RALLOC_OBJ.
812
813 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
814 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
815
be4ff9da
GM
816 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
817 (gmallocobj, vmlimitobj): Replace with previous two variables.
818 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
819
16455a85
GM
8202010-05-17 Glenn Morris <rgm@gnu.org>
821
822 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
823 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
824
5fdb7468
GM
8252010-05-16 Glenn Morris <rgm@gnu.org>
826
7ca1f3f9
GM
827 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
828
7541dad5
GM
829 * Makefile.in (clean): Get rid of HAVE_NS conditional.
830
da53fab9
GM
831 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
832 trailing "/".
833
b02a6645
GM
834 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
835 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
836
8877ca0f
GM
837 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
838 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
839 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
840 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
841 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
842
5fdb7468
GM
843 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
844 Remove ${STARTFLAGS}, nothing ever sets it.
845
95adb4b1
DN
8462010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
847
848 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
849
676b6304
GM
8502010-05-16 Glenn Morris <rgm@gnu.org>
851
9beab9ce
GM
852 * Makefile.in (LIBX_BASE): Always define.
853
8a95f0e7
GM
854 * Makefile.in (LIBX_OTHER): Move out of cpp section.
855
676b6304
GM
856 * Makefile.in (LIBXT): Always define.
857
6e546d18
GM
8582010-05-15 Glenn Morris <rgm@gnu.org>
859
4235ca47 860 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 861
6e546d18
GM
862 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
863 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
864
8c5ff6dd
KR
8652010-05-15 Ken Raeburn <raeburn@raeburn.org>
866
560bb7ae 867 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
868 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
869
8b4eb796
KR
870 * emacs.c (main): Initialize initial-environment and
871 process-environment before generating from env, not after.
872
8c5ff6dd
KR
873 Handle --version reasonably in CANNOT_DUMP configuration.
874 * emacs.c (emacs_version, emacs_copyright): New string variables.
875 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
876 (syms_of_emacs): Defvar them, and initialize them from the C
877 string variables.
878 (main): If initialization hasn't been done, print initial version
879 info from the C strings, instead of starting an interactive session.
880
dbd3f723
EZ
8812010-05-15 Eli Zaretskii <eliz@gnu.org>
882
d20e1419
EZ
883 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
884 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
885 (bidi_paragraph_init): Remove redundant assertion that we are at
886 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
887
888 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
889 (syms_of_xdisp): Defsubr it.
890
d36fe237
EZ
891 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
892
dbd3f723
EZ
893 * Makefile.in: Fix MSDOS-related comments.
894
02be533b
GM
8952010-05-15 Glenn Morris <rgm@gnu.org>
896
1a82cca9
GM
897 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
898 (really-lwlib, really-oldXMenu): Always define.
899 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
900
3df7b338
GM
901 * Makefile.in: Simplify cpp conditional.
902
2b5f541b
GM
903 * Makefile.in (${ns_appdir}): Simplify using umask.
904
02be533b
GM
905 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
906
4e2db1fe
SM
9072010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
908
909 * eval.c (specbind): Remove left-over duplicate test.
910 Disallow let-binding frame-local vars. Add comment.
911
4b292a22
EZ
9122010-05-14 Eli Zaretskii <eliz@gnu.org>
913
2fe72643 914 Make the cache of bidi iterator states dynamically allocated.
1edbd309 915 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
916 (bidi_init_it): Call it.
917 (bidi_cache_iterator_state): Enlarge the cache if needed.
918
4e2db1fe 919 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
920 bidi_get_next_char_visually. All callers changed.
921
82ebc97b
KH
9222010-05-14 Kenichi Handa <handa@m17n.org>
923
924 * dispextern.h (struct composition_it): New member reversed_p.
925
926 * composite.c (composition_compute_stop_pos): Search backward if
927 ENDPOS < CHARPOS.
928 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
929 Set CMP_IT->reversed_p.
b4b6e17e 930 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 931
4e2db1fe
SM
932 * xdisp.c (set_iterator_to_next):
933 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
934 scanning backward. Call composition_compute_stop_pos if scan
935 direction is changed.
936 (next_element_from_buffer): Call composition_compute_stop_pos with
937 negative ENDPOS if we are scanning backward.
938 (next_element_from_composition): Pay attention to
939 IT->cmp_it.reversed_p.
940
0e5d7800
KH
9412010-05-14 Kenichi Handa <handa@m17n.org>
942
560bb7ae 943 * font.c (font_range): Return the range for the font found at first.
0e5d7800 944
cb027b32
GM
9452010-05-14 Glenn Morris <rgm@gnu.org>
946
177b0288
GM
947 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
948
fbc00890
GM
949 * Makefile.in (mktime, X11, register): Move undefs to configure.
950
f14d1dfd
GM
951 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
952 (MSDOS_X_OBJ): New variable.
953 (MSDOS_SUPPORT_REAL): New constant.
954 (MSDOS_SUPPORT): Set as a variable, not with cpp.
955 (obj): Use MSDOS_X_OBJ.
956 (lisp): Use MSDOS_SUPPORT as a variable.
957
11842bd8
GM
958 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
959 (GPM_MOUSE_SUPPORT): Now it's a constant.
960 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
961 not cpp.
962
489d31a4 963 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 964 (ns_appresdir): Remove, unused.
e20f1f07 965
489d31a4
GM
966 * Makefile.in (SHELL): Move outside cpp section.
967
cb027b32
GM
968 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
969
5a903aa9
GM
9702010-05-13 Glenn Morris <rgm@gnu.org>
971
3369c79f
GM
972 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
973 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
974
d5e982a6
GM
975 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
976 HAVE_WINDOW_SYSTEM must be too.
977
6192e163
GM
978 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
979 (lisp): Remove WINNT_SUPPORT.
980
472c5d6b
GM
981 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
982 Let configure set these variables (to empty) in this case as well.
983
0116466b
GM
984 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
985 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
986
5a903aa9
GM
987 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
988 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
989 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
990 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
991 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 992 the values output by configure.
5a903aa9
GM
993 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
994
1a0d7c06
GM
9952010-05-12 Glenn Morris <rgm@gnu.org>
996
b5457f14
GM
997 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
998 (LINKER_WAS_SPECIFIED): Remove.
999
1a0d7c06
GM
1000 * Makefile.in (LIB_GCC): Set using configure, not cpp.
1001 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
1002 * m/arm.h (LIB_GCC) [GNU_LINUX]:
1003 * s/cygwin.h (LIB_GCC):
1004 * s/freebsd.h (LIB_GCC):
1005 * s/gnu-linux.h (LIB_GCC):
1006 * s/msdos.h (LIB_GCC):
1007 * s/netbsd.h (LIB_GCC):
1008 Move to configure.
1009
3ffd4615 10102010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
1011
1012 * ftfont.c: Fix incorrect parentheses of #if condition for
1013 definining M17N_FLT_USE_NEW_FEATURE.
1014
acddf8ae
GM
10152010-05-11 Glenn Morris <rgm@gnu.org>
1016
1017 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
1018 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
1019
ae5e04fa
EZ
10202010-05-10 Eli Zaretskii <eliz@gnu.org>
1021
1022 * xdisp.c (init_iterator): Don't turn on bidi reordering in
1023 unibyte buffers. See
1024 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
1025
7490175b
GM
10262010-05-10 Glenn Morris <rgm@gnu.org>
1027
97efb629
GM
1028 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
1029 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
1030 (LIBES): Use LIBS_SYSTEM as a variable.
1031 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
1032 * s/aix4-2.h (LIBS_SYSTEM):
1033 * s/freebsd.h (LIBS_SYSTEM):
1034 * s/hpux10-20.h (LIBS_SYSTEM):
1035 * s/sol2-6.h (LIBS_SYSTEM):
1036 * s/unixware.h (LIBS_SYSTEM):
1037 Move to configure.
1038
7490175b
GM
1039 * s/aix4-2.h (MAIL_USE_LOCKF):
1040 * s/bsd-common.h (MAIL_USE_FLOCK):
1041 * s/darwin.h (MAIL_USE_FLOCK):
1042 * s/gnu-linux.h (MAIL_USE_FLOCK):
1043 * s/irix6-5.h (MAIL_USE_FLOCK):
1044 * s/template.h (MAIL_USE_FLOCK):
1045 Move to configure.
1046
0235128c 10472010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
1048
1049 * Version 23.2 released.
1050
0235128c 10512010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
1052
1053 * composite.c (autocmp_chars): Save point as marker before calling
1054 auto-composition-function (Bug#5984).
1055
1056 * lisp.h (restore_point_unwind): Add prototype.
1057
1058 * fileio.c (restore_point_unwind): Remove static attribute.
1059
0235128c 10602010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
1061
1062 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
1063 new feature of libotf and m17n-flt.
0235128c
SM
1064 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
1065 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
1066 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
1067 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
1068 that OUT is NULL. Use OTF_drive_gsub_with_log and
1069 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
1070 OTF_drive_gpos.
1071 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
1072 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
1073 Setup mflt_enable_new_feature and mflt_try_otf.
1074
4721152c
J
10752010-05-08 Jan Djärv <jan.h.d@swipnet.se>
1076
1077 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
1078
1079 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
1080 box and toolbar (Bug #6139).
1081 (xg_create_tool_bar): Remove comment (Bug #6139).
1082 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
1083 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
1084
ee0a16cf
JB
10852010-05-08 Juanma Barranquero <lekktu@gmail.com>
1086
1087 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
1088 Update dependencies.
1089
96d79611
EZ
10902010-05-08 Eli Zaretskii <eliz@gnu.org>
1091
1092 * fringe.c (update_window_fringes): Set up truncation bitmaps for
1093 R2L lines.
1094
40c17879
GM
10952010-05-08 Glenn Morris <rgm@gnu.org>
1096
7b42b29f
GM
1097 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
1098
40c17879
GM
1099 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
1100 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
1101 (termcapobj): Replace with TERMCAP_OBJ.
1102 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
1103 (LIBES): Use LIBS_TERMCAP as a variable.
1104
1105 * s/freebsd.h (osreldate.h): No longer include, since this file
1106 does not use __FreeBSD_version any more.
1107
1108 * s/aix4-2.h (TERMINFO):
1109 * s/cygwin.h (TERMINFO):
1110 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1111 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
1112 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1113 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1114 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
1115 * s/irix6-5.h (TERMINFO):
1116 * s/netbsd.h (LIBS_TERMCAP):
1117 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
1118 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
1119 * s/usg5-4.h (TERMINFO):
1120 Move to configure.
1121
94b612ad
SM
11222010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
1123
1124 * eval.c (unbind_to): Don't unbind a local binding into the global
1125 binding when the local binding disappeared. Inversely, don't unbind
1126 a global binding into a newly created local binding.
1127 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
1128 can specify the frame to use, when applicable. Adjust callers.
1129
15e12598 11302010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 1131 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
1132
1133 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
1134
f724825e
EZ
11352010-05-07 Eli Zaretskii <eliz@gnu.org>
1136
5cba3209
EZ
1137 * w32fns.c: Include w32.h.
1138 (Fw32_shell_execute): Decode the error message before passing it
1139 to `error'. (Bug#6126)
1140
d16bdfc3
EZ
1141 * msdos.c (dos_set_window_size):
1142 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
1143 instead of `XSYMBOL (foo)->value'.
1144
59d93e87
EZ
11452010-05-07 Eli Zaretskii <eliz@gnu.org>
1146
9fdec8bc
EZ
1147 Fix the MS-DOS build, broken by autoconfiscation.
1148
1149 * Makefile.in: Don't use Make-style comments past the "start of
1150 cpp stuff" line.
1151 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
1152
1153 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
1154 edited directly by msdos/sed1v2.inp).
f724825e 1155
2f86b22b
GM
11562010-05-07 Glenn Morris <rgm@gnu.org>
1157
1158 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
1159 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
1160 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
1161 move out of cpp section.
1162 * s/freebsd.h (LD_SWITCH_SYSTEM):
1163 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
1164 * s/netbsd.h (LD_SWITCH_SYSTEM):
1165 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
1166
49ebbd65
DN
11672010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
1168
1169 Define LIB_STANDARD and START_FILES using autoconf.
1170 * s/usg5-4.h (LIB_STANDARD):
1171 * s/netbsd.h (START_FILES):
1172 * s/irix6-5.h (LIB_STANDARD):
1173 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
1174 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
1175 * s/freebsd.h (START_FILES):
1176 * s/darwin.h (START_FILES):
1177 * s/cygwin.h (START_FILES):
1178 * s/aix4-2.h (LIB_STANDARD):
1179 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
1180 * Makefile.in (STARTFILES): Rename to START_FILES, define using
1181 autoconf, not cpp.
1182
d43c06d6
DN
11832010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
1184
28823648
DN
1185 Remove NEED_BSDTTY and NEED_UNISTD_H.
1186 * s/hpux10-20.h (NEED_BSDTTY): Remove.
1187 * s/aix4-2.h (NEED_UNISTD_H): Remove.
1188 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
1189 <sys/ptyio.h> and <unistd.h>.
1190
aca00430
DN
1191 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
1192
d43c06d6
DN
1193 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
1194 * s/gnu.h (START_FILES): Remove empty definition.
1195
3e56b11d
JD
11962010-05-06 Jan Djärv <jan.h.d@swipnet.se>
1197
1198 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
1199
e3cf0cde
GM
12002010-05-06 Glenn Morris <rgm@gnu.org>
1201
1202 * Makefile.in (CPP, LN_S): Remove unused variables.
1203
774b9a60
SM
12042010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
1205
1206 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
1207
4ab92842
LM
12082010-05-05 Lawrence Mitchell <wence@gmx.li>
1209
1210 * m/sparc.h: Fix typo in earlier change.
1211
178f2507
SM
12122010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
1213
1214 Misc tweaks.
1215 * eval.c (Fdefvaralias): Remove unintended nested if.
1216 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
1217
80f00217 12182010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
1219
1220 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
1221
ef03a4e6
DN
12222010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
1223
58eb6cf0
DN
1224 Remove BSD_PGRPS.
1225 * s/bsd-common.h (BSD_PGRPS): Remove undef.
1226 * s/gnu-linux.h (BSD_PGRPS): Remove.
1227 * term.c (dissociate_if_controlling_tty):
1228 * sysdep.c (narrow_foreground_group, widen_foreground_group)
1229 (init_sys_modes, reset_sys_modes):
1230 * emacs.c (main):
1231 * callproc.c (Fcall_process, child_setup): Remove code depending
1232 on BSD_PGRPS.
1233
ef03a4e6
DN
1234 Remove POSIX_SIGNALS.
1235 * s/usg5-4.h (POSIX_SIGNALS):
1236 * s/netbsd.h (POSIX_SIGNALS):
1237 * s/msdos.h (POSIX_SIGNALS):
1238 * s/ms-w32.h (POSIX_SIGNALS):
1239 * s/hpux11.h (POSIX_SIGNALS):
1240 * s/gnu.h (POSIX_SIGNALS):
1241 * s/gnu-linux.h (POSIX_SIGNALS):
1242 * s/freebsd.h (POSIX_SIGNALS):
1243 * s/darwin.h (POSIX_SIGNALS):
1244 * s/cygwin.h (POSIX_SIGNALS):
1245 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
1246 * s/unixware.h:
1247 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
1248 * process.c (create_process):
1249 * syssignal.h:
1250 * sysdep.c (wait_for_termination, init_signals):
1251 * process.c (create_process):
1252 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
1253 remove all code that assumes the contrary.
1254
49628785
GM
12552010-05-04 Glenn Morris <rgm@gnu.org>
1256
27a2cdfc
GM
1257 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
1258 variable.
1259 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
1260 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
1261 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
1262 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
1263 LD_SWITCH_SYSTEM_tmp.
1264 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
1265 New variables, set by configure.
1266
eb21eab5
GM
1267 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
1268 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
1269 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
1270 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
1271 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
1272
49628785
GM
1273 * s/aix4-2.h (C_SWITCH_SYSTEM):
1274 * m/alpha.h (C_SWITCH_MACHINE):
1275 Move to configure.in.
1276 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
1277 New variables, set by configure.
1278 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
1279 $c_switch_machine and $c_switch_system.
1280
7dff330b
DN
12812010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
1282
1283 * s/hpux10-20.h (LIB_STANDARD): New definition.
1284 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
1285 on it, not used anymore.
1286
53967e09
CY
12872010-05-03 Chong Yidong <cyd@stupidchicken.com>
1288
1289 * eval.c (internal_condition_case_n): Rename from
1290 internal_condition_case_2.
1291 (internal_condition_case_2): New function.
1292
1293 * xdisp.c (safe_call): Use internal_condition_case_n.
1294
1295 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
1296 (internal_delete_file, Frename_file): Callers changed.
1297
1298 * buffer.c (Fkill_buffer):
1299 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
1300
1301 * lisp.h: Update prototypes.
1302
3dee6fdb
GM
13032010-05-03 Glenn Morris <rgm@gnu.org>
1304
1305 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
1306 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
1307 (LIBXT): Set with configure, not cpp.
1308 (LIBX): Remove.
1309 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
1310
a101e0fb
DN
13112010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
1312
1313 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
1314 The FreeBSD is not needed, the default works, Solaris version is
1315 not needed, and the remaining case is not supported by configure.
1316
f63d0028
JD
13172010-05-02 Jan Djärv <jan.h.d@swipnet.se>
1318
1319 * xsmfns.c (CHDIR_OPT): New define.
1320 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
1321 restarting emacs.
1322
1323 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
1324 shut_down_emacs.
1325
1326 * emacs.c (USAGE1): Mention --chdir.
1327 (main): Handle --chdir.
1328 (standard_args): Add --chdir.
1329 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
1330 #5552).
1331
e4814a9f
DN
13322010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
1333
cd03c74a
DN
1334 Remove LD_SWITCH_MACHINE.
1335 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
1336 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
1337
c3a398a1
DN
1338 Clean up IRIX code.
1339 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
1340 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
1341
87e7285c
DN
1342 Clean up AIX code.
1343 * m/ibmrs6000.inp: Remove file, unused.
1344 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
1345 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
1346 definition ...
1347 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
1348
80f00217
JB
1349 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
1350 unused.
e4814a9f 1351
59ca28de
EZ
13522010-05-01 Eli Zaretskii <eliz@gnu.org>
1353
197daef4
EZ
1354 Emulate POSIX_SIGNALS on MS-Windows.
1355
1356 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
1357 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
1358
1359 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
1360 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
1361 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
1362
80f00217
JB
1363 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
1364 New stubs.
197daef4 1365
af7c7572
EZ
1366 Miscellaneous fixes of bidi display.
1367
59ca28de
EZ
1368 * xdisp.c (find_row_end): New function, refactored from display_line.
1369 (display_line): Use it.
017ea819
EZ
1370 (extend_face_to_end_of_line): In almost-filled rows, extend only
1371 if the row is R2L and not continued.
166e930d 1372 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 1373 Preserve overlay and string info in row->end.
166e930d
EZ
1374 (insert_left_trunc_glyphs): Support addition of left truncation
1375 glyphs to R2L rows.
b47e0dcf 1376 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
1377 glyph between adjacent windows. Fix a crash when a display string
1378 is continued to the next line. Don't return zero if cursor was
1379 found by `cursor' property of a display string.
b47e0dcf
EZ
1380 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
1381 test for that explicitly.
59ca28de 1382
7acac9f4
GM
13832010-05-01 Glenn Morris <rgm@gnu.org>
1384
1385 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
1386 for clarity.
1387 (OTHER_OBJ): Remove.
1388 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
1389 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
1390
45841e65
KK
13912010-05-01 Karel Klíč <kklic@redhat.com>
1392
1393 * fileio.c (Ffile_selinux_context): Context functions may return null.
1394
afc61943
DN
13952010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
1396
80f00217 1397 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 1398
5a1bb006
GM
13992010-04-30 Glenn Morris <rgm@gnu.org>
1400
1401 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
1402 (OTHER_OBJ): Define as a separate variable, for clarity.
1403
210af043
J
14042010-04-30 Jan Djärv <jan.h.d@swipnet.se>
1405
1406 * xsettings.c: include limits.h and update file comment.
1407
0a7df391
GM
14082010-04-30 Glenn Morris <rgm@gnu.org>
1409
d5096f16
GM
1410 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
1411 Set with configure, not cpp.
1412 (LIBW): Remove, replace with $TOOLKIT_LIBW.
1413
7eb1ac33
GM
1414 * Makefile.in (mallocobj): Remove.
1415 (otherobj): Simplify using @OTHER_OBJ@.
1416
517d086b
GM
1417 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
1418 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
1419 Don't bother making nsgui.h dependency platform-specific.
1420
0a7df391
GM
1421 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
1422
d6d23852
SM
14232010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
1424
d2630aef
SM
1425 * process.c (read_process_output, exec_sentinel): Don't burp if the
1426 sentinel/filter kills the current buffer (bug#6060).
1427
f9dddf52 1428 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
1429 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
1430 Remove unused var `args'.
1431 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
1432 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
1433 * doc.c (store_function_docstring): Use XSETCAR.
1434
f1e3642a
GM
14352010-04-28 Glenn Morris <rgm@gnu.org>
1436
faf535f8
GM
1437 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
1438 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
1439
c40f9449
GM
1440 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
1441
658f86ca
GM
1442 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
1443 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
1444
bc0b5f61
GM
1445 * Makefile.in (FONT_OBJ): New, set by configure.
1446 (FONT_DRIVERS): Use $FONT_OBJ.
1447
294c50a0
GM
1448 * Makefile.in (LIBXMU): Set with configure, not cpp.
1449 * s/aix4-2.h (LIBXMU):
1450 * s/hpux10-20.h (LIBXMU):
1451 Remove definition, now set in configure.
1452
e6ec4e99
GM
1453 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
1454
f1e3642a
GM
1455 * m/amdx86-64.h [i386]: Move this test to configure.in.
1456
c6ea2936
GM
14572010-04-27 Glenn Morris <rgm@gnu.org>
1458
8fdac2c3
GM
1459 * Makefile.in (LIBXTR6): Set with configure, not cpp.
1460 * s/unixware.h (NEED_LIBW): Remove definition.
1461
986fb647
GM
1462 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
1463 (TOOLKIT_LIBW): New, set by configure.
1464 (@X_TOOLKIT_TYPE@): No longer define it.
1465
c6ea2936
GM
1466 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
1467 (MOTIF_LIBW): Set with configure, not cpp.
1468 * s/aix4-2.h (LIB_MOTIF):
1469 * s/gnu-linux.h (LIB_MOTIF):
1470 * s/unixware.h (LIB_MOTIF): Move to configure.in.
1471
aaa36002
DN
14722010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
1473
1474 Reduce CPP usage.
1475 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
1476 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
1477 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
1478 definitions and undefs. Inline definitions in the only user.
1479 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 1480
b678dd8b
GM
14812010-04-27 Glenn Morris <rgm@gnu.org>
1482
76cda504
GM
1483 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
1484 since the defaults (set by the system file) are fine in most cases.
1485 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
1486 * m/ibms390x.h (START_FILES, LIB_STANDARD):
1487 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
1488 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
1489 Remove definitions, since they are set correctly in s/gnu-linux.h.
1490 * s/freebsd.h (START_FILES, LIB_STANDARD):
1491 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
1492 * s/hpux10-20.h (START_FILES):
1493 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
1494 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
1495
b678dd8b
GM
1496 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
1497 (MOTIF_LIBW): Use $LIBXP.
1498 (otherobj): Use $WIDGET_OBJ.
1499
9452ded1
DN
15002010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
1501
7e10844c
DN
1502 * Makefile.in (LIBS_MACHINE): Remove, unused.
1503
9452ded1
DN
1504 Use autoconf instead of cpp for LIB_MATH.
1505 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
1506 * s/cygwin.h (LIB_MATH): Likewise.
1507 * Makefile.in (LIB_MATH): Do not define with cpp.
1508 (LIBES): Use autoconf for LIB_MATH.
1509
fcebfc6a
KH
15102010-04-26 Kenichi Handa <handa@m17n.org>
1511
1512 * composite.c (Ffind_composition_internal): Fix the return value
1513 for an automatic composition.
1514
39e2ad1b
DN
15152010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
1516
1517 Remove all NO_ARG_ARRAY uses.
1518 * fns.c (concat2, concat3, nconc2):
1519 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
1520 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
1521 * m/xtensa.h (NO_ARG_ARRAY):
1522 * m/template.h (NO_ARG_ARRAY):
1523 * m/sparc.h (NO_ARG_ARRAY):
1524 * m/sh3.h (NO_ARG_ARRAY):
1525 * m/mips.h (NO_ARG_ARRAY):
1526 * m/macppc.h (NO_ARG_ARRAY):
1527 * m/iris4d.h (NO_ARG_ARRAY):
1528 * m/intel386.h (NO_ARG_ARRAY):
1529 * m/ibms390x.h (NO_ARG_ARRAY):
1530 * m/ibms390.h (NO_ARG_ARRAY):
1531 * m/ibmrs6000.h (NO_ARG_ARRAY):
1532 * m/ia64.h (NO_ARG_ARRAY):
1533 * m/hp800.h (NO_ARG_ARRAY):
1534 * m/arm.h (NO_ARG_ARRAY):
1535 * m/amdx86-64.h (NO_ARG_ARRAY):
1536 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
1537
adf4f59c
EZ
15382010-04-25 Eli Zaretskii <eliz@gnu.org>
1539
6bdf5d65
EZ
1540 * xdisp.c (display_line): Don't assume 2nd call to
1541 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
1542 (iterate_out_of_display_property): New function, body from pop_it.
1543 (pop_it): Use it.
adf4f59c 1544
dfbbda83
GM
15452010-04-24 Glenn Morris <rgm@gnu.org>
1546
1547 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
1548 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
1549 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
1550 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
1551
2d4018aa
EZ
15522010-04-24 Eli Zaretskii <eliz@gnu.org>
1553
a49884a6
EZ
1554 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
1555 use `get_next_display_element' and `set_iterator_to_next' to
1556 advance to the next character, when looking for the character that
1557 begins the next row.
1558
76db6fcc 1559 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
1560 definition of "struct Lisp_Symbol".
1561
70eab5c1
GM
15622010-04-24 Glenn Morris <rgm@gnu.org>
1563
1564 * Makefile.in (CRT_DIR): New variable, set by configure.
1565 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
1566 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
1567
1ad4cc3d
DN
15682010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1569
e769f484
DN
1570 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
1571
4196ff33
DN
1572 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
1573
879b0ee4
DN
1574 Remove redundant flags.
1575 * s/freebsd.h (C_SWITCH_SYSTEM):
1576 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
1577 * s/netbsd.h (C_SWITCH_SYSTEM):
1578 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
1579 of these.
1580
03cbbcb8
DN
1581 Simplify m/intel386.h.
1582 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
1583 user: ecrt0.c.
1584 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
1585 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
1586 the only user: s/unixware.h.
1587 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
1588 from m/intel386.h.
1589 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
1590 moved here from m/intel386.h.
1591
1ad4cc3d
DN
1592 * m/mips.h: Remove #if 0 code.
1593
8785b888
EZ
15942010-04-23 Eli Zaretskii <eliz@gnu.org>
1595
728588cc
EZ
1596 Fix display of composed characters from L2R scripts in bidi buffers.
1597 * xdisp.c (set_iterator_to_next, next_element_from_composition):
1598 After advancing IT past the composition, resync the bidi iterator
1599 with IT's position. (Bug#5977)
1600
a63f80b4
DN
16012010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1602
1603 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
1604 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
1605
ff5dec5c
SM
16062010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
1607
1608 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
1609
8785b888
EZ
16102010-04-23 Eli Zaretskii <eliz@gnu.org>
1611
58ccf243 1612 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
1613 * xdisp.c (pop_it): When the stack is popped after displaying
1614 from a string, bidi-iterate to exit from the text portion covered
1615 by the `display' property or overlay. (Bug#5988, bug#5920)
1616
feeb1604
DN
16172010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1618
8e324eb6
DN
1619 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
1620 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
1621
809fcaba
DN
1622 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
1623 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
1624
ed710380
DN
1625 Simplify STARTFILES definition.
1626 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
1627 relying on Makefile.in to define it.
1628 * s/cygwin.h (START_FILES): Likewise.
1629 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
1630
feeb1604
DN
1631 Clean up Solaris code.
1632 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
1633 (LIB_MOTIF): Remove, configure takes care of this.
1634 (NOT_USING_MOTIF): Remove, unused.
1635 * xrdb.c: Remove #if 0-ed #include.
1636 (SYSV): Remove conditional for old SysV.
1637 * sysdep.c (closedir): Remove conditional code for Solaris,
1638 Solaris has closedir.
1639
a0d0b563
JD
16402010-04-22 Jan Djärv <jan.h.d@swipnet.se>
1641
1642 * xsettings.c (read_and_apply_settings): Check if current_font is
1643 NULL before strcmp (Bug#6001).
1644
56bae7c7
DN
16452010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
1646
1647 Clean up HP-UX files.
1648 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
1649 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
1650 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
1651 * s/hpux10-20.h: ... to the only user, here.
1652
372b7a95
EZ
16532010-04-21 Eli Zaretskii <eliz@gnu.org>
1654
1655 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
1656 use buffer-local values of paragraph-start and paragraph-separate.
1657 <paragraph_start_re, paragraph_separate_re>: Rename from
1658 fallback_paragraph_start_re and fallback_paragraph_separate_re.
1659 (Bug#5992)
1660
f904c0f9
JD
16612010-04-21 Jan Djärv <jan.h.d@swipnet.se>
1662
1663 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
1664 current_tool_bar_style are new.
1665 (store_config_changed_event): Rename from store_font_changed_event.
1666 (XSETTINGS_TOOL_BAR_STYLE): New define.
1667 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
1668 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
1669 HAVE_XFT.
1670 (something_changedCB): store_font_changed_event is now
1671 store_config_changed_event
1672 (parse_settings): Rename from parse_xft_settings. Read
1673 non-xft xsettings outside #ifdef HAVE_XFT.
1674 (read_settings): Renamed from read_xft_settings.
1675 (apply_xft_settings): Take current settings as parameter. Do not
1676 call read_(xft)_settings.
1677 (read_and_apply_settings): New function.
1678 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
1679 read_and_apply_settings if there are settings to be read.
1680 (init_xsettings): Renamed from init_xfd_settings.
1681 Call read_and_apply_settings unconditionally.
1682 (xsettings_initialize): Call init_xsettings.
1683 (Ftool_bar_get_system_style): New function.
1684 (syms_of_xsettings): Define Qmonospace_font_name and
1685 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 1686 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 1687 dynamic-setting.
31a01b90 1688 Move misplaced HAVE_GCONF
f904c0f9
JD
1689
1690 * xsettings.h (Ftool_bar_get_system_style): Declare.
1691
1692 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
1693 Qtext, Qboth, Qboth_horiz are new.
1694 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
1695 Vtool_bar_style, tool_bar_max_label_size.
1696
1697 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
1698
1699 * keyboard.c: QClabel is new.
1700 (parse_tool_bar_item): Take out QClabel from tool bar items.
1701 Try to construct a label if ther is no QClabel.
1702 (syms_of_keyboard): Intern :label as QClabel.
1703
1704 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
1705 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
1706 New.
1707
1708 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
1709 dynamic-setting.el.
1710
1711 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
1712 (xg_make_tool_item, xg_show_toolbar_item): New function.
1713 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
1714 Call xg_make_tool_item to make a tool bar item.
1715 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
1716
1717 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
1718 into account for toolbars.
1719
c632dfda
JD
17202010-04-21 Jan Djärv <jan.h.d@swipnet.se>
1721
1722 * data.c (make_blv): Declarations before code (Bug#5993).
1723
10efe302
GM
17242010-04-21 Glenn Morris <rgm@gnu.org>
1725
1726 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
1727 Define using autoconf, not cpp.
1728 (LIBXSM): New variable, set by autoconf.
1729 (LIBXT): Use $LIBXSM.
1730
4285ac5a
DN
17312010-04-21 Dan Nicolaescu <local_user@dannlt>
1732
3ec759e7
DN
1733 Remove NOMULTIPLEJOBS, unused.
1734 * s/template.h (NOMULTIPLEJOBS):
1735 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
1736
4285ac5a
DN
1737 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
1738 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
1739 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
1740 detects -znocombreloc and passes it to the linker
1741 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
1742
2807228d
GM
17432010-04-21 Glenn Morris <rgm@gnu.org>
1744
1745 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
1746
574c05e2
KK
17472010-04-21 Karel Klíč <kklic@redhat.com>
1748
1749 * Makefile.in (LIBSELINUX_LIBS): New.
1750 (LIBES): Add $LIBSELINUX_LIBS.
1751 * eval.c, lisp.h (call7): New function.
1752 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
1753 (Ffile_selinux_context, Fset_file_selinux_context):
1754 New functions.
1755 (Fcopy_file): New parameter preserve-selinux-context.
1756 (Frename_file): Preserve selinux context when renaming by copy-file.
1757
91eac4bb 17582010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 1759 Eli Zaretskii <eliz@gnu.org>
91eac4bb 1760
50426a04
JB
1761 Don't depend on cm.c or termcap.c on Windows, use stubs.
1762 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
1763 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
1764 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
1765 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
1766 (sys_tputs, sys_tgetstr): New stubs.
1767 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
1768 (tputs, tgetstr): New; define to sys_*.
91eac4bb 1769
938efb77
JB
17702010-04-20 Juanma Barranquero <lekktu@gmail.com>
1771
1772 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
1773
b4bf28b7
SM
17742010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1775
8b1e1112
SM
1776 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
1777 Just signal a warning rather than an error when inside a let.
1778 (Fmake_variable_frame_local): Add the same test.
1779
933ac235
SM
1780 * font.c (syms_of_font): Make the style table vars read-only.
1781
b4bf28b7
SM
1782 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
1783 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
1784
1785 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
1786
93d68d0c
EZ
17872010-04-20 Eli Zaretskii <eliz@gnu.org>
1788
1789 Fix R2L paragraph display on TTY.
1790
1791 * xdisp.c (unproduce_glyphs): New function.
1792 (display_line): Use it when produced glyphs are discarded from R2L
1793 glyph rows.
1794 (append_composite_glyph): In R2L rows, prepend the glyph rather
1795 than appending it.
1796
1797 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
1798 rather than append it. Set up the resolved_level and bidi_type
1799 attributes of the appended glyph.
283ccc18
EZ
1800 (produce_special_glyphs): Mirror the backslash continuation
1801 character in R2L lines.
93d68d0c 1802
283ccc18 1803 Implement display of R2L paragraphs in GUI sessions.
26cdf528 1804
283ccc18
EZ
1805 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
1806 append_stretch_glyph.
1807 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
1808 off-by-one error in computing x at end of text in the row.
1809 (append_stretch_glyph): In reversed row, prepend the glyph rather
1810 than append it. Set resolved_level and bidi_type of the glyph.
1811 (extend_face_to_end_of_line): If the row is reversed, prepend a
1812 stretch glyph whose width is such that the rightmost glyph will be
1813 drawn at the right margin of the window. Fix off-by-one error on
1814 TTY frames in testing whether a line needs face extension. Fix
1815 face extension at ZV. If this is the last glyph row, use
1816 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
1817 region face.
1818 (set_cursor_from_row, display_line): Use
26cdf528
EZ
1819 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
1820 row->continuation_lines_width.
283ccc18
EZ
1821 (next_element_from_buffer): Don't call bidi_paragraph_init if we
1822 are at ZV. Fixes a crash when reseated to ZV by
1823 try_window_reusing_current_matrix.
45903529
EZ
1824 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
1825 which happens with R2L glyph rows. Fixes a crash when inserting a
1826 character at end of an R2L line.
283ccc18
EZ
1827 (set_cursor_from_row): Don't be fooled by truncated rows: don't
1828 treat them as having zero-width characters. Improve comments.
1829 Don't reverse pos_before and pos_after for reversed glyph rows.
1830 Set cursor.x to negative value when the cursor might be on the
1831 left fringe.
1832 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
1833 left fringe, not the right one.
f951a506
EZ
1834 (notice_overwritten_cursor, draw_phys_cursor_glyph)
1835 (erase_phys_cursor): For reversed cursor_row, support cursor on
1836 the left fringe.
1837
283ccc18
EZ
1838 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
1839 of continuation indicators on the fringes.
1840 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
1841 left fringe.
1842
f951a506
EZ
1843 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
1844 draw cursor on the left fringe.
1845
1846 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
1847 cursor on the left fringe.
1848
f951a506
EZ
1849 * dispnew.c (update_text_area): Handle reversed desired rows when
1850 the cursor is on the left fringe.
1851 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
1852 below, not by 0, for when the cursor is on the left fringe.
1853
3bb49aaf
JD
18542010-04-20 Jan Djärv <jan.h.d@swipnet.se>
1855
1856 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
1857 widget is a scrollbar.
1858
c0be27fd
KH
18592010-04-20 Kenichi Handa <handa@m17n.org>
1860
1861 * charset.c (char_charset): Consider Vcharset_non_preferred_head
1862 only when the arg CHARSET_LIST is nil.
1863
ce5b453a
SM
18642010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1865
1866 Make variable forwarding explicit rather the using special values.
1867 Basically, this makes the structure of buffer-local values and object
1868 forwarding explicit in the type of Lisp_Symbols rather than use
1869 special Lisp_Objects for that. This tends to lead to slightly more
1870 verbose code, but is more C-like, simpler, and makes it easier to make
1871 sure we handled all cases, among other things by letting the compiler
1872 help us check it.
1873 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
1874 Removing forwarding objects.
1875 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
1876 (struct Lisp_Symbol): Make the various forms of variable-forwarding
1877 explicit rather than hiding them inside Lisp_Object "values".
1878 (XFWDTYPE): New macro.
1879 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
1880 (XBUFFER_LOCAL_VALUE): Remove.
1881 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
1882 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
1883 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
1884 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
1885 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
1886 Remove the Lisp_Misc_* header.
1887 (struct Lisp_Buffer_Local_Value): Redefine.
1888 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
1889 (struct Lisp_Misc_Any): Add filler to get the right size.
1890 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
1891 Lisp_Intfwd.
1892 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
1893 (DEFVAR_KBOARD): Allocate a forwarding object.
1894 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
1895 (let_shadows_global_binding_p): New function.
1896 (union Lisp_Val_Fwd): New type.
1897 (make_blv): New function.
1898 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
1899 (store_symval_forwarding, swap_in_global_binding, Fboundp)
1900 (swap_in_symval_forwarding, find_symbol_value, Fset)
1901 (let_shadows_buffer_binding_p, set_internal, default_value)
1902 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
1903 (Fkill_local_variable, Fmake_variable_frame_local)
1904 (Flocal_variable_p, Flocal_variable_if_set_p)
1905 (Fvariable_binding_locus):
1906 * xdisp.c (select_frame_for_redisplay):
1907 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
1908 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
1909 * frame.c (store_frame_param):
1910 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
1911 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
1912 value structure.
1913 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
1914 (clone_per_buffer_values): Only adjust markers into the current buffer.
1915 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
1916 (Fbuffer_local_value, set_buffer_internal_1)
1917 (swap_out_buffer_local_variables):
1918 Adapt to the new symbol value structure.
1919 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
1920 (defvar_per_buffer): Take a new arg for the fwd object.
1921 (buffer_lisp_local_variables): Return a proper alist (different fix
1922 for bug#4138).
1923 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
1924 (Fgarbage_collect): Don't handle buffer_defaults specially.
1925 (mark_object): Handle new symbol value structure rather than the old
1926 special Lisp_Misc_* objects.
1927 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
1928 * term.c (set_tty_color_mode):
1929 * bidi.c (bidi_initialize): Don't access the ->value field directly.
1930 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
1931 a buffer_local_flags.
1932 * print.c (print_object): Get rid of impossible forwarding objects.
1933
fd3998ff
EZ
19342010-04-19 Eli Zaretskii <eliz@gnu.org>
1935
1936 * bidi.c (bidi_get_type, bidi_get_category)
1937 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
1938 (bidi_type_of_next_char, bidi_level_of_next_char):
1939 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 1940
e42cd1a7
JB
19412010-04-19 Juanma Barranquero <lekktu@gmail.com>
1942
1943 * dired.c (Ffile_attributes): Fix typo in docstring.
1944
6e104790 19452010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
1946
1947 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
1948 NSInteger (Bug#5811).
1949
6e104790 19502010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
1951
1952 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
1953 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
1954
6e104790 19552010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
1956
1957 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
1958
6e104790
SM
19592010-04-19 Chong Yidong <cyd@stupidchicken.com>
1960
1961 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
1962 terminal frames (Bug#5837).
1963
37dcfea0
EZ
19642010-04-19 Eli Zaretskii <eliz@gnu.org>
1965
d1da276f
EZ
1966 * .gdbinit (xsubchartable): New command.
1967
37dcfea0
EZ
19682010-04-19 Eli Zaretskii <eliz@gnu.org>
1969
1970 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 1971 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
1972 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
1973 and
1974 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
1975
e9515805
SM
19762010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
1977
1978 * alloc.c (Fpurecopy): Hash-cons if requested.
1979 (syms_of_alloc): Update purify-flag docstring.
1980
22aa44a8
JD
19812010-04-18 Jan Djärv <jan.h.d@swipnet.se>
1982
1983 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
1984 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
1985
ebb5722e
EZ
19862010-04-17 Eli Zaretskii <eliz@gnu.org>
1987
1988 Fix a crash when an NSM character is inserted at BEGV.
1989
1990 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
1991 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
1992 NEUTRAL_B or UNKNOWN_BT.
1993
0f4442ef
EZ
19942010-04-16 Eli Zaretskii <eliz@gnu.org>
1995
1996 * xdisp.c (set_cursor_from_row): Don't consider possibility of
1997 other rows with cursor unless they are different from this row and
1998 this row is part of a continued line. (Bug#5943)
1999
7d4e45f8
DN
20002010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
2001
2002 * s/freebsd.h: Restore osreldate.h include.
2003 Suggested by Naohiro Aota.
2004
5ba5ec85
J
20052010-04-16 Jan Djärv <jan.h.d@swipnet.se>
2006
2007 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
2008
20af301d
CY
20092010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
2010
2011 * s/cygwin.h: Avoid linking against static libgcc.
2012
a4b000fb
JL
20132010-04-15 Juri Linkov <juri@jurta.org>
2014
2015 * window.c: Add Qscroll_command.
2016 Remove Vscroll_preserve_screen_position_commands.
2017 (window_scroll_pixel_based, window_scroll_line_based): Check the
2018 `scroll-command' property on the last command instead of searching
2019 the last command in Vscroll_preserve_screen_position_commands.
2020 (syms_of_window): Initialize and staticpro `Qscroll_command'.
2021 Put Qscroll_command property on Qscroll_up and Qscroll_down.
2022 (scroll-preserve-screen-position): Doc fix.
2023 (Vscroll_preserve_screen_position_commands): Remove variable.
2024
bc319ba4
DN
20252010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
2026
6bb24457
DN
2027 * xdisp.c (message): Do not use NO_ARG_ARRAY.
2028
19d4c244
DN
20292010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
2030
2031 Reduce cpp use in Makefile.in.
2032 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
2033 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
2034 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
2035 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
2036 (CRT0_COMPILE): Remove, inline it in the only user.
2037
32129746
JL
20382010-04-14 Juri Linkov <juri@jurta.org>
2039
2040 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
2041 `scroll-up-command' and `M-v' from `scroll-down' to
2042 `scroll-down-command'.
2043
9013a7f8
JL
20442010-04-14 Juri Linkov <juri@jurta.org>
2045
2046 * window.c (Vscroll_preserve_screen_position_commands): New variable
2047 with the default value as the list of Qscroll_down and Qscroll_up.
2048 (window_scroll_pixel_based, window_scroll_line_based): Search the
2049 last command in the list Vscroll_preserve_screen_position_commands
2050 instead of comparing with Qscroll_up and Qscroll_down.
2051
4bef8d26
JD
20522010-04-13 Jan Djärv <jan.h.d@swipnet.se>
2053
92848133
JD
2054 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
2055 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
2056 does that.
2057
4bef8d26
JD
2058 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
2059 to zero.
2060
58b963f7
SM
20612010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2062
84164a0d
SM
2063 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
2064
2b0a91e7
SM
2065 Try to solve the problem of spurious EOF chars in long lines of text
2066 sent to interactive subprocesses.
2067 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
2068 (system_process_attributes): Remove unused var `ttotal'.
2069 * process.c (send_process): Don't bother breaking long line with EOF
2070 chars when talking to ttys any more.
2071 (wait_reading_process_output): Output a warning when called in such
2072 a way that it could block without being interruptible.
2073
58b963f7
SM
2074 Try to detect file modification within the same second.
2075 * buffer.h (struct buffer): New field modtime_size.
2076 * buffer.c (reset_buffer): Initialize it.
2077 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
2078 (Fverify_visited_file_modtime): Check it.
2079 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
2080 (Fset_visited_file_modtime): Set (or clear) it.
2081
01f5787b
SM
20822010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
2083
2084 * process.c (status_notify): Remove unused var `ro'.
2085
83725342
JD
20862010-04-12 Jan Djärv <jan.h.d@swipnet.se>
2087
2088 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
2089 more than one visual (Bug#5938).
2090
b9465836
DN
20912010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
2092
50426a04
JB
2093 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
2094 Undefine.
b9465836 2095
8d9c8ece
DN
20962010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
2097
b1f52161
DN
2098 Remove C_SWITCH_SYSTEM_TEMACS.
2099 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
2100 (malloc, realloc, free): Use emacs, not temacs for conditional
2101 definition.
2102
2103 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
2104 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
2105
8d9c8ece
DN
2106 Use autoconf, not cpp for some variables.
2107 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
2108 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
2109 (ALL_CFLAGS): Use them as make variables.
2110 (really-lwlib, really-oldXMenu): Do not pass them.
2111
1ecb2d3f
JD
21122010-04-11 Jan Djärv <jan.h.d@swipnet.se>
2113
2114 * xmenu.c (apply_systemfont_to_dialog): New.
2115 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
2116
3a4fa2f2
SM
21172010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
2118
97e53006
SM
2119 * process.c (exec_sentinel): Preserve current-buffer.
2120
3a4fa2f2
SM
2121 * process.c (read_process_output): Move the save-current-buffer to
2122 apply to both the filter and the non-filter branches.
2123
88df7221
DN
21242010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
2125
2126 * s/msdos.h (UNEXEC): New definition.
2127
5634ff85
YM
21282010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2129
6eff5c3d
YM
2130 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
2131 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
2132
2133 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
2134 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
2135 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
2136 TRY_WINDOW_CHECK_MARGINS.
2137
2138 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
2139 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
2140 width only when it is for padding.
5634ff85 2141
b13aef54
J
21422010-04-09 Jan Djärv <jan.h.d@swipnet.se>
2143
2144 * xfns.c (Fx_show_tip): Call try_window in a loop until
2145 fonts_changed_p is zero (Bug#2423).
2146
21d28484
EZ
21472010-04-08 Eli Zaretskii <eliz@gnu.org>
2148
2149 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
2150 the end of TEXT_AREA. (Bug#5856)
2151
0269ef77
JD
21522010-04-08 Jan Djärv <jan.h.d@swipnet.se>
2153
2154 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
2155 HAVE_GCONF.
2156
5930fe97
EZ
21572010-04-08 Eli Zaretskii <eliz@gnu.org>
2158
2159 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
2160 prev.orig_type, for resolving type of NSM. (Bug#5858)
2161
99852628
JD
21622010-04-08 Jan Djärv <jan.h.d@swipnet.se>
2163
2164 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
2165 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
2166 in current_font.
2167 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
2168 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
2169 New functions.
2170 (syms_of_xsettings): Initialize current_font.
2171 defsubr Sfont_get_system_normal_font.
99852628
JD
2172
2173 * xsettings.h (Ffont_get_system_normal_font,
2174 xsettings_get_system_normal_font): Declare.
2175
2176 * xfns.c (extern xlwmenu_default_font): Remove.
2177 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
2178 to xlwmenu.c.
2179
2180 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
2181 menu items in UTF-8.
2182
2183 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
2184 (apply_systemfont_to_menu): New function.
2185 (set_frame_menubar, create_and_show_popup_menu): Call
2186 apply_systemfont_to_menu.
2187
7fc874c4
J
21882010-04-07 Jan Djärv <jan.h.d@swipnet.se>
2189
2190 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
2191 FRAME_LINE_TO_PIXEL_Y.
2192
2193 * xterm.c (x_set_window_size_1): Don't add border_width/height to
2194 pixelwidth/height.
2195
863bf481
DN
21962010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
2197
5e5a3b92
DN
2198 Simplify code for HP machines.
2199 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
2200 for GNU_LINUX, not needed.
2201 (UNEXEC, NEED_BSDTTY): Move definitions...
2202 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
2203
863bf481
DN
2204 * m/iris4d.h (UNEXEC): Move definition ...
2205 * s/irix6-5.h (UNEXEC): ... here.
2206
3e6bec3b
JD
22072010-04-04 Jan Djärv <jan.h.d@swipnet.se>
2208
2209 * xfns.c (set_machine_and_pid_properties): New function.
2210 (Fx_create_frame): Call set_machine_and_pid_properties.
2211
2912322b
SM
22122010-04-03 Eli Zaretskii <eliz@gnu.org>
2213
1502b819
EZ
2214 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
2215 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
2216 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
2217
2912322b
SM
2218 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
2219 in this function. (Bug#5703)
2220
22212010-04-03 Chong Yidong <cyd@stupidchicken.com>
2222
2223 * nsterm.h: Fix last change.
2224
c435b432
DN
22252010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
2226
a568f507
DN
2227 * m/intel386.h (NO_REMAP): Move definition ...
2228 * s/msdos.h (NO_REMAP): ... here.
2229
4cd9f6c2
DN
2230 * m/vax.h (CRT0_DUMMIES): Remove, unused.
2231
c435b432
DN
2232 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
2233 used on those platforms.
2234
42a2c622
DN
22352010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
2236
2237 Remove extern errno declarations.
2238 * xterm.c:
2239 * xrdb.c:
2240 * w32term.c:
2241 * unexec.c:
2242 * unexaix.c:
2243 * sysdep.c:
2244 * process.c:
2245 * lread.c:
2246 * keyboard.c:
2247 * floatfns.c:
2248 * filelock.c:
2249 * fileio.c:
2250 * emacs.c (main):
2251 * ecrt0.c:
2252 * dispnew.c:
2253 * callproc.c:
2254 * buffer.c: Remove errno extern declarations.
2255 * s/netbsd.h (NEED_ERRNO): Remove.
2256
8224f93d
DN
22572010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
2258
2259 Remove all uses of LIBX11_SYSTEM.
2260 * Makefile.in (LIBX11_SYSTEM): Remove.
2261 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
2262 instead.
2263
814062c7
EZ
22642010-04-01 Eli Zaretskii <eliz@gnu.org>
2265
ed68db4d
EZ
2266 Remove support for DJGPP v1.x (bug#5813).
2267
2268 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
2269 * s/msdos.h:
2270 * unexec.c (make_hdr, copy_text_and_data):
2271 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 2272 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
2273 (IT_set_terminal_modes, __write, _rename, gethostname)
2274 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
2275 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
2276 the value of __DJGPP__.
ed68db4d
EZ
2277 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
2278 compatibility code.
8224f93d
DN
2279 * lread.c:
2280 * gmalloc.c (memalign):
2281 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
2282 * emacs.c (main):
2283 * dosfns.c (init_dosfns):
ed68db4d
EZ
2284 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
2285
52f4d8d5
EZ
22862010-04-01 Eli Zaretskii <eliz@gnu.org>
2287
814062c7
EZ
2288 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
2289 string with `cursor' property comes from an `after-string'
2290 overlay. (Bug#5816)
2291
0dc2e11d
GM
22922010-04-01 Glenn Morris <rgm@gnu.org>
2293
2294 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
2295 Define as Makefile variables.
2296 (LIBX): Use above variables rather than directly using autoconf.
2297
1d29df59
DN
22982010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
2299
2300 Clean up BSD_SYSTEM use.
2301 * xterm.c:
2302 * process.c:
2303 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
2304 for including <sys/ioctl.h>.
2305 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
2306 code is only used for MSDOS.
2307
1546c559
JL
23082010-03-31 Juri Linkov <juri@jurta.org>
2309
2310 * image.c: Add `Qextension_data'.
2311 (syms_of_image): Initialize and staticpro `Qextension_data'.
2312 (Fimage_metadata): Rename from `Fimage_extension_data'.
2313 (gif_load): Put GIF extension data to the property
2314 `Qextension_data'.
2315
6521c534
CY
23162010-03-31 Chong Yidong <cyd@stupidchicken.com>
2317
2318 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
2319 * nsterm.h: Fix prototype.
2320
52c30783
EZ
23212010-03-31 Eli Zaretskii <eliz@gnu.org>
2322
2323 * xdisp.c (highlight_trailing_whitespace): Support highlight of
2324 trailing whitespace in right-to-left rows.
2325
855a0da7
SM
23262010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
2327
2328 Get rid of the direct_output optimizations.
2329 * keyboard.c (nonundocount): Remove extern declaration.
2330 (command_loop_1): Remove brittle optimisation for cheap and
2331 common operations.
2332 * xdisp.c (redisplay_internal): Don't bother checking
2333 redisplay_performed_directly_p any more.
2334 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
2335 any more.
2336 * dispnew.c (redisplay_performed_directly_p)
2337 (direct_output_for_insert, direct_output_forward_char):
2338 * dispextern.h (redisplay_performed_directly_p)
2339 (direct_output_for_insert, direct_output_forward_char): Remove.
2340 * cmds.c (nonundocount): Make it static.
2341
85738751 23422010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
2343
2344 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
2345
85738751 23462010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
2347
2348 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
2349 invisible (Bug#5766).
2350
85738751 23512010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 2352
855a0da7
SM
2353 * xdisp.c (x_consider_frame_title, update_window_cursor):
2354 Remove HAVE_NS conditionals.
194d44e7 2355 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
2356
2357 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
2358 filename for the title.
2359 (ns_set_doc_edited): Do nothing if the selected window is a
2360 minibuffer window.
2361
2362 * nsterm.h: Add prototypes for ns_set_name_as_filename and
2363 ns_set_doc_edited.
2364
2365 * nsterm.m: Remove unneeded prototype.
2366
85738751 23672010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
2368
2369 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
2370 in the DOC file. (Bug#5336)
2371
85738751 23722010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
2373
2374 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
2375
75d1428c
SM
23762010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
2377
2378 * window.c (keys_of_window): Remove redundant/overridden bindings.
2379
82043cfb
EZ
23802010-03-30 Eli Zaretskii <eliz@gnu.org>
2381
2382 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
2383 Restore original behavior when the iterator is not bidi_p.
2384
b5dd0ae7
DN
23852010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
2386
2387 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
2388
bd924a5d
EZ
23892010-03-30 Eli Zaretskii <eliz@gnu.org>
2390
2391 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
2392 are outside the range of cached character positions.
2393
3580374b
JB
23942010-03-30 Juanma Barranquero <lekktu@gmail.com>
2395
2396 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
2397
a7b02820
EZ
23982010-03-30 Eli Zaretskii <eliz@gnu.org>
2399
2400 Initial support for bidirectional editing.
2401
2402 * Makefile.in (obj): Include bidi.o.
2403 (bidi.o): New target.
2404
2405 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
2406 ($(BLD)/bidi.$(O)): New target.
2407
2408 * bidi.c: New file.
2409
2410 * buffer.h (struct buffer): New members bidi_display_reordering
2411 and bidi_paragraph_direction.
2412
2413 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
2414 and bidi_paragraph_direction.
2415 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
2416 and bidi-paragraph-direction.
2417 (Fbuffer_swap_text): Swap the values of
2418 bidi_display_reordering and bidi_paragraph_direction.
2419
2420 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
2421 (bidi_type_t, bidi_dir_t): New types.
2422 (bidi_saved_info, bidi_stack, bidi_it): New structures.
2423 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
2424 prev_stop, base_level_stop, and eol_pos.
2425 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
2426 (IT_STACK_SIZE): Enlarge to 5.
2427 (struct glyph_row): New member reversed_p.
2428 <string_buffer_position>: Update prototype.
2429 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
2430 glyph_row if bidi_it.paragraph_dir == R2L.
2431 (struct glyph): New members resolved_level and bidi_type.
2432
2433 * dispnew.c (direct_output_forward_char): Give up if we need bidi
2434 processing or buffer's direction is right-to-left.
2435 (prepare_desired_row): Preserve the reversed_p flag.
2436 (row_equal_p): Compare the reversed_p attributes as well.
2437
2438 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
2439 bidi_init_it and set it->paragraph_embedding from the current
2440 buffer's value of bidi_paragraph_direction.
2441 (reseat_1): Initialize bidi_it.first_elt.
2442 (set_iterator_to_next, next_element_from_buffer): Use the value of
2443 paragraph_embedding to determine the paragraph direction.
2444 (set_iterator_to_next): Under bidi reordering, call
2445 bidi_get_next_char_visually. Call bidi_paragraph_init if the
2446 new_paragraph flag is set in the bidi iterator.
2447 (next_element_from_buffer): If bidi_it.first_elt is set,
2448 initialize paragraph direction and find the first character to
2449 display in the visual order. If reseated to a middle of a line,
2450 prime the bidi iterator starting at the line's beginning. Handle
2451 the situation where we overstepped stop_charpos due to
2452 non-linearity of the bidi iteration. Likewise for when we back up
2453 beyond the previous stop_charpos. When moving across stop_charpos,
2454 record it in prev_stop.
2455 (display_line): Set row->end and it->start for the next row to the
2456 next character in logical order. Always extend reversed_p rows to
2457 the end of line, even if they end at ZV. Copy the reversed_p flag
2458 to the next glyph row. Keep calling set_cursor_from_row for
2459 bidi-reordered rows even if we already have a possible candidate
2460 for cursor position. Set row_end after all the row's glyphs have
2461 been produced, by looping over the glyphs. Record the position
2462 after EOL in it->eol_pos, and use it to set end_pos of the last
2463 row produced for a continued line.
2464 <Qright_to_left, Qleft_to_right>: New variables.
2465 (syms_of_xdisp): Initialize and staticpro them.
2466 (string_buffer_position_lim): New function.
2467 (string_buffer_position): Most of code moved to
2468 string_buffer_position_lim. Last argument and return value are
2469 now EMACS_INT; all callers changed.
2470 (set_cursor_from_row): Rewritten to support bidirectional text and
2471 reversed glyph rows.
2472 (text_outside_line_unchanged_p, try_window_id): Disable
2473 optimizations if we are reordering bidirectional text and the
2474 paragraph direction can be affected by the change.
2475 (append_glyph, append_composite_glyph)
2476 (produce_image_glyph, append_stretch_glyph): Set the
2477 resolved_level and bidi_type members of each glyph.
2478 (append_glyph): If the glyph row is reversed, prepend the glyph
2479 rather than appending it.
2480 (handle_stop_backwards): New function.
2481 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
2482 (reseat): call handle_stop_backwards to recompute prev_stop and
2483 base_level_stop for the new position.
2484 (handle_invisible_prop): Under bidi iteration, skip invisible text
2485 using bidi_get_next_char_visually. If we are `reseat'ed, init the
2486 paragraph direction. Update IT->prev_stop after skipping
2487 invisible text.
2488 (move_it_in_display_line_to): New variables prev_method
2489 and prev_pos. Compare for strict equality in
2490 BUFFER_POS_REACHED_P.
2491 (try_cursor_movement): Examine all the candidate rows that occlude
2492 point, to return the best match. If rows are bidi-reordered
2493 and point moved backwards, back up to the row that is not a
2494 continuation line, and start looking for a suitable row from
2495 there.
2496
2497 * term.c (append_glyph): Reverse glyphs by pre-pending them,
2498 rather than appending, if the glyph_row's reversed_p flag is set.
2499 Set the resolved_level and bidi_type members of each glyph.
2500
2501 * .gdbinit (pbiditype): New command.
2502 (pgx): Use it to display bidi level and type of the glyph.
2503 (pitx): Display some bidi information about the iterator.
2504 (prowlims, pmtxrows): New commands.
2505
32a8894e
DN
25062010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
2507
2508 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
2509 * s/usg5-4.h (LIBS_DEBUG):
2510 * s/irix6-5.h (C_DEBUG_SWITCH):
2511 * s/gnu-linux.h (LIBS_DEBUG):
2512 * s/darwin.h (LIBS_DEBUG):
2513 * s/bsd-common.h (LIBS_DEBUG):
2514 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
2515 * m/iris4d.h (LIBS_DEBUG):
2516 * m/hp800.h (LIBS_DEBUG): Remove definitions.
2517
2518 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
2519 (LIBS_DEBUG): Remove definition.
2520
649dbf36
CY
25212010-03-27 Chong Yidong <cyd@stupidchicken.com>
2522
2523 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
2524 Windows.
2525
cad4261f
YM
25262010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2527
2528 * process.c (Fmake_network_process): Don't call turn_on_atimers around
2529 `connect' (Bug#5723).
2530
cd591dbc
HE
25312010-03-25 Helmut Eller <eller.helmut@gmail.com>
2532
2533 * process.c (Fmake_network_process): Call `select' for interrupted
2534 `connect' rather than creating new socket (Bug#5173).
2535
e867cb5d 25362010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
2537
2538 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
2539
2540 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
2541
2542 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
2543
e867cb5d 25442010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
2545
2546 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
2547 XLoadQueryFont.
2548
e867cb5d 25492010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
2550
2551 * coding.c (decode_coding_ccl): Fix previous change for the
2552 multibyte case.
fb608df3
KH
2553 (encode_coding_ccl): Don't setup ccl program here. Fix for the
2554 case that the output buffer is fullfilled.
2555 (encode_coding): Setup ccl program here.
fbdc1721 2556
5845f0ed
DN
25572010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
2558
814fb708
DN
2559 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
2560
5845f0ed
DN
2561 Simplify LIBS_MACHINE definitions.
2562 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
2563 * m/iris4d.h (LIBS_MACHINE): Likewise.
2564 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
2565 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 2566 * s/netbsd.h: Remove commented out code.
5845f0ed 2567
b7064064
DN
25682010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
2569
df7734b2
DN
2570 Remove dead code dealing with POSIX_SIGNALS.
2571 * atimer.c (set_alarm): Remove dead code, all USG systems define
2572 POSIX_SIGNALS.
2573 * data.c (arith_error): Likewise.
2574 * keyboard.c (input_available_signal, handle_user_signal)
2575 (interrupt_signal): Likewise.
2576 * process.c (sigchld_handler): Likewise.
2577 (create_process): Remove if 0 code. Remove HPUX conditional when
2578 !defined (POSIX_SIGNALS), it cannot be true.
2579 * syssignal.h: Remove USG5_4 and USG conditionals when
2580 !POSIX_SIGNALS, they cannot be true.
2581
b7064064
DN
2582 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
2583 NO_SOCK_SIGIO, not used anymore.
2584
55da5ee3
DN
25852010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
2586
0be96e3a
DN
2587 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
2588 support vax on BSDs.
2589
55da5ee3
DN
2590 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
2591 * s/aix4-2.h (ORDINARY_LINK): ... here.
2592
c0282183
AS
25932010-03-21 Andreas Schwab <schwab@linux-m68k.org>
2594
82c3d67a
AS
2595 * Makefile.in (abs_builddir): Define.
2596 (bootstrap_exe): Use it.
2597 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 2598
3613edce
SM
25992010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
2600
2601 * Makefile.in (bootstrap_exe): Use an absolute name.
2602
7f110ddc
DN
26032010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2604
22e87574
DN
2605 Remove support for old GNU/Linux using libc version 5.
2606 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
2607 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
2608
05a670e6
DN
2609 Consolidate redundant definitions in s/bsd-common.h.
2610 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2611 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2612 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
2613 doing it in all files that include this one.
2614 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2615 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2616 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2617 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2618 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2619 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2620 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2621 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2622 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2623
2968f561
DN
2624 Consolidate redundant definitions.
2625 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
2626 it's undefined in all files that include this one.
2627 (POSIX_SIGNALS): Define here instead of doing it in all files that
2628 include this one.
2629 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2630 (POSIX_SIGNALS): Do not define.
2631 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2632 (POSIX_SIGNALS): Do not define.
2633 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2634 (POSIX_SIGNALS): Do not define.
2635
15d25dc0
DN
2636 Remove support for old UNIX System V systems.
2637 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
2638 * s/usg-5-4-2.h: Remove.
2639
07e339e4
DN
2640 Remove support for Solaris on PPC and for old versions.
2641 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
2642 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
2643 that cancel each other.
2644 * s/sol2-3.h:
2645 * s/sol2-4.h:
2646 * s/sol2-5.h: Remove.
2647 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
2648 (NO_REMAP): Remove, unused.
2649 (UNEXEC): Move definition ...
2650 * s/aix4-2.h (UNEXEC): ... here.
2651
7f110ddc
DN
2652 * s/openbsd.h: Remove support for non-ELF and for systems that do
2653 not support shared libraries.
2654 * s/netbsd.h:
2655 * s/freebsd.h: Likewise.
2656
605f35cd
DN
26572010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2658
2659 Remove non-working support for lynxos 3.0.
2660 * s/lynxos.h: Remove file.
2661
2662 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
2663 COFF_BSD_SYMBOLS, nothing defines it anymore.
2664
aed71cf4
DN
26652010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2666
2667 Remove obsolete uses of HAVE_SHM.
2668 * emacs.c (standard_args):
2669 (Fdump_emacs):
2670 (syms_of_emacs): Remove code depending on HAVE_SHM.
2671
2672 * alloc.c: Remove HAVE_SHM dependent definition.
2673
2674 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
2675
aded53ff
GM
26762010-03-18 Glenn Morris <rgm@gnu.org>
2677
17284745
GM
2678 * emacs.c (USAGE4): Hard-code bug address.
2679 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
2680 (bug_reporting_address): Remove.
2681 (main): Don't call bug_reporting_address.
2682
aded53ff
GM
2683 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
2684 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
2685
303500aa
CY
26862010-03-15 Chong Yidong <cyd@stupidchicken.com>
2687
2688 * xfns.c (Fx_create_frame):
2689 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
2690 on left.
2691
cef3058f
CY
26922010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
2693
2694 * editfns.c (Fformat): Account for string precision when computing
2695 field width (Bug#5710).
2696
a647d59d
CY
26972010-03-12 Chong Yidong <cyd@stupidchicken.com>
2698
4fa42018
CY
2699 * xfns.c (Fx_create_frame): Set default to Qright.
2700
a647d59d
CY
2701 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
2702 all window systems.
2703
6da23aaa
EZ
27042010-03-12 Eli Zaretskii <eliz@gnu.org>
2705
a96f6398 2706 These changes remove termcap.c from the build on Posix platforms.
83d02def 2707 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
2708 (MSDOS_OBJ): ...to here.
2709 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
2710 now identical to when LIBS_TERMCAP is defined.
2711
2712 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
2713
2714 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
2715
a96f6398 2716 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 2717
288f9fc0
CY
27182010-03-10 Chong Yidong <cyd@stupidchicken.com>
2719
2720 * Branch for 23.2.
2721
d48cd3f4
SM
27222010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
2723
2724 Cleanup setup of gl_state in various parts of the code.
2725 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
2726 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
2727 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
2728 (skip_chars):
2729 * regex.c (regex_compile): Use it.
2730 (re_compile_pattern): Don't set gl_state.current_syntax_table since
2731 it's now set in regex_compile when/if we need it.
2732
618db430
SM
27332010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
2734
c0335e02
SM
2735 Make it possible to C-g in a tight bytecode loop again (bug#5680).
2736 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
2737 (QUIT): Use it to consolidate code and remove redundancy.
2738 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
2739
254c06a8
SM
2740 * regex.c (regex_compile): Setup gl_state as well.
2741
618db430
SM
2742 * syntax.c (skip_chars): Setup gl_state (bug#3823).
2743 (in_classes): Use CONSP before XCAR/XCDR.
2744
233f0c9f
CY
27452010-03-03 Chong Yidong <cyd@stupidchicken.com>
2746
2747 * keymap.c (Fwhere_is_internal): Use Fequal to compare
2748 definitions, so that keyboard macros are correctly handled
2749 (Bug#5481).
2750
75f80e63
EZ
27512010-03-02 Eli Zaretskii <eliz@gnu.org>
2752
2753 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
2754 text that could be relocated inside the call to emacs_mule_char.
2755 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
2756 (CODING_DECODE_CHAR): Add a comment describing its purpose.
2757
dcfb9bc4
KH
27582010-03-02 Kenichi Handa <handa@m17n.org>
2759
fc9a17bc
KH
2760 * character.c (parse_str_as_multibyte): Fix handling of the
2761 multibyte form of raw-bytes.
2762 (str_as_multibyte): Likewise.
2763
dcfb9bc4
KH
2764 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
2765 form of raw-bytes.
2766
412c01b6
CY
27672010-02-28 Chong Yidong <cyd@stupidchicken.com>
2768
2769 * charset.c (load_charset_map_from_file)
2770 (load_charset_map_from_vector): Zero out allocated
2771 charset_map_entries before using them.
2772
df7e1ea0
AS
27732010-02-27 Andreas Schwab <schwab@linux-m68k.org>
2774
2775 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
2776
fe69a722
CY
27772010-02-27 Chong Yidong <cyd@stupidchicken.com>
2778
4ed28cf4
CY
2779 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
2780 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 2781
7379cfce
KH
27822010-02-26 Kenichi Handa <handa@m17n.org>
2783
f88cc4d6
KH
2784 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
2785
7379cfce
KH
2786 * xdisp.c (reseat_to_string): Fix previous change.
2787
cf2fdcfb
CY
27882010-02-26 David Reitter <david.reitter@gmail.com>
2789
2790 * nsfont.m (nsfont_draw): ns_antialias_text should be a
2791 Lisp_Object (Bug#4736).
2792
cc6c7c75
KH
27932010-02-25 Kenichi Handa <handa@m17n.org>
2794
2795 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
2796
32e737d7
JD
27972010-02-24 Jan Djärv <jan.h.d@swipnet.se>
2798
2799 * xterm.c (XTflash): Move declarations before statements.
2800
2801 * gtkutil.c (xg_get_gdk_display): Remove (unused).
2802 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
2803 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
2804 (xg_create_tool_bar): Remove unused variables.
2805 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 2806 (xg_create_frame_widgets): Remove variable grav.
32e737d7 2807
676cae9f
CY
28082010-02-21 Chong Yidong <cyd@stupidchicken.com>
2809
2810 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
2811
886cc2b8
SM
28122010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
2813
2814 * term.c (fatal): Add a final \n if needed (bug#5596).
2815
ddb2d8e2
CY
28162010-02-18 Chong Yidong <cyd@stupidchicken.com>
2817
2818 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
2819
2a4f8d3d
GM
28202010-02-18 Glenn Morris <rgm@gnu.org>
2821
2822 * callint.c (Finteractive): Doc fix.
2823
ebaf11b6
KH
28242010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
2825
886cc2b8
SM
2826 * coding.c (record_conversion_result):
2827 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
2828 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
2829 memory allocation error.
2830
d0396581
KH
28312010-02-17 Kenichi Handa <handa@m17n.org>
2832
886cc2b8
SM
2833 * coding.c (decode_coding_ccl): Don't setup ccl program here.
2834 Fix for the case that the output buffer is fullfilled.
d0396581
KH
2835 (decode_coding): Setup ccl program here. Keep looping when the
2836 decoder stopped because the output buffer is
2837 fullfilled (bug#5534).
2838
2839 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
2840
98599f74
JD
28412010-02-13 Jan Djärv <jan.h.d@swipnet.se>
2842
471e4f04 2843 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 2844 bug #5571.
886cc2b8 2845 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 2846 overdrawn.
98599f74 2847
182659ae
JD
28482010-02-10 Jan Djärv <jan.h.d@swipnet.se>
2849
2850 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
2851 doing_interact here.
2852 (ice_connection_closed): New function.
2853 (x_session_check_input, smc_die_CB, ice_io_error_handler)
2854 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
2855 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
2856 returns I/O error.
2857 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
2858 bug #5512.
2859
9be32c4e 28602010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
2861
2862 * nsfont.m (nsfont_open): The system's value for the font descent
2863 is negative, so round it down to avoid clipping.
2864
a2f3eb19
CY
28652010-02-06 Chong Yidong <cyd@stupidchicken.com>
2866
2867 * charset.c (load_charset_map_from_file)
2868 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 2869 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 2870
3088147c
CY
28712010-02-05 Chong Yidong <cyd@stupidchicken.com>
2872
2873 * charset.c (load_charset_map_from_file): Allocate large
2874 charset_map_entries structure on the heap rather than the stack.
2875 (Bug#5526).
2876
b57d9029
KH
28772010-01-31 Kenichi Handa <handa@m17n.org>
2878
2879 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 2880 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 2881
c67d885b
CY
28822010-01-31 Chong Yidong <cyd@stupidchicken.com>
2883
2884 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
2885 <deactivated@gmail.com> (Bug#3605).
2886
8fab2362
CY
28872010-01-31 David De La Harpe Golden <david@harpegolden.net>
2888
2889 * fileio.c (Frename_file): Correctly rename symlinks to
2890 directories (Bug#5496).
2891
cb2a62f2
CY
28922010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
2893
2894 * nsterm.m (ns_ring_bell): Handle visible bell like X.
2895
944c7a26
AS
28962010-01-30 Andreas Schwab <schwab@linux-m68k.org>
2897
2898 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
2899
c024ac08
CY
29002010-01-29 Chong Yidong <cyd@stupidchicken.com>
2901
2902 * frame.c (DEFAULT_ROWS): Change default to 35.
2903
2904 * xfns.c (x_default_font_parameter): Change default XFT font to
2905 monospace-10 (Bug#3643).
2906
af93af83
EZ
29072010-01-29 Eli Zaretskii <eliz@gnu.org>
2908
2909 * w32inevt.c (key_event): Remove unnecessary comparison of
2910 event->uChar.AsciiChar with 128.
2911
ca0eb708
CY
29122010-01-28 Chong Yidong <cyd@stupidchicken.com>
2913
b242dbfc
CY
2914 * fileio.c (Frename_file): Fix last change (Bug#5487).
2915
ca0eb708
CY
2916 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
2917
2918 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
2919
45d45af5
JD
29202010-01-28 Jan Djärv <jan.h.d@swipnet.se>
2921
2922 * xfns.c (Fx_create_frame): Remove window size matching code from
2923 2010-01-15.
a73f9c9d 2924 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 2925
7e233730
JR
29262010-01-27 Jason Rumney <jasonr@gnu.org>
2927
2928 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 2929 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 2930
86e893e3
KH
29312010-01-27 Kenichi Handa <handa@m17n.org>
2932
2933 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 2934 pattern string (Bug#4209).
86e893e3 2935
8719abec
CY
29362010-01-27 David De La Harpe Golden <david@harpegolden.net>
2937
2938 * fileio.c (Frename_file): Call copy-directory and
2939 delete-directory for directories, in order to handle cross-device
2940 renaming (Bug#3353).
2941
844794c8
JD
29422010-01-25 Jan Djärv <jan.h.d@swipnet.se>
2943
aa3e13b5 2944 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 2945 sizes 24 and 10. Bug #3643.
844794c8 2946
bd4b5750
SM
29472010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
2948
8dc1adf6 2949 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
2950 * keymap.c (shadow_lookup): Add `remap' arg.
2951 (describe_map, describe_vector): Update calls to shadow_lookup.
2952 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
2953 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
2954 perform remapping during shadow_lookup check of remapped_sequences.
2955
285d07e2
CY
29562010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
2957
2958 * image.c (png_load): Use png_sig_cmp instead of the obsolete
2959 png_check_sig, which has been removed in libpng 1.4.
2960
c6d09b8d
CY
29612010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
2962
2963 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
2964 lacks this header file).
2965
3d782998
YM
29662010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2967
2968 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
2969 as in Emacs 22.
2970
2aff7c53
YM
29712010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2972
2973 * lisp.h (make_pure_string): String pointer arg now points to const.
2974
2975 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
2976 args now point to const.
2977
74327f7a
EZ
29782010-01-22 Eli Zaretskii <eliz@gnu.org>
2979
2980 * lread.c (Fload): Don't treat files without .elc extension as
2981 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
2982 them. (bug#5303)
2983
4d1e6632
KH
29842010-01-20 Kenichi Handa <handa@m17n.org>
2985
2986 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
2987 treat the source as actual byte sequence.
2988
1fdede8f
AM
29892010-01-19 Alan Mackenzie <acm@muc.de>
2990
2991 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 2992 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
2993 `signal_after_change_p' to `coherent_change_p', and make the
2994 invocation of `modify_region' conditional on it.
2995
67477f30
JD
29962010-01-19 Jan Djärv <jan.h.d@swipnet.se>
2997
2998 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
2999 for debug purpose.
3000 (syms_of_xsettings): Declare xft-settings.
3001
244b023e
CY
30022010-01-18 Chong Yidong <cyd@stupidchicken.com>
3003
3004 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
3005
617364fe
CY
30062010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
3007
3008 * xterm.c (event_handler_gdk): Block input (Bug#5037).
3009
4fe22cdf
CY
30102010-01-16 Chong Yidong <cyd@stupidchicken.com>
3011
3012 * emacs.c (standard_args): Adjust arg priorities to reflect how
3013 they are processed in startup.el.
3014
e118d2be
AS
30152010-01-16 Andreas Schwab <schwab@linux-m68k.org>
3016
3017 * Makefile.in (lisp, shortlisp): Update.
3018
523ae620
SM
30192010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
3020
3021 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
3022 code, link the new kboard into all_kboard before running Lisp code,
3023 and protect the new terminal with GCPRO (Bug#5365).
3024 (x_term_init): Remove unused var `atom'.
3025 (x_delete_display, x_delete_terminal): Remove unused var `i'.
3026
f0d13888
JD
30272010-01-15 Jan Djärv <jan.h.d@swipnet.se>
3028
3029 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
3030 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
3031 to find out usable size of the desktop. Don't make frames larger than
ac146f82 3032 this. Bug #3643.
f0d13888 3033
cc320f07
KH
30342010-01-15 Kenichi Handa <handa@m17n.org>
3035
3036 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
3037
7ffdf101
CY
30382010-01-15 Chong Yidong <cyd@stupidchicken.com>
3039
3040 * nsterm.m (Qnone): Define.
3041
3042 * nsfns.m (Qnone): Move definition to nsterm.m.
3043
d12bd917
KH
30442010-01-14 Kenichi Handa <handa@m17n.org>
3045
3046 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
3047 systems.
3048
d9a7c140
KH
30492010-01-14 Kenichi Handa <handa@m17n.org>
3050
3051 Make auto-composition work on all buffers even if they are
3052 fundamental mode.
3053
3054 * composite.c (Vauto_composition_mode): New variable.
3055 (composition_compute_stop_pos): Check Vauto_composition_mode
3056 instead of Vauto_composition_function.
3057 (composition_adjust_point, Ffind_composition_internal): Likewise.
3058 (syms_of_composite): Declare Lisp variable
3059 "auto-composition-mode" here.
3060
63286bb2
CY
30612010-01-13 Chong Yidong <cyd@stupidchicken.com>
3062
3063 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
3064 during call to vendor-specific-keysyms (Bug#5365).
3065
c2623ee7
YM
30662010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3067
3068 * keyboard.c (input_available_signal) [SYNC_INPUT]:
3069 Call SIGNAL_THREAD_CHECK (Bug#5333).
3070
3071 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
3072 Call SIGNAL_THREAD_CHECK.
3073
0b5397c2
SM
30742010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
3075
3076 Try to fix bug#5314. This is probably not the final word, tho.
3077 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
3078 recent-auto-save-p as a side-effect.
3079 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
3080 * buffer.c (Fkill_buffer, reset_buffer):
3081 * editfns.c (Fsubst_char_in_region):
3082 * fileio.c (Finsert_file_contents, Fdo_auto_save)
3083 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
3084
dc954cb2
KH
30852010-01-13 Kenichi Handa <handa@m17n.org>
3086
3087 Display buffer name, etc. in mode line by composing correctly.
3088
3089 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
3090 STRING is not nil.
0b5397c2 3091 (display_mode_element): Adjust for the change of
dc954cb2
KH
3092 decode_mode_spec and display_line.
3093 (decode_mode_spec): Change arg MULTIBYTE to STRING.
3094 (display_string): Handle the case that STRING is non-null and
3095 LISP_STRING is not nil.
3096
0b5397c2
SM
3097 * xterm.c (x_draw_composite_glyph_string_foreground):
3098 Pay attention to s->face->overstrike.
dc954cb2
KH
3099
3100 * composite.c (composition_reseat_it): Don't check PT if STRING is
3101 non nil.
3102
4a00eaca
YM
31032010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3104
3105 * keyboard.c (read_char): Don't apply previous change when current
3106 buffer is unchanged by command execution.
3107
60abb287
JD
31082010-01-12 Jan Djärv <jan.h.d@swipnet.se>
3109
3110 * keyboard.c (read_char): Return after executing from special map.
3111
893db5bc
GM
31122010-01-12 Glenn Morris <rgm@gnu.org>
3113
3114 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
3115 bug-gnu-emacs rather than emacs-pretest-bug.
3116
4d03ece0
CY
31172010-01-11 Chong Yidong <cyd@stupidchicken.com>
3118
3119 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
3120 initializing the Lisp variables that depend on them.
3121
1df47e38
YM
31222010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3123
3124 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
3125 Clear areas that will not be updated after change of menu bar lines.
3126 Clear the menu bar window's current matrix when the window gets empty.
3127
2f1c6384
CY
31282010-01-09 Chong Yidong <cyd@stupidchicken.com>
3129
e398c61c
CY
3130 * intervals.h, textprop.c (extend_property_ranges): Return value
3131 and args changed. Discard properties that begin at or after the
3132 new end (Bug#5306).
3133
3134 * editfns.c (Fformat): Caller changed.
3135
e5a29a10
CY
3136 * nsterm.m (ns_set_default_prefs): Delete function.
3137 (syms_of_nsterm): Initialize ns_command_modifier,
3138 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
3139 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
3140
2f1c6384
CY
3141 * xdisp.c (pos_visible_p): Check for invisible text at the correct
3142 position (Bug#4040).
3143
d427a9fa
EZ
31442010-01-09 Eli Zaretskii <eliz@gnu.org>
3145
3146 * editfns.c (Ffloat_time): Doc fix.
3147
21b9df2f
JD
31482010-01-09 Jan Djärv <jan.h.d@swipnet.se>
3149
3150 * xfns.c (Fx_create_frame): Don't create frame larger than display
3151 by default bug#3643.
3152
4b00d3b1
YM
31532010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3154
3155 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
3156 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
3157 windows above internal border.
3158
3159 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
3160 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
3161 windows above internal border.
3162
3163 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
3164 tool bar windows specially.
3165
3166 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
3167
3168 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
3169 specially.
3170 (XTflash): Take account of menu bar height.
3171
3172 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
3173 specially.
3174
5075d853
JD
31752010-01-08 Jan Djärv <jan.h.d@swipnet.se>
3176
ac146f82 3177 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
3178 also be true before we can return early (bug #5339).
3179
474217c8
CY
31802010-01-06 David Reitter <david.reitter@gmail.com>
3181
3182 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
3183 (Fns_display_usable_bounds): Rewrite, computing bounds properly
3184 (Bug#3233).
3185
c0e6d47d
JD
31862010-01-06 Jan Djärv <jan.h.d@swipnet.se>
3187
d0cf45b7
JD
3188 * font.c (font_open_entity): Enable chache and call cached_font_ok
3189 for the driver if defined.
3190 (QCuser_spec): New symbol.
3191 (font_spec_from_name): Save name as user-spec.
3192 (font_load_for_lface): Keep user-spec instead of name.
3193 (font_open_by_name): Save name as user-spec.
3194 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 3195 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
3196
3197 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
3198 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
3199 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
3200
3201 * font.h (struct font_driver): Add cached_font_ok.
3202
c0e6d47d
JD
3203 * xterm.c (x_clear_frame): Queue draw for scroll bars.
3204
7c583cd8
JD
32052010-01-05 Jan Djärv <jan.h.d@swipnet.se>
3206
3207 * xterm.c (x_new_font): Move code for setting rows/cols before
3208 resizing ...
ac146f82 3209 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
3210
3211 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
3212 (xg_frame_resized, xg_frame_set_char_size):
3213 Call xg_clear_under_internal_border.
7c583cd8 3214 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 3215
03f77f0a
CY
32162010-01-05 Chong Yidong <cyd@stupidchicken.com>
3217
3218 * keyboard.c (read_key_sequence): Catch keyboard switch after
3219 making a new tty frame (Bug#5095).
3220
2a1ef5be
KH
32212010-01-05 Kenichi Handa <handa@m17n.org>
3222
3223 * fontset.c (fontset_find_font): Fix getting the frame pointer.
3224
e3eb1dae
SM
32252010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
3226
3227 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
3228 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
3229 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
3230
777013f2
MA
32312010-01-03 Michael Albinus <michael.albinus@gmx.de>
3232
3233 * dbusbind.c (xd_add_watch): Improve debug message.
3234 (xd_remove_watch): Improve debug message. If DATA is the session
3235 bus, unset D-Bus session environment.
3236 (Fdbus_init_bus): Pass the bus as argument to
3237 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 3238
8932b1c2
CY
32392010-01-01 Chong Yidong <cyd@stupidchicken.com>
3240
87231e2c
CY
3241 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
3242
4801c5fa
CY
3243 * lread.c (syms_of_lread): Make it clearer that these are the
3244 names of loaded files (Bug#5068).
3245
8932b1c2
CY
3246 * eval.c (run_hook_with_args): Handle the case where the global
3247 value has the obsolete single-function form (Bug#5026).
3248
11e3c684
CY
32492009-12-27 Chong Yidong <cyd@stupidchicken.com>
3250
3251 * minibuf.c (Fall_completions): Minor optimization.
3252
5b28ce35
EZ
32532009-12-26 Eli Zaretskii <eliz@gnu.org>
3254
5ce6e4f4
JB
3255 * .gdbinit (pgx): Fix display of composite glyphs.
3256 Display cmp.from and cmp.to as well.
3257 (pitx): Fix last change.
5b28ce35 3258
bcffff46
KH
32592009-12-25 Kenichi Handa <handa@m17n.org>
3260
3261 * composite.h (composition_adjust_point): Update prototype.
3262
3263 * composite.c (composition_reseat_it): Don't make a composition
3264 spanning over point.
3265 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
3266 composable characters.
3267 (composition_adjust_point): New arg NEW_PT. Callers changed.
3268
3269 * keyboard.c (command_loop_1): Force redisplay if the last point
3270 was within a composition.
3271 (adjust_point_for_property): Don't adjust point for automatic
3272 composition when called after buffer modification.
3273
3f670e9a
EZ
32742009-12-19 Eli Zaretskii <eliz@gnu.org>
3275
5ce6e4f4
JB
3276 * .gdbinit (pitx): Don't use enum names, use their values.
3277 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
3278 (pgx): Don't use enum names, use their values.
3279 (pitmethod): New helper command.
3280 (pitx): Use it to display iteration method.
3281 (pgrowit): New command.
3282
ad903955
EZ
3283 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
3284
3f670e9a
EZ
3285 Update dependencies in Makefile.in.
3286
3287 * Makefile.in (alloc.o): Depend on termhooks.h.
3288 (atimer.o): Depend on blockinput.h.
3289 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
3290 and frame.h.
3291 (callint.o): Depend on systime.h, coding.h, and composite.h.
3292 (callproc.o): Depend on buffer.h.
3293 (casefiddle.o): Don't depend on charset.h.
3294 (casetab.o): Depend on character.h.
3295 (ccl.o): Depend on composite.h.
3296 (chartab.o): Depend on ccl.h.
3297 (cm.o): Depend on dispextern.h.
3298 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
3299 (coding.o): Don't depend on $(INTERVALS_H).
3300 (composite.o): Don't depend on dispextern.h explicitly (it's in
3301 $(INTERVALS_H)). Depend on ccl.h.
3302 (data.o): Depend on systime.h, coding.h, composite.h,
3303 dispextern.h, font.h, and ccl.h.
3304 (dired.o): Depend on composite.h.
3305 (dispnew.o): Depend on coding.h. Don't depend explicitly on
3306 composite.h (it's in $(INTERVALS_H)).
3307 (doc.o): Depend on systime.h, coding.h, and composite.h.
3308 (editfns.o): Don't depend explicitly on dispextern.h.
3309 (emacs.o): Depend on frame.h and coding.h.
3310 (eval.o): Depend on coding.h, composite.h, and xterm.h.
3311 (fileio.o): Depend on frame.h and commands.h. Don't depend
3312 explicitly on dispextern.h.
3313 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
3314 composite.h.
3315 (fns.o): Don't depend on termhooks.h.
3316 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
3317 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
3318 coding.h, $(INTERVALS_H), window.h, xterm.h.
3319 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
3320 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
3321 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
3322 fontset.h, ccl.h, and ftfont.h.
3323 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
3324 (gtkutil.o): Depend on dispextern.h and composite.h.
3325 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
3326 termhooks.h, and ccl.h.
3327 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
3328 (intervals.o): Depend on systime.h and coding.h.
3329 (keyboard.o): Depend on composite.h and coding.h.
3330 (keymap.o): Depend on coding.h and frame.h.
3331 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
3332 (macros.o): Depend on systime.h, coding.h, and composite.h.
3333 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
3334 and atimer.h.
3335 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
3336 dispextern.h explicitly.
0b5397c2
SM
3337 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
3338 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
3339 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
3340 (regex.o): Don't depend on charset.h.
3341 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
3342 (search.o): Don't depend explicitly on composite.h.
3343 (sound.o): Depend on atimer.h and systime.h.
3344 (syntax.o): Don't depend explicitly on composite.h.
3345 (sysdep.o): Depend on coding.h and composite.h.
3346 (term.o): Depend on xterm.h and buffer.h.
3347 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
3348 (textprop.o): Don't depend on dispextern.h explicitly.
3349 (undo.o): Depend on dispextern.h.
3350 (window.o): Depend on coding.h and termhooks.h. Don't depend on
3351 dispextern.h and composite.h explicitly.
3352 (xdisp.o): Depend on ccl.h.
3353 (xfaces.o): Depend on coding.h and ccl.h.
3354 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
3355 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
3356 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
3357 ftfont.h.
3358 (xgselect.o): New dependency.
3359 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
3360 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
3361 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
3362 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
3363 (xsmfns.o): Depend on frame.h and dispextern.h.
3364 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
3365 sysselect.h.
3366
7a6f7fea
AS
33672009-12-19 Andreas Schwab <schwab@linux-m68k.org>
3368
3369 * font.c (Fclear_font_cache): Pass correct cache argument to
3370 font_clear_cache.
3371
f4c21026
AS
33722009-12-16 Andreas Schwab <schwab@linux-m68k.org>
3373
3374 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
3375 twice.
3376
f7ab0997
CY
33772009-12-15 Chong Yidong <cyd@stupidchicken.com>
3378
3379 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
3380 calling file-remote-p. Reported by Jim Meyering.
3381
fa8e045a
MA
33822009-12-15 Michael Albinus <michael.albinus@gmx.de>
3383
3384 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 3385 avoid compiler warnings. (Bug #5217)
fa8e045a 3386
a63dba42
KH
33872009-12-14 Kenichi Handa <handa@m17n.org>
3388
3389 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
3390 in 8-bit encoding.
3391
5ce6e4f4 33922009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
3393
3394 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
3395 tooltip windows.
3396
223e5fc6
JD
33972009-12-13 Jan Djärv <jan.h.d@swipnet.se>
3398
36acb2a7
JD
3399 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
3400 Xatom_net_window_type.
3401
3402 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
3403 Xatom_net_window_type.
3404
b8f00677
JD
3405 * xterm.c (my_log_handler): New function.
3406 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 3407 so we can filter out buggy messages. (Bug #5120).
b8f00677 3408
e5f0bc9a
JD
3409 * xterm.c (xg_scroll_callback): Parameter list changed,
3410 use parameter GtkScrollType to determine scroll/line/page.
3411 Only allow dragging if a button < 4 is grabbed (bug #5177).
3412 (xg_end_scroll_callback): New function.
3413 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
3414 xg_create_scroll_bar.
3415
3416 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
3417 (scroll_end_callback): Remove.
3418 (xg_create_scroll_bar): Add parameter end_callback, bind it to
3419 button-release-event. Replace value-changed event with change-value,
3420 bug #5177,
3421 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
3422 bug #5177.
3423
3424 * gtkutil.h (XG_LAST_SB_DATA): Remove.
3425 (xg_create_scroll_bar): Add GCallback end_callback.
3426
223e5fc6
JD
3427 * xftfont.c (QClcdfilter): New variable.
3428 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
3429 (syms_of_xftfont): Initialize QClcdfilter.
3430
3c055b77
JD
34312009-12-12 Jan Djärv <jan.h.d@swipnet.se>
3432
3433 * xsettings.c (struct xsettings): Add member seen.
3434 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 3435 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
3436 (apply_xft_settings): Only update Xft settings with what member seen
3437 indicates as new.
3438
05fe33ff
EZ
34392009-12-12 Eli Zaretskii <eliz@gnu.org>
3440
3441 * dispextern.h (struct text_pos): Use EMACS_INT;
3442 (struct glyph): Use EMACS_INT for charpos.
3443 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
3444 region_beg_charpos, region_end_charpos,
3445 redisplay_end_trigger_charpos, and also for
3446 iterator_stack_entry.end_charpos and
3447 iterator_stack_entry.stop_charpos.
3448
e8d7886a
JD
34492009-12-12 Jan Djärv <jan.h.d@swipnet.se>
3450
5ce6e4f4 3451 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
3452 (xg_create_scroll_bar): Call scroll_end_callback on button release
3453 event (bug #5177).
3454 (xg_event_is_for_scrollbar): != replaced with ==.
3455
d0db2ec8
KH
34562009-12-12 Kenichi Handa <handa@m17n.org>
3457
3458 * ftfont.c (struct ftfont_info): New member matrix.
3459 (ftfont_open): Setup xftfont_info->matrix.
3460 (MFLTFontFT): New member matrix.
3461 (FLOOR, CEIL, ROUND): New macros.
3462 (ftfont_get_metrics): Handle matrix transformation.
3463 (ftfont_shape_by_flt): New arg matrix. Callers changed.
3464
3465 * xftfont.c (struct xftfont_info): New member matrix.
3466 (xftfont_open): Setup xftfont_info->matrix.
3467
34682009-12-10 Kenichi Handa <handa@m17n.org>
3469
3470 * xdisp.c (append_space_for_newline): Consider face-remapping.
3471
2cc7b62f
AS
34722009-12-09 Andreas Schwab <schwab@linux-m68k.org>
3473
b87dd913
AS
3474 * xsettings.c: Include "keyboard.h".
3475
eba5eb94
AS
3476 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
3477
2cc7b62f
AS
3478 Fix implicit function declarations.
3479 * cmds.c: Include "frame.h".
3480 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
3481 * frame.h: Move declaration of delete_frame outside of
3482 HAVE_WINDOW_SYSTEM.
3483
a4ef73c8
CY
34842009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
3485
3486 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
3487
3488 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
3489 GTK builds.
3490
944a300c
AS
34912009-12-07 Andreas Schwab <schwab@linux-m68k.org>
3492
3493 * unexelf.c (unexec): Don't search for .data twice.
3494
022eef62
CY
34952009-12-05 Chong Yidong <cyd@stupidchicken.com>
3496
426ac949
CY
3497 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
3498 if push failed.
3499 (handle_line_prefix): Set avoid_cursor_p here. Check return value
3500 of push_display_prop (Bug#5000).
3501
022eef62
CY
3502 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
3503 value of font_list_entities (Bug#5085).
3504
be95bee9
JB
35052009-12-04 Juanma Barranquero <lekktu@gmail.com>
3506
3507 Fix `string-to-number' to deal consistently with integers and floats.
3508 * lread.c (isfloat_string): New argument ignore_trailing to accept all
3509 trailing characters, not just whitespace.
3510 (read1): Pass new arg 0 to keep old behavior.
3511 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
3512 trailing chars, as it is already done for integers. Doc fixes.
3513 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
3514
24c2d7ce
EZ
35152009-12-04 Eli Zaretskii <eliz@gnu.org>
3516
0b5397c2
SM
3517 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
3518 Delete unused enumeration value.
24c2d7ce 3519
7e694795
EZ
35202009-12-03 Eli Zaretskii <eliz@gnu.org>
3521
3522 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
3523
84b31826
SM
35242009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
3525
3526 * process.c (Fmake_network_process): Fix up the tests for
3527 "connectionless socket", so they DTRT for seqpacket sockets as well.
3528
f00c449b
SM
35292009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
3530
3531 * process.c (Qseqpacket): New symbol.
3532 (HAVE_SEQPACKET): New macro.
3533 (Fmake_network_process): Accept new :type `seqpacket'.
3534 (init_process): Add `seqpacket' feature when applicable.
3535 (syms_of_process): Initialize Qseqpacket.
3536
8096a0ff
YM
35372009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3538
3539 * font.c (font_load_for_lface, font_open_by_name): Don't store name
3540 if entity is Qnil.
3541
3e0de07f
SM
35422009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
3543
3544 * print.c (print_preprocess): Preprocess the key_and_value table of
3545 hashtables, even tho they're "hidden" (bug#5082).
3546
abeafb2a
JD
35472009-11-29 Jan Djärv <jan.h.d@swipnet.se>
3548
3549 * frame.c (frame_make_pointer_invisible)
3550 (frame_make_pointer_visible): Declare f before statements.
3551
4bf47195
EZ
35522009-11-28 Eli Zaretskii <eliz@gnu.org>
3553
3554 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
3555 omitted dependencies on lisp.h.
3556
c525b3f2
JD
35572009-11-27 Jan Djärv <jan.h.d@swipnet.se>
3558
ece2d4ed
JD
3559 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
3560 is NULL.
3561
3562 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
3563
3564 * frame.c (frame_make_pointer_invisible)
3e0de07f 3565 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
3566 frame.
3567
c525b3f2
JD
3568 * search.c (simple_search): Remove warning by making *p const.
3569
2f00e299
DN
35702009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
3571
3572 * xdisp.c (power_letter): Remove duplicate const.
3573
084b049b
JD
35742009-11-25 Jan Djärv <jan.h.d@swipnet.se>
3575
a1fadc6f
JD
3576 * term.c (delete_tty): Remove check for last terminal (bug#4970).
3577
5ce6e4f4 3578 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
3579 defaults (bug #5025).
3580
28259cac
SM
35812009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
3582
3583 * insdel.c (adjust_markers_for_delete): Move it in the
3584 right direction! (bug#4803)
3585
e8e14166
YM
35862009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3587
3588 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
3589
3590 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
3591
86677b58
GM
35922009-11-24 Glenn Morris <rgm@gnu.org>
3593
3594 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
3595
581e51e8
JD
35962009-11-23 Jan Djärv <jan.h.d@swipnet.se>
3597
cfc86c7a
JD
3598 * Makefile.in: Must create deps for ecrt0.o in its rule.
3599
581e51e8
JD
3600 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
3601 because that is what Gtk+ font dialog understands.
3602
3603 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
3604 of Fcopy_sequence.
3605 (font_open_by_name): Put name given into QCname for font-object returned.
3606
3607 * frame.c (x_set_font): Save original font name as frame parameter
3608 font-parameter.
3609
3610 * xsettings.c (set_default_xft_settings): New function.
3611 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
3612 is found.
3613
8b264ecb
AS
36142009-11-22 Andreas Schwab <schwab@linux-m68k.org>
3615
3616 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
3617 searching backwards through multibyte buffer.
3618
872870b2
JD
36192009-11-21 Jan Djärv <jan.h.d@swipnet.se>
3620
3621 * xterm.c: #include xgselect.h.
3622 (x_initialize): Call xgselect_initialize.
3623
3624 * xsettings.c (something_changedCB): C++ comments => C comments.
3625 (init_gconf): Do not deal with any GLib file descriptors, xg_select
3626 does that now.
3627
3628 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
3629 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
3630 (scroll_bar_button_cb): Remove.
5ce6e4f4 3631 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
3632 event.
3633 (xg_create_scroll_bar): Don't bind button-press-event and
3634 button-release-event.
3635
3636 * process.c: Include xgselect.h if defined (USE_GTK) ||
3637 defined (HAVE_GCONF).
3638 (wait_reading_process_output): Call xg_select for the same condition.
3639
3640 * xgselect.c (xg_select): New function to better integrate with
3641 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
3642
3643 * xgselect.h: New file, declare xg_select, xgselect_initialize.
3644
3645 * Makefile.in (XOBJ): Add xgselect.o.
3646
62a6e103
AS
36472009-11-21 Andreas Schwab <schwab@linux-m68k.org>
3648
0b5397c2
SM
3649 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
3650 Remove ignored second argument. All callers changed.
62a6e103
AS
3651 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
3652 (RE_STRING_CHAR_AND_LENGTH): Likewise.
3653 * xdisp.c (string_char_and_length): Likewise.
3654
b0ca0f33
DN
36552009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
3656
3657 * xterm.c (x_new_font):
3658 * print.c (print_object):
3659 * cmds.c (Fself_insert_command): Move declarations before statements.
3660
dd5a6279
CY
36612009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
3662
3663 * s/cygwin.h: Remove unneeded linker flags.
3664
4a8e097d
JD
36652009-11-20 Jan Djärv <jan.h.d@swipnet.se>
3666
0d1d0d26
JD
3667 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
3668
3669 * xsettings.h: Declare xsettings_get_system_font.
3670
3671 * xsettings.c (xsettings_get_system_font): New function.
3672 (init_gconf): No use initiating gconf unless we have Xft also.
3673 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
3674 HAVE_GCONF.
3675
4a8e097d
JD
3676 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
3677 add a blank entry so it doesn't collapse into nothing.
3678
8ab1650e
SM
36792009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
3680
3681 * lread.c (Funintern): Comment out last change.
3682
82c602f0
RS
36832009-11-19 Richard Stallman <rms@gnu.org>
3684
3685 * lread.c (Funintern): Error if symbol is t or nil.
3686
87e32266
SM
36872009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
3688
3689 * insdel.c (make_gap_larger): Don't make as many assumptions about the
3690 representation of Lisp integers.
3691 Reported by MJ Chan <mjchan.inbox@gmail.com>.
3692
1b9ac145
AS
36932009-11-17 Andreas Schwab <schwab@linux-m68k.org>
3694
3695 * lisp.h: Remove declaration of Ffont_get_system_font.
3696 * xfns.c: Move include of "xsettings.h".
3697 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
3698
dfb3c4c6
JD
36992009-11-17 Jan Djärv <jan.h.d@swipnet.se>
3700
87e32266
SM
3701 * xsettings.c (something_changedCB, Ffont_get_system_font):
3702 Check use_system_font.
dfb3c4c6
JD
3703 (syms_of_xsettings): DEFVAR font-use-system-font.
3704
9370c1d8
AS
37052009-11-17 Andreas Schwab <schwab@linux-m68k.org>
3706
25fe851a
AS
3707 * xfns.c (x_default_font_parameter): Remove dead assignment.
3708
9370c1d8
AS
3709 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
3710
637fa988
JD
37112009-11-17 Jan Djärv <jan.h.d@swipnet.se>
3712
87e32266 3713 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 3714 not have FC_LCD_*. #define them if not there.
a6eb20d8 3715
87e32266 3716 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 3717
637fa988
JD
3718 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
3719
3720 * xterm.c (handle_one_xevent): Call xft_settings_event for
3721 ClientMessage, PropertyNotify and DestroyNotify.
3722 (x_term_init): If we have XFT, get DPI from Xft.dpi.
3723 Call xsettings_initialize.
3724
3725 * xftfont.c (xftfont_fix_match): New function.
3726 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
3727 Call xftfont_fix_match after XftFontMatch.
3728
3729 * xfont.c (xfont_driver): Initialize all members.
3730
87e32266
SM
3731 * xfns.c (x_default_font_parameter):
3732 Try font from Ffont_get_system_font.
637fa988
JD
3733 Do not get font from x_default_parameter if we got one from
3734 Ffont_get_system_font.
87e32266 3735 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
3736
3737 * w32font.c (w32font_driver): Initialize all members.
3738
3739 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
3740
3741 * lisp.h: Declare syms_of_xsettings.
3742
87e32266
SM
3743 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
3744 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
3745
3746 * ftfont.c (ftfont_filter_properties): New function.
3747
3748 * frame.c (x_set_font): Remove unused variable lval.
3749
87e32266 3750 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
3751
3752 * font.c (font_put_extra): Don't return if val is nil, it means
3753 boolean option is off.
3754 (font_parse_fcname): Collect all extra properties in extra_props
3755 and call filter_properties for all drivers with extra_props and
3756 font as parameter.
87e32266
SM
3757 (font_open_entity): Do not use cache, it does not pick up new
3758 fontconfig settings like hinting.
637fa988
JD
3759 (font_load_for_lface): If spec had a name in it, store it in entity.
3760
a73f9c9d 3761 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
3762
3763 * config.in: HAVE_GCONF is new.
3764
3765 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
3766 xsettings.o is new.
3767
5a942932
KH
37682009-11-17 Kenichi Handa <handa@m17n.org>
3769
3770 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
3771 back to the default font in case that no suitable font is found.
3772
b7c7a4d1
SM
37732009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
3774
3775 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
3776 Suggested by Chad Brown <yandros@mit.edu>.
3777 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
3778
072f1e39
JD
37792009-11-16 Jan Djärv <jan.h.d@swipnet.se>
3780
3781 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
3782
5d1e70a2
AS
37832009-11-14 Andreas Schwab <schwab@linux-m68k.org>
3784
87e32266 3785 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 3786
a53cfbe5
JD
37872009-11-14 Jan Djärv <jan.h.d@swipnet.se>
3788
473a99b7
JD
3789 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
3790 has a parent.
3791
a53cfbe5 3792 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 3793 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
3794
3795 * config.in: Generated (AUTO_DEPEND).
3796
f04bb9b2
MA
37972009-11-13 Michael Albinus <michael.albinus@gmx.de>
3798
b7c7a4d1 3799 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
3800 Vdbus_registered_functions_table, because it contains also
3801 properties. Fix docstring.
b7c7a4d1 3802 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 3803
8f11f7ec
SM
38042009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
3805
3806 * alloc.c (mark_object): Don't reprocess marked strings.
3807 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
3808 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
3809
8a605fe8
KH
38102009-11-13 Kenichi Handa <handa@m17n.org>
3811
8f11f7ec 3812 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
3813 semantics of Vword_combining_categories.
3814 (Vword_combining_categories): Describe the slight change of the
3815 semantics.
3816
241c4680
EZ
38172009-11-13 Eli Zaretskii <eliz@gnu.org>
3818
3819 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
3820
3821 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
3822
5d58e44c
SM
38232009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
3824
3825 * xdisp.c (syms_of_xdisp): Fix typo in last change.
3826
5e13f9d3
JB
38272009-11-12 Juanma Barranquero <lekktu@gmail.com>
3828
3829 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
3830
cf54c754
DR
38312009-11-11 David Reitter <david.reitter@gmail.com>
3832
3833 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
3834 variables to fix 2009-11-09 change.
3835
a4ada374
DN
38362009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
3837
91433552
DN
3838 * process.c (ifflag_def): Make flag_sym constant.
3839 (Fnetwork_interface_info): Use a constant pointer.
3840 (ifflag_table):
3841 * xfns.c (cursor_bits):
3842 * xdisp.c (power_letter):
3843 * termcap.c (speeds, esctab):
3844 * sysdep.c (baud_convert):
3845 * keyboard.c (lispy_accent_codes, modifier_names):
3846 * image.c (xbm_format, xpm_format, pbm_format, png_format)
3847 (jpeg_format, tiff_format, gif_format, svg_format)
3848 (interlace_start, interlace_increment, gs_format):
3849 * gtkutil.c (separator_names):
3850 * fringe.c (swap_nibble):
3851 * fns.c (base64_value_to_char, base64_char_to_value):
3852 * fileio.c (make_temp_name_tbl):
3853 * coding.c (suffixes): Make constant.
3854
f4265f6c
DN
3855 * frame.c (make_initial_frame):
3856 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
3857 build_string.
3858 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
3859
04420943
DN
3860 * s/freebsd.h:
3861 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
3862
0a5d24ae
DN
3863 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
3864 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
3865
a4ada374
DN
3866 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
3867 * xterm.c (syms_of_xterm):
3868 * xfaces.c (syms_of_xfaces):
3869 * xdisp.c (syms_of_xdisp):
3870 * lread.c (syms_of_lread):
3871 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
3872 build_string.
91433552 3873
a4ada374
DN
3874 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
3875
af98fc7f
SM
38762009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3877
8ab1650e 3878 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 3879
e90292a9
JD
38802009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3881
3882 * keyboard.h: Declare timer_check.
3883
3884 * keyboard.c (timer_check_2): New function that does what the old
3885 timer_check did.
3886 (timer_check): Call timer_check_2 until -1 or a non-zero time is
3887 returned, i.e. don't return -1 with timers pending.
3888
3889 * process.c: Remove extern declaration of timer_check.
3890
3891 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
3892 even if timer_check returned -1.
3893
af98fc7f
SM
3894 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
3895 xg_dialog_data.
e90292a9
JD
3896 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
3897 the event loop.
3898 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
3899 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
3900 Destroy the dialog after xg_dialog_run.
3901
045b83c0
SM
39022009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3903
3904 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
3905
1fb99a3a
JD
39062009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3907
3908 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
3909
04e452cb
JB
39102009-11-09 Juanma Barranquero <lekktu@gmail.com>
3911
3912 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
3913
ef7417fd
SM
39142009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
3915
3916 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
3917 w32menu.c, and nsmenu.m.
3918 Simplify the obsolete case where position is nil.
3919 (cleanup_popup_menu): New function, moved from nsmenu.m.
3920 (struct skp): Remove slot `notreal'.
3921 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
3922 adjust callers.
3923 (single_menu_item): Adjust call to parse_menu_item.
3924 (syms_of_menu): Defsubr x-popup-menu.
3925 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
3926 (keymap_panes): Don't export any more.
3927 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
3928 (xmenu_show): Declare.
3929 * keyboard.c (parse_menu_item): Remove arg `notreal'.
3930 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
3931 * keyboard.h (parse_menu_item): Update declaration.
3932 * xmenu.c (Fx_popup_menu): Remove.
3933 (syms_of_xmenu): Don't defsubr x-popup-menu.
3934 * w32menu.c (Fx_popup_menu): Remove.
3935 (syms_of_w32menu): Don't defsubr x-popup-menu.
3936 * nsmenu.m (cleanup_popup_menu): Remove.
3937 (ns_menu_show): Rename from ns_popup_menu and remove all the code
3938 moved to menu.c's Fx_popup_menu.
3939 (Fx_popup_menu): Remove.
3940 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
3941 menu_items (it's done in menu.c already).
3942
424d6179
SM
39432009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
3944
3945 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
3946 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
3947
c0df13a6 39482009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
3949
3950 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 3951 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
3952 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
3953 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
3954
2de9f71c
SM
39552009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
3956
3957 Let integers use up 2 tags to give them one extra bit and thus double
3958 their range.
3959 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
3960 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
3961 New macros.
3962 (enum Lisp_Type): Use them. Give explicit values.
3963 (Lisp_Type_Limit): Remove.
3964 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
3965 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
3966 Pay attention to USE_2_TAGS_FOR_INTS.
3967 (INTEGERP): Use LISP_INT_TAG_P.
3968 * fns.c (internal_equal): Simplify the default case.
3969 (sxhash): Use case_Lisp_Int.
3970 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
3971 any more.
3972 (Ftype_of): Use case_Lisp_Int.
3973 (store_symval_forwarding): Take into account the fact that Ints can
3974 now have more than one tag.
3975 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
3976 buffer_slot_type_mismatch):
3977 * xfaces.c (face_attr_equal_p):
3978 * print.c (print_object):
3979 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
3980 Use case_Lisp_Int.
3981
323637a2
EZ
39822009-11-06 Eli Zaretskii <eliz@gnu.org>
3983
7ac65b38
EZ
3984 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
3985
323637a2
EZ
3986 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
3987 warning.
3988
e511451f
JD
39892009-11-06 Jan Djärv <jan.h.d@swipnet.se>
3990
3991 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
3992
3993 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
3994
3995 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
3996 ButtonPressRelease and MotionNotify (bug#4870).
3997
5e2327cf
DN
39982009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
3999
5adc433e
DN
4000 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
4001
d67b4f80
DN
4002 * xterm.c (syms_of_xterm):
4003 * xselect.c (syms_of_xselect):
4004 * xmenu.c (syms_of_xmenu):
4005 * xfns.c (syms_of_xfns):
4006 * xfaces.c (syms_of_xfaces):
4007 * xdisp.c (syms_of_xdisp):
4008 * window.c (syms_of_window):
4009 * w32fns.c (syms_of_w32fns):
4010 * undo.c (syms_of_undo):
4011 * textprop.c (syms_of_textprop):
4012 * terminal.c (syms_of_terminal):
4013 * syntax.c (syms_of_syntax):
4014 * sound.c (syms_of_sound):
4015 * search.c (syms_of_search):
4016 * print.c (syms_of_print):
4017 * minibuf.c (syms_of_minibuf):
4018 * macros.c (syms_of_macros):
4019 * keymap.c (syms_of_keymap, initial_define_key)
4020 (initial_define_lispy_key):
4021 * keyboard.c (syms_of_keyboard):
4022 * insdel.c (syms_of_insdel):
4023 * image.c (syms_of_image):
4024 * fringe.c (syms_of_fringe):
4025 * frame.c (syms_of_frame):
4026 * fontset.c (syms_of_fontset):
4027 * fns.c (syms_of_fns):
4028 * fns.c (syms_of_fns):
4029 * fileio.c (syms_of_fileio):
4030 * fileio.c (syms_of_fileio):
4031 * eval.c (syms_of_eval):
4032 * doc.c (syms_of_doc):
4033 * dispnew.c (syms_of_display):
4034 * dired.c (syms_of_dired):
4035 * dbusbind.c (syms_of_dbusbind):
4036 * data.c (syms_of_data):
4037 * composite.c (syms_of_composite):
4038 * coding.c (syms_of_coding):
4039 * cmds.c (syms_of_cmds):
4040 * charset.c (define_charset_internal, syms_of_character):
4041 * ccl.c (syms_of_ccl):
4042 * category.c (syms_of_category, init_category_once):
4043 * casetab.c (syms_of_casetab):
4044 * casefiddle.c (syms_of_casefiddle):
4045 * callint.c (syms_of_callint):
4046 * bytecode.c (syms_of_bytecode):
4047 * buffer.c (keys_of_buffer, syms_of_buffer):
4048 * alloc.c (syms_of_alloc):
4049 * process.c (syms_of_process, init_process):
4050 * lread.c (syms_of_lread, init_obarray):
4051 * font.c (build_style_table):
4052 * emacs.c (syms_of_emacs, main): Replace calls to intern with
4053 intern_c_string, calls to make_pure_string with
4054 make_pure_c_string. Use pure_cons instead of Fcons.
4055
5e2327cf
DN
4056 * process.c (socket_options): Make it const.
4057 (set_socket_option, init_process): Use a const pointer.
4058
4059 * lread.c (intern_c_string): New function.
4060 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
4061 (defvar_int): Uset it. Make the name const char*.
4062
4063 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
4064 (defvar_int): Update prototypes.
4065 (DEFUN, EXFUN): Support for prototypes is now required.
4066 (intern_c_string): New prototype.
4067 (struct Lisp_Subr): Make symbol_name constant.
4068
4069 * font.c (struct table_entry): Remove unused member. Make NAMES
4070 constant.
4071 (weight_table, slant_table, width_table): Make constant.
4072
4073 * emacs.c (struct standard_args): Make name and longname constant.
4074
4075 * character.h (DEFSYM): Use intern_c_string.
4076
a56eaaef
DN
40772009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
4078
4079 * alloc.c (make_pure_c_string): New function.
4080
4081 * eval.c (Fautoload): Purecopy all arguments.
4082
f6a07420
KH
40832009-11-05 Kenichi Handa <handa@m17n.org>
4084
4085 * fileio.c (Finsert_file_contents): Be sure set coding-system of
4086 the buffer in case of replace.
4087
5d28d4b1
DN
40882009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
4089
4090 * puresize.h (BASE_PURESIZE): Increase to 1620000.
4091
b349d111
SM
40922009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
4093
d528b1ce
SM
4094 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
4095 when applicable (bug#4851).
4096
b349d111
SM
4097 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
4098 (P_): Support for prototypes is now required.
4099
c38eb027
CY
41002009-10-31 Chong Yidong <cyd@stupidchicken.com>
4101
4102 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
4103 (Bug#4827).
4104
0405f8d9
EZ
41052009-10-30 Eli Zaretskii <eliz@gnu.org>
4106
d528b1ce 4107 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 4108
ca0a881a
DN
41092009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
4110
4111 * puresize.h (BASE_PURESIZE): Increase to 1470000.
4112
d528b1ce
SM
4113 * lread.c (Fload): Purecopy the file name when building
4114 Vpreloaded_file_list.
ca0a881a 4115
47e0e0e4
JR
41162009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
4117
4118 * w32fns.c (syms_of_w32fns): Change default value of
4119 w32-scroll-lock-modifier to nil. (Bug#2827)
4120
057bce6f
JB
41212009-10-26 Juanma Barranquero <lekktu@gmail.com>
4122
782a943e 4123 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 4124
242bc74c
AS
41252009-10-26 Andreas Schwab <schwab@redhat.com>
4126
4127 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
4128
522d013a
JB
41292009-10-26 Juanma Barranquero <lekktu@gmail.com>
4130
4131 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
4132 For delta < 0, skip check that only makes sense when the mini-window
4133 is going to be enlarged. (Bug#4534)
4134
18060980
CY
41352009-10-25 Chong Yidong <cyd@stupidchicken.com>
4136
4137 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
4138 string in menu maps (Bug#4471).
4139
fec8f0fe
CY
41402009-10-24 Chong Yidong <cyd@stupidchicken.com>
4141
4142 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
4143 FRAME_NS_VIEW on terminal frames (Bug#4765).
4144
10d66ec0
AS
41452009-10-24 Andreas Schwab <schwab@linux-m68k.org>
4146
1cae01f7
AS
4147 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
4148 DBUS_TYPE_UINTnn separately to get proper sign extension.
4149
58a12889
AS
4150 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
4151 can properly handle unsigned types.
d528b1ce 4152 (make_uid, make_gid): Remove.
58a12889 4153
987c9327
AS
4154 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
4155 types again.
4156
522d013a 4157 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
4158 (system_process_attributes): Likewise.
4159
905a9ed3
DN
41602009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
4161
4162 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
4163
4164 * eval.c (Fautoload): Purecopy the filename. Simplify.
4165
4166 * category.c (Fdefine_category): Purecopy docstring.
4167
a599b3e8
AS
41682009-10-23 Andreas Schwab <schwab@linux-m68k.org>
4169
7b792fc9
AS
4170 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
4171
a599b3e8
AS
4172 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
4173
b35ac83e
CY
41742009-10-23 Chong Yidong <cyd@stupidchicken.com>
4175
4176 * window.c (Fwindow_edges, Fwindow_pixel_edges)
4177 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
4178 (Bug#4775).
4179
e8903e00
SM
41802009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
4181
4182 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
4183 (init_fileio_once):
4184 * lisp.h (init_fileio_once): Remove.
4185 * emacs.c (main): Don't call init_fileio_once.
4186
8f43cbf3
DN
41872009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
4188
4189 * puresize.h (BASE_PURESIZE): Increase to 1430000.
4190
26898943
AS
41912009-10-21 Andreas Schwab <schwab@linux-m68k.org>
4192
4193 * doprnt.c (doprnt): Fix overflow check.
4194
5c646d5a
JD
41952009-10-21 Jan Djärv <jan.h.d@swipnet.se>
4196
3132a7ea
JD
4197 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
4198
5c646d5a
JD
4199 * xterm.h (x_wait_for_event): Declare it.
4200
4201 * xterm.c (pending_event_wait): New variable.
4202 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
4203 see pending_event_wait.eventtype.
4204 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
4205 (x_new_font): Call change_frame_size with new rows/columns before we
4206 try to resize the frame.
5c646d5a 4207 (x_wait_for_event): New function.
d528b1ce
SM
4208 (x_set_window_size_1): Don't change gravity unless change_gravity
4209 is set.
5c646d5a
JD
4210 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
4211 don't change frame size, instead wait for the ConfigureNotify.
4212 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
4213 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
4214 (x_initialize): Initialize pending_event_wait.
4215
4216 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
4217 size.
4218
4219 * widget.c (EmacsFrameSetValues): Add comment.
4220 (EmacsFrameSetCharSize): Just call x_set_window_size.
4221
4222 * gtkutil.c (xg_frame_set_char_size): Flush events and call
4223 x_wait_for_event.
d528b1ce 4224 (flush_and_sync): Remove again.
5c646d5a
JD
4225 (xg_get_font_name): Suggest monospace if no previous font is known.
4226
e9c1637d
SM
42272009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
4228
4229 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 4230 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 4231
5a72cccb
YM
42322009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4233
4234 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
4235 processing pending events when event is filtered for input method.
ab04798f 4236 (Bug#3681)
5a72cccb 4237
2629aa37
JB
42382009-10-20 Juanma Barranquero <lekktu@gmail.com>
4239
4240 * fns.c: Add #endif accidentally removed in previous change.
4241
c3417a74
DN
42422009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
4243
4244 * fns.c: Remove code for unsupported system: MAC_OS.
4245 * image.c: Likewise. Include setjmp.h.
4246
9685cef2
JD
42472009-10-19 Jan Djärv <jan.h.d@swipnet.se>
4248
4249 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
4250 pixel -1 (bug #4742).
4251
d7306fe6
DN
42522009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
4253
019d2c4c
DN
4254 * process.c (create_pty): Remove conditionals for no longer
4255 supported systems: UNIPLUS and RTU.
4256
ee6bacd4
DN
4257 * xterm.c:
4258 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
4259
d7306fe6
DN
4260 * alloc.c: Do not define struct catchtag.
4261 * eval.c: Move struct catchtag definition ...
4262 * lisp.h: ... here.
4263
4264 * image.c: Move png.h #include earlier to avoid warnings.
4265
4266 * xterm.c:
4267 * xsmfns.c:
4268 * xselect.c:
4269 * xrdb.c:
4270 * xmenu.c:
4271 * xftfont.c:
4272 * xfont.c:
4273 * xfns.c:
4274 * xfaces.c:
4275 * xdisp.c:
4276 * window.c:
4277 * widget.c:
4278 * w32xfns.c:
4279 * w32uniscribe.c:
4280 * w32term.c:
4281 * w32select.c:
4282 * w32reg.c:
4283 * w32proc.c:
4284 * w32menu.c:
4285 * w32inevt.c:
4286 * w32heap.c:
4287 * w32font.c:
4288 * w32fns.c:
4289 * w32console.c:
4290 * w32.c:
4291 * w16select.c:
4292 * vm-limit.c:
4293 * unexsol.c:
4294 * unexec.c:
4295 * unexcw.c:
4296 * unexaix.c:
4297 * undo.c:
4298 * tparam.c:
4299 * textprop.c:
4300 * terminfo.c:
4301 * terminal.c:
4302 * termcap.c:
4303 * term.c:
4304 * syntax.c:
4305 * sound.c:
4306 * sheap.c:
4307 * search.c:
4308 * scroll.c:
4309 * region-cache.c:
4310 * regex.c:
4311 * ralloc.c:
4312 * process.c:
4313 * print.c:
b024548b
DN
4314 * nsterm.m:
4315 * nsselect.m:
4316 * nsmenu.m:
4317 * nsimage.m:
4318 * nsfont.m:
4319 * nsfns.m:
d7306fe6
DN
4320 * msdos.c:
4321 * minibuf.c:
4322 * menu.c:
4323 * marker.c:
4324 * macros.c:
4325 * keymap.c:
4326 * keyboard.c:
4327 * intervals.c:
4328 * insdel.c:
4329 * indent.c:
4330 * gtkutil.c:
4331 * ftxfont.c:
4332 * ftfont.c:
4333 * fringe.c:
4334 * frame.c:
4335 * fontset.c:
4336 * font.c:
4337 * fns.c:
4338 * floatfns.c:
4339 * filelock.c:
4340 * fileio.c:
4341 * emacs.c:
4342 * editfns.c:
4343 * dosfns.c:
4344 * doprnt.c:
4345 * doc.c:
4346 * dispnew.c:
4347 * dired.c:
4348 * dbusbind.c:
4349 * data.c:
4350 * composite.c:
4351 * coding.c:
4352 * cmds.c:
4353 * cm.c:
4354 * chartab.c:
4355 * charset.c:
4356 * character.c:
4357 * ccl.c:
4358 * category.c:
4359 * casetab.c:
4360 * casefiddle.c:
4361 * callproc.c:
4362 * callint.c:
4363 * bytecode.c:
4364 * buffer.c:
4365 * atimer.c: Include setjmp.h. (Bug#4643)
4366
fd5f21e6
SM
43672009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
4368
4c0354d7
SM
4369 Remove leftover table unibyte_to_multibyte_table.
4370 * character.c (unibyte_to_multibyte_table): Remove.
4371 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
4372 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
4373 * character.h (UNIBYTE_TO_CHAR): New macro.
4374 (MAKE_CHAR_MULTIBYTE): Use it.
4375 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
4376 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
4377 (message_dolog, set_message_1):
4378 * search.c (Freplace_match):
4379 * editfns.c (Fcompare_buffer_substrings):
4380 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
4381 (concat):
4382 * insdel.c (copy_text, count_size_as_multibyte):
4383 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
4384 * term.c (produce_glyphs):
4385 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
4386 * regex.c (RE_CHAR_TO_MULTIBYTE):
4387 * cmds.c (internal_self_insert):
4388 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
4389
fd5f21e6
SM
4390 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
4391
4418646e
DN
43922009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
4393
4394 * puresize.h (BASE_PURESIZE): Increase to 1310000.
4395
35f5c1d2
JB
43962009-10-16 Juanma Barranquero <lekktu@gmail.com>
4397
4398 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
4399
a0cd8f6b
AR
44002009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
4401
4402 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
4403 still needed under Tiger.
4404
4405 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
4406
4407 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
4408 __Apple__.
4409
4410 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
4411
01a8d3fa
KH
44122009-10-15 Kenichi Handa <handa@m17n.org>
4413
4414 * print.c (print_object): Escape a symbol like "2E10" too.
4415
bf6c75c9 44162009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
4417
4418 Cleanups and changes for 64-bit compile under Snow Leopard.
4419 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
4420
4421 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
4422
c5959062 4423 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
4424 (ns_findfonts, nsfont_list_family): Use long format in printf, and
4425 cast argument.
4426 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 4427 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
4428
4429 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
4430
4431 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
4432 where appropriate.
4433
4434 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
4435 where appropriate.
6e4780c5
JB
4436 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
4437 Use stringWithUTF8String.
bf6c75c9
AR
4438 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
4439
6e4780c5
JB
4440 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
4441 Add formal protocol mention to inheritance.
bf6c75c9
AR
4442 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
4443
6e4780c5
JB
4444 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
4445 Fix printf format.
bf6c75c9
AR
4446 (ns_query_color): Use CGFloat where appropriate.
4447 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 4448 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
4449 argument.
4450
3d87f118
AR
4451 * config.in (NS_HAVE_NSINTEGER): Drop.
4452
a95c8102
AR
4453 * dbusbind.c (dbus-method-return-internal)
4454 (dbus-method-error-internal): Use long format in printf, and cast
4455 argument.
4456
4457 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
4458 in printf, and cast argument.
4459
6873acca 4460 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
4461 cast argument.
4462
9ec6f100
GM
44632009-10-11 Glenn Morris <rgm@gnu.org>
4464
4465 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
4466
5be883cd
JD
44672009-10-08 Jan Djärv <jan.h.d@swipnet.se>
4468
4469 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
4470 menu bar with a small width so it doesn't enlarge the frame.
4471
d7a39b51
JB
44722009-10-08 Juanma Barranquero <lekktu@gmail.com>
4473
4474 * fontset.c (Fset_fontset_font): Fix typos in error messages.
4475
0c2b6f8e
GM
44762009-10-06 Glenn Morris <rgm@gnu.org>
4477
4478 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
4479 SOME_MACHINE_LISP (this enters indirectly via DOC).
4480
e02131a2
EZ
44812009-10-05 Eli Zaretskii <eliz@gnu.org>
4482
4483 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
4484
b4744254
EZ
44852009-10-04 Eli Zaretskii <eliz@gnu.org>
4486
4487 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
4488 Doc fix.
4489
dbf64827
JB
44902009-10-03 Martin Rudalics <rudalics@gmx.at>
4491
4492 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
4493
e9a0aef8
MA
44942009-10-02 Michael Albinus <michael.albinus@gmx.de>
4495
d528b1ce 4496 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
4497 used anymore outside fileio.c.
4498
4499 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
4500
64eb2b56
JB
45012009-10-01 Juanma Barranquero <lekktu@gmail.com>
4502
4503 * lisp.h (Qdelete_directory_internal):
4504 Declare, instead of Qdelete_directory.
4505
4506 * w32fns.c (Fsystem_move_file_to_trash): Use it.
4507
9d28c33e
SM
45082009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
4509
4510 * eval.c (Fcalled_interactively_p): Add `kind' argument.
4511
9d8f3bd9
MA
45122009-10-01 Michael Albinus <michael.albinus@gmx.de>
4513
9d28c33e 4514 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
4515 Fdelete_directory. It is not a command anymore. It has no file
4516 name handler.
4517
9694740b
SM
45182009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
4519
4520 * xdisp.c (get_next_display_element): Use an enum in last change.
4521
748e162f
KH
45222009-09-28 Kenichi Handa <handa@m17n.org>
4523
9694740b 4524 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
4525 unibyte_display_via_language_environment in handling
4526 Vnobreak_char_display.
4527
17efd58d
AR
45282009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
4529
4530 * nsterm.h (ns_app_name): New extern variable.
4531
4532 * nsterm.m (ns_app_name): New variable.
4533 (ns_term_init): Set and use it.
4534 (ns_term_shutdown): Use it.
4535
4536 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
4537 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
4538
4539 * nsfns.m (ns_set_name_iconic, ns_set_name)
4540 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
4541 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
4542
9694740b
SM
4543 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
4544 Remove double-casting in client_data comparison.
31c2d412 4545
3208cb35
YM
45462009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4547
4548 * keyboard.c (make_lispy_event): Remember last wheel direction.
4549 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
4550
b7d552d6
GM
45512009-09-26 Glenn Morris <rgm@gnu.org>
4552
4553 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
4554 internal.elc. Add term/pc-win.elc.
4555 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
4556 term/x-win.elc.
4557 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
4558 term/w32-win.elc.
4559 (NS_SUPPORT): New.
4560 (lisp): Add NS_SUPPORT.
4561 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
4562
4ff670a8
DR
45632009-09-25 David Reitter <david.reitter@gmail.com>
4564
4565 * nsmenu.m (EmacsMenu-clear): Recognize application menu
4566 on Mac OS X 10.6+ (bug#4513).
4567
feabfb6c
JB
45682009-09-24 Juanma Barranquero <lekktu@gmail.com>
4569
4570 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
4571 some parts of Emacs code (like font selection) don't grok them.
4572 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 4573
de59072a
AS
45742009-09-24 Andreas Schwab <schwab@redhat.com>
4575
4576 * coding.c (decode_coding_iso_2022): Fix operator precedence.
4577
a489517b
JB
45782009-09-24 Juanma Barranquero <lekktu@gmail.com>
4579
4580 * dired.c (Fdirectory_files): Fix typo in docstring.
4581
0592970c
AR
45822009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4583
4584 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
4585 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
4586 (EmacsScroller-setPosition:portion:whole:): Remove -display call
4587 under GNUstep.
4588 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
4589
4590 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
4591 glyph advancement.
4592
48e8a88b
AR
45932009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4594
4595 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 4596 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
4597
4598 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
4599 deleted (bug #4492).
4600
e14f0a78
AR
4601 * nsfont.m (Vns_reg_to_script): New lisp variable.
4602 (syms_of_nsfont): Declare it.
4603 (ns_registry_to_script): New function.
4604 (ns_get_req_script): Call it.
4605 (ns_findfonts): Don't give up on non-unicode registry.
4606
4607 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
4608
5b650faa
SM
46092009-09-20 Tom Tromey <tromey@redhat.com>
4610
4611 * eval.c (find_handler_clause): Make stack-trace-on-error work in
4612 batch mode (bug#4228).
4613
a489517b 46142009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
4615
4616 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 4617 carefully. (Bug #4339)
0bae4e09 4618
fcfe06f3
CY
46192009-09-18 Chong Yidong <cyd@stupidchicken.com>
4620
d798ba87 4621 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 4622
31642728
AR
46232009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
4624
4625 * emacs.c (inhibit_x_resources): Update doc string for NS.
4626 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 4627 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
4628
4629 * nsterm.h (ns_no_defaults): Remove.
4630
4631 * nsterm.m (ns_no_defaults): Remove.
4632 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
4633 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
4634 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
4635 don't update the NSWindow itself.
4636 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 4637 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
4638
4639 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
4640 ns_use_qd_smoothing.
4641
4642 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
4643 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 4644 (x-close-connection): Drop PSFlush() under OS X.
a489517b 4645 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 4646
8686ac71
JB
46472009-09-17 Juanma Barranquero <lekktu@gmail.com>
4648
4649 * emacs.c (inhibit_x_resources): New variable.
4650 (main) [HAVE_NS]: Don't process --quick command line option.
4651 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
4652
4653 * lisp.h (inhibit_x_resources): Declare it extern.
4654
4655 * w32reg.c (x_get_string_resource):
4656 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
4657
e227ba05
EZ
46582009-09-17 Eli Zaretskii <eliz@gnu.org>
4659
362654a6
JB
4660 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
4661 Add lisp/term/internal.elc.
e227ba05 4662
742d40e8
SM
46632009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
4664
4665 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
4666 (bug#4461).
4667
005bd5a2
DN
46682009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
4669
4670 * puresize.h (BASE_PURESIZE): Increase to 1290000.
4671
4672 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
4673 (OBJECTS_MACHINE): Remove, unused.
4674
f9af9719
SM
46752009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
4676
4677 * frame.c (x_get_resource_string): Remove unused.
4678
0307c7d2
JD
46792009-09-15 Jan Djärv <jan.h.d@swipnet.se>
4680
4681 * xterm.c (x_new_font): Call change_frame_size before calling
4682 x_set_window_size, in case frame size won't change.
4683
4684 * frame.c (x_set_font): Remove dead code.
4685
428b13d6
SM
46862009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
4687
4688 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
4689
5766c380
SM
46902009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4691
4692 * lread.c (Fload): Don't output a message after loading an obsolete
4693 package any more (done in Lisp now).
4694
2fd0161b
CY
46952009-09-12 Chong Yidong <cyd@stupidchicken.com>
4696
4697 * fns.c (syms_of_fns): Doc fix (Bug#4227).
4698
bc5e75b6
SM
46992009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4700
4701 * keymap.c (Fwhere_is_internal): Use nconc2.
4702
c31c985e
AM
47032009-09-11 Alan Mackenzie <acm@muc.de>
4704
4705 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
4706 batch mode.
4707
78012bd2
AS
47082009-09-11 Andreas Schwab <schwab@linux-m68k.org>
4709
4710 * xdisp.c (display_mode_element): Detect cycles.
4711
9d889332
SM
47122009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4713
4714 * keymap.c (where_is_internal): Don't erroneously return nil right after
4715 filling the cache.
4716 (where_is_internal_1): Fix up typo.
4717
7ab5d780
GM
47182009-09-11 Glenn Morris <rgm@gnu.org>
4719
4720 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
4721 share a common doc-string.
4722
5238a749
SM
47232009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4724
66d77eda
SM
4725 * keymap.c (get_keymap): Return the actual keymap symbol rather than
4726 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
4727
5238a749
SM
4728 * keymap.c (QCadvertised_binding): New constant.
4729 (syms_of_keymap): Initialize it.
4730 (Fwhere_is_internal): Try and use bindings from :advertised-binding
4731 if applicable.
4732
19f48442
SM
47332009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
4734
50d4ba39
SM
4735 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
4736 (parse_menu_item): Streamline since bindings are recomputed all the
4737 time anyway. Don't bother checking Vdefine_key_rebound_commands any
4738 more and don't support lmenu's menu-alias any more either.
4739
a88a5372
SM
4740 * keymap.c (where_is_internal_data): Make noindirect a boolean.
4741 (where_is_internal): Strip it down to only traverse the keymaps.
4742 Move the cache handling from Fwhere_is_internal to here.
4743 (Fwhere_is_internal): Move the handling of remapping and the choice of
4744 the best binding from where_is_internal to here.
4745 Unify the cached/noncached paths, so remapping is also handled
4746 correctly when the cache is used, and so the cache can be used to
4747 speed up remap-handling when applicable.
4748 Give preference to non-remapped bindings.
4749 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
4750 non-remapped bindings.
4751 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
4752 command remapping.
4753
19f48442
SM
4754 * xdisp.c (display_mode_element): Move list length limit from 50 to
4755 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
4756
599498c3 47572009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
4758
4759 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
4760
f9b7b5ac
SM
47612009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
4762
a53af587
JB
4763 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
4764 (Bug#4334)
4765
f9b7b5ac
SM
4766 * keymap.c (where_is_internal): Filter out shadowed remappings.
4767 Assume that where_is_internal returns unshadowed bindings to simplify
4768 the code and get rid of the gotos. Use ASIZE.
4769
04f4b72d
JD
47702009-09-04 Jan Djärv <jan.h.d@swipnet.se>
4771
4da146f2
JD
4772 * xterm.c (x_focus_changed): If we get a focusout and pointer
4773 is invisible, make it visible.
4774
04f4b72d
JD
4775 * xterm.h: Remove condition for declaration of
4776 x_*_window_to_frame.
4777
7cef7ce3
SM
47782009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
4779
4780 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
4781 initial terminal as well.
4782
a54fa5b7
JD
47832009-09-02 Jan Djärv <jan.h.d@swipnet.se>
4784
4785 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 4786 x_menubar_window_to_frame.
a54fa5b7 4787
50426a04 4788 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
4789 (XTmouse_position): Do not return valid positions
4790 for clicks in the menubar and the toolbar for Gtk+.
4791
4792 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
4793 if the widget for the event has the same top level as a frame,
4794 return the frame.
4795 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
4796 internal windows, bug #4122.
4797 (x_non_menubar_window_to_frame): Remove.
4798
5a021dd0
GM
47992009-09-02 Glenn Morris <rgm@gnu.org>
4800
4801 * buffer.c (default-major-mode): Move most of the doc from here...
4802 (major-mode): ... to here.
4803
548fe2f3
NR
48042009-08-30 Nick Roberts <nickrob@snap.net.nz>
4805
4806 * process.c (wait_reading_process_output): Keep the descriptor
4807 when pty is used by a non-child process, e.g., in I/O buffer of
4808 GDB this allows inferior to be restarted.
4809
e0840eef
EZ
48102009-08-29 Eli Zaretskii <eliz@gnu.org>
4811
4812 * xdisp.c (redisplay_internal): Remove redundant test and collapse
4813 both branches into one.
4814
82e98df4
SM
48152009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
4816
4817 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
4818 (main): Use enable-multibyte-characters rather than
4819 default-enable-multibyte-characters. Output a warning message when
4820 running a unibyte session.
4821
890617cb
YM
48222009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4823
4824 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
4825 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
4826 (copy_data_segment): Also copy __program_vars section.
4827 (copy_dyld_info) [LC_DYLD_INFO]: New function.
4828 (dump_it) [LC_DYLD_INFO]: Use it.
4829
4830 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
4831
e7adeadc
EZ
48322009-08-28 Eli Zaretskii <eliz@gnu.org>
4833
4834 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
4835 $(SRC)/buildobj.h.
4836 (buildobj.h): Renamed from $(SRC)/buildobj.h.
4837 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
4838 $(SRC)/buildobj.h.
4839 (clean): Add buildobj.h.
4840
3ed8bbdc
TZ
48412009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
4842
4843 * print.c (print_object): Set escapeflag to 1 when printing
4844 hashtable keys and values.
4845
155a6764
SM
48462009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
4847
4848 * lread.c (read_integer): Use doubles (and potentially return a float
4849 number) as we do in string-to-number.
4850 (read1): Use strtol to read integers, signal errors on strtol's
4851 overflow and use floats if strtol's output is too large for
4852 Elisp integers.
4853
877610de
EZ
48542009-08-27 Eli Zaretskii <eliz@gnu.org>
4855
4856 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
4857 (make-buildobj-SH): Fix last change.
4858 (SRC): Move to before where it's first used.
4859
ef73e7be
KH
48602009-08-27 Kenichi Handa <handa@m17n.org>
4861
550c8289
KH
4862 * process.c (send_process): Use encode_coding_object instead of
4863 encode_coding_string to perform eol-conversion even if the string
4864 is unibyte.
4865
60afa08d
KH
4866 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
4867 character.
4868
ef73e7be 4869 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 4870 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 4871
7b3a82d7
DN
48722009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
4873
5654bf63
DN
4874 * callproc.c (Fcall_process): Remove always true #if.
4875
7b3a82d7
DN
4876 * lisp.h: Replace #if 0 code for checking with text pointing to
4877 the --enable-checking configure flag.
4878
4879 * emacs.c (main): Mention the --enable-profiling configure flag
4880 instead of using CFLAGS.
4881
878bde49
KR
48822009-08-26 Ken Raeburn <raeburn@raeburn.org>
4883
4884 * Makefile.in (buildobj.h): New target.
4885 (doc.o): Depend on it.
4886 (temacs${EXEEXT}): Don't generate buildobj.lst.
4887 (mostlyclean): Delete buildobj.h, not buildobj.lst.
4888 * makefile.w32-in ($(SRC)/buildobj.h): New target.
4889 ($(BLD)/doc.$(O)): Depend on it.
4890 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
4891 provided by Eli Zaretskii.)
4892 ($(TEMACS)): Don't generate buildobj.lst.
4893 * doc.c: Include buildobj.h.
4894 (buildobj): New static variable.
4895 (Fsnarf_documentation): Use it, instead of opening and reading
4896 buildobj.lst.
4897
1574224c
MA
48982009-08-25 Michael Albinus <michael.albinus@gmx.de>
4899
4900 * dbusbind.c (Fdbus_call_method)
4901 (Fdbus_call_method_asynchronously): Use English numeric format for
4902 timeout values in doc string.
4903
d9da2f45
KH
49042009-08-25 Kenichi Handa <handa@m17n.org>
4905
ef73e7be
KH
4906 * alloc.c (mark_char_table): New function.
4907 (mark_object): Use mark_char_table for a char-table.
4908
d9da2f45
KH
4909 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
4910 (CHAR_TABLE_REF): Use it.
4911
c8edcc01
KR
49122009-08-23 Ken Raeburn <raeburn@raeburn.org>
4913
4914 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
4915 before invoking the newly build emacs to check for load-path
4916 shadowing.
4917
7763401b
GM
49182009-08-22 Glenn Morris <rgm@gnu.org>
4919
4920 * Makefile.in (bootstrap_exe): New variable.
4921 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
4922 Use ${bootstrap_exe}.
4923
729eadda
EZ
49242009-08-22 Eli Zaretskii <eliz@gnu.org>
4925
4926 * coding.h (encode_coding_string): Don't encode unibyte strings.
4927 (Bug#4047)
4928
eb4c6ace
MA
49292009-08-22 Michael Albinus <michael.albinus@gmx.de>
4930
4931 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
4932
4933 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
4934 intended as hotfix only.
4935 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
4936
36e34d1b
AR
49372009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4938
4939 * nsterm.m (ns_get_color): Update documentation properly for last
4940 change, and clean up loose ends in the code left by it. Fix
4941 longstanding bug with 16-bit hex parsing, and add support for
4942 yet another X11 format (rgb:r/g/b) for compatibility.
4943 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
4944 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
4945
f983eb8a
SM
49462009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
4947
4948 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
4949
3f56d3c6
MA
49502009-08-20 Michael Albinus <michael.albinus@gmx.de>
4951
4952 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
4953 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
4954 (xd_initialize, xd_pending_messages): Check, whether
4955 $DBUS_SESSION_BUS_ADDRESS is set.
4956
fb641d68
YM
49572009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4958
4959 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
4960
4961 * nsterm.m (ns_get_color): Remove incompatible color formats again.
4962
cf59a374
GM
49632009-08-20 Glenn Morris <rgm@gnu.org>
4964
4965 * emacs.c (system-type): Doc fix.
4966
1373f3be
SM
49672009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
4968
4969 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
4970 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
4971
058ed861
MA
49722009-08-18 Michael Albinus <michael.albinus@gmx.de>
4973
1373f3be
SM
4974 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
4975 New functions.
058ed861
MA
4976 (xd_initialize): Revert change from 2009-08-16.
4977
563a866e 49782009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
4979
4980 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 4981 font-group vector, return nil.
5fc05db0 4982
e42bdf01
CY
49832009-08-17 Chong Yidong <cyd@stupidchicken.com>
4984
4985 * process.c (status_notify): Don't perform redisplay.
4986 (Fdelete_process, list_processes_1, process_send_signal):
4987 Expliticly perform redisplay.
4988 (wait_reading_process_output): Always check process status, but
4989 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
4990
4230ab74
KR
49912009-08-17 Ken Raeburn <raeburn@raeburn.org>
4992
1373f3be 4993 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
4994 (XFLOAT_INIT): New macro for storing a float value.
4995 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
4996 * fns.c (sxhash): Copy out the value of a float in order to
4997 examine its bytes.
4998 * dbusbind.c (xd_append_arg): Likewise.
4999
4230ab74
KR
5000 * emacs.c (main): Don't call syms_of_data twice.
5001
a0645cdd
MA
50022009-08-16 Michael Albinus <michael.albinus@gmx.de>
5003
5004 * dbusbind.c (xd_initialize): Add connection file descriptor to
5005 input_wait_mask, in order to let select() detect, whether a new
5006 message has been arrived.
ca4f31ea 5007 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 5008
485db0ba
MA
50092009-08-15 Michael Albinus <michael.albinus@gmx.de>
5010
1373f3be
SM
5011 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
5012 New functions.
485db0ba
MA
5013
5014 * lisp.h (xd_pending_messages): Declare.
5015
5016 * keyboard.c (readable_events): Call xd_pending_messages.
5017
b5b98ff4
CY
50182009-08-15 Chong Yidong <cyd@stupidchicken.com>
5019
1373f3be 5020 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 5021
f8354c6e
CY
5022 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
5023
b5b98ff4
CY
5024 * buffer.c (set_buffer_internal_1)
5025 (swap_out_buffer_local_variables): Check for unbound local
5026 variables (Bug#4138).
5027
8b9fc636
EZ
50282009-08-14 Eli Zaretskii <eliz@gnu.org>
5029
5030 * process.c (create_pty): Fix last change.
5031
ce959360
CY
50322009-08-13 Chong Yidong <cyd@stupidchicken.com>
5033
5034 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
5035 (xbm_load_image): Caller changed.
64b807c9 5036 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 5037
c7baf7e9
NR
50382009-08-13 Nick Roberts <nickrob@snap.net.nz>
5039
5040 * process.c (create_pty): New function.
5041 (Fstart_process): Use it to allow Emacs to just associate a pty
5042 with the buffer. See associated change in gdb-mi.el.
5043 (list_processes_1): Deal with no program name.
5044 (start_process_unwind): Use pid == -2 to mean no process.
5045
1ac9108a
SM
50462009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
5047
5048 * cmds.c (nonundocount): New global variable.
5049 (keys_of_cmds): Initialize it.
5050 (Fself_insert_command): Use it to combine upto 20 sequential chars
5051 into a single undo entry, just like the Qself_insert_command code in
5052 keyboard.c does.
5053 Call frame_make_pointer_invisible, also like the Qself_insert_command
5054 code in keyboard.c does.
5055 * keyboard.c (command_loop_1): Use the new global nonundocount rather
5056 than its own local replacement for it.
5057
e267324c
KR
50582009-08-10 Ken Raeburn <raeburn@raeburn.org>
5059
1ac9108a 5060 * fns.c (concat): Don't re-set string length to its current value.
77437343 5061
1ac9108a
SM
5062 * coding.h (decode_coding_string, encode_coding_string):
5063 Use SBYTES macro.
f0bed503 5064
1ac9108a 5065 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
5066 (doprnt): Merge with doprnt1, discarding lispstrings code.
5067 * lisp.h (doprnt_lisp): Don't declare.
5068
416e006d
JL
50692009-08-07 Juri Linkov <juri@jurta.org>
5070
5071 * puresize.h (BASE_PURESIZE): Increase to 1270000.
5072
6f7d5780
DN
50732009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
5074
5075 * print.c (syms_of_print): Undo previous change.
5076
f19a0f5b
TZ
50772009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
5078
5079 * lread.c (read1, syms_of_lread): Read hashtables back from the
5080 readable format.
5081
5082 * print.c (print_preprocess, print_object): Print hashtables fully
5083 and readably.
5084 (syms_of_print): Provide 'hashtable-print-readable.
5085
b9173dc2
AR
50862009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5087
5088 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
5089 no family set.
5090 (nsfont_open): Handle case when entity has no family.
5091
1586503c
AR
50922009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5093
5094 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
5095 element, not a list, for match case.
5096
087048cd
KH
50972009-07-28 Kenichi Handa <handa@m17n.org>
5098
5099 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
5100 rigidly.
5101
5102 * xfont.c (xfont_list_pattern): Don't ignore the return value of
5103 font_parse_xlfd. Check font properties more rigidly.
5104
780c2506
DN
51052009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
5106
31fd7c5c
JB
5107 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
5108 bsd-common.h.
780c2506 5109
a8c0cc18
KH
51102009-07-27 Kenichi Handa <handa@m17n.org>
5111
5112 * xfaces.c (face_with_height): Call font_clear_prop.
5113
4fbe2306
CY
51142009-07-26 Chong Yidong <cyd@stupidchicken.com>
5115
111d9af3
CY
5116 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
5117
5118 * xterm.c (x_term_init): Use Qx.
5119
4fbe2306
CY
5120 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
5121
1ac9108a 5122 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
5123 (ns_get_color): Revert 2009-07-16 change.
5124
beb0b7f9
EZ
51252009-07-25 Eli Zaretskii <eliz@gnu.org>
5126
5127 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 5128 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 5129
2baf5e76
KR
51302009-07-25 Ken Raeburn <raeburn@raeburn.org>
5131
1ac9108a
SM
5132 * coding.h (decode_coding_string, encode_coding_string):
5133 Use SCHARS macro.
8890e5f5 5134
2baf5e76 5135 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 5136 (load_depth): Delete.
2baf5e76
KR
5137 (Qload_in_progress): New variable.
5138 (load_unwind): Don't reference load_depth or load_in_progress.
5139 (Fload): Likewise; specbind Qload_in_progress instead.
5140 (init_lread): Don't initialize load_depth.
5141 (syms_of_lread): Initialize and protect Qload_in_progress.
5142
1395c6f5
AR
51432009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5144
5145 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
5146
4e2f36cf
AR
51472009-07-23 Yavor Doganov <yavor@gnu.org>
5148
5149 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
5150
5dd9a6f7
AR
51512009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5152
5153 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
5154 Bugs 3792, 3720, 2402.
5155 (ns_lookup_indexed_color): Check for bad index.
5156 (ns_index_color): Init unused slot to 0.
5157 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
5158 Bug 3714, possibly 3082.
5dd9a6f7 5159
c902b920
JR
51602009-07-22 Jason Rumney <jasonr@gnu.org>
5161
1ac9108a
SM
5162 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
5163 Position IME window at cursor (Bug#2570).
c902b920
JR
5164 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
5165 (globals_of_w32fns): Dynamically load functions required above.
5166
5167 * w32term.c (w32_draw_window_cursor): Send message to reposition
5168 any IME window.
5169
090101cf
CY
51702009-07-21 Chong Yidong <cyd@stupidchicken.com>
5171
5172 * fileio.c: Revert 2009-07-16 changes.
5173 (Vauto_save_include_big_deletions): New variable.
5174 (Fdo_auto_save): Disable auto-save only if
5175 auto-save-include-big-deletions is nil.
5176
e6583e3d
CY
51772009-07-21 Chong Yidong <cyd@stupidchicken.com>
5178
5179 * xdisp.c (move_it_to): For continued lines ending in a tab, take
5180 the overflowed pixels into account (Bug#3879).
5181
ece435a5
KR
51822009-07-21 Ken Raeburn <raeburn@raeburn.org>
5183
5184 * lread.c (load_depth): New variable.
5185 (Fload, load_unwind, init_lread): Set it to the load recursion
5186 depth; set load_in_progress as a simple boolean based on the
5187 current load_depth. (Bug#3892)
5188
40b2d973
AR
51892009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5190
5191 * nsfont.m (ns_has_attribute): Remove.
5192 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
5193
10be7e0d
JL
51942009-07-18 Juri Linkov <juri@jurta.org>
5195
5196 * process.c (Fset_process_query_on_exit_flag): Mention killing
5197 a buffer in docstring.
5198
fa055055
KH
51992009-07-17 Kenichi Handa <handa@m17n.org>
5200
5201 * casetab.c (shuffle): Fix the logic of setting up the cycle.
5202
042f7b69
YM
52032009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5204
5205 * nsfns.m (Fns_set_alpha): Remove function.
5206 (syms_of_nsfns): Don't defsubr it.
5207
5208 * nsterm.m (ns_get_color): Remove incompatible color formats.
5209 (ns_color_to_lisp): Generate #rrggbb color format string.
5210
4be941e3
RS
52112009-07-16 Richard Stallman <rms@gnu.org>
5212
5213 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
5214 (Fset_buffer_auto_saved): Handle save_length = -2.
5215
4e6b227d
CY
52162009-07-16 Chong Yidong <cyd@stupidchicken.com>
5217
5218 * xterm.c (Qx_gtk_map_stock): New var.
5219
5220 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
5221 of calling intern each time.
5222
a1856973
YM
52232009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5224
5225 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
5226 does tiling.
5227
5228 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
5229
497e54d8
KH
52302009-07-14 Kenichi Handa <handa@m17n.org>
5231
72d36834
KH
5232 * font.c (font_vconcat_entity_vectors): New function.
5233 (struct font_sort_data): New member font_driver_preference.
5234 (font_compare): Check font_driver_preference.
5235 (font_sort_entities): The format of the first argument changed.
5236 (font_delete_unmatched): Likewise.
5237 (font_list_entities): The return type changed.
5238 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
5239 (font_find_for_lface): Adjuste for the above changes.
5240 Don't suppress the checking of C even if the repertory supports it.
5241 (Flist_fonts): Adjust for the above changes.
72d36834 5242
1ac9108a
SM
5243 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
5244 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
5245 Reject a font who has adstyle property that is different from a
5246 langname derived from registry property.
1ac9108a 5247 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 5248
b6046155
EZ
52492009-07-13 Eli Zaretskii <eliz@gnu.org>
5250
5251 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
5252 local copy of dirfilename.
5253
fb6b6049
KH
52542009-07-13 Kenichi Handa <handa@m17n.org>
5255
e2402a5e
KH
5256 * chartab.c (sub_char_table_ref_and_range): Fix the range check
5257 against max_char.
5258
fb6b6049
KH
5259 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
5260 calling XSYMBOL (sym).
5261
65156807
EZ
52622009-07-11 Eli Zaretskii <eliz@gnu.org>
5263
1ac9108a
SM
5264 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
5265 New function.
5266 (directory_files_internal) [WINDOWSNT]:
5267 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
5268 the filesystem of the directory is fast or slow.
5269
5270 * w32.c (logon_network_drive): Don't assume PATH is an absolute
5271 file name.
5272 (is_slow_fs): New function.
5273 (stat): Use it to determine whether to issue more system calls to
5274 get accurate file attributes, when w32-get-true-file-attributes is
5275 `local'.
5276
e0ab5fcf
JD
52772009-07-10 Jan Djärv <jan.h.d@swipnet.se>
5278
5279 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 5280 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
5281 parameter font-parameter as default to the font dialog.
5282
784ceded
KH
52832009-07-10 Kenichi Handa <handa@m17n.org>
5284
5285 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
5286
fb8edc0b
EZ
52872009-07-09 Eli Zaretskii <eliz@gnu.org>
5288
1ac9108a 5289 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 5290
fb8edc0b
EZ
5291 * w32.c (stat): Treat UNC file names as residing on remote
5292 drives. (Bug#3542)
5293
635c75b1
KH
52942009-07-09 Kenichi Handa <handa@m17n.org>
5295
5296 * fontset.c (fontset_find_font): Fix previous change.
5297
c1d5ce94
MA
52982009-07-08 Michael Albinus <michael.albinus@gmx.de>
5299
5300 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
5301 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
5302 error flag.
5303
edb61b39
KH
53042009-07-08 Kenichi Handa <handa@m17n.org>
5305
374bf7e4
KH
5306 * fontset.c (fontset_find_font): Fix the logic of handling
5307 charset_matched.
5308 (font_for_char): Delete unused var.
5309 (generate_ascii_font_name): Delete it.
5310
edb61b39
KH
5311 * coding.h (JIS_TO_SJIS2): Fix the code range check.
5312
5313 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
5314 (encode_coding_sjis): Fix the code range check.
5315
0f3f018c
CY
53162009-07-07 Chong Yidong <cyd@stupidchicken.com>
5317
5318 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
5319 (Fexpand_file_name): Copy string data properly (Bug#3772).
5320
fcaf6f3a
JD
53212009-07-07 Jan Djärv <jan.h.d@swipnet.se>
5322
5323 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
5324 first MapNotify.
5325
6809ca75
KH
53262009-07-07 Kenichi Handa <handa@m17n.org>
5327
5328 * character.h (unibyte_has_multibyte_table): Delete extern.
5329 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
5330
5331 * charset.c (Fset_charset_priority): Update charset_unibyte.
5332 (syms_of_charset): Initialize charset_unibyte.
5333
5334 * character.c (unibyte_has_multibyte_table): Delete it.
5335 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
5336 charset_unibyte.
5337 (multibyte_char_to_unibyte_safe): Likewise.
5338 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
5339
1ac9108a 5340 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
5341 (x_produce_glyphs): Likewise.
5342
5343 * .gdbinit (xcharset): Fix the treating $arg0.
5344
ad9e2d54
EZ
53452009-07-04 Eli Zaretskii <eliz@gnu.org>
5346
5347 Emulation of `getloadavg' on MS-Windows.
50426a04 5348 * w32.c: Include float.h.
ad9e2d54
EZ
5349 (g_b_init_get_native_system_info, g_b_init_get_system_times)
5350 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
5351 (get_native_system_info, get_system_times): New functions.
5352 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
5353 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
5354 (globals_of_w32): Initialize g_b_init_get_native_system_info,
5355 g_b_init_get_system_times, and num_of_processors.
5356
0a3472c7
JR
53572009-07-03 Jason Rumney <jasonr@gnu.org>
5358
5359 * w32term.c (w32_initialize): Use standard types.
5360
80904120
EZ
53612009-07-03 Eli Zaretskii <eliz@gnu.org>
5362
5363 * dired.c (Ffile_attributes): Decode user and group names by the
5364 locale's encoding. (Bug#3443)
5365
6978862d
DN
53662009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
5367
f8d23104
DN
5368 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
5369 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
5370
5371 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
5372
5373 * term.c (init_tty): Remove spurious #ifdef.
5374
6978862d
DN
5375 * m/mips.h: Mention this file is also used for netbsd.
5376 * m/pmax.h: Remove file.
5377
e044e4fc
JD
53782009-07-03 Jan Djärv <jan.h.d@swipnet.se>
5379
5380 * xterm.h (struct x_display_info): Add invisible_cursor.
5381 (struct x_output): Add current_cursor.
5382
5383 * xterm.c (XTtoggle_invisible_pointer): New function.
5384 (x_define_frame_cursor): Don't define cursor if invisible or the
5385 same as before. Set current_cursor.
5386 (x_create_terminal): Set toggle_invisible_pointer_hook.
5387
5388 * xfns.c (make_invisible_cursor): New function.
5389 (x_set_mouse_color): Call make_invisible_cursor.
5390 Set current_cursor.
5391 (x_window): Set current_cursor.
5392
5393 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
5394
5395 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
5396 inserting a character.
5397 (read_avail_input): Call frame_make_pointer_visible.
5398
5399 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
5400 (frame_make_pointer_invisible, frame_make_pointer_visible):
5401 New functions.
e044e4fc
JD
5402 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
5403
5404 * frame.h: Declare frame_make_pointer_invisible and
5405 frame_make_pointer_visible.
5406 (struct frame): Add pointer_invisible.
5407
574c8efa
JD
54082009-07-02 Jan Djärv <jan.h.d@swipnet.se>
5409
7b507248
JD
5410 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
5411 frame isn't visible.
5412 (xg_frame_resized): If width/height is -1, get size of window
5413 from X server.
5414
5415 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
5416 for MapNotify.
5417
835bdaa7 5418 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 5419 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 5420 (flush_and_sync): Reintroduce.
574c8efa 5421
3f1c6666 54222009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 5423
31fd7c5c 5424 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
5425
5426 * xterm.c (x_handle_net_wm_state): Also look for sticky.
5427 (x_term_init): Initialize Xatom_net_wm_state_sticky.
5428
5429 * frame.h: Declare Qsticky.
5430
cad9ef74
JD
5431 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
5432
5433 * nsfns.m (ns_frame_parm_handlers): Ditto.
5434
5435 * frame.c: Declare Qsticky.
5436 (frame_parms): Add sticky.
5437
5438 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
5439
5440 * xterm.h: Declare x_set_sticky.
5441
5442 * xterm.c (x_set_sticky): New function.
5443
69b16610
JD
5444 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
5445 (xg_tool_bar_menu_proxy): Attach enter/leave events to
5446 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
5447
5448 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
5449
5450 * frame.c: Qmaximized is new.
5451 (x_set_frame_parameters): Do not handle fullscreen specially.
5452 Only set width and height if explicitly set.
5453 (x_set_fullscreen): Handle Qmaximized.
5454 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
5455 (syms_of_frame): Initialize Qmaximized.
5456
1ac9108a
SM
5457 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
5458 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
5459
5460 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
5461 for Expose event. Add call to x_check_fullscreen for MapNotify event.
5462 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
5463 set gravity to NorthWestGravity when USE_GTK.
5464 (set_wm_state): New function.
31fd7c5c 5465 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
5466 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
5467 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 5468 or the case when no window manager is running. That means remove calls
3f1c6666
JD
5469 to x_real_positions and x_fullscreen_adjust.
5470
5471 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
5472 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
5473 flush_and_sync.
5474 (xg_height_changed): New function.
5475 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
5476 and gtk_window_set_policy. Set frame gravity after parsing the
5477 geometry string.
3f1c6666
JD
5478 (xg_update_frame_menubar, free_frame_menubar)
5479 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
5480 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
5481 Remove calls to xg_frame_set_char_size.
5482
fd503d99
KH
54832009-07-01 Kenichi Handa <handa@m17n.org>
5484
5485 * keyboard.c (decode_keyboard_code): New function.
5486 (tty_read_avail_input): Decode the input bytes if necessary.
5487
1ac9108a
SM
5488 * coding.c (setup_coding_system):
5489 Initialize coding->carryover_bytes to 0.
fd503d99
KH
5490 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
5491 use Qno_conversion.
5492
24ed93fb
YM
54932009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5494
5495 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
5496
99061dfc
CY
54972009-06-30 Chong Yidong <cyd@stupidchicken.com>
5498
1ac9108a 5499 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 5500
ff90fbde
JR
55012009-06-30 Jason Rumney <jasonr@gnu.org>
5502
5503 * w32term.c (w32_initialize): Use GetModuleHandle for library that
5504 is already loaded.
5505 Set user model ID if supported (bug#1849).
5506
5f445726
JM
55072009-06-29 Jim Meyering <meyering@redhat.com>
5508
5509 Remove useless if-before-xfree test.
5510 * nsfont.m (nsfont_close): Remove useless test.
5511 * term.c (delete_tty): Likewise.
5512 * w32.c (system_process_attributes): Likewise.
5513 * w32font.c (w32font_close): Likewise.
5514 * xfaces.c (x_free_gc): Likewise.
5515 * xselect.c (buffer): Likewise.
5516
b9607587
AS
55172009-06-28 Andreas Schwab <schwab@linux-m68k.org>
5518
5519 * process.c (send_process): Keep decoded string in a local
5520 variable and protect it from GC. (Bug#3521)
5521
89ba96f4
EZ
55222009-06-28 Eli Zaretskii <eliz@gnu.org>
5523
5524 * term.c (create_tty_output) [MSDOS]: #ifdef away.
5525 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
5526
098a1589
CY
55272009-06-28 Chong Yidong <cyd@stupidchicken.com>
5528
485422be
CY
5529 * xdisp.c (start_display, handle_face_prop)
5530 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
5531 (redisplay_window, try_window_id, produce_image_glyph):
5532 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 5533
098a1589
CY
5534 * xterm.c (x_update_window_begin, x_new_focus_frame)
5535 (x_scroll_bar_handle_click, handle_one_xevent)
5536 (handle_one_xevent, XTread_socket, x_focus_on_frame)
5537 (x_make_frame_visible, x_make_frame_invisible)
5538 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
5539 code chunks that are now obsolete.
5540
78c38319
MA
55412009-06-28 Michael Albinus <michael.albinus@gmx.de>
5542
5543 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
5544 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
5545 for hours, when optimzation is enabled.
5546 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
5547 (xd_read_message): Make them static.
5548
4189ed40
CY
55492009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
5550
5551 * term.c (turn_on_face): Allow simultaneously bold and dim
5552 terminal faces (Bug#3530).
5553
cd9b5e16
CY
55542009-06-27 Chong Yidong <cyd@stupidchicken.com>
5555
4e23bedb
CY
5556 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
5557
cd9b5e16
CY
5558 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
5559 truncation glyphs (Bug#3686).
5560
07cc3c35
GM
55612009-06-27 Glenn Morris <rgm@gnu.org>
5562
5563 * m/pmax.h: Restore file, with only netbsd portions.
5564
31fd7c5c 55652009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 5566
cd9b5e16 5567 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 5568
42d4a64f
KH
55692009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
5570
5571 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
5572 the arg FORCE_SYMBOL.
5573
930fe55b 55742009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
5575
5576 * fontset.c (fontset_find_font): When a usable rfont_def is found
5577 in a fallback font-group, make it the first element of the group.
5578
57ebc3fd
CY
55792009-06-24 Chong Yidong <cyd@stupidchicken.com>
5580
5581 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
5582
f084f942
KH
55832009-06-24 Kenichi Handa <handa@m17n.org>
5584
5585 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
5586 set for C.
5587 (fontset_font): Record the availability of a font for C both in
5588 the realized fontsets of the current one and the default one.
5589
2f686c87
DN
55902009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
5591
5592 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
5593 conditional, it is always defined on AIX.
5594
666e158e
MB
55952009-06-23 Miles Bader <miles@gnu.org>
5596
5597 * window.c (Vrecenter_redisplay): New variable.
5598 (syms_of_window): Initialize it.
5599 (Qtty): New extern declaration.
5600 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
5601
c6da7cd2
JM
56022009-06-23 Jim Meyering <meyering@redhat.com>
5603
1ac9108a
SM
5604 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
5605 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 5606 pointer dereferences are guaranteed to be valid.
c6da7cd2 5607
678dca3d
KH
56082009-06-23 Kenichi Handa <handa@m17n.org>
5609
74d75424
KH
5610 * emacs.c (main): Call init_font ().
5611
5612 * font.h (Vfont_log): Extern it.
5613 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
5614
5615 * font.c (font_sort_entities, font_list_entities)
5616 (font_matching_entity, font_open_entity)
5617 (font_close_object): Change font_add_log to FONT_ADD_LOG.
5618 (Vfont_log): Delete static.
5619 (font_log_env_checked): Delete this variable.
5620 (font_add_log): Don't check font_log_env_checked.
5621 (font_deferred_log): Check Vfont_log.
5622 (init_font): New function.
5623
678dca3d
KH
5624 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
5625
5626 * w32font.c: Change font_add_log to FONT_ADD_LOG.
5627
5628 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
5629
5630 * xfont.c: Change font_add_log to FONT_ADD_LOG.
5631
5632 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
5633 (face_for_char): Don't call font_deferred_log here.
5634 (font_for_char): Likewise.
5635
8a668709
CY
56362009-06-22 Chong Yidong <cyd@stupidchicken.com>
5637
9a01ee33
CY
5638 * w32term.c (x_draw_glyph_string): Use the glyph string's width
5639 rather than its background_width for drawing the overline and
5640 underline (Bug#489).
5641
5642 * xterm.c (x_draw_glyph_string): Use the glyph string's width
5643 rather than its background_width for drawing the overline and
5644 underline (Bug#489).
ec7c9926
CY
5645 (xg_default_icon_file): New variable.
5646 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
5647 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 5648
8a668709
CY
5649 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
5650 (load_overlay_strings): Remove externs.
5651 (fast_find_position): Function deleted.
5652 (mouse_face_from_buffer_pos): New function, based on
5653 fast_find_position. Correctly handle before-strings,
5654 display-strings, and after-strings (Bug#1220).
5655 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
5656
4d4c02d8
CY
56572009-06-21 Chong Yidong <cyd@stupidchicken.com>
5658
1ac9108a 5659 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
5660 (move_it_in_display_line_to, move_it_in_display_line_to)
5661 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
5662
70243478
CY
56632009-06-21 Chong Yidong <cyd@stupidchicken.com>
5664
5665 * Branch for 23.1.
5666
13087e59
JR
56672009-06-21 Jason Rumney <jasonr@gnu.org>
5668
5669 * w32term.c (keyboard_codepage): New static variable.
5670 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
5671 (w32_read_socket) [WM_CHAR]: Use it to decode character
5672 input (bug#3237).
5673 (w32_initialize): Initialize it.
5674 (codepage_for_locale): New function.
5675
4735b74e
KR
56762009-06-20 Ken Raeburn <raeburn@raeburn.org>
5677
5678 * process.c (status_message): Pass Faset index argument as a lisp
5679 object, so as to work with USE_LISP_UNION_TYPE.
5680
0e727afa
YM
56812009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5682
5683 * coding.c (Ffind_coding_systems_region_internal):
5684 Cache checked characters.
5685
cf299835
KH
56862009-06-18 Kenichi Handa <handa@m17n.org>
5687
1ac9108a 5688 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 5689
90f20d94
AS
56902009-06-18 Andreas Schwab <aschwab@redhat.com>
5691
5692 * xdisp.c (redisplay_internal): Check that the frame is still
5693 live after redisplay of its windows.
5694 (redisplay_windows): Check that the window is still live.
5695
7f1faf1c
KH
56962009-06-17 Andreas Schwab <schwab@linux-m68k.org>
5697
5698 * coding.c (detect_coding_utf_16): Fix previous change.
5699
cc13543e
KH
57002009-06-16 Kenichi Handa <handa@m17n.org>
5701
5702 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
5703 UTF-16 by checking the dispersion of Eth and Oth bytes.
5704
977b85f4
AS
57052009-06-15 Andreas Schwab <schwab@linux-m68k.org>
5706
5707 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
5708
66bd43d1
KH
57092009-06-15 Kenichi Handa <handa@m17n.org>
5710
5711 * process.c (status_message): Fix previous change. Be sure to
5712 decode a localized string.
5713
cb5ca9c5
YM
57142009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5715
5716 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
5717 add comment explaining why.
5718
ec7709ba 57192009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 5720
ec7709ba 5721 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 5722
4b7f335c
AR
57232009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
5724
5725 * nsfont.m (ns_attribute_value): Remove.
5726 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
5727 (ns_has_attribute): Shrink the normal range.
5728 (ns_findfonts): Don't worry about requested spec in determining
5729 need for synthItal.
e41820ee 5730 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 5731
73b26103
SZ
57322009-06-14 Seiji Zenitani <zenitani@mac.com>
5733
5734 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
5735
5753e4da
KH
57362009-06-11 Kenichi Handa <handa@m17n.org>
5737
5738 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
5739 overhang for the static composition case.
5740
3561b671
KH
57412009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5742
5753e4da
KH
5743 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
5744 overhang for the automatic composition case.
5745
3561b671
KH
5746 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
5747 composition case.
5748
852bbd41
CY
57492009-06-10 Chong Yidong <cyd@stupidchicken.com>
5750
5751 * xdisp.c (get_next_display_element): When handling wrap-prefix
5752 and line-prefix, treat \n as a control character (bug#3502).
5753
9903d1e6
KH
57542009-06-10 Kenichi Handa <handa@m17n.org>
5755
5756 * font.c (font_parse_family_registry): Fix for one-char foundry.
5757 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
5758
0bcbaaaa
CY
57592009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
5760
5761 * process.c (status_message): Fix handling of multibyte signal
5762 string (Bug#3499).
5763
40aa3f13
JM
57642009-06-09 Jim Meyering <meyering@redhat.com>
5765
1f80c7e2
CY
5766 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
5767 color name is missing.
40aa3f13 5768
72d51285
KH
57692009-06-09 Kenichi Handa <handa@m17n.org>
5770
5771 * charset.c (Fmap_charset_chars): In docstring, state clearly that
5772 FROM-CODE and TO-CODE are codepoints of CHARSET.
5773
c1d04d84
AR
57742009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
5775
5776 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
5777
57782009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
5779
5780 Changes to support :script/:lang/:otf in NS font driver.
5781 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
5782 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
5783 indicate not part of font driver interface, and change callers.
5784 (ns_get_family): Remove pointless null check.
5785 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
5786 ns_spec_to_descriptor, ns_descriptor_to_entity.
5787 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
5788 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
5789 (ns_spec_to_descriptor, ns_descriptor_to_entity)
5790 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
5791 (ns_get_req_script, ns_accumulate_script_ranges)
5792 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
5793 New functions.
5794 (nsfont_list, nsfont_match): Use ns_findfonts.
5795 (nsfont_open): Use font descriptor instead of traits.
5796 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
5797 (dump_glyphstring): Rename to ns_dump_glyphstring.
5798
c7eb9816
AR
5799 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
5800
c1d04d84
AR
5801 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
5802
5803 * fontset.c (fontset_from_font): Remove NS-specific code.
5804
ec7709ba 58052009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
5806
5807 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
5808 nonactive windows.
5809
31fd7c5c 58102009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 5811
1ac9108a 5812 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 5813
68852c13 58142009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
5815
5816 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
5817
6756cd1d
CY
58182009-06-07 Chong Yidong <cyd@stupidchicken.com>
5819
5820 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
5821 account for the overflowing of newlines into the last glyph on the
5822 display line (Bug#3482).
5823
28bf482a
DR
58242009-06-05 David Reitter <david.reitter@gmail.com>
5825
ec7709ba
JB
5826 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
5827 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
5828 Fns_selection_exists_p, Fns_selection_owner_p.
5829
fdb55376
JR
58302009-06-03 Jason Rumney <jasonr@gnu.org>
5831
5832 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
5833 available. (Bug#3379)
5834
05129fbe
KH
58352009-05-29 Kenichi Handa <handa@m17n.org>
5836
1ac9108a
SM
5837 * coding.c (get_translation_table):
5838 Check Venable_character_translation.
05129fbe 5839
ec7709ba 58402009-05-26 David Reitter <david.reitter@gmail.com>
15891144 5841
ec7709ba
JB
5842 * nsterm.m (ns_raise_frame): Only raise frame if visible.
5843 (x_make_frame_visible): Move frame to front rather than calling
15891144 5844 ns_raise_frame().
ec7709ba 5845 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 5846 isn't key window.
ec7709ba 5847 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
5848 drawRect may be called by NSView even if the frame is hidden.
5849
ec7709ba
JB
5850 * nsfns.m (Fx_create_frame): Follow other ports in
5851 determining visibility; default to t. Ensure async_visible is set.
15891144 5852
21f73755
EZ
58532009-05-23 Eli Zaretskii <eliz@gnu.org>
5854
5855 * dired.c (Ffile_attributes): Doc fix.
5856
34001e41
CY
58572009-05-22 Chong Yidong <cyd@stupidchicken.com>
5858
5859 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
5860
46306a17
SM
58612009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
5862
5863 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
5864 and xfont_scratch_props.
5865 (syms_of_xfont): Do it here instead.
5866 (xfont_find_ccl_program): Delete, unused.
5867 (xfont_open): Delete unused var `i'.
5868
ef6e0694
KH
58692009-05-21 Kenichi Handa <handa@m17n.org>
5870
5871 * fontset.c (Qlatin): Don't make it static.
5872
46306a17
SM
5873 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
5874 New functions.
ef6e0694
KH
5875 (xfont_scripts_cache, xfont_scratch_props): New variables.
5876 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
5877 (xfont_list_pattern): Argument changed. Callers changed.
5878 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
5879 (xfont_list): Don't reject a font spec with :script property.
5880 (xfont_has_char): Fix setting of encoding.
5881 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
5882 xfont_scratch_props.
5883
58842009-05-19 Kenichi Handa <handa@m17n.org>
5885
46306a17 5886 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
5887 Callers changed.
5888
58892009-05-18 Kenichi Handa <handa@m17n.org>
5890
5891 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
5892
ac71ced7
SM
58932009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
5894
5895 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
5896 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
5897
1c6d1051
YM
58982009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5899
5900 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
5901 (x_delete_terminal): Dissociate resource database from display and
5902 then call XrmDestroyDatabase before closing display.
5903
9b9b779c
AR
59042009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
5905
5906 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
5907 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
5908 whether selected frame is viable before raising it (based on patch
5909 by David Reitter), and improve commentary.
5910 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 5911
cccd42d5
KH
59122009-05-15 Kenichi Handa <handa@m17n.org>
5913
5914 * font.c (Ffont_spec): Check arguments.
5915
337fbd17
CY
59162009-05-14 Chong Yidong <cyd@stupidchicken.com>
5917
5918 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
5919 weight when testing attributes (Bug#3282).
5920
47a6002f
JD
59212009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5922
5923 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
5924 what we expect to get in the next ConfigureNotify event.
5925
9cb363db
YM
5926 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
5927 before Xft one (Bug#1696).
5928
b9126609
CY
59292009-05-07 David Reitter <david.reitter@gmail.com>
5930
5931 * nsfns.m (Fx_display_planes): Compute bitplanes using
5932 NSBitsPerPixelFromDepth (Bug#3207).
5933
27a69fd9
CY
59342009-05-10 Chong Yidong <cyd@stupidchicken.com>
5935
5936 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
5937
00f37552
TTN
59382009-05-10 Ulrich Mueller <ulm@gentoo.org>
5939
5940 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
5941
2d82a920
DR
59422009-05-07 David Reitter <david.reitter@gmail.com>
5943
ec7709ba
JB
5944 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
5945 Respect mouse face background.
2d82a920 5946
46b0d52d
DR
59472009-05-07 David Reitter <david.reitter@gmail.com>
5948
ec7709ba
JB
5949 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
5950 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
5951 in ns_update_begin and ns_update_end.
5952
ce1b23bb
SM
59532009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5954
5996e1b7
SM
5955 * nsfns.m (ns_get_screen): Rewrite.
5956 Don't presume selected-frame is of type `ns'.
5957
ba98e3a0
SM
5958 * font.c (font_update_drivers): Sanity fallback to avoid disabling
5959 all drivers.
5960
ce1b23bb
SM
5961 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
5962
bcda200f
YM
59632009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5964
5965 * keyboard.h (add_user_signal): Fix typo in extern.
5966
5967 * lisp.h (add_user_signal): Remove extern.
5968
5969 * unexelf.c (unexec): Consider a section to precede the .bss section
5970 if its addresses overlap that of .bss.
5971 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
5972 instead of dumping process.
5973
864660a2
SM
59742009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5975
5976 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
5977
50da4e56
SM
59782009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
5979
5980 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
5981
51520a1a
DN
59822009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
5983
5984 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
5985 any statements.
5986
409ea3a1
AS
59872009-05-02 Andreas Schwab <schwab@linux-m68k.org>
5988
59c4c60f
AS
5989 * process.c (read_process_output): Make sure the current buffer is
5990 always restored.
5991
409ea3a1
AS
5992 * coding.c (record_conversion_result): Don't modify
5993 Vlast_code_conversion_error for successful result.
5994 (alloc_destination): Don't clobber conversion result. (Bug#1650)
5995
56f00ed2
KH
59962009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
5997
5998 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 5999 (load_charset_map): Remove unnecessary code.
56f00ed2 6000
4491c9d2
DR
60012009-04-30 David Reitter <david.reitter@gmail.com>
6002
35f5b128 6003 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
6004 through f24.
6005
6970f632
CY
60062009-04-30 Chong Yidong <cyd@stupidchicken.com>
6007
6008 * xfaces.c (face_at_buffer_position): New arg base_face_id.
6009
6010 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
6011 face_at_buffer_position.
6012 (face_before_or_after_it_pos, get_next_display_element)
6013 (note_mouse_highlight): Update face_at_buffer_position call.
6014
6015 * term.c (term_mouse_highlight):
6016 * msdos.c (IT_note_mouse_highlight):
6017 * fontset.c (Finternal_char_font):
35f5b128 6018 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
6019
6020 * dispextern.h (face_at_buffer_position): Update prototype.
6021
0c616f63
KH
60222009-04-30 Kenichi Handa <handa@m17n.org>
6023
35f5b128 6024 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 6025
ad3aaf33
AS
60262009-04-29 Andreas Schwab <schwab@linux-m68k.org>
6027
6028 * callproc.c (Fcall_process): Fix GC protection. Make sure
6029 current buffer is always restored.
6030
c3c963a0
YM
60312009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6032
6033 * atimer.c (init_atimer): Also clear stopped_atimers.
6034
6035 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
6036
7e3386cb
YM
6037 * process.c (create_process): Clean up merger residues of
6038 2008-07-17 change.
6039
91f68422
CY
60402009-04-29 Ulrich Mueller <ulm@gentoo.org>
6041
6042 * lread.c (Vread_circle): New variable.
6043 (read1): Disable recursive read if Vread_circle is nil.
6044
24b34550
KH
60452009-04-29 Kenichi Handa <handa@m17n.org>
6046
6047 * fontset.h (set_default_ascii_font): Delete extern.
6048
6049 * fontset.c (set_default_ascii_font): Delete this unused function.
6050
6051 * frame.c (x_set_font): When ARG is a font-object, check if the
6052 font-object matches with the ASCII font-spec of the frame's
9c358bda 6053 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 6054
77bf07e1
AS
60552009-04-28 Andreas Schwab <schwab@linux-m68k.org>
6056
6057 * fns.c (Flocale_info): Protect vector from GC during decoding.
6058
6059 * process.c (Fstart_process): Protect argv strings from GC during
6060 encoding.
6061
2c55aacf
AS
60622009-04-27 Andreas Schwab <schwab@linux-m68k.org>
6063
6064 * sysdep.c: Include <ctype.h>.
6065
b892d3c9
DR
60662009-04-27 David Reitter <david.reitter@gmail.com>
6067
35f5b128 6068 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
6069 Remove commented-out code.
6070
9d0644c4
JB
60712009-04-26 Johan Bockgård <bojohan@gnu.org>
6072
6073 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
6074
b7053016
JR
60752009-04-25 Jason Rumney <jasonr@gnu.org>
6076
6077 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
6078
4e8231f3
YM
60792009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6080
6081 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
6082 Swap bytes in short integer if fringe bitmap width > 8.
6083
493dcf2c
KH
60842009-04-23 Kenichi Handa <handa@m17n.org>
6085
6086 * xfaces.c (Fx_list_fonts): If a font size is specified in
6087 PATTERN, set it in returned scalable fonts.
6088
401e9e57
CY
60892009-04-22 Chong Yidong <cyd@stupidchicken.com>
6090
708e05dc
CY
6091 * keyboard.c (Fset_input_meta_mode): Doc fix.
6092
6093 * dispnew.c (Fsend_string_to_terminal): Doc fix.
6094
1ac9108a 6095 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
6096
6097 * coding.c (Fterminal_coding_system): Doc fix.
6098
6099 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
6100 (Fx_display_pixel_height, Fx_display_planes)
6101 (Fx_display_color_cells, Fx_server_max_request_size)
6102 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
6103 (Fx_display_mm_height, Fx_display_mm_width)
6104 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
6105 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
6106 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
6107 (check_x_display_info): Handle terminal objects instead of
6108 terminal ids.
6109
401e9e57
CY
6110 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
6111 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
6112 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
6113 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 6114
df80c7f0
KH
61152009-04-21 Kenichi Handa <handa@m17n.org>
6116
5a8f12af 6117 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 6118 (font_score): Check AVGWIDTH too.
908567ef 6119
df80c7f0
KH
6120 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
6121 worst case.
1ac9108a
SM
6122 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
6123 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 6124
705af33f
JR
61252009-04-19 Jason Rumney <jasonr@gnu.org>
6126
6127 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 6128 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
6129
6130 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
6131 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
6132 get_phys_cursor_geometry.
6133
b71ac3dd 6134 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
6135 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
6136 using get_phys_cursor_geometry.
6137
6138 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
6139 correctly calculated.
6140
dc2933eb
JD
61412009-04-19 Jan Djärv <jan.h.d@swipnet.se>
6142
1ac9108a
SM
6143 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
6144 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
6145 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
6146 is deprecated.
6147
973e7849
AS
61482009-04-18 Andreas Schwab <schwab@linux-m68k.org>
6149
6150 * font.c (font_put_frame_data): Use xfree instead of free.
6151
314d66f4
JB
61522009-04-17 Juanma Barranquero <lekktu@gmail.com>
6153
6154 * w32font.c (Qja, Qko): Remove declarations.
6155 (syms_of_w32font): Don't DEFSYM them.
6156
cf702558
CY
61572009-04-17 Chong Yidong <cyd@stupidchicken.com>
6158
6159 * font.c (Qja, Qko): Move definitions here from ftfont.c.
6160
6161 * font.h (Qja, Qko): Extern them.
6162
6163 * ftfont.c (Qja, Qko): Remove declarations.
6164
6165 * xfont.c (Qja, Qko): Remove declarations.
6166
b50504f5
KH
61672009-04-17 Kenichi Handa <handa@m17n.org>
6168
bde25748
KH
6169 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
6170 string from a vector to handle Latin-1 characters correctly.
6171
b50504f5
KH
6172 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
6173 entity even if the cache hits.
6174
f4646fff
AS
61752009-04-16 Andreas Schwab <schwab@linux-m68k.org>
6176
6177 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 6178 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 6179
e7deaab0
AS
6180 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
6181 * lisp.h: Adjust prototypes.
6182
0a0e7d49
CY
61832009-04-16 Chong Yidong <cyd@stupidchicken.com>
6184
6185 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
6186 change (Bug#3003).
6187
3c908a57
KH
61882009-04-16 Kenichi Handa <handa@m17n.org>
6189
1ac9108a 6190 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
6191
6192 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
6193 adstyle.
6194
6195 * ftfont.c (Qja, Qko): Don't make them static.
6196 (enum ftfont_cache_for): New enum.
6197 (fc_charset_table): Undo the previous change.
6198 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
6199 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
6200 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
6201 non-scarable font, try to get AVERAGE_WIDTH.
6202 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
6203 Change ft_face_cache from a list of a hash-table. Don't check
6204 `ja' and `ko' adstyle here.
6205 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
6206 FTFONT_CACHE_FOR_CHARET.
6207 (ftfont_get_charset): Undo the previous change.
1ac9108a 6208 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
6209 (ftfont_close): Likewise.
6210 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
6211
6212 * font.c (font_sort_entites): Change the meaning of the arg
6213 BEST-ONLY. Don't optimize for VEC of lenght 1.
6214 (font_select_entity): Just return the value of font_sort_entites.
6215
6216 * xfaces.c (merge_face_vectors): Reflect font properties in
6217 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
6218 font_clear_prop if a face attribute doesn't change.
6219
3c908a57
KH
6220 * charset.h (charset_ksc5601): Extern it.
6221
6222 * charset.c (charset_ksc5601): New variable.
6223 (Fdefine_charset_internal): Set charset_ksc5601.
6224 (init_charset_once): Initialize charset_ksc5601 to -1.
6225
d65859c3
DN
62262009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
6227
6228 * fileio.c (history_delete_duplicates): Remove unused declaration.
6229
6230 * callint.c (history_delete_duplicates): New declaration.
6231 (Fcall_interactively): Remove command history duplicates when
6232 history_delete_duplicates is true.
6233
3ba010e5
EZ
62342009-04-14 Eli Zaretskii <eliz@gnu.org>
6235
6236 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
6237
06f19b91
KH
62382009-04-14 Kenichi Handa <handa@m17n.org>
6239
6240 * font.c (Ffont_info): Fix docstring. Fix the second element of
6241 the returned value (bug#2949).
6242
2cce8bfc
CY
62432009-04-14 Chong Yidong <cyd@stupidchicken.com>
6244
6245 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
6246
d156542d
KH
62472009-04-14 Kenichi Handa <handa@m17n.org>
6248
6249 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
6250 encoding charset is ascii_compatible.
6251
6252 * charset.c (Fdefine_charset_internal): Make charset
6253 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
6254 code_offset is 0, and covers all ASCII characters.
6255
86fa089e
SM
62562009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
6257
6258 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
6259 (ns_string_to_pasteboard_internal):
6260 * nsmenu.m (process_dialog):
6261 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
6262 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
6263 * lisp.h (Fx_load_color_file): Declare.
6264
a8a3728b
KH
62652009-04-13 Kenichi Handa <handa@m17n.org>
6266
1ac9108a 6267 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
6268 (font_select_entity): Suppress the code to optimize for the same
6269 kind of fonts.
6270 (font_load_for_lface): Get a font that supports at least ASCII
6271 characters.
6272
6273 * ftfont.c (Qja, Qko): New variables.
6274 (fc_charset_table): Delete uniquifier data for iso8859-1.
6275 (ftfont_get_latin1_charset): New function.
6276 (get_adstyle_property): New function.
6277 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
6278 bitmap fonts.
6279 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
6280 Delete iso-8859-1 range from the charset of fonts whose adstyle is
6281 `ko' or `ja'.
6282 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 6283 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
6284 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
6285 property.
6286 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
6287 (syms_of_ftfont): DEFSYM Qja and Qko.
6288
483670b5
KH
62892009-04-09 Kenichi Handa <handa@m17n.org>
6290
12b55765
KH
6291 * charset.c (map_charset_chars): For a charset of `superset'
6292 method, fix calculation of code range.
6293
483670b5
KH
6294 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
6295 from the list of extra properties.
6296 (font_clear_prop): Be sure to delete `:name' font property.
6297
57d3b93b
KH
62982009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6299
b4b2c2ca
YM
6300 * dispnew.c (redraw_overlapping_rows): Fix detection of
6301 overlapping for topmost and bottommost rows.
6302
1ac9108a 6303 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 6304
472c3609
JR
63052009-04-06 Jason Rumney <jasonr@gnu.org>
6306
6307 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
6308
ab193662
KH
63092009-04-06 Kenichi Handa <handa@m17n.org>
6310
6311 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
6312
6313 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
6314
0c26f026
KH
63152009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6316
6317 * ftfont.c (ftfont_open): Fix checking of the return value of
6318 FT_Load_Char. Fix setting font->underline_thickness.
6319
e173bbce
CY
63202009-04-04 Chong Yidong <cyd@stupidchicken.com>
6321
6322 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
6323 (Fterminal_parameters, Fterminal_parameter)
6324 (Fset_terminal_parameter): In doc string, refer to terminal
6325 objects rather than terminal ids.
6326
693a2698
EZ
63272009-04-04 Eli Zaretskii <eliz@gnu.org>
6328
6329 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
6330 ret_lim_data. (Bug#2867)
6331
d5221487
CY
63322009-04-03 Chong Yidong <cyd@stupidchicken.com>
6333
6334 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
6335 so they don't get wider than the window, matching 2006-01-23
6336 change to the partner function in xdisp.c (Bug#2800).
6337
223509a3
KH
63382009-04-03 Kenichi Handa <handa@m17n.org>
6339
6340 * print.c (print_object): Make each lowest sub_char_table start a
6341 new line (Bug#2866).
6342
74fcd0b1
KH
63432009-04-02 Kenichi Handa <handa@m17n.org>
6344
6345 * fontset.c (fontset_font): Record no-font when a fontset
6346 explicitly tells not to try another font-specs.
6347
c542407d
SM
63482009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
6349
6350 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
6351
e3869731
KH
63522009-03-30 Kenichi Handa <handa@m17n.org>
6353
d8d2f142
KH
6354 * fontset.c (fontset_from_font): Specify only registry in a
6355 font-spec for all characters supported by that registry.
6356
e3869731
KH
6357 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
6358 even if HAVE_M17N_FLT is not defined.
6359
5da5f805
CY
63602009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
6361
6362 * ftfont.c: Conditionalize prototyping and use of
6363 ftfont_variation_glyphs.
6364
ab226c50
SM
63652009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
6366
9628fed7
SM
6367 * frame.c (delete_frame): Work around compiler bug.
6368
6369 * editfns.c (general_insert_function): Adjust to insdel.c changes.
6370 * insdel.c (prepare_to_modify_buffer, signal_before_change):
6371 Some more EMACS_INT.
6372 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
6373
6374 * xdisp.c (dump_glyph): Fix typo.
6375
ae19ba7c
SM
6376 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
6377 (adjust_markers_gap_motion, adjust_markers_for_delete)
6378 (adjust_markers_for_insert, adjust_point)
6379 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
6380 (make_gap, copy_text, count_size_as_multibyte, insert)
6381 (insert_and_inherit, insert_before_markers)
6382 (insert_before_markers_and_inherit, insert_1)
6383 (count_combining_before, count_combining_after, insert_1_both)
6384 (insert_from_string, insert_from_string_before_markers)
6385 (insert_from_string_1, insert_from_gap, insert_from_buffer)
6386 (insert_from_buffer_1, adjust_after_replace)
6387 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
6388 (replace_range_2, del_range, del_range_1, del_range_byte)
6389 (del_range_both, del_range_2, modify_region)
6390 (prepare_to_modify_buffer, signal_before_change)
6391 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
6392 for buffer positions and sizes.
6393 * lisp.h: Adjust prototypes accordingly.
6394
6395 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
6396 (non_regular_inserted, non_regular_nbytes, read_non_regular)
6397 (Finsert_file_contents): Use EMACS_INT for buffer positions.
6398
ab226c50
SM
6399 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
6400
46dfb8fb
JD
64012009-03-27 Jan Djärv <jan.h.d@swipnet.se>
6402
6403 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
6404 lines and columns so we keep the same pixel height and width.
6405
6406 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
6407 the property _NET_WM_STATE has changed.
46dfb8fb
JD
6408 (x_handle_net_wm_state): New function to update frame parameter
6409 fullscreen.
6410 (x_term_init): Initialize atoms for _NET_WM_STATE.
6411
6412 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
6413
d347e494
SM
64142009-03-27 Kevin Ryde <user42@zip.com.au>
6415
6416 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
6417 Gpm_GetEvent as an error that justifies closing the filedescriptor.
6418 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
6419 (Fgpm_mouse_stop): Pass that new parameter.
6420 * termhooks.h (close_gpm): Adjust prototype.
6421
84db11d6
SM
64222009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
6423
c95a5008
SM
6424 * lisp.h (Fx_focus_frame): Declare.
6425
84db11d6
SM
6426 * callint.c (Fcall_interactively): For '^' just delegate the work to
6427 handle-shift-selection.
6428 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
6429
0a1958d6
CY
64302009-03-24 Chong Yidong <cyd@stupidchicken.com>
6431
0bfdff23
CY
6432 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
6433
0a1958d6
CY
6434 * data.c (Qinteractive_form): New variable.
6435 (Finteractive_form): Use it.
6436
6437 * eval.c (Fcommandp): Use Qinteractive_form.
6438
58aec0d6
JR
64392009-03-24 Jason Rumney <jasonr@gnu.org>
6440
6441 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
6442 Calculate total size precisely. Decode environment variables
6443 before substituting. (Bug#38)
6444
553dd618
KH
64452009-03-24 Kenichi Handa <handa@m17n.org>
6446
6447 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 6448 encoding (Bug#2722).
553dd618 6449
c39ea606
JD
64502009-03-23 Jan Djärv <jan.h.d@swipnet.se>
6451
6452 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
6453 that gdpy is set.
6454
bc9b2b5e
AM
64552009-03-22 Alan Mackenzie <acm@muc.de>
6456
6457 * callint.c (Finteractive): Clarify the doc string - even
6458 promptless elements need \n separators.
6459
9f995a76
JR
64602009-03-22 Jason Rumney <jasonr@gnu.org>
6461
6462 * w32term.c (syms_of_w32term): Doc fix for
6463 x-use-underline-position-properties.
6464
22749e9a
EZ
64652009-03-21 Eli Zaretskii <eliz@gnu.org>
6466
6467 * w32.c (getpwuid): Change argument type to unsigned.
6468 (struct w32_id): Change type of `rid' member to unsigned.
6469 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
6470 argument ID to unsigned. All callers changed.
6471 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
6472
e00553bf
EZ
64732009-03-20 Eli Zaretskii <eliz@gnu.org>
6474
6475 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
6476 negative, produce a float value.
6477
6478 * dired.c (make_uid, make_gid): New functions.
6479 (Ffile_attributes): Use them to avoid negative UID and GID.
6480
f761d6b6
JB
64812009-03-20 Juanma Barranquero <lekktu@gmail.com>
6482
6483 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
6484 (syms_of_keyboard) <command-hook-internal, input-method-function>:
6485 Fix typos in docstrings.
6486
d507f8d7
KH
64872009-03-19 Kenichi Handa <handa@m17n.org>
6488
6489 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
6490 changed, use font_load_for_lface to get a new font object.
6491 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
6492
6493 * frame.c (x_set_font): Handle the case that ARG is a cons.
6494
c68845e0
GM
64952009-03-19 Glenn Morris <rgm@gnu.org>
6496
6497 * fileio.c (Fsubstitute_in_file_name): Doc fix.
6498
bfa49dd1
CY
64992009-03-19 Chong Yidong <cyd@stupidchicken.com>
6500
6501 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
6502
8458d4c1
KH
65032009-03-19 Kenichi Handa <handa@m17n.org>
6504
6505 * charset.c (load_charset_map_from_file): When a mapfile can't be
6506 loaded, signal an error.
6507
78e7d1fe
EZ
65082009-03-18 Eli Zaretskii <eliz@gnu.org>
6509
6510 * dired.c (Ffile_attributes): Make sure UID and GID are always
6511 positive, even if the value is too large for a positive EMACS_INT.
6512 Doc fix.
6513
6514 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
6515
5da9fdfa
YM
65162009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6517
6518 * xmenu.c (xdialog_show): Move Fredisplay call ...
6519 (Fx_popup_dialog): ... here.
6520
7519c40d
SM
65212009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
6522
6523 * dired.c (file_name_completion): Disable the first optimization just
6524 installed, since it is not implemented correctly.
6525
2cd298e2
SM
65262009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
6527
6528 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 6529 only if the entry can affect bestmatch.
2cd298e2
SM
6530 Stop the search early, as Ftry_completion already does.
6531
48d37adf
CY
65322009-03-17 Chong Yidong <cyd@stupidchicken.com>
6533
e10c9c93 6534 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 6535
9286b16a
CY
65362009-03-15 Chong Yidong <cyd@stupidchicken.com>
6537
6538 * keyboard.c (parse_menu_item): Don't display remappings as menu
6539 equivalent bindings (Bug#788).
6540
f7b146dc
JR
65412009-03-15 Jason Rumney <jasonr@gnu.org>
6542
6543 * w32term.h (WM_EMACS_PAINT): New message.
6544 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
6545 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
6546 before passing to lisp thread. (Bug#950)
6547
f761d6b6 65482009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 6549
d93f9575
CY
6550 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
6551 variable as it was never reset.
6552 (ns_term_init): Remove initialization of Lisp-settable defaults
6553 and ns_expand_space.
6554 (-setPanelFromDefaultValues): Remove ns_expand_space.
6555 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
6556 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
6557 i.e. no additional spacing, similar to Carbon port.
6558
d93f9575
CY
6559 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
6560 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 6561
305018ec
JD
65622009-03-14 Jan Djärv <jan.h.d@swipnet.se>
6563
6564 * sound.c (alsa_configure): Remove call to deprecated
6565 snd_pcm_sw_params_set_xfer_align.
6566
f761d6b6 65672009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
6568
6569 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
6570 after clicking in a detached tool bar.
6571 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
6572
46e722a9
SM
65732009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
6574
348db3dd
SM
6575 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
6576 int/Lisp_Object mixup).
46e722a9 6577
a3d16f39
KH
65782009-03-13 Kenichi Handa <handa@m17n.org>
6579
6580 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 6581 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
6582 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
6583 (set_fontset_font): Change ARG to a vector. Handle range_list in
6584 ARG correctly.
6585 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 6586 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
6587 the above change.
6588 (fontset_from_font): Fix previous change.
fe24f56a 6589 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
6590 entry. If FONTSET is the default fontset, don't set the extra
6591 slot of the returning char-table.
6592
b066e6b6
JB
65932009-03-12 Juanma Barranquero <lekktu@gmail.com>
6594
6595 * nsfns.m (Fx_close_connection): Doc fix.
6596 (Fns_do_applescript): Reflow docstring.
6597 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
6598 (Fx_display_pixel_width, Fx_display_pixel_height)
6599 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
6600 Fix typos in docstrings.
6601 (Fns_set_alpha): Fix typos in error messages.
6602
d472514e 66032009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 6604
d472514e 6605 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
6606 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
6607 were used for such events.
6608
d472514e
JB
6609 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
6610 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 6611
d472514e 6612 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
6613 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
6614
fb930676
KH
66152009-03-11 Kenichi Handa <handa@m17n.org>
6616
ff85581a
KH
6617 * font.h (font_open_by_spec): Extern it.
6618
c50b7e98
KH
6619 * font.c (font_open_by_spec): New function.
6620 (font_open_by_name): Use font_open_by_spec.
6621
fb930676
KH
6622 * frame.c (x_set_font): When ARG is a font-object, don't alter the
6623 fontset of the frame.
6624
6625 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
6626 modify the default font of frames that use this fontset.
6627 (num_auto_fontsets): New variable.
6628 (fontset_from_font): Use num_auto_fontsets to decide a fontset
6629 name. Be sure to set FONTSET_ASCII to the correct font name.
6630 (update_auto_fontset_alist): New function.
6631
df4e8455
JB
66322009-03-11 Juanma Barranquero <lekktu@gmail.com>
6633
6634 * makefile.w32-in: Update dependencies.
6635
0a375797
AR
66362009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6637
6638 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
6639
61313fa3
SM
66402009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
6641
6642 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
6643
b55103fb
CY
66442009-03-10 Chong Yidong <cyd@stupidchicken.com>
6645
6646 * lread.c (Feval_buffer): Doc fix.
6647
dde2559c
KH
66482009-03-09 Kenichi Handa <handa@m17n.org>
6649
6650 * charset.c (Qfile_name_handler_alist): Extern it.
6651 (load_charset_map_from_file): Temporarily bind
6652 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
6653
df4e8455 66542009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 6655
47f588bb
GM
6656 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
6657 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 6658
4ddf94bd
AR
66592009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6660
4c9bdfc2
AR
6661 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
6662 (x_set_window_size): Change back to calculated method of setting
6663 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
6664 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
6665 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
6666
fe41ae9e
AR
6667 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
6668
4c9bdfc2
AR
6669 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
6670 accelerator in parens under GNUstep.
6671
825d0875
KH
66722009-03-06 Kenichi Handa <handa@m17n.org>
6673
6674 These changes are to detect incorrect composition sequence without
f3b3be74 6675 looking ahead the source. (Bug#2370)
825d0875
KH
6676
6677 * coding.h: Include "composite.h".
6678 (enum compisition_state): New enum.
6679 (struct compisition_status): New struct.
6680 (struct iso_2022_spec): New member cmp_status.
6681 (struct emacs_mule_spec): New struct.
6682 (struct coding_system): New members ctext_extended_segment_len and
6683 embedded_utf_8. Change the union member
6684 spec.emacs_mule_full_support to spec.emacs_mule.
6685
6686 * coding.c (CODING_ISO_CMP_STATUS): New macro.
6687 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 6688 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
6689 (ADD_COMPOSITION_DATA): New arg nbytes.
6690 (emacs_mule_char): New arg cmp_status.
6691 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
6692 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
6693 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
6694 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
6695 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
6696 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
6697 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
6698 (EMACS_MULE_COMPOSITION_END): New macro.
6699 (emacs_mule_finish_composition): New function.
6700 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
6701 (decode_coding_emacs_mule): Avoid long looking ahead while
6702 handling composition.
6703 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
6704 (ENCODE_COMPOSITION_RULE): New macro.
6705 (finish_composition): New function.
6706 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
6707 (DECODE_COMPOSITION_START): New implementation.
6708 (DECODE_COMPOSITION_END): Likewise.
6709 (STORE_COMPOSITION_RULE): New macro.
6710 (decode_coding_iso_2022): Avoid long looking ahead while handling
6711 composition, CTEXT extended segment, and embedded UTF-8.
6712 (setup_coding_system): For a coding of type iso-2022, reset
6713 CODING_ISO_EXTSEGMENT_LEN (coding) and
6714 CODING_ISO_EMBEDDED_UTF_8 (coding).
6715 (get_translation): Delete arguments last_block, from_nchars,
6716 to_nchars. Callers changed.
6717 (produce_chars): Don't modify charbuf. Adjusted for the change of
6718 get_translation.
98a326f7 6719 (produce_composition): Adjust for the new annotation sequence.
825d0875 6720 (handle_composition_annotation): Likewise.
98a326f7 6721 (consume_chars): Adjust for the change of get_translation.
825d0875 6722
ccbc4452
AR
67232009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
6724
4ddf94bd 6725 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 6726
988a7ddb
KH
67272009-03-05 Kenichi Handa <handa@m17n.org>
6728
6729 * font.c (font_select_entity): New function.
6730 (font_find_for_lface): Use font_select_entity to select a font.
6731
6732 * fontset.c (fontset_find_font): If a font found without
a8a3728b 6733 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
6734 font with C restriction.
6735
98a326f7 67362009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 6737
be1bce46 6738 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 6739
10ea2b82
JR
67402009-03-04 Jason Rumney <jasonr@gnu.org>
6741
2c93b248 6742 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 6743 characters that have already been read. (Bug#2569)
2c93b248 6744
10ea2b82
JR
6745 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
6746 Log an error message if check_image_size failed.
6747 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 6748 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 6749
71a0c011
EZ
67502009-03-02 Eli Zaretskii <eliz@gnu.org>
6751
6752 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
6753 when decoding process output.
6754
2f63bba8
RS
67552009-03-01 Richard M Stallman <rms@gnu.org>
6756
6757 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
6758
6759 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
6760
0a9564cb
EZ
67612009-02-28 Eli Zaretskii <eliz@gnu.org>
6762
6763 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
6764 (decode_coding_emacs_mule, decode_coding_iso_2022)
6765 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6766 (decode_coding_raw_text, decode_coding_charset)
6767 (setup_coding_system, decode_eol, decode_coding, consume_chars):
6768 Honor inhibit-eol-conversion. (Bug #2186)
6769
449148b3
JR
67702009-02-28 Jason Rumney <jasonr@gnu.org>
6771
6772 * coding.c (detect_coding_charset): If not checking latin extra,
6773 fail on characters between 0x80 and 0xA0. (Bug#2354)
6774
a4aee864
EZ
67752009-02-28 Eli Zaretskii <eliz@gnu.org>
6776
6777 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 6778 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 6779
d88bee5a
GM
67802009-02-27 Glenn Morris <rgm@gnu.org>
6781
6782 * callint.c (Finteractive): Doc fix.
6783
a808f22d
KH
67842009-02-27 Kenichi Handa <handa@m17n.org>
6785
6786 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
6787
caf8d60c
CY
67882009-02-27 Chong Yidong <cyd@stupidchicken.com>
6789
6790 * font.c (font_style_to_value): Set value for unknown symbols to
6791 100 instead of 255.
b61137ea
CY
6792 (weight_table, slant_table, width_table): Treat "unspecified" as
6793 the default value.
caf8d60c 6794
1a0de25c
JB
67952009-02-26 Juanma Barranquero <lekktu@gmail.com>
6796
6797 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
6798
8fc45744
JB
67992009-02-25 Juanma Barranquero <lekktu@gmail.com>
6800
107bd7d1
JB
6801 * lread.c (Fload): Stop checking Vloads_in_progress and signal
6802 error as soon as a recursive load is detected.
8fc45744 6803
f097e223
AR
68042009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6805
6806 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
6807 before caching.
6808
8810a12f
KH
68092009-02-24 Kenichi Handa <handa@m17n.org>
6810
6811 * fontset.c (fontset_find_font): Fix the condition for checking
6812 unavailable font.
6813
2c7d1565
GM
68142009-02-24 Glenn Morris <rgm@gnu.org>
6815
6816 * xfaces.c (Finternal_set_font_selection_order): Remove leading
6817 whitespace that confuses documentation.
6818
a20878b6
MB
68192009-02-23 Miles Bader <miles@gnu.org>
6820
6821 * process.c (Flist_system_processes, Fprocess_attributes)
6822 (syms_of_process): Rename `system-process-attributes' to
6823 `process-attributes'.
6824
b3b58c01
AS
68252009-02-22 Andreas Schwab <schwab@linux-m68k.org>
6826
1b3b981b
AS
6827 * coding.h (struct coding_system): Make safe_charsets a pointer to
6828 unsigned char.
6829 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
6830 being 255.
6831 (SAFE_CHARSET_P): Likewise.
6832 (setup_iso_safe_charsets): Properly setup safe_charsets.
6833 (Fdefine_coding_system_internal): Likewise.
6834 (setup_coding_system): Likewise. Remove unneeded casts.
6835 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
6836 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
6837 unneeded casts.
6838
b3b58c01
AS
6839 * insdel.c (del_range_2): Don't modify gap contents when called
6840 from decode_coding_object. (Bug#1809)
6841
0b6f228c
CY
68422009-02-21 Chong Yidong <cyd@stupidchicken.com>
6843
6844 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
6845 Qfont_object.
6846 (Ftype_of): Recognize font objects.
6847
6848 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
6849
6850 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
6851 moved to data.c.
6852
52f8870b
AR
68532009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6854
6855 * nsterm.m (x_make_frame_invisible): Unset async_visible,
6856 async_iconified. Based on a patch by Christian Lynbech
6857 <christian.lynbech@tieto.com>.
6858 (EmacsView-windowDidMiniaturize:): Unset async_visible.
6859
7087d5e9
GM
68602009-02-20 Glenn Morris <rgm@gnu.org>
6861
6862 * syntax.c (Fskip_chars_forward): Fix doc typo.
6863
41d2ceef
CY
68642009-02-20 Chong Yidong <cyd@stupidchicken.com>
6865
6866 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
6867
1a3b7ca6
CY
68682009-02-19 Chong Yidong <cyd@stupidchicken.com>
6869
6870 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
6871
73cce38d
KH
68722009-02-19 Kenichi Handa <handa@m17n.org>
6873
6874 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 6875 Don't overflow coding->carryover. (Bug#2370)
73cce38d 6876
a51092ee
DN
68772009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
6878
6879 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
6880
c423ecca
KH
68812009-02-18 Kenichi Handa <handa@m17n.org>
6882
6883 * font.c (font_check_otf_features): Fix handling of `nil' element.
6884 (Ffont_spec): Describe :lang and :otf in the docstring.
6885
4c1958f4
AS
68862009-02-16 Andreas Schwab <schwab@suse.de>
6887
6888 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
6889 string.
6890
5704f39a
KH
68912009-02-16 Kenichi Handa <handa@m17n.org>
6892
6893 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 6894 (Bug#1723)
5704f39a 6895
8f0085aa
CY
68962009-02-14 Chong Yidong <cyd@stupidchicken.com>
6897
a057d86a 6898 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
6899
6900 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
6901 (handle_line_prefix): Suppress wrapping of wrap prefixes.
6902
aff01dd9
EZ
69032009-02-14 Eli Zaretskii <eliz@gnu.org>
6904
6905 * msdos.c (MAX_SCREEN_BUF): New macro.
6906 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
6907 Encode the entire run of glyphs sharing the same face, instead of
6908 doing that one glyph at a time (fixes a bug with displaying
6909 double-size characters).
6910
ba301db3
AR
69112009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
6912
6913 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
6914
6915 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
6916 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 6917 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
6918
6919 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 6920 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 6921
51d861de
SM
69222009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
6923
ac146f82 6924 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
6925 invisible areas.
6926
7fed8996
JR
69272009-02-12 Jason Rumney <jasonr@gnu.org>
6928
631ea4fb
JR
6929 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
6930 (add_font_entity_to_list): Call check_face_name even when family
6931 is unspecified.
6932
cb4a3e42
JR
6933 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6934 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 6935 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 6936
7fed8996 6937 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 6938 raster fonts. (Bug#2219)
7fed8996 6939
895416e3
KH
69402009-02-12 Kenichi Handa <handa@m17n.org>
6941
6942 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
6943 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
6944 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 6945 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
6946 (find_automatic_composition): While looking forward and backward,
6947 check static composition. Fix where to stop looking forward.
6948 (composition_adjust_point): Fix checking of static composition.
6949 (Fcomposition_get_gstring): Pay attention to
1dacf998 6950 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
6951
6952 * lisp.h (fast_looking_at): Extern it.
6953
6954 * search.c (fast_looking_at): New function.
6955
51d861de 6956 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
6957 <struct glyph>.u.cmp.to.
6958 (append_composite_glyph): Likewise.
6959
51d861de 6960 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
6961 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
6962 composition.
51d861de 6963 (append_composite_glyph): Adjust for the change of
895416e3
KH
6964 <strcut glyph>.u.cmp.to.
6965
8510724d
JB
69662009-02-11 Juanma Barranquero <lekktu@gmail.com>
6967
6968 * casetab.c (init_casetab_once):
6969 * coding.c (ALLOC_CONVERSION_WORK_AREA):
6970 * font.c (font_update_lface):
6971 * fontset.c (Fnew_fontset):
6972 * ftfont.c (ftfont_drive_otf):
6973 * xfont.c (xfont_open):
6974 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
6975
294fa707
SM
69762009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
6977
6978 * fileio.c (Fwrite_region): !NILP -> CONSP.
6979
b5bfebec
AS
69802009-02-10 Andreas Schwab <schwab@suse.de>
6981
6982 * process.c (send_process): Properly relocate pointer into data
adab88bd 6983 when using encoded data. (Bug#2272)
b5bfebec 6984
cb84a2be
KH
69852009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
6986
6987 * coding.c (detect_coding_charset): Fix previous change.
6988
89e09428
JR
69892009-02-08 Jason Rumney <jasonr@gnu.org>
6990
6991 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 6992 disappeared while hourglass was displayed. (Bug #2193)
89e09428 6993
4470a277
AS
69942009-02-07 Andreas Schwab <schwab@suse.de>
6995
6996 * unexelf.c (unexec): Fix error message.
6997
3175b12a
AR
69982009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
6999
7000 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 7001 when modal window is active. (Bug #2152)
3175b12a
AR
7002 (applicationShouldTerminate:): Remove now-unneeded while loop
7003 around NSRunAlertPanel.
7004
7005 * nsmenu.m (popupSession): New file-global variable.
7006 (pop_down_menu): End the popupSession before closing dialog.
7007 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
7008 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
7009 don't query NSApp for events (just sleep instead).
7010
8434d0b8
EZ
70112009-02-07 Eli Zaretskii <eliz@gnu.org>
7012
51d861de
SM
7013 * coding.c (syms_of_coding) <translation-table-for-input>:
7014 Modify doc string to discourage use for character code unification.
8434d0b8 7015
aa82edfd
CY
70162009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7017
7018 * atimer.c (run_timers): Update pending_atimers.
7019
2d283c7c
CY
70202009-02-06 Chong Yidong <cyd@stupidchicken.com>
7021
eb306cab
CY
7022 * image.c (svg_load_image): Fix last change.
7023
2d283c7c
CY
7024 * xfns.c (Fx_create_frame): Signal an error if no font is
7025 found (Bug#2147).
7026
4d8e170e
JB
70272009-02-05 Juanma Barranquero <lekktu@gmail.com>
7028
7029 * character.c (syms_of_character) <script-representative-chars>:
7030 Fix typo in docstring.
7031
c96169a0
AR
70322009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7033
7034 * nsmenu.m (pop_down_menu): New function.
7035 (ns_popup_dialog): Call it on unwind.
7036 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
7037 call timer_check() (Bug#2154).
7038 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
7039 handling_signal is set.
7040 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
7041
31fd7c5c 7042 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
7043
7044 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
7045
7046 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
7047
51d861de
SM
7048 * keyboard.c (poll_for_input_1, handle_async_input):
7049 Set handling_signal under HAVE_NS.
c96169a0 7050
aacd8ba1
GM
70512009-02-04 Glenn Morris <rgm@gnu.org>
7052
7053 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
7054
4cb75c4b
KH
70552009-02-04 Kenichi Handa <handa@m17n.org>
7056
7057 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
7058
7059 * charset.c (Fchar_charset): New optional arg restriction.
7060
7061 * coding.h (coding_system_charset_list): Extern it.
7062
7063 * coding.c (coding_system_charset_list): New function.
7064
7065 * composite.c: Include coding.h and termhooks.h.
7066 (composition_gstring_p): Fix for the terminal case.
7067 (composition_gstring_width): Likewise.
7068 (fill_gstring_body): Likewise.
7069 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
7070 the frame.
7071 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
7072 is within a composition.
867d4bb3 7073 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
7074
7075 * term.c (encode_terminal_code): Fix handling of composition.
7076 (produce_composite_glyph): For static composition, get pixel_width
7077 from struct composition.
7078
826ba17e
AS
70792009-02-02 Andreas Schwab <schwab@suse.de>
7080
7081 * unexelf.c (unexec): Handle unaligned bss offset.
7082
8ad093db
AR
70832009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7084
7085 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
7086 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 7087
8ad093db
AR
7088 * keyboard.c (handle_interrupt): Don't call
7089 quit_throw_to_read_char() under NS.
d0a76a6e 7090
8ad093db
AR
7091 * blockinput.h: Remove NS-specific code.
7092
4d18a7a2
DN
70932009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
7094
db878925
DN
7095 * dispnew.c (window_change_signal): Don't try to get the size of a
7096 suspended tty frame.
7097 * term.c (Fresume_tty): Resize if the size has changed while the
7098 tty was suspended.
7099
4d18a7a2
DN
7100 * alloc.c (mark_stack): Properly conditionalize previous change.
7101
8984df7c
JB
71022009-01-30 Juanma Barranquero <lekktu@gmail.com>
7103
7104 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
7105 * w32term.c (w32_read_socket) [SYNC_INPUT]:
7106 Remove; this code is not used on Windows.
7107
75f4f1ac
EZ
71082009-01-30 Eli Zaretskii <eliz@gnu.org>
7109
7110 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
7111 EOLs that also has stray ^M characters.
7112
07a1e794
JB
71132009-01-30 Juanma Barranquero <lekktu@gmail.com>
7114
7115 * atimer.c (run_timers, alarm_signal_handler):
7116 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
7117 * w32inevt.c (w32_console_read_socket):
7118 * w32term.c (w32_read_socket):
7119 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
7120
a8b11cc9
CY
71212009-01-30 Chong Yidong <cyd@stupidchicken.com>
7122
7123 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
7124 Initialize it as a relative filename pattern.
7125 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
7126 (Fcall_process_region): Simplify temp file creation using
7127 temporary-file-directory.
7128
c279587b
EZ
71292009-01-29 Eli Zaretskii <eliz@gnu.org>
7130
7131 * msdos.c: Rename pending_signals to msdos_pending_signals.
7132 (sig_suspender, sigprocmask): Adjust.
7133
a8fe3242
CY
71342009-01-29 Chong Yidong <cyd@stupidchicken.com>
7135
7136 * keyboard.c (pending_signals): New var.
7137 (poll_for_input, input_available_signal, init_keyboard): Set it.
7138 (process_pending_signals): New function.
7139
7140 * lisp.h (QUIT): Check pending_signals instead of
7141 interrupt_input_pending. Use process_pending_signals.
7142
51d861de 7143 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 7144
51d861de 7145 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
7146
7147 * sysdep.c (emacs_write): Use process_pending_signals.
7148
7149 * xterm.c (XTread_socket): Update pending_signals.
7150
7151 * w32term.c (w32_read_socket): Update pending_signals.
7152
7153 * w32inevt.c (w32_console_read_socket): Update pending_signals.
7154
6570a1c4
KH
71552009-01-29 Kenichi Handa <handa@m17n.org>
7156
7157 * xftfont.c (xftfont_has_char): New function.
7158 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
7159
d72a4afa
AR
71602009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7161
7162 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
7163 under GNUstep.
7164 (ns_query_color): New declaration.
7165
7166 * nsterm.m (ns_confirm_quit): New variable.
7167 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
7168 (EmacsApp-applicationShouldTerminate:): Use it.
7169 (EmacsPrefsController): Let user set it.
7170 (ns_query_color): New function.
7171 (ns_defined_color): Use it.
7172 (ns_initialize): Drop.
7173 (ns_term_init): Add two lines from ns_initialize(), and set
7174 input_interrupt_mode to nil.
7175
7176 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 7177 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 7178
9fe78804
KH
71792009-01-28 Kenichi Handa <handa@m17n.org>
7180
7181 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
7182 (fontset_get_font_group): Remember that no font-group is specified
7183 for C.
9fe78804 7184
fa57de36
CY
71852009-01-27 Chong Yidong <cyd@stupidchicken.com>
7186
930600e9
CY
7187 * fns.c (concat): Check for string overflow (bug#1787).
7188
fa57de36
CY
7189 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
7190 Quadruple undo limits (bug#1501).
7191
7179ce7b
KH
71922009-01-27 Kenichi Handa <handa@m17n.org>
7193
7194 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
7195 directly use GT_Get_Char_index.
7196
7197 * xftfont.c (struct xftfont_info): New member `index'.
7198
7199 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 7200 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 7201
5be8fcc0
CY
72022009-01-26 Kenichi Handa <handa@m17n.org>
7203
7204 * fontset.c (fontset_find_font): Fix handling of non-cons return
7205 value of fontset_get_font_group.
7206 (fontset_font): Revert last change.
7207
19ae3e61
JR
72082009-01-26 Jason Rumney <jasonr@gnu.org>
7209
7210 * w32font.c (w32font_list_internal): Return quickly if registry is
7211 unknown. Simplify final return.
7212 (add_font_entity_to_list): Break complex logic down into more
7213 manageable chunks. Move unknown registry check to
7214 w32font_list_internal.
7215
8612b71a
AR
72162009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
7217
7218 Changes to remove Feval calls from GUI under NS.
7219
d8038940
JB
7220 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
7221 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
7222 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
7223
7224 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
7225 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
7226 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
7227 instead of NON_ASCII_KEYSTROKE_EVENT.
7228 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
7229 (EmacsApp-applicationShouldTerminate:): Query user.
7230 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
7231 instead of Feval.
7232
7233 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
7234
7235 * keyboard.c (kbd_buffer_get_event): Check for it.
7236 (keys_of_keyboard): Define lispy keys for
7237 ns-put/unput-working-text.
7238
7239 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
7240 versions.
7241 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
7242
6288ae55
CY
72432009-01-25 Chong Yidong <cyd@stupidchicken.com>
7244
7245 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 7246 setting current_buffer directly. (Bug#2044)
6288ae55 7247
289e7f8f
CY
72482009-01-24 Chong Yidong <cyd@stupidchicken.com>
7249
5ce87308 7250 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 7251 any work. (Bug#1952, bug#1990).
5ce87308 7252
64cc3cf6 7253 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 7254
b3243e6f
AR
72552009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7256
7257 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
7258 (ns_no_defaults): New declaration.
7259 (main): Use it.
e0d2e69a 7260
d900b2af 7261 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 7262
d900b2af 7263 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 7264
d900b2af
AR
7265 * nsterm.m (ns_no_defaults): New variable.
7266 (ns_initialize): Don't read defaults when ns_no_defaults.
7267 (EmacsView-readSelectionFromPasteboard:)
7268 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 7269 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
7270 (ns_dumpglyphs_stretch): New function.
7271 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 7272 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 7273
e0d2e69a
AR
7274 * nsimage.m (setPixmapData:): Set to ignore image DPI.
7275
3ac71f5d
CY
72762009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
7277
7278 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
7279 call for Sparc64.
7280
3fe53a83
AR
72812009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7282
7283 * nsfns.m:
7284 * nsgui.h:
7285 * nsmenu.m:
7286 * nsselect.m:
7287 * nsterm.h:
7288 * nsterm.m: Remove '23' comments that indicated code added during
7289 update from emacs-20 -> emacs-23.
7290
10f87c6f 72912009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
7292
7293 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 7294 ns_alternate_modifier. (Bug#1217)
a3b53a85 7295
c7cef62d
AR
7296 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
7297 Display all shortcuts, including those w/o super modifier.
7298
575fb8bd
AR
7299 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
7300
918b848b
CY
73012009-01-22 Chong Yidong <cyd@stupidchicken.com>
7302
7303 * fileio.c (Vwrite_region_post_annotation_function)
7304 (Vwrite_region_annotation_buffers): New vars.
7305 (build_annotations_unwind): Just reset
7306 Vwrite_region_annotation_buffers.
7307 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
7308 Call write-region-post-annotation-function.
7309 (build_annotations): Add to Vwrite_region_annotation_buffers if
7310 buffer changes.
7311
a39e2539
AR
73122009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7313
7314 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
7315 Tiger.
51d861de
SM
7316 * nsfns.m (ns_do_applescript):
7317 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 7318
35ed44db
AR
73192009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
7320
7321 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
7322
cbe0b5bf
AR
73232009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7324
7325 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 7326
6049d3a0
AR
7327 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
7328
7329 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
7330 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
7331 handle Ctrl-tab. (Bug#1841)
7332 (ns_get_color): Use unsigned long long for scanned hex string value.
7333 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 7334 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 7335 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 7336 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 7337 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 7338 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 7339 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 7340
d3810c21 7341 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 7342 DPI. (Bug#1316)
d3810c21
AR
7343 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
7344 values in onTiger section.
4c7077c3 7345
e301e634
CY
73462009-01-19 Chong Yidong <cyd@stupidchicken.com>
7347
7f82490b
CY
7348 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
7349 Check return value of font_spec_from_name.
64cc3cf6 7350 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
7351
7352 * font.c (font_spec_from_name): Return Qnil if font name could not
7353 be parsed.
7354 (font_parse_name): Treat a `?' character as part of an XLFD.
7355
e301e634
CY
7356 * fns.c (Fsubstring): Doc fix.
7357
1c0db158
KH
73582009-01-19 Kenichi Handa <handa@m17n.org>
7359
51d861de 7360 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
7361 (ftfont_list): Likewise.
7362
acf20901
JB
73632009-01-18 Juanma Barranquero <lekktu@gmail.com>
7364
fff4e459
JB
7365 * dbusbind.c (Fdbus_register_signal):
7366 * process.c (conv_sockaddr_to_lisp):
7367 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
7368
acf20901
JB
7369 * callproc.c (Fgetenv_internal): Doc fix.
7370
e7abcdfb
CY
73712009-01-16 Chong Yidong <cyd@stupidchicken.com>
7372
7373 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
7374 it is not even used.
7375
b60861e6
GM
73762009-01-16 Glenn Morris <rgm@gnu.org>
7377
7378 * font.c (Ffont_variation_glyphs): Silence compiler.
7379
8db52afe
JB
73802009-01-15 Juanma Barranquero <lekktu@gmail.com>
7381
7382 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
7383 Reported by David Robinow <drobinow@gmail.com>.
7384
4cddb209
KH
73852009-01-15 Kenichi Handa <handa@m17n.org>
7386
51d861de 7387 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 7388
f247f67b
JR
73892009-01-14 Jason Rumney <jasonr@gnu.org>
7390
7391 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 7392 never a fontset. (Bug#1562)
f247f67b 7393
f56a4450
KH
73942009-01-14 Kenichi Handa <handa@m17n.org>
7395
7396 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 7397 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 7398
4e99855e
CY
73992009-01-13 Chong Yidong <cyd@stupidchicken.com>
7400
7401 * font.c (font_clear_prop): If clearing the family, clear the font
7402 width index too.
7403
fff4e459 7404 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 7405
24f01470
JB
74062009-01-12 Juanma Barranquero <lekktu@gmail.com>
7407
7408 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
7409 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
7410 functions, use sizeof.
7411
a41240a3
MR
74122009-01-12 Martin Rudalics <rudalics@gmx.at>
7413
7414 * keyboard.c (read_char): Fix case where last_nonmenu_event
7415 returned a bad value with submenus. (Bug#447)
7416
944636b8
CY
74172009-01-12 Chong Yidong <cyd@stupidchicken.com>
7418
7419 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
7420 family, clear the font width index too.
7421
0dad7c6f
JR
74222009-01-11 Jason Rumney <jasonr@gnu.org>
7423
7424 * keyboard.c (cmd_error_internal): Exit when errors occur before
7425 frame creation and not in daemon mode. (Bug#1836)
7426
7c2363af
CY
74272009-01-10 Chong Yidong <cyd@stupidchicken.com>
7428
7429 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
7430 of a display vector, backtrack.
7431 (try_window_reusing_current_matrix): Check glyph type before
7432 referencing charpos member.
7433
97b1b294
EZ
74342009-01-10 Eli Zaretskii <eliz@gnu.org>
7435
7436 Fix Bug #876:
7437
7438 * coding.c (inhibit_null_byte_detection): New variable.
7439 (detect_coding, detect_coding_system): Don't pay attention to null
7440 bytes if inhibit_null_byte_detection is non-zero.
51d861de 7441 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
7442 <inhibit-iso-escape-detection>: Doc fix.
7443
4624b6e3
JR
74442009-01-09 Jason Rumney <jasonr@gnu.org>
7445
7446 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 7447 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
7448 Only report Unicode Plane 2 fonts as unicode-sip.
7449
323b840c
CY
74502009-01-09 Chong Yidong <cyd@stupidchicken.com>
7451
51d861de
SM
7452 * xfaces.c (Fx_font_family_list): Delete function.
7453 Move compatibility version to faces.el.
323b840c 7454
51d861de 7455 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 7456
eba7400d
MR
74572009-01-09 Martin Rudalics <rudalics@gmx.at>
7458
7459 * frame.c (x_set_frame_parameters): Remember requested value for
7460 fullscreen before it's reset by the parameter handler.
7461
4b09796d
GM
74622009-01-09 Glenn Morris <rgm@gnu.org>
7463
7464 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 7465 (last_command_event): ... and update all users.
4b09796d
GM
7466 (last_input_char): For clarity, rename to...
7467 (last_input_event): ... and update all users.
7468 (last-command-char, last-input-char): Move to subr.el as aliases.
7469 * cmds.c, commands.h: Update for last_command_char rename.
7470
14ccea62
CY
74712009-01-08 Chong Yidong <cyd@stupidchicken.com>
7472
51d861de 7473 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 7474
5f004711
JR
74752009-01-08 Jason Rumney <jasonr@gnu.org>
7476
7477 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
7478 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
7479 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
7480 Don't declare.
fff4e459 7481 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
7482 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
7483
b71f6f73
KH
74842009-01-07 Kenichi Handa <handa@m17n.org>
7485
50b06221 7486 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 7487 remember the coding system used for decoding in
50b06221
KH
7488 coding_system (Bug#1039).
7489
b71f6f73 7490 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 7491 breaking the loop. (Bug#870)
b71f6f73
KH
7492 (decode_coding_utf_16, decode_coding_emacs_mule)
7493 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7494 (decode_coding_charset): Likewise.
7495
56f668f7
MR
74962009-01-05 Martin Rudalics <rudalics@gmx.at>
7497
7498 * frame.c (x_set_frame_parameters): Make sure height (width) get
7499 applied when fullwidth (fullheight) is set. (Bug#1522)
7500
5da9424d
JB
75012009-01-04 Juanma Barranquero <lekktu@gmail.com>
7502
7503 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
7504 (utc_base): Declare as ULONGLONG, not long double.
7505 (convert_time_raw): Delete.
7506 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
7507 (initialize_utc_base): New function.
7508 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
7509 (convert_from_time_t): Use initialize_utc_base; compute result with
7510 64-bit arithmetic.
7511 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
7512
c4605e09
EZ
75132009-01-03 Eli Zaretskii <eliz@gnu.org>
7514
9acef61c 7515 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
7516 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
7517 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
7518 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
7519 [!subprocesses]: Define.
7520 (syms_of_process) [!subprocesses]: Intern and staticpro them.
7521 (Flist_system_processes, Fsystem_process_attributes)
7522 [!subprocesses]: Call list_system_processes and
7523 system_process_attributes instead of returning Qnil.
7524
9acef61c
JB
7525 * dosfns.c (system_process_attributes, list_system_processes):
7526 New functions.
c4605e09
EZ
7527
7528 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
7529
7530 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
7531 Don't use the default (no-op) implementation.
7532
8b7d0a16
JR
75332009-01-03 Jason Rumney <jasonr@gnu.org>
7534
a6d46bc1
JR
7535 * keyboard.c (parse_modifiers_uncached): Wheel events are
7536 clicks (bug#687).
7537
8b7d0a16
JR
7538 * w32term.c (x_query_colors, x_query_color): New functions.
7539
7540 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
7541 (svg_load_image): Cast returned pointers from dynamically loaded
7542 functions. Eliminate W32 specific code.
7543
bfe11752
DN
75442009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
7545
89e2438a
DN
7546 * nsfns.m (x_set_foreground_color, x_set_background_color)
7547 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
7548 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
7549 x_ prefix instead of ns_. Update references.
7550 (syms_of_nsfns): Add a FIXME comment.
7551
7552 * nsterm.m (x_set_cursor_type): New prototype.
7553 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
7554
bfe11752
DN
7555 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
7556 for Solaris instead of incorrectly providing Qutime and Qcutime.
7557
031da700
EZ
75582009-01-02 Eli Zaretskii <eliz@gnu.org>
7559
7560 * w32.c (process_times): Compute sum of utime and stime.
7561 (system_process_attributes): Add Qtime to the alist.
7562
7563 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
7564 and add them to the alist.
7565
7566 * process.c (top level) <Qtime, Qctime>: New variables.
7567 (syms_of_process): staticpro them.
7568 (Fsystem_process_attributes): Add their documentation to the doc
7569 string.
7570
7571 * process.h: Declare Qtime and Qctime.
7572
df23bf08
JR
75732009-01-02 Jason Rumney <jasonr@gnu.org>
7574
9acef61c 7575 * image.c (Qgobject): New symbol.
df23bf08
JR
7576 (syms_of_image): Initialize it.
7577 (init_svg_functions): Load some functions from gobject library.
7578
5bbdf7aa
DN
75792009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
7580
7581 * frame.c (make_terminal_frame): Remove redundant code and useless
7582 block.
7583
63136da6
AS
75842009-01-01 Andreas Schwab <schwab@suse.de>
7585
7586 * process.c (conv_sockaddr_to_lisp): Add workaround for
7587 getsockname bug on BSD.
7588
9ef69046
CY
75892009-01-01 Chong Yidong <cyd@stupidchicken.com>
7590
d6fafbe0
CY
7591 * xfns.c (x_create_tip_frame): Set border width of the X window.
7592
51d861de 7593 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 7594
f9c34147
JR
75952009-01-01 Jason Rumney <jasonr@gnu.org>
7596
9acef61c 7597 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
7598 Don't block input, as per earlier xterm.c changes.
7599
f5497e45
AR
76002008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
7601
7602 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
7603 (ns_appkit_version_int): New function.
7604 (x-server-version): Use ns_appkit_version_int and follow 21+
7605 convention of returning 3 integers.
7606
c19cab20
KH
76072008-12-30 Kenichi Handa <handa@m17n.org>
7608
7609 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
7610 (CHAR_SURROGATE_PAIR_P): New macro.
7611
7612 * font.h (struct font_driver): New member get_variation_glyphs.
7613
9acef61c 7614 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
7615 (Ffont_variation_glyphs): New function.
7616 (syms_of_font): Defsubr it.
7617
7618 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
7619 ftfont_variation_glyphs.
7620 (setup_otf_gstring): New function.
7621 (ftfont_drive_otf): Use it.
7622 (ftfont_shape_by_flt): Handle variation selector.
7623 (ftfont_variation_glyphs): New function.
7624
28cd591f
MR
76252008-12-30 Martin Rudalics <rudalics@gmx.at>
7626
7627 * frame.c (Vemacs_iconified): Remove.
7628
7f714baf
JR
76292008-12-30 Jason Rumney <jasonr@gnu.org>
7630
7631 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 7632 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 7633
9d2d22ab
CY
76342008-12-30 Chong Yidong <cyd@stupidchicken.com>
7635
7636 * indent.c (Fvertical_motion): Don't advance iterator if we have
7637 reseated to the desired position.
7638
7639 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
7640 checking for pos match.
7641
545312c2
KH
76422008-12-30 Kenichi Handa <handa@m17n.org>
7643
1ede3eb6
KH
7644 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
7645 just get the low 8-bit of the code.
7646
545312c2
KH
7647 * font.c (font_intern_prop): Validate str as multibyte.
7648
bd7bbf29
DN
76492008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
7650
31e0750e
DN
7651 * dispextern.h (struct face): Move lface and hash from the middle
7652 of bitfields.
7653
bd7bbf29
DN
7654 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
7655
b5672e7c
DN
76562008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
7657
7658 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
7659 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
7660 instead of intervals.h.
7661
d704470f
AS
76622008-12-26 Andreas Schwab <schwab@suse.de>
7663
7664 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
7665 cons.
7666
54b33868
MR
76672008-12-26 Martin Rudalics <rudalics@gmx.at>
7668
7669 * textprop.c (Qminibuffer_prompt): New variable.
7670 (syms_of_textprop): Initialize it.
7671 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
7672 in minibuffer-prompt face. (Bug#1662)
7673
40b615d6
JR
76742008-12-25 Jason Rumney <jasonr@gnu.org>
7675
7676 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
7677
baae5c2d
JR
76782008-12-24 Jason Rumney <jasonr@gnu.org>
7679
7680 * ralloc.c (r_alloc_reset_variable): New function.
7681
7682 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 7683 record of what points where. (Bug#716)
baae5c2d 7684
a9051c88
DN
76852008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
7686
7687 * minibuf.c (read_minibuf): Follow the non-interactive case when
7688 running as a daemon, before detaching.
7689
8b146312
AS
76902008-12-22 Andreas Schwab <schwab@suse.de>
7691
7692 * buffer.c (init_buffer): Use realloc instead of xrealloc.
7693 * gtkutil.c (free_widget_value): Use xfree instead of free.
7694
56f2de10
MR
76952008-12-22 Martin Rudalics <rudalics@gmx.at>
7696
7697 * frame.c (delete_frame): New function derived from
7698 Fdelete_frame to handle Qnoelisp value for FORCE argument.
7699 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
7700 (Fdelete_frame): Call delete_frame. Remove line from doc-string
7701 saying that FORCE non-nil doesn't run `delete-frame-functions'.
7702 * frame.h: Extern delete_frame.
7703 * window.c (window_loop):
7704 * terminal.c (delete_terminal):
7705 * xterm.c (x_connection_closed):
7706 * xfns.c (Fx_hide_tip):
9acef61c 7707 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 7708
1fc200d6
JR
77092008-12-21 Jason Rumney <jasonr@gnu.org>
7710
7711 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
7712 when character maps to .notdef character.
7713
5e252df2
SM
77142008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
7715
7716 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
7717
99b72cc4
JR
77182008-12-20 Jason Rumney <jasonr@gnu.org>
7719
7720 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 7721 a graphical frame on Windows. (Bug#1325)
99b72cc4 7722
acc49a52
JD
77232008-12-20 Jan Djärv <jan.h.d@swipnet.se>
7724
7725 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
7726
6ea15123
CY
77272008-12-20 Chong Yidong <cyd@stupidchicken.com>
7728
7729 * minibuf.c (Fread_buffer): Doc fix.
7730
b2dab6c8
JR
77312008-12-20 Jason Rumney <jasonr@gnu.org>
7732
54ea0c87 7733 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 7734 server name in UNC paths. (Bug#719)
54ea0c87 7735
b2dab6c8 7736 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 7737 charbuf. (Bug#1035)
b2dab6c8 7738
6d1921be
DN
77392008-12-19 Daniel Engeler <engeler@gmail.com>
7740
7741 * sysdep.c (serial_configure): Fix typo.
7742
53934c98
DN
77432008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
7744
7745 * sysdep.c: Include alloca.h.
f4f634e8
DN
7746 (system_process_attributes): Add implementation for Solaris.
7747
7748 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 7749
06e111a6
DN
77502008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
7751
7752 Reorganize implementation of Flist_system_processes and
7753 Fsystem_process_attributes. No functional changes.
7754 * process.c: Don't #include pwd.h, grp.h and limits.h.
7755 (Flist_system_processes): Just call list_system_processes.
7756 (Fsystem_process_attributes): Just call system_process_attributes.
7757 (procfs_list_system_processes, time_from_jiffies)
7758 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
7759 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
7760
7761 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
7762 (list_system_processes): Rename from
7763 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
7764 Provide a do nothing implementation.
7765 (system_process_attributes): Rename from
7766 procfs_list_system_processes.
7767 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 7768 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
7769
7770 * w32.c (list_system_processes): Rename from
7771 w32_list_system_processes.
7772 (system_process_attributes): Rename from
7773 w32_system_process_attributes.
7774
7775 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
7776
7777 * process.h (w32_list_system_processes)
7778 (w32_system_process_attributes): Remove.
362654a6
JB
7779 (list_system_processes, system_process_attributes):
7780 New prototypes.
06e111a6 7781
6a705b23
KH
77822008-12-19 Kenichi Handa <handa@m17n.org>
7783
7784 * xfont.c (xfont_decode_coding_xlfd): New function.
7785 (xfont_encode_coding_xlfd): New function.
7786 (xfont_list_pattern): Decode XLFD by iso-8859-1.
7787 (xfont_list): Decode and encode XLFD by iso-8859-1.
7788 (xfont_match): Likewise.
7789 (xfont_list_family): Likewise.
7790 (xfont_open): Likewise.
7791
d66c0241 7792 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
7793 names are utf-8.
7794
d66c0241 7795 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
7796 names are utf-8.
7797
5a130941
JD
77982008-12-18 Jan Djärv <jan.h.d@swipnet.se>
7799
7800 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
7801 changed.
bfd20325
JD
7802 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
7803 clicked on a detached tool bar button.
5a130941 7804
fd95644b
DN
78052008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
7806
7807 * emacs.c (main): Print and error and exit when no data is read
7808 from the pipe.
7809
e6eee6ae
JR
78102008-12-17 Jason Rumney <jasonr@gnu.org>
7811
7812 * w32font.c (w32font_has_char): Always return -1.
7813
a35dd56b
KH
78142008-12-16 Kenichi Handa <handa@m17n.org>
7815
7816 * font.c (font_open_entity): Fix previous change.
7817
0e3635c2
DN
78182008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
7819
7820 * process.c: Include <limits.h>.
7821
d4835507 78222008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
7823
7824 * font.c (font_update_drivers): Fix mistake in reconstructing the
7825 driver list.
7826
78272008-12-16 Chong Yidong <cyd@stupidchicken.com>
7828
7829 * font.c (font_clear_cache): Fix format of font cache data.
7830
e2cbc401
CY
78312008-12-15 Chong Yidong <cyd@stupidchicken.com>
7832
7833 * xftfont.c (xftfont_open): Free Xft font pattern if
7834 XftFontOpenPattern fails.
7835
7836 * xterm.c (x_free_frame_resources): Remove extraneous call to
7837 free_frame_faces.
7838
b131d535
CY
78392008-12-13 Chong Yidong <cyd@stupidchicken.com>
7840
7841 * xterm.c (x_delete_display): Move xim_close_dpy call to
7842 x_delete_terminal.
7843 (x_delete_terminal): Call xim_close_dpy.
7844
e6df5336
JR
78452008-12-13 Jason Rumney <jasonr@gnu.org>
7846
7847 * w32font.c (intern_font_name): New function.
7848 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
7849 (w32font_open_internal, Fx_select_font): Decode font name.
7850 (fill_in_logfont, list_all_matching_fonts): Encode font name.
7851
7852 * w32font.h (intern_font_name): Declare new function.
7853
7854 * w32uniscribe.c (add_opentype_font_name_to_list):
7855 Use intern_font_name.
7856
20d68145
CY
78572008-12-13 Chong Yidong <cyd@stupidchicken.com>
7858
9f2554de
CY
7859 * frame.c (Fdelete_frame): Call free_font_driver_list.
7860
3d9bec9a
CY
7861 * font.c (free_font_driver_list): Implement missing function.
7862
20d68145
CY
7863 * w32term.c (w32_term_init): Don't initialize the image cache
7864 here; it will be done in init_frame_faces.
7865
7866 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
7867 (struct x_display_info): Remove unused member null_pixel. New
7868 member xim_callback_data.
7869
7870 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
7871 (xim_initialize): Save pointer to callback function data.
7872 (xim_close_dpy): Free callback function data. Call XCloseIM,
7873 reverting 2008-11-04 change by David Smith.
7874 (x_term_init): Don't initialize the image cache here; it will be
7875 done in init_frame_faces. Remove ancient "null_pixel" cruft.
7876 (x_delete_display): Free x_dnd_atoms member.
7877
96f9306b
KH
78782008-12-13 Kenichi Handa <handa@m17n.org>
7879
6dec9044
JB
7880 * font.c (font_rescale_ratio): Moved from xfaces.c.
7881 Argument type changed. Handle a font-spec too.
96f9306b 7882 (font_score): Check Vface_font_rescale_alist.
6dec9044 7883 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
7884
7885 * xfaces.c (font_rescale_ratio): Moved to font.c.
7886
8d5b4964
CY
78872008-12-13 Chong Yidong <cyd@stupidchicken.com>
7888
7889 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
7890
e6df5336
JR
78912008-12-12 Jason Rumney <jasonr@gnu.org>
7892
7893 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
7894 Vwindow_system_version to the real w32 major version.
7895
97c6058a
DN
78962008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
7897
7898 * term.c (init_tty): Move setting the terminal name before the
7899 potential user: maybe_fatal.
7900
ec4e88d7
CY
79012008-12-11 Chong Yidong <cyd@stupidchicken.com>
7902
d4835507
JB
7903 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
7904 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 7905
b4233ec9
JR
79062008-12-11 Jason Rumney <jasonr@gnu.org>
7907
8ec71e23 7908 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 7909 SYMBOL_CHARSET. (Bug#547)
8ec71e23 7910
b4233ec9 7911 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 7912 size for surrogates. (Bug#1096, bug#872)
b4233ec9 7913
011a0143
JB
79142008-12-11 Juanma Barranquero <lekktu@gmail.com>
7915
7916 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
7917
3c309f34
JB
79182008-12-11 Juanma Barranquero <lekktu@gmail.com>
7919
7920 * process.c (Fsystem_process_attributes, syms_of_process):
7921 Fix typo in name of Ssystem_process_attributes.
7922 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
7923
fedc6ab5
JB
79242008-12-11 Juanma Barranquero <lekktu@gmail.com>
7925
7926 * syntax.c (Fmodify_syntax_entry): Doc fix.
7927
ba3de0e8
JB
79282008-12-10 Juanma Barranquero <lekktu@gmail.com>
7929
7930 * font.c (Ffont_spec): Move usage to end of docstring.
7931
174f1c74
JR
79322008-12-10 Jason Rumney <jasonr@gnu.org>
7933
7934 * w32font.c (Qcham): New symbol.
7935 (font_supported_scripts): Add cham, and comments for other new
7936 scripts in bitfield from OpenType spec.
9d32f818
JR
7937 (add_font_entity_to_list): Limit unicode-sip fonts to those that
7938 contain characters beyond the bmp.
174f1c74 7939
7b649478
KH
79402008-12-10 Kenichi Handa <handa@m17n.org>
7941
7942 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 7943 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
7944 Qunicode_sip.
7945
2133e2d1
JB
79462008-12-10 Juanma Barranquero <lekktu@gmail.com>
7947
7948 * coding.c (QCdefault_char): Rename from QCdefalut_char.
7949 (Fcoding_system_put): Use QCdefault_char.
7950 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
7951
9af886ee
CY
79522008-12-09 Chong Yidong <cyd@stupidchicken.com>
7953
74d819eb
CY
7954 * xftfont.c (syms_of_xftfont): Fix typo.
7955
4ccfa1c0 7956 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 7957
7c19d3ae
DN
79582008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
7959
7960 * emacs.c (main): Close daemon_pipe on exec.
7961
567826bb
CY
79622008-12-08 Chong Yidong <cyd@stupidchicken.com>
7963
7964 * termchar.h (struct tty): New members termcap_term_buffer and
7965 termcap_strings_buffer.
7966
7967 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 7968 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
7969 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
7970 All callers changed.
7971 (init_tty): Store termcap data and string buffers in new struct
7972 tty members termcap_term_buffer and termcap_strings_buffer.
7973 (delete_tty): Free them.
4ccfa1c0 7974 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 7975
aa96c42b
SZ
79762008-12-07 Seiji Zenitani <zenitani@mac.com>
7977
7978 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 7979 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 7980
b7e1d896
CY
79812008-12-06 Chong Yidong <cyd@stupidchicken.com>
7982
7983 * coding.c (make_conversion_work_buffer): Disable buffer
7984 modification hooks in the work buffer.
7985
b5ec91a5
EZ
79862008-12-05 Eli Zaretskii <eliz@gnu.org>
7987
7988 * process.c (procfs_system_process_attributes): If `nread' has a
7989 negative value, assign zero to it.
7990
a5d2a52b
CY
79912008-12-05 Chong Yidong <cyd@stupidchicken.com>
7992
68c5540b 7993 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 7994
7bf1bb21
KH
79952008-12-05 Kenichi Handa <handa@m17n.org>
7996
7997 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
7998 second character is a combining character.
7999
2fdc7d00
EZ
80002008-12-05 Eli Zaretskii <eliz@gnu.org>
8001
8002 * process.c (procfs_system_process_attributes): Don't use cmd,
8003 cmdsize, and q without initializing them first.
8004
bf6bfba8
JR
80052008-12-04 Jason Rumney <jasonr@gnu.org>
8006
8007 * w32font.c (w32font_draw): Initialize orig_clip before getting
8008 it, and delete it when finished.
8009
a3b1a468
DN
80102008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
8011
8012 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
8013 case when running as a daemon before detaching.
8014
8b8be8eb
JB
80152008-12-03 Juanma Barranquero <lekktu@gmail.com>
8016
805f2638 8017 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 8018
b1bde622
KH
80192008-12-03 Kenichi Handa <handa@m17n.org>
8020
e500c47d
KH
8021 * font.c (font_at): Set `multibyte' at first.
8022
ca516334
KH
8023 * coding.c (decode_coding_charset): Check type of an element of
8024 vector VALIDS.
7bf1bb21 8025 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 8026
4ccfa1c0 8027 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
8028 (font_for_char): Likewise.
8029
1e5ecd37
CY
80302008-12-03 Chong Yidong <cyd@stupidchicken.com>
8031
d5b01609 8032 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
8033 (font_update_lface): Handle fonts with corrupted size specs,
8034 i.e. non-int and non-float.
d5b01609 8035
11e3a6e4 8036 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 8037 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 8038 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 8039
ab06788b
CY
8040 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
8041
1e5ecd37 8042 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 8043 underline_minimum_offset for underline position.
1e5ecd37 8044
63c125ab
DN
80452008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
8046
8047 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
8048
8049 * character.c (c_string_width): Specify the type for LEN.
8050
3a8406e1
KH
80512008-12-03 Kenichi Handa <handa@m17n.org>
8052
4ccfa1c0 8053 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 8054 (decode_coding_utf_8): Likewise.
4ccfa1c0 8055 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 8056 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 8057
651df7d9
CY
80582008-12-02 Chong Yidong <cyd@stupidchicken.com>
8059
8060 * keyboard.c (make_lispy_position): Only use PT if the selected
8061 window is current.
8062
1f625c6c
AS
80632008-12-02 Andreas Schwab <schwab@suse.de>
8064
f7741ce9
AS
8065 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
8066
1f625c6c
AS
8067 * doprnt.c (doprnt1): Fix size of charbuf.
8068
92bc2678
CY
80692008-12-02 Chong Yidong <cyd@stupidchicken.com>
8070
8071 * keyboard.c (timer_check): Revert last change.
8072
93b9e8cc
JB
80732008-12-02 Juanma Barranquero <lekktu@gmail.com>
8074
8075 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
8076
fd7a37d5
JB
80772008-12-01 Juanma Barranquero <lekktu@gmail.com>
8078
8079 * makefile.w32-in: Update dependencies.
8080 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
8081
c115043b
AS
80822008-12-01 Andreas Schwab <schwab@suse.de>
8083
8084 * font.c (register_font_driver): Use xmalloc.
8085 (font_put_frame_data): Likewise.
8086
f5668d2a
CY
80872008-12-01 Chong Yidong <cyd@stupidchicken.com>
8088
860d96be
CY
8089 * xfaces.c (realize_x_face): Make abort condition clearer.
8090
f5668d2a
CY
8091 * gtkutil.c (update_frame_tool_bar): Initialize variable.
8092
379c17e7
CY
80932008-11-30 Chong Yidong <cyd@stupidchicken.com>
8094
8095 * keyboard.c (timer_check): After a timer runs, ensure that the
8096 selected window's buffer is current.
8097
35f36d65
JB
80982008-11-30 Juanma Barranquero <lekktu@gmail.com>
8099
f952c61c
JB
8100 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
8101 It was accidentally restored by the Unicode merge.
8102
35f36d65
JB
8103 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
8104
b23077df
JB
81052008-11-29 Juanma Barranquero <lekktu@gmail.com>
8106
8107 * w32proc.c: Include "coding.h".
8108 (Fw32_short_file_name): Encode filename passed to Windows API.
8109 (Fw32_long_file_name): Encode filename passed to Windows API and
8110 decode back the result. (Bug#1433)
8111
b8ebe9dd
KH
81122008-11-29 Kenichi Handa <handa@m17n.org>
8113
8cc53f96
KH
8114 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
8115 not before accessing it.
8116
b8ebe9dd
KH
8117 * charset.c (Fdefine_charset_internal): After calculating
8118 min_char, max_char, and fastmap, copy the charset structure again.
8119 (encode_char): Fix the previous change.
8120
59bc82c0
SZ
81212008-11-28 Seiji Zenitani <zenitani@mac.com>
8122
8123 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
8124
8125 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
8126
8127 * nsterm.m (x_set_frame_alpha): New function.
8128
32247e3d
EZ
81292008-11-27 Eli Zaretskii <eliz@gnu.org>
8130
8131 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
8132
b003e5ff
JB
81332008-11-27 Juanma Barranquero <lekktu@gmail.com>
8134
8135 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
8136 pointer to check_face_name.
8137
708550f5
KH
81382008-11-27 Kenichi Handa <handa@m17n.org>
8139
8140 * category.h (SET_CATEGORY_SET): Call set_category_set.
8141 (set_category_set): Extern it.
8142
8143 * category.c (hash_get_category_set): New function.
8144 (Fmodify_category_entry): Adjusted for the change of
8145 char_table_ref_and_range. Call hash_get_category_set to get a
8146 category set to store in the table.
8147
8148 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
8149 Funify_charset.
8150
2ae37cf0 8151 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
8152 (DECODE_CHAR): Check if the decoder vector is ready.
8153 (ENCODE_CHAR): Check if the encoder char-table is ready.
8154 (maybe_unify_char): Extern it.
8155
8156 * charset.c (Vchar_unified_charset_table): Delete it.
8157 (inhibit_load_charset_map): New variable.
8158 (temp_charset_work): New variable.
8159 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
8160 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
8161 New macros.
8162 (load_charset_map): Meaning of control_flag changed. If
8163 inhibit_load_charset_map is nonzero, setup a table in
8164 temp_charset_work.
8165 (load_charset): New argument control_flag.
8166 (map_charset_for_dump): New function.
8167 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
8168 map_charset_for_dump.
8169 (Fdefine_charset_internal): If the charset method is MAP, load
8170 mapping tables by calling load_charset.
8171 (Funify_charset): Don't load a mapping table but directly set
8172 Vchar_unify_table.
8173 (maybe_unify_char): New function.
8174 (decode_char): Don't handle the deleted method MAP_DEFERRED.
8175 Handle the case of inhibit_load_charset_map being nonzero.
8176 (encode_char): Don't handle the deleted method MAP_DEFERRED.
8177 Handle the case of inhibit_load_charset_map being nonzero.
8178 (Fclear_charset_maps): Just free temp_charset_work.
8179 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
8180 variable.
8181
8182 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
8183 change of char_table_ref_and_range.
8184 (char_table_ref_and_range): Change the meaning of argument FROM
8185 and TO. Now the caller must provide initial values for *FROM
8186 and *TO.
8187
8188 * fontset.c (fontset_add): Adjusted for the change of
8189 char_table_ref_and_range.
8190 (fontset_get_font_group): Likewise.
8191 (Ffontset_info): Likewise.
8192
8193 * keymap.c (describe_vector): Adjusted for the change of
8194 char_table_ref_and_range. For char-table, put boundary between
8195 non-ASCII and 8-bit characters.
8196
8197 * print.c (print_object): For bool-vector, delete unnecessary
8198 check of ASCII_BYTE_P.
8199
9196133b
JR
82002008-11-26 Jason Rumney <jasonr@gnu.org>
8201
8202 * w32font.c (w32font_open_internal): Don't include external
9acef61c 8203 leading in font height. (Bug#879)
9196133b 8204
9f688acf
GM
82052008-11-26 Glenn Morris <rgm@gnu.org>
8206
8207 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
8208 redefinition with ifdef. (Bug#1383)
8209
90d19aff
AR
82102008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8211
8212 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
8213
4ccfa1c0 82142008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
8215
8216 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
8217 New EmacsView methods.
8218 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
8219 Fixes bug #1048,1357,1414.
8220
82212008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8222
8223 Fix bug #1362.
8224 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
8225 is not an indexed color.
8226 * nsterm.m (free_indexed_color): Add argument checking.
8227 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
8228
e7d5ecb3
CY
82292008-11-24 Chong Yidong <cyd@stupidchicken.com>
8230
8231 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
8232 Document confirm-after-completion value for
8233 minibuffer-completion-confirm.
8234
c285743c
JR
82352008-11-24 Jason Rumney <jasonr@gnu.org>
8236
8237 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
8238 warning.
8239
b0857706
JR
82402008-11-23 Jason Rumney <jasonr@gnu.org>
8241
8242 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
8243 restored before returning.
8244
8245 * w32font.c (check_face_name): New function.
8246 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 8247 fonts. (Bug#642)
b0857706 8248
ee50ff07
MR
82492008-11-22 Martin Rudalics <rudalics@gmx.at>
8250
8251 * buffer.c (Fswitch_to_buffer): Reword and mention new option
8252 confirm-nonexistent-file-or-buffer in doc-string.
8253
b8ff72fa
SM
82542008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
8255
8256 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
8257 Fix copy/paste typo. Add checks.
8258
cee53ed4
KH
82592008-11-21 Kenichi Handa <handa@m17n.org>
8260
8261 * coding.c (detect_coding_iso_2022): Reject invalid composition
8262 sequence.
8263 (DECODE_COMPOSITION_START): If the current source is the last
8264 block, and the current composition doesn't end, regard this
8265 sequence as invalid.
8266 (decode_coding_iso_2022): Handle invalid composition sequence.
8267
f6ef1e65
MR
82682008-11-20 Martin Rudalics <rudalics@gmx.at>
8269
8270 * window.c (coordinates_in_window): Don't return
8271 ON_VERTICAL_BORDER for the rightmost position of a mode/header
8272 line when the window is not the rightmost one. (Bug#1372)
8273
e08b1705
MR
82742008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
8275
8276 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
8277
ad98e89f
EZ
82782008-11-15 Eli Zaretskii <eliz@gnu.org>
8279
8280 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
8281 and bright_bg if noninteractive is non-zero.
8282
fb098a4b
CY
82832008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8284
8285 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
8286 x_draw_glyph_string_background.
8287
8288 * w32term.c (x_draw_glyph_string): Likewise.
8289
ce952b6e
CY
82902008-11-15 Chong Yidong <cyd@stupidchicken.com>
8291
8292 * xterm.c (x_draw_glyph_string): Stop drawing the background of
8293 the next glyph string once past the overhang width.
8294
8295 * nsterm.m (ns_draw_glyph_string): Likewise.
8296
8297 * w32term.c (x_draw_glyph_string): Likewise.
8298
26ea7079
CY
82992008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
8300
8301 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
8302 double file close.
8303
1c33c906
MR
83042008-11-14 Martin Rudalics <rudalics@gmx.at>
8305
8306 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
8307 dedicated status of window before attempting to display another
8308 buffer in it.
8309
8fc29035
JB
83102008-11-14 Juanma Barranquero <lekktu@gmail.com>
8311
8312 * msdos.c (Fmsdos_long_file_names):
8313 (syms_of_msdos) <dos-unsupported-char-glyph>:
8314 * dosfns.c (Fint86): Fix typos in docstrings.
8315
55fb4286
EZ
83162008-11-14 Eli Zaretskii <eliz@gnu.org>
8317
8318 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
8319
3fda0315
KY
83202008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
8321
8322 * puresize.h (BASE_PURESIZE): Increase to 1260000.
8323
7e849c17
CY
83242008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
8325
8326 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
8327
8328 * frame.h: Negative alpha means "don't touch".
8329
8330 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
8331
8332 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
8333
b9fd67bd
DN
83342008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
8335
8336 * hftctl.c:
8337 * chpdef.h:
8338 * acldef.h: Remove files used only for systems no longer supported.
8339
8340 * Makefile.in: Fix .o alphabetical ordering.
8341 (hftctl.o): Remove dependency, file removed.
8342 (keymap.o, print.o): Depend on charset.h.
8343
d5998e03
KH
83442008-11-10 Kenichi Handa <handa@m17n.org>
8345
2ae37cf0 8346 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 8347
be70e183
CY
83482008-11-08 Chong Yidong <cyd@stupidchicken.com>
8349
8350 * dired.c (file_name_completion): If completion_ignore_case is
8351 enabled, ignore case when checking completion-regexp-list.
8352
7cf94eac
EZ
83532008-11-08 Eli Zaretskii <eliz@gnu.org>
8354
8355 * vm-limit.c (get_lim_data): Fix last change.
8356
ee107a89
KH
83572008-11-08 Kenichi Handa <handa@m17n.org>
8358
8359 * character.c (Fget_byte): New function.
8360 (syms_of_character): Defsubr Fget_byte.
8361
5fd15622
CY
83622008-11-07 Chong Yidong <cyd@stupidchicken.com>
8363
8364 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
8365 cursor position is valid after scrolling.
8366
13d62fad
JB
83672008-11-06 Juanma Barranquero <lekktu@gmail.com>
8368
8369 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
8370
a1dd2936
GM
83712008-11-06 Glenn Morris <rgm@gnu.org>
8372
8373 * xterm.c (handle_one_xevent): Don't let popup menus cause
8374 mouse-autoselect-window related window switching. (Bug#1261)
8375
860cd236
CY
83762008-11-04 David Smith <davidsmith@acm.org> (tiny change)
8377
8378 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
8379
653a3150
AS
83802008-11-04 Andreas Schwab <schwab@suse.de>
8381
8382 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
8383
870f5cac
CY
83842008-11-03 Chong Yidong <cyd@stupidchicken.com>
8385
8386 * xfns.c (Fx_wm_set_size_hint): New function.
8387
1e02f3cb
MR
83882008-11-03 Martin Rudalics <rudalics@gmx.at>
8389
8390 * textprop.c (Fprevious_single_char_property_change): Return 0
8391 when there's no change in a string. (Bug#1301)
8392
e630dfc6
MR
83932008-11-02 Martin Rudalics <rudalics@gmx.at>
8394
8395 * frame.c (do_switch_frame): New argument NORECORD passed to
8396 Fselect_window.
8397 (Fselect_frame): New argument NORECORD passed to
8398 do_switch_frame.
8399 (Fset_frame_selected_window): New argument NORECORD passed to
8400 Fselect_frame.
8401 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
8402 in call of do_switch_frame.
8403 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
8404 Handle NORECORD argument in call of Fselect_frame.
8405 * lisp.h (do_switch_frame, Fselect_frame)
8406 (Fset_frame_selected_window): Adjust declarations.
8407 * window.c (select_frame_norecord): New function.
8408 (run_window_configuration_change_hook): Use it and call
8409 Fselect_frame with NORECORD set.
8410 (Fselect_window): Pass NORECORD to Fselect_frame.
8411 (Fset_window_configuration): Handle NORECORD argument in call of
8412 do_switch_frame.
8413 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
8414 Fset_frame_selected_window.
8415 * keyboard.c (command_loop_1): Handle NORECORD in call of
8416 Fselect_frame (currently ifdefd).
8417
9020b223
GM
84182008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
8419
8420 * emacs.c (USAGE2): Untabify.
8421
793ffee8
SM
84222008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
8423
8424 * composite.c (fill_gstring_header): Fix copy/paste typo.
8425
ab6d1131
MR
84262008-10-31 Martin Rudalics <rudalics@gmx.at>
8427
8428 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
8429 (Fother_window): Rename argument and rewrite doc-string.
8430 (select_window_norecord): Fix return value. (Bug#1276)
8431
601a9cf1
JB
84322008-10-30 Juanma Barranquero <lekktu@gmail.com>
8433
8434 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
8435 new frames overriding foreground for tooltips. Based on similar patch
8436 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
8437
813b0652
CY
84382008-10-29 Chong Yidong <cyd@stupidchicken.com>
8439
8440 * emacs.c (Fdaemon_initialized): Initialize nfd.
8441
4414f58f
MR
84422008-10-29 Martin Rudalics <rudalics@gmx.at>
8443
8444 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
8445 (Fwindow_text_height): Clarify doc-strings.
8446 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
8447 doc-string of window-scroll-functions.
8448
ecdcaa09
RS
84492008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
8450
8451 * category.c (syms_of_category): Fix typo in docstring.
8452
23fe745a
JB
84532008-10-28 Juanma Barranquero <lekktu@gmail.com>
8454
8455 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
8456 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
8457 Fix typos in docstrings.
8458
ff808935
DN
84592008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
8460
8461 * emacs.c (daemon_pipe): Make non-static.
8462 (IS_DAEMON): Move definition ...
8463 * lisp.h (IS_DAEMON): ... here.
8464 (daemon_pipe): Declare.
8465 (is_daemon): Remove.
8466 * dispnew.c (init_display): Use IS_DAEMON.
8467
fc012771
SM
84682008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
8469
8470 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
8471 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
8472
8473 * emacs.c (is_daemon): Remove.
8474 (main): Don't set is_daemon.
8475 (IS_DAEMON): New macro.
8476 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 8477 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
8478 parent exits.
8479 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
8480
d8bdbe6f
CY
84812008-10-27 Chong Yidong <cyd@stupidchicken.com>
8482
d1a072bf
CY
8483 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
8484 over-sized glyph, draw it with the default glyph width.
8485
e2e325aa
CY
8486 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
8487 glyph, draw it with the default glyph width.
8488
8489 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
8490 glyph, draw it with the default glyph width.
8491
d8bdbe6f
CY
8492 * xdisp.c (try_scrolling): When computing the distance from the
8493 scroll margin to PT, try moving some distance past the window
8494 bottom before giving up.
8495
7bfac547
MR
84962008-10-27 Martin Rudalics <rudalics@gmx.at>
8497
8498 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
8499 (Fset_window_buffer): Explain in doc-string that a window can be
8500 "strongly" dedicated to its buffer.
8501
4ff029f6
DN
85022008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
8503
8504 * emacs.c (daemon_name): New variable.
8505 (main): Deal with --daemon=SERVER_NAME.
8506 (Fdaemonp): Return a name if one was passed to --daemon.
8507
5790ef40
DN
85082008-10-26 Romain Francoise <romain@orebokech.com>
8509
f9bd0df9 8510 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
8511 (main): Create a pipe before forking, make the parent exit only after
8512 the child has closed its end of the pipe. Move closing the
8513 descriptors ...
8514 (Fdaemon_initialized): ... here. New function.
8515
f5385255
SM
85162008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
8517
4d632321
SM
8518 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
8519 the previous unoptimized table.
8520
f5385255
SM
8521 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
8522 the distinction between non-nil and non-t value of `dedicated'.
8523
6c56a0f3
CY
85242008-10-25 Chong Yidong <cyd@stupidchicken.com>
8525
8526 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 8527 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 8528
fec89261
MR
85292008-10-25 Martin Rudalics <rudalics@gmx.at>
8530
8531 * window.c (Fget_buffer_window, Fdelete_windows_on)
8532 (Freplace_buffer_in_windows): Make buffer argument optional and
8533 rename to buffer_or_name.
8534
34fcddd0
CY
85352008-10-24 Chong Yidong <cyd@stupidchicken.com>
8536
f5385255
SM
8537 * xdisp.c (handle_single_display_spec, handle_display_prop):
8538 Undo 2005-05-16 change.
34fcddd0
CY
8539 (handle_stop): Pop iterator if it's loaded with an empty string.
8540 (get_overlay_strings_1): Don't save iterator if it's loaded with
8541 an empty string (bug#1201).
8542
064766f2
KH
85432008-10-24 Kenichi Handa <handa@m17n.org>
8544
8545 * ftfont.c (ftfont_otf_features): Fix previous change.
8546 (ftfont_otf_capability): Check FeatureList.FeatureCount before
8547 calling ftfont_otf_features.
8548
f9bd0df9 85492008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
8550
8551 * font.c (font_match_p): Fix for the case that a vector of
8552 characters is in script-representative-chars.
8553
1dae9197
MA
85542008-10-24 Michael Albinus <michael.albinus@gmx.de>
8555
8556 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 8557 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
8558 (xd_read_queued_messages): Catch Qdbus_error from the macros.
8559 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 8560 macro. (Bug#1186)
1dae9197 8561
f9bd0df9 85622008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
8563
8564 * s/sol2-10.h: New file.
8565
878a4584
JB
85662008-10-23 Juanma Barranquero <lekktu@gmail.com>
8567
8568 * xdisp.c (fill_glyph_string): Fix typo in source (though the
8569 poor beast has survived 9+ years and the jump from xterm.c!).
8570
cd265ca6
MR
85712008-10-23 Martin Rudalics <rudalics@gmx.at>
8572
8573 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
8574 Reword doc-string.
f5385255 8575 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 8576
472a4dc9
JB
85772008-10-23 Juanma Barranquero <lekktu@gmail.com>
8578
8579 * character.c (syms_of_character) <script-representative-chars>:
8580 <unicode-category-table>: Doc fixes.
8581
159bd5a2
NF
85822008-10-23 Noah Friedman <friedman@splode.com>
8583
8584 * coding.c (make_conversion_work_buffer): Check that
8585 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
8586 Fget_buffer_create.
8587
49f9c344
KH
85882008-10-23 Kenichi Handa <handa@m17n.org>
8589
8590 * font.c (font_add_log): Check the values of extra properties.
8591
12bb3111
MR
85922008-10-22 Martin Rudalics <rudalics@gmx.at>
8593
8594 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
8595 Reword doc-string.
8596 (Fset_window_parameter): Use NILP.
8597 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 8598 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 8599
bbeb4e99
JB
86002008-10-22 Juanma Barranquero <lekktu@gmail.com>
8601
8602 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
8603
86042008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
8605
8606 * nsfns.m (ns_appkit_version): New function.
8607 (x-server-version): Use it.
8608 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
8609 (x-server-vendor): Don't check_ns().
8610
8611 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
8612
a9b555d3
JB
86132008-10-22 Juanma Barranquero <lekktu@gmail.com>
8614
8615 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
8616 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
8617
4626499f
KH
86182008-10-22 Kenichi Handa <handa@m17n.org>
8619
e3681952
KH
8620 * syntax.c (scan_words): Call word_boundary_p instead of comparing
8621 scripts.
8622
4626499f
KH
8623 * category.c (word_boundary_p): Check scripts instead of charset.
8624 Handle nil value in word-separating-categories and
8625 word-combining-categories.
8626 (syms_of_category): Fix docstrings of word-separating-categories
8627 and word-combining-categories.
8628
1560f91a
EZ
86292008-10-21 Eli Zaretskii <eliz@gnu.org>
8630
8631 * coding.c (Fencode_coding_region, Fdecode_coding_region)
8632 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
8633
f4668441
MR
86342008-10-21 Martin Rudalics <rudalics@gmx.at>
8635
8636 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
8637 Rename arg "buffer" to "buffer_or_name".
8638 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
8639 it optional.
8640 (no_switch_window): Remove since the return value is not used.
a9b555d3 8641 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
8642 Consider window as dedicated when Fwindow_dedicated_p returns a
8643 non-nil value.
8644 * lisp.h: Remove prototype for no_switch_window.
8645
fd75ddb2
JD
86462008-10-21 Jan Djärv <jan.h.d@swipnet.se>
8647
8648 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 8649 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 8650
07295713
KH
86512008-10-21 Kenichi Handa <handa@m17n.org>
8652
8653 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
8654 check Vlatin_extra_code_table.
8655
712adc82
EZ
86562008-10-20 Eli Zaretskii <eliz@gnu.org>
8657
8658 * fileio.c (Fset_file_modes): Doc fix.
8659
f549eb0b
MA
86602008-10-19 Michael Albinus <michael.albinus@gmx.de>
8661
8662 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
8663 in arrays.
8664
aac0c6e3
MR
86652008-10-19 Martin Rudalics <rudalics@gmx.at>
8666
8667 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
8668 Mention kill-buffer in doc-string.
8669 (Fset_window_buffer): Reinsert tem check removed in last commit.
8670 (Fenlarge_window, Fshrink_window): Have argument names and
8671 doc-string follow Elisp manual more closely.
8672
86732008-10-18 Eli Zaretskii <eliz@gnu.org>
8674
8675 * fileio.c (Fset_file_modes): Doc fix.
8676
86772008-10-18 Martin Rudalics <rudalics@gmx.at>
8678
8679 * window.c (Fwindow_width, Fset_window_start)
8680 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
8681 (Fdelete_windows_on, Freplace_buffer_in_windows):
8682 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
8683 (Fwindow_dedicated_p): Make window argument optional.
8684 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
8685 (Fset_window_buffer): Respect any non-nil dedicated value for
8686 window. Rename "buffer" argument to "buffer_or_name".
8687
86882008-10-18 Ulrich Mueller <ulm@gentoo.org>
8689
8690 * m/sh3.h: New file, machine description for SuperH.
8691
86922008-10-17 Martin Rudalics <rudalics@gmx.at>
8693
8694 * window.c (Fsplit_window): Rename arg horflag to horizontal.
8695
86962008-10-17 Kenichi Handa <handa@m17n.org>
8697
8698 * ftfont.c (ftfont_otf_features): Fix indexing
8699 gsub_gpos->FeatureList.Feature. Check the validity of indices.
8700
87012008-10-16 Magnus Henoch <mange@freemail.hu>
8702
8703 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
8704 (Fdbus_call_method_asynchronously): Ditto.
8705 This change makes C-h f display the argument list.
8706
87072008-10-16 Chong Yidong <cyd@stupidchicken.com>
8708
8709 * fileio.c (Fexpand_file_name): Doc fix.
8710
8711 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
8712 of :foreground and :background equivalent to unspecified (20.x
8713 compatibility).
8714
87152008-10-15 Eli Zaretskii <eliz@gnu.org>
8716
8717 * buffer.c (syms_of_buffer): Doc fix.
8718
87192008-10-14 Kenichi Handa <handa@m17n.org>
8720
8721 * font.c (font_clear_prop): When clearing font width, clear the
8722 average width field too.
8723
87242008-10-12 Andreas Schwab <schwab@suse.de>
8725
8726 * ftfont.c (ftfont_shape_by_flt): Make static.
8727 * ftfont.h (ftfont_shape_by_flt): Don't declare.
8728
8729 * font.c: Don't include <m17n-flt.h>.
8730
87312008-10-10 Eli Zaretskii <eliz@gnu.org>
8732
8733 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
8734
87352008-10-09 Eli Zaretskii <eliz@gnu.org>
8736
8737 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
8738 away code.
8739
87402008-10-09 Chong Yidong <cyd@stupidchicken.com>
8741
8742 * dispnew.c (update_text_area): Avoid looping due to large glyph
8743 overhangs (bug#1070).
8744
87452008-10-09 Kenichi Handa <handa@m17n.org>
8746
8747 * fontset.c (face_for_char): If face->fontset is negative, just
8748 return ascii_face.
8749
f5385255
SM
8750 * font.c (font_delete_unmatched): Fix previous change.
8751 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
8752
87532008-10-09 Martin Rudalics <rudalics@gmx.at>
8754
8755 * frame.c (Fraise_frame): On text-only terminals select frame in
8756 order to make it visible. (Bug#1061)
8757
87582008-10-08 Chong Yidong <cyd@stupidchicken.com>
8759
8760 * fontset.c (fontset_find_font): Check frame validity.
8761
87622008-10-07 Chong Yidong <cyd@stupidchicken.com>
8763
a9b555d3 8764 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
8765 (xg_display_close): Allow Emacs to close all displays (bug#985).
8766
87672008-10-06 Andreas Schwab <schwab@suse.de>
8768
f5385255 8769 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
8770
87712008-10-06 Chong Yidong <cyd@stupidchicken.com>
8772
f5385255 8773 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 8774
a9b555d3 8775 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
8776
8777 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
8778 during initialization.
8779
87802008-10-04 Eli Zaretskii <eliz@gnu.org>
8781
8782 * xdisp.c (redisplay_internal): If frame switched, redisplay the
8783 whole thing on MSDOS frames as well as on a TTY.
8784
8785 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
8786 well as for TTY.
8787 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
8788 well as on a TTY.
8789
8790 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
8791 as well as for TTY.
8792
8793 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
8794
8795 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
8796 MSDOS frames as well.
8797
87982008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8799
8800 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
8801 correct arguments.
b71ac3dd 8802 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
8803
88042008-10-03 Glenn Morris <rgm@gnu.org>
8805
8806 * emacs.c (USAGE1): Add --daemon.
8807
88082008-10-02 Eli Zaretskii <eliz@gnu.org>
8809
8810 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
8811 100, so it's in percents as advertised.
8812
88132008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8814
8815 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
8816 (ns_output.current_cursor, ns_output.desired_cursor)
8817 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
8818 (FRAME_NEW_CURSOR_COLOR): Remove.
8819
8820 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 8821 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
8822 enumeration (HOLLOW_BOX_CURSOR, etc.).
8823
8824 * nsterm.m (ns_frame_rehighlight): Remove commented code.
8825 (draw_window_cursor): Simplify code.
f5385255
SM
8826 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
8827 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 8828 updates manually.
a9b555d3
JB
8829 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
8830 Use core Emacs cursor types.
aac0c6e3 8831
b8ff72fa 8832 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
8833
88342008-10-02 Martin Rudalics <rudalics@gmx.at>
8835
8836 * process.c (Faccept_process_output): Fix doc-string.
8837
88382008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
8839
8840 * gmalloc.c (__sbrk): Also define for uClibc.
8841
8842 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
8843 for uClibc.
8844
88452008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8846
8847 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
8848 styles.
8849 (nsfont_open): Reenable the cache.
8850
88512008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8852
8853 * font.c (font_matching_entity): Reflect ATTRS in font selection.
8854 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
8855
88562008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
8857
8858 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
8859 a suspended terminal.
8860
88612008-09-30 Michael Albinus <michael.albinus@gmx.de>
8862
8863 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
8864
88652008-09-30 Eli Zaretskii <eliz@gnu.org>
8866
8867 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
8868
88692008-09-30 Chong Yidong <cyd@stupidchicken.com>
8870
8871 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
8872 in a continued line coincides with a line beginning.
8873
88742008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8875
8876 * nsfont.m (nsfont_trait_distance): Fix bug.
8877 (nsfont_list): Return a list rather than a vector (syncs with Handa
8878 changes of 2008-05-14).
8879 (nsfont_open): Improve logging.
8880
88812008-09-29 Andreas Schwab <schwab@suse.de>
8882
8883 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
8884
88852008-09-28 Martin Rudalics <rudalics@gmx.at>
8886
8887 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
8888 name as char-resolve-modifiers.
8889 Reported by: Markus Triska <markus.triska@gmx.at>
8890
88912008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
8892
8893 * dispnew.c (init_display): Return earlier when running as a daemon.
8894
88952008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8896
8897 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
8898
88992008-09-27 Eli Zaretskii <eliz@gnu.org>
8900
8901 * composite.c (Fcomposition_get_gstring)
8902 (Fcompose_region_internal, Fcompose_string_internal)
8903 (Ffind_composition_internal): Doc fix.
8904 (syms_of_composite) <compose-chars-after-function>: Doc fix.
8905 (syms_of_composite) <auto-composition-function>: Doc fix.
8906 (syms_of_composite) <composition-function-table>: Doc fix.
8907
89082008-09-25 Chong Yidong <cyd@stupidchicken.com>
8909
8910 * search.c (wordify): New argument for lax word-ends.
8911 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
8912
89132008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
8914
8915 * lisp.h (is_daemon): Declare.
8916 * dispnew.c (init_display): Do not try to initialize the terminal
8917 when running as a daemon.
8918
89192008-09-22 Chong Yidong <cyd@stupidchicken.com>
8920
8921 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
8922 x_display_pixel_height.
8923
89242008-09-22 Martin Rudalics <rudalics@gmx.at>
8925
8926 * undo.c (record_point): Don't call Fundo_boundary for first
8927 change. (Bug#731)
8928
89292008-09-22 Juanma Barranquero <lekktu@gmail.com>
8930
8931 * emacs.c (Fdaemonp): Doc fix.
8932
89332008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
8934
8935 * emacs.c (main): Place #ifdef in the proper place.
8936
89372008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
8938
8939 * emacs.c (standard_args): Add --daemon.
8940 (main): Disconnect from the terminal when --daemon is passed.
8941 (is_daemon): New variable.
8942 (Fdaemonp): New function.
8943 (syms_of_emacs): Defsubr it.
8944
89452008-09-20 Chong Yidong <cyd@stupidchicken.com>
8946
8947 * xdisp.c (get_next_display_element): Handle string display
8948 correctly when checking for the end of a box run.
8949
89502008-09-20 Glenn Morris <rgm@gnu.org>
8951
8952 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
8953 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
8954 (Frename_file): Avoid copying to trash if a rename involves
8955 a delete. (Bug#964).
8956
89572008-09-20 Eli Zaretskii <eliz@gnu.org>
8958
8959 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
8960 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
8961 frames as well as termcap frames.
8962 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
8963 get_named_tty.
8964
89652008-09-19 Eli Zaretskii <eliz@gnu.org>
8966
8967 * process.c (procfs_system_process_attributes): Fix cmdline in
8968 case /proc/PID/cmdline is empty.
8969
8970 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
8971 x_display_pixel_height.
8972
89732008-09-19 Juanma Barranquero <lekktu@gmail.com>
8974
8975 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
8976
8977 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
8978 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
8979
89802008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
8981
8982 * dispextern.h (struct it): Move line_wrap away from the middle of
8983 bitfields. Move voffset in struct iterator_stack_entry after the
8984 bitfields. Move tab_width near after another short.
8985
89862008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
8987
8988 * frame.h (struct frame): Move alpha from the middle of bitfields.
8989
8990 * window.h (struct window): Move frozen_window_start_p after the
8991 rest of the bitfields to reduce padding.
8992
89932008-09-18 Chong Yidong <cyd@stupidchicken.com>
8994
8995 * xterm.h (x_display_info): Remove `height' and `width' members.
8996
8997 * nsterm.h (ns_display_info): Remove `height' and `width' members.
8998
8999 * w32term.h (w32_display_info): Remove `height', `width',
9000 `height_in', and `width_in' members.
9001
b8ff72fa
SM
9002 * xterm.c (x_display_pixel_height, x_display_pixel_width):
9003 New functions.
aac0c6e3
MR
9004 (x_calc_absolute_position): Use them.
9005 (x_term_init): Omit removed `height' and `width' members.
9006
b8ff72fa
SM
9007 * w32term.c (x_display_pixel_height, x_display_pixel_width):
9008 New functions.
aac0c6e3
MR
9009 (w32_read_socket, x_calc_absolute_position): Use them.
9010 (w32_initialize_display_info, w32_term_init): Omit removed members
9011 of w32_display_info.
9012
b8ff72fa
SM
9013 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
9014 New functions.
9015 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 9016
b8ff72fa
SM
9017 * xterm.c (x_display_pixel_height, x_display_pixel_width):
9018 New functions.
aac0c6e3
MR
9019 (x_calc_absolute_position): Use them.
9020 (x_term_init): Omit removed `height' and `width' members.
9021
9022 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
9023 (compute_tip_xy):
9024 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
9025 * xmenu.c (menu_position_func): Use x_display_pixel_height and
9026 x_display_pixel_width.
9027
90282008-09-18 Kenichi Handa <handa@m17n.org>
9029
9030 * composite.c (fill_gstring_header): Don't check FROM and TO here.
9031 (composition_compute_stop_pos): Fix handling of static composition.
9032 (Fcomposition_get_gstring): Check FROM and TO at first.
9033
90342008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
9035
46e722a9 9036 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
9037 mixup (YAILOM).
9038
90392008-09-17 Chong Yidong <cyd@stupidchicken.com>
9040
9041 * indent.c (Fvertical_motion): Use position reported by iterator
9042 instead of PT for determining screen motion (bug#943).
9043
90442008-09-17 Romain Francoise <romain@orebokech.com>
9045
9046 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
9047
90482008-09-17 Kenichi Handa <handa@m17n.org>
9049
9050 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
9051
9052 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
9053 if necessary.
9054
90552008-09-16 Kenichi Handa <handa@m17n.org>
9056
9057 * coding.c (make_conversion_work_buffer): Avoid calling
9058 Fget_buffer_create if it is not necessary.
9059
90602008-09-15 Martin Rudalics <rudalics@gmx.at>
9061
9062 * window.c (Fselect_window): Don't update window_select_count and
9063 use_time when norecord is not nil.
9064
90652008-09-14 Kenichi Handa <handa@m17n.org>
9066
9067 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
9068 specpdl_ptr.
9069
90702008-09-12 Kenichi Handa <handa@m17n.org>
9071
9072 * indent.c (scan_for_column): Don't handle automatic composition
9073 if the current buffer is not associated with a window.
9074
9075 * composite.c (composition_reseat_it): If the current buffer is
9076 not associated with a window, ignore the automatic composition.
9077 (find_automatic_composition): Likewise.
9078
90792008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
9080
9081 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
9082 (Fgpm_mouse_stop): Use it.
9083 * termhooks.h (close_gpm): Declare.
9084 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
9085 connection if Gpm_GetEvent fails.
9086
9087 * window.c (set_window_buffer): Always preserve current-buffer.
9088
90892008-09-12 Glenn Morris <rgm@gnu.org>
9090
9091 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
9092
90932008-09-11 Glenn Morris <rgm@gnu.org>
9094
9095 * charset.c (charset-map-path): Doc fix.
9096
90972008-09-10 Kenichi Handa <handa@m17n.org>
9098
9099 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
9100
9101 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
9102 compose a grapheme cluster with the preceding base glyph.
9103
9104 * composite.c (composition_compute_stop_pos): Fix previous change.
9105 Reset cmp_it->id to -1 at first.
9106
91072008-09-10 Glenn Morris <rgm@gnu.org>
9108
9109 * Makefile.in (character.o, chartab.o): Fix config.h typo.
9110
91112008-09-09 Chong Yidong <cyd@stupidchicken.com>
9112
9113 * keyboard.c (read_key_sequence): Reapply translation maps when
9114 switching keyboards.
9115
91162008-09-09 Kenichi Handa <handa@m17n.org>
9117
9118 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
9119 characters.
9120
9121 * composite.c (FORWARD_CHAR): Fix calculation
9122 of (POSITION).pos_byte.
9123 (composition_compute_stop_pos): Limit the search of composition to
9124 at most 500 characters ahead. If we reach the limit or find a
9125 newline, set cmp_it->ch to -2 and return 0.
9126 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
9127
91282008-09-08 Kenichi Handa <handa@m17n.org>
9129
9130 * indent.c (Fvertical_motion): Be sure to set
9131 it_overshoot_expected if it.cmp_it.id is non-negative.
9132
91332008-09-07 Andreas Schwab <schwab@suse.de>
9134
9135 * callproc.c (Fcall_process): Don't hold references to string data
9136 across garbage collection. Move initialisation of new_argv down
9137 to avoid compiler bug.
9138
91392008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
9140
9141 * process.c (Fsystem_process_attributes): Doc fix.
9142
91432008-09-07 Chong Yidong <cyd@stupidchicken.com>
9144
9145 * callproc.c (Fcall_process): Canonicalize current directory name.
9146
9147 * xdisp.c (move_it_to): When moving by vpos, ensure that the
9148 iterator advances to the next line if the current line ends in a
9149 continued tab.
9150
91512008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
9152
9153 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
9154 member to point to cmp_from.
9155
9156 * xdisp.c: Doc fix for references to gidx data member.
9157
91582008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
9159
9160 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
9161
91622008-09-07 Kenichi Handa <handa@m17n.org>
9163
9164 * composite.c (FORWARD_CHAR): Check STOP after
9165 incrementing (POSITION).pos.
9166
91672008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
9168
9169 * process.c (Fsystem_process_attributes): Doc fix.
9170
91712008-09-06 Chong Yidong <cyd@stupidchicken.com>
9172
9173 * keyboard.c (Ftop_level): Doc fix.
9174
91752008-09-06 Eli Zaretskii <eliz@gnu.org>
9176
9177 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
9178 minibuffer, don't let lower part of menu invade the echo area.
9179
9180 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
9181 "char *q" to access menu text and advance through it. Revert the
9182 change that displayed ">" instead of ASCII character 0x10.
9183
91842008-09-05 Eli Zaretskii <eliz@gnu.org>
9185
9186 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
9187 toggle boxes and radio buttons on MS-DOS as well.
9188
91892008-09-05 Kenichi Handa <handa@m17n.org>
9190
9191 * composite.c (autocmp_chars): Check lookback count.
9192 (composition_compute_stop_pos): Set cmp_it->lookback.
9193 (composition_reseat_it): Check lookback count.
9194 (struct position_record): New struct.
9195 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
9196 (find_automatic_composition): New function.
9197 (composition_adjust_point): Use find_automatic_composition.
9198
9199 * dispextern.h (struct composition_it): New member lookback.
9200
92012008-09-02 Chong Yidong <cyd@stupidchicken.com>
9202
9203 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
9204 if moving by a single line.
9205
92062008-09-02 Andreas Schwab <schwab@suse.de>
9207
9208 * xterm.c (x_delete_display): Fix merge error.
9209
9210 * fileio.c (Fexpand_file_name): Remove unused variables.
9211
92122008-09-02 Eli Zaretskii <eliz@gnu.org>
9213
9214 * fileio.c (Fexpand_file_name): Copy argument `name' into local
9215 storage on all platforms, not just on DOS_NT.
9216
92172008-09-02 Jason Rumney <jasonr@gnu.org>
9218
b8ff72fa
SM
9219 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
9220 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
9221
92222008-09-01 Chong Yidong <cyd@stupidchicken.com>
9223
9224 * xfaces.c (Finternal_set_alternative_font_family_alist)
9225 (Finternal_set_alternative_font_registry_alist): Properly copy
9226 entire alist structure.
9227
92282008-09-01 Kenichi Handa <handa@m17n.org>
9229
d66c0241 9230 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 9231 representative chars of the script is a vector.
d66c0241
JB
9232 (ftfont_list): Handle the case where the representative chars of
9233 the script is a vector.
aac0c6e3
MR
9234
9235 * character.c (syms_of_character): Docstring of
9236 script-representative-chars fixed.
9237
92382008-08-31 Eli Zaretskii <eliz@gnu.org>
9239
9240 * msdos.c (BUILD_CHAR_GLYPH): New macro.
9241 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
9242 the menu. Allocate larger buffer for `text', to account for
9243 possible ^C characters.
9244
92452008-08-31 Martin Rudalics <rudalics@gmx.at>
9246
9247 * xdisp.c (prepare_menu_bars): Don't call
9248 Vwindow_size_change_functions with arg Qt.
9249
92502008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
9251
9252 * font.h (font_range):
9253 * fileio.c (report_file_error):
46e722a9
SM
9254 * composite.c (composition_update_it): Yet another int/Lisp_Object
9255 mixup (YAILOM).
aac0c6e3
MR
9256
92572008-08-30 Glenn Morris <rgm@gnu.org>
9258
9259 * data.c (Fmake_variable_frame_local): Doc fix.
9260
9261 * frame.c (Fmodify_frame_parameters): Doc fix.
9262
92632008-08-30 Eli Zaretskii <eliz@gnu.org>
9264
9265 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
9266 needed by GetTokenInformation.
9267 (w32_system_process_attributes): Check return values of all system
9268 APIs.
9269
9270 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
9271 only when the state changes.
9272 (IT_update_begin, IT_update_end): Add termscript trace.
9273
9274 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
9275 clipboard is unavailable. Set dst to NULL if it doesn't point to
9276 malloc'ed data.
9277 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
9278 passing random values to xfree.
9279
9280 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 9281 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
9282
92832008-08-29 Jason Rumney <jasonr@gnu.org>
9284
9285 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
9286
92872008-08-29 Eli Zaretskii <eliz@gnu.org>
9288
9289 * composite.c (fill_gstring_body): Avoid compiler warnings.
9290
9291 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
9292 LGLYPH_SET_CODE to avoid compiler warnings.
9293
2ae37cf0 9294 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
9295
9296 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
9297
9298 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
9299 LGLYPH_SET_CODE.
9300
93012008-08-29 Kenichi Handa <handa@m17n.org>
9302
9303 * fileio.c (report_file_error): Don't downcase the first character
9304 of errstring if it is still unibyte.
9305
93062008-08-29 Kenichi Handa <handa@m17n.org>
9307
9308 These changes are to re-implement the automatic composition so
9309 that it doesn't use text properties.
9310
9311 * Makefile.in (ftfont.o): Depend on composite.h.
9312 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
9313
9314 * character.h (Vunicode_category_table): Extern it.
9315
9316 * character.c (Vunicode_category_table): New variable.
9317 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
9318
9319 * chartab.c (optimize_sub_char_table): Perform more greedy
9320 optimization.
9321
b8ff72fa
SM
9322 * composite.h (enum composition_method):
9323 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
9324 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
9325 (Vcomposition_function_table): Extern it.
9326 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
9327 (composition_gstring_put_cache, composition_gstring_from_id)
9328 (composition_gstring_p, composition_gstring_width)
9329 (composition_compute_stop_pos, composition_reseat_it)
9330 (composition_update_it, composition_adjust_point): Extern them.
9331 (Fcomposition_get_gstring): EXFUN it.
9332
d66c0241 9333 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
9334 (Vcomposition_function_table)
9335 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
9336 (gstring_hash_table, gstring_work, gstring_work_headers):
9337 New variables.
aac0c6e3
MR
9338 (gstring_lookup_cache, composition_gstring_put_cache)
9339 (composition_gstring_from_id, composition_gstring_p)
9340 (composition_gstring_width, fill_gstring_header)
9341 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
9342 (composition_reseat_it, composition_update_it)
b8ff72fa 9343 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
9344 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
9345 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 9346 Defsubr composition_get_gstring.
aac0c6e3
MR
9347
9348 * dispextern.h (struct glyph): New union u.cmp. Delete the member
9349 cmp_id.
9350 (struct glyph_string): Delete the member gidx. New members
9351 cmp_id, cmp_from, and cmp_to.
9352 (enum it_method): Delete GET_FROM_COMPOSITION.
9353 (struct composition_it): New struct.
9354 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
9355 Delete c, len, cmp_id, cmp_len in u.comp.
9356
9357 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 9358 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 9359 (enum lglyph_indices): Likewise.
b8ff72fa 9360 (font_range): Adjust extern.
aac0c6e3
MR
9361 (font_fill_lglyph_metrics): Extern it.
9362
9363 * font.c (QCf): New variable.
9364 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
9365 (font_prepare_composition): Delete this function.
9366 (font_range): Type and arguments changed.
9367 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
9368 (font_fill_lglyph_metrics): New function.
b8ff72fa 9369 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 9370 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
9371 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
9372 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
9373
9374 * fontset.h (font_for_char): Extern it.
9375
9376 * fontset.c (font_for_char): New function.
9377
9378 * ftfont.c: Include composite.h.
9379 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 9380 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
9381
9382 * indent.c: Include composite.h and dispextern.h.
9383 (check_composition): Delete this function.
9384 (scan_for_column): Handle composition by
9385 composition_compute_stop_pos, composition_reseat_it, and
9386 composition_update_it.
9387 (compute_motion): Likewise.
9388 (Fvertical_motion): Fix checking of composition.
9389
9390 * keyboard.c (adjust_point_for_property): Check composition by
9391 composition_adjust_point.
9392
b8ff72fa 9393 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
9394 struct glyph_string.
9395
b8ff72fa
SM
9396 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
9397 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
9398 struct glyph.
9399 (produce_composite_glyph): Likewise.
9400
b8ff72fa
SM
9401 * w32term.c (x_draw_composite_glyph_string_foreground):
9402 Adjust for the change of struct glyph_string.
aac0c6e3
MR
9403 (x_draw_glyph_string): Likewise.
9404
9405 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
9406 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
9407
9408 * xdisp.c: Include font.h.
9409 (it_props): Delete the entry for Qauto_composed.
9410 (init_iterator): Initialize it->cmp_it.id to -1.
9411 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 9412 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
9413 (handle_auto_composed_prop): Delete it.
9414 (handle_composition_prop): Handle only static composition.
9415 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
9416 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 9417 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
9418 (pop_it): Likewise.
9419 (get_next_element): Delete next_element_from_composition.
9420 (CHAR_COMPOSED_P): New macro.
9421 (get_next_display_element): For automatic composition, get a face
9422 from the font in the glyph-string.
9423 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 9424 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
9425 (next_element_from_string): Check if the character at the current
9426 position is composed by CHAR_COMPOSED_P.
9427 (next_element_from_buffer): Likewise.
d66c0241
JB
9428 (next_element_from_composition): Adjust for the change of struct it.
9429 Update it->cmp_it.
b8ff72fa
SM
9430 (dump_glyph): Adjust for the change of struct glyph.
9431 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
9432 it and struct glyph. Don't handle automatic composition here.
9433 (fill_gstring_glyph_string): New function.
9434 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 9435 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
9436 (BUILD_GSTRING_GLYPH_STRING): New macro.
9437 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
9438 automatic composition.
b8ff72fa 9439 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 9440 struct glyph.
b8ff72fa 9441 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 9442
b8ff72fa 9443 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
9444 the change of struct glyph_string.
9445 (x_draw_glyph_string): Likewise.
9446
94472008-08-29 Glenn Morris <rgm@gnu.org>
9448
9449 * buffer.c (word-wrap): Doc fix.
9450 * xdisp.c (truncate-partial-width-windows): Doc fix.
9451 Increase default to 50.
9452
94532008-08-29 Chong Yidong <cyd@stupidchicken.com>
9454
9455 * xdisp.c (update_tool_bar_unwind): New function.
9456 (update_tool_bar): Temporarily set selected frame before building
9457 tool-bar items.
9458
94592008-08-28 Michael Albinus <michael.albinus@gmx.de>
9460
9461 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
9462 snprintf, respectively.
9463 (xd_append_arg): Convert strings with Fstring_make_unibyte.
9464
94652008-08-28 Chong Yidong <cyd@stupidchicken.com>
9466
9467 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
9468 LDFLAGS to GNUstep CC invocation.
9469
94702008-08-27 Chong Yidong <cyd@stupidchicken.com>
9471
9472 * indent.c (Fvertical_motion): Revert last change. Handle the
9473 general case where we are moving forward, and PT spans multiple
9474 screen lines.
9475
9476 * eval.c (find_handler_clause): Temporarily increase
9477 max-lisp-eval-depth while printing the backtrace buffer, to
9478 guarantee that help-mode code can run.
9479
94802008-08-27 Eli Zaretskii <eliz@gnu.org>
9481
9482 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
9483 colors under -rv.
9484 (IT_set_frame_parameters): Don't swap foreground and background
9485 colors if `(reverse . t)' is present in the frame properties.
9486 (internal_terminal_init): Call init_frame_faces only for the
9487 initial frame.
9488
94892008-08-27 Andreas Schwab <schwab@suse.de>
9490
9491 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
9492
94932008-08-27 Andreas Schwab <schwab@suse.de>
9494
9495 * search.c (search_buffer): Set char_base to zero only at the end.
9496
94972008-08-27 Kenichi Handa <handa@m17n.org>
9498
b8ff72fa 9499 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
9500
95012008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
9502
9503 * xterm.c (x_term_init): Temporarily hide the partially
9504 initialized terminal while calling vendor-specific-keysyms.
9505
95062008-08-26 Eli Zaretskii <eliz@gnu.org>
9507
9508 * msdos.c (internal_terminal_init): Most initializations done only
9509 once, especially initial_screen_colors[] and termscript open.
9510
95112008-08-26 Chong Yidong <cyd@stupidchicken.com>
9512
9513 * eval.c (Fcondition_case): Doc fix.
9514
9515 * widgetprv.h (EmacsFramePart): Change font member to the new font
9516 struct.
9517
9518 * widget.c: Include character.h and font.h for XSETFONT.
9519 (setup_frame_gcs): Compute X font id from font struct, just once.
9520
95212008-08-26 Eli Zaretskii <eliz@gnu.org>
9522
9523 * term.c (get_named_tty): Fix last change.
9524
95252008-08-26 Chong Yidong <cyd@stupidchicken.com>
9526
9527 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 9528 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
9529
95302008-08-25 Eli Zaretskii <eliz@gnu.org>
9531
9532 * frame.c (do_switch_frame): Mark previously displayed frame as
9533 obscured for FRAME_MSDOS_P frames as well.
9534
95352008-08-24 Eli Zaretskii <eliz@gnu.org>
9536
9537 * frame.c (make_terminal_frame): Initialize f->terminal,
9538 f->terminal->reference_count, and scroll bars on MS-DOS as well.
9539 Set the top frame to newly created frame.
9540 (Fmake_terminal_frame): Reuse the_only_display_info.
9541
9542 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
9543 estimating available memory.
9544
b97439ce 95452008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
9546
9547 * nsterm.m (ns_draw_window_cursor): Don't call
9548 NSDisableScreenUpdates and NSEnableScreenUpdates on
9549 non-NS_IMPL_COCOA systems.
9550
95512008-08-23 Andreas Schwab <schwab@suse.de>
9552
9553 * process.c (procfs_system_process_attributes): Fix use of
9554 uninitialized variables.
9555
95562008-08-23 Eli Zaretskii <eliz@gnu.org>
9557
9558 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
9559
9560 * dispnew.c (init_display): Remove MS-DOS specific conditions for
9561 calling tty-set-up-initial-frame-faces.
9562
b8ff72fa
SM
9563 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
9564 Allow MSDOS frames along with X frames.
aac0c6e3
MR
9565
9566 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
9567 addition to output_termcap.
9568
9569 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
9570
9571 * termchar.h (FRAME_TTY): Support output_msdos_raw.
9572 (struct tty_display_info) [MSDOS]: Add fields related to mouse
9573 highlight.
9574
9575 * process.c [!subprocesses]: Define QCname.
9576 (syms_of_process): Intern and staticpro it.
9577
9578 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
9579 Adjust for changes in encoding/decoding routines.
9580 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
9581 encode_coding and decode_coding.
9582
b8ff72fa 9583 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
9584
9585 * dosfns.c: Include frame.h before termhooks.h.
9586 (dos_cleanup): Use CURTTY ()->termscript instead of a global
9587 variable termscript.
9588
9589 * s/msdos.h (USER_FULL_NAME): Define.
9590 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
9591
9592 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
9593 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
9594 pw->pw_gecos.
9595
9596 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
9597 SELECTED_FRAME as additional (1st) argument.
9598 (tty_read_avail_input): Handle output_msdos_raw in
9599 addition to output_termcap.
9600
9601 * msdos.c: Include frame.h before termhooks.h.
9602 (mouse_on, mouse_off, mouse_moveto, mouse_init)
9603 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
9604 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
9605 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
9606 (IT_set_terminal_modes, IT_reset_terminal_modes)
9607 (IT_set_frame_parameters): Use tty->termscript instead of a global
9608 variable termscript.
9609 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
9610 global variable terminal_coding. Don't refer to
9611 Vnonascii_translation_table.
9612 (internal_terminal_init): Set Vwindow_system in current_kboard.
9613 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
9614 Announce date and time of session start, if termscript is open.
9615 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
9616 term.c:init_tty). Open termscript only of not already open.
9617 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
9618 here instead of dos_ttraw. Don't initialize display if this is an
9619 initial tty. Don't set FRAME_FONT.
9620 (Vwindow_system_version): Bump to 23.
9621 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
9622 is available, set up mouse_position_hook.
9623 (dos_ttraw, IT_set_terminal_modes): If called with initial
9624 terminal, do nothing.
9625 (IT_set_frame_parameters): Handle the Qtty_type frame
9626 parameter by calling internal_terminal_init.
9627 (dos_set_window_size, show_mouse_face)
9628 (clear_mouse_face, IT_note_mode_line_highlight)
9629 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
9630 (dos_rawgetc): Use tty_display_info instead of x_display_info.
9631 (initialize_msdos_display): New function.
9632 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
9633 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
9634 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
9635 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 9636 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
9637 (request_sigio, unrequest_sigio): Don't define, now defined on
9638 sysdep.c.
9639 (IT_write_glyphs): Rewrite to use encode_terminal_code.
9640
9641 * term.c [MSDOS]: Include msdos.h.
9642 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
9643 conditional to DOS_NT. Allow only one call to this function in a
9644 session. Don't allocate a new struct tty_display_info; instead,
9645 reuse the_only_display_info. Call get_tty_size to get screen
9646 dimensions. Call init_baud_rate to set bad_rate.
9647 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
9648 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 9649 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
9650 (get_tty_terminal, get_named_tty, Ftty_type)
9651 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
9652 output_termcap.
b8ff72fa
SM
9653 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
9654 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 9655 only when subprocesses are supported.
aac0c6e3
MR
9656
9657 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
9658 f->output_data.x.
9659 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
9660 terminal devices.
9661
5582fbc7 9662 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
9663 x_output.
9664 (FRAME_FONT): Use output_data.tty.
9665 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
9666 (struct x_display_info): Rename from display_info. Update all users in
9667 msdos.c.
aac0c6e3 9668 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 9669 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
9670 (dos_ttraw): Update prototype.
9671
9672 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
9673 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
9674
96752008-08-23 Jason Rumney <jasonr@gnu.org>
9676
9677 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
9678 (fn_TIFFSetDirectory): New library function used.
9679 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
9680 (tiff_load): Use :index to select among multiple images. Set count
9681 property when multiple images exist.
9682 (gif_format): Use :index, not :image.
9683
96842008-08-23 Chong Yidong <cyd@stupidchicken.com>
9685
9686 * xdisp.c (try_scrolling): Check INT_MAX instead of
9687 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
9688 to obtain INT_MAX.
9689
96902008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
9691
9692 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
9693
96942008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
9695
9696 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
9697 GNUstep library location.
9698
96992008-08-21 Chong Yidong <cyd@stupidchicken.com>
9700
9701 * xfaces.c (x_update_menu_appearance): Check validity of menu font
9702 before using it.
9703
9704 * puresize.h (BASE_PURESIZE): Increase to 1250000.
9705
97062008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9707
9708 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
9709 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
9710 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
9711 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
9712 (EmacsApp-cursor_blink_handler): Remove declaration.
9713 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
9714 match 01 Feb 2008 changes in xterm.c.
9715 (ns_read_socket): Add cast to avoid warning.
9716 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
9717 GNUstep.
9718
97192008-08-20 Chong Yidong <cyd@stupidchicken.com>
9720
9721 * xselect.c (x_get_foreign_selection): Return nil if desired
9722 selection could not be obtained, instead of signalling an error.
9723
97242008-08-20 David Reitter <david.reitter@gmail.com>
9725
9726 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
9727 * nsterm.m: Remove ns-specific code for cursor blinking.
9728 (ns_draw_window_cursor): Clear cursor properly rather than
9729 redrawing the area. Respect width of bar cursors.
9730 These changes enable the use of generic blink-cursor-mode and
9731 generic cursor types in NS and support smooth cursor movements (do
9732 not blink off after command).
9733 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
9734 Nextstep, too.
9735
97362008-08-19 Kenichi Handa <handa@m17n.org>
9737
9738 * font.c (Vfont_log_deferred): New variable.
9739 (font_add_log): Check Vfont_log_deferred.
9740 (font_deferred_log): New function.
9741
9742 * font.h (font_deferred_log): Extern it.
9743
9744 * fontset.c (reorder_font_vector): Use encoding charset of fonts
9745 for sorting.
9746 (face_for_char): Use deferred log.
9747
97482008-08-18 Kenichi Handa <handa@m17n.org>
9749
9750 * fontset.c (face_for_char): Add font log.
9751
9752 * font.c (font_add_log): Add the font properties :script, :lang,
9753 and :otf in the log.
9754
97552008-08-17 Chong Yidong <cyd@stupidchicken.com>
9756
9757 * xdisp.c: Remove dead code.
9758 (handle_invisible_prop, next_overlay_string): Defer call to
9759 setup_for_ellipsis.
9760 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
9761
97622008-08-15 Chong Yidong <cyd@stupidchicken.com>
9763
9764 * xfaces.c (lookup_derived_face): Properly handle possible zero
9765 return value of get_lface_attributes.
9766 (merge_faces): Don't tell lookup_derived_face to signal an error
9767 if face is not found.
9768
9769 * dired.c (Fdirectory_files): Doc fix.
9770
9771 * process.c (make_process): Initialize kill_without_query struct
9772 member.
9773
97742008-08-15 Eli Zaretskii <eliz@gnu.org>
9775
9776 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
9777 Alternative calculation of totphys for Visual Studio 6.
9778
9779 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
9780
9781 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
9782 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
9783 All users changed.
9784 (stat): Only root directory passed to GetDriveType. Allow RAM
9785 disk as well as local fixed disk when w32-get-true-file-attributes
9786 is set to `local'.
9787 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
9788 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
9789 (w32_cached_id, w32_add_to_cache): New functions.
9790 (get_name_and_id): Look account names in the cache before calling
9791 lookup_account_sid.
9792 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
9793 New initialization flags.
9794 (globals_of_w32): Initialize them to zero.
9795 (w32_system_process_attributes): Use w32_cached_id and
9796 w32_add_to_cache.
9797
97982008-08-14 Lawrence Mitchell <wence@gmx.li>
9799
9800 * lread.c (Fread_char, Fread_char_exclusive): If no character
9801 event is read before timeout is reached, return nil, rather than
9802 converting to a number.
9803
98042008-08-14 Chong Yidong <cyd@stupidchicken.com>
9805
9806 * fns.c (use_dialog_box): Doc fix.
9807
9808 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
9809 on OS X.
9810
98112008-08-13 Chong Yidong <cyd@stupidchicken.com>
9812
9813 * frame.c (Qns_parse_geometry): New var.
9814 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
9815
98162008-08-11 Chong Yidong <cyd@stupidchicken.com>
9817
9818 * xdisp.c (x_produce_glyphs): Handle the case when font has no
9819 space character in calculating tabs.
9820
98212008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
9822
9823 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
9824
98252008-08-10 Glenn Morris <rgm@gnu.org>
9826
9827 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
9828 silence gcc "limited range of data type" warnings in some
9829 make_fixnum_or_float calls.
9830
98312008-08-09 Eli Zaretskii <eliz@gnu.org>
9832
9833 * w32.c (w32_system_process_attributes): If the process does not
9834 exist, return nil.
9835
9836 * w32.c: Include thelp32.h, psapi.h and coding.h.
9837 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
9838 declarations.
9839 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
9840 (Process32Next_Proc): New typedefs.
9841 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
9842 (g_b_init_process32_next, g_b_init_open_thread_token)
9843 (g_b_init_impersonate_self, g_b_init_revert_to_self)
9844 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
9845 (g_b_init_get_process_working_set_size)
9846 (g_b_init_global_memory_status_ex): New static variables.
9847 (globals_of_w32): Initialize them.
9848 (create_toolhelp32_snapshot, process32_first, process32_next)
9849 (open_thread_token, impersonate_self, revert_to_self)
9850 (get_process_memory_info, get_process_working_set_size)
9851 (global_memory_status, global_memory_status_ex): New wrapper
9852 functions.
9853 (w32_list_system_processes, w32_system_process_attributes)
9854 (enable_privilege, restore_privilege, ltime, process_times):
9855 New functions.
9856 (convert_time_raw): New function.
9857 (convert_time): Remove conversion of FILETIME into time in 100
9858 nsec units, call convert_time_raw instead.
9859
9860 * process.h (w32_list_system_processes, w32_system_process_attributes):
9861 Add prototypes.
9862 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
9863 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
9864 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
9865 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
9866
9867 * process.c (Fsystem_process_attributes): Doc fix.
9868
98692008-08-08 Chong Yidong <cyd@stupidchicken.com>
9870
9871 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
9872 a continued multi-char glyph; if so, advance to the actual glyph.
9873
98742008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
9875
9876 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
9877
9878 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
9879 (.m.o): Use it.
9880 * config.in: Regenerate.
9881
98822008-08-07 Chong Yidong <cyd@stupidchicken.com>
9883
9884 * xdisp.c (redisplay_window): Revert last change.
9885 (try_window): Check bottom scroll margin too.
9886
98872008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9888
9889 * config.in: Regenerate.
9890
9891 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
9892 -list-load-path-shadows'.
9893 (nsgui.h): Reduce number of things depending on it.
9894
98952008-08-06 Chong Yidong <cyd@stupidchicken.com>
9896
9897 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
9898 instead of window-end which does the wrong thing at eob.
9899 (try_cursor_movement): Minor optimization.
9900 (redisplay_window): If scroll margin is defined, don't assume
9901 window doesn't need scrolling.
9902
99032008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9904
9905 * config.in: Regenerate.
9906
9907 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
9908 (mostlyclean): Don't delete *.d under NS.
9909
9910 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
9911
99122008-08-06 Kenichi Handa <handa@m17n.org>
9913
9914 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
9915
99162008-08-06 Andreas Schwab <schwab@suse.de>
9917
9918 * config.in: Regenerate.
9919
99202008-08-05 Chong Yidong <cyd@stupidchicken.com>
9921
9922 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
9923 forcing a window start.
9924
9925 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
9926 (auto_save_1): Update modtime when auto-save-list-file-name is on.
9927
99282008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9929
9930 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
9931 argument.
9932
99332008-08-05 Juanma Barranquero <lekktu@gmail.com>
9934
9935 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
9936 <scroll-down-aggressively, before-change-functions>:
9937 <after-change-functions>: Reflow docstrings.
9938
99392008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 9940 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
9941
9942 Dock menu customization, based on a patch by Ken Raeburn, plus some
9943 other fixes.
9944 * nsmenu.m (dockMenu): New variable.
9945 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
9946
9947 * nsterm.h (dockMenu): Declare.
9948
9949 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
9950 (ns_term_init): Initialize dockMenu.
9951 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
9952 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
9953 left.
9954
9955 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
9956
99572008-08-04 Chong Yidong <cyd@stupidchicken.com>
9958
9959 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
9960
9961 * config.in: Regenerate.
9962
99632008-08-04 Seiji Zenitani <zenitani@mac.com>
9964
9965 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
9966
99672008-08-04 Chong Yidong <cyd@stupidchicken.com>
9968
9969 * nsterm.h (find_and_call_menu_selection): Fix prototype.
9970
99712008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9972
9973 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
9974
9975 * keyboard.h: Comment an #endif.
9976
9977 * lisp.h (have_menus_p): Adjust comment.
9978
9979 * menu.c (find_and_return_menu_selection): Fix comparison with
9980 client_data.
9981
9982 * nsmenu.m (popup_activated_flag): New variable.
9983 (popup_activated): New function.
9984 (menu-or-popup-active-p): New exported lisp definition.
9985 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
9986 when popup done.
9987 (ns_popup_dialog): Set popup_activated_flag.
9988
9989 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
9990 version for GNUstep (handled by conditional typedef in nsterm.m).
9991 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
9992 in rgb.txt).
9993
9994 * process.c (init_process): Use DARWIN_OS, not DARWIN.
9995
9996 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
9997
9998 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
9999
10000 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
10001 shortcircuit if popup_activated like GTK and X toolkit.
10002
10003 * m/inter386.h: Change DARWIN to DARWIN_OS.
10004
10005 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
10006 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
10007 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
10008 comment on NO_SOCK_SIGIO.
10009
100102008-08-03 Chong Yidong <cyd@stupidchicken.com>
10011
10012 * nsterm.m (windowDidResize): Remove stopModal call.
10013
100142008-08-03 Andreas Schwab <schwab@suse.de>
10015
10016 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
10017 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
10018
100192008-08-02 Chong Yidong <cyd@stupidchicken.com>
10020
10021 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
10022 Don't use uninitialized pointer variable when using getrlimit.
10023
100242008-08-02 Jason Rumney <jasonr@gnu.org>
10025
10026 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
10027
100282008-08-02 Eli Zaretskii <eliz@gnu.org>
10029
10030 * alloc.c (NSTATICS): Bump to 0x640.
10031
10032 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
10033
10034 * lisp.h: Add prototype for directory_files_internal.
10035
10036 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
10037 New functions.
10038 (syms_of_process): Defsubr them. Add initializations for various
10039 Q* symbols used in procfs_system_process_attributes.
10040 (procfs_list_system_processes, procfs_system_process_attributes)
10041 [HAVE_PROCFS]: New functions.
10042 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
10043 (procfs_get_total_memory): New functions.
10044
100452008-08-01 Juanma Barranquero <lekktu@gmail.com>
10046
10047 * xfaces.c (Fx_load_color_file): Fix previous change;
10048 it is #ifdef WINDOWSNT, not WINDOWS_NT.
10049
100502008-08-01 Michael Albinus <michael.albinus@gmx.de>
10051
10052 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
10053
100542008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10055
10056 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
10057
100582008-08-01 Chong Yidong <cyd@stupidchicken.com>
10059
10060 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
10061
10062 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
10063 define NSApplicationDelegateReplySuccess.
10064 (EmacsView -converstationIdentifier): Use long instead of
10065 NSInteger for GNUstep, since it doesn't have NSInteger.
10066
10067 * xmenu.c: Revert last change.
10068
10069 * keyboard.h: Fix last change.
10070
100712008-08-01 Juanma Barranquero <lekktu@gmail.com>
10072
10073 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
10074 on Windows.
10075
100762008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10077
10078 Warning clearing and clean-up in NS port.
10079 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
10080 Add prototypes.
10081 * nsgui.h (FACE_DEFAULT): Remove, unused.
10082 (XGCValues): Change colors to unsigned long.
10083 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
10084 nsterm.m.
10085 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
10086 (ns_list_fonts): Remove, unused.
10087 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
10088 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
10089 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
10090 (nsfont_draw): Compare face colors to 0, not nil.
10091 * nsmenu.m (struct widget_value): Drop unneeded declaration.
10092 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
10093 (-addSubmenuWithTitle:): Use NSMenuItem class.
10094 (ns_popup_menu): Use NO, not NULL, for enabled setting.
10095 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
10096 (ns_clip_to_row): Make gc arg a BOOL.
10097 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
10098 ns_clip_to_row() call.
10099 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
10100 used). Cast FRAME_FONT assignments.
10101 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
10102 (ns_string_to_lispmod): Change arg to const char.
10103 (ns_term_init): Use NSMenuItem class.
10104 (EmacsApp -openFile:): Move to different section of file.
10105 (EmacsApp -application:openFiles:): Don't return a value, call
10106 -replyToOpenOrPrint:.
10107 (EmacsView -keyDown:): Fix up cast.
10108 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
10109 (EmacsView -menuDown:): Cast tag in call to
10110 find_and_call_menu_selection().
10111 (ns_list_fonts): Remove, unused.
10112 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
10113 (ns_fontname_to_xlfd): Make static.
10114 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
10115 Remove prototypes (now in keyboard.h).
10116 (next_menubar_widget_id): Remove, unused.
10117 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
10118 Remove prototypes (now in keyboard.h).
10119 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
10120
101212008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
10122
10123 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
10124 (floatfns.o): Depend on syssignal.h.
10125 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
10126
10127 * systty.h: Fix previous change that removed BSD_TERMIOS.
10128 Add comments to #ifdefs.
10129
101302008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10131
10132 * w32fns.c (w32-load-color-file): Remove.
10133 (x-open-connection): Use renamed Fx_load_color_file.
10134 * xfaces.c (x-load-color-file): Add.
10135 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
10136 Emacs.clr.
10137 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
10138
101392008-07-31 Michael Albinus <michael.albinus@gmx.de>
10140
10141 * dbusbind.c (Fdbus_call_method_asynchronously)
10142 (Fdbus_method_error_internal): New defuns.
10143 (xd_read_message): Handle also reply messages.
10144 (Vdbus_registered_functions_table): Extend docstring.
10145
101462008-07-31 Juanma Barranquero <lekktu@gmail.com>
10147
10148 * keyboard.c (gobble_input): Fix previous change.
10149
101502008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
10151
10152 * bitmaps/README:
10153 * xfns.c:
10154 * termcap.c:
10155 * term.c:
10156 * syswait.h:
10157 * systty.h:
10158 * systime.h:
10159 * syssignal.h:
10160 * sysdep.c:
10161 * process.h:
10162 * process.c:
10163 * print.c:
10164 * ndir.h:
10165 * lread.c:
10166 * keyboard.c:
10167 * getpagesize.h:
10168 * floatfns.c:
10169 * fileio.c:
10170 * emacs.c:
10171 * doc.c:
10172 * dispnew.c:
10173 * dired.c:
10174 * data.c:
10175 * callproc.c:
10176 * buffer.c:
10177 * README:
10178 * Makefile.in:
10179 * s/template.h:
10180 * s/msdos.h:
10181 * m/vax.h: Remove VMS support.
10182 * s/vms.h:
10183 * vlimit.h:
10184 * uaf.h:
10185 * temacs.opt:
10186 * param.h:
10187 * ioctl.h: Remove file.
10188
101892008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
10190
10191 * s/ms-w32.h (MULTI_KBOARD): Remove.
10192 * xterm.c:
10193 * xselect.c:
10194 * xfns.c:
10195 * window.c:
10196 * w32term.c:
10197 * w32fns.c:
10198 * terminal.c:
10199 * termhooks.h:
10200 * term.c:
10201 * sysdep.c:
10202 * keyboard.h:
10203 * keyboard.c:
10204 * frame.h:
10205 * frame.c:
10206 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
10207 * config.in: Regenerate.
10208
102092008-07-30 Jason Rumney <jasonr@gnu.org>
10210
10211 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
10212
10213 * w32font.c (w32font_encode_char): Leave as unicode if in range.
10214 (w32font_open_internal): Get unicode version of textmetrics.
10215 Don't enable or disable glyph indices here.
10216 (w32font_open): Disable use of glyph indices.
10217
10218 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
10219
102202008-07-30 Chong Yidong <cyd@stupidchicken.com>
10221
10222 * minibuf.c (Vread_buffer_function): Doc fix.
10223
102242008-07-30 John Paul Wallington <jpw@pobox.com>
10225
10226 * minibuf.c (read_buffer_completion_ignore_case): New var.
10227 (Fread_buffer): Use it.
10228
102292008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
10230
10231 * systty.h (sensemode): Remove empty #if. Remove reference to
10232 BSD_TERMIOS, unused.
10233
10234 * sysdep.c: Remove reference to DGUX.
10235 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
10236
10237 * config.in: Regenerate.
10238
102392008-07-30 Jason Rumney <jasonr@gnu.org>
10240
10241 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
10242
102432008-07-29 Jason Rumney <jasonr@gnu.org>
10244
10245 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
10246 is populated.
10247 (uniscribe_encode_char): Always use uniscribe.
10248 Avoid using context if cache is populated.
10249
102502008-07-29 Jan Djärv <jan.h.d@swipnet.se>
10251
10252 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
10253 open menu.
10254
10255 * gtkutil.c (menu_nav_ended): Remove.
10256 (create_menus): Remove signal connect for menu_nav_ended.
10257
102582008-07-28 Chong Yidong <cyd@stupidchicken.com>
10259
10260 * xdisp.c (redisplay_window): Check return value of
10261 compute_window_start_on_continuation_line before forcing a window
10262 start.
10263
102642008-07-28 Jason Rumney <jasonr@gnu.org>
10265
10266 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
10267
10268 * w32term.c (w32_enable_unicode_output, cleartype_active):
10269 Remove obsolete display options.
10270 (x_draw_glyph_string_background): Don't use old cleartype_active
10271 workaround.
10272 (w32_initialize): Remove cleartype_active initialization.
10273 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
10274
102752008-07-28 Andreas Schwab <schwab@suse.de>
10276
10277 * lisp.h (init_weak_hash_tables, syms_of_font)
10278 (xd_read_queued_messages, syms_of_dbusbind): Declare.
10279 (remove_hash_entry): Don't declare.
10280 * eval.c (maybe_call_debugger): Make static and move before use.
10281 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
10282 * xdisp.c: Include "gtkutil.h" if USE_GTK.
10283 * xterm.h (x_set_frame_alpha): Declare.
10284
102852008-07-28 Jan Djärv <jan.h.d@swipnet.se>
10286
10287 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
10288 (create_menus): Connect selection-done to menu_nav_ended.
10289
102902008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10291
10292 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
10293 Set Vx_resource_name to a fallback. Replace read of 'buffered'
10294 parameter with read of 'alpha' one.
10295 (Qns_frame_parameter): Remove.
5582fbc7 10296 * nsselect.m (selection-coding-system)
aac0c6e3
MR
10297 (next-selection-coding-system, Vselection_coding_system)
10298 (Vnext_selection_coding_system): Drop.
10299
103002008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10301
10302 * nsfns.m (do-applescript, do_applescript): Rename to
10303 ns-do-applescript, ns_do_applescript, and move within file.
10304
103052008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
10306
10307 Remove support for Mac Carbon.
10308 * mactoolbox.c:
10309 * macterm.h:
10310 * macterm.c:
10311 * macselect.c:
10312 * macmenu.c:
10313 * macgui.h:
10314 * macfns.c:
10315 * mac.c: Remove file.
10316 * s/darwin.h:
10317 * m/intel386.h:
10318 * xfaces.c:
10319 * xdisp.c:
10320 * window.c:
10321 * tparam.c:
10322 * termhooks.h:
10323 * termcap.c:
10324 * term.c:
10325 * syssignal.h:
10326 * sysselect.h:
10327 * sysdep.c:
10328 * process.c:
10329 * lread.c:
10330 * lisp.h:
10331 * keyboard.c:
10332 * image.c:
10333 * fringe.c:
10334 * frame.h:
10335 * frame.c:
10336 * fontset.c:
10337 * font.h:
10338 * font.c:
10339 * fns.c:
10340 * fileio.c:
10341 * emacs.c:
10342 * dispnew.c:
10343 * dispextern.h:
10344 * config.in:
10345 * atimer.c:
2ae37cf0 10346 * Makefile.in: Remove code for Carbon.
aac0c6e3 10347
f0131492 103482008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
10349
10350 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
10351
103522008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10353
10354 * macterm.h (kCGBitmapByteOrder32Host): New define for
10355 non-universal SDKs.
10356
10357 * image.c (mac_create_cg_image_from_image, image_load_image_io)
10358 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
10359
10360 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
10361 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
10362
103632008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
10364
10365 * w32inevt.c: Include dispextern.h.
10366
103672008-07-26 Andreas Schwab <schwab@suse.de>
10368
10369 * print.c (print_object): Fix off-by-one in last change.
10370
103712008-07-25 Juanma Barranquero <lekktu@gmail.com>
10372
10373 * term.c (syms_of_term): Don't initialize default_orig_pair,
10374 default_set_foreground and default_set_background on Windows.
10375
103762008-07-25 Jason Rumney <jasonr@gnu.org>
10377
10378 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
10379 ScriptItemize. Clean up return value checking. Remove unused
10380 variables.
10381 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
10382 shaping engine.
10383
10384 * w32font.c (w32font_has_char): Handle the case where we can't
10385 determine the script for a character.
10386
103872008-07-25 Chong Yidong <cyd@stupidchicken.com>
10388
10389 * term.c (syms_of_term): Initialize default_orig_pair,
10390 default_set_foreground, and default_set_background.
10391
10392 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
10393 clash (bug#86).
10394 (getloadavg): Callers changed.
10395
10396 * image.c (svg_load_image): Fix last change.
10397 (svg_load_image): Use rsvg_handle_get_dimensions to check that
10398 image size is valid. Use g_object_unref instead of deprecated
10399 rsvg_handle_free to free rsvg handle.
10400 (x_from_xcolors): Don't initialize pixmap (silence compiler).
10401
104022008-07-25 Jason Rumney <jasonr@gnu.org>
10403
10404 * w32font.c (w32font_encode_char): Encode characters outside BMP as
10405 surrogates before looking up glyph index.
10406 (w32font_text_extents): Encode as surrogates if falling back to
10407 functions that need UTF-16 wide chars.
10408
10409 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
10410 BMP as surrogates before looking up glyph index.
10411
104122008-07-25 Chong Yidong <cyd@stupidchicken.com>
10413
10414 * image.c (svg_load_image): Check for failure in return value of
10415 rsvg_handle_get_pixbuf. Free rsvg handle when done.
10416
104172008-07-25 Jason Rumney <jasonr@gnu.org>
10418
10419 * w32font.c (Fx_select_font): Reverse sense of second arg.
10420
104212008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
10422
10423 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
10424 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
10425
10426 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
10427 (PURESIZE): Use it.
10428
104292008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
10430
10431 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
10432 * m/alpha.h (TEXT_END):
10433 * m/ibmrs6000.h (TEXT_END):
10434 * m/macppc.h (TEXT_END):
10435 * s/darwin.h (TEXT_END):
10436 * s/msdos.h (TEXT_END): Remove, unused.
10437 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
10438 * s/cygwin.h: Remove comment.
10439
10440 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
10441 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
10442 * m/intel386.h (DOT_GLOBAL_START):
10443 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
10444 (USG): Remove, file not used on USG platforms.
10445
10446 * Makefile.in (HAVE_X11): Remove empty #else.
10447
104482008-07-24 Andreas Schwab <schwab@suse.de>
10449
10450 * fileio.c (Finsert_file_contents): Properly adjust undo list
10451 after format conversion.
10452
104532008-07-24 Jan Djärv <jan.h.d@swipnet.se>
10454
10455 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
10456 (menu_nav_ended): Remove.
10457 (create_menus): Remove signal connect for menu_nav_ended.
10458 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
10459 create_menus.
10460 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
10461
104622008-07-23 Jason Rumney <jasonr@gnu.org>
10463
10464 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
10465 with opened font.
10466 (w32font_open): Set font type to gdi.
10467
10468 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
10469
104702008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
10471
10472 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
10473 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
10474 defines it.
10475 * unexec.c (ADDR_CORRECT): Define unconditionally.
10476
10477 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
10478
10479 * unexec.c: Remove code depending on !COFF and USG, the file is
10480 not used for such systems.
10481
10482 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
10483 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
10484 (LD_SWITCH_SYSTEM_1): Remove, update users.
10485
10486 * s/darwin.h (DATA_END):
10487 * m/intel386.h (DATA_END):
10488 * m/ibmrs6000.h (DATA_END):
10489 * m/alpha.h (DATA_END): Remove, unused.
10490
10491 * config.in: Regenerate.
10492 * s/ms-w32.h (subprocesses): Define unconditionally.
10493 * s/template.h (subprocesses): Update comment.
10494 * s/vms.h (subprocesses):
10495 * s/usg5-4.h (subprocesses):
10496 * s/hpux10-20.h (subprocesses):
10497 * s/gnu-linux.h (subprocesses):
10498 * s/cygwin.h (subprocesses):
10499 * s/bsd-common.h (subprocesses):
10500 * s/aix4-2.h (subprocesses):
10501 * s/darwin.h (subprocesses): Do not define, defined by default now.
10502
10503 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
10504 Remove all references.
10505 (temacs): Add GNUstep specific ld flags.
10506
10507 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
10508 similarly to what X does.
10509
105102008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10511
10512 * nsfns.m (x-list-fonts): Remove.
10513 (syms_of_nsfns): Drop the x-list-fonts declaration.
10514 * nsterm.m: Get rid of remaining "//" comments.
10515
105162008-07-22 Chong Yidong <cyd@stupidchicken.com>
10517
10518 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
10519
10520 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
10521 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
10522 (Fns_own_selection_internal, Fx_disown_selection_internal)
10523 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
10524
10525 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
10526 ... */' style of docstrings. Doc fixes.
10527
105282008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
10529
10530 * terminfo.c (UP, BC, PC): Undo previous change.
10531
10532 * nsfns.m: Rename ns prefixed functions/variables to the
10533 corresponding x versions. Update references.
10534
105352008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
10536
10537 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
10538
105392008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
10540
10541 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
10542 Remove forwarding functions.
10543 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
10544 non-static.
10545 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
10546 non-static.
10547 (ns_frame_parm_handlers): Use the new names.
10548 (syms_of_nsfns): Move to the end of file.
10549
10550 * nsterm.m (syms_of_nsterm): Move to the end of file.
10551
10552 * dispnew.c (init_display): Remove code for X10.
10553
105542008-07-22 Jason Rumney <jasonr@gnu.org>
10555
10556 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
10557 bare drive.
10558
105592008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10560
10561 * nsterm.m (syms_of_nsterm): Remove debugging println.
10562
105632008-07-22 David Reitter <david.reitter@gmail.com>
10564
10565 * nsfns.m (do_applescript, F_do_applescript): NS version of the
10566 Carbon implementation of the same functionality: execute arbitrary
10567 AppleScript code.
10568
105692008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10570
10571 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
10572 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
10573 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
10574 (Fx_display_mm_height, Fx_display_mm_width)
10575 (Fx_display_backing_store, Fx_display_visual_class)
10576 (Fx_display_save_under, Fx_open_connection)
10577 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
10578 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
10579 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
10580 (Fx_display_pixel_width, Fx_display_pixel_height)
10581 (Fx_display_usable_bounds, Fx_display_planes)
10582 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
10583 ... */' style of docstrings.
10584
105852008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
10586
10587 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
10588 on this platform.
10589 (mips):
10590 * m/iris4d.h (mips): Do not define.
10591 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
10592
10593 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
10594
10595 * image.c:
10596 * nsfns.m:
10597 * nsselect.m:
10598 * nsterm.h:
10599 * nsterm.m: Rename ns prefixed functions/variables to the
10600 corresponding x versions. Update references.
10601
10602 * m/ibms390x.h (NO_REMAP): Do not undefine.
10603
10604 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
10605
106062008-07-21 Chong Yidong <cyd@stupidchicken.com>
10607
10608 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
10609 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
10610 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
10611 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
10612 (Fns_display_mm_height, Fns_display_mm_width)
10613 (Fns_display_backing_store, Fns_display_visual_class)
10614 (Fns_display_save_under, Fns_open_connection)
10615 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
10616 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
10617 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
10618 (Fns_display_pixel_width, Fns_display_pixel_height)
10619 (Fns_display_usable_bounds, Fx_display_planes)
10620 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
10621
106222008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
10623
10624 * print.c (print_object): Check print_depth before searching for
10625 circularities.
10626
106272008-07-21 Michael Albinus <michael.albinus@gmx.de>
10628
10629 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
10630 only sprintf.
10631
106322008-07-21 Kenichi Handa <handa@m17n.org>
10633
10634 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
10635
106362008-07-20 Andreas Schwab <schwab@suse.de>
10637
10638 * syntax.c (find_start_pos, find_start_value)
10639 (find_start_value_byte, find_start_begv, find_defun_start)
10640 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
10641
106422008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
10643
10644 * s/sol2-3.h: Insert contents of s/sol2.h.
10645 (LD_SWITCH_SYSTEM): Remove redundant definition.
10646 * s/sol2.h: Remove, unused.
10647
106482008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10649
10650 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
10651
106522008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10653
10654 * Makefile.in (ns_appdir): Fix typo in find command.
10655
106562008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
10657
10658 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
10659
10660 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
10661 added not supported anymore.
10662
10663 * s/usg5-4-2.h (LIBS_SYSTEM):
10664 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
10665
10666 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10667 * s/lynxos.h (GETPGRP_NO_ARG):
10668 * s/hpux10-20.h (NO_SIOCTL_H):
10669 * s/gnu.h (GETPGRP_NO_ARG):
10670 * s/gnu-linux.h (NO_SIOCTL_H):
10671 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10672 * s/cygwin.h (GETPGRP_NO_ARG):
10673 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
10674 (C_DEBUG_SWITCH): Remove duplicate definition.
10675
10676 * m/ibms390.h: Remove boilerplate comments.
10677
10678 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
10679
10680 * process.c (HAVE_SERIAL): Consolidate ifdefs.
10681 (wait_reading_process_output): Remove code for SunOS, platform not
10682 supported anymore. Use SOLARIS2 instead of sun.
10683
106842008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10685
10686 * font.c (font_open_by_name): Under NS, default lface height to zero.
10687 (font_open_for_lface): Under NS, set size based on frame fontsize.
10688 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
10689 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
10690
106912008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10692
10693 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
10694 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
10695 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
10696 YES/NO.
10697 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
10698 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
10699 * Makefile.in (clean): Clear out build destination dir.
10700
107012008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10702
10703 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
10704 xterm, xselect.
10705 * lisp.h: Remove declaration of hash_remove.
10706 * nsgui.h: Remove redefinitions of hash_remove.
10707 * fns.c (hash_remove): Rename to hash_remove_from_table.
10708
107092008-07-19 Seiji Zenitani <zenitani@mac.com>
10710
10711 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
10712 strdup() the family UTF8String before modifying it.
10713
107142008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10715
10716 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
10717 NS_FACE_BACKGROUND with 0 instead of nil.
10718 * nsfont.m (nsfont_draw): Same.
10719
107202008-07-19 Chong Yidong <cyd@stupidchicken.com>
10721
10722 * nsfns.m (ns_set_background_color): Fix crash.
10723
107242008-07-18 Chong Yidong <cyd@stupidchicken.com>
10725
10726 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
10727
107282008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
10729
10730 * puresize.h (BASE_PURESIZE): Increase to 1240000.
10731
107322008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10733
10734 * gtkutil.c: Include <config.h> instead of "config.h".
10735
10736 * lisp.h (Foverlay_buffer): Add EXFUN.
10737
10738 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
10739 child process to complete child_setup. Undo 2005-09-21 change.
10740
10741 * s/darwin.h: Mention setsid after vfork.
10742
107432008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10744
10745 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
10746 Depend on macgui.h.
10747
10748 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
10749 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
10750
10751 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
10752 and f19.
10753 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
10754
10755 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
10756 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
10757 Remove enumerators.
10758
10759 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
10760 Check if FACE_FROM_ID returns NULL.
10761
107622008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
10763
10764 * w32inevt.c (change_frame_size): Remove extern declaration.
10765 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
10766 change_frame_size.
10767
107682008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
10769
10770 * getloadavg.c: Revert last change (2008-07-15).
10771
107722008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
10773
10774 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 10775 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
10776 from configure.
10777
107782008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
10779
10780 * s/sol2.h:
10781 * s/sol2-4.h: Reorganize conditionals.
10782
10783 * ecrt0.c: Remove code depending on m68000, not used anymore.
10784
10785 * fns.c (hash_remove): Make static.
10786 * lisp.h (hash_remove): Don't prototype.
10787
10788 * m/ibmrs6000.h:
10789 * m/ibms390x.h:
10790 * m/macppc.h: Remove boilerplate comments.
10791
10792 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
10793 Solaris, which does not need them.
10794
10795 * m/vax.h: Remove comments about unsupported systems.
10796
10797 * s/darwin.h: Reorganize ifdefs.
10798
107992008-07-17 Andreas Schwab <schwab@suse.de>
10800
10801 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
10802
108032008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
10804
10805 Use SDATA. Follow coding convention of placing operators at
10806 beginning of next line rather than end of previous line, and placing
10807 spaces around infix operators.
10808
10809 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
10810 in case it was defined already.
10811 USE @GNUSTEP_MAKEFILES@ rather than envvars.
10812 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
10813 ns_default.
10814 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
10815 Lisp_Objects.
10816 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
10817 (ns_defined_color, ns_color_to_lisp): Declare.
10818 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
10819 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
10820 it's accepted even with USE_LISP_UNION_TYPE.
10821 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
10822 (update_frame_tool_bar): Remove apparently obsolete tests for
10823 non-integerness of f->tool_bar_lines.
10824 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
10825 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
10826 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
10827 (nsfont_open): Don't confuse NULL for Qnil.
10828 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
10829 * menu.h (find_and_call_menu_selection):
10830 * menu.c (find_and_call_menu_selection): Use just int for vector size.
10831 (find_and_return_menu_selection): Always return something.
10832 * frame.h: Include dispextern.h for Display_Info.
10833 (display_x_get_resource): Declare.
10834
108352008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
10836
10837 * syntax.c: Remove stdio.h include accidentally introduced in
10838 Emacs.app commit.
10839 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
10840 NS_IMPL_COCOA.
10841 * keyboard.c (handle_async_input, input_available_signal): Remove
10842 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
10843
108442008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
10845
10846 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
10847 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
10848 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
10849 Use SDATA.
10850
10851 * keymap.c: Remove all NS-specific code.
10852 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
10853 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
10854 where_is_preferred_modifier, return a different value depending on how
10855 preferred is the binding.
10856 (where_is_internal): Adjust accordingly.
10857 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
10858 Adjust to new preferred_sequence_p.
10859 (syms_of_keymap): Declare `where-is-preferred-modifier'.
10860 * keyboard.c (parse_solitary_modifier): Not static any more.
10861 * keyboard.h (parse_solitary_modifier): Declare.
10862
108632008-07-16 Andreas Schwab <schwab@suse.de>
10864
10865 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
10866 of easymenu.
10867
108682008-07-16 Chong Yidong <cyd@stupidchicken.com>
10869
10870 * xdisp.c (move_it_in_display_line): Account for word wrap, so
10871 that we don't move off the line.
10872
108732008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
10874
10875 * keyboard.c (Qsuper): Remove.
10876 (parse_menu_item): Don't call where_is_internal specially for NS.
10877
108782008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10879
10880 * s/gnu-linux.h: Remove boilerplate comments.
10881
10882 * m/alpha.h (__ELF__): Consolidate conditions.
10883
10884 * m/m68k.h (linux): Use GNU_LINUX instead.
10885 Remove boilerplate comments.
10886
10887 * m/intel386.h: Undo refactoring from previous change.
10888 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
10889 too, remove dead code.
10890 (linux): Use GNU_LINUX instead.
10891
108922008-07-16 Jason Rumney <jasonr@gnu.org>
10893
10894 * w32gui.h: Repeat 26 June changes lost by last change.
10895
108962008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10897
10898 * systty.h: Remove code for Aix on 386, unsupported platform.
10899
10900 * s/ms-w32.h: Remove boilerplate comments.
10901 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
10902
10903 * s/gnu-linux.h (TERM): Remove support.
10904 (HAVE_SYSVIPC): Remove, unused.
10905 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
10906 for this system.
10907
10908 * process.c: Remove support for IRIS, unused.
10909 Remove support for TERM, not relevant anymore.
10910
10911 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
10912 used with the definition.
10913
10914 * s/aix4-2.h (static): Do not undef.
10915
10916 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
10917 only used on Aix.
10918 (HAVE_SYSVIPC): Remove, unused.
10919
10920 * m/hp800.h (CANNOT_DUMP): Do not undef.
10921
10922 * m/alpha.h: Fix comment.
10923
10924 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
10925 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
10926 used by this configuration.
10927 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
10928 * unexec.c: Remove code depending on HPUX and
10929 USG_SHARED_LIBRARIES, not used with this file. Remove code
10930 depending on IRIS, unused. Remove if 0-ed code.
10931
10932 * s/template.h: Remove comments about static.
10933
10934 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
10935 Remove if 0-ed code.
10936 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
10937 were the same as the default.
10938 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
10939 Remove boilerplate comments.
10940 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
10941 (HAVE_SYSVIPC): Remove, unused.
10942 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
10943
10944 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10945 Remove boilerplate comments.
10946 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10947 Remove boilerplate comments.
10948 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10949 Remove boilerplate comments.
10950 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
10951
10952 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
10953 USG systems which do not use DATA_SEG_BITS.
10954 Refactor code. Remove boilerplate comments.
10955
10956 * m/ibms390.h:
10957 * m/m68k.h:
10958 * s/bsd-common.h:
10959 * s/cygwin.h:
10960 * s/darwin.h:
10961 * s/freebsd.h:
10962 * s/gnu.h:
10963 * s/msdos.h: Remove boilerplate comments.
10964
10965 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 10966 do not use this file.
aac0c6e3
MR
10967 (IRIS_4D): Remove, unused.
10968
10969 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 10970 do not use this file.
aac0c6e3
MR
10971 (SIGN_EXTEND_CHAR):
10972 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
10973 * unexmips.c: Remove file, unused.
10974
10975 * editfns.c (Fuser_full_name): Replace the only use of
10976 USER_FULL_NAME with its value.
10977 * config.in: Regenerate.
10978
109792008-07-16 David Reitter <david.reitter@gmail.com>
10980
10981 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
10982 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
10983
109842008-07-16 Glenn Morris <rgm@gnu.org>
10985
10986 * emacs.c (system-type): Doc fix.
10987
109882008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
10989
10990 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
10991 If the cache doesn't work, let's fix it, rather than work around it.
10992
109932008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10994
10995 * Makefile.in: Correct additions for nsfont.o in last commit.
10996 * nsfont.m: New file (forgot last commit).
10997
109982008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
10999
11000 * callproc.c (set_initial_environment): Initialize
11001 Vprocess_environment under CANNOT_DUMP (fixes crash when
11002 batch-compiling for bootstrap).
11003
110042008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 11005 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
11006
11007 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
11008 fix crash due to different init order.
11009
110102008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11011
11012 Changes and additions for NeXTstep windowing system (Cocoa and
11013 GNUstep) support.
11014
11015 * Makefile.in:
11016 * config.in: Support defines and build commands for NS port.
11017 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
11018 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
11019 * dispextern.h: Include nsgui.h and add needed typedefs under NS
11020 windowing.
11021 (struct face): Add synth_ital field.
11022 * dispnew.c: Include nsterm.h when compiling under NS windowing.
11023 (init_display): Initialize Vinitial_window_system to "ns" when so
11024 compiled.
11025 * emacs.c: Include GSConfig.h when compiling under GNUstep.
11026 (display_arg): Use under NS.
11027 (main): Under NS, allocate autorelease pool and handle command line
11028 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
11029 (standard_args): Add NS-specific args.
11030 (shut_down_emacs): Shut down NS terminal if compiled under NS.
11031 * font.c (DEFAULT_ENCODING): New variable.
11032 (font_find_for_lface): Use it.
11033 (syms_of_font): Load syms_of_nsfont under NS.
11034 * font.h: Declare nsfont_driver when compiled under NS.
11035 * fontset.c: When compiling under NS, include nsterm.h.
11036 (fontset_from_font): Autoconstruct fontset under NS.
11037 * frame.c (various): Under NS, include nsterm.h, add Qns window system
11038 symbol, document and use it.
11039 (do_switch_frame): When for_deletion under Cocoa, add
11040 Fraise_frame(Qnil).
11041 (x_set_frame_parameters): Ensure font attribute changes are picked up.
11042 (x_get_arg): Allow "yes" and "no" as boolean values.
11043 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
11044 Qright under Cocoa.
11045 (focus-follows-mouse): Default to 0 under NS.
11046 * frame.h (enum output_method): Add output_ns.
11047 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
11048 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
11049 (FRAME_WINDOW_P): NS-specific definition.
11050 * fringe.c (max_used_fringe_bitmap): Make public.
11051 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
11052 (getloadavg): Use NeXT code under descendant OS's.
11053 * image.c (includes and header section, x_create_bitmap_from_data)
11054 (x_create_bitmap_from_file, free_bitmap_record, image_background)
11055 (image_background_transparent, x_clear_image_1)
11056 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
11057 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
11058 (x_to_xcolors, x_from_xcolors, x_disable_image)
11059 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
11060 other GUIs, including XPM support using code originally written for
11061 Carbon GUI.
11062 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
11063 using NS API.
11064 (image_ascent): Use font metrics macros instead of direct struct field
11065 access.
11066 * keyboard.c (includes): Add nsterm.h when compiling under NS.
11067 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
11068 Also, handle NS as GTK for menu bar purposes.
11069 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
11070 toolkit where they differ.
11071 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
11072 use cachelist, still needed under NS.
11073 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
11074 (struct widget_value): Define it here for menu.c.
11075 * keymap.c (includes): Include modifier internals.
11076 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
11077 NS.
11078 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
11079 support for preferring sequences using certain modifiers, specified by
11080 the FIRSTONLY argument.
11081 * lisp.h (hash_remove): Rename to avoid name clash when compiling
11082 under NS GNUstep implementation.
11083 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
11084 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
11085 * menu.c: Include nsterm.h under NS.
11086 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
11087 (free_menubar_widget_tree_value, update_submenu_strings)
11088 (find_and_call_menu_selection): Treat NS as X and NT.
11089 (find_and_return_menu_selection): New function, used for popup menus.
11090 * nsgui.h:
11091 * nsterm.h:
11092 * nsfns.m:
11093 * nsimage.m:
11094 * nsmenu.m:
11095 * nsselect.m:
11096 * nsterm.m: New files.
11097 * process.c (wait_reading_process_output): Under NS, call ns_select()
11098 instead of plain select().
11099 * syntax.c (char_quoted): Under NS, avoid a crash when called near
11100 beginning of buffer.
11101 * sysselect.h (init_process): Rename when compiling under Cocoa to
11102 avoid name conflict.
11103 * termhooks.h (display_info): Add ns_display_info to union.
11104 * terminal.c (Fterminal_live_p): Add ns to terminal types.
11105 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
11106 COCOA environment.
11107 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
11108 unexec() signature. (Note, this will dump, but the resulting file
11109 crashes; unexosx is used instead; keeping around for reference and
11110 possible aid in getting dump working under GNUstep.)
11111 * w32gui.h (button_type, widget_value): Remove definitions (now in
11112 keyboard.h).
11113 * window.c: Include nsterm.h when compiling under NS.
11114 * xdisp.c (includes): Include nsterm.h when compiling under NS.
11115 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
11116 other GUI windowing systems.
11117 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
11118 GTK.
11119 (x_consider_frame_title): Under NS, set icon type and frame
11120 modified-state indicator; use ns_set_name_as_filename() when using
11121 formatted title.
11122 (update_window_cursor): Make public when compiling under NS.
11123 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
11124 (hourglass_atimer, Vhourglass_delay
11125 * xfaces.c (header section, init_frame_faces, clear_font_table)
11126 (defined_color, unload_color, x_face_list_fonts)
11127 (prepare_face_for_display): Add NS support parallel to other GUIs.
11128 Emulate GCs like other non-X GUIs.
11129 (split_font_name): Don't lowercase font name under NS.
11130 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
11131 under NS.
11132 * s/darwin.h: Add support for compilation under NS.
11133
111342008-07-15 Jason Rumney <jasonr@gnu.org>
11135
11136 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
11137 (w32_show_hourglass): Rename from show_hourglass.
11138 (w32_hide_hourglass): Rename from hide_hourglass.
11139 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
11140 (Vhourglass_delay): Declare extern.
11141 (hourglass_started): Remove.
11142
11143 * xdisp.c (Vhourglass_delay): Remove static.
11144 (hourglass_started, start_hourglass, cancel_hourglass):
11145 Don't include these versions on WINDOWSNT.
11146
111472008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11148
11149 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
11150 variables (formerly in xfns.c).
11151 (show_hourglass, hide_hourglass): New prototypes (same).
11152 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
11153 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
11154 in xfns.c).
11155 (syms_of_xdisp): Declare/initialize display-hourglass,
11156 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
11157 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
11158 formerly in xfns.c.
11159 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
11160 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
11161 (start_hourglass, cancel_hourglass): Remove.
11162 (show_hourglass, hide_hourglass): Remove prototypes and static
11163 modifiers.
11164 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
11165 hourglass_atimer, hourglass_shown_p declaration/initialization.
11166 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
11167 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
11168 (start_hourglass, cancel_hourglass): Remove.
11169 (show_hourglass, hide_hourglass): Remove prototypes and static
11170 modifiers.
11171 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
11172 hourglass_atimer, hourglass_shown_p declaration/initialization.
11173 * w32fns.c (display_hourglass_p, Vhourglass_delay)
11174 (DEFAULT_HOURGLASS_DELAY): Remove.
11175 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
11176 hourglass_shown_p declaration/initialization.
11177
111782008-07-14 Jason Rumney <jasonr@gnu.org>
11179
11180 * w32fns.c (w32_get_arg): Remove wrapper function.
11181 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
11182 directly.
11183 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
11184
111852008-07-14 Kenichi Handa <handa@m17n.org>
11186
11187 * xfont.c (xfont_open): Add workaround for X's bug.
11188
111892008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
11190
11191 * fontset.c: Include <stdio.h> unconditionally.
11192
111932008-07-13 Michael Albinus <michael.albinus@gmx.de>
11194
11195 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
11196 for filtering.
11197
111982008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
11199
11200 * s/vms.h: Use __GNUC__ instead of _GNUC_.
11201
11202 * m/macppc.h:
11203 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
11204
11205 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
11206 (SPECIAL_EMACS_INT):
11207 * m/ia64.h (SPECIAL_EMACS_INT):
11208 * m/amdx86-64.h (SPECIAL_EMACS_INT):
11209 * s/gnu.h (NLIST_STRUCT):
11210 * s/aix4-2.h (X11R5_INHIBIT_I18N):
11211 * s/gnu-linux.h (LINUX):
11212 * s/msdos.h (HAVE_FACES):
11213 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
11214
11215 * systty.h:
11216 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
11217 anymore.
11218
112192008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
11220
11221 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
11222 always defined as int.
11223
11224 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
11225 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
11226 * s/gnu-linux.h (HAVE_WAIT_HEADER):
11227 * s/freebsd.h (HAVE_WAIT_HEADER):
11228 * s/bsd-common.h (HAVE_UNION_WAIT):
11229 * s/aix4-2.h (HAVE_WAIT_HEADER):
11230 * m/mips.h (HAVE_UNION_WAIT):
11231 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
11232 (COFF, static): Do not define, they are undefined later in the file.
11233
11234 * process.c (update_status): Don't use a union.
11235 (status_convert):
11236 (sigchld_handler): Use int instead of WAITTYPE.
11237
112382008-07-12 Chong Yidong <cyd@stupidchicken.com>
11239
11240 * indent.c (Fvertical_motion): Restore hscroll before moving to
11241 goal column.
11242
112432008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
11244
11245 * lisp.h: Remove left over code.
11246
112472008-07-11 Andreas Schwab <schwab@suse.de>
11248
11249 * lisp.h: Fix logic in last change.
11250
11251 * menu.h: New file.
11252 * menu.c: Include it.
11253 * xmenu.c: Likewise.
11254 * Makefile.in: Update dependencies.
11255
112562008-07-11 Kenichi Handa <handa@m17n.org>
11257
11258 * fontset.c (fontset_from_font): Cancel the previous change.
11259
112602008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
11261
11262 * lisp.h:
11263 * w32heap.c:
11264 * emacs.c:
11265 * alloc.c: Replace all references of NO_UNION_TYPE with
11266 USE_LISP_UNION_TYPE.
11267
11268 * m/xtensa.h (NO_UNION_TYPE):
11269 * m/vax.h (NO_UNION_TYPE):
11270 * m/template.h (NO_UNION_TYPE):
11271 * m/sparc.h (NO_UNION_TYPE):
11272 * m/mips.h (NO_UNION_TYPE):
11273 * m/macppc.h (NO_UNION_TYPE):
11274 * m/m68k.h (NO_UNION_TYPE):
11275 * m/iris4d.h (NO_UNION_TYPE):
11276 * m/intel386.h (NO_UNION_TYPE):
11277 * m/ibms390x.h (NO_UNION_TYPE):
11278 * m/ibms390.h (NO_UNION_TYPE):
11279 * m/ibmrs6000.h (NO_UNION_TYPE):
11280 * m/ia64.h (NO_UNION_TYPE):
11281 * m/hp800.h (NO_UNION_TYPE):
11282 * m/arm.h (NO_UNION_TYPE):
11283 * m/amdx86-64.h (NO_UNION_TYPE):
11284 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
11285 defining it the same.
11286
112872008-07-10 Chong Yidong <cyd@stupidchicken.com>
11288
11289 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
11290
112912008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
11292
11293 * fileio.c:
50426a04 11294 * sysdep.c:
aac0c6e3
MR
11295 * systty.h:
11296 * m/ibmrs6000.h:
11297 * m/iris4d.h:
11298 * s/aix4-2.h:
11299 * s/freebsd.h:
11300 * s/gnu-linux.h:
11301 * s/hpux10-20.h:
11302 * s/hpux11.h:
11303 * s/netbsd.h:
11304 * s/sol2-3.h:
11305 * s/sol2-4.h:
11306 * s/sol2.h:
11307 * s/usg5-4.h:
11308 * s/vms.h: Remove references to unused variables.
11309
113102008-07-10 Andreas Schwab <schwab@suse.de>
11311
11312 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
11313 pattern before matching the generic family.
11314
113152008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
11316
11317 * unexec.c:
11318 * s/vms.h:
11319 * s/usg5-4-2.h:
11320 * s/sol2-5.h:
11321 * s/freebsd.h:
11322 * s/darwin.h: Remove dead code.
11323
11324 * m/template.h:
11325 * m/sparc.h:
11326 * m/mips.h:
11327 * m/m68k.h:
11328 * m/iris4d.h:
11329 * m/intel386.h:
11330 * m/ibms390x.h:
11331 * m/ibms390.h:
11332 * m/ia64.h:
11333 * m/hp800.h:
11334 * m/arm.h:
11335 * m/amdx86-64.h: Remove dead code and references to unused
11336 and compiler defined symbols.
11337
11338 * unexmips.c:
11339 * unexelf.c: Remove references to desupported systems.
11340
11341 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
11342
11343 * m/powermac.h: Remove boilerplate comments.
11344 (NO_REMAP): Remove unused definition.
11345
11346 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
11347 define them.
11348
113492008-07-10 Kenichi Handa <handa@m17n.org>
11350
11351 * xfont.c (xfont_open): Log the reason of failure.
11352
113532008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
11354
11355 * fontset.c (fontset_get_font_group):
11356 * font.c (font_check_otf): Specify argument types.
11357
113582008-07-09 Kenichi Handa <handa@m17n.org>
11359
11360 * coding.c (detect_coding_utf_8): Set detect_info->found only when
11361 non-ASCII char is found.
11362
11363 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
11364 (reorder_font_vector): Change the arg preferred_family to font.
11365 Prefer the spec matching with font.
11366 (fontset_get_font_group): New function.
11367 (fontset_find_font): Change the format of an element of a realized
11368 fontset. Use fontset_get_font_group.
11369 (fontset_font): Try the current fontset, the default fontset, the
11370 fallbacks of the current fontset, and the fallbacks of the default
11371 fontset in this order.
11372 (face_for_char): Delete the shortcut to use the current font.
11373 (fontset_from_font): Don't set fonts for Latin in the fontset.
11374
11375 * font.h (font_make_object, font_match_p): Adjust prototypes.
11376
11377 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
11378
11379 * font.c (font_make_object): New arg entity and pixelsize.
11380 (font_check_otf_features, font_check_otf): New functions.
11381 (font_match_p): Check :lang, :script, and :otf properties.
11382
11383 * xfont.c (xfont_open): Adjust it for the change of
11384 font_make_object.
11385 (xfont_text_extents): Fix initial setting of metrics.
11386
11387 * ftfont.c (struct ftfont_info): New member index, delete member
11388 fc_charset_idx. Make the member order compatible with struct
11389 xftfont_info.
11390 (fc_charset_table): Change charset names to registry names.
11391 (ftfont_pattern_entity): Delete the args registry and
11392 fc_charset_idx. Change the value of :font-entity property
11393 to (FONTNAME . INDEX). Always set :registry property to
11394 `iso10646-1'.
11395 (struct ftfont_cache_data): New struct.
11396 (ftfont_lookup_cache): New arg for_face.
11397 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
11398 (ftfont_driver): Set the member otf_capability.
11399 (ftfont_get_charset): Adjust it for the change of
11400 fc_charset_table.
11401 (OTF_TAG_SYM): New macro.
11402 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
11403 for the change of fc_charset_table.
11404 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
11405 ftfont_pattern_entity. Add FC_INDEX to objset.
11406 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
11407 and ftfont_pattern_entity.
11408 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
11409 font_make_object, struct ftfont_info.
11410 (ftfont_has_char): Use ftfont_get_fc_charset.
11411 (ftfont_otf_features, ftfont_otf_capability): New functions.
11412 (ftfont_shape): Use ftfont_get_otf.
11413 (ftfont_text_extents): Fix initial setting of metrics.
11414
11415 * xftfont.c (struct xftfont_info): New member ft_size. Make the
11416 member order compatible with struct ftfont_info.
11417 (xftfont_open): Add FC_CHARSET to the pattern. Set
11418 xftfont_info->ft_size. Don't unlock the face. Check BDF
11419 properties if appropriate.
11420 (xftfont_close): Unlock the face.
11421 (xftfont_anchor_point, xftfont_shape): Deleted.
11422 (syms_of_xftfont): Don't set members anchor_point and shape of
11423 xftfont_driver.
11424
11425 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
11426 font_make_object.
11427
11428 * w32font.c (w32font_open): Adjust it for the change of
11429 font_make_object.
11430 (w32font_open_internal): Don't set properties of font_object here.
11431
114322008-07-08 Chong Yidong <cyd@stupidchicken.com>
11433
11434 * macfns.c (x_create_tip_frame):
11435 * w32fns.c (x_create_tip_frame):
11436 * xfns.c (x_create_tip_frame): Pass parameter argument to
11437 face-set-after-frame-default.
11438
11439 * xfaces.c (Finternal_merge_in_global_face): Save merged
11440 attributes for the default face back into the face vector.
11441
114422008-07-08 Andreas Schwab <schwab@suse.de>
11443
11444 * fontset.h: Declare fontset_from_font. Don't declare
11445 new_fontset_from_font and fontset_from_font_name.
11446 * xterm.c: Include "fontset.h".
11447 * Makefile.in (xterm.o): Update dependencies.
11448
114492008-07-08 Glenn Morris <rgm@gnu.org>
11450
11451 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
11452 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
11453
114542008-07-07 Chong Yidong <cyd@stupidchicken.com>
11455
11456 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
11457 (x_set_frame_parameters): Don't bind it.
11458
114592008-07-07 Juanma Barranquero <lekktu@gmail.com>
11460
11461 * w32fns.c (map_w32_filename): Declare extern.
11462
114632008-07-07 Jason Rumney <jasonr@gnu.org>
11464
11465 * w32term.c (WS_EX_LAYERED): Define if not already.
11466
114672008-07-06 Chong Yidong <cyd@stupidchicken.com>
11468
11469 * xfaces.c (set_font_frame_param): Don't try to set the font
11470 parameter if it is still unspecified in the lface.
11471
114722008-07-05 Chong Yidong <cyd@stupidchicken.com>
11473
11474 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
11475 face if it didn't already exist.
11476
11477 * xdisp.c (try_window_id): Give up if word-wrapping is on.
11478
114792008-07-05 Andreas Schwab <schwab@suse.de>
11480
11481 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
11482
114832008-07-05 Chong Yidong <cyd@stupidchicken.com>
11484
11485 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
11486 word-wrapping.
11487 (IT_DISPLAYING_WHITESPACE): New macro.
11488 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
11489 when word-wrapping. Simplify word-wrapping logic. Use correct
11490 pixel positions when saving copies of the iterator.
11491 (display_line): Use proper wrap point if the last character on a
11492 line was preceded by whitespace.
11493
114942008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
11495
11496 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
11497
114982008-07-04 Kenichi Handa <handa@m17n.org>
11499
11500 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
11501
11502 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
11503
115042008-07-02 Jason Rumney <jasonr@gnu.org>
11505
11506 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 11507 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
11508
11509 * xdisp.c (next_element_from_display_vector): Move assignment out
11510 of if statement.
11511
115122008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
11513
11514 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
11515
11516 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
11517 (syms_of_fileio): Initialize and export them.
11518 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
11519
11520 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
11521 (Fsystem_move_file_to_trash): New function.
11522 (syms_of_w32fns): Export it to lisp.
11523
115242008-07-01 Jason Rumney <jasonr@gnu.org>
11525
11526 * w32font.c (w32font_text_extents): Don't count overhang as part
11527 of width.
11528
115292008-06-30 Miles Bader <miles@gnu.org>
11530
11531 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
11532 Add `avoid_cursor_p' field.
11533
11534 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
11535 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
11536 (append_glyph, append_composite_glyph, produce_image_glyph)
11537 (append_stretch_glyph): Initialize avoid_cursor_p.
11538 (get_it_property): Rename from `get_line_height_property'.
11539 (x_produce_glyphs): Use get_it_property.
11540 (handle_line_prefix, push_display_prop): New functions.
11541 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
11542 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
11543 New variables.
11544 (syms_of_xdisp): Initialize them.
11545
115462008-06-30 Kenichi Handa <handa@m17n.org>
11547
11548 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
11549 XftDefaultSubstitute (they are called in XftFontMatch).
11550 (xftfont_open): Fix args to ftfont_font_format.
11551
11552 * ftfont.c (fc_charset_table): New member lang.
11553 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 11554 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
11555 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
11556 (ftfont_open): Fix args to ftfont_font_format.
11557 (ftfont_font_format): New arg filename.
11558
115592008-06-30 Chong Yidong <cyd@stupidchicken.com>
11560
11561 * xfaces.c (Finternal_merge_in_global_face): If default face was
11562 modified, realize it again. Update the font face attribute.
11563
115642008-06-29 Jason Rumney <jasonr@gnu.org>
11565
11566 * w32term.c (x_set_frame_alpha): Fix logic.
11567
115682008-06-29 Kenichi Handa <handa@m17n.org>
11569
11570 * fontset.c (Finternal_char_font): Return font-object instead of
11571 font-name.
11572
11573 * composite.c (get_composition_id): Fix the width calculation for TAB.
11574
115752008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
11576
11577 * indent.c (Fvertical_motion): Properly handle float column arg.
11578
115792008-06-28 Jason Rumney <jasonr@gnu.org>
11580
11581 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
11582 (pfnSetLayeredWindowAttributes): New function pointer.
11583 (w32_initialize): Initialize it when supported.
11584 (x_set_frame_alpha): New function.
11585
11586 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
11587 (w32_frame_parm_handlers): Set alpha handler.
11588
11589 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
11590
115912008-06-27 Jason Rumney <jasonr@gnu.org>
11592
11593 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
11594 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
11595 (w32_to_x_charset, x_to_w32_charset)
11596 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
11597 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
11598 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
11599 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
11600 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
11601 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
11602 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
11603 (Qw32_charset_unicode): Remove.
11604 (syms_of_w32fns): Update for above changes.
11605
11606 * w32font.c (w32_to_x_charset, x_to_w32_charset)
11607 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
11608 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
11609 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
11610 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
11611 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
11612 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
11613 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
11614 (syms_of_w32font): Update for above changes.
11615
116162008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
11617
11618 * s/usg5-4.h: Fix previous change: keep the correct branch of a
11619 removed #if.
11620 (USG_SHARED_LIBRARIES): Remove duplicate definition.
11621
116222008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 11623 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
11624
11625 * makefile.w32-in (LOCAL_FLAGS):
11626 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
11627
11628 * sysdep.c (_spawnlp, _getpid):
11629 Declare with explicit _cdecl instead of _CRTAPI1.
11630
11631 * editfns.c (Fget_internal_run_time):
11632 Check for WINDOWSNT with #ifdef, not #if.
11633
116342008-06-26 Jason Rumney <jasonr@gnu.org>
11635
11636 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
11637
11638 * w32term.c (x_draw_glyph_string_foreground)
11639 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
11640 Use FONT_HANDLE macro.
11641 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
11642
11643 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
11644 (uniscribe_encode_char): Use FONT_HANDLE macro.
11645
11646 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
11647 (w32font_text_extents): Use precast w32_font.
11648 (w32font_close): Free cached metrics.
11649 (w32font_open_internal): Allocate space for name on stack.
11650
116512008-06-26 Chong Yidong <cyd@stupidchicken.com>
11652
11653 * xdisp.c (extend_face_to_end_of_line): Fix last change.
11654
116552008-06-26 Jason Rumney <jasonr@gnu.org>
11656
11657 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
11658 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
11659
116602008-06-26 Juanma Barranquero <lekktu@gmail.com>
11661
11662 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
11663
116642008-06-26 Jason Rumney <jasonr@gnu.org>
11665
11666 * w32bdf.c, w32bdf.h: Remove obsolete files.
11667
11668 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
11669
11670 * w32gui.h: Don't include w32bdf.h.
11671 (XCharStruct, enum w32_char_font_type, W32FontStruct):
11672 Remove obsolete font support.
11673
11674 * w32font.h (struct w32font_info): Remove compat_w32_font.
11675 Add hfont member.
11676 (FONT_COMPAT): Remove obsolete macro.
11677
11678 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
11679 (w32font_encode_char, w32font_text_extents): Use new hfont member.
11680 (w32font_open_internal): Remove compat code. Set new hfont member.
11681 (Fx_select_font): Use new hfont member.
11682
11683 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
11684 (uniscribe_encode_char): Use new hfont member.
11685
11686 * w32term.c (x_draw_glyph_string_foreground)
11687 (x_draw_composite_glyph_string_foreground): Use new hfont member.
11688 (x_draw_glyph_string): Use metrics in w32font_info.
11689
116902008-06-26 Kenichi Handa <handa@m17n.org>
11691
11692 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
11693
116942008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
11695
11696 * unexnext.c:
11697 * m/ews4800.h:
11698 * m/hp9000s300.h:
11699 * m/ibm370aix.h:
11700 * m/mips-siemens.h:
11701 * m/ncr386.h:
11702 * m/next.h:
11703 * m/pmax.h:
11704 * m/powerpcle.h:
11705 * m/tandem-s2.h:
11706 * s/386bsd.h:
11707 * s/bsd386.h:
11708 * s/bsd4-1.h:
11709 * s/bsd4-2.h:
11710 * s/bsdos2-1.h:
11711 * s/bsdos2.h:
11712 * s/bsdos3.h:
11713 * s/bsdos4.h:
11714 * s/nextstep.h:
11715 * s/ultrix4-3.h:
11716 * s/usg5-0.h:
11717 * s/usg5-2-2.h:
11718 * s/usg5-2.h:
11719 * s/usg5-4-3.h:
11720 * s/ux4800.h:
11721 * s/uxpds.h:
11722 * s/uxpv.h: Remove support for obsolete systems.
11723 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 11724 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
11725 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
11726 Remove, insert contents in s/aix4-2.h.
11727 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
11728 * s/bsd4-3.h: Rename to ...
11729 * s/bsd-common.h: ... this.
11730 * data.c:
11731 * doc.c:
11732 * ecrt0.c:
11733 * emacs.c:
11734 * fileio.c:
11735 * floatfns.c:
11736 * keyboard.c:
11737 * mem-limits.h:
11738 * print.c:
11739 * process.c:
11740 * sysdep.c:
11741 * syssignal.h:
11742 * systty.h:
11743 * syswait.h:
11744 * term.c:
11745 * unexec.c:
11746 * unexelf.c:
11747 * unexhp9k800.c:
11748 * m/hp800.h:
11749 * m/ibmrs6000.h:
11750 * m/mips.h:
11751 * m/vax.h:
11752 * s/darwin.h:
11753 * s/freebsd.h:
11754 * s/gnu.h:
11755 * s/ms-w32.h:
11756 * s/msdos.h:
11757 * s/netbsd.h:
11758 * s/template.h: Remove references to obsolete variables.
11759
11760 * Makefile.in: Add dependencies for all unexec files.
11761 (admindir): Remove unused variable.
11762 (UNEXEC_SRC): Remove references.
11763
117642008-06-25 Chong Yidong <cyd@stupidchicken.com>
11765
11766 * xfns.c (x_default_font_parameter): If Xft is available, first
11767 try Monospace-12 for the default font.
11768
117692008-06-25 Jason Rumney <jasonr@gnu.org>
11770
11771 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
11772
117732008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
11774
11775 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
11776
11777 * buffer.c (syms_of_buffer): Remove default-word-wrap.
11778
117792008-06-25 Juanma Barranquero <lekktu@gmail.com>
11780
11781 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
11782 <scroll-conservatively>: Fix typo in docstring.
11783
11784 * xselect.c (Fx_send_client_event): Doc fix.
11785
117862008-06-25 Kenichi Handa <handa@m17n.org>
11787
11788 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
11789
11790 * font.c (font_parse_fcname): Remove unused variables.
11791 (font_sort_entites): Delete the arg SPEC. Caller changed.
11792 Fix for the case of ! best_only.
11793 (font_delete_unmatched): Check DPI and AVGWIDTH too.
11794
11795 * lisp.h (Fstring_to_unibyte): EXFUN it.
11796
11797 * character.h (str_to_unibyte): Extern it.
11798
11799 * character.c (str_to_unibyte): New function.
11800
11801 * fns.c (Fstring_to_unibyte): New function.
11802 (syms_of_fns): Defsubr it.
11803
118042008-06-24 Kenichi Handa <handa@m17n.org>
11805
11806 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
11807 DPI too.
11808 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
11809
118102008-06-24 Andreas Schwab <schwab@suse.de>
11811
11812 * Makefile.in (${lispsource}loaddefs.el): Rename from
11813 ../lisp/loaddefs.el.
11814 (bootstrap-clean): Do what distclean does but don't remove
11815 Makefile.
11816 (distclean): Depend on bootstrap-clean and remove Makefile.
11817
118182008-06-24 Chong Yidong <cyd@stupidchicken.com>
11819
11820 * buffer.h (struct buffer): New member word_wrap.
11821
11822 * buffer.c (syms_of_buffer): New variables default-word-wrap and
11823 word-wrap.
11824 (init_buffer_once): Initialize them.
11825
11826 * dispextern.h (struct it): Replace bool truncate_lines_p with a
11827 line_wrap enum possessing three possible values.
11828
11829 * termopts.h: Replace truncate_partial_width_windows with
11830 Vtruncate_partial_width_windows.
11831
11832 * dispnew.c (direct_output_for_insert): Avoid direct output when
11833 inserting a space with word wrap on.
11834
11835 * indent.c (compute_motion): Obey integer values of
11836 truncate-partial-width-windows.
11837
11838 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
11839 replacing truncate_partial_width_windows.
11840 (init_iterator): If Vtruncate_partial_width_windows is an integer,
11841 truncate only if the window width is below that integer.
11842 (start_display, resize_mini_window, produce_stretch_glyph)
11843 (display_string, move_it_in_display_line_to): Use line_wrap.
11844 (back_to_previous_visible_line_start, reseat_1): Reset
11845 string_from_display_prop_p.
11846 (display_line): Extend default face to end of line when wrapping.
11847
118482008-06-24 Kim F. Storm <storm@cua.dk>
11849
11850 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
11851 to wrap continued lines at word boundaries.
11852
118532008-06-24 Jason Rumney <jasonr@gnu.org>
11854
11855 * font.c (Ffont_face_attributes): Multiply pixel size before point
11856 conversion to avoid multiplying rounding error.
11857
118582008-06-23 Jason Rumney <jasonr@gnu.org>
11859
11860 * w32term.c (x_draw_glyph_string_background)
11861 (x_draw_glyph_string): Remove old bdf font code.
11862
11863 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
11864
118652008-06-22 Kenichi Handa <handa@m17n.org>
11866
11867 * font.c (font_find_for_lface): Try the adstyle specified in
11868 the property of LFACE_FONT of LFACE (if any).
11869
118702008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 11871 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
11872
11873 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
11874
118752008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
11876
11877 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
11878 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
11879 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
11880 (witness-emacs): Remove.
11881 (lisp, shortlisp): Move loaddefs.el earlier.
11882 (mostlyclean): Forget about witness-emacs.
11883
118842008-06-22 Glenn Morris <rgm@gnu.org>
11885
11886 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
11887 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
11888
118892008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11890
11891 * Makefile.in (PRECOMP): Remove.
11892 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
11893 (witness-emacs): Run `compile-first'.
11894 (.el.elc): Use the new compile-onefile target.
11895
118962008-06-21 Kenichi Handa <handa@m17n.org>
11897
11898 * xftfont.c (xftfont_open): Handle QCembolden only when
11899 FC_EMBOLDEN is defined.
11900
119012008-06-21 Andreas Schwab <schwab@suse.de>
11902
11903 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
11904 (.el.elc): Likewise.
11905
119062008-06-21 Miles Bader <miles@gnu.org>
11907
11908 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
11909 build dir, not the lisp source dir.
11910
119112008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11912
11913 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
11914 (bootstrapclean): Remove.
11915 (.el.elc): New rule.
11916 (PRECOMP): New var.
11917 (../lisp/subdirs.el): Remove.
11918 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
11919 (witness-emacs): New target.
11920 (mostlyclean): Remove witness-emacs as well.
11921 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
11922 Add witness-emacs dependency.
11923
119242008-06-20 Chong Yidong <cyd@stupidchicken.com>
11925
11926 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
11927 defined by the font.
11928
119292008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11930
11931 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
11932 (bootstrap-clean): New target that keeps TAGS around.
11933 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
11934 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
11935
119362008-06-20 Jason Rumney <jasonr@gnu.org>
11937
11938 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
11939 Remove obsolete font code.
11940
11941 * w32font.c (font_matches_spec): Use csb bitfield from font signature
11942 to determine language support.
11943
119442008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11945
11946 * sysdep.c (cfsetspeed): New fun extracted from the code.
11947 (cfmakeraw): Move before first use.
11948
119492008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
11950
11951 * sysdep.c (cfmakeraw): Provide fallback implementation.
11952 (serial_configure): Provide fallback implementation of cfsetspeed.
11953
119542008-06-20 Kenichi Handa <handa@m17n.org>
11955
11956 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
11957 the pattern.
11958
11959 * fontset.c (fontset_from_font): Copy font_spec before changing
11960 the elements.
11961
11962 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
11963
119642008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11965
11966 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
11967 for explicit `font' parameters.
11968
11969 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
11970
119712008-06-19 Kenichi Handa <handa@m17n.org>
11972
11973 * frame.c: Include <ctype.h>.
11974 (x_set_font_backend): Allow spacing characters in the X resource
11975 for FontBackend.
11976
119772008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
11978
11979 * w32fns.c, xfns.c (Qfont_param): New var.
11980 (syms_of_w32fns): Initialize it.
11981 (x_default_font_parameter): Record explicit `font' into
11982 `font-parameter'.
11983
119842008-06-18 Kenichi Handa <handa@m17n.org>
11985
11986 * font.c (font_parse_xlfd): Fix previous change.
11987 (font_parse_fcname): Don't use :fc-unknown-spec.
11988 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
11989 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
11990 (font_add_log): Prepend the driver name to the resulting fonts.
11991
11992 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
11993 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
11994 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
11995
11996 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
11997 (QCembolden): New variables.
11998 (syms_of_xftfont): DEFSYM them.
11999 (xftfont_open): Call XftFontMatch. Don't trust the result of
12000 XftTextExtents8 if the pixel_size is less than 5.
12001
120022008-06-18 Andreas Schwab <schwab@suse.de>
12003
12004 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
12005 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
12006
120072008-06-18 Jason Rumney <jasonr@gnu.org>
12008
12009 * w32font.c (w32font_list, w32font_match): Add logging.
12010
12011 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
12012
120132008-06-17 Chong Yidong <cyd@stupidchicken.com>
12014
12015 * font.c (font_parse_fcname): Store divider characters for
12016 unknown-spec list. For known key symbols, intern using correct
12017 symbol name.
12018
120192008-06-17 Kenichi Handa <handa@m17n.org>
12020
12021 * xfaces.c (realize_default_face): If the frame is not on window
12022 system, set the fontset of face to nil.
12023
120242008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
12025
12026 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
12027
120282008-06-16 Juanma Barranquero <lekktu@gmail.com>
12029
12030 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
12031 (build_font_name_from_vector): Delete externs.
12032
12033 * xfaces.c (struct font_name): Don't declare.
12034
120352008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
12036
12037 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
12038
120392008-06-16 Chong Yidong <cyd@stupidchicken.com>
12040
12041 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
12042
120432008-06-16 Juanma Barranquero <lekktu@gmail.com>
12044
12045 * font.c (Ffont_spec): Fix usage in docstring.
12046 (Ffont_face_attributes): Doc fix.
12047
120482008-06-16 Andreas Schwab <schwab@suse.de>
12049
12050 * font.c (Ffont_face_attributes): Fix definition.
12051
120522008-06-16 Jason Rumney <jasonr@gnu.org>
12053
12054 * font.h (font_style_symbolic_from_value): Remove.
12055
12056 * font.c (font_style_symbolic_from_value): Remove.
12057 (font_style_symbolic): Revert to pre 2008-06-13 version.
12058
12059 * w32font.c (w32_to_fc_weight): New function.
12060 (w32font_full_name, logfont_to_fcname): Use it.
12061
120622008-06-16 Kenichi Handa <handa@m17n.org>
12063
12064 * font.c (font_check_object): Delete it.
12065 (font_clear_cache): Check if a font-object is alive.
12066 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
12067 font-object to nil.
12068 (font_close_object): Don't check FONT_CLOSE_OBJECT.
12069 (font_at): Don't call font_check_object.
12070 (Ffont_get): Return a symbol for :weight, :slant, and :width.
12071
120722008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
12073
12074 * puresize.h (BASE_PURESIZE): Increase to 1230000.
12075
120762008-06-16 Chong Yidong <cyd@stupidchicken.com>
12077
12078 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
12079
120802008-06-15 Chong Yidong <cyd@stupidchicken.com>
12081
12082 * font.c (font_parse_fcname): Only one decimal point.
12083 (font_unparse_fcname): Handle data in family and foundry indices
12084 as symbols, not strings.
12085 (font_unparse_gtkname, Ffont_face_attributes): New functions.
12086
12087 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
12088
12089 * font.h (font_unparse_gtkname): Add prototype.
12090
120912008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
12092
12093 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
12094
120952008-06-15 Andreas Schwab <schwab@suse.de>
12096
12097 * font.c (font_update_drivers): Fix crash when no drivers match.
12098
120992008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
12100
12101 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
12102 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
12103
121042008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
12105
12106 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
12107
121082008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
12109
12110 * process.c (Fserial_process_configure, Fprocess_send_eof):
12111 Use EQ to compare Lisp_Objects.
12112
121132008-06-13 Jason Rumney <jasonr@gnu.org>
12114
12115 * w32fns.c (Fw32_select_font): Remove old font API function.
12116
12117 * w32font.c (logfont_to_fcname): New function.
12118 (Fx_select_font): New font dialog function compatible with
12119 GTK/fontconfig version.
12120
12121 * font.c (font_style_symbolic_from_value): New function.
12122 (font_style_symbolic): Use it.
12123
12124 * font.h (font_style_symbolic_from_value): Declare new function.
12125
121262008-06-13 Juanma Barranquero <lekktu@gmail.com>
12127
12128 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
12129 <font-width-table>: Fix typos in docstrings.
12130
121312008-06-13 Daniel Engeler <engeler@gmail.com>
12132
12133 These changes add serial port access.
12134 * process.c: Add HAVE_SERIAL.
12135 (Fdelete_process, Fprocess_status, Fset_process_buffer)
12136 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
12137 (list_processes_1, select_wrapper, Fstop_process)
12138 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
12139 (status_notify): Modify to handle serial processes.
12140 [HAVE_SERIAL] (Fserial_process_configure)
12141 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
12142 New functions.
12143 * process.h (struct Lisp_Process): Add `type'.
12144 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
12145 New functions.
12146 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
12147 serial ports.
b71ac3dd 12148 (serial_open, serial_configure): New functions.
aac0c6e3
MR
12149 * w32.h: Add FILE_SERIAL.
12150 (struct _child_process): Add ovl_read, ovl_write.
12151
121522008-06-13 Kenichi Handa <handa@m17n.org>
12153
12154 * dispextern.h (enum lface_attribute_index): New member
12155 LFACE_FOUNDRY_INDEX.
12156
12157 * font.c (font_score): Delete arg alternate_families. Check only
12158 weight, slant, width, and size. Ignore the difference of alias
12159 style symbols.
12160 (font_sort_entites): Adjust for the above change. Reflect the
12161 order of font-driver to scores.
12162 (font_list_entities): Don't check alternate_familes here.
12163 (font_clear_prop): Handle foundry.
12164 (font_update_lface): Don't parse "foundry-family" form here.
12165 Handle FONT_FOUNDRY_INDEX.
12166 (font_find_for_lface): Likewise. Handle alternate families here.
12167 If registry is nil, try iso8859-1 and ascii-0.
12168 (font_open_for_lface): Pay attention to size in ENTITY.
12169 (font_open_by_name): Simplify by calling font_load_for_lface.
12170 (free_font_driver_list): Delete it.
12171 (font_update_drivers): Preserve the order of backends.
12172 (syms_of_font): Setting of sort_shift_bits adjusted for the change
12173 of font_score and font_sort_entites.
12174 (font_update_sort_order): Likewise.
12175
12176 * xfaces.c (LFACE_FOUNDRY): New macro.
12177 (check_lface_attrs): Check foundry.
12178 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
12179 (merge_face_vectors): Check foundry.
12180 (merge_face_ref): Likewise.
12181 (Finternal_set_lisp_face_attribute): Likewise.
12182 (x_update_menu_appearance): Likewise.
12183 (Finternal_get_lisp_face_attribute): Likewise.
12184 (lface_hash): Likewise.
12185 (lface_same_font_attributes_p): Likewise.
12186 (x_supports_face_attributes_p): Likewise.
12187 (tty_supports_face_attributes_p): Likewise.
12188 (Finternal_set_alternative_font_family_alist): Intern strings.
12189 (Finternal_set_alternative_font_registry_alist): Downcase strings.
12190 (realize_default_face): Set LFACE_FOUNDRY (lface).
12191
12192 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
12193 font-driver at first.
12194
12195 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
12196
121972008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12198
12199 * lread.c (Fload): Use xfree, not free on saved_doc_string.
12200
122012008-06-12 Jim Meyering <meyering@redhat.com>
12202
12203 Make unexec_free handle NULL the same way free does.
12204 * unexmacosx.c (unexec_free): Ignore a NULL argument.
12205
122062008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
12207
12208 * character.h (CHAR_TO_BYTE_SAFE): New macro.
12209 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
12210 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
12211 (WEAK_ALIAS): Simplify.
12212 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
12213 when searching a unibyte buffer.
12214
122152008-06-12 Chong Yidong <cyd@stupidchicken.com>
12216
12217 * xfns.c (Fx_select_font): Rename from x-font-dialog.
12218
122192008-06-12 Juanma Barranquero <lekktu@gmail.com>
12220
12221 * w32font.c: Include ctype.h.
12222
122232008-06-11 Jason Rumney <jasonr@gnu.org>
12224
12225 * w32font.c (w32font_encode_char): Detect missing glyphs that are
12226 misreported as space.
12227 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
12228 as aliases for registry iso10646-1.
12229
122302008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
12231
12232 * buffer.c (clone_per_buffer_values): Skip `name'.
12233
122342008-06-11 Chong Yidong <cyd@stupidchicken.com>
12235
12236 * font.c (font_parse_fcname): Fix last change; accept decimal
12237 points in font size.
12238
122392008-06-10 Jason Rumney <jasonr@gnu.org>
12240
12241 * w32uniscribe.c (add_opentype_font_name_to_list):
12242 Skip non unicode fonts.
12243
122442008-06-10 Chong Yidong <cyd@stupidchicken.com>
12245
12246 * xfns.c (Fx_font_dialog): New function.
12247
12248 * gtkutil.c (xg_dialog_response_cb): Rename from
12249 xg_file_response_callback.
12250 (pop_down_dialog): Rename from pop_down_file_dialog.
12251 (xg_get_file_name): Callers changed.
12252 (xg_get_font_name): New function.
12253
12254 * gtkutil.h (xg_get_font_name): Insert prototype.
12255
122562008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
12257
12258 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
12259 x_underline_minimum_display_offset.
12260 (syms_of_xdisp): Declare it here rather than in xterm.c.
12261 * dispextern.h (underline_minimum_offset): Declare it.
12262 * w32term.c (x_draw_glyph_string): Use it.
12263 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
12264 (syms_of_xterm): Don't declare it any more.
12265 (x_draw_glyph_string): Adjust to the new name.
12266
8719abec 122672008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
12268
12269 * xterm.c (x_underline_minimum_display_offset): New var.
12270 (x_draw_glyph_string): Use it.
12271 (syms_of_xterm): Declare it.
12272
122732008-06-10 Chong Yidong <cyd@stupidchicken.com>
12274
12275 * font.c (font_parse_fcname): Accept GTK-style font names too.
12276
122772008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
12278
12279 * dired.c (file_name_completion): Don't return t if the match is exact
12280 but with different capitalization.
12281 * minibuf.c (Ftry_completion): Simplify.
12282
12283 * window.c (Vwindow_point_insertion_type): New var.
12284 (set_window_buffer): Use it.
12285 (syms_of_window): Init and export it to Lisp.
12286
122872008-06-10 Kenichi Handa <handa@m17n.org>
12288
12289 * font.h (font_intern_prop): Prototype adjusted.
12290
12291 * font.c (font_intern_prop): New arg force_symbol.
12292 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
12293 Adjust for the change of font_intern_prop.
12294
12295 * ftfont.c (ftfont_pattern_entity):
12296 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
12297 (w32_registry):
12298 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
12299 the change of font_intern_prop.
12300
123012008-06-09 Juanma Barranquero <lekktu@gmail.com>
12302
12303 * w32menu.c (digest_single_submenu): Declare extern.
12304
123052008-06-09 Jason Rumney <jasonr@gnu.org>
12306
12307 * w32term.c (x_make_frame_visible): Use alternate restore flags.
12308
12309 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
12310 (parse_single_submenu): Remove.
12311 (digest_single_submenu): Remove.
12312 (syms_of_w32menu): Don't initialise variables that have moved
12313 to menu.c.
12314 (set_frame_menubar): Sync with version in xmenu.c.
12315 (w32_menu_show): Sync with xmenu_show in xmenu.c.
12316
12317 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
12318 Make static again.
12319
123202008-06-09 Jason Rumney <jasonr@gnu.org>
12321
12322 Changes to w32 files related to the move of common menu code
12323 to menu.c on 2008-06-08 by Chong Yidong.
12324
12325 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
12326 defs to w32gui.h.
12327 (single_keymap_panes, push_menu_item, push_menu_pane):
12328 Make globally visible.
12329
12330 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
12331 (local_free, malloc_widget_value, free_widget_value)
12332 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
12333 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
12334 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
12335 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
12336 (menu_items, menu_items_allocated, menu_items_used)
12337 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
12338 (init_menu_items, finish_menu_items, discard_menu_items)
12339 (grow_menu_items, push_submenu_start, push_submenu_end)
12340 (push_left_right_boundary, push_menu_pane, push_menu_item)
12341 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
12342 (free_menubar_widget_tree_value, parse_single_submenu)
12343 (update_submenu_strings): Remove functions.
12344 (xmalloc_widget_value): Remove and declare extern.
12345
12346 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
12347 (OBJ1): Build it.
12348
12349 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
12350 (local_heap, local_alloc, local_free, malloc_widget_value)
12351 (free_widget_value): Define here.
12352
123532008-06-09 Kenichi Handa <handa@m17n.org>
12354
12355 * font.h (Qascii_0): Extern it.
12356
12357 * font.c (Qascii_0): New variable.
12358 (syms_of_font): DEFSYM it.
12359 (font_open_by_name): If the registry "iso8859-1" fails, try also
12360 "ascii-0".
12361
12362 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
12363
123642008-06-08 Kenichi Handa <handa@m17n.org>
12365
12366 * .gdbinit (xfont): New command.
12367
123682008-06-08 Andreas Schwab <schwab@suse.de>
12369
12370 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
12371 * Makefile.in (menu.o): Update dependencies.
12372
12373 * Makefile.in (obj): Always add menu.o.
12374 * emacs.c (main): Always call syms_of_menu.
12375 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
12376
123772008-06-08 Chong Yidong <cyd@stupidchicken.com>
12378
12379 * Makefile.in: Compile menu.c.
12380
12381 * lisp.h: Declare syms_of_menu.
12382
12383 * emacs.c (main): Call syms_of_menu.
12384
12385 * keyboard.h: Relocate platform-independent menu definitions from
12386 xmenu.c.
12387
12388 * menu.c: New file. Relocate platform-independent menu
12389 definitions from xmenu.c. Suggested by Adrian Robert.
12390
12391 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 12392 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
12393 (menu_items_used, menu_items_n_panes)
12394 (menu_items_submenu_depth): Move to keyboard.h.
12395 (init_menu_items, finish_menu_items, unuse_menu_items)
12396 (discard_menu_items, restore_menu_items, save_menu_items)
12397 (grow_menu_items, push_submenu_start, push_submenu_end)
12398 (push_left_right_boundary, push_menu_pane, push_menu_item)
12399 (keymap_panes, single_keymap_panes, single_menu_item)
12400 (list_of_panes, list_of_items, find_and_call_menu_selection)
12401 (xmalloc_widget_value, free_menubar_widget_value_tree)
12402 (parse_single_submenu, digest_single_submenu)
12403 (update_submenu_strings): Move to menu.c.
12404
124052008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
12406
12407 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
12408
124092008-06-06 Miles Bader <miles@gnu.org>
12410
12411 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
12412 face, not frame default.
12413
124142008-06-05 Martin Rudalics <rudalics@gmx.at>
12415
12416 * window.c (pop_up_windows, pop_up_frames)
12417 (display_buffer_reuse_frames, Vpop_up_frame_function)
12418 (Vdisplay_buffer_function, Veven_window_heights)
12419 (Vspecial_display_buffer_names, Vspecial_display_regexps)
12420 (Vspecial_display_function, Vsame_window_buffer_names)
12421 (Vsame_window_regexps, split_height_threshold)
12422 (Vsplit_window_preferred_function): Move those vars to window.el.
12423 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
12424 (Fdisplay_buffer): Move those functions to window.el.
12425 (syms_of_window): Remove corresponding declarations.
12426 (display_buffer): New function.
12427 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
12428 * dispnew.c (Flast_nonminibuf_frame): New function.
12429 * buffer.c (Fpop_to_buffer): Move to window.el.
12430
124312008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12432
12433 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
12434
124352008-06-05 Kenichi Handa <handa@m17n.org>
12436
12437 * coding.c (detect_coding): Fix previous change.
12438 (detect_coding_system): Likewise.
12439
124402008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12441
12442 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
12443
12444 * keymap.c (Vminibuffer_local_filename_must_match_map):
12445 Rename from Vminibuffer_local_must_match_filename_map.
12446 (syms_of_keymap):
12447 * minibuf.c (Fcompleting_read): Adjust accordingly.
12448 * commands.h: Rename declaration as well.
12449
124502008-06-05 Kenichi Handa <handa@m17n.org>
12451
12452 * font.c (Ffont_spec): Don't use font_parse_family_registry for
12453 family name.
12454 (Ffont_put): Likewise.
12455
12456 * fontset.c (fontset_find_font): Call font_open_for_lface with the
12457 current font-spec.
12458
12459 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
12460 is unspecified.
12461
12462 * xfaces.c (realize_x_face): If the font-related face attributes
12463 are the same as those of default face, realize a new fontset from
12464 default->fontset.
12465 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
12466
124672008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12468
12469 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
12470 (move_it_in_display_line): New wrapper.
12471
12472 * window.c (window_scroll_pixel_based_preserve_x)
12473 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
12474 (window_scroll_pixel_based, window_scroll_line_based):
12475 Use them to preserve column positions.
12476 (syms_of_window): Initialize them.
12477
12478 * indent.c (Fvertical_motion): Extend first arg to allow passing an
12479 (HPOS . VPOS) pair.
12480
12481 * dispextern.h (move_it_in_display_line): Declare.
12482
124832008-06-05 Juanma Barranquero <lekktu@gmail.com>
12484
12485 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
12486 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
12487 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
12488
124892008-06-04 Juanma Barranquero <lekktu@gmail.com>
12490
12491 * window.c (Fset_window_parameter): Doc fix.
12492 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
12493
124942008-06-04 Joakim Verona <joakim@verona.se>
12495
12496 * window.h (struct window): Add new member window_parameters.
12497
12498 * window.c (Fwindow_parameters, Fwindow_parameter)
12499 (Fset_window_parameter): New defuns.
12500 (syms_of_window): Defsubr the new defuns.
12501 (make_window): Initialize window_parameters to nil.
12502
125032008-06-04 John Paul Wallington <jpw@pobox.com>
12504
12505 * eval.c (Fdefmacro): Doc fix.
12506
125072008-06-04 Kenichi Handa <handa@m17n.org>
12508
12509 * coding.c (detect_coding): Fix handling of coding->head_ascii.
12510 Be sure to call setup_coding_system when we find a proper coding system.
12511 (detect_coding_system): Fix handling of coding->head_ascii.
12512
125132008-06-03 Andreas Schwab <schwab@suse.de>
12514
12515 * font.c (font_prop_validate_spacing): Fix last change.
12516
125172008-06-03 Kenichi Handa <handa@m17n.org>
12518
12519 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
12520 (font_parse_fcname): Fix handling of unknown key.
12521
12522 * xfont.c (xfont_list): Try an alias.
12523
12524 * charset.c (char_charset): Return NULL if the arg charset_list is
12525 specified and C doesn't belong to any of them.
12526
125272008-06-02 Chip Coldwell <coldwell@redhat.com>
12528
12529 * font.c (font_pixel_size): Don't take cdr of an integer.
12530
125312008-06-02 Jim Meyering <meyering@redhat.com>
12532
12533 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
12534 * alloc.c (xfree): Return right away for a NULL arg.
12535 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
12536 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
12537 * mac.c (create_apple_event_from_event_ref): Likewise.
12538 (create_apple_event_from_drag_ref, cfstring_create_normalized):
12539 Likewise.
12540 * doprnt.c (doprnt1): Likewise.
12541 * frame.c (frame): Likewise.
12542 * keyboard.c (wipe_kboard): Likewise.
12543 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
12544 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
12545 * term.c (tty_default_color_capabilities, maybe_fatal)
12546 (delete_tty): Likewise.
12547 * w16select.c (string): Likewise.
12548 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
12549 * w32bdf.c (w32_free_bdf_font): Likewise.
12550 * w32fns.c (w32_unload_font): Likewise.
12551 * w32font.c (w32font_close): Likewise.
12552 * window.c (size_window): Likewise.
12553 * xselect.c (receive_incremental_selection): Likewise.
12554 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
12555 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
12556 * w32.c (stat): Likewise.
12557
12558 Remove useless if-before-free tests.
12559 * editfns.c (Fset_time_zone_rule): Likewise.
12560 * lread.c (nosuffix): Likewise.
12561 * ralloc.c (get_bloc): Likewise.
12562 * regex.c (reg_free): Likewise.
12563 * xftfont.c (xftfont_open, xftfont_close): Likewise.
12564 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
12565 * xsmfns.c (smc_save_yourself_CB): Likewise.
12566
125672008-06-02 Kenichi Handa <handa@m17n.org>
12568
12569 * font.c (font_find_for_lface): Handle float font size.
12570 (font_open_for_lface): Likewise.
12571
12572 * xfaces.c (x_supports_face_attributes_p): Check face->font before
12573 comparing the properties.
12574
125752008-06-01 Jason Rumney <jasonr@gnu.org>
12576
12577 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
12578 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
12579 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
12580 Don't add empty script list.
12581 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
12582
125832008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
12584
12585 * Makefile.in (dot, dotdot): Remove, update users.
12586 ".." has been used elsewhere in the file for a long time.
12587 (LIBXT_STATIC): Remove conditional based on unused variable.
12588
125892008-06-01 Miles Bader <miles@gnu.org>
12590
12591 * xfaces.c (Vface_remapping_alist): New variable.
12592 (syms_of_xfaces): Initialize it.
12593 (enum named_merge_point_kind): New type.
12594 (struct named_merge_point): Add `named_merge_point_kind' field.
12595 (push_named_merge_point): Make cycle detection respect different
12596 named-merge-point kinds.
12597 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
12598 Remove face-name alias resolution.
12599 (lface_from_face_name): New definition using
12600 `lface_from_face_name_no_resolve'.
12601 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
12602 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
12603 (get_lface_attributes): New definition that layers face-remapping on
12604 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
12605 (lookup_basic_face): New function.
12606 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
12607 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
12608 `get_lface_attributes'.
12609 (face_at_buffer_position): Use `lookup_basic_face' to lookup
12610 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
12611 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
12612
12613 * xdisp.c (init_iterator): Pass base_face_id through
12614 `lookup_basic_face' when we actually use it as a face-id.
12615 (handle_single_display_prop): Use `lookup_basic_face' to lookup
12616 DEFAULT_FACE_ID.
12617
12618 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
12619 lookup the initial face-id.
12620
12621 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
12622
126232008-06-01 Juanma Barranquero <lekktu@gmail.com>
12624
12625 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
12626 (Fremove_text_properties): Fix typos in docstrings.
12627
126282008-05-31 Kenichi Handa <handa@m17n.org>
12629
12630 * font.c (font_list_entities): Fix the car part of data to be
12631 stored in the cache.
12632
12633 * ftfont.c (ftfont_font_format): Don't use strcasestr.
12634
126352008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
12636
12637 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
12638 Add a `test' argument so another predicate than `equal' can be used.
12639 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
12640 (map_char_table): Remove unused vars `c' and `i'.
12641 * lisp.h (Foptimize_char_table): Adjust declaration.
12642 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
12643
126442008-05-30 Kenichi Handa <handa@m17n.org>
12645
12646 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
12647 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
12648 defined.
12649
126502008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
12651
12652 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
12653 (Fmake_variable_frame_local): Disallow mixing buffer-local and
12654 frame-local settings for the same variable.
12655
126562008-05-30 Kenichi Handa <handa@m17n.org>
12657
12658 * fontset.c (Ffont_info): Move to font.c.
12659 (syms_of_fontset): Delete defsubr of Sfont_info.
12660
12661 * font.c (font_style_to_value, font_score): Delete casting of the
12662 args to xstcasecmp.
12663 (register_font_driver): Increment num_font_drivers only when
12664 registering the driver globally.
12665 (Ffont_info): Move from fontset.c. Handle a font object too.
12666 (syms_of_font): Defsubr Sfont_info.
12667
126682008-05-29 Kenichi Handa <handa@m17n.org>
12669
12670 * coding.h (enum define_coding_utf8_arg_index): New enum.
12671 (enum coding_attr_index): Change coding_attr_utf_16_bom to
12672 coding_attr_utf_bom.
12673 (enum utf_bom_type): Rename from utf_16_bom_type.
12674 (struct utf_16_spec): Adjust for the above change.
12675 (struct coding_system): Add utf_8_bom in `spec' union.
12676
12677 * coding.c (CODING_UTF_8_BOM): New macro.
12678 (enum coding_category): Delete coding_category_utf_8, add
12679 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
12680 coding_category_utf_8_sig.
12681 (CATEGORY_MASK_UTF_8): Delete it.
12682 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
12683 (CATEGORY_MASK_UTF_8_SIG): New macros.
12684 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
12685 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
12686 CATEGORY_MASK_UTF_8_SIG.
12687 (CATEGORY_MASK_UTF_8): New macro.
12688 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
12689 (detect_coding_utf_8): Check BOM.
12690 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
12691 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
12692 (encode_coding_utf_16): Likewise.
12693 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
12694 (detect_coding, detect_coding_system): Handle utf-8-auto.
12695 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
12696 (syms_of_coding): Fix setting up of Vcoding_category_table.
12697
126982008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
12699
12700 * process.c (Faccept_process_output): If `millisec' is non-nil,
12701 `seconds' default to 0.
12702 (wait_reading_process_output): Also return non-nil if we read output
12703 from a non-running process.
12704
127052008-05-29 Jason Rumney <jasonr@gnu.org>
12706
12707 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
12708 `raster' specified.
12709 (add_font_entity_to_list): Allow non-opentype truetype fonts back
12710 in the uniscribe backend, but disallow any font that has no
12711 unicode subrange support.
12712
127132008-05-29 Juanma Barranquero <lekktu@gmail.com>
12714
12715 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
12716 Fix typos in docstrings.
12717
127182008-05-29 Kenichi Handa <handa@m17n.org>
12719
12720 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
12721 (Fx_family_fonts): Set frame correctly.
12722
127232008-05-28 Jason Rumney <jasonr@gnu.org>
12724
12725 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
12726
127272008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
12728
12729 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
12730 calling build_annotations.
12731
127322008-05-28 Juanma Barranquero <lekktu@gmail.com>
12733
12734 * coding.c (Fdecode_coding_region, Fencode_coding_region)
12735 (Fencode_coding_string):
12736 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
12737 <latin-extra-code-table>: Fix typos in docstrings.
12738 (syms_of_coding) <coding-system-alist>: Doc fix.
12739 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
12740
127412008-05-28 Kenichi Handa <handa@m17n.org>
12742
12743 * fontset.c (Ffont_info): Don't call font_close_object.
12744
12745 * font.c (font_parse_family_registry): Use Ffont_put to validate
12746 foundry and family.
12747 (font_delete_unmatched): Don't check spacing.
12748 (font_list_entities): Add spacing to the spec to list fonts.
12749
12750 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
12751 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
12752
12753 * coding.c (encode_coding_raw_text): Fix previous change.
12754 (encode_coding_object): When the dst_object is a buffer and is
12755 different from src_object, move gap to PT.
12756
127572008-05-27 Chong Yidong <cyd@stupidchicken.com>
12758
12759 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
12760
127612008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
12762
12763 * coding.c (encode_coding_raw_text): Set coding->produced_char for
12764 all branches. Compute it differently.
12765
12766 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
12767
127682008-05-27 Juanma Barranquero <lekktu@gmail.com>
12769
12770 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
12771 into "else if () ... else ...".
12772
127732008-05-27 Jason Rumney <jasonr@gnu.org>
12774
12775 * w32font.c (w32font_open_internal): Determine if glyph indices
12776 are likely to work here.
12777
127782008-05-27 Chong Yidong <cyd@stupidchicken.com>
12779
12780 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
12781 draw overlap glyphs with appropriate highlighting.
12782
127832008-05-27 Kenichi Handa <handa@m17n.org>
12784
12785 * xfont.c (xfont_open): Fix calculation of font->average_width.
12786
127872008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
12788
12789 * casefiddle.c (casify_object): Try to guess better whether the
12790 argument is a byte or a char.
12791
127922008-05-26 Andreas Schwab <schwab@suse.de>
12793
12794 * xselect.c (x_reply_selection_request): Properly handle format == 32.
12795 Always send multiples of format size.
12796
12797 * xterm.c (x_set_frame_alpha): Fix type mismatch.
12798
127992008-05-26 Jason Rumney <jasonr@gnu.org>
12800
12801 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
12802 (compute_metrics): Don't set failure if we just cleared the cache.
12803 (w32_weight_table): Remove unused variable.
12804 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
12805 backwards compatibility.
12806
128072008-05-25 Kenichi Handa <handa@m17n.org>
12808
12809 * w32term.c (x_draw_glyph_string):
12810 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
12811
12812 * xfaces.c: Delete unused function prototypes.
12813 (xstrlwr, font_frame): Delete them.
12814 (clear_face_cache): Delete unused variable.
12815
12816 * xftfont.c (xftfont_open): Delete unused variable.
12817 If underline_thickness is not 1, adjust underline_position.
12818
12819 * ftxfont.c (ftxfont_open): Delete unused variable.
12820
12821 * fontset.c (face_for_char): Optimize for the case of no charset
12822 property.
12823
12824 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
12825 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
12826 (otf_open, font_otf_capability, generate_otf_features)
12827 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
12828 Comment out by surrounding "#if 0" and "#endif" for the moment.
12829 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
12830 (syms_of_font): Codes for accessing above commented out.
12831
128322008-05-24 Eli Zaretskii <eliz@gnu.org>
12833
12834 * w32proc.c: Include dispextern.h.
12835
12836 * w32.c: Include dispextern.h.
12837
128382008-05-23 Juanma Barranquero <lekktu@gmail.com>
12839
12840 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
12841 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
12842 Fix typos in docstrings.
12843
128442008-05-23 Jason Rumney <jasonr@gnu.org>
12845
12846 * xsmfns.c: Remove includes that are already included by config.h.
12847
128482008-05-23 Kenichi Handa <handa@m17n.org>
12849
12850 * charset.c (Qemacs, charset_emacs): New variables.
12851 (char_charset): Fix for non-Unicode characters.
12852 (syms_of_charset): Define charset_emacs.
12853
12854 * w32term.c (x_draw_glyph_string): Be sure to update
12855 s->underline_thickness and s->underline_position. Be sure to draw
12856 underline within the current line area.
12857
12858 * xterm.c (x_draw_glyph_string): Be sure to update
12859 s->underline_thickness and s->underline_position. Be sure to draw
12860 underline within the current line area.
12861
12862 * fontset.c: Delete unused variables and add casting for char *
12863 throughout the file.
12864 (fontset_font): Try the fallback fonts of the current fontset
12865 before consulting the default fontset.
12866
12867 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
12868
12869 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
12870
128712008-05-22 Jason Rumney <jasonr@gnu.org>
12872
12873 * font.c: Don't include strings.h.
12874
12875 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
12876
12877 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
12878 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
12879 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
12880 to call xstrcasecmp.
12881
12882 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
12883
12884 * fontset.c (fs_query_fontset): Use xstrcasecmp.
12885
12886 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
12887
12888 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
12889
128902008-05-22 Kenichi Handa <handa@m17n.org>
12891
12892 * puresize.h (BASE_PURESIZE): Increase to 1220000.
12893
12894 * font.c (font_prop_validate_style): Adjust for the format
12895 change of font_style_table.
12896
12897 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
12898 two args.
12899
12900 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
12901 two args.
12902
129032008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
12904
12905 * minibuf.c (keys_of_minibuf): Delete.
12906 * lisp.h (keys_of_minibuf): Delete.
12907 * emacs.c (main): Don't call keys_of_minibuf.
12908
129092008-05-22 Kenichi Handa <handa@m17n.org>
12910
12911 * ftfont.c (ftfont_resolve_generic_family): Rename from
12912 ftfont_list_generic_family. Return a single family for each
12913 generic family.
12914 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
12915 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
12916 Call font_add_log.
12917 (ftfont_match): Call font_add_log.
12918
12919 * font.h (Ffont_xlfd_name): EXFUN adjusted.
12920 (FONT_DEBUG): Define it.
12921 (font_add_log): Extern it.
12922 (font_assert): Rename from xassert.
12923
12924 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
12925 (xfont_list_family): Call font_add_log.
12926 (xfont_match): Likewise.
12927 (memq_no_quit): Delete.
12928
12929 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
12930 call of Ffont_xlfd_name.
12931
12932 * xfaces.c (struct table_entry, slant_table, weight_table)
12933 (swidth_table): Move to font.c.
12934
12935 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
12936 xassert are changed to font_assert. Delete many unused variables.
12937 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
12938 New variables.
12939 (struct table_entry): Move from xfaces.c and modified.
12940 (weight_table, slant_table, width_table): Move from xfaces.c and
12941 contents adjusted for the change of struct table_entry.
12942 (font_style_to_value, font_style_symbolic): Adjust for the
12943 format change of font_style_table.
12944 (font_parse_family_registry): Don't overwrite existing foundry and
12945 family of font_spec.
12946 (font_score): Fix calculation of diff for sizes.
12947 (font_sort_entites): Call font_add_log.
12948 (font_delete_unmatched): Return a newly created list.
12949 (font_list_entities): Fix previous change. Call font_add_log.
12950 (font_matching_entity, font_open_entity, font_close_entity):
12951 Call font_add_log.
12952 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
12953 (Finternal_set_font_style_table): Delete.
12954 (BUILD_STYLE_TABLE): New macro.
12955 (build_style_table): New function.
12956 (Vfont_log, font_log_env_checked): New variables.
12957 (font_add_log): New function.
12958 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
12959 Declare Lisp variables "font-weight-table", "font-slant-table",
12960 "font-width-table", and "font-log". Initialize font_style_table.
12961
129622008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
12963
12964 * xterm.c (x_set_frame_alpha): Move declarations before statements.
12965
129662008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 12967 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
12968
12969 * frame.c (Qalpha): Add a new frame parameter `alpha'.
12970 (Vframe_alpha_lower_limit): New variable.
12971 (x_set_alpha): New function.
12972
12973 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
12974
12975 * xfns.c (x-create-frame, Qalpha):
12976 Initialize the frame parameter `alpha'.
12977 * xterm.c (OPAQUE, OPACITY): New.
12978 (x_set_frame_alpha): New function.
12979 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
12980
12981 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
12982 * w32fns.c (w32_frame_parm_handlers): Likewise.
12983
129842008-05-20 Jason Rumney <jasonr@gnu.org>
12985
12986 * w32font.c (add_font_entity_to_list): Don't add non-opentype
12987 truetype fonts to opentype list.
12988
129892008-05-20 Juanma Barranquero <lekktu@gmail.com>
12990
12991 * fontset.c (Ffontset_info): Doc fix.
12992 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
12993 <ignore-relative-composition>: Fix typos in docstrings.
12994
12995 * font.c (syms-of-font) <font-encoding-alist>:
12996 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
12997 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
12998 (Ffont_otf_alternates): Doc fixes.
12999
130002008-05-20 Kenichi Handa <handa@m17n.org>
13001
13002 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
13003 font.h through out the file.
13004 (FONT_DRIVERS): Rename from FONTOBJ.
13005 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
13006 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
13007
13008 * emacs.c (main): Call syms_of_font unconditionally.
13009
13010 * font.h (find_font_encoding): Extern it.
13011
13012 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
13013 fontset.c.
194d44e7 13014 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
13015 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
13016 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
13017 only when HAVE_WINDOW_SYSTEM is defined.
13018 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
13019 when HAVE_WINDOW_SYSTEM is defined.
13020
13021 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
13022 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
13023
13024 * xfaces.c: Include font.h unconditionally.
13025 (merge_face_ref, merge_face_vectors)
13026 (Finternal_set_lisp_face_attribute): Cancel the previous change.
13027
130282008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
13029
13030 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
13031 indirect_variable.
13032 * eval.c (lisp_indirect_variable): New fun.
13033 (Fuser_variable_p): Use it.
13034
130352008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
13036
13037 * lisp.h (indirect_variable):
13038 * data.c (indirect_variable, let_shadows_buffer_binding_p):
13039 Use Lisp_Symbol pointers rather than Lisp_Object.
13040 Adjust callers.
13041 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
13042 To this end, change calling-convention.
13043
13044 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
13045 if some non-hidden buffers are selected by string&pred.
13046
130472008-05-19 Chong Yidong <cyd@stupidchicken.com>
13048
13049 * process.c (wait_reading_process_output): Always check status
13050 when in batch mode.
13051
130522008-05-19 Kenichi Handa <handa@m17n.org>
13053
13054 * font.c (font_list_entities): Fix handling of cache.
13055 (font_matching_entity): Likewise.
13056
13057 * ftfont.c (cs_iso8859_1): Delete.
13058 (ft_face_cache): New variable.
13059 (struct ftfont_info): New member fc_charset_idx.
13060 (ftfont_build_basic_charsets): Delete.
13061 (fc_charset_table): New variable.
13062 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
13063 . FC_CHARSET_IDX) as :font-entity property in the font entity.
13064 Callers changed.
13065 (ftfont_lookup_cache, ftfont_get_charset): New functions.
13066 (ftfont_spec_pattern): New argument fc_charset_idx.
13067 Check registry more rigidly. Change callers.
13068 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
13069 change of :font-entity property of the font.
13070
13071 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
13072 property of the font.
13073
130742008-05-18 Juanma Barranquero <lekktu@gmail.com>
13075
13076 * coding.c (Fcoding_system_p): Rename argument to match docstring.
13077 (Funencodable_char_position, Fcheck_coding_systems_region)
13078 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
13079 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
13080 (Ffind_operation_coding_system, Fset_coding_system_priority)
13081 (Fcoding_system_eol_type): Doc fixes.
13082
130832008-05-17 Glenn Morris <rgm@gnu.org>
13084
13085 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
13086
130872008-05-16 Eli Zaretskii <eliz@gnu.org>
13088
13089 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
13090 and st_gid.
13091
13092 * frame.c (Fdelete_frame): Don't call font_update_drivers if
13093 HAVE_WINDOW_SYSTEM is not defined.
13094
13095 * xfaces.c (merge_face_ref, merge_face_vectors)
13096 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
13097 HAVE_WINDOW_SYSTEM is defined.
13098 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
13099
131002008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
13101
13102 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
13103
131042008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13105
13106 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
13107
131082008-05-15 Kenichi Handa <handa@m17n.org>
13109
13110 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
13111 preference.
13112
131132008-05-15 Glenn Morris <rgm@gnu.org>
13114
13115 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
13116
131172008-05-15 Chong Yidong <cyd@stupidchicken.com>
13118
13119 * fns.c (init_fns): Don't initialize weak_hash_tables here.
13120 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
13121
13122 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
13123
131242008-05-15 Kenichi Handa <handa@m17n.org>
13125
13126 * ftfont.c (ftfont_list): Downcase family name to check generic
13127 families.
13128
13129 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
13130 font-spec for QCfont value.
13131
13132 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
13133 buffer. Check the return value of it.
13134
131352008-05-14 Jason Rumney <jasonr@gnu.org>
13136
13137 * w32term.c (w32_get_glyph_overhangs): Remove.
13138 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
13139
131402008-05-14 Kenichi Handa <handa@m17n.org>
13141
13142 * font.c (font_prop_validate): Make nil a valid value.
13143 (font_clear_cache): Check if the cached vector of entities is nil
13144 or not.
13145
131462008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13147
13148 * emacs.c (main_thread): Conditionalize on
13149 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
13150 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
13151
13152 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
13153 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
13154 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
13155
131562008-05-14 Kenichi Handa <handa@m17n.org>
13157
13158 * coding.c (detect_coding_iso_2022): Ignore a coding category that
13159 has no corresponding coding system.
13160
131612008-05-14 Jason Rumney <jasonr@gnu.org>
13162
13163 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
13164
13165 * w32font.h (w32font_open_internal): Update declaration.
13166
13167 * w32font.c (w32font_open_internal): Change last argument from
13168 w32font_info struct to font object. Fill in font object from
13169 font_entity. Get Outline metrics if possible. Use them to
13170 calculate underline position and thickness. Use xlfd name as name
13171 property. Don't set codepage.
13172 (w32font_open): Pass font_object to w32font_open_internal. Don't
13173 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
13174 (w32font_draw): Use s->font.
13175 (clear_cached_metrics): Don't clear non-existent blocks.
13176
13177 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
13178 font was not found.
13179 (x_draw_glyph_string): Use underline position and thickness from font.
13180
13181 * w32uniscribe.c (uniscribe_open): Pass font_object to
13182 w32font_open_internal.
13183
131842008-05-14 Kenichi Handa <handa@m17n.org>
13185
13186 These changes are to delete all legacy font-handling codes, and
13187 make Emacs use only font-backends.
13188
13189 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
13190 (frame.o, image.o, print.o): Depend on $(FONTSRC).
13191
13192 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
13193
13194 * charset.h (Vcharset_non_preferred_head)
13195 (Vcurrent_iso639_language): Extern them.
13196
13197 * charset.c (Vcharset_non_preferred_head): New variable.
13198 (Vcurrent_iso639_language): New variable.
13199 (syms_of_charset): Declare it as a Lisp variable.
13200 (char_charset): Don't check non preferred charsets. As a last
13201 resort, return charset_unicode.
13202 (Fset_charset_priority): Update Vcharset_non_preferred_head.
13203
13204 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
13205 conditionals. Don't check enable_font_backend. Delete all codes
13206 used only when USE_FONT_BACKEND is not defined.
13207
13208 * dispextern.h (struct glyph_string): Change type of `font' to
13209 `struct font *'.
13210 (struct glyph_string): New member underline_position and
13211 underline_thickness.
13212 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
13213 (struct face): Change type of `font' to `struct font *'. Remove
13214 members `font_name', `font_info_id'.
13215 (per_char_metric, encode_char): Delete externs.
13216 (calc_pixel_width_or_height): Adjust the prototype.
13217
13218 * emacs.c (enable_font_backend): Delete extern.
13219 (main): Don't set enable_font_backend. Don't check the command
13220 line argument "-disable-font-backend".
13221
13222 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
13223 (enum font_property_index): New members FONT_DPI_INDEX,
13224 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
13225 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
13226 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
13227 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
13228 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
13229 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
13230 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
13231 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
13232 (struct font_spec, struct font_entity): New structs.
13233 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
13234 (struct font): Many members from old "struct font_info" moved to
13235 here. Members font and entity deleted.
13236 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
13237 the new font-related objects.
13238 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
13239 (CHECK_FONT_GET_OBJECT): Likewise.
13240 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
13241 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
13242 (struct font_driver): New members case_sensitive anc check. Type
13243 of the member list and open changed.
13244 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
13245 (font_symbolic_width, font_find_object, font_get_spec)
13246 (font_set_lface_from_name): Delete extern.
13247 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
13248
13249 * font.c: Include <strings.h>.
13250 (enable_font_backend): Delete it.
13251 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
13252 (CHECK_VALIDATE_FONT_SPEC): Delete it.
13253 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
13254 (null_string): Delete it.
13255 (null_vector): Make it static.
13256 (font_family_alist): Delete it.
13257 (Qnormal): Extern it.
13258 (QCextra, QClanguage): Delete it.
13259 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
13260 (font_make_spec, font_make_entity, font_make_object)
13261 (font_intern_prop): Renamed from intern_downcase. Don't downcase
13262 the string. Callers changed.
13263 (font_pixel_size): Adjusted for the format change of font-related
13264 objects.
13265 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
13266 (font_style_to_value, font_style_symbolic): New function.
13267 (build_font_family_alist): Delete it.
13268 (font_registry_charsets): Use Fassoc_string instead of
13269 assq_no_quit.
13270 (font_prop_validate_symbol): Don't return null_string.
13271 (font_prop_validate_style): Adjusted for the change of
13272 style-related values in a font vector.
13273 (font_property_table): Delete entries for QClanguage and
13274 QCantialias, add entries for QCavgwidth.
13275 (get_font_prop_index): Delete the 2nd argument FROM.
13276 (font_prop_validate): Arguments changed.
13277 (font_put_extra): Adjusted for the change of font-related objects.
13278 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
13279 (font_parse_fcname, font_unparse_fcname)
13280 (font_prepare_composition): Likewise.
13281 (font_parse_family_registry): Renamed from font_merge_old_spec.
13282 (otf_open): Delete the 1st arg entity.
13283 (font_otf_capability): Adjusted for the above change.
13284 (font_score): New arg alternate_families. Adjusted for the change
13285 of font-related objects.
13286 (font_sort_entites): New arg best_only.
13287 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
13288 Delete them.
13289 (font_match_p): Check alternate families.
13290 (font_find_object): Delete it.
13291 (font_check_object): New function.
13292 (font_clear_cache): Adjusted for the change of font-related objects.
13293 (font_delete_unmatched): New arg.
13294 (font_list_entities): Call font_driver->list with a spec that
13295 doesn't specify style-related properties.
13296 (font_matching_entity): Arguments changed. Caller changed.
13297 (font_open_entity): Adjusted for the change of font-related objects.
13298 (font_close_object, font_has_char, font_encode_char)
13299 (font_get_name, font_get_spec): Likewise.
13300 (font_spec_from_name, font_clear_prop, font_update_lface):
13301 New functions.
13302 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
13303 (font_prepare_for_face, font_done_for_face, font_open_by_name)
13304 (font_at): Adjusted for the change of font-related objects.
13305 (font_range): New function.
13306 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
13307 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
13308 (Fcopy_font_spec, Fmerge_font_spec): New function.
13309 (Ffont_family_list): Renamed from list-families.
13310 (Finternal_set_font_style_table): Arguments changed.
13311 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
13312 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
13313 change of font-related objects.
13314 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
13315
13316 * fontset.h (struct font_info): Delete it. Most members go to
13317 struct font.
13318 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
13319 (enum FONT_SPEC_INDEX): Delete it.
13320 (font_info, list_fonts_func, load_font_func, query_font_func)
13321 (set_frame_fontset_func, find_ccl_program_func)
13322 (get_font_repertory_func, new_fontset_from_font_name): Delete
13323 externs.
13324 (fontset_from_font_name): Extern it.
13325 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
13326 (FONT_INFO_FROM_FACE): Deleted.
13327 (face_for_font): Adjust prototype.
13328
13329 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
13330 conditionals. Don't check enable_font_backend. Delete all codes
13331 used only when USE_FONT_BACKEND is not defined.
13332 (get_font_info_func, list_font_func, load_font_func)
13333 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
13334 (get_font_repertory_func): Delete them.
13335 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
13336 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
13337 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
13338 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
13339 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
13340 (fontset_compare_rfontdef): New function.
13341 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
13342 rfont-defs by qsort. Adjusted for the change of font-group vector.
13343 (load_font_get_repertory): Deleted.
13344 (fontset_find_font): Use new macros to ref/set elements of
13345 font-def and rfont-def.
13346 (fontset_font): Fix the timing of remembering that no font for C.
13347 (free_face_fontset): Do nothing if the face has no fontset.
13348 (face_suitable_for_char_p): Use new macros to ref/set elements of
13349 rfont-def.
13350 (face_for_char): Likewise. Call face_for_char with font_object.
13351 (fs_load_font): Delete. Delete #pragma surrounding it.
13352 (fs_query_fontset): Use strcasecmp instead of strcmp.
13353 (generate_ascii_font_name): Adjusted for the format change of
13354 font-spec.
13355 (Fset_fontset_font): Likewise. Use new macros to set elements of
13356 font-def.
13357 (Fnew_fontset): Use font_unparse_xlfd to generate
13358 FONTSET_ASCII (fontset).
13359 (new_fontset_from_font_name): Deleted.
13360 (fontset_from_font): Renamed from new_fontset_from_font. Check if
13361 a fontset is already created for the font. FIx updating of
13362 Vfontset_alias_alist.
13363 (fontset_ascii_font): Deleted.
13364 (Ffont_info): Adjusted for the format change of font-spec.
13365 (Finternal_char_font): Likewise.
13366 (Ffontset_info): Likewise.
13367 (syms_of_fontset): Don't check load_font_func.
13368
13369 * fns.c (internal_equal): Handle PREV_FONT.
13370
13371 * frame.h: Delete USE_FONT_BACKEND conditional.
13372
13373 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
13374 conditionals. Don't check enable_font_backend. Delete all codes
13375 used only when USE_FONT_BACKEND is not defined.
13376 (x_set_font): Call x_new_font, not x_new_fontset2.
13377 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
13378 already set for the frame.
13379
13380 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
13381 a font-entity by font_make_entity. Use font_intern_prop instead
13382 of intern_downcase. Use FONT_SET_STYLE to set a style-related
13383 font property. If a font is scalable, set avgwidth property to 0.
13384 Set font-entity property by font_put_extra.
13385 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
13386 (ffont_driver): Adjusted for the change of struct font_driver.
13387 (ftfont_spec_pattern): New function.
13388 (ftfont_list): Return a list, not vector.
13389 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
13390 (ftfont_list_family): Don't downcase names.
13391 (ftfont_free_entity): Deleted.
13392 (ftfont_open): Return a font-object. Adjusted for the change of
13393 struct font. Get underline_thickness and underline_position from
13394 font property. Don't update dpyinfo->smallest_font_height and
13395 dpyinfo->smallest_char_width.
13396 (ftfont_close): Don't free `struct font'.
13397 (ftfont_has_char): Adjusted for the format change of font-entity.
13398 (ftfont_encode_char, ftfont_text_extents): Likewise.
13399
13400 * ftxfont.c (ftxfont_list): Return a list, not vector.
13401 (ftxfont_open): Return a font-object. Adjusted for the change of
13402 struct font. Get underline_thickness and underline_position from
13403 font property. Don't update dpyinfo->smallest_font_height and
13404 dpyinfo->smallest_char_width.
13405 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
13406 (ftxfont_draw): Adjusted for the change of struct font.
13407
13408 * image.c (image_ascent): Don't include "charset.h". Include
13409 "character.h" and "font.h".
13410
13411 * lisp.h (enum pvec_type): New member PREV_FONT.
13412 (Fassoc_string): EXFUN it.
13413
13414 * print.c: Include font.h.
13415 (print_object): Handle font-related objects.
13416
13417 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
13418 conditionals. Don't check enable_font_backend. Delete all codes
13419 used only when USE_FONT_BACKEND is not defined.
13420 (handle_auto_composed_prop): Do nothing if it->f is not on a
13421 window system. Check how many following characters can be
13422 displayed by the same font.
13423 (calc_pixel_width_or_height): Type of the 4th arg is changed to
13424 'struct font *'.
13425 (get_char_face_and_encoding): Assign the whole encoding task to
13426 the `encode-char' method of a font driver.
13427 (fill_composite_glyph_string): Adjusted for the change of `struct
13428 face' and `struct glyph_string'.
13429 (fill_glyph_string): Likewise.
13430 (get_per_char_metric): Arguments changed.
13431 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
13432 and `struct glyph_string'.
13433 (produce_stretch_glyph, calc_line_height_property)
13434 (x_produce_glyphs): Likewise.
13435
13436 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
13437 conditionals. Don't check enable_font_backend. Delete all codes
13438 used only when USE_FONT_BACKEND is not defined. Use
13439 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
13440 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
13441 (Qp): Extern them.
13442 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
13443 Deleted.
13444 (struct font_name): Deleted.
13445 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
13446 (compare_fonts_by_sort_order): New function.
13447 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
13448 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
13449 Deleted.
13450 (Fx_family_fonts): Use font_list_entities, and sort fonts by
13451 compare_fonts_by_sort_order.
13452 (Fx_font_family_list): Call Ffont_family_list.
13453 (face_numeric_value, face_numeric_weight, face_numeric_slant)
13454 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
13455 (face_symbolic_slant, face_symbolic_swidth)
13456 (split_font_name_into_vector, build_font_name_from_vector)
13457 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
13458 (font_rescale_ratio, split_font_name, build_font_name)
13459 (free_font_names, sort_fonts, x_face_list_fonts)
13460 (face_font_available_p, sorted_font_list, cmp_font_names)
13461 (font_list_1, concat_font_list, font_list, remove_duplicates):
13462 Deleted.
13463 (Fx_list_fonts): Use Ffont_list.
13464 (LFACE_AVGWIDTH): Deleted.
13465 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
13466 by FONTP.
13467 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
13468 (set_lface_from_font_name): Delete it.
13469 (set_lface_from_font): Renamed from
13470 set_lface_from_font_and_fontset. Caller changed. Don't set
13471 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
13472 for face.
13473 (merge_face_vectors): Copy font-spec if necessary.
13474 Clear properties of the font-spec if necessary.
13475 (merge_face_ref): Clear properties of the font-spec if necessary.
13476 (Finternal_set_lisp_face_attribute): Likewise.
13477 (set_font_frame_param): Use font_load_for_lface to load a
13478 font-object, and call Fmodify_frame_parameters with it.
13479 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
13480 font name by Ffont_xlfd_name.
13481 (Finternal_lisp_face_attribute_values): Don't check QCweight,
13482 QCslant, and QCwidth.
13483 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
13484 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
13485 Compare fonts by EQ.
13486 (lookup_non_ascii_face): Deleted.
13487 (face_for_font): The 2nd argument changed.
13488 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
13489 Check atomic font properties by case insensitive.
13490 (realize_non_ascii_face): Set face->overstrike correctly.
13491 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
13492 (dump_realized_face): Get font name from
13493 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
13494
13495 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
13496 conditionals. Don't check enable_font_backend. Delete all codes
13497 used only when USE_FONT_BACKEND is not defined.
13498 (xic_create_xfontset): Original code deleted and renamed from
13499 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
13500 (x_make_gc): Don't set GCFont in GCs.
13501 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
13502 opened by "fixed".
13503 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
13504 find_ccl_program_func, query_font_func, set_frame_fontset_func,
13505 get_font_repertory_func.
13506
13507 * xfont.c: Include <stdlib.h> and "ccl.h".
13508 (struct xfont_info): New structure.
13509 (xfont_query_font): Deleted.
13510 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
13511 moved from xterm.c.
13512 (xfont_driver): Adjusted for the change of struct font_driver.
13513 (compare_font_names): New function.
13514 (xfont_list_pattern): Sort font names case insensitively. Make
13515 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
13516 (xfont_list): Return a list, not vector.
13517 (xfont_match): If the font doesn't have QCname property, generate
13518 a name from the other font properties.
13519 (xfont_open): Return a font-object. Adjusted for the change of
13520 struct font. Get underline_thickness and underline_position from
13521 font property. Don't update dpyinfo->smallest_font_height and
13522 dpyinfo->smallest_char_width.
13523 (xfont_close): Don't free struct font.
13524 (xfont_prepare_face): Adjusted for the change of struct font.
13525 (xfont_done_face): Deleted.
13526 (xfont_has_char): Adjusted for the change of struct font.
13527 (xfont_encode_char, xfont_draw): Likewise.
13528 (xfont_check): New function.
13529
13530 * xftfont.c (xftfont_list): Adjusted for the change of `list'
13531 callback function.
13532 (xftfont_match): Adjusted for the format change of font-entity.
13533 (xftfont_open): Adjusted for the format change of font-entity and
13534 font-object. Adjusted for the change of struct font. Return a
13535 font-object. Don't update dpyinfo->smallest_font_height and
13536 dpyinfo->smallest_char_width.
13537 (xftfont_close): Block input while calling XftFontClose.
13538 (xftfont_prepare_face): Don't block input while calling
13539 xftfont_get_colors. Adjusted for the change of struct font.
13540 (xftfont_shape): Return value of error case fixed.
13541
13542 * xrdb.c (x_load_resources): Don't setup a fontset resource.
13543
13544 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
13545 conditionals.
13546 (FONT_WIDTH): Return (f)->max_width.
13547 (struct x_display_info): Delete member `font'.
13548 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
13549 (x_find_ccl_program, x_get_font_repertory): Delete externs.
13550 (struct x_output): Change type of `font' to `struct font *'.
13551
13552 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
13553 conditionals. Don't check enable_font_backend. Delete all codes
13554 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
13555 (x_per_char_metric, x_encode_char): Deleted.
13556 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
13557 (x_compute_glyph_string_overhangs): Adjusted for the change of
13558 `struct face'.
13559 (x_draw_glyph_string_foreground)
13560 (x_draw_composite_glyph_string_foreground): Likewise.
13561 (x_draw_glyph_string): Likewise. Use font->underline_position and
13562 font->underline_thickness.
13563 (x_new_font): Renamed from x_new_fontset2.
13564 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
13565 (x_check_font): Call `check' method of a font driver.
13566 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
13567 (x_query_font, x_get_font_repertory): Deleted.
13568 (x_find_ccl_program): Renamed and moved to xfont.c.
13569 (x_redisplay_interface): Adjusted for the change of `struct
13570 redisplay_interface'.
13571
13572 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
13573 conditionals. Don't check enable_font_backend. Delete all codes
13574 used only when USE_FONT_BACKEND is not defined. Surround non-used
13575 code by "#ifdef OLD_FONT" and "endif".
13576 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
13577
13578 * w32font.h (struct w32font_info): New member.
13579 (FONT_COMPAT): New macro.
13580 (w32font_open_internal): Prototype adjusted.
13581
13582 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
13583 OLD_FONT" and "endif".
13584
13585 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
13586 conditionals. Don't check enable_font_backend. Delete all codes
13587 used only when USE_FONT_BACKEND is not defined.
13588 (w32font_open): Return a font-object. Make a font-object by
13589 font_make_object. Adjusted for the change of struct w32font_info.
13590 (w32font_close): Don't free struct font. Adjusted for the change
13591 of struct w32font_info.
13592 (w32font_encode_char, w32font_text_extents, w32font_draw):
13593 Adjusted for the change of struct w32font_info.
13594 (w32font_draw): Likewise.
13595 (w32font_list_internal): Return a list, not vector.
13596 (w32font_open_internal): Change the 4th arg to font-object.
13597 Adjusted for the change of struct w32font_info and font-object format.
13598 (add_font_name_to_list): Don't downcase names.
13599 (w32_enumfont_pattern_entity): Make a font-entity by
13600 font_make_entity. Adjusted for the format change of font-entity.
13601 Use FONT_SET_STYLE to set a style-related font property. If a
13602 font is scalable, set avgwidth property to 0. Set font-entity
13603 property by font_put_extra.
13604 (font_matches_spec): Adjusted for the format change of font-entity.
13605 (w32_weight_table, w32_decode_weight): New variables.
13606 (w32_encode_weight): New function.
13607 (fill_in_logfont): Adjusted for the format change of font-spec.
13608 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
13609 weight value.
13610 (w32font_driver): Adjusted for the change of struct font_driver.
13611
13612 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
13613 conditionals. Don't check enable_font_backend. Surround non-used
13614 code by "#ifdef OLD_FONT" and "endif".
13615 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
13616 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
13617
13618 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
13619 conditionals. Don't check enable_font_backend. Delete all codes
13620 used only when USE_FONT_BACKEND is not defined. Surround non-used
13621 code by "#ifdef OLD_FONT" and "endif".
13622
13623 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
13624 (uniscribe_open): Return value changed to font-object.
13625 Adjusted for the format change of font-object.
13626 (uniscribe_otf_capability): Adjusted for the change of struct font.
13627 (add_opentype_font_name_to_list): Don't downcase names.
13628 (uniscribe_font_driver): Adjusted for the change of struct
13629 font_driver.
13630
136312008-05-13 Chong Yidong <cyd@stupidchicken.com>
13632
13633 * dispnew.c (update_frame_1): Check if tty output is still valid
13634 before flushing it.
13635
136362008-05-13 Jan Djärv <jan.h.d@swipnet.se>
13637
13638 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
13639 to Gtk+ menus.
13640
136412008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
13642
13643 * dired.c (file_name_completion): Tweak the code so as to always do it
13644 in a single pass. Tighten the scope of some variables.
13645
13646 * dired.c (Qdefault_directory): New var.
13647 (file_name_completion): Use it instead of Fexpand_file_name.
13648 (syms_of_dired): Initialize it.
13649
136502008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
13651
13652 * fileio.c (double_dollars): Remove dead code.
13653
136542008-05-10 Eli Zaretskii <eliz@gnu.org>
13655
13656 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
13657 Mention w32-get-true-file-attributes in doc string.
13658
13659 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
13660
136612008-05-09 Glenn Morris <rgm@gnu.org>
13662
13663 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
13664 2008-04-23.
13665
136662008-05-09 Eli Zaretskii <eliz@gnu.org>
13667
13668 Support for reporting owner and group of each file on MS-Windows:
13669 * dired.c (stat_uname, stat_gname): New functions, with special
13670 implementation for w32.
13671 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
13672
13673 * w32.c: Rename the_passwd_* to dflt_passwd_*.
13674 (dflt_group_name): New static variable.
13675 (dflt_group): Rename from the_group.
13676 (init_user_info): Init dflt_group fields. Get user's group name
13677 from LookupAccountSid.
13678 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
13679 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
13680 New initialization states.
13681 (globals_of_w32): Initialize them to zero. Initialize the default
13682 group name to "None".
13683 (GetFileSecurity_Name): New global var, the name of the function
13684 to call for GetFileSecurity.
13685 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
13686 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
13687 (get_file_security, get_security_descriptor_owner)
13688 (get_security_descriptor_group, is_valid_sid)
13689 (get_file_security_desc, get_rid, get_name_and_id)
13690 (get_file_owner_and_group): New functions.
13691 (stat): Use get_file_security_desc and get_file_owner_and_group to
13692 report the owner and primary group of each file. Don't ignore the
13693 high 32 bits of file's size, now that st_size is 64-bit wide.
13694 Fix test when to get true file attributes.
13695 (init_user_info): Use get_rid instead of equivalent inline code.
13696 (fstat): Don't ignore the high 32 bits of file's size.
13697
136982008-05-09 Chong Yidong <cyd@stupidchicken.com>
13699
13700 * image.c (png_load): Use correct bit-depth for setting background
13701 color.
13702
137032008-05-08 Eli Zaretskii <eliz@gnu.org>
13704
13705 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
13706 epa-hook.elc.
13707
137082008-05-08 Juanma Barranquero <lekktu@gmail.com>
13709
13710 * font.c (Ffont_match_p): Don't use `iff' in docstring.
13711
137122008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
13713
13714 * macfns.c (Fx_create_frame): Make a copy of frame parameters
13715 because the original parameters are in pure storage now.
13716 (mac_window): Remove unused params. Update callers.
13717
137182008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
13719
13720 * lread.c (substitute_object_recurse): Use lower-level primitives.
13721 Don't signal errors when traversing sub-char-tables.
13722 Don't loop over all the possible characters when traversing char-tables.
13723
13724 * print.c (print_preprocess): Add sub-char-tables to the print-table,
13725 just like we do in print.c.
13726
137272008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
13728
13729 * minibuf.c (Ftry_completion): Remove code left over from when we used
13730 scmp instead of Fcompare_strings.
13731
137322008-05-04 Juanma Barranquero <lekktu@gmail.com>
13733
13734 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
13735
137362008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13737
13738 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
13739 Create bitmap context in native byte order.
13740
13741 * macterm.c (XDrawLine)
13742 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
13743 context in native byte order.
13744
137452008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13746
13747 * config.in: Regenerate.
13748
13749 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
13750 New definitions for Image I/O support.
13751 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
13752 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
13753 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
13754 (mac_data_provider_release_data, image_load_image_io)
13755 [USE_MAC_IMAGE_IO]: New functions.
13756 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
13757 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
13758 (init_image_func_pointer) [MAC_OSX]: Remove function.
13759 (image_load_quartz2d) [MAC_OSX]: Check availability of
13760 CGImageCreateWithPNGDataProvider at compile time.
13761 Use lowercase `false' for boolean constant.
13762 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
13763 Use image_load_image_io.
13764 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
13765 Don't check MyCGImageCreateWithPNGDataProvider.
13766 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
13767 Don't call init_image_func_pointer.
13768
13769 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
13770
13771 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
13772 Make variable non-static.
13773 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
13774 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
13775
13776 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
13777 (RED_FROM_ULONG): Mask off higher bits.
13778 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
13779
13780 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
13781 Include AvailabilityMacros.h.
13782 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
13783 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
13784
137852008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
13786
13787 * chartab.c (Fset_char_table_range): If range is t, really set all
13788 chars to that value.
13789
137902008-05-03 Eli Zaretskii <eliz@gnu.org>
13791
13792 * dired.c (Ffile_attributes): Don't allow the device number become
13793 negative.
13794
137952008-05-02 Daiki Ueno <ueno@unixuser.org>
13796
13797 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
13798
137992008-05-02 Juri Linkov <juri@jurta.org>
13800
13801 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
13802 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
13803 DEFAULT argument as a list of default values in docstrings.
13804
138052008-05-01 Chong Yidong <cyd@stupidchicken.com>
13806
13807 * puresize.h (BASE_PURESIZE): Increase to 1210000.
13808
138092008-05-01 Martin Rudalics <rudalics@gmx.at>
13810
13811 * dispnew.c (change_frame_size_1): Preserve small windows when
13812 shrinking frames by calling set_window_height|width with third
13813 arg 2.
13814
13815 * window.h (struct window): Replace field too_small_ok by field
13816 resize_proportionally.
13817
13818 * window.c (make_window): Initialize resize_proportionally.
13819 (enlarge_window): Temporarily set resize_proportionally to make
13820 sure that shrink_windows does scale the window proportionally.
13821 (shrink_windows): When window has resize_proportionally set try
13822 to shrink it proportionally by stealing from other windows.
13823 (struct saved_window, Fset_window_configuration)
13824 (compare_window_configurations): Handle resize_proportionally.
13825 (WINDOW_TOTAL_SIZE): New macro.
13826 (window_min_size, shrink_windows, size_window): Use it.
13827 (check_min_window_sizes): Remove. Invalid values of
13828 window-min-height|width are handled by window_min_size_2 now.
13829 (size_window, Fsplit_window, enlarge_window)
13830 (adjust_window_trailing_edge, grow_mini_window): Don't call
13831 check_min_window_sizes.
13832 (window_min_size_2, window_min_size_1, window_min_size):
13833 New argument safe_p for retrieving "safe" minimum sizes.
13834 (Fdisplay_buffer, Fsplit_window, enlarge_window)
13835 (adjust_window_trailing_edge, grow_mini_window):
13836 Adjust arguments of window_min_size... functions.
13837 (shrink_windows): Argument min_size removed. New argument
13838 safe_p allows shrinking windows to their safe minimum sizes.
13839 Calculate minimum size and decide whether a window shall be
13840 deleted for each window individually.
13841 (size_window): When nodelete_p equals 2, tell shrink_windows to
13842 delete windows only if their new minimum size is no more safe.
13843 (shrink_window_lowest_first): Call window_min_size_1 to make
13844 sure to preserve modeline of bottom-most window when resizing
13845 the minibuffer.
13846 (Fset_window_configuration, Fcurrent_window_configuration)
13847 (compare_window_configurations): Do not handle
13848 window-min-height|width any more.
13849 (syms_of_window): Clarify window-min-height|width doc-strings.
13850
138512008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
13852
13853 * dired.c (file_name_completion): Fix up the encoding/decoding issue
13854 some more. Copy some of the code from Ftry_completions.
13855 Remove special case code that dates back to initial revision when the
13856 slash was only added when necessary and that can't trigger nowadays.
13857
138582008-04-27 Kenichi Handa <handa@m17n.org>
13859
13860 * font.c (font_prop_validate): Signal `error' instead of `font'.
13861
138622008-04-29 Jason Rumney <jasonr@gnu.org>
13863
13864 * w32fns.c (Fw32_battery_status): New defun.
13865 (syms_of_w32fns): Defsubr it.
13866
138672008-04-28 Andreas Schwab <schwab@suse.de>
13868
13869 * dired.c (file_name_completion): Fix another mixing of encoded
13870 and decoded names.
13871
138722008-04-28 Juanma Barranquero <lekktu@gmail.com>
13873
13874 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
13875
138762008-04-27 Juanma Barranquero <lekktu@gmail.com>
13877
13878 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
13879
138802008-04-27 Andreas Schwab <schwab@suse.de>
13881
13882 * dired.c (file_name_completion): Fix inappropriate mixing of
13883 encoded and decoded names.
13884
13885 * xterm.c (XTread_socket): Fix use of uninitialized variable.
13886
13887 * puresize.h (BASE_PURESIZE): Increase to 1200000.
13888
138892008-04-26 Eli Zaretskii <eliz@gnu.org>
13890
13891 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
13892 2008-03-31, it's not needed anymore with `struct stat' definition
13893 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
13894 for the same reasons.
13895
138962008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
13897
13898 * m/sparc.h: Additional redefinitions for GNU/Linux.
13899
139002008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13901
13902 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
13903 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
13904 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
13905 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
13906 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13907 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
13908 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13909 Likewise.
13910
13911 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
13912 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
13913 (mac_ax_number_of_characters): Add externs.
13914 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13915 [USE_MAC_TSM]: Likewise.
13916 (mac_handle_text_input_event) [MAC_OSX]:
13917 Handle kEventTextInputOffsetToPos for no active input area case.
13918 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
13919 (mac_handle_document_access_event)
13920 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
13921 (install_application_handler) [MAC_OSX]: Register handlers for
13922 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
13923 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13924 Register mac_handle_document_access_event.
13925
13926 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
13927 Make functions non-static.
13928
139292008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
13930
13931 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
13932 (read_file_name_completion_ignore_case, insert_default_directory)
13933 (Qdefault_directory): Move to minibuffer.el.
13934 (Fread_file_name): Call the new `read-file-name' instead.
13935
139362008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13937
13938 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
13939 Make function non-static.
13940 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
13941 Remove function.
13942 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
13943 Move to mactoolbox.c.
13944 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
13945
13946 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
13947 (mac_rect_make): New macro.
13948
13949 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
13950 instead of float.
13951 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
13952 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
13953 (XSetBackground) [USE_CG_DRAWING]: Likewise.
13954 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
13955 CGRectMake.
13956 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
13957 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
13958 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
13959 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
13960 instead of WindowRef in argument type.
13961 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
13962 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
13963 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
13964 instead of DISPLAY. All uses changed.
13965 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
13966 (x_calc_absolute_position): Simplify so as not to use
13967 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
13968
13969 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
13970 instead of WindowRef in argument type.
13971 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
13972 [TARGET_API_MAC_CARBON]: Remove externs.
13973 (create_apple_event, mac_event_parameters_to_lisp)
13974 [TARGET_API_MAC_CARBON]: Add externs.
13975
13976 * mactoolbox.c (Vmac_ts_script_language_on_focus)
13977 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
13978 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
13979 is clicked.
13980 (x_activate_menubar): Remove extern for saved_menu_event_location.
13981 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
13982 Move from mac.c.
13983
139842008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13985
13986 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
13987 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
13988
139892008-04-23 Jason Rumney <jasonr@gnu.org>
13990
13991 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
13992 attributes only for local files.
13993
13994 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
13995 default to Qlocal.
13996
139972008-04-22 Juri Linkov <juri@jurta.org>
13998
13999 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
14000 read-buffer-to-switch instead of using the letter "B".
14001
140022008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
14003
14004 * fileio.c (Qdefault_directory): New variable.
14005 (Fread_file_name): Use it to pass `dir' to the completion functions.
14006
140072008-04-20 Chong Yidong <cyd@stupidchicken.com>
14008
14009 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
14010
140112008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
14012
14013 * keyboard.c (Vpre_help_message): Remove.
14014 (show_help_echo): Remove default C code.
14015
14016 * dired.c (directory_files_internal, file_name_completion):
14017 Only call ENCODE_FILE if the string is indeed decoded.
14018
140192008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
14020
14021 * Makefile.in (TOOLKIT_DEFINES): Remove.
14022 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
14023
140242008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14025
14026 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
14027 (mactoolbox.o): New target.
14028
14029 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
14030 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
14031
14032 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
14033 Use mac_set_frame_window_background instead of XSetWindowBackground.
14034 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
14035 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
14036 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
14037 instead of SetWindowTitleWithCFString.
14038 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
14039 Move function to mactoolbox.c.
14040 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
14041 Use mac_set_window_modified instead of SetWindowModified.
14042 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
14043 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
14044 (Fx_focus_frame): Use mac_front_non_floating_window instead of
14045 FrontNonFloatingWindow. Use mac_activate_window instead of
14046 ActivateWindow. Use mac_active_non_floating_window instead of
14047 ActiveNonFloatingWindow.
14048 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
14049 Use mac_show_hourglass and mac_hide_hourglass.
14050 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
14051 instead of GetGlobalMouse.
14052 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
14053 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
14054 Use mac_bring_window_to_front instead of BringToFront.
14055 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
14056 mactoolbox.c.
14057 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
14058 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
14059 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
14060 mactoolbox.c.
14061
14062 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
14063 (XtPointer): Move typedef from macmenu.c.
14064 (enum button_type): Move enum from macmenu.c.
14065 (widget_value): Move typedef from macmenu.c.
14066 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
14067 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
14068 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
14069 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
14070 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
14071 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
14072 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
14073 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
14074 (Selection): Move typedef from macselect.c.
14075 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
14076 macterm.c.
14077 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
14078 (mac_is_window_collapsed, mac_bring_window_to_front)
14079 (mac_send_window_behind, mac_hide_window, mac_show_window)
14080 (mac_collapse_window, mac_front_non_floating_window)
14081 (mac_active_non_floating_window, mac_activate_window)
14082 (mac_move_window_structure, mac_move_window, mac_size_window)
14083 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
14084
14085 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
14086 (enum mac_menu_kind): Move enum to mactoolbox.c.
14087 (min_menu_id): Move variable to mactoolbox.c.
14088 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
14089 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
14090 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
14091 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
14092 [TARGET_API_MAC_CARBON]: Likewise.
14093 (XtPointer): Move typedef to macgui.h.
14094 (enum button_type): Move enum to macgui.h.
14095 (widget_value): Move typedef to macgui.h.
14096 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
14097 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
14098 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
14099 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
14100 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
14101 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
14102 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
14103 (popup_activated_flag): Make variable non-static.
14104 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
14105 (add_menu_item, fill_menu, dispose_menus):
14106 Move functions to mactoolbox.c.
14107 (restore_show_help_function, menu_target_item_handler)
14108 (install_menu_target_item_handler, mac_handle_dialog_event)
14109 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
14110 [TARGET_API_MAC_CARBON]: Likewise.
14111 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
14112 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
14113 (find_and_call_menu_selection, name_is_separator): Make function
14114 non-static.
14115 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
14116 to mactoolbox.c.
14117 (set_frame_menubar): Don't call install_menu_quit_handler.
14118 (menu_item_selection): New variable.
14119 (mac_menu_show): Use create_and_show_popup_menu.
14120 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
14121 selection but set variable menu_item_selection. All uses changed.
14122 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
14123 Call install_menu_quit_handler. Move to mactoolbox.c.
14124
14125 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
14126 (Selection): Move typedef to macgui.h.
14127 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
14128 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
14129 Make variables non-static.
14130 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
14131 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
14132 Make functions non-static.
14133 (Vmac_service_selection) [MAC_OSX]: Likewise.
14134 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
14135 (mac_valid_selection_target_p, mac_clear_selection)
14136 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
14137 (mac_put_selection_value, mac_selection_has_target_p)
14138 (mac_get_selection_value, mac_get_selection_target_list)
14139 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
14140 Move functions to mactoolbox.c.
14141 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
14142 Likewise.
14143 (copy_scrap_flavor_data, mac_handle_service_event)
14144 (install_service_handler) [MAC_OSX]: Likewise.
14145 (syms_of_macselect) <Vmac_dnd_known_types>:
14146 Use mac_dnd_default_known_types.
14147
14148 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
14149 Move to mactoolbox.c.
14150 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
14151 (Fx_selection_owner_p): Add EXFUN.
14152 (install_window_handler, remove_window_handler, XSetWindowBackground):
14153 Remove externs.
14154 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
14155 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
14156 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
14157 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
14158 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
14159 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
14160 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
14161 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
14162 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
14163 (create_and_show_popup_menu, mac_get_selection_from_symbol)
14164 (mac_valid_selection_target_p, mac_clear_selection)
14165 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
14166 (mac_put_selection_value, mac_selection_has_target_p)
14167 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
14168 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
14169 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
14170 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
14171 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
14172 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
14173 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
14174 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
14175 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
14176
14177 * mactoolbox.c: New file.
14178
141792008-04-18 Jason Rumney <jasonr@gnu.org>
14180
14181 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
14182
141832008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
14184
14185 * character.c (Fmultibyte_char_to_unibyte):
14186 Return latin1 chars unchanged.
14187
14188 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
14189 relocated if it points to `name'.
14190
141912008-04-17 Kenichi Handa <handa@m17n.org>
14192
14193 * data.c (Faset): Allow setting a multibyte character in an
14194 ASCII-only unibyte string.
14195
14196 * lisp.h (STRING_SET_MULTIBYTE): New macro.
14197
141982008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
14199
14200 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
14201 done in config.h.
14202
142032008-04-16 Juanma Barranquero <lekktu@gmail.com>
14204
14205 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
14206 (Fchar_direction): Add usage in the docstring.
14207
142082008-04-15 Chong Yidong <cyd@stupidchicken.com>
14209
14210 * keyboard.c (read_key_sequence): Remove always-true checks.
14211
142122008-04-14 Jason Rumney <jasonr@gnu.org>
14213
14214 * w32font.c (w32font_open_internal): Set max_bounds.descent in
14215 compatibility struct, for better underline positioning.
14216
142172008-04-13 David Hansen <david.hansen@gmx.net>
14218
14219 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
14220 string.
14221
142222008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
14223
14224 * m/hp800.h (XUINT, XSET): Remove.
14225
142262008-04-12 Juanma Barranquero <lekktu@gmail.com>
14227
14228 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
14229 previous change.
14230
142312008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
14232
14233 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
14234 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
14235
142362008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
14237
14238 * keymap.h (map_keymap_canonical): Declare.
14239 * xmenu.c (single_keymap_panes): Use it.
14240
142412008-04-11 Glenn Morris <rgm@gnu.org>
14242
14243 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
14244 set the target's value to that of the alias.
14245
142462008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
14247
14248 * term.c (set_tty_color_mode): Left over typo.
14249
142502008-04-10 Michael Albinus <michael.albinus@gmx.de>
14251
14252 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
14253 only after check for file name handler functions. Signal, when
14254 native functionality is not supported.
14255 (syms_of_fileio): Declare it unconditionally.
14256
142572008-04-10 Jason Rumney <jasonr@gnu.org>
14258
14259 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
14260 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
14261
14262 * w32.c (logon_network_drive): Also logon to remote drives that
14263 are mapped to drive letters.
14264
142652008-04-10 Glenn Morris <rgm@gnu.org>
14266
14267 * xdisp.c (truncate-partial-width-windows): Doc fix.
14268
142692008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
14270
14271 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
14272 Move functions to minibuffer.el.
14273 (syms_of_fileio): Don't declare them.
14274
142752008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
14276
14277 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
14278 (syms_of_minibuf): Remove its initialization.
14279
14280 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
14281
142822008-04-09 Juanma Barranquero <lekktu@gmail.com>
14283
14284 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
14285
142862008-04-09 Jason Rumney <jasonr@gnu.org>
14287
14288 * makefile.w32-in (distclean): Delete makefile too.
14289 (maintainer-clean): New target.
14290
14291 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
14292
14293 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
14294 for new font backend and composite cases.
14295
142962008-04-09 Jan Djärv <jan.h.d@swipnet.se>
14297
14298 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
14299 Most of the code moved to run_timers.
14300 (do_pending_atimers): Call run_timers.
14301 (run_timers): New function.
14302
14303 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
14304 run atimers.
14305
14306 * process.c (wait_reading_process_output): The same as above.
14307
143082008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
14309
14310 * minibuf.c (last_exact_completion): Remove variable.
14311 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
14312 (complete_and_exit_1, complete_and_exit_2)
14313 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
14314 (Fdisplay_completion_list, display_completion_list_1)
14315 (Fminibuffer_completion_help, Fself_insert_and_exit)
14316 (Fexit_minibuffer, Fminibuffer_message): Move functions to
14317 minibuffer.el.
14318 (syms_of_minibuf): Remove corresponding initializations.
14319
14320 * keyboard.c (Qdeactivate_mark): New var.
14321 (command_loop_1): Use it to call `deactivate-mark'.
14322 (syms_of_keyboard): Initialize it.
14323
14324 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
14325 to another frame.
14326 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
14327 Don't call set_tty_color_mode.
14328 (store_frame_param): Reset previous_frame rather than call
14329 set_tty_color_mode.
14330 * term.c (set_tty_color_mode): Rewrite.
14331 * dispextern.h (set_tty_color_mode): New type.
14332 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
14333
143342008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
14335
14336 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
14337 for generic chars, which do not exist any more in emacs-unicode.
14338
143392008-04-08 Michael Albinus <michael.albinus@gmx.de>
14340
14341 * coding.c (detect_coding_emacs_mule)
14342 (Ffind_operation_coding_system): Fix typo.
14343
143442008-04-08 Jason Rumney <jasonr@gnu.org>
14345
14346 * w32uniscribe.c (SNAME): Extract only symbol name.
14347
14348 * w32font.h (struct w32_metric_cache): New struct.
14349 (w32font_info): Use it.
14350 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
14351 (CACHE_BLOCKSIZE): New constants.
14352
14353 * w32font.c (Qja, Qko, Qzh): New symbols.
14354 (syms_of_w32font): Initialise them.
14355 (font_matches_spec): Use them to filter by language.
14356 (recompute_cached_metrics): Remove function.
14357 (compute_metrics, clear_cached_metrics): New functions.
14358 (w32font_encode_char): Use them to manage metric cache.
14359 (w32font_text_extents): Cache metrics for all glyphs on demand.
14360 Delay converting glyph indices to WORD until needed.
14361 (w32font_open_internal): Initialize metric cache to empty.
14362 (registry_to_w32_charset): Charset should always be a symbol.
14363 (fill_in_logfont, list_all_matching_fonts): Family should
14364 always be a symbol.
14365
143662008-04-06 Jason Rumney <jasonr@gnu.org>
14367
14368 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
14369 Give up if glyph indices not supported. Use uniscribe obtained
14370 ABC widths for individual metrics. Map glyph clusters back to
14371 characters using fClusterStart flag. Return number of glyphs
14372 produced, not chars processed.
14373 (uniscribe_shape): Map char at FROM to current glyph.
14374
143752008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14376
14377 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
14378 Use SetMenuItemHierarchicalMenu.
14379
143802008-04-05 Jason Rumney <jasonr@gnu.org>
14381
14382 * image.c (pbm_load): Allow color values up to 65535.
14383 Throw an error if max_color_idx is outside the supported range.
14384 Report an error when image size is invalid.
14385 Read two bytes at a time when raw images have max_color_idx above 255.
14386
aac0c6e3
MR
143872008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
14388
14389 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
14390 append "CCL: Quitted" when the CCL program is quitted.
14391 (setup_ccl_program): Initialize ccl->quit_silently to zero.
14392
14393 * ccl.h (struct ccl_program): New member quit_silently.
14394
143952008-04-05 Chong Yidong <cyd@stupidchicken.com>
14396
14397 * search.c (compile_pattern_1): Treat non-nil and non-string of
14398 search-spaces-regexp as nil.
14399
14400 * minibuf.c (Fassoc_string): Tweak docstring.
14401
144022008-04-05 Eli Zaretskii <eliz@gnu.org>
14403
14404 * dired.c (Ffile_attributes): Support inode numbers wider than 32
14405 bits. Remove ugly WINDOWSNT-specific kludge introduced on
14406 2008-03-14 to force inode be positive.
14407
14408 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
14409 _S_* ones, since we now use our own sys/stat.h.
14410 (stat, fstat): Don't mangle the inode number.
14411 (init_user_info): Don't restrict UID and GID to 0-60000 range.
14412
144132008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
14414
14415 * frame.h (struct frame): Give one more bit to `visible' since we use
14416 values larger than 1 to indicate obscured frames on ttys.
14417
14418 * keymap.c (Qkeymap_canonicalize): New var.
14419 (Fmap_keymap_internal): New fun.
14420 (describe_map): Use keymap-canonicalize.
14421
14422 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
14423 (Fundo_boundary): Set them.
14424 (syms_of_undo): Initialize them.
14425 (record_point): Use them instead of last_point_position*.
14426 (last_undo_buffer): Change type.
14427
144282008-04-04 Jason Rumney <jasonr@gnu.org>
14429
14430 * w32font.c (w32font_text_extents): Use font's ascent and descent.
14431 (recompute_cached_metrics): Don't set ascent and descent per char.
14432
14433 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
14434 (uniscribe_check_otf): Add GC protection before consing.
14435 Rearrange loop for counting features.
14436
144372008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
14438
14439 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
14440 buffer with byte-size of source buffer.
14441
144422008-04-03 Chong Yidong <cyd@stupidchicken.com>
14443
14444 * callint.c (Fcall_interactively): Handle temporary region even
14445 when shift-select-mode is off.
14446
144472008-04-03 Jason Rumney <jasonr@gnu.org>
14448
14449 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
14450
144512008-04-03 Kenichi Handa <handa@m17n.org>
14452
14453 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
14454 (CATEGORY_MASK_UTF_16): Likewise.
14455 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
14456 binary file.
14457 (detect_coding): Add null-byte detection for a binary file.
14458 (detect_coding_system): Likewise.
14459
144602008-04-03 Jason Rumney <jasonr@gnu.org>
14461
14462 * w32uniscribe.c: New file.
14463
14464 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
14465
14466 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
14467
14468 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
14469 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
14470 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
14471 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
14472 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
14473 (Qphonetic): New symbols.
14474 (syms_of_w32font): Initialize them.
14475 (font_supported_scripts): Use them.
14476 (w32font_list_family): List all charsets.
14477 (w32font_text_extents, recompute_cached_metrics): Fix metric
14478 calculations.
14479 (w32_enumfont_pattern_entity): Make full_type a DWORD.
14480 Give opentype fonts their own format.
14481 (font_matches_spec): New arguments backend and logfont.
14482 Handle :otf spec for uniscribe backend.
14483 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
14484 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
14485
14486 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
14487 font backend.
14488 (globals_of_w32fns): Initialize uniscribe font backend.
14489
14490 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
14491 dependencies.
14492 (w32uniscribe.$(O)): New file to build.
14493 (FONT_OBJ): Include w32uniscribe.$(O).
14494 (LIBS): Add uniscribe libraries.
14495
14496 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
14497
144982008-04-02 Chong Yidong <cyd@stupidchicken.com>
14499
14500 * callint.c (Vshift_select_mode): New var.
14501 (Finteractive): Document new ^ spec.
14502 (Fcall_interactively): Call handle-shift-selection if the ^ spec
14503 is present.
14504
14505 * keyboard.c (Vthis_command_keys_shift_translated): New var.
14506 (command_loop_1): Avoid running the direct display versions of
14507 forward-char and backward-char if shift-selection may occur.
14508 (read_key_sequence): Set Vthis_command_keys_shift_translated if
14509 shift-translation takes place.
14510
14511 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
14512 avoid clobbering by define-minor-mode.
14513
14514 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
14515 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
14516
14517 * syntax.c (Fforward_word): Add ^ interactive spec.
14518
14519 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
14520 (Fscroll_right): Add ^ interactive spec.
14521
145222008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
14523
14524 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
14525
14526 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
14527
14528 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
14529
145302008-03-31 Juri Linkov <juri@jurta.org>
14531
14532 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
14533
145342008-03-30 Jan Djärv <jan.h.d@swipnet.se>
14535
14536 * gtkutil.c (xg_set_geometry): Fix indentation.
14537 (xg_resize_outer_widget): Remove.
14538 (x_wm_size_hint_off): Fix indentation.
14539 (xg_frame_set_char_size): Call flush_and_sync after
14540 gtk_window_resize.
14541 (x_wm_set_size_hint): Pass NULL as geometry window to
14542 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
14543 Add menu bar and tool bar height to base height.
14544 (xg_update_frame_menubar, free_frame_menubar)
14545 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
14546 (update_frame_tool_bar, free_frame_tool_bar):
14547 Change xg_resize_outer_widget to xg_frame_set_char_size.
14548
145492008-03-30 Michael Albinus <michael.albinus@gmx.de>
14550
14551 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
14552 (Fdbus_call_method): New parameter TIMEOUT.
14553 (dbus-send-signal): Optimize UNGCPRO call.
14554
145552008-03-29 Juri Linkov <juri@jurta.org>
14556
14557 * window.c (Fdisplay_buffer): Move call to
14558 Vsplit_window_preferred_function out of conditions that check
14559 if window is eligible for vertical splitting.
14560 When Vsplit_window_preferred_function is non-nil, call it and use
14561 its non-nil return value as window. Otherwise, continue doing
14562 vertical splitting using Fsplit_window with arg horflag=nil.
14563 (syms_of_window) <Vsplit_window_preferred_function>: Change the
14564 default value from `split-window' to nil.
14565
145662008-03-29 Juri Linkov <juri@jurta.org>
14567
14568 * callint.c (Fcall_interactively): Revert 2008-03-16 change
14569 for interactive code letters 'b' and 'B'.
14570
145712008-03-29 Eli Zaretskii <eliz@gnu.org>
14572
14573 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
14574 multibyte string.
14575
145762008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
14577
14578 * keyboard.c (pending_funcalls): New var.
14579 (timer_check): Run it.
14580 (syms_of_keyboard): Initialize it.
14581 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
14582 (Vdelete_terminal_functions): New vars.
14583 (syms_of_terminal): Initialize them.
14584 (Fdelete_terminal): Run delete-terminal-functions.
14585 * xdisp.c (safe_eval): Rewrite.
14586 (safe_call2): New fun.
14587 * frame.c (Qdelete_frame_functions): New var.
14588 (syms_of_frame): Initialize it.
14589 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
14590 * lisp.h (safe_call2, pending_funcalls): Declare.
14591
145922008-03-28 Andreas Schwab <schwab@suse.de>
14593
14594 * indent.c (Fmove_to_column): Move declaration before statements.
14595
145962008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
14597
14598 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
14599 (struct frame): Use bit fields for boolean vars.
14600
14601 * process.c (server_accept_connection): Simplify naming.
14602 (emacs_get_tty_pgrp): Use SDATA.
14603
14604 * coding.c (decode_coding_object): Fix last change.
14605
146062008-03-27 Jason Rumney <jasonr@gnu.org>
14607
14608 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
14609
146102008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
14611
14612 * charset.c (Fdefine_charset_internal): Change the way of
14613 registering charsets in Vcharset_order_list.
14614 (syms_of_charset): Make the charset `eight-bit' supplementary.
14615
146162008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
14617
14618 * regex.c (EXTEND_BUFFER): Change order of pointer addition
14619 operations, to avoid having the difference between pointers
14620 overflow.
14621
146222008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
14623
14624 * indent.c (check_display_width): New fun.
14625 (scan_for_column): Use it.
14626
14627 * data.c (syms_of_data): Mark most-positive-fixnum and
14628 most-negative-fixnum as constants.
14629
14630 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
14631
14632 * indent.c (scan_for_column): Extract from current_column_1.
14633 Merge with the same code from Fmove_to_column.
14634 (current_column_1, Fmove_to_column): Use it.
14635
146362008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
14637
14638 * keymap.c (map_keymap_internal): New fun.
14639 (map_keymap): Use it.
14640 (Fmap_keymap_internal): New fun.
14641 (Fmap_keymap): Remove left-out test from before make_save_value.
14642
14643 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
14644
14645 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
14646 Use XCAR/XCDR.
14647
14648 * process.h (struct Lisp_Process): Remove filter_multibyte.
14649 * process.c (QCfilter_multibyte): Remove.
14650 (setup_process_coding_systems): Don't use filter_multibyte.
14651 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
14652 (read_process_output): Don't adjust multibyteness to filter_multibyte.
14653 (Fset_process_filter_multibyte): Change the coding-system to
14654 approximate the previous behavior.
14655 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
14656 coding-system.
14657
14658 * coding.c (decode_coding_object): When not decoding into a buffer,
14659 obey the coding system's preference of (uni|multi)byte.
14660
146612008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
14662
14663 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
14664 every char is changed and has a different byte-length.
14665 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
14666 Fix int -> EMACS_INT.
14667
146682008-03-23 David Hansen <david.hansen@gmx.net>
14669
14670 * dbusbind.c (xd_read_message): Remove extra copying of message
14671 strings. Check for NULL `interface' or `member'.
14672
146732008-03-22 Eli Zaretskii <eliz@gnu.org>
14674
14675 * w32.c (readdir): If FindFirstFile/FindNextFile return in
14676 cFileName a file name that includes `?' characters, use the 8+3
14677 alias in cAlternateFileName instead.
14678
146792008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
14680
14681 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
14682
146832008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
14684
14685 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
14686 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
14687 work on current_buffer only instead (that was already the case
14688 for some of the code anyway).
14689 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
14690 (temp_set_point, temp_set_point_both): Use EMACS_INT.
14691 (SET_PT, SET_PT_BOTH): Adjust.
14692 * intervals.h (set_point, temp_set_point, set_point_both)
14693 (temp_set_point_both): Remove redundant declarations.
14694
146952008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
14696
14697 * fileio.c (Finsert_file_contents):
14698 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
14699 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
14700 when buffer != current_buffer anyway.
14701
147022008-03-20 Andreas Schwab <schwab@suse.de>
14703
14704 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
14705 as default.
14706
147072008-03-19 Jason Rumney <jasonr@gnu.org>
14708
14709 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
14710 (syms_of_w32fns): Initialize them.
14711 (HOURGLASS_ID): New constant.
14712 (x_window_to_frame): Don't check hourglass_window.
14713 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
14714 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
14715 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
14716 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
14717 Only change the cursor if hourglass is not active.
14718 (Fx_create_frame): Initialize frame's current_cursor.
14719 (hourglass_atimer): Remove.
14720 (hourglass_started): New function.
14721 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
14722 (show_hourglass): Adapt to w32, changing argument to frame.
14723
14724 * w32term.h (struct w32_output): Remove hourglass_window.
14725 Add current_cursor.
14726
14727 * eval.c (call_debugger, Fsignal):
14728 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
14729 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
14730 (Fexecute_extended_command, cancel_hourglass_unwind):
14731 * minibuf.c (read_minibuf):
14732 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
14733
147342008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
14735
14736 * window.c (run_funs): New fun.
14737 (run_window_configuration_change_hook): Use it to run the buffer-local
14738 and the global part of the hook.
14739
14740 * xdisp.c (format_mode_line_unwind_data): Add window argument.
14741 (unwind_format_mode_line): Restore selected window.
14742 (x_consider_frame_title, Fformat_mode_line): Set selected window.
14743
147442008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
14745
14746 * editfns.c (Fchar_equal): Check they are valid characters.
14747
14748 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
14749
147502008-03-17 Andreas Schwab <schwab@suse.de>
14751
14752 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
14753 against a charset.
14754
14755 * lisp.h (Fbuffer_list): Declare.
14756
147572008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 14758
aac0c6e3
MR
14759 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
14760 handlebox_widget is != 0.
14761
147622008-03-16 Juri Linkov <juri@jurta.org>
14763
14764 * callint.c (Fcall_interactively): For interactive code letters
14765 'b' and 'B' put the buffer list into the list of default "future"
14766 values of the minibuffer.
14767
147682008-03-16 Andreas Schwab <schwab@suse.de>
14769
14770 * keyboard.c (read_key_sequence): Fix downcasing of letters with
14771 modifiers.
14772
14773 * regex.c (re_match_2_internal): Correct matching of a charset
14774 against latin-1 characters.
14775
147762008-03-16 Kenichi Handa <handa@m17n.org>
14777
14778 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
14779 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
14780 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
14781 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
14782 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
14783 CHAR_STRING_ADVANCE.
14784 (produce_chars): Fix for the case that the source and the
14785 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
14786 instead of CHAR_STRING_ADVANCE.
14787 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
14788 STRING_CHAR_ADVANCE.
14789
147902008-03-15 Andreas Schwab <schwab@suse.de>
14791
14792 * regex.c (re_match_2_internal): Correct matching of eight bit
14793 characters in unibyte strings.
14794
147952008-03-15 Martin Rudalics <rudalics@gmx.at>
14796
14797 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
14798 at end of range when it coincides with the end of the buffer.
14799
148002008-03-14 Eli Zaretskii <eliz@gnu.org>
14801
14802 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
14803
14804 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
14805
148062008-03-14 Jason Rumney <jasonr@gnu.org>
14807
14808 * editfns.c (initial_tz): New variable.
14809 (syms_of_editfns): Initialize it.
14810 (Fset_time_zone_rule): Set it when first called.
14811 Use it when TZSTRING is nil.
14812
14813 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
14814 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
14815 (monitor_from_point_fn, get_monitor_info_fn): New globals.
14816 (globals_of_w32fns): Initialize them.
14817 (compute_tip_xy): Use them to position tooltips.
14818
148192008-03-14 Glenn Morris <rgm@gnu.org>
14820
14821 * emacs.c (main): Revert previous change.
14822 (standard_args): Revert -internal-script back to -scriptload,
14823 and remove the long-option form.
14824
148252008-03-13 Glenn Morris <rgm@gnu.org>
14826
14827 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
14828 Remove option -enable-font-backend.
14829
148302008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
14831
14832 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
14833
148342008-03-11 Jan Djärv <jan.h.d@swipnet.se>
14835
14836 * xterm.c (x_connection_closed): For GTK: If this is the last
14837 terminal just exit without closing the display.
14838
148392008-03-11 Jason Rumney <jasonr@gnu.org>
14840
14841 * w32font.c (w32font_full_name): Use floor to round.
14842
f0131492 148432008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
14844
14845 * sound.c (alsa_configure): Declare vol at beginning of block.
14846
14847 * fontset.c (Ffontset_info): Remove extra semicolon.
14848
148492008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
14850
14851 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
14852 size of resulting string.
14853
148542008-03-10 Jason Rumney <jasonr@gnu.org>
14855
14856 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
14857
148582008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14859
14860 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
14861 Don't pretend as if characters with display property haven't been
14862 consumed for string-replacing-string case.
14863
148642008-03-08 Kim F. Storm <storm@cua.dk>
14865
14866 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
14867 (get_next_display_element, next_element_from_string)
14868 (next_element_from_ellipsis, next_element_from_buffer): Use it.
14869
148702008-03-08 Andreas Schwab <schwab@suse.de>
14871
14872 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
14873
148742008-03-06 Jason Rumney <jasonr@gnu.org>
14875
14876 * w32font.c (w32_registry): Take font_type argument. Use ANSI
14877 when charset not specified. Only translate ANSI to unicode when
14878 font_type is truetype.
14879 (w32font_coverage_ok): New function.
14880 (add_font_entity_to_list): Use it to filter unsuitable fonts.
14881
148822008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
14883
14884 * lread.c (Fread_char): Resolve modifiers.
14885 (Fread_char_exclusive): Likewise.
14886
14887 * character.c (char_resolve_modifier_mask): New function.
14888 (char_string): Use char_resolve_modifier_mask.
14889 (Fchar_resolve_modifiers): New function.
14890 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
14891 function.
14892
148932008-03-04 Jason Rumney <jasonr@gnu.org>
14894
14895 * makefile.w32-in: Always include w32font.c in the build.
14896 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
14897
148982008-03-04 Andreas Schwab <schwab@suse.de>
14899
14900 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
14901 (versionclean): Likewise.
14902
149032008-03-04 Juanma Barranquero <lekktu@gmail.com>
14904
14905 * .cvsignore: Add oo.
14906
149072008-03-03 Andreas Schwab <schwab@suse.de>
14908
14909 * coding.c (decode_coding_object): Inhibit gap shrinking while
14910 decoding in place.
14911
149122008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
14913
14914 * w32term.c: Remove unused include "gnu.h".
14915 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
14916
14917 * gnu.h: Rename to ...
14918 * emacs-icon.h: ... this.
14919 * xterm.c: Use emacs-icon.h instead of gnu.h.
14920 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
14921
149222008-03-03 Juanma Barranquero <lekktu@gmail.com>
14923
14924 * w32font.c: Include math.h.
14925
149262008-03-03 Jason Rumney <jasonr@gnu.org>
14927
14928 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
14929 Compute options separately.
14930 (w32font_open_internal): Set glyph_idx before caching metrics.
14931
14932 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
14933 Define if system headers don't.
14934 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
14935 (w32font_encode_char): Don't declare here.
14936
14937 * w32font.c (Quniscribe, QCformat): New symbols.
14938 (syms_of_w32font): Define them.
14939 (w32font_has_char): Indicate uncertainty.
14940 (w32font_encode_char): Encode as glyph point. Make static.
14941 (recompute_cached_metrics): New function.
14942 (w32font_open_internal): Use it. Set font to use glyph points
14943 initially. Set format based on type of font.
14944 (w32font_text_extents, w32font_draw): Optionally use glyph points.
14945 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
14946 on it. Set format based on information available here.
14947 (add_font_entity_to_list): Identify backend based on opentype_only.
14948
149492008-03-02 Andreas Schwab <schwab@suse.de>
14950
14951 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
14952
14953 * coding.c (decode_coding_big5, produce_chars):
14954 Fix typos in last change.
14955
149562008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
14957
14958 * gnu.h: New icon.
14959
149602008-03-02 Kenichi Handa <handa@m17n.org>
14961
14962 * coding.c (decode_coding_utf_8): When eol-type of CODING is
14963 `dos', don't decode '\r' if that is the last in the source.
14964 (decode_coding_utf_16, decode_coding_emacs_mule)
14965 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14966 (decode_coding_raw_text, decode_coding_charset): Likewise.
14967 (produce_chars): Don't decode EOL here. Use EMACS_INT.
14968
149692008-03-01 Jason Rumney <jasonr@gnu.org>
14970
14971 * w32font.c (w32font_full_name): Report point size for scalable fonts.
14972
149732008-03-01 Kim F. Storm <storm@cua.dk>
14974
14975 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
14976
149772008-03-01 Jason Rumney <jasonr@gnu.org>
14978
14979 * w32font.c (w32font_full_name): New function.
14980 (w32font_open_internal): Use it.
14981
149822008-03-01 Kim F. Storm <storm@cua.dk>
14983
14984 * dispnew.c (line_draw_cost): Fix invalid glyph check.
14985
149862008-03-01 Jason Rumney <jasonr@gnu.org>
14987
14988 * font.c (font_unparse_fcname): Increase len when style is a symbol.
14989
149902008-03-01 Jan Djärv <jan.h.d@swipnet.se>
14991
14992 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
14993 xg_frame_resized when the event is for the edit widget.
14994
14995 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
14996
14997 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
14998 set_char_size.
14999 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
15000 operations on widgets here. Just set frame size if needed.
15001 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
15002 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
15003 (x_wm_set_size_hint): Set size hints on the edit widget only, not
15004 the whole frame.
15005 (xg_create_tool_bar): Move attachment of the tool bar to
15006 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
15007 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
15008
150092008-03-01 Jason Rumney <jasonr@gnu.org>
15010
15011 * w32fns.c (w32_msg_pump): Disable debug code.
15012
150132008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15014
15015 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
15016
150172008-02-29 Chong Yidong <cyd@stupidchicken.com>
15018
15019 * xdisp.c (next_overlay_string): Don't set
15020 overlay_strings_at_end_processed_p if we're currently reading from
15021 a display string.
15022
150232008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
15024
15025 * xdisp.c (get_overlay_strings_1): Fix typo.
15026
150272008-02-29 Chong Yidong <cyd@stupidchicken.com>
15028
15029 * xdisp.c (get_overlay_strings_1): Add missing argument type.
15030
150312008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
15032
15033 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
15034
15035 * xdisp.c (display_mode_element): Cancel the previous change.
15036 (decode_mode_spec): Likewise.
15037 (handle_auto_composed_prop): Don't make composition if it->string
15038 is a string.
15039
150402008-02-27 Kim F. Storm <storm@cua.dk>
15041
15042 * lisp.h (GLYPH): Change type from int to struct with separate char
15043 and face_id members.
15044 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
15045 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
15046 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
15047 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
15048 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
15049 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
15050 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
15051 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
15052 handle new Lisp glyph code encoding, either an integer or a cons.
15053
15054 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
15055 (GLYPH_ALIAS): Delete.
15056 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
15057 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
15058 (GLYPH_FROM_CHAR): Replace macro by ...
15059 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
15060
15061 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
15062 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
15063 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
15064 (GLYPH_INVALID_P): New macro.
15065 (spec_glyph_lookup_face): Update prototype.
15066
15067 * dispnew.c (line_draw_cost): Adapt to new glyph type.
15068 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
15069 new glyph code encoding.
15070 (spec_glyph_lookup_face): No return value; update passed glyph instead.
15071 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
15072
15073 * xdisp.c (get_next_display_element, next_element_from_display_vector):
15074 Adapt to new glyph type and new glyph code encoding.
15075
15076 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
15077
15078 * indent.c (current_column, current_column_1, Fmove_to_column)
15079 (compute_motion): Adapt to new glyph code encoding.
15080
15081 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
15082
150832008-02-27 Chong Yidong <cyd@stupidchicken.com>
15084
15085 * process.c (wait_reading_process_output): Check for window
15086 changes caused by timers.
15087 Suggested by Johan Bockgård.
15088
150892008-02-27 Glenn Morris <rgm@gnu.org>
15090
15091 * emacs.c (USAGE1): Add `--disable-font-backend'.
15092
150932008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
15094
15095 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
15096 is made to the buffer.
15097
150982008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
15099
15100 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
15101 (face_at_string_position):
15102 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
15103 (face_at_string_position):
15104 * xdisp.c (display_string, next_overlay_change):
15105 * buffer.h (overlays_at):
15106 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
15107 Update callers.
15108
151092008-02-26 Chong Yidong <cyd@stupidchicken.com>
15110
15111 * editfns.c (Fformat): Doc fix.
15112
151132008-02-26 Juanma Barranquero <lekktu@gmail.com>
15114
15115 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
15116 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
15117 (Ffont_otf_alternates, Fquery_font): Doc fixes.
15118
151192008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
15120
15121 * buffer.c (Fbuffer_swap_text): New function.
15122 (syms_of_buffer): Defsubr it.
15123
151242008-02-25 Chong Yidong <cyd@stupidchicken.com>
15125
15126 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
15127
151282008-02-25 Jason Rumney <jasonr@gnu.org>
15129
15130 * w32font.c (w32font_draw): Draw one character at a time when padding.
15131
151322008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
15133
15134 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
15135 Handle a nil arg. Use run_window_configuration_change_hook.
15136 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
15137 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
15138 Use run_window_configuration_change_hook.
15139
151402008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
15141
15142 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
15143 1-pixel width.
15144
151452008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
15146
15147 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
15148 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
15149 if the glyph in the font is zero pixel with.
15150
15151 * dispextern.h (struct glyph_string): New member padding_p.
15152
15153 * w32font.c (w32font_draw): Pay attention to s->padding_p.
15154
15155 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
15156
15157 * xfont.c (xfont_draw): Pay attention to s->padding_p.
15158
15159 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
15160
15161 * font.c: If the font driver doesn't have `shape' function, return Qnil.
15162
151632008-02-25 Jason Rumney <jasonr@gnu.org>
15164
15165 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
15166
151672008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
15168
15169 Allow fine-grained image-cache flushing.
15170 * dispextern.h (struct image): Add `dependencies' field.
15171 (clear_image_caches): Change arg to Lisp_Object.
15172 * image.c (make_image): Initialize `dependencies' field.
15173 (clear_image_cache): Change arg to allow fine-grained flushing.
15174 Perform the flush even if image-cache-eviction-delay is nil.
15175 (clear_image_caches): Change arg to Lisp_Object.
15176 (Fclear_image_cache): Expand meaning of the argument.
15177 (mark_image): Mark `dependencies' field.
15178 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
15179 (lface_hash): Use XHASH rather than XFASTINT.
15180 (face_at_buffer_position): Fix int -> EMACS_INT position.
15181 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
15182 (select_frame_for_redisplay): Remove code duplication.
15183 (redisplay_internal): Adapt arg to call to clear_image_caches.
15184
151852008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
15186
15187 * s/vms4-0.h:
15188 * s/vms4-2.h:
15189 * s/vms4-4.h:
15190 * s/vms5-5.h: Remove, unused.
15191
15192 * s/irix5-2.h:
15193 * s/irix6-0.h:
15194 * s/riscos5.h:
15195 * s/mach-bsd4-3.h:
15196 * m/mips4.h: Remove files for obsolete systems.
15197
15198 * Makefile.in:
15199 * filelock.c:
15200 * unexmips.c:
15201 * m/hp9000s300.h:
15202 * m/iris4d.h:
15203 * s/aix3-1.h:
15204 * s/hpux.h:
15205 * s/msdos.h:
15206 * s/usg5-0.h:
15207 * s/usg5-2-2.h:
15208 * s/usg5-2.h:
15209 * s/usg5-3.h: Remove references to obsolete variables.
15210
15211 * s/irix5-0.h: Remove, move all the contents ...
15212 * s/irix6-5.h: ... here. Simplify.
15213 * config.in: Regenerate.
15214
152152008-02-24 Jason Rumney <jasonr@gnu.org>
15216
15217 * w32term.c (x_draw_glyph_string_background): Clear the background
15218 manually when cleartype is in use.
15219 (x_draw_glyph_string_foreground): Draw text transparently when
15220 cleartype is in use.
15221
15222 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
15223 a font into it unless we have to.
15224
152252008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
15226
15227 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
15228 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 15229
aac0c6e3
MR
152302008-02-18 Jason Rumney <jasonr@gnu.org>
15231
15232 * w32fns.c (Fw32_shell_execute): Encode parameters.
15233
152342008-02-09 Eli Zaretskii <eliz@gnu.org>
15235
15236 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
15237
152382008-02-05 Juanma Barranquero <lekktu@gmail.com>
15239
15240 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
15241
152422008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
15243
15244 * xterm.c (x_set_offset): Don't change the gravity if
15245 CHANGE_GRAVITY is -1.
15246
152472008-02-23 Chong Yidong <cyd@stupidchicken.com>
15248
15249 * fileio.c (auto_save_error_occurred): New var.
15250 (auto_save_error): Set it.
15251 (Fdo_auto_save): Don't overwrite the error message if an auto-save
15252 error occurred.
15253
152542008-02-23 Eli Zaretskii <eliz@gnu.org>
15255
15256 * w32.c (globals_of_w32): Add initializations for
15257 g_b_init_get_sid_sub_authority and
15258 g_b_init_get_sid_sub_authority_count.
15259
152602008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
15261
15262 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
15263 (font_parse_xlfd): Use them for sanity check.
15264 (Finternal_set_font_style_table): Make sure the table is bijective.
15265
15266 Consolidate the image_cache to the terminal struct.
15267 * termhooks.h (P_): Remove redundant def.
15268 (struct terminal): New field `image_cache'.
15269 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
15270 of FRAME_X_IMAGE_CACHE.
15271 * xterm.h (struct x_display_info): Remove image_cache field.
15272 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15273 * w32term.h (struct w32_display_info): Remove image_cache field.
15274 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15275 * macterm.h (struct mac_display_info): Remove image_cache field.
15276 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15277 * xterm.c (x_term_init):
15278 * w32term.c (w32_term_init):
15279 * macterm.c (mac_term_init): Set the image_cache in the terminal.
15280 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
15281 Remove declarations.
15282 (clear_image_caches, mark_image_cache): New declarations.
15283 * xfaces.c (clear_face_cache):
15284 * xdisp.c (redisplay_internal): Use clear_image_caches.
15285 * image.c (clear_image_cache): Don't check that a frame is on
15286 a window-system before checking if it shares the same cache.
15287 (clear_image_caches): New function.
15288 (Fclear_image_cache): Use it.
15289 (mark_image): Move from allo.c.
15290 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
15291 * alloc.c (mark_image, mark_image_cache): Move to image.c.
15292 (mark_object): Don't call mark_image_cache for frames.
15293 (mark_terminals): Call mark_image_cache.
15294
15295 * lisp.h (Fdelete_terminal): Declare.
15296
15297 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
15298 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
15299 wrong_type_argument.
15300
153012008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
15302
15303 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
15304 malayalam.el, and tamil.el. Add sinhala.el.
15305
153062008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
15307
15308 * xterm.c (x_connection_closed): Consolidate identical tests.
15309 (x_delete_terminal): Don't crash if called via x_connection_closed.
15310
153112008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
15312
15313 * xdisp.c (decode_mode_spec): New arg string.
15314 (display_mode_element): Adjust for the above change.
15315
153162008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
15317
15318 * callint.c (Fcall_interactively): Use AREF.
15319
153202008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
15321
15322 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
15323
153242008-02-18 Jan Djärv <jan.h.d@swipnet.se>
15325
15326 * xfns.c (Fx_show_tip): Set string to " " if empty.
15327
153282008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
15329
15330 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
15331 with Qt.
15332
153332008-02-17 Kenichi Handa <handa@m17n.org>
15334
15335 * ftfont.c (ftfont_shape): Return Lispy number.
15336
15337 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
15338 for GCs.
15339 (Finternal_set_font_selection_order): Call font_update_sort_order
15340 only when enable_font_backend is set.
15341 (realize_x_face): Set face->font_info to that of default face only
15342 when enable_font_backend is set.
15343
15344 * xdisp.c (handle_composition_prop): Set it->c to the fist
15345 character of the composed region.
15346 (fill_composite_glyph_string): Set base_face->font_info to
15347 s->font_info. Get a face for ascii from base_face->ascii_face.
15348 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
15349 with a face already decided.
15350 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
15351 non-negative.
15352 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
15353 call font_prepare_composition unconditionally.
15354
15355 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
15356
15357 * xterm.h (struct x_display_info): New member font.
15358
15359 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
15360 (x_set_mouse_face_gc, x_new_font): Likewise.
15361 (x_term_init): Setup display_info->font.
15362 (x_delete_terminal): Free display_info->font.
15363
15364 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
15365
15366 * ftxfont.c (ftxfont_default_fid): Delete it.
15367 (ftxfont_open): Set xfont->fid to 0.
15368 (ftxfont_end_for_frame): Clear data specific to the frame and the
15369 font-driver.
15370
15371 * xftfont.c (xftfont_default_fid): Delete it.
15372 (xftfont_open): Set xfont->fid to 0.
15373
15374 * fontset.c (FONTSET_OBJLIST): New macro.
15375 (fontset_find_font): Update font-object list of the fontset.
15376 (free_realized_fontset): New function.
15377 (free_face_fontset): Call free_realized_fontset.
15378 (Ffont_info): Call font_close_object only when enable_font_backend
15379 is set.
15380
15381 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
15382 [HAVE_NTGUI]: Include w32term.h.
15383 [MAC_OS]: Include macterm.ch.
15384 (font_otf_ValueRecord): Use make_number.
15385 (font_finish_cache): Fix handling of reference count.
15386 (font_clear_cache): Update num_fonts.
15387 (font_open_entity): Update smallest_char_width and
15388 smallest_font_height of the frame.
15389 (font_close_object): Update num_fonts.
15390 (Fclear_font_cache): Fix finding the target cache data.
15391
153922008-02-16 Glenn Morris <rgm@gnu.org>
15393
15394 * fontset.c (Finternal_char_font): Fix compilation warning.
15395
153962008-02-16 Eli Zaretskii <eliz@gnu.org>
15397
15398 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
15399 instead of char arrays. Enlarge the size of array passed to
15400 get_token_information.
15401
15402 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
15403 warnings.
15404
154052008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
15406
15407 * .gdbinit: Don't set `args', it breaks gdb --args.
15408
154092008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
15410
15411 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
15412 within a narrowed buffer.
15413
154142008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
15415
15416 * coding.c (decode_coding_object, encode_coding_object):
15417 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
15418
154192008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
15420
15421 * coding.c (coding_set_destination): Use BEG_BYTE rather than
15422 hardcoding 1.
15423 (detect_coding_system):
15424 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
15425 (string_char_to_byte, string_byte_to_char, insert_from_gap):
15426 * insdel.c (insert_from_gap):
15427 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
15428 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
15429 (string_to_multibyte):
15430 * character.c (chars_in_text, multibyte_chars_in_text):
15431 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
15432
15433 * character.h (FETCH_STRING_CHAR_ADVANCE)
15434 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
15435 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
15436 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
15437
15438 * casefiddle.c (casify_region): Only call after-change and composition
15439 functions on the part of the region that was changed.
15440
15441 * keyboard.c (read_avail_input):
15442 * frame.c (Fdelete_frame): Call Fdelete_terminal.
15443
154442008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
15445
15446 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
15447 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
15448
154492008-02-11 Juanma Barranquero <lekktu@gmail.com>
15450
15451 * w32menu.c (push_submenu_start, push_submenu_end)
15452 (push_left_right_boundary, push_menu_pane, push_menu_item):
15453 * keyboard.c (read_key_sequence): Don't pass args with side effects
15454 to AREF, it fails when compiling with -DENABLE_CHECKING.
15455
154562008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
15457
15458 * Makefile.in (${lispsource}international/charprop.el):
15459 Delete this target.
15460
15461 * search.c (boyer_moore): Fix incorrect synching of the trunk and
15462 emacs-unicode-2.
15463
154642008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
15465
15466 * terminal.c (Fdelete_terminal): Clean up the `force' path.
15467
154682008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
15469
15470 * frame.c (Qnoelisp): New symbol.
15471 (syms_of_frame): Initialize it.
15472 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
15473 harmless Elisp code, from a strong `force' from x_connection_closed.
15474 * frame.h (Qnoelisp): Declare.
15475 * xterm.c (x_connection_closed): Pass `noelisp'.
15476
15477 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
15478 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
15479 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
15480 rather than `int' for the type of `type'.
15481
154822008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
15483
15484 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
15485
15486 * Makefile.in (GNUC): Remove support for gcc-1.x.
15487
154882008-02-10 Richard Stallman <rms@gnu.org>
15489
15490 * lisp.h (ASET): Use AREF, not ASLOT.
15491
154922008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
15493
15494 * lisp.h (ASET): Check bounds.
15495
154962008-02-10 Glenn Morris <rgm@gnu.org>
15497
15498 * buffer.c (mode-name): Doc fix.
15499
155002008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
15501
15502 * Makefile.in:
15503 * emacs.c:
15504 * gmalloc.c:
15505 * keyboard.c:
15506 * lisp.h:
15507 * m/ibm370aix.h:
15508 * process.c:
15509 * regex.c:
15510 * s/hpux.h:
15511 * sysdep.c:
15512 * sysselect.h:
15513 * systty.h:
15514 * unexec.c:
15515 * w32term.c:
15516 * xsmfns.c:
15517 * xterm.c: Remove code that deals with obsolete variables.
15518
15519 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
15520
15521 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
15522 nothing else needs it anymore.
15523
155242008-02-09 Eli Zaretskii <eliz@gnu.org>
15525
15526 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
15527 instead of unibyte_char_to_multibyte.
15528
155292008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
15530
15531 * s/gnu-linux.h: Remove commented out code.
15532
15533 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
15534
15535 * Makefile.in: Update what RMS says about using autoconf.
15536 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
15537 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
15538 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
15539 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
15540
155412008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
15542
15543 * keymap.c (Fkey_description): Move side effect outside of macro call.
15544
15545 * xfaces.c (Finternal_make_lisp_face):
15546 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
15547
15548 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
15549 (syms_of_fontset): Use ASET.
15550
15551 * fns.c (concat): Move side effect outside of macro call.
15552 (hash_clear): Use ASET.
15553
155542008-02-08 Richard Stallman <rms@gnu.org>
15555
15556 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
15557 If FORCE, and frame has a surrogate minibuffer for another frame,
15558 delete the other frame first.
15559
155602008-02-07 Timo Savola <timo.savola@iki.fi>
15561
15562 * xterm.c (x_detect_focus_change): Handle embed client message.
15563 (handle_one_xevent): Ditto.
15564 (handle_one_xevent): If embedded and we get a button press/release,
15565 request focus.
15566 (xembed_set_info, xembed_send_message): New functions.
15567 (x_make_frame_visible): Call xembed_set_info if embedded.
15568 (x_make_frame_invisible): Call xembed_set_info if embedded.
15569 (x_term_init): Initialize Xatom_XEMBED.
15570 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
15571 (x_iconify_frame): Ditto.
15572
15573 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
15574 (enum xembed_info, enum xembed_message, enum xembed_focus)
15575 (enum xembed_modifier, enum xembed_accelerator): New.
15576 (xembed_set_info, xembed_send_message): Declare.
15577 (FRAME_X_EMBEDDED_P): New.
15578
15579 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
15580 gtk_plug_new.
15581
15582 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
15583 window ID of a frame.
15584 (x_window): Reparent frame if embedded.
15585 (Fx_create_frame): Don't set border width if embedded.
15586
15587 * emacs.c (USAGE3): Add --parent-id.
15588 (standard_args): Ditto.
15589
155902008-02-07 Jan Djärv <jan.h.d@swipnet.se>
15591
15592 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
15593
155942008-02-07 Jim Meyering <meyering@redhat.com>
15595
15596 Use "do...while (0)", not "if (1)...else" in macro definitions.
15597 The latter provokes a warning from gcc about the empty else, when
15598 followed by ";". Also, without that trailing semicolon, it would
15599 silently swallow up any following statement.
15600 * syntax.h (SETUP_SYNTAX_TABLE)
15601 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
15602 * buffer.h (DECODE_POSITION): Likewise.
15603 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
15604 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
15605 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
15606 (FETCH_CHAR_ADVANCE): Likewise.
15607 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
15608
156092008-02-07 Jim Meyering <meyering@redhat.com>
15610
15611 * lread.c [lint]: Don't include <sys/inode.h>.
15612
156132008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
15614
15615 * xselect.c (x_handle_dnd_message):
15616 * xmenu.c (digest_single_submenu, xmenu_show):
15617 * xdisp.c (with_echo_area_buffer_unwind_data)
15618 (format_mode_line_unwind_data, unwind_format_mode_line)
15619 (display_menu_bar):
15620 * eval.c (Ffetch_bytecode):
15621 * doc.c (store_function_docstring):
15622 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
15623 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
15624 * buffer.c (add_overlay_mod_hooklist): Use ASET.
15625
156262008-02-07 Kenichi Handa <handa@m17n.org>
15627
15628 * ftxfont.c (ftxfont_open): Don't set
15629 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
15630
15631 * ftfont.c (ftfont_open): Fix previous change.
15632
156332008-02-06 Jason Rumney <jasonr@gnu.org>
15634
15635 * w32font.c (w32font_text_extents): Fill in lbearing metric.
15636 Use cached metrics for ASCII characters.
15637 (w32font_open_internal): Don't set font's owning_frame.
15638 Cache metrics for ASCII characters.
15639
15640 * w32font.h (struct w32font_info): Add ascii_metrics.
15641 Remove owning_frame.
15642
156432008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
15644
15645 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
15646 to negative value.
15647
15648 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
15649
15650 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
15651
15652 * charset.c (syms_of_charset): Set QCtest and Qeq.
15653
156542008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
15655
15656 * process.c (Fstart_process):
15657 * callproc.c (Fcall_process): Handle the case where
15658 Funhandled_file_name_directory returns nil.
15659
15660 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
15661 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
15662 * font.c (check_gstring): Use them and AREF to access the vector before
15663 we know it's really a gstring.
15664 (Ffont_shape_text): Fix typo.
46e722a9 15665 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
15666
15667 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
15668 Declare.
15669
15670 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
15671
156722008-02-05 Jason Rumney <jasonr@gnu.org>
15673
15674 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
15675 Set smallest_font_height and smallest_char_width in display info.
15676
156772008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
15678
15679 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
15680
156812008-02-05 Miles Bader <miles@gnu.org>
15682
15683 * xfaces.c (get_lface_attributes, merge_named_face)
15684 (lookup_named_face, lookup_derived_face, realize_named_face):
15685 Revert 2008-02-01 change by cyd@stupidchicken.com.
15686
156872008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
15688
15689 * fontset.c (Ffontset_info): Handle the case of inhibitting the
15690 fallback fonts.
15691 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
15692
156932008-02-04 Jason Rumney <jasonr@gnu.org>
15694
15695 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
15696 set full_name.
15697 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
15698
156992008-02-03 Jason Rumney <jasonr@gnu.org>
15700
15701 * makefile.w32-in (OBJ1): Include font.o here.
15702 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
15703
157042008-02-02 Jason Rumney <jasonr@gnu.org>
15705
15706 * makefile.w32-in (temacs): Bump EMHEAP to 21.
15707
157082008-02-01 Jason Rumney <jasonr@gnu.org>
15709
15710 * s/cygwin.h: Define VIRT_ADDR_VARIES.
15711
15712 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
15713
157142008-02-01 Andreas Schwab <schwab@suse.de>
15715
15716 * Makefile.in (shortlisp, lisp): Update for rename of
15717 ../lisp/language/myanmar.el.
15718
157192008-02-01 Chong Yidong <cyd@stupidchicken.com>
15720
15721 * xfaces.c (get_lface_attributes): Delete function.
15722 (merge_named_face, lookup_named_face, lookup_derived_face)
15723 (realize_named_face): Call lface_from_face_name directly, and use
15724 the fact that merge_face_vectors does not alter its FROM argument.
15725
157262008-02-01 Jason Rumney <jasonr@gnu.org>
15727
15728 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
15729 input in the default locale. Handle non-Unicode multibyte input.
15730
157312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15732
15733 * fontset.c (reorder_font_vector): Exclude nil elements from the
15734 font group. Don't try multiple fonts.
15735 (fontset_font): Adjust for the above change.
15736 (Finternal_char_font): Return nil if the found font doesn't
15737 contain the character ch.
15738
15739 * Makefile.in (lisp, shortlisp): Add cham.el.
15740
157412008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15742
15743 * font.h (FONTP): Make it return 1 also for a font-object.
15744
15745 * .gdbinit (xfontset): New function.
15746
15747 * font.c (font_find_for_lface): Check if the character C is
15748 supported or not only for the first font.
15749
15750 * fontset.c (reorder_font_vector): Fix typo.
15751 (fontset_find_font): Don't add a font-spec specifying a script.
15752 Use 0 (not Qt) for the indication of empty font-group. Change the
15753 format of RFONT-DEF. Return Qt if no font in the font-group
15754 support the character.
15755 (fontset_font): Adjust for the above change. If no font was
15756 found the character, remember that.
15757 (face_for_char): Adjust for the change of RFONT-DEF.
15758 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
15759 no font for the target.
15760 (Finternal_char_font): Adjust for the change of RFONT-DEF.
15761
157622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15763
15764 * font.c (font_load_for_face): Handle the case that the font in
15765 face->lface is a string.
15766
157672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15768
15769 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
15770
157712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15772
15773 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
15774 Fix previous change. If the frame is not on a window system,
15775 signal an error.
15776
157772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15778
15779 * coding.c (decode_coding_object, encode_coding_object): Adjust
15780 marker positions after conversion.
15781
15782 * lisp.h (struct Lisp_Marker): New member need_adjustment.
15783
157842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15785
15786 * font.c (font_find_for_lface): Fix the handling of the return
15787 value of font_has_char.
15788 (Ffont_shape_text): Fix previous change.
15789
15790 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
15791 (fontset_ref_and_range): Delete it.
15792 (fontset_find_font): Call char_table_ref_and_range instead of
15793 FONTSET_REF_AND_RANGE.
15794 (make_fontset): Don't setup font groups of Latin here.
15795 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
15796 (new_fontset_from_font): Make the specified font the default for
15797 all Latin characters.
15798
157992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15800
15801 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
15802 is on a window system before accessing the fontset of the frame.
15803
158042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15805
15806 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
15807
15808 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
15809 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
15810
15811 * font.c (Ffont_shape_text): If the font driver doesn't have a
15812 shaper function, make zero-width glyphs to have at least one-pixel
15813 width. Fix setting of `to' field of glyphs.
15814
158152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15816
15817 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
15818 glyphs.
15819
15820 * font.h (struct font_driver): Improve docstring of member `shape'.
15821
158222008-02-01 Kenichi Handa <handa@m17n.org>
15823
15824 * composite.c (syms_of_composite): Fix docstring of
15825 auto-composition-function.
15826
15827 * font.h (LGLYPH_SIZE): New macro.
15828
15829 * font.c (Ffont_fill_gstring): Stop filling when a character not
15830 supported by the font is found.
15831 (Ffont_shape_text): When a shape callback function returns nil,
15832 try at most two more times with larger gstring.
15833 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
15834
15835 * xdisp.c (handle_auto_composed_prop): Change the argument to
15836 auto-composition-function.
15837
15838 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
15839 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
15840 Lispy glyph and store it in the lgstring.
15841
15842 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
15843
15844 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
15845
158462008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15847
15848 * font.c (Ffont_shape_text): Avoid unnecessary composition.
15849
15850 * fontset.c (Vfont_encoding_charset_alist): New variable.
15851 (syms_of_fontset): DEFVAR it.
15852 (reorder_font_vector, fontset_find_font): Optimize for the case of
15853 no need of reordering.
15854 (face_for_char): Map the charset property by
15855 Vfont_encoding_charset_alist.
15856
158572008-02-01 Jason Rumney <jasonr@gnu.org>
15858
15859 * w32font.c (logfonts_match): Don't check adstyle here.
15860 (font_matches_spec): Check here against physical font instead.
15861 (add_font_entity_to_list): Avoid some substitutions.
15862
15863 * font.c (font_parse_fcname): Default weight and slant to normal.
15864 (font_score): Prefer normal fonts if weight or slant unspecified.
15865 (font_score) [WINDOWSNT]: Scale weight difference down to closer
15866 match freetype scores.
15867
158682008-02-01 Jason Rumney <jasonr@gnu.org>
15869
15870 * w32font.c (w32font_text_extents): Don't use the frame stored in the
15871 font, as it may have been deleted.
15872 (w32_enumfont_pattern_entity): Map generic family to adstyle using
15873 most common hyphenless variation.
15874 (logfonts_match): Check generic family.
15875 (font_matches_spec): Don't check generic family here.
15876 (fill_in_logfont): Set generic family based on adstyle.
15877
15878 * w32font.h (w32font_get_cache): Update declaration.
15879
158802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15881
15882 * ftfont.c (ftfont_get_cache): Adjust the argument type.
15883
15884 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
15885 If none of the new drivers are available, call font_update_drivers
15886 with the old drivers.
15887
15888 * w32font.c (w32font_get_cache): Adjust the argument type.
15889
15890 * xfont.c (xfont_get_cache): Adjust the argument type.
15891
15892 * font.h (struct font_driver): Change argument type of get_cache.
15893
15894 * xftfont.c (xftfont_start_for_frame): Delete prototype.
15895
15896 * font.c (Ffont_get): Fix arguments to Fassoc.
15897 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
15898 (font_clear_cache): New function.
15899 (font_list_entities, font_matching_entity): Use font_get_cache.
15900 (font_update_drivers): Call font_clear_cache when finishing a driver.
15901
15902 * fontset.c (fontset_find_font): Fix previous change.
15903
159042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15905
15906 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
15907 dpyinfo->font_table.
15908 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
15909 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
15910
15911 * font.c (font_at): Handle the case that the arg C is negative.
15912 Handle the unibyte case.
15913 (Ffont_at): Call font_at with the arg C -1.
15914
15915 * xdisp.c (handle_auto_composed_prop): Don't get a character at
15916 the position here, and call font_at with the arg C -1.
15917 Don't check the range of the existing composition at the point.
15918
159192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15920
15921 * fontset.c (fontset_add): New args charset_id and family.
15922 Change caller.
15923 (load_font_get_repertory, fontset_find_font): Assume that
15924 font_spec is always a font-spec object.
15925 (Fset_fontset_font): Always store a font-spec object in a fontset.
15926
15927 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
15928 instead of get_property_and_range.
15929
159302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15931
15932 * xftfont.c (struct xftfont_info): Delete the member ft_face.
15933 (xftfont_open): Don't keep locking face.
15934 (xftfont_close): Don't unlock face.
15935 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
15936
15937 * fontset.c (fontset_find_font): Don't prefer a font of
15938 supplementary charset.
15939
159402008-02-01 Kenichi Handa <handa@m17n.org>
15941
15942 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
15943 script, langsys_tag to langsys, new member script.
15944 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 15945 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
15946 listing to the script specified in that property. Fix arg to
15947 OTF_check_features.
15948
159492008-02-01 Jason Rumney <jasonr@gnu.org>
15950
15951 * w32font.h: New file.
15952
15953 * w32font.c: Include it.
15954 (struct w32font_info): Add owning_frame field. Move to w32font.h.
15955 (w32font_open): Set owning_frame.
15956 (w32font_text_extents): Use owning_frame.
15957 (struct font_callback_data): Add opentype_only field.
15958 (add_font_entity_to_list): Use it to filter fonts.
15959 Don't check against full name.
15960 (w32font_list_internal): New function.
15961 (w32font_list): Use it.
15962 (w32font_match_internal): New function.
15963 (w32font_match): Use it.
15964 (w32font_open_internal): New function.
15965 (w32font_open): Use it.
15966 (w32font_get_cache, w32font_close, w32font_has_char)
15967 (w32font_encode_char, w32font_text_extents, w32font_draw):
15968 Make non-static.
15969
15970 * makefile.w32-in (w32font.o): Depend on w32font.h.
15971
159722008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15973
15974 * charset.c (Fdefine_charset_internal): Record a supplementary
15975 charset at the tail of Vcharset_order_list.
15976
15977 * font.c (Ffont_shape_text): Fix the return value.
15978
15979 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
15980
15981 * xdisp.c (handle_auto_composed_prop): Fix previous change.
15982
159832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15984
15985 * ftfont.c (struct OpenTypeSpec): New struct.
15986 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
15987 (ftfont_get_open_type_spec): New function.
15988 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
15989
15990 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
15991
159922008-02-01 Jason Rumney <jasonr@gnu.org>
15993
15994 * w32font.c (add_font_entity_to_list): Compare only the beginning
15995 of full name.
15996
159972008-02-01 Kenichi Handa <handa@m17n.org>
15998
15999 * xdisp.c (handle_auto_composed_prop): Simplify the code.
16000 Never return HANDLED_RECOMPUTE_PROPS.
16001
160022008-02-01 Kenichi Handa <handa@m17n.org>
16003
16004 * font.c (font_gstring_produce): Delete it.
16005
16006 * composite.h (COMPOSITION_METHOD):
16007 Handle COMPOSITION_WITH_GLYPH_STRING.
16008
160092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16010
16011 * xfont.c (Qx): Delete.
16012 (syms_of_xfont): Don't initialize Qx.
16013
16014 * composite.h (enum composition_method):
16015 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
16016
160172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16018
16019 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
16020 (choose_face_font): Accept new form of font-spec.
16021
16022 * frame.h (font_driver_list): Declare it unconditionally.
16023 (struct frame): Define members font_driver_list and font_data_list
16024 unconditionally.
16025
16026 * fontset.c: Include "font.h" unconditionally.
16027 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
16028 (Fset_fontset_font): Accept a font-spec object.
16029
16030 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
16031 PIXEL_SIZE part a wild card.
16032
16033 * dispextern.h (struct glyph_string): Define members clip and
16034 num_clips unconditionally.
16035 (struct face): Define members font_info and extra unconditionally.
16036
16037 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
16038 ftfont_info only when HAVE_LIBOTF is defined.
16039
160402008-02-01 Andreas Schwab <schwab@suse.de>
16041
16042 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
16043 and end.
16044
160452008-02-01 Jason Rumney <jasonr@gnu.org>
16046
16047 * w32font.c (w32font_driver): Add new fields.
16048
160492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16050
16051 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
16052 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
16053 (LIBES): Add @M17N_FLT_CFLAGS@.
16054
16055 * composite.c (compose_text): Don't treat the new style
16056 composition specially.
16057
16058 * emacs.c (main): Call syms_of_font unconditionally.
16059
16060 * font.h (FONT_ENTITY_NOT_LOADABLE)
16061 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
16062 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
16063 (struct font_driver): New member shape.
16064 (font_registry_charsets): Extern it.
16065 (font_find_for_lface, font_prepare_composition): Adjust prototype.
16066 (font_otf_capability, font_drive_otf): Delete their externs.
16067
16068 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
16069 (font_charset_alist, font_registry_charsets): Move from xfont.c
16070 and rename.
16071 (font_prop_validate_otf): New function.
16072 (font_property_table): Register it for QCotf.
16073 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
16074 (font_drive_otf): Delete.
16075 (font_prepare_composition): New arg F. Adjust for the change of
16076 lispy gstring.
16077 (font_find_for_lface): New arg C.
16078 (font_load_for_face): Adjust for the change of font_find_for_lface.
16079 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
16080 lispy gstring.
16081 (Ffont_shape_text): New function.
16082 (Fopen_font): If the font size is not given, use 12-pixel.
16083 (Ffont_at): New arg STRING.
16084 (syms_of_font): Initalize font_charset_alist.
16085 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
16086 conditionally.
16087
16088 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
16089 fonts of the same font-spec. Change the format of RFONT-DEF.
16090 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
16091 Adjust for the change of RFONT-DEF.
16092 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
16093
16094 * ftfont.h: New file.
16095
16096 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
16097 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
16098 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
16099 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
16100 font_otf_capability and font_drive_otf, set ftfont_shape.
16101 (ftfont_list): Adjust for the change of :otf property value.
16102 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
16103 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
16104 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
16105 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
16106 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
16107 (otf_gstring, gstring, m17n_flt_initialized): New variables.
16108
16109 * w32term.c (x_draw_composite_glyph_string_foreground):
16110 Adjust for the change of lispy gstring.
16111
16112 * xdisp.c (handle_composition_prop): Adjust for the change of
16113 lispy gstring. Call a function for auto-composition with the
16114 third arg it->window.
16115 (fill_composite_glyph_string): Adjust for the change of lispy string.
16116 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
16117
16118 * xfaces.c (set_font_frame_param): Adjust for the change of
16119 font_find_for_lface.
16120
16121 * xfont.c (x_font_charset_alist): Move to font.c and rename.
16122 (xfont_registry_charsets): Likewise. Change caller.
16123 (syms_of_xfont): Don't handle x_font_charset_alist.
16124
16125 * xftfont.c: Include "ftfont.h".
16126 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
16127 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
16128 (xftfont_close) [HAVE_LIBOTF]: Close otf.
16129 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
16130 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
16131 Set xftfont_driver.shape to xftfont_shape.
16132
16133 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
16134 the change of lispy gstring.
16135
161362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16137
16138 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
16139
161402008-02-01 Jason Rumney <jasonr@gnu.org>
16141
16142 * w32font.c (w32font_draw): Fill background manually.
16143
161442008-02-01 Jason Rumney <jasonr@gnu.org>
16145
16146 * font.c (Qfontp): Remove unused symbol.
16147 (QCantialias): New symbol.
16148 (syms_of_font): Define it.
16149 (font_property_table): Set a validator for QCantialias.
16150
16151 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
16152 Define if not already.
16153 (QCfamily): Share with xfaces.c.
16154 (Qstandard, Qsubpixel, Qnatural): New symbols.
16155 (syms_of_w32font): Define them. Don't define QCfamily here.
16156 (w32_antialias_type, lispy_antialias_type): New functions.
16157 (w32_enumfont_pattern_entity): New arg requested_font.
16158 Set antialias parameter if non-default was requested.
16159 (fill_in_logfont): Fill in lfQuality if :antialias specified.
16160
161612008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16162
16163 * lread.c (read1): Undo the previous change.
16164
161652008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
16166
16167 * frame.c (Fdelete_frame): Call font_update_drivers only when
16168 USE_FONT_BACKEND is defined.
16169
161702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16171
16172 * font.h (struct font_bitmap): New member bits_per_pixel.
16173 (struct font_driver): New members start_for_frame and end_for_frame.
16174 (struct font_data_list): New struct.
16175 (font_put_frame_data, font_get_frame_data): Extern them.
16176
16177 * frame.h (struct frame): New member font_data_list.
16178
16179 * font.c (font_update_drivers): Call driver->start_for_frame and
16180 driver->end_for_frame at proper timings.
16181 (font_put_frame_data, font_get_frame_data): New functions.
16182 (Ffont_spec): Add usage in the docstring.
16183
16184 * frame.c (make_frame): Initialize f->font_data_list to NULL.
16185 (Fdelete_frame): Call font_update_drivers.
16186
16187 * xftfont.c (struct xftface_info): Delete the member xft_draw.
16188 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
16189 (xftfont_get_xft_draw): New function.
16190 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
16191 (xftfont_end_for_frame): New function.
16192 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
16193
16194 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
16195 Change argument. Cache GCs in the per-frame data.
16196 (struct ftxfont_frame_data): New struct.
16197 (ftxfont_draw_bitmap): New arg gc_fore and flush.
16198 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
16199 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
16200 (ftxfont_end_for_frame): New function.
16201 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
16202
16203 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
16204
162052008-02-01 Kenichi Handa <handa@m17n.org>
16206
16207 * xselect.c (Vselection_coding_system)
16208 (Vnext_selection_coding_system): Delete them.
16209 (syms_of_xselect): Don't declare selection-coding-system and
16210 next-selection-coding-system. They are declared in select.el.
16211
162122008-02-01 Jason Rumney <jasonr@gnu.org>
16213
16214 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
16215
16216 * w32fns.c: Include imm.h.
16217 (get_composition_string_fn, get_ime_context_fn): New optional
16218 system functions.
16219 (globals_of_w32fns): Load them from imm32.dll.
16220 (ignore_ime_char): New flag.
16221 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
16222 WM_IME_ENDCOMPOSITION messages.
16223
16224 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
16225 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
16226
162272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16228
16229 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
16230 (READCHAR_REPORT_MULTIBYTE): New macro.
16231 (readchar): New 2nd arg MULTIBYTE.
16232 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
16233 Make symbol's name multibyte according to the multibyteness of the
16234 source.
16235
162362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16237
16238 * xfaces.c (face_for_overlay_string): Call lookup_face with
16239 correct arguments (fix of synching with the trunk).
16240
162412008-02-01 Kenichi Handa <handa@m17n.org>
16242
16243 * font.c (font_prop_validate_symbol, font_prop_validate_style)
16244 (font_prop_validate_non_neg, font_prop_validate_spacing):
16245 Delete argument prop_index.
16246 (font_property_table): Change arguments to validater. Change Callers.
16247 (font_lispy_object): Delete.
16248 (font_at): Use font_find_object instead fo font_lispy_object.
16249
162502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16251
16252 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
16253 and file names.
16254
162552008-02-01 Jason Rumney <jasonr@gnu.org>
16256
16257 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
16258 (font_matches_spec): Remove debug output.
16259 (add_font_entity_to_list): Avoid using substituted fonts.
16260
162612008-02-01 Jason Rumney <jasonr@gnu.org>
16262
16263 * doc.c (Fsnarf_documentation):
16264 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
16265
162662008-02-01 Miles Bader <miles@gnu.org>
16267
16268 * dispextern.h (struct glyph_row): Only define "clip" field if
16269 HAVE_WINDOW_SYSTEM is defined.
16270
162712008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16272
16273 Fix up multi-tty merge.
16274
16275 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
16276 and indentation.
16277
16278 * xfaces.c (free_realized_face, clear_face_gcs):
16279 Include font_done_for_face in the input_blocked section, just in case.
16280
16281 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
16282 (get_char_face_and_encoding): Undo last change and remove the *other*
16283 duplicate definition (i.e. keep the one that's better scoped and that
16284 includes code for the font-backend).
16285
16286 * terminal.c (create_terminal): Default keyboard_coding to
16287 `no-conversion' and terminal_coding to `undecided'.
16288
16289 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
16290
16291 * fontset.c (free_realized_fontsets): Check that the table entry does
16292 contain a fontset before trying to compare it to `base'.
16293
16294 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
16295 syms_of_charset, and syms_of_coding earlier because init_window_once
16296 now needs Vcoding_system_hash_table to be setup.
16297
16298 * coding.h (default_buffer_file_coding): Remove.
16299
16300 * coding.c (default_buffer_file_coding): Remove.
16301 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
16302 than ->symbol, and use the terminal-local coding system.
16303 (syms_of_coding): Don't setup the coding-systems that are not
16304 terminal-local.
16305 (Fdefine_coding_system_internal): Use XCAR/XCDR.
16306
16307 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
16308 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
16309
16310 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
16311 in chartab.c and were re-added here by mistake.
16312 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
16313
16314 * doc.c (Fsnarf_documentation):
16315 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
16316 src to etc.
16317
16318 * ChangeLog.10: Add mistakenly removed entry.
16319
163202008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
16321
16322 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
16323
163242008-02-01 Miles Bader <miles@gnu.org>
16325
16326 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
16327 Add extra args to FACE_FOR_CHAR.
16328
163292008-02-01 Kenichi Handa <handa@m17n.org>
16330
16331 * keymap.c (where_is_internal_1): If key is a cons, store the copy
16332 in sequence.
16333
16334 * chartab.c (map_sub_char_table, map_char_table): If the range
16335 contains just one character, call the function with that character
16336 even if the depth is not 3.
16337
163382008-02-01 Jason Rumney <jasonr@gnu.org>
16339
16340 * w32font.c (w32font_text_extents): Calculate metrics for the
16341 whole string.
16342
163432008-02-01 Jason Rumney <jasonr@gnu.org>
16344
16345 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
16346
163472008-02-01 Jason Rumney <jasonr@gnu.org>
16348
16349 * w32term.c (x_set_glyph_string_clipping): Use
16350 get_glyph_string_clip_rects.
16351 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
16352 Adjust for the change of struct glyph_string.
16353
16354 * w32font.c (w32font_draw): Do clipping here.
16355
163562008-02-01 Kenichi Handa <handa@m17n.org>
16357
16358 * xftfont.c (xftfont_draw): Adjust for the change of struct
16359 glyph_string.
16360
16361 * xterm.c (x_set_glyph_string_clipping): Use
16362 get_glyph_string_clip_rects.
16363 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
16364 Adjust for the change of struct glyph_string.
16365
16366 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
16367 the resulting clip(s}.
16368 (expose_overlaps): Add arg r. Change callers. Set it to
16369 row->clip temporarily.
16370 (expose_window): Redraw rows overlapping the exposed area.
16371
16372 * dispextern.h (struct glyph_row): New member clip.
16373 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
16374 clip_height, new member clip, and num_clips.
16375
163762008-02-01 Kenichi Handa <handa@m17n.org>
16377
16378 * data.c (Fchar_or_string_p): Fix docstring.
16379
163802008-02-01 Kenichi Handa <handa@m17n.org>
16381
16382 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
16383 create a temporary XftDraw object.
16384
163852008-02-01 Kenichi Handa <handa@m17n.org>
16386
16387 * font.c (Ffontp): Fix docstring.
16388
16389 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
16390 strong evidence of ISO-2022.
16391
163922008-02-01 Kenichi Handa <handa@m17n.org>
16393
16394 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
16395 SYNTAX_ENTRY_FOLLOW_PARENT.
16396
163972008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16398
16399 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
16400 its type.
16401 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
16402 Update to the new type of weak_hash_tables and next_weak.
16403
16404 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
16405 a plain C pointer to Lisp_Hash_Table.
16406
16407 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
16408 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
16409 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
16410 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
16411 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
16412 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
16413 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
16414 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
16415 (GC_EQ): Remove since they've been identical to their non-GC_
16416 alter-egos ever since the markbit was eradicated.
16417
16418 * alloc.c:
16419 * buffer.c:
16420 * buffer.h:
16421 * data.c:
16422 * fileio.c:
16423 * filelock.c:
16424 * fns.c:
16425 * frame.h:
16426 * lisp.h:
16427 * macterm.c:
16428 * print.c:
16429 * process.c:
16430 * w32fns.c:
16431 * w32menu.c:
16432 * w32term.c:
16433 * xfns.c:
16434 * xmenu.c:
16435 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
16436
164372008-02-01 Kenichi Handa <handa@m17n.org>
16438
16439 * chartab.c (map_sub_char_table): Make it work for the top-level
16440 char-table. Fix handling of parent char-table.
16441 (map_char_table): Adjust for the above change.
16442
164432008-02-01 Jason Rumney <jasonr@gnu.org>
16444
16445 * w32font.c (Qgdi): Rename from Qw32.
16446
164472008-02-01 Jason Rumney <jasonr@gnu.org>
16448
16449 * w32bdf.c (get_quoted_string): Make function static.
16450
164512008-02-01 Kenichi Handa <handa@m17n.org>
16452
16453 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
16454 bigger ascent and descent than those of the font, use them as
16455 font's ascent and descent.
16456
164572008-02-01 Kenichi Handa <handa@m17n.org>
16458
16459 * Makefile.in (${lispsource}international/charprop.el): Move this
16460 target within "#ifdef HAVE_UNIDATA" and "#endif".
16461
164622008-02-01 Kenichi Handa <handa@m17n.org>
16463
16464 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
16465 (shortlisp): Add ../lisp/language/tai-viet.el.
16466
164672008-02-01 Ulrich Mueller <ulm@gentoo.org>
16468
16469 * Makefile.in (${lispsource}international/charprop.el): Depend on
16470 temacs${EXEEXT}.
16471
164722008-02-01 Jason Rumney <jasonr@gnu.org>
16473
16474 * w32font.c (w32font_close): Delete the GDI font object.
16475
16476 * w32menu.c: Include character.h.
16477
16478 * w32proc.c: Likewise.
16479
16480 * w32select.c: Likewise.
16481
16482 * makefile.w32-in (w32proc.o): Depend on character.h.
16483
164842008-02-01 Jason Rumney <jasonr@gnu.org>
16485
16486 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
16487
16488 * w32menu.c (syms_of_w32menu): Likewise.
16489
16490 * w32proc.c (syms_of_ntproc): Likewise.
16491
16492 * w32select.c (syms_of_w32select): Likewise.
16493
16494 * w32term.c (syms_of_w32term): Likewise.
16495
164962008-02-01 Jason Rumney <jasonr@gnu.org>
16497
16498 * w32font.c (w32font_draw): Delete brush after using it.
16499
165002008-02-01 Jason Rumney <jasonr@gnu.org>
16501
16502 * w32font.c (w32font_open): Don't set font_idx.
16503 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
16504 to font settings.
16505 (w32font_draw): Fill background explicitly.
16506
165072008-02-01 Jason Rumney <jasonr@gnu.org>
16508
16509 * w32term.c (w32_initialize): Don't call w32font_initialize.
16510
16511 * w32font.c (w32font_info): Remove subranges.
16512 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
16513 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
16514 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
16515 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
16516 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
16517 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
16518 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
16519 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
16520 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
16521 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
16522 New symbols.
16523 (font_callback_data): New struct.
16524 (w32font_list, w32font_match): Use it.
16525 (w32font_open): Don't populate subranges.
16526 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
16527 (w32font_encode_char): Always return unicode code-point as-is.
16528 (w32font_text_extents): Supply a transformation matrix to
16529 GetGlyphOutline. Never look up by glyph index. Avoid looping
16530 twice. Use unicode version of GetTexExtentPoint32 instead of
16531 glyph index version.
16532 (set_fonts_frame): Remove.
16533 (w32_enumfont_pattern_entity): Add frame parameter, use it to
16534 set frame parameter. Use backward compatible fake foundries.
16535 Save generic family in extra slot under QCfamily. Make width slot
16536 constant. Save QCspacing value. Save list of scripts instead of
16537 binary subranges.
16538 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
16539 (add_font_entity_to_list): Use font_callback_data struct. Filter
16540 unwanted fonts.
16541 (add_one_font_entity_to_list): Use font_callback_data struct.
16542 (w32_registry): Default to iso10646_1.
16543 (fill_in_logfont): Use dpi from extra slot. Don't bother with
16544 string font registries. Don't fill in font name if it is a generic
16545 family name, fill family instead. Use spacing, family and script
16546 extra info to fill pitch, family and charset fields.
16547 (list_all_matching_fonts): Use font_callback_data struct.
16548 (unicode_range_for_char): Remove.
16549 (font_supported_scripts): New function.
16550 (w32font_initialize): Remove.
16551 (syms_of_w32font): Update which symbols are defined.
16552
165532008-02-01 Jason Rumney <jasonr@gnu.org>
16554
16555 * font.c (font_pixel_size): Reverse assq_no_quit args.
16556
16557 * w32term.h (FONT_WIDTH): Report max width, not average.
16558 (FONT_MAX_WIDTH): Remove.
16559 (FONT_AVG_WIDTH): New macro.
16560
16561 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
16562 redefinition of FONT_WIDTH.
16563
16564 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
16565 (w32_cache_char_metrics): Use FONT_WIDTH.
16566
16567 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
16568
165692008-02-01 Jason Rumney <jasonr@gnu.org>
16570
16571 * w32font.c (w32font_open): Make lfHeight negative.
16572
16573 * w32fns.c (x_default_font_parameter): Use new style font name.
16574 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
16575
165762008-02-01 Jason Rumney <jasonr@gnu.org>
16577
16578 * w32font.c (QCsubranges): New symbol.
16579 (w32font_open, w32font_has_char): Get subranges from subproperty
16580 of extra.
16581 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
16582 (syms_of_w32font): Define :subranges symbol.
16583
16584 * font.c (font_put_extra): Expose externally.
16585
16586 * font.h (font_put_extra): Move declaration from font.c.
16587
16588 * font.c (Ffont_get): Use font driver to determine otf capability.
16589 (adjust_anchor): Check if driver defines anchor_point before using.
16590
16591 * w32font.c (w32font_open): Handle size, height and pixel_size better.
16592 (w32font_draw): Use options.
16593 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
16594 Fix detection of truetype fonts.
16595 (registry_to_w32_charset): Handle charsets other than iso8859-1
16596 expressed as lisp symbols.
16597 (w32_registry): Express charset as lisp symbol.
16598 (fill_in_logfont): Reverse pixel and point height logic.
16599 Don't set width here. Set quality to default.
16600
16601 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
16602 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
16603
16604 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
16605 Remove redundant loop and allocation.
16606
16607 * makefile.w32-in (font.o, w32font.o): New objects.
16608 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
16609 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
16610
16611 * xdisp.c (fill_composite_glyph_string): Make the first arg to
16612 STORE_XCHARB a valid l-value.
16613
16614 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
16615 calculations for non-Truetype fonts.
16616 (x_draw_glyph_string): Sync with xterm.c.
16617 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
16618 Remove redundant code.
16619 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
16620
16621 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
16622 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
16623
16624 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
16625 (x_to_w32_charset, w32_to_x_charset): Expose externally.
16626
16627 * w32font.c: New file for w32 font backend.
16628
166292008-02-01 Kenichi Handa <handa@m17n.org>
16630
16631 * term.c: Don't include "buffer.h" twice.
16632
166332008-02-01 Kenichi Handa <handa@m17n.org>
16634
16635 * character.c (Funibyte_string): New function.
16636 (syms_of_character): Defsubr it.
16637
166382008-02-01 Jason Rumney <jasonr@gnu.org>
16639
16640 * w32term.c [USE_FONT_BACKEND]:
16641 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
16642 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
16643 (x_draw_glyph_string, x_draw_glyph_string_foreground)
16644 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
16645 (x_free_frame_resources): Sync with xterm.c.
16646
166472008-02-01 Andreas Schwab <schwab@suse.de>
16648
16649 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
16650 char-table size.
16651
166522008-02-01 Kenichi Handa <handa@m17n.org>
16653
16654 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
16655
166562008-02-01 Kenichi Handa <handa@m17n.org>
16657
16658 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
16659 font_otf_gpos, add font_drive_otf.
16660
16661 * fontset.c (fontset_find_font): Pay attention to font size
16662 specified for a font.
16663 (reorder_font_vector): Check contents of font_def.
16664
16665 * font.c (struct otf_list): Delete it.
16666 (otf_list): Make it a lisp variable.
16667 (otf_open): Use lispy otf_list.
16668 (generate_otf_features): Rename from parse_gsub_gpos_spec.
16669 (check_otf_features): New function.
16670 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
16671 New functions.
16672 (font_drive_otf): New function merging font_otf_gsub and
16673 font_otf_gpos.
16674 (font_open_for_lface): New arg spec. Change argument order.
16675 (font_load_for_face): Adjust for the change of font_open_for_lface.
16676 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
16677 Ffont_otf_gpos.
16678 (syms_of_font): Staticpro otf_list. Delete defsubr of
16679 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
16680
16681 * xfaces.c (set_font_frame_param): Adjust for the change of
16682 font_open_for_lface.
16683
16684 * font.h (font_open_for_lface): Adjust prototype.
16685 (struct font_driver): Delete members otf_gsub and otf_gpos, add
16686 member otf_drive.
16687 (font_otf_gsub, font_otf_gpos): Delete externs.
16688 (font_drive_otf): Extern it.
16689
166902008-02-01 Kenichi Handa <handa@m17n.org>
16691
16692 * font.c (font_at): If the window W is not on a window system,
16693 return Qnil.
16694
16695 * coding.c (produce_chars, encode_coding): Don't call
16696 insert_from_gap if no characters to produce.
16697
166982008-02-01 Kenichi Handa <handa@m17n.org>
16699
16700 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
16701 Fclear_face_cache.
16702
16703 * xfaces.c (face_for_font): Check also face->font==font->font.font.
16704
167052008-02-01 Miles Bader <miles@gnu.org>
16706
16707 * emacs.c (main): Change default value of `enable_font_backend' to 1.
16708 Parse "--disable-font-backend" option.
16709 (standard_args): Add "--disable-font-backend" option.
16710
167112008-02-01 Kenichi Handa <handa@m17n.org>
16712
16713 * fontset.c (fontset_find_font): New function.
16714 (fontset_font): Use fontset_find_font.
16715 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
16716 Register the specified font for all Latin characters.
16717 (new_fontset_from_font): Register the specified font for all Latin
16718 characters.
16719 (dump_fontset): For a realized fontset, include the base fontset
16720 name in the returned vector.
16721
167222008-02-01 Kenichi Handa <handa@m17n.org>
16723
16724 * character.h (CHAR_STRING): Cast C to unsigned on calling
16725 char_string.
16726
16727 * character.c (char_string): Type of arg C changed to unsigned.
16728 Signal an error if C is an invalid character code.
16729
16730 * editfns.c (general_insert_function, Fchar_to_string):
16731 Use CHARACTERP, not INTEGERP.
16732
167332008-02-01 Kenichi Handa <handa@m17n.org>
16734
16735 * character.h (MIN_MULTIBYTE_LEADING_CODE)
16736 (MAX_MULTIBYTE_LEADING_CODE): New macros.
16737
16738 * regex.c (analyse_first): Fix for multibyte characters in "case
16739 charset:" and "case categoryspec:".
16740
167412008-02-01 Andreas Schwab <schwab@suse.de>
16742
16743 * Makefile.in (LIBES): Move standard libraries to the end.
16744
167452008-02-01 Kenichi Handa <handa@m17n.org>
16746
16747 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
16748 nonzero, don't shrink the buffer nextb.
16749
16750 * buffer.h (struct buffer_text): New member inhibit_shrinking.
16751
16752 * coding.c (coding_alloc_by_making_gap): New arg offset.
16753 (alloc_destination): Call coding_alloc_by_making_gap with the arg
16754 offset.
16755 (decode_coding_iso_2022): Update coding->safe_charsets.
16756 (decode_coding_gap): Temporarily set
16757 current_buffer->text->inhibit_shrinking to 1.
16758
167592008-02-01 Kenichi Handa <handa@m17n.org>
16760
16761 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
16762 indexing into elements of s->cmp and s->char2b.
16763
167642008-02-01 Juanma Barranquero <lekktu@gmail.com>
16765
16766 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
16767
167682008-02-01 Kenichi Handa <handa@m17n.org>
16769
16770 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
16771 target_multibyte instead of multibyte.
16772 (re_match_2_internal): Call bcmp_translate with target_multibyte.
16773 (bcmp_translate): Change the argument name from multibyte to
16774 target_multibyte.
16775
167762008-02-01 Kenichi Handa <handa@m17n.org>
16777
16778 These changes are to compile a regexp into a pattern that can be
16779 used both for multibyte and unibyte targets.
16780
16781 * Makefile.in (search.o): Depend on charset.h.
16782
16783 * character.c (multibyte_char_to_unibyte_safe): New function.
16784
16785 * search.c: Include "charset.h".
16786 (compile_pattern_1): Delete argument multibyte. Don't set
16787 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
16788 (compile_pattern): Don't compare cp->buf.target_multibyte.
16789 Compare cp->buf.charset_unibyte.
16790 (compile_pattern): Set cp->buf.target_multibyte.
16791
16792 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
16793
16794 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
16795
16796 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
16797 multibyte. Change callers.
16798 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
16799 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
16800 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
16801 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
16802 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
16803 (regex_compile): Make the compiled pattern usable both for
16804 multibyte and unibyte targets.
16805 (analyse_first): Make the fastmap usable both for multibyte and
16806 unibyte targets.
16807 (TRANSLATE_VIA_MULTIBYTE): Delete.
16808 (re_match_2_internal): Pay attention to the case that the
16809 multibyteness of bufp and target may be different.
16810
168112008-02-01 Kenichi Handa <handa@m17n.org>
16812
16813 * xdisp.c (x_produce_glyphs): When a font is not found, make the
16814 empty box occupy at least one column width.
16815
168162008-02-01 Miles Bader <miles@gnu.org>
16817
16818 * Makefile.in: Remove redundant HAVE_XFT clause.
16819
168202008-02-01 Kenichi Handa <handa@m17n.org>
16821
16822 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
16823
168242008-02-01 Kenichi Handa <handa@m17n.org>
16825
16826 * fontset.c (Finternal_char_font): Fix for the case of POSITION
16827 being nil.
16828
168292008-02-01 Kenichi Handa <handa@m17n.org>
16830
16831 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
16832
168332008-02-01 Kenichi Handa <handa@m17n.org>
16834
16835 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
16836
168372008-02-01 Kenichi Handa <handa@m17n.org>
16838
16839 * search.c (simple_search): Fix previous change.
16840
168412008-02-01 Kenichi Handa <handa@m17n.org>
16842
16843 * xftfont.c (ftfont_font_format): Extern declaration.
16844
16845 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
16846
16847 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
16848 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
16849
16850 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
16851 (ftfont_font_format): Fix previous change.
16852
16853 * font.h (Ffont_xlfd_name): EXFUN it.
16854
16855 * font.c (font_parse_xlfd): Fix the array size of `f'.
16856 (register_font_driver): Use EQ to compare driver->type.
16857
16858 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
16859 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
16860 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
16861
168622008-02-01 Kenichi Handa <handa@m17n.org>
16863
16864 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
16865 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
16866
168672008-02-01 Kenichi Handa <handa@m17n.org>
16868
16869 * xfont.c (xfont_open): Set font->format.
16870
16871 * xftfont.c (xftfont_open): Set font->format.
16872
16873 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
16874 (ftfont_list): Include FC_FONTFORMAT in FcObject.
16875 (ftfont_open): Set font->format.
16876 (ftfont_font_format): New function.
16877
16878 * font.h (struct font): New member format.
16879
16880 * font.c (Qopentype): New variable.
16881 (syms_of_font): Defsym it.
16882 (Fquery_font): Change the format of the last element of the return
16883 value.
16884
168852008-02-01 Kenichi Handa <handa@m17n.org>
16886
16887 * xfns.c (xic_create_xfontset): Try the default fontset name as a
16888 last resort.
16889
168902008-02-01 Kenichi Handa <handa@m17n.org>
16891
16892 * coding.c (detect_coding_charset): Fix detection of multi-byte
16893 charset.
16894
168952008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
16896
16897 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
16898
168992008-02-01 Kenichi Handa <handa@m17n.org>
16900
16901 * xdisp.c (get_next_display_element): Set it->face_id for the
16902 first component of a composition.
16903 (x_produce_glyphs): Check if the font is changed or not for composition.
16904
169052008-02-01 Kenichi Handa <handa@m17n.org>
16906
16907 * fontset.c (Qlatin): New variable.
16908 (syms_of_fontset): Define it as a lisp symbol.
16909 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
16910
169112008-02-01 Kenichi Handa <handa@m17n.org>
16912
16913 * font.c (font_unparse_fcname): Pay attention to the case that
16914 some of font property is a null string.
16915
169162008-02-01 Kenichi Handa <handa@m17n.org>
16917
16918 * term.c: Include "composite.h".
16919 (encode_terminal_code): Output all components of composition.
16920 Check the size of encode_terminal_src.
16921 (produce_glyphs): For composition, call produce_composite_glyph.
16922 (append_composite_glyph, produce_composite_glyph): New functions.
16923
16924 * xdisp.c (x_produce_glyphs): In handling composition, if a font
16925 is not found, get font_info from the current ascii face.
16926
169272008-02-01 Kenichi Handa <handa@m17n.org>
16928
16929 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
16930 buffer-file-name to Qnil before calling insert_from_buffer.
16931
16932 * font.c (font_unparse_fcname): Pay attention to the case that
16933 foundry is a null string.
16934
169352008-02-01 Kenichi Handa <handa@m17n.org>
16936
16937 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
16938
16939 * font.c (Qunicode_sip): New variable.
16940 (syms_of_font): Declare it as a Lisp symbol.
16941
16942 * font.h (Qunicode_sip): Extern it.
16943
169442008-02-01 Kenichi Handa <handa@m17n.org>
16945
16946 * composite.c (get_composition_id): Pay attention to TAB component.
16947
16948 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
16949 TAB. Adjust for the change of s->char2b which always points to
16950 the first element of allocated memory.
16951
16952 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
16953
16954 * xdisp.c (handle_composition_prop): Set it->c to the first
16955 non-TAB component.
16956 (fill_composite_glyph_string): Change argument.
16957 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
16958 (x_produce_glyphs): Fix handling of left/right padding.
16959
169602008-02-01 Kenichi Handa <handa@m17n.org>
16961
16962 * coding.c (detect_coding_system): Fix for handling off
16963 inhibit_iso_escape_detection. Fix for the case that no coding
16964 system is defined for a specific coding category.
16965
169662008-02-01 Kenichi Handa <handa@m17n.org>
16967
16968 * font.c (font_matching_entity): Delete unused local var.
16969
16970 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
16971 opening a font.
16972
16973 * fileio.c (Finsert_file_contents): On recovering a file, assume
16974 Unix-like eol.
16975 (choose_write_coding_system): On auto-saving a file, force
16976 Unix-like eol.
16977
16978 * coding.c (setup_coding_system): Fix setting of
16979 coding->common_flags based on eol_type.
16980 (coding_inherit_eol_type): If PARENT is not nil, be sure to
16981 inherit from it.
16982
169832008-02-01 Kenichi Handa <handa@m17n.org>
16984
16985 * alloc.c (NSTATICS): Increas to 0x600.
16986
169872008-02-01 Kenichi Handa <handa@m17n.org>
16988
16989 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
16990 (ftfont_list): Don't check :name property.
16991 (ftfont_match): New function.
16992 (ftfont_pattern_entity): If the pattern doesn't contain
16993 FC_SPACING, don't assume FC_MONO.
16994
16995 * font.h (struct font_driver): New member `match'.
16996 (font_update_drivers): Adjust prototype.
16997
16998 * font.c (font_parse_fcname, font_parse_name): Don't change :name
16999 property of FONT.
17000 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
17001 them unconditionally.
17002 (font_matching_entity): New function.
17003 (font_open_by_name): Try font_matching_entity if exact match is
17004 not found.
17005 (font_update_drivers): Delete the arg FONT. Return a list of
17006 actually used backends. Don't free faces, font caches here.
17007 Don't store data in frame parameters. Don't call x_set_font.
17008 (Ffont_spec): Store :name property as is.
17009 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
17010 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
17011 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
17012 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
17013 Call font->driver->otf_gsub instead of font_otf_gsub.
17014
17015 * frame.c (x_set_font_backend): Do more works that were done in
17016 font_update_drivers before.
17017
17018 * xfont.c (xfont_match): New function.
17019 (xfont_driver): Set xfont_driver.match to xfont_match.
17020 (xfont_draw): Set font in GC if necessary.
17021
17022 * ftxfont.c (ftxfont_match): New function.
17023 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
17024
17025 * xftfont.c (xftfont_match): New function.
17026 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
17027
170282008-02-01 Kenichi Handa <handa@m17n.org>
17029
17030 * font.h (struct font): New member scalable.
17031 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
17032 (font_otf_gsub): Adjust prototype.
17033
17034 * font.c (font_otf_capability): Fix handling of the default langsys.
17035 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
17036 Check the contents of SPEC.
17037 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
17038 (check_gstring): New function.
17039 (REPLACEMENT_CHARACTER): New macro.
17040 (font_otf_gsub): New arg alternate_subst. Be sure to set all
17041 glyph codes of GSTRING.
17042 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
17043 (font_prepare_composition): Set cmp->glyph_len.
17044 (font_open_entity): Set font->scalable.
17045 (Ffont_get): Handle :otf property.
17046 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
17047 functions.
17048 (Fquery_font): Use font->font.full_name.
17049 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
17050 Sfont_otf_alternates.
17051
17052 * ftfont.c (ftfont_open): Set font->font.full_name and
17053 font->font.name properly. Fix calculation of font->font.height
17054 and font->min_width.
17055
17056 * ftxfont.c (ftxfont_create_gcs): New function.
17057 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
17058 (ftxfont_draw_backgrond): Fix filling region.
17059 (ftxfont_default_fid): New function.
17060 (ftxfont_open): Set xfont->fid to the return value of
17061 ftxfont_default_fid.
17062 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
17063 (ftxfont_done_face): Free only GCs that are created by
17064 ftxfont_create_gcs.
17065 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
17066
17067 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
17068 Clip to src->width, etc (not src->clip_XXX).
17069
17070 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
17071 FontBackend frame parameter.
17072
170732008-02-01 Kenichi Handa <handa@m17n.org>
17074
17075 * font.h (struct font_driver_list): New member `on'.
17076 (Fclear_font_cache): EXFUN it.
17077 (font_update_drivers): Extern it.
17078
17079 * font.c (font_unparse_fcname): Fix typo (swidth->width).
17080 (font_list_entities): Check driver_list->on.
17081 (register_font_driver): Initalize `on' member to 0.
17082 (font_update_drivers): New function.
17083 (Fclear_font_cache): Check driver_list->on.
17084
17085 * frame.h (Qfont_backend): Extern it.
17086 (x_set_font_backend): Extern it.
17087
17088 * frame.c (Qfont_backend): New variable.
17089 (frame_parms): New element for font-backend.
17090 (x_set_font_backend): New function.
17091
17092 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
17093 FontBackend frame parameter.
17094 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
17095 x_set_font_backend.
17096
17097 * xfont.c (xfont_list): Don't try listing by :name property if the
17098 name is not for XLFD.
17099
171002008-02-01 Kenichi Handa <handa@m17n.org>
17101
17102 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
17103 (LGLYPH_SET_TO): New macros.
17104 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
17105 element of G is vector or not.
17106 (font_at): Extern it.
17107
17108 * font.c: Include window.h.
17109 (font_lispy_object): New function.
17110 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
17111 end of valid glyph.
17112 (font_close_object): Fix getting (struct font *).
17113 (font_at): New function.
17114 (Ffont_get): If FONT is a font-object, get entity from it.
17115 (Ffont_make_gstring): Initialize elements of glyphs with nil.
17116 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
17117 range check.
17118 (Ffont_at): New function.
17119 (syms_of_font): Defsubr Sfont_at.
17120
17121 * xdisp.c (it_props): Move the entry for Qauto_composed to just
17122 before the entry for Qcomposition.
17123 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
17124 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
17125 the font in gstring.
17126 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
17127 LGLYPH_FORM (g) to detect the end of valid glyph.
17128 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
17129 we are composing with gstring.
17130
17131 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
17132 Check if adjustment is vector or not.
17133
17134 * Makefile.in (font.o): Make it depends on window.h.
17135
171362008-02-01 Kenichi Handa <handa@m17n.org>
17137
17138 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
17139 adjustment is vector or not.
17140
171412008-02-01 Miles Bader <miles@gnu.org>
17142
17143 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
17144
171452008-02-01 Kenichi Handa <handa@m17n.org>
17146
17147 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
17148 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
17149 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
17150
17151 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
17152 (DEVICE_DELTA): Fix typo.
17153 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
17154 LGLYPH format.
17155
17156 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17157 the change of LGLYPH format.
17158
171592008-02-01 Kenichi Handa <handa@m17n.org>
17160
17161 * ftfont.c (ftfont_list): Fix typo.
17162 (ftfont_build_basic_charsets): Don't include letters with diacritics.
17163
171642008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17165
17166 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
17167
17168 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
17169 xftface_info is non-NULL.
17170
171712008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17172
17173 * ftfont.c (ftfont_list): Move misplaced #endif.
17174
171752008-02-01 Kenichi Handa <handa@m17n.org>
17176
17177 * ftfont.c (ftfont_list): Pay attention to the case that
17178 FC_CAPABILITY is not defined.
17179
171802008-02-01 Kenichi Handa <handa@m17n.org>
17181
17182 * xftfont.c (xftfont_open): Set charset related members to -1.
17183
17184 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
17185 QCname.
17186 (ftfont_open): Set charset related members to -1.
17187
17188 * fontset.c (Votf_script_alist): New variable.
17189 (syms_of_fontset): Initialize it.
17190 (fontset_font): Delete unused variable.
17191
17192 * fontset.h (Votf_script_alist): Extern it.
17193
17194 * font.c (font_find_for_lface): Optimize code.
17195
17196 * font.h (font_close_object, font_merge_old_spec): Extern them.
17197
171982008-02-01 Kenichi Handa <handa@m17n.org>
17199
17200 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
17201 (syms_of_font): Initialize them.
17202 (font_pixel_size): Allow float value in dpi.
17203 (font_prop_validate_type): Delete.
17204 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
17205 Change caller.
17206 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
17207 (font_prop_validate_extra): Delete.
17208 (font_prop_validate_spacing): New function.
17209 (font_property_table): Add elements for all known properties.
17210 (get_font_prop_index): Rename from check_font_prop_name. New
17211 argument FROM. Change caller.
17212 (font_prop_validate): Validate all known properties.
17213 (font_put_extra): Delete argument force. Change caller.
17214 (font_expand_wildcards): Make it static. Fix the way of shrinking
17215 the possible range.
17216 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
17217 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
17218 Change caller.
17219 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
17220 (font_parse_fcname): Delete argument merge. Fix parsing of point
17221 size. Don't validate properties values here. Change caller.
17222 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
17223 (font_open_by_name): Delete unused variable.
17224 (Ffont_spec): Likewise. Validate property values.
17225 (Ffont_match_p): New function.
17226
17227 * font.h (QCscalable): Extern it.
17228 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
17229
17230 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
17231
17232 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
17233 (xfont_list_pattern): New function.
17234 (xfont_list): Use xfont_list_pattern.
17235
172362008-02-01 Kenichi Handa <handa@m17n.org>
17237
17238 * font.h (Flist_fonts): EXFUN it.
17239
172402008-02-01 Jason Rumney <jasonr@gnu.org>
17241
17242 * w32term.c (w32_initialize): Add back smoothing_type and
17243 smoothing_enabled definitions.
17244
172452008-02-01 Kenichi Handa <handa@m17n.org>
17246
17247 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
17248 s->face->font on determining underline position.
17249
172502008-02-01 Kenichi Handa <handa@m17n.org>
17251
17252 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
17253 (font_has_char): Accept font-object too.
17254 (font_find_for_lface): Try at first with a size specified in face.
17255
172562008-02-01 Kenichi Handa <handa@m17n.org>
17257
17258 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
17259 font_open_by_name.
17260
172612008-02-01 Kenichi Handa <handa@m17n.org>
17262
17263 * font.h (QCspacing, QCdpi): Extern them.
17264 (enum font_spacing): New enum.
17265 (FONT_PIXEL_SIZE_QUANTUM): New macro.
17266
17267 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
17268 (QCspacing, QCdpi): New variables.
17269 (syms_of_font): Initialize them.
17270 (font_pixel_size): New function.
17271 (font_put_extra): New function.
17272 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
17273 in FONT_EXTRA.
17274 (font_parse_fcname): Handle enumerated values (e.g. bold).
17275 Fix handling font size. Add QCname property that contains only
17276 unknown properties.
17277 (font_score): Change argument. Change caller. Pay attention to
17278 FONT_PIXEL_SIZE_QUANTUM.
17279 (font_sort_entites, font_list_entities, font_find_for_lface)
17280 (font_open_for_lface, font_open_by_name): Fix handling of font size.
17281 (Ffont_spec): Add QCname property that contains only unknown properties.
17282
17283 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
17284 include weight in listing pattern, instead check weight of each
17285 listed font. Don't include scalable in pattern. Pay attention to
17286 FONT_PIXEL_SIZE_QUANTUM.
17287
172882008-02-01 Kenichi Handa <handa@m17n.org>
17289
17290 * font.c (font_parse_fcname): Fix parsing of point-size.
17291 (font_unparse_fcname): Produce symbolic names for style properties.
17292 (font_list_entities): Handle float size correctly.
17293 (font_open_by_name): Prefer `normal' property values if the name
17294 doesn't specify them.
17295
17296 * fontset.c (Finternal_char_font): Use font_get_name, not
17297 Ffont_xlfd_name.
17298
17299 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
17300 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
17301 pattern. Don't force scalable.
17302
17303 * xftfont.c (xftfont_open): For generating a name, start from
17304 96-byte buffer.
17305
173062008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17307
17308 * frame.h (x_new_fontset2): Fix prototype.
17309
173102008-02-01 Kenichi Handa <handa@m17n.org>
17311
17312 * font.h (struct font_driver): Delete member parse_name.
17313 (font_match_p, font_get_spec, font_parse_fcname)
17314 (font_unparse_fcname): Extern them.
17315 (font_get_name): Adjust prototype.
17316
17317 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
17318 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
17319 (font_expand_wildcards): Fix handling ENCODING field. Avoid
17320 unnecessary checks for weight, slant, and swidth.
17321 (font_parse_fcname): New function.
17322 (font_unparse_fcname): New function.
17323 (font_parse_name): New function.
17324 (font_match_p): New function.
17325 (font_get_name): Change return value to Lisp string.
17326 (font_get_spec): New function.
17327 (Qunspecified, Qignore_defface): Don't extern them.
17328 (font_find_for_lface): Assume that LFACE is fully specified.
17329 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
17330 object, use it for FACE.
17331 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
17332 driver->parse_name.
17333 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
17334
17335 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
17336 prototype.
17337
17338 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
17339 argument F. Don't call Fnew_fontset. Instead, directly call
17340 make_fontset.
17341
17342 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
17343
17344 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
17345 of x_new_fontset2.
17346
17347 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
17348 (Qsans__serif): New variables.
17349 (ftfont_generic_family_list): New variable.
17350 (syms_of_ftfont): Initialize the above variables.
17351 (ftfont_pattern_entity): Delete argument NAME.
17352 (ftfont_list_generic_family): New function.
17353 (ftfont_parse_name): Delete this function.
17354 (ftfont_list): Try generic family only when FcFontList found no font.
17355 (ftfont_list_family): Fix args to FcObjectSetBuild.
17356
17357 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
17358 object in attrs[LFACE_FONT_INDEX].
17359 (set_lface_from_font_name): Cancel all changes for font-backend.
17360 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
17361 function.
17362 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
17363 font object in QCfont attribute.
17364 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
17365 (realize_default_face) [USE_FONT_BACKEND]: Call
17366 set_lface_from_font_and_fontset.
17367
17368 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
17369 "fixed", and signal error here if no suitable font was found.
17370
17371 * xfont.c (xfont_parse_name): Delete this function.
17372
17373 * xftfont.c (xftfont_open): Change coding style of error
17374 handling. Generate fontconfig's fontname pattern.
17375
17376 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
17377 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
17378
17379 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
17380 Both args FONTSET and FONT_OBJECT must be existing ones.
17381
173822008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17383
17384 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
17385
173862008-02-01 Kenichi Handa <handa@m17n.org>
17387
17388 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
17389
17390 * font.h (struct font): Fix typo.
17391
17392 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
17393 XLFD_XXX_INDEX.
17394 (enum xlfd_field_mask): New enum.
17395 (intern_font_field): Changed argument. Change caller. If digits
17396 are followed by non-digits, return a symbol.
17397 (font_expand_wildcards): New function.
17398 (font_parse_xlfd): Fix wildcard handling.
17399 (Ffont_spec): If :name is specified, reflect the info in the other
17400 properties.
17401
17402 * ftfont.c (ftfont_pattern_entity): Fix typo.
17403 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
17404 locale.
17405
174062008-02-01 Kenichi Handa <handa@m17n.org>
17407
17408 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
17409
17410 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
17411 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
17412 registry doesn't specify encoding part.
17413 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
17414 (font_open_by_name): At first try parsing the name.
17415 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
17416 as Lisp symbols.
17417
17418 * fontset.c (reorder_font_vector): Pay attention to the case that
17419 the 3rd element of font_def is nil.
17420 (fontset_font): For the default fontset, append one more fontset
17421 elements for a script-based font specification. Don't add script
17422 attribute on finding a font.
17423 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
17424 font name.
17425 (fontset_ascii_font): If a font can't be opened, return nil.
17426
17427 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
17428 (ftfont_pattern_entity): New function.
17429 (ftfont_get_cache): Assume that freetype_font_cache is already
17430 initialized.
17431 (ftfont_list): Handle the case that a file is specified in font
17432 name. Use ftfont_pattern_entity to generate entities.
17433 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
17434 (syms_of_ftfont): Initialize freetype_font_cache.
17435
17436 * xftfont.c (xftfont_open): Make the font name fontconfig's
17437 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
17438 (xftfont_close): Free font->font.name if not NULL.
17439
17440 * xfont.c (xfont_list): If script is specified for a font, return
17441 null_vector.
17442 (xfont_list_family): Declare argument type.
17443
17444 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
17445 name, set LFACE_FONT (lface) to nil.
17446
17447 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
17448 return Qnil.
17449
174502008-02-01 Kenichi Handa <handa@m17n.org>
17451
17452 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
17453 (standard_args): Add "-enable-font-backend".
17454
174552008-02-01 Kenichi Handa <handa@m17n.org>
17456
17457 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
17458 (struct xftdraw_list, xftdraw_list): Delete them.
17459 (register_xftdraw, check_xftdraw): Delete them.
17460 (xftfont_prepare_face): Don't call register_xftdraw.
17461 (xftfont_done_face): Don't call check_xftdraw.
17462 (xftfont_draw): Get background color only when with_background is
17463 nonzero.
17464
17465 * xfont.c (xfont_encode_char): Fix calculation of char2b.
17466
174672008-02-01 Kenichi Handa <handa@m17n.org>
17468
17469 These changes are for the new font handling codes.
17470
17471 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
17472 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
17473 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
17474 (FONTSRC, FONTOBJ): New variables.
17475 (obj): Add $(FONTOBJ).
17476 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
17477 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
17478 @LIBOTF_LIBS@.
17479 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
17480 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
17481
17482 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
17483
17484 * character.h (Vscript_representative_chars): Extern it.
17485
17486 * character.c (Vscript_representative_chars): New variable.
17487 (syms_of_character): Declare it as a Lisp variable.
17488
17489 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
17490 enable_font_backend is nonzero, accept the composition method
17491 COMPOSITION_WITH_GLYPH_STRING.
17492
17493 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
17494 enumeration COMPOSITION_WITH_GLYPH_STRING.
17495
17496 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
17497 members clip_x, clip_y, clip_width, and clip_height.
17498 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
17499
17500 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
17501 --enable-font-backend. Call syms_of_font.
17502
17503 * fns.c (assoc_no_quit): New function.
17504
17505 * fontset.h (FONT_INFO_FROM_FACE): New macro.
17506 (face_for_font, new_fontset_from_font)
17507 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
17508
17509 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
17510 (fontset_font, fontset_ascii, face_for_char)
17511 (make_fontset_for_ascii_face, Ffont_info)
17512 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
17513 is nonzero, use font-backend mechanism.
17514 (find_font_encoding): Make it non-static.
17515 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
17516 New functions.
17517
17518 * frame.h (struct frame): New members resx and resy.
17519 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
17520 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
17521
17522 * frame.c [USE_FONT_BACKEND]: Include "font.h".
17523 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
17524
17525 * lisp.h (assoc_no_quit): Extern it.
17526
17527 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
17528 Through out the file, use FONT_INFO_FROM_FACE instead of
17529 FONT_INFO_FROM_ID, use get_per_char_metric instead of
17530 rif->per_char_metric.
17531 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
17532 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
17533 (get_glyph_face_and_encoding, fill_composite_glyph_string)
17534 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
17535 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
17536 nonzero, use font-backend mechanism.
17537 (get_per_char_metric): New function.
17538
17539 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
17540 (set_lface_from_font_name)
17541 (set_font_frame_param, free_realized_face)
17542 (prepare_face_for_display, clear_face_gcs)
17543 (Finternal_set_font_selection_order, realize_x_face)
17544 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
17545 font-backend mechanism.
17546 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
17547 (load_face_font) [USE_FONT_BACKEND]: Abort.
17548 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
17549 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
17550
17551 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
17552 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
17553 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
17554 nonzero, register all available font drivers. Call
17555 x_default_font_parameter for deciding a font.
17556 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
17557
17558 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
17559 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
17560 (x_set_glyph_string_clipping_exactly)
17561 (x_compute_glyph_string_overhangs)
17562 (x_draw_glyph_string_foreground)
17563 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
17564 (x_free_frame_resources) [USE_FONT_BACKEND]: If
17565 enable_font_backend is nonzero, use font-backend mechanism.
17566 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
17567
175682008-02-01 Kenichi Handa <handa@m17n.org>
17569
17570 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
17571 system_eol_type.
17572 (syms_of_coding): Initialize system_eol_type.
17573
17574 * process.c (Fset_process_coding_system): Inherit system's eol
17575 format if necessary.
17576
175772008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17578
17579 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
17580
175812008-02-01 Kenichi Handa <handa@m17n.org>
17582
17583 * coding.c (decode_eol): Pay attention to buffer relocation in
17584 del_range_2.
17585 (decode_coding): Call decode_eol before restoring undo_list.
17586
175872008-02-01 Kenichi Handa <handa@m17n.org>
17588
17589 * charset.c (Fdefine_charset_internal): Fix setting of
17590 emacs_mule_bytes.
17591
175922008-02-01 Kenichi Handa <handa@m17n.org>
17593
17594 * keyboard.c (read_char): Check if C is a character or not before
17595 looking up Vkeyboard_translate_table.
17596
175972008-02-01 Kenichi Handa <handa@m17n.org>
17598
17599 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
17600 condition to terminate the loop.
17601
176022008-02-01 Kenichi Handa <handa@m17n.org>
17603
17604 * coding.c (produce_composition): Compare charbuf[i] instead of
17605 args[i] against 0.
17606 (Fterminal_coding_system): Use EQ to compare Lisp objects.
17607
176082008-02-01 Kenichi Handa <handa@m17n.org>
17609
17610 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
17611 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
17612 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
17613 detect_coding.
17614 (emacs_mule_char): Handle old style (Emacs 20) component character
17615 of a composition.
17616 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
17617 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
17618 composition rule.
17619 (decode_coding_emacs_mule): Handle invalid bytes correctly.
17620
176212008-02-01 Kenichi Handa <handa@m17n.org>
17622
17623 * coding.c (encode_coding_ccl): Allocate destination dynamically
17624 when necessary.
17625
176262008-02-01 Kenichi Handa <handa@m17n.org>
17627
17628 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
17629 the loop. When quitted, show a proper error message.
17630
176312008-02-01 Kenichi Handa <handa@m17n.org>
17632
17633 * xterm.c (x_set_glyph_string_clipping_exactly): Set
17634 src->clip_head and src->clip_tail temporarily instead of src->hl.
17635
17636 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
17637 character sequence.
17638 (Fccl_execute_on_string): Use ASET, not XSET.
17639
176402008-02-01 Kenichi Handa <handa@m17n.org>
17641
17642 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
17643
176442008-02-01 Kenichi Handa <handa@m17n.org>
17645
17646 * coding.c (decode_coding): Fix the condition of terminating the
17647 decoding loop.
17648
176492008-02-01 Kenichi Handa <handa@m17n.org>
17650
17651 * data.c (Faset): On setting a character bigger than 255 in a
17652 unibyte string, signal an error instead of make the string multibyte.
17653
176542008-02-01 Kenichi Handa <handa@m17n.org>
17655
17656 * charset.c (map_charset_chars): Fix for ascii-compatible charset
17657 made by a mapping table.
17658
176592008-02-01 Kenichi Handa <handa@m17n.org>
17660
17661 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
17662 not.
17663 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
17664 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
17665
17666 * xterm.c (x_draw_composite_glyph_string_foreground): Check
17667 s->face is NULL or not.
17668
176692008-02-01 Kenichi Handa <handa@m17n.org>
17670
17671 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
17672 (x_draw_glyph_string): Fix drawing of right_overhang and
17673 left_overhang around/on cursor.
17674
17675 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
17676
176772008-02-01 Kenichi Handa <handa@m17n.org>
17678
17679 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
17680
176812008-02-01 Kenichi Handa <handa@m17n.org>
17682
17683 * coding.c (Fdefine_coding_system_internal)
17684 (Fdefine_coding_system_alias): Avoid a duplicated element in
17685 Vcoding_system_alist.
17686
176872008-02-01 Kenichi Handa <handa@m17n.org>
17688
17689 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
17690
17691 * coding.c (Qcoding_system_define_form): New variable.
17692 (syms_of_coding): Intern and staticpro it.
17693 (Fcoding_system_p): Check Qcoding_system_define_form.
17694 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
17695
17696 * coding.h (CODING_SYSTEM_P): If ID is not available, call
17697 Fcoding_system_p.
17698 (CHECK_CODING_SYSTEM): If ID is not available, call
17699 Fcheck_coding_system.
17700 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
17701 Try also Fcheck_coding_system.
17702
177032008-02-01 Kenichi Handa <handa@m17n.org>
17704
17705 * coding.c (code_conversion_restore): GCPRO arg.
17706
177072008-02-01 Kenichi Handa <handa@m17n.org>
17708
17709 * character.c (lisp_string_width): Check multibyteness of STRING.
17710
177112008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17712
17713 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
17714 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
17715 (decode_mac_font_name): Use decode_coding_c_string instead of
17716 decode_coding.
17717 (x_load_font): Initialize fontp->fontset to -1. Set
17718 fontp->encoding_type.
17719
177202008-02-01 Kenichi Handa <handa@m17n.org>
17721
17722 * search.c (search_buffer): Give up BM search on case-fold-search
17723 if one of a target character has a case-equivalence of different
17724 byte length even if that target charcter is an ASCII.
17725 (simple_search): Fix calculation of byte length of matched text.
17726 (boyer_moore): Fix handling of case-equivalent multibyte characters.
17727
177282008-02-01 Kenichi Handa <handa@m17n.org>
17729
17730 * coding.c (decode_coding): Fix handling of invalid bytes.
17731
177322008-02-01 Kenichi Handa <handa@m17n.org>
17733
17734 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
17735 Unicode characters.
17736
177372008-02-01 Kenichi Handa <handa@m17n.org>
17738
17739 * coding.c (encode_coding_object): If a pre-write-conversion
17740 function makes a new buffer, kill it.
17741
177422008-02-01 Kenichi Handa <handa@m17n.org>
17743
17744 * coding.c (QCascii_compatible_p): New variable.
17745 (syms_of_coding): Initialize it.
17746 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
17747 calling string_char.
17748 (record_conversion_result): Add `default:' case.
17749 (coding_charset_list): Delete unused variable `coding_type'.
17750 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
17751 property in the plist of the coding system.
17752 (Fcoding_system_put): Check QCascii_compatible_p.
17753
177542008-02-01 Miles Bader <miles@gnu.org>
17755
17756 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
17757 removed calculation of frame `f', as it's now used.
17758
177592008-02-01 Kenichi Handa <handa@m17n.org>
17760
17761 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
17762 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
17763 (UNIDATA): New variable.
17764 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
17765 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
17766 $(RUN_TEMACS) unconditionally.
17767
177682008-02-01 Kenichi Handa <handa@m17n.org>
17769
17770 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
17771 (admindir): New variable.
17772 ($(lispsource)international/charprop.el): New target.
17773
177742008-02-01 Miles Bader <miles@gnu.org>
17775
17776 * character.c (chars-in-region): Remove obsolete function.
17777 (syms_of_character): Remove its initialization.
17778
177792008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
17780
17781 * w32select.c (validate_coding_system)
17782 (setup_windows_coding_system): New functions.
17783 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
17784 setup_windows_coding_system.
17785 (setup_config, Fw32_get_clipboard_data): Use
17786 validate_coding_system.
17787 (Fx_selection_exists): Move call to setup_config to a place
17788 where signals are allowed.
17789
17790 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
17791 (Fcheck_coding_system): Add declarations.
17792
177932008-02-01 Kenichi Handa <handa@m17n.org>
17794
17795 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
17796
177972008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17798
17799 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
17800 string as the second argument for x_new_fontset.
17801
178022008-02-01 Kenichi Handa <handa@m17n.org>
17803
17804 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
17805 (encode_coding_object): Use safe_call instead of call2.
17806
178072008-02-01 Kenichi Handa <handa@m17n.org>
17808
17809 * fontset.c (Fset_fontset_font): Check family element of a given vector.
17810
17811 * Makefile.in (lisp): Include charprop.el.
17812
178132008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17814
17815 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
17816 Not sure if it's unnecessary.
17817
178182008-02-01 Steven Tamm <steventamm@mac.com>
17819
17820 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
17821 some possibly unnecessary fontset checking code that crashed
17822 when creating a new frame.
17823
178242008-02-01 Kenichi Handa <handa@m17n.org>
17825
17826 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
17827 lookup_face.
17828
17829 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
17830
17831 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
17832
178332008-02-01 Kenichi Handa <handa@m17n.org>
17834
17835 * coding.c: Cancel the change done in HEAD on 2008-02-01.
17836 (coding_charset_list): New function.
17837
17838 * coding.h (coding_charset_list): Extern it.
17839
178402008-02-01 Kenichi Handa <handa@m17n.org>
17841
17842 * fontset.c (Fset_fontset_font): Call find_font_encoding with
17843 concatenation of family and registry.
17844
178452008-02-01 Kenichi Handa <handa@m17n.org>
17846
17847 * character.h (BYTE8_STRING): Fix typo.
17848
17849 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
17850 string to multibyte (sync to HEAD).
17851
17852 * casefiddle.c (casify_region): Handle changes in byte-length
17853 using replace_range_2 (sync to HEAD).
17854
178552008-02-01 Andreas Schwab <schwab@suse.de>
17856
17857 * chartab.c (map_char_table): GCPRO table and arg.
17858
178592008-02-01 Kenichi Handa <handa@m17n.org>
17860
17861 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
17862 already at limit.
17863
178642008-02-01 Kenichi Handa <handa@m17n.org>
17865
17866 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
17867 instead of fast_c_string_match_ignore_case.
17868 (find_font_encoding): Change argument to Lisp_Object. Use
17869 fast_string_match_ignore_case instead of
17870 fast_c_string_match_ignore_case. Change caller.
17871
178722008-02-01 Kenichi Handa <handa@m17n.org>
17873
17874 * xdisp.c (get_next_display_element): In unibyte case, decide to
17875 display in octal form by checking a character by
17876 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
17877
17878 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
17879
17880 * character.c (unibyte_has_multibyte_table): New variable.
17881
17882 * character.h (unibyte_has_multibyte_table): Extern it.
17883 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
17884
178852008-02-01 Kenichi Handa <handa@m17n.org>
17886
17887 * coding.c (encode_coding_iso_2022): Fix handling of charset
17888 annotation.
17889
178902008-02-01 Kenichi Handa <handa@m17n.org>
17891
17892 * coding.c (setup_coding_system): If coding_system is nil, use
17893 Qundecided.
17894 (Fterminal_coding_system): Return nil if terminal coding system is
17895 `undecided'.
17896 (syms_of_coding): Define coding-system `undecided' here. Setup
17897 terminal_coding as `undecided'.
17898
178992008-02-01 Kenichi Handa <handa@m17n.org>
17900
17901 * xdisp.c (message_dolog, set_message_1): Call
17902 unibyte_char_to_multibyte with arg type int.
17903
17904 * lread.c (read1): Fix reading of a char-table.
17905
17906 * print.c (print_object): Include sub char-table in circularities
17907 detection.
17908
179092008-02-01 Kenichi Handa <handa@m17n.org>
17910
17911 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
17912 Append the found sequences in car of ARGS instead of prepending.
17913
179142008-02-01 Kenichi Handa <handa@m17n.org>
17915
17916 * fileio.c (report_file_error): Make a unibyte string from
17917 strerror (errorno).
17918 (Fsubstitute_in_file_name): Fix the arg to
17919 unibyte_char_to_multibyte. It is evaluated twice.
17920
179212008-02-01 Kenichi Handa <handa@m17n.org>
17922
17923 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
17924
179252008-02-01 Kenichi Handa <handa@m17n.org>
17926
17927 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
17928 BOM is not found.
17929 (detect_coding, detect_coding_system): Optimization for ISO-2022
17930 when no 8-bit data is found.
17931
179322008-02-01 Jason Rumney <jasonr@gnu.org>
17933
17934 * w32fns.c (x_to_w32_font): Update to use new coding struct.
17935
179362008-02-01 Kenichi Handa <handa@m17n.org>
17937
17938 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
17939 CHARS.
17940
179412008-02-01 Steven Tamm <steventamm@mac.com>
17942
17943 * macterm.c (mac_encode_char): Add charset argument and update
17944 to use encoding_type.
17945 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
17946 switch to pure fontset.
17947 (decode_mac_font_name): Temporarily remove decoding.
17948 (x_font_name_to_mac_font_name): Temporarily remove encoding.
17949 (x_load_font): Temporarily remove encoding.
17950
179512008-02-01 Kenichi Handa <handa@m17n.org>
17952
17953 * xfaces.c (Fface_font): If frame is not on a window system,
17954 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
17955 refer to face->font.
17956 (split_font_name_into_vector, build_font_name_from_vector)
17957 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
17958 when HAVE_WINDOW_SYSTEM is defined.
17959
179602008-02-01 Kenichi Handa <handa@m17n.org>
17961
17962 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
17963 (x_produce_glyphs): Fix setting of members of cmp in case
17964 cmp->glyph_len is zero.
17965
17966 * fontset.c (Fset_fontset_font): Fix docstring.
17967 (Ffontset_info): Make it backward compatible. New arg ALL.
17968
179692008-02-01 Kim F. Storm <storm@cua.dk>
17970
17971 * process.c (read_process_output): Grow decoding_buf when needed;
17972 this could cause a crash in allocate_string and compact_small_strings.
17973
179742008-02-01 Kenichi Handa <handa@m17n.org>
17975
17976 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
17977
179782008-02-01 Kenichi Handa <handa@m17n.org>
17979
17980 * coding.c (setup_coding_system): Set coding->common_flags
17981 correctly for raw-text.
17982 (consume_chars): On encoding unibyte text by raw-text, don't check
17983 multibyte form.
17984 (encode_coding): On encoding by raw-text, never use translation tables.
17985
17986 * fileio.c (e_write): Short cut for the case of no encoding.
17987
179882008-02-01 Kenichi Handa <handa@m17n.org>
17989
17990 * coding.c (detect_coding, detect_coding_system): Delete unused
17991 variables.
17992
179932008-02-01 Kenichi Handa <handa@m17n.org>
17994
17995 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
17996 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
17997
179982008-02-01 Kenichi Handa <handa@m17n.org>
17999
18000 * coding.c (Ffind_coding_systems_region_internal): Include
18001 raw-text and no-conversion in the result.
18002
180032008-02-01 Kenichi Handa <handa@m17n.org>
18004
18005 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
18006 (load_font_get_repertory): Delete unnecessary check of ENCODING of
18007 FONT_DEF.
18008 (font_def_arg, add_arg, from_arg, to_arg): New args.
18009 (set_fontset_font): Change argument.
18010 (Fset_fontset_font): Fix for the case that TARGET is a script
18011 name and charset name.
18012 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
18013
180142008-02-01 Kenichi Handa <handa@m17n.org>
18015
18016 * fontset.c (fontset_font): Rename from fontset_face. Change return
18017 value.
18018 (face_suitable_for_char_p, face_for_char): Adjust for the change
18019 of fontset_font.
18020 (make_fontset_for_ascii_face): Fix setting of the fontset element
18021 for ASCII.
18022 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
18023 to get a font name.
18024 (Ffontset_info): Adjust for the change of fontset_font.
18025
18026 * coding.c (emacs_mule_char): Check invalid code more rigidly.
18027
18028 * character.h (LEADING_CODE_LATIN_1_MIN)
18029 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
18030
180312008-02-01 Kenichi Handa <handa@m17n.org>
18032
18033 * editfns.c (check_translation): New function.
18034 (Ftranslate_region_internal): Handle M:N mapping.
18035
180362008-02-01 Kenichi Handa <handa@m17n.org>
18037
18038 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
18039
180402008-02-01 Kenichi Handa <handa@m17n.org>
18041
18042 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
18043 goto invalid_code.
18044 (decode_coding_iso_2022): Fix handling of invalid designation.
18045
18046 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
18047 after calling code_conversion_save.
18048
180492008-02-01 Kenichi Handa <handa@m17n.org>
18050
18051 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
18052
18053 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
18054
18055 * fontset.c: Include "intervals.h".
18056 (fontset_face): Fix comparing of Lisp_Objects.
18057 (free_face_fontset, new_fontset_from_font_name): Fix
18058 Lisp_Object/int mixup.
18059
18060 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
18061
18062 * coding.c: Add many prototypes for static functions.
18063 (get_translation_table): Allow max_lookup to be NULL.
18064 (decode_coding, Ffind_coding_systems_region_internal)
18065 (Funencodable_char_position, Fcheck_coding_systems_region): Call
18066 get_translation_table with max_lookup NULL.
18067
180682008-02-01 Kenichi Handa <handa@m17n.org>
18069
18070 * coding.c (get_translation_table): Declare it as Lisp_Object.
18071 (LOOKUP_TRANSLATION_TABLE): New macro.
18072 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
18073 instead of CHAR_TABLE_REF.
18074
180752008-02-01 Kenichi Handa <handa@m17n.org>
18076
18077 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
18078 annotation data format.
18079 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
18080 Change arguments FROM and TO to single argument NCHARS. Change caller.
18081 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
18082 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18083 (decode_coding_ccl, decode_coding_charset): Pay attention to
18084 coding->charbuf_used.
18085 (get_translation): New function.
18086 (produce_chars): New arguments translation_table and last_block.
18087 Translate characters here. Return number of carryover chars.
18088 Change caller.
18089 (produce_composition): New argument pos. Change caller.
18090 Adjust for the change of annotation data format.
18091 (produce_charset, produce_annotation): Likewise.
18092 (decode_coding, encode_coding): Don't call translate_chars.
18093 (consume_chars): New arg translation_table. Change caller.
18094 (translate_chars): Delete.
18095 (syms_of_coding): Make translation-table's number of extra slots 2.
18096
180972008-02-01 Kenichi Handa <handa@m17n.org>
18098
18099 * search.c (simple_search): Fix setting this_pos_byte in backward
18100 search.
18101
18102 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
18103 byte sequence.
18104 (detect_coding_ccl): Fix setting of the variable valids.
18105
181062008-02-01 Kenichi Handa <handa@m17n.org>
18107
18108 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
18109
18110 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
18111
18112 * editfns.c (Ftranslate_region_internal): Rename from
18113 Ftranslate_region. Accept a char-table in TABLE.
18114 (syms_of_editfns): Defsubr Stranslate_region_internal.
18115
18116 * xfaces.c (set_lface_from_font_name): If a font is specified for
18117 a frame, generate a fontset from the font.
18118 (build_scalable_font_name): If the scalable font is requested for
18119 a specific size, don't change that size.
18120 (try_font_list): Try a scalable font also in the case that a
18121 pattern string is specified.
18122
181232008-02-01 Kenichi Handa <handa@m17n.org>
18124
18125 * xfaces.c (Fface_font): New optional arg CHARACTER.
18126
181272008-02-01 Kenichi Handa <handa@m17n.org>
18128
18129 * charset.h (CHARSET_OFFSET): New macro.
18130
181312008-02-01 Kenichi Handa <handa@m17n.org>
18132
18133 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
18134
18135 * fontset.c (fontset_face): Handle the case that repertory is a
18136 char-table.
18137 (find_font_encoding): Return nil for unknown encoding.
18138 (Fset_fontset_font): Ignore a font of unknown encoding.
18139
181402008-02-01 Kenichi Handa <handa@m17n.org>
18141
18142 * keymap.c (describe_vector): Handle default value of a char table.
18143
18144 * fontset.c (fontset_face): Handle fallback fonts correctly.
18145 (Ffontset_info): Return infomation about fallback fonts.
18146
181472008-02-01 Kenichi Handa <handa@m17n.org>
18148
18149 * fontset.c (FONTSET_DEFAULT): New macro.
18150 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
18151 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
18152 the case that it is nil.
18153 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
18154 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
18155
18156 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
18157 subset or superset.
18158
181592008-02-01 Kenichi Handa <handa@m17n.org>
18160
18161 * emacs.c (main): Call init_charset after syms_of_XXX.
18162
18163 * charset.c (Vcharset_map_directory): Delete.
18164 (Vcharset_map_path): New variable.
18165 (load_charset_map_from_file): Use Vcharset_map_path instead.
18166 (init_charset): Initialize Vcharset_map_path.
18167 (syms_of_charset): Delete declaration of "charset-map-directory",
18168 add declaration of "charset-map-path".
18169
181702008-02-01 Kenichi Handa <handa@m17n.org>
18171
18172 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
18173 ASCII only string.
18174
18175 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
18176
18177 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
18178 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
18179
181802008-02-01 Kenichi Handa <handa@m17n.org>
18181
18182 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
18183
18184 * coding.c (QCmnemonic, QCdefalut_char)
18185 (QCdecode_translation_table, QCencode_translation_table)
18186 (QCpost_read_conversion, QCpre_write_conversion): New variables.
18187 (get_translation_table): Return a list of translation tables if
18188 necessary.
18189 (decode_coding): Call get_translation_table with ENCODEP 0.
18190 (char_encodable_p): If translation_table is non-nil, always call
18191 translate_char.
18192 (Fdefine_coding_system_internal): Accept list of translation
18193 tables as :encode-translation-table and :decode-translation-table.
18194 (Fcoding_system_put): New function.
18195 (syms_of_coding): Declare new symbols. Defsubr
18196 Scoding_system_put.
18197 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
18198 typically JISX0212.
18199
18200 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
18201 when the charset is superset type.
18202
18203 * character.c (translate_char): Accept list of translation tables.
18204
182052008-02-01 Kenichi Handa <handa@m17n.org>
18206
18207 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
18208 (CODING_ATTR_TRANS_TBL): New macro.
18209
18210 * coding.c (get_translation_table): New function.
18211 (translate_chars): Fix the bug of skipping annotation data.
18212 (decode_coding, encode_coding): Utilize get_translation_table.
18213 (char_encodable_p, Funencodable_char_position): Translate char if
18214 necessary.
18215 (Ffind_coding_systems_region_internal)
18216 (Fcheck_coding_systems_region): Setup translation table for encode
18217 in a coding system attribute vector in advance.
18218 (Fdefine_coding_system_internal): Allow a symbol as translation
18219 table. For shift-jis type coding system, allow 4th charset.
18220
182212008-02-01 Kenichi Handa <handa@m17n.org>
18222
18223 * coding.c (decode_coding_sjis): Check the first byte rigidly.
18224
18225 * xdisp.c (get_next_display_element): Pass -1 as POS to
18226 FACE_FOR_CHAR if displaying a C-string.
18227
182282008-02-01 Kenichi Handa <handa@m17n.org>
18229
18230 * composite.c (get_composition_id): Handle xoff and yoff in a
18231 composition rule.
18232
18233 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
18234 (struct composition): New member lbearing and rbearing.
18235
18236 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
18237 (x_get_glyph_overhangs): Handle a composition glyph.
18238 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
18239
18240 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
18241 composition glyph.
18242
182432008-02-01 Kenichi Handa <handa@m17n.org>
18244
18245 * print.c: Include charset.h.
18246 (Vprint_charset_text_property): New variable.
18247 (Qdefault): Extern it.
18248 (PRINT_STRING_NON_CHARSET_FOUND)
18249 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
18250 (print_check_string_result): New variable.
18251 (print_check_string_charset_prop): New function.
18252 (print_prune_charset_plist): New variable.
18253 (print_prune_string_charset): New function.
18254 (print_object): Call print_prune_string_charset if
18255 Vprint_charset_text_property is not t.
18256 (print_interval): Print nothing if interval->plist is nil.
18257 (syms_of_print): Declare Vprint_charset_text_property as a lisp
18258 variable. Init and staticpro print_prune_charset_plist.
18259
182602008-02-01 Kenichi Handa <handa@m17n.org>
18261
18262 * fontset.c (new_fontset_from_font_name): Use the specified font
18263 for all characters in the new fontset.
18264
18265 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
18266 OBJECT args.
18267
18268 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
18269 OBJECT args for composition too.
18270
18271 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
18272 OBJECT args.
18273
182742008-02-01 Kenichi Handa <handa@m17n.org>
18275
18276 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
18277
18278 * fontset.c (reorder_font_vector): Adjust for the change of
18279 FONT_DEF format.
18280 (fontset_face): New arg id. Change caller.
18281 (face_for_char): New args pos and object.
18282 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
18283 (fs_query_fontset): Check NAME by Fassoc too.
18284 (Fset_fontset_font): Allow non-XLFD font name.
18285 (Ffontset_info): Adjust for the change of FONT_DEF format.
18286
18287 * fontset.h (face_for_char): Adjust prototype.
18288
18289 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
18290 (append_space, extend_face_to_end_of_line)
18291 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
18292 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
18293
18294 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
18295 POS and OBJECT args.
18296
18297 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
18298 POS and OBJECT args.
18299
183002008-02-01 Jason Rumney <jasonr@gnu.org>
18301
18302 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
18303 of GlobalAlloc'ed memory.
18304
183052008-02-01 Kenichi Handa <handa@m17n.org>
18306
18307 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
18308
18309 * charset.h (charset_table_used): Delete extern.
18310
18311 * charset.c (charset_table_used): Make it static.
18312 (map_charset_chars): Fix args to c_function with.
18313
18314 * chartab.c (map_sub_char_table_for_charset): Fix args to
18315 c_function with.
18316
18317 * coding.h (enum coding_result_code): Delete
18318 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
18319
18320 * coding.c (Qinsufficient_source, Qinconsistent_eol)
18321 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
18322 (Vlast_code_conversion_error): New variables.
18323 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
18324 (ONE_MORE_BYTE): Record error if any instead of signaling an
18325 error. If non-ASCII multibyte char is found, return the negative
18326 value of the code. All callers changed to check it.
18327 (ONE_MORE_BYTE_NO_CHECK): Likewise.
18328 (record_conversion_result): New function. Change all codes setting
18329 coding->result to call this function.
18330 (detect_coding_utf_8, decode_coding_utf_8)
18331 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
18332 Don't use the local variable incomplete.
18333 (emacs_mule_char): Change the second arg to `const'.
18334 (decode_coding): Fix of flushing out unprocessed data.
18335 (make_conversion_work_buffer): Fix making of a work buffer.
18336 (decode_coding_object): Return coding->dst_object.
18337
18338 * fontset.c (set_fontset_font): Fix args.
18339
18340 * lisp.h (CHARACTERBITS): Define as 22.
18341
18342 * process.c (send_process): Be sure to set coding->src_multibyte.
18343
18344 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
18345
183462008-02-01 Kenichi Handa <handa@m17n.org>
18347
18348 * xdisp.c (handle_auto_composed_prop): Give limit to
18349 Fnext_single_char_property_change.
18350
183512008-02-01 Kenichi Handa <handa@m17n.org>
18352
18353 * composite.c (syms_of_composite): Don't make the composition hash
18354 table weak.
18355
18356 * fontset.c (Fset_fontset_font): Fix docstring.
18357
18358 * lisp.h (detect_coding_system): Adjust prototype.
18359
18360 * fileio.c (kill_workbuf_unwind): Delete this function.
18361 (Finsert_file_contents): Adjust the call of detect_coding_system.
18362 Get conversion_buffer by code_conversion_save. Use the macro
18363 CODING_MAY_REQUIRE_DECODING. After decoding, update
18364 coding_system.
18365
18366 * coding.h (make_conversion_work_buffer): Delete extern.
18367 (code_conversion_save): Extern it.
18368
18369 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
18370 (CODING_GET_INFO): Delete argument eol_type. Change callers.
18371 (decode_coding_utf_8): Don't do eol converion.
18372 (detect_coding_utf_16): Check coding->src_chars, not
18373 coding->src_bytes. Add heuristics for those that have no signature.
18374 (decode_coding_emacs_mule, decode_coding_iso_2022)
18375 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
18376 Don't do eol converion.
18377 (adjust_coding_eol_type): Return a new coding system.
18378 (detect_coding): Don't detect eol. Fix for utf-16 detection.
18379 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
18380 each change.
18381 (decode_coding): Pay attention to undo_list. Do eol conversion for
18382 all types of coding-systems (if necessary).
18383 (Vcode_conversion_work_buf_list): Delete it.
18384 (Vcode_conversion_reused_workbuf): Rename from
18385 Vcode_conversion_reused_work_buf.
18386 (Vcode_conversion_workbuf_name): New variable.
18387 (reused_workbuf_in_use): New variable.
18388 (make_conversion_work_buffer): Delete the arg DEPTH.
18389 (code_conversion_restore): Change argument to cons.
18390 (code_conversion_save): Delete the argument BUFFER. Change callers.
18391 (detect_coding_system): New argument src_chars. Change callers.
18392 Fix for utf-16 detection.
18393 (init_coding_once): Don't use ISO_carriage_return.
18394 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
18395 reused_workbuf_in_use.
18396
183972008-02-01 Kenichi Handa <handa@m17n.org>
18398
18399 * keymap.c (store_in_keymap): Pay attention to the case that idx
18400 is a cons specifying a character range.
18401
184022008-02-01 Kenichi Handa <handa@m17n.org>
18403
18404 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
18405 HANDLED_RECOMPUTE_PROPS.
18406
18407 * coding.c (Fdefine_coding_system_internal): Fix checking of
18408 ascii compatibility.
18409
184102008-02-01 Kenichi Handa <handa@m17n.org>
18411
18412 * charset.c (find_charsets_in_text): Delete unused locale variable.
18413 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
18414
18415 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
18416 Resync charset_list to Vemacs_mule_charset_list.
18417
18418 * keymap.c (store_in_keymap): Pay attention to the case that idx
18419 is a cons specifying a character range.
18420
184212008-02-01 Kenichi Handa <handa@m17n.org>
18422
18423 * composite.c (update_compositions): Bind inhibit-read-only, etc
18424 to t before calling remove-list-of-text-properties.
18425
18426 * print.c (print_object): Always print ASCII chars as is.
18427
184282008-02-01 Kenichi Handa <handa@m17n.org>
18429
18430 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
18431
18432 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
18433 is a char table.
18434
184352008-02-01 Kenichi Handa <handa@m17n.org>
18436
18437 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
18438
184392008-02-01 Kenichi Handa <handa@m17n.org>
18440
18441 * xfaces.c (set_lface_from_font_name): Fix for the case that
18442 FONTNAME is not fontset name.
18443
184442008-02-01 Kenichi Handa <handa@m17n.org>
18445
18446 * fns.c (base64_encode_1): Fix previous change.
18447
184482008-02-01 Kenichi Handa <handa@m17n.org>
18449
18450 * fontset.c (set_fontset_font): New function.
18451 (Fset_fontset_font): If a font is specified for a charset, use
18452 map_charset_chars to store the font spec in a fontset.
18453
184542008-02-01 Kenichi Handa <handa@m17n.org>
18455
18456 * fontset.c (fontset_face): Create a fallback fontset on demand.
18457 (make_fontset): Don't create a fallback fontset here.
18458 (free_face_fontset): Free a fallback fontset (if any) too.
18459 (n_auto_fontsets): Delete this variable.
18460 (auto_fontset_alist): New variable.
18461 (new_fontset_from_font_name): Check auto_fontset_alist.
18462 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
18463 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
18464 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
18465 Defsubr Sfontset_list_all.
18466
184672008-02-01 Kenichi Handa <handa@m17n.org>
18468
18469 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
18470
184712008-02-01 Kenichi Handa <handa@m17n.org>
18472
18473 * fontset.c (Fnew_fontset): Check NAME more rigidly.
18474
184752008-02-01 Kenichi Handa <handa@m17n.org>
18476
18477 * editfns.c (Fgoto_char): Fix docstring.
18478
184792008-02-01 Kenichi Handa <handa@m17n.org>
18480
18481 * insdel.c (insert_from_gap): Adjust intervals correctly.
18482
184832008-02-01 Jason Rumney <jasonr@gnu.org>
18484
18485 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
18486 (pfnGetFontUnicodeRanges): New dynamically loaded function.
18487 (w32_initialize): Try to load it.
18488 (x_get_font_repertory): Use it if available.
18489 (w32_encode_char): Add shortcut for unicode output.
18490
18491 * w32fns.c (w32_load_system_font): Default charset to -1.
18492 (x_to_w32_charset): Match all fonts for unicode.
18493 (w32_to_x_charset): New parameter matching. Don't return partial
18494 or wildcard charsets.
18495 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
18496 (w32_codepage_for_font): Return CP_UNICODE for unicode.
18497 (w32_to_x_font): Match charset to real charset.
18498 (enum_font_cb2): Always list unicode versions.
18499
18500 * makefile.w32-in (temacs): Increase EMHEAP.
18501
185022008-02-01 Jason Rumney <jasonr@gnu.org>
18503
18504 * w32term.c (w32_encode_char): New charset parameter.
18505 font_info.encoding becomes encoding_type.
18506 (x_get_font_repertory): New function. Warning: stub only!
18507 (x_new_font): Return quickly if font already set.
18508 (x_new_fontset): fontsetname parameter is Lisp_Object.
18509 Use new fs_query_fontset. Try new_fontset_from_font_name.
18510 Use fontset_name for return value.
18511
18512 * w32term.h: Declare x_get_font_repertory.
18513
18514 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
18515 place of find_charset_in_text. Use encode_coding_object in place
18516 of encode_coding.
18517 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
18518 decode_coding.
18519
18520 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
18521 of x_new_fontset.
18522 (w32_load_system_font): Initialize charset as unicode.
18523 font_info.encoding becomes encoding_type.
18524 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
18525 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
18526 (syms_of_w32fns): Set get_font_repertory_func.
18527
18528 * w32console.c: Include character.h. Use terminal_encode_buffer
18529 from term.c.
18530 (write_glyphs): Use new version of encode_terminal_code. Use
18531 encode_coding_object in place of encode_coding.
18532
18533 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
18534 encoding becomes encoding_type.
18535
18536 * term.c (terminal_encode_buffer): Make externally visible.
18537
18538 * makefile.w32-in: Add character.h dependancies.
18539 (character.o, chartab.o): New targets.
18540
185412008-02-01 Kenichi Handa <handa@m17n.org>
18542
18543 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
18544 CODING_ID_EOL_TYPE.
18545
185462008-02-01 Andreas Schwab <schwab@suse.de>
18547
18548 * coding.c (produce_chars): Revert last change.
18549
185502008-02-01 Kenichi Handa <handa@m17n.org>
18551
18552 * charset.h (charset_unicode): Extern it.
18553
18554 * charset.c (string_xstring_p): Check by (C >= 0x100).
18555 (find_charsets_in_text): Change format of the arc CHARSETS. New
18556 arg MULTIBYTE.
18557 (Ffind_charset_region, Ffind_charset_string): Adjust for the
18558 change of find_charsets_in_text.
18559 (Fsplit_char): Fix doc. Never return unknown.
18560
18561 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
18562
18563 * coding.c (Fdefine_coding_system_alias): Update
18564 Vcoding_system_list.
18565
18566 * fontset.c (load_font_get_repertory): Pay attention to the case
18567 that ENCODING of a font is specified by a char-table.
18568
18569 * xterm.c (x_get_font_repertory): Handle the case that the
18570 encoding of font is other than Unicode.
18571
185722008-02-01 Kenichi Handa <handa@m17n.org>
18573
18574 * term.c (encode_terminal_code): Don't handle glyph-table. Check
18575 if a character is encodable by the terminal coding system. If
18576 not, produces proper number of `?'s. Update
18577 terminal_encode_buffer and terminal_encode_buf_size if necessary.
18578 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
18579
185802008-02-01 Kenichi Handa <handa@m17n.org>
18581
18582 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
18583 variables.
18584 (encode_terminal_code): Change argument. Encode multiple
18585 characters at once. Store the result of encoding in
18586 terminal_encode_buffer.
18587 (write_glyphs, insert_glyphs): Adjust for the change of
18588 encode_terminal_code.
18589 (term_init): Initialize terminal_encode_buffer and
18590 terminal_encode_buf_size.
18591
18592 * coding.c (consume_chars): If coding->src_object is nil, don't
18593 check annotation.
18594
185952008-02-01 Kenichi Handa <handa@m17n.org>
18596
18597 * character.c (char_string): Use ASCII_CHAR_P instead of
18598 SINGLE_BYTE_CHAR_P.
18599
186002008-02-01 Kenichi Handa <handa@m17n.org>
18601
18602 * xdisp.c (handle_auto_composed_prop): Check if the last
18603 characters of auto-composed region is newly composed with the
18604 following characters.
18605 (handle_composition_prop): Fix checking of point being inside
18606 composition.
18607
186082008-02-01 Kenichi Handa <handa@m17n.org>
18609
18610 * fns.c (concat): Don't change multibyteness of the result by
18611 concatenating an 8-bit character.
18612
18613 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
18614 multibyteness of the result when newelt is an 8-bit character.
18615
186162008-02-01 Dave Love <fx@gnu.org>
18617
18618 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
18619 EMACS_INT.
18620
18621 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
18622
18623 * xfaces.c (face_numeric_value): Declare dim size_t.
18624 (Finternal_lisp_face_equal_p): Remove unused f.
18625
18626 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
18627 (MATRIX_ROW): Remove unused vars.
18628 (draw_glyphs, x_insert_glyphs, fast_find_position)
18629 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
18630 byte/char counts.
18631
18632 * regex.c (regex_compile): Remove unused var.
18633
18634 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
18635
18636 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
18637 (Faccessible_keymaps, where_is_internal): Remove unused vars.
18638
18639 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
18640
18641 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
18642
18643 * fileio.c (Fwrite_region): Remove unused var.
18644
18645 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
18646 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
18647
18648 * composite.c (Fremove_list_of_text_properties): Declare.
18649
18650 * coding.c (inhibit_pre_post_conversion): Remove (unused).
18651 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
18652 (coding_inherit_eol_type): Remove unused attrs.
18653 (detect_coding): Cast arg of detect_eol.
18654
18655 * charset.c (syms_of_charset): Remove unused var p.
18656 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
18657 byte/char counts.
18658
18659 * casetab.c (set_case_table): Remove unused var.
18660
18661 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
18662 unused vars.
18663
186642008-02-01 Dave Love <fx@gnu.org>
18665
18666 * xterm.c (x_bitmap_mask): Declare.
18667
186682008-02-01 Dave Love <fx@gnu.org>
18669
18670 * xterm.c (x_term_init): Fix type error.
18671
18672 * lisp.h: Add Funibyte_char_to_multibyte.
18673
18674 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
18675 (Fset_coding_system_priority): Doc fix.
18676
18677 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
18678
18679 * indent.c (check_composition): Make start and end EMACS_INT.
18680
18681 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
18682
18683 * xdisp.c (handle_composition_prop, check_point_in_composition):
18684 Make buffer positions EMACS_INT.
18685
18686 * composite.c (find_composition, run_composition_function)
18687 (update_compositions, Ffind_composition_internal): Make buffer
18688 positions EMACS_INT.
18689
18690 * composite.h (find_composition, update_compositions): Make
18691 position args EMACS_INT.
18692
18693 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
18694
18695 * intervals.c (get_property_and_range):
18696 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
18697
18698 * unexalpha.c: Don't include varargs.h.
18699
187002008-02-01 Dave Love <fx@gnu.org>
18701
18702 * coding.h (ENCODE_UTF_8): New.
18703
18704 * Makefile.in (gtkutil.o): Depend on coding.h.
18705
18706 * coding.c (Fset_coding_system_priority): Doc fix.
18707
187082008-02-01 Kenichi Handa <handa@m17n.org>
18709
18710 * fileio.c (Finsert_file_contents): Call setup_coding_system in
18711 the case of auto saving.
18712
187132008-02-01 Andreas Schwab <schwab@suse.de>
18714
18715 * chartab.c (map_char_table, map_char_table_for_charset): Protect
18716 `range' from GC.
18717
187182008-02-01 Kenichi Handa <handa@m17n.org>
18719
18720 * coding.c (decode_coding_sjis): Check bytes more rigidly.
18721
187222008-02-01 Kenichi Handa <handa@m17n.org>
18723
18724 * fileio.c (choose_write_coding_system): Return a decided coding system.
18725 (Fwrite_region): Set Vlast_coding_system_used to the return value
18726 of choose_write_coding_system.
18727
187282008-02-01 Kenichi Handa <handa@m17n.org>
18729
18730 * charset.c (Fset_charset_priority): Pay attention to duplicated
18731 arguments.
18732
18733 * coding.c (QCcategory): New variable.
18734 (syms_of_coding): Defsym it. Set all elements of
18735 Vcoding_category_table and their symbol values.
18736 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
18737 coding-category-XXX, and coding-category-list.
18738 (Fdefine_coding_system_internal): Add category in the plist.
18739
187402008-02-01 Kenichi Handa <handa@m17n.org>
18741
18742 * callproc.c (Fcall_process): Handle carryover correctly.
18743
18744 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
18745 (raw_text_coding_system): Check NILP (coding_system).
18746 (coding_inherit_eol_type): Check NILP (coding_system) and
18747 NILP (parent).
18748 (consume_chars): Fix for the case of raw-text.
18749
18750 * process.c (read_process_output): Handle carryover correctly.
18751
187522008-02-01 Dave Love <fx@gnu.org>
18753
18754 * regex.c (re_search_2): Fix last change.
18755
187562008-02-01 Kenichi Handa <handa@m17n.org>
18757
18758 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
18759 target_multibyte. Even in a unibyte case, return a converted
18760 multibyte char.
18761 (GET_CHAR_AFTER): New macro.
18762 (PATFETCH): Translate via multibyte char.
18763 (HANDLE_UNIBYTE_RANGE): Delete this macro.
18764 (SETUP_MULTIBYTE_RANGE): New macro.
18765 (regex_compile): Setup compiled code so that its multibyteness
18766 matches that of a target. Fix the handling of "[X-YZ]" using
18767 SETUP_MULTIBYTE_RANGE.
18768 (analyse_first) <charset>: For filling fastmap for all multibyte
18769 characters, don't check by BASE_LEADING_CODE_P.
18770 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
18771 the same as RE_MULTIBYTE_P (bufp) now.
18772 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
18773 (TARGET_CHAR_AND_LENGTH): Delete this macro.
18774 (TRANSLATE_VIA_MULTIBYTE): New macro.
18775 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
18776 It is the same as RE_MULTIBYTE_P (bufp) now.
18777 <exactn>: Translate via multibyte.
18778 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
18779 translate it.
18780 <charset, charset_not>: Fetch a character by
18781 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
18782 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
18783 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
18784 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
18785 by GET_CHAR_AFTER.
18786 (bcmp_translate): Likewise.
18787
18788 * search.c (compile_pattern): Check the member target_multibyte,
18789 not the member multibyte of buf.
18790
18791 * lread.c (read1): While reading a string, set force_singlebyte
18792 and force_multibyte correctly.
18793
18794 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
18795 up of unibyte_to_multibyte_table.
18796
187972008-02-01 Kenichi Handa <handa@m17n.org>
18798
18799 * coding.c (setup_coding_system): If coding has
18800 post-read-conversion or pre-write-conversion, set
18801 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
18802 respectively.
18803 (decode_coding_gap): Run post-read-conversion if any.
18804
18805 * fileio.c (Finsert_file_contents): Even if we read into a
18806 unibyte buffer, check if we must decode the result or not.
18807
188082008-02-01 Kenichi Handa <handa@m17n.org>
18809
18810 * coding.c (make_conversion_work_buffer): Change the work buffer
18811 name to the same one as that of Emacs 21.
18812
188132008-02-01 Kenichi Handa <handa@m17n.org>
18814
18815 * coding.h (make_conversion_work_buffer): Adjust prototype.
18816 (code_conversion_restore): Don't extern it.
18817
18818 * coding.c (detected_mask): Delete unused variable.
18819 (decode_coding_iso_2022): Pay attention to the byte sequence of
18820 CTEXT extended segment, and retain those bytes as is.
18821 (decode_coding_ccl): Delete unused variable `valids'.
18822 (setup_coding_system): Delete unused variable `category'.
18823 (consume_chars): Delete unused variable `category'. Make it work
18824 for non-multibyte case.
18825 (make_conversion_work_buffer): Change argument.
18826 (saved_coding): Delete unused variable.
18827 (code_conversion_restore): Don't check saved_coding->destination.
18828 (code_conversion_save): New function.
18829 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
18830 instead of record_unwind_protect.
18831 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
18832 (detect_coding_system): Delete unused variable `mask'.
18833 (Fdefine_coding_system_internal): Delete unused variable id.
18834
18835 * fileio.c (kill_workbuf_unwind): New function.
18836 (Finsert_file_contents): On replacing, call
18837 make_conversion_work_buffer with correct args, and call
18838 record_unwind_protect with the first arg kill_workbuf_unwind.
18839
18840 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
18841
188422008-02-01 Kenichi Handa <handa@m17n.org>
18843
18844 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
18845 (fontset_add): Fix for the case that TO is less than TO1.
18846 (Ffontset_info): Don't use fallback fontset on checking the
18847 default fontset.
18848 (dump_fontset): New function for debugging.
18849
18850 * coding.c (Fdefine_coding_system_internal): Fix for the case that
18851 coding_type is Qcharset.
18852
188532008-02-01 Kenichi Handa <handa@m17n.org>
18854
18855 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
18856 (map_char_table): Don't inherit the value from the parent on
18857 initializing VAL. Adjust for the above change.
18858
188592008-02-01 Kenichi Handa <handa@m17n.org>
18860
18861 * coding.c (Qsignature, Qendian): Delete these variables.
18862 (syms_of_coding): Don't initialize them.
18863 (CATEGORY_MASK_UTF_16_AUTO): New macro.
18864 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
18865 detect_info->found.
18866 (decode_coding_utf_16): Don't detect BOM here.
18867 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
18868 is NOT utf_16_without_bom.
18869 (setup_coding_system): For a coding system of type utf-16, check
18870 if the attribute :endian is Qbig or not (not nil or not), and set
18871 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
18872 (detect_coding): If coding type is utf-16 and BOM detection is
18873 required, detect it.
18874 (Fdefine_coding_system_internal): For a coding system of type
18875 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
18876
188772008-02-01 Kenichi Handa <handa@m17n.org>
18878
18879 * coding.c (coding_set_source): Fix for the case that the current
18880 buffer is different from coding->src_object.
18881 (decode_coding_object): Don't use the conversion work buffer if
18882 DST_OBJECT is a buffer.
18883
188842008-02-01 Dave Love <fx@gnu.org>
18885
18886 * lread.c (read_emacs_mule_char) [len==2]: Index
18887 emacs_mule_charset correctly.
18888
188892008-02-01 Dave Love <fx@gnu.org>
18890
18891 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
18892 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
18893 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
18894 treated specially.)
18895 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
18896 (detected_mask): Remove Big5 bits.
18897
188982008-02-01 Kenichi Handa <handa@m17n.org>
18899
18900 The following changes are to make the font rescaling facility
18901 compatible with Emacs 21.
18902
18903 * xfaces.c (Vface_font_rescale_alist): Rename from
18904 Vface_resizing_fonts.
18905 (struct font_name): Rename member resizing_ratio to rescale_ratio.
18906 (font_rescale_ratio): Rename from font_resizing_ratio.
18907 (split_font_name): Set font->rescale_ratio.
18908 (better_font_p): Pay attention to font->rescale_ratio.
18909 (build_scalable_font_name): Likewise. Change RESX, and RESY
18910 fields.
18911 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
18912
189132008-02-01 Kenichi Handa <handa@m17n.org>
18914
18915 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
18916 (Qutf_16_le): Remove these variables.
18917 (syms_of_coding): Don't DEFSYM them.
18918 (decode_coding_utf_16): Fix handling of BOM.
18919 (encode_coding_utf_16): Fix handling of BOM.
18920
189212008-02-01 Kenichi Handa <handa@m17n.org>
18922
18923 * fileio.c (Finsert_file_contents): On replacing, before decoding
18924 the file into the work buffer, set point of the work buffer to the end.
18925
189262008-02-01 Dave Love <fx@gnu.org>
18927
18928 * coding.c (Fcheck_coding_systems_region): Fix type errors.
18929
189302008-02-01 Dave Love <fx@gnu.org>
18931
18932 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
18933 and fix C types.
18934
189352008-02-01 Kenichi Handa <handa@m17n.org>
18936
18937 * xdisp.c (SKIP_GLYPHS): New macro.
18938 (set_cursor_from_row): Pay attention to string display properties.
18939
18940 * category.c (copy_category_entry): Fix for the case that RANGE
18941 is an integer.
18942
18943 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
18944
18945 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
18946
189472008-02-01 Kenichi Handa <handa@m17n.org>
18948
18949 * charset.c (Fcharset_id_internal): New function.
18950 (syms_of_charset): Defsubr it.
18951
18952 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
18953 with the last arg charset_list acquired from coding.
18954 (Fdefine_coding_system_internal): For ccl-based coding system, fix
18955 the attribute coding_attr_ccl_valids.
18956
18957 * coding.h (enum define_coding_ccl_arg_index): Set the first
18958 member coding_arg_ccl_decoder to coding_arg_max.
18959
18960 * ccl.h (ccl_driver): Adjust prototype.
18961
18962 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
18963 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 18964 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
18965 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
18966 last arg Qnil.
18967
189682008-02-01 Kenichi Handa <handa@m17n.org>
18969
18970 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
18971 call encode_char.
18972
18973 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
18974
189752008-02-01 Dave Love <fx@gnu.org>
18976
18977 * composite.c (syms_of_composite): Make composition_hash_table weak.
18978
189792008-02-01 Kenichi Handa <handa@m17n.org>
18980
18981 * dispextern.h (check_face_attributes, generate_ascii_font_name)
18982 (font_name_registry): Don't extern them.
18983 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
18984
18985 * fontset.h (Qfontset): Don't extern it.
18986 (new_fontset_from_font_name): Extern it.
18987
18988 * fontset.c: Give 8 extra slots to fontset objects.
18989 (Qfontset_info): New variable.
18990 (syms_of_fontset): Defsym it.
18991 (FONTSET_FALLBACK): New macro.
18992 (fontset_face): Try also the default fontset.
18993 (make_fontset): Realize a fallback fontset from the default fontset.
18994 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
18995 using split_font_name_into_vector and build_font_name_from_vector.
18996 (Fset_fontset_font): Access the elements of font_spec by enum
18997 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
18998 name by using split_font_name_into_vector.
18999 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
19000 generate a proper font name from the fontset name. Update
19001 Vfontset_alias_alist.
19002 (n_auto_fontsets): New variable.
19003 (new_fontset_from_font_name): New function.
19004 (Ffont_info): Store the information about fonts generated from the
19005 default fontset in the first extra slot of the returned char-table.
19006
19007 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
19008 (font_name_registry): Delete function.
19009 (split_font_name_into_vector): New function.
19010 (build_font_name_from_vector): New function.
19011 (font_list): The argument REGISTRY is now a list of registry names.
19012 (choose_face_font): If we are choosing an ASCII font, and ATTRS
19013 specifies an explicit font name, return the name as is. Make a
19014 list of registy names.
19015
19016 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
19017 of x_new_fontset.
19018 (Fx_create_frame): Don't call x_new_fontset here. Just use
19019 x_list_fonts to check the existence of fonts.
19020
19021 * xterm.h (x_new_fontset): Adjust prototype.
19022
19023 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
19024 string. Use new_fontset_from_font_name to create a fontset from a
19025 font name.
19026
190272008-02-01 Kenichi Handa <handa@m17n.org>
19028
19029 * syntax.c (Vfind_word_boundary_function_table): New name for
19030 Vnext_word_boundary_function_table.
19031 (find-word-boundary-function-table): New name for
19032 next-word-boundary-function-table.
19033
190342008-02-01 Dave Love <fx@gnu.org>
19035
19036 * Makefile.in: Fix some dependencies.
19037
19038 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
19039 set it to nil before returning.
19040
19041 * composite.c (update_compositions): Fix type error.
19042
19043 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
19044
190452008-02-01 Kenichi Handa <handa@m17n.org>
19046
19047 * xterm.c (x_new_font): Optimize for the case that the font is
19048 already set for the frame.
19049
190502008-02-01 Kenichi Handa <handa@m17n.org>
19051
19052 * chartab.c (char_table_ascii): Check if the char table contents
19053 is sub-char-table or not.
19054 (char_table_set, char_table_set_range): Fix argument to
19055 char_table_ascii.
19056
19057 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
19058 (detect_coding_utf_8, detect_coding_utf_16)
19059 (detect_coding_emacs_mule, detect_coding_iso_2022)
19060 (detect_coding_sjis, detect_coding_big5)
19061 (detect_coding_ccl, detect_coding_charset): Change argument MASK
19062 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
19063 sequence is valid in this coding system. Change callers.
19064 (MAX_ANNOTATION_LENGTH): New macro.
19065 (ADD_ANNOTATION_DATA): New macro.
19066 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
19067 ADD_ANNOTATION_DATA. Change the format of annotation data.
19068 (ADD_CHARSET_DATA): New macro.
19069 (emacs_mule_char): New argument ID. Change callers.
19070 (decode_coding_emacs_mule, decode_coding_iso_2022)
19071 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
19072 Produce charset annotation data in coding->charbuf.
19073 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
19074 to charset annotation data in coding->charbuf.
19075 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
19076 coding->common_flags if the coding system is iso-2022 based and
19077 uses designation.
19078 (produce_composition): Adjust for the new annotation data format.
19079 (produce_charset): New function.
19080 (produce_annotation): Handle charset annotation.
19081 (handle_composition_annotation, handle_charset_annotation): New
19082 functions.
19083 (consume_chars): Handle charset annotation. Utilize the above two
19084 functions.
19085 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
19086 buffer, get the deleted text as a string and set
19087 coding->src_object to that string.
19088 (detect_coding, detect_coding_system): Use the new struct
19089 coding_detection_info.
19090
19091 * coding.h (struct coding_detection_info): New structure.
19092 (struct coding_system): Adjust prototype of the member `detector'.
19093 (CODING_ANNOTATE_CHARSET_MASK): New macro.
19094
190952008-02-01 Kenichi Handa <handa@m17n.org>
19096
19097 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
19098
190992008-02-01 Dave Love <fx@gnu.org>
19100
19101 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
19102 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
19103 to new local and nullify apropos_accumulate before returning.
19104 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
19105
191062008-02-01 Kenichi Handa <handa@m17n.org>
19107
19108 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
19109 correctly.
e3eea1fc 19110
aac0c6e3
MR
191112008-02-01 Dave Love <fx@gnu.org>
19112
19113 * fns.c (Flanginfo): Call synchronize_system_time_locale.
19114
191152008-02-01 Kenichi Handa <handa@m17n.org>
19116
19117 The following changes are to make character composition happen
19118 automatically on displaying.
19119
19120 * Makefile.in (lisp, shortlisp): Add composite.elc.
19121
19122 * composite.h (Qauto_composed, Vauto_composition_function)
19123 (Qauto_composition_function): Extern them.
19124
19125 * composite.c (Vcomposition_function_table)
19126 (Qcomposition_function_table): Delete variables.
19127 (Qauto_composed, Vauto_composition_function)
19128 (Qauto_composition_function): New variables.
19129 (run_composition_function): Don't call
19130 compose-chars-after-function.
19131 (update_compositions): Clear `auto-composed' text property.
19132 (compose_chars_in_text): Delete this function.
19133 (syms_of_composite): Staticpro Qauto_composed and
19134 Qauto_composition_function. Declare Vauto_composition_function as
19135 a Lisp variable.
19136
19137 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
19138
19139 * xdisp.c (it_props): Add an entry for Qauto_composed.
19140 (handle_auto_composed_prop): New function.
19141
19142 * xselect.c (selection_data_to_lisp_data): Don't call
19143 compose_chars_in_text.
19144
191452008-02-01 Dave Love <fx@gnu.org>
19146
19147 * keyboard.c (read_char): Modify checking around use of
19148 Vkeyboard_translate_table.
19149
19150 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
19151 and fix C types.
19152
191532008-02-01 Kenichi Handa <handa@m17n.org>
19154
19155 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
19156 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19157 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
19158 the case that the last byte is '\r' correctly.
19159 (decode_coding): Flush out the unprocessed data correctly.
19160 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
19161
191622008-02-01 Dave Love <fx@gnu.org>
19163
19164 * xterm.c (XTread_socket): Fix changes for defined keysyms.
19165 Add XK_ISO... case.
19166 (xaw_scroll_callback): Revert last change.
19167
191682008-02-01 Kenichi Handa <handa@m17n.org>
19169
19170 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
19171
191722008-02-01 Kenichi Handa <handa@m17n.org>
19173
19174 * xfaces.c (Vface_resizing_fonts): New variable.
19175 (struct font_name): New member `resizing_ratio'.
19176 (font_resizing_ratio): New function.
19177 (split_font_name): Set font->resizing_ratio.
19178 (better_font_p): Pay attention to font->resizing_ratio.
19179 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
19180 RESX, and RESY fields.
19181 (try_alternative_families): Try scalable fonts if
19182 Vscalable_fonts_allowed is not Qt.
19183 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
19184
191852008-02-01 Dave Love <fx@gnu.org>
19186
19187 * xterm.c (xaw_scroll_callback): Cast correctly.
19188
191892008-02-01 Dave Love <fx@gnu.org>
19190
19191 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
19192 (lispy_kana_keys): Comment out.
19193 (make_lispy_event) [XK_kana_A]: Comment out.
19194
19195 * xterm.c (xaw_scroll_callback): Cast call_data.
19196 (XTread_socket): Deal with ASCII keysyms.
19197 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
19198
191992008-02-01 Dave Love <fx@gnu.org>
19200
19201 * xterm.c (Vx_keysym_table): New.
19202 (syms_of_xterm): Initialize it.
19203 (XTread_socket): Use it.
19204 From head: Eliminate incorrect optimization that tried to avoid
19205 decoding the output of X*LookupString.
19206 (x_get_font_repertory): Delete charset declaration.
19207
192082008-02-01 Kenichi Handa <handa@m17n.org>
19209
19210 * coding.c (detect_coding_charset): If only ASCII bytes are found,
19211 return 0.
19212 (Fdefine_coding_system_internal): Setup
19213 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
19214
192152008-02-01 Dave Love <fx@gnu.org>
19216
19217 * coding.c (Fcheck_coding_system): Doc fix.
19218
19219 * editfns.c (Finsert_byte): Return a proper value.
19220
192212008-02-01 Kenichi Handa <handa@m17n.org>
19222
19223 * coding.c (decode_coding): Fix args to translate_chars. Pay
19224 attention to Vstandard_translation_table_for_decode.
19225 (encode_coding): Fix args to translate_chars. Pay attention to
19226 Vstandard_translation_table_for_encode.
19227
19228 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
19229 SINGLE_BYTE_CHAR_P.
19230
19231 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
19232 not by SINGLE_BYTE_CHAR_P.
19233
19234 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
19235 SINGLE_BYTE_CHAR_P.
19236
19237 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
19238 SINGLE_BYTE_CHAR_P.
19239
19240 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
19241 by SINGLE_BYTE_CHAR_P.
19242
19243 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
19244 SINGLE_BYTE_CHAR_P.
19245
192462008-02-01 Dave Love <fx@gnu.org>
19247
19248 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
19249
192502008-02-01 Dave Love <fx@gnu.org>
19251
19252 * fns.c (Flanginfo): Fix typo.
19253
19254 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
19255
192562008-02-01 Kenichi Handa <handa@m17n.org>
19257
19258 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
19259 (detect_coding_emacs_mule, detect_coding_iso_2022)
19260 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
19261 incomplete byte sequence. Don't update *mask when correctly detected.
19262 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
19263 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
19264 (detect_coding, detect_coding_system): Adjust for the changes above.
19265
192662008-02-01 Kenichi Handa <handa@m17n.org>
19267
19268 * character.c (char_string): Rename from
19269 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
19270 (string_char): Rename from string_char.
19271
19272 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
19273 if C is greater than MAX_3_BYTE_CHAR.
19274 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
19275 string_char instead of string_char_with_unification.
19276
192772008-02-01 Dave Love <fx@gnu.org>
19278
19279 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
19280
192812008-02-01 Kenichi Handa <handa@m17n.org>
19282
19283 * keymap.c (push_key_description): Pay attention to force_multibyte.
19284
19285 * regex.c (re_search_2): Fix for the case of unibyte buffer.
19286
192872008-02-01 Dave Love <fx@gnu.org>
19288
19289 * charset.c (define_charset_internal): Rename `supprementary'.
19290
19291 * Makefile.in (lisp, shortlisp): Remove latin-N.
19292
192932008-02-01 Dave Love <fx@gnu.org>
19294
19295 * xfns.c (x_window, x_window): Use use_xim.
19296
19297 * xterm.c (use_xim): Initialize.
19298 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
19299 (x_term_init): Maybe set use_xim.
19300
19301 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
19302
193032008-02-01 Kenichi Handa <handa@m17n.org>
19304
19305 * search.c (search_buffer): Fix case-fold-search of multibyte
19306 characters.
19307 (boyer_moore): Rename the last argument to char_high_bits.
19308
193092008-02-01 Kenichi Handa <handa@m17n.org>
19310
19311 * xdisp.c (display_string): Fix for the case of zero width glyph.
19312
19313 * xfns.c (x_set_font): Change the error message of the case that
19314 x_new_fontset returns Qt.
19315
19316 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
19317 (Finternal_set_lisp_face_attribute): Use signal_error for the
19318 error of invalid fontset.
19319
19320 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
19321 fontset, return Qt.
19322
193232008-02-01 Dave Love <fx@gnu.org>
19324
19325 * unexelf.c (unexec): Make .got handling not SGI-specific.
19326
19327 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
19328
19329 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
19330
19331 * keyboard.c (read_key_sequence): Fix type error.
19332
19333 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
19334 type error.
19335
19336 * fontset.c (fontset_add): Return Lisp_Object.
19337
193382008-02-01 Dave Love <fx@gnu.org>
19339
19340 * charset.h (charset_ordered_list_tick): Declare extern.
19341
193422008-02-01 Kenichi Handa <handa@m17n.org>
19343
19344 The following changes (and some of 2008-02-01 changes of mine) are
19345 for handling syntax, category, and case conversion for unibyte
19346 characters by converting them to multibyte on the fly. With these
19347 changes, we don't have to setup syntax and case tables for unibyte
19348 characters in each language environment.
19349
19350 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
19351 multibyte if necessary.
19352
19353 * bytecode.c (Fbyte_code): Likewise.
19354
19355 * character.h (LEADING_CODE_LATIN_1_MIN)
19356 (LEADING_CODE_LATIN_1_MAX): New macros.
19357 (unibyte_to_multibyte_table): Extern it.
19358 (unibyte_char_to_multibyte): New macro.
19359 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
19360 (CHAR_LEADING_CODE): New macro.
19361 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
19362
19363 * character.c (unibyte_to_multibyte_table): New variable.
19364 (unibyte_char_to_multibyte): Move to character.h and define as macro.
19365 (multibyte_char_to_unibyte): If C is an eight-bit character,
19366 convert it to the corresponding byte value.
19367
19368 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
19369 not 1, signals an error. Update the elements of
19370 unibyte_to_multibyte_table.
19371 (init_charset_once): Initialize unibyte_to_multibyte_table.
19372 (syms_of_charset): Define the charset `iso-8859-1'.
19373
19374 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
19375 as is without converting it to unibyte. In a unibyte buffer,
19376 convert C to multibyte before checking the syntax.
19377
19378 * lisp.h (unibyte_char_to_multibyte): Delete extern.
19379
19380 * minibuf.c (Fminibuffer_complete_word): Use the macro
19381 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
19382
19383 * regex.h (struct re_pattern_buffer): New member target_multibyte.
19384
19385 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
19386 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
19387 that is zero, convert an eight-bit char to multibyte.
19388 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
19389 non-emacs case.
19390 (PATFETCH): Convert an eight-bit char to multibyte.
19391 (HANDLE_UNIBYTE_RANGE): New macro.
19392 (regex_compile): Setup the compiled pattern for multibyte chars
19393 even if the given regex string is unibyte. Use PATFETCH_RAW
19394 instead of PATFETCH in many places. To handle `charset'
19395 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
19396 only for ASCII chars.
19397 (analyse_first) <exactn>: Simplify because the compiled pattern
19398 is multibyte.
19399 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
19400 <charset>: Use CHAR_LEADING_CODE to get leading codes.
19401 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
19402 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
19403 multibyte always 1.
19404 (re_search_2): In emacs, set the locale variable multibyte to 1,
19405 otherwise to 0. New local variable target_multibyte. Check it
19406 to decide the multibyteness of STR1 and STR2. If
19407 target_multibyte is zero, convert unibyte chars to multibyte
19408 before translating and checking fastmap.
19409 (TARGET_CHAR_AND_LENGTH): New macro.
19410 (re_match_2_internal): In emacs, set the locale variable multibyte
19411 to 1, otherwise to 0. New local variable target_multibyte. Check
19412 it to decide the multibyteness of STR1 and STR2. Use
19413 TARGET_CHAR_AND_LENGTH to fetch a character from D.
19414 <charset, charset_not>: If multibyte is nonzero, check fastmap
19415 only for ASCII chars. Call bcmp_translate with
19416 target_multibyte, not with multibyte.
19417 <begline>: Declare the local variable C as `unsigned'.
19418 (bcmp_translate): Change the last arg name to target_multibyte.
19419
19420 * search.c (compile_pattern_1): Don't adjust the multibyteness of
19421 the regexp pattern and the matching target. Set cp->buf.multibyte
19422 to the multibyteness of the regexp pattern. Set
19423 cp->but.target_multibyte to the multibyteness of the matching target.
19424 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
19425 FETCH_STRING_CHAR_ADVANCE.
19426 (Freplace_match): Convert unibyte chars to multibyte.
19427
19428 * syntax.c (char_quoted, back_comment, scan_words)
19429 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
19430 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
19431 unibyte chars to multibyte.
19432 (skip_chars): Delete the arg syntaxp, and move the code for
19433 handling syntaxes to skip_syntaxes. Change callers.
19434 Fix the case that the multibyteness of STRING and the current
19435 buffer doesn't match.
19436 (skip_syntaxes): New function.
19437 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
19438 SINGLE_BYTE_CHAR_P.
19439
194402008-02-01 Kenichi Handa <handa@m17n.org>
19441
19442 * xfaces.c (QCfontset): New variable.
19443 (LFACE_FONTSET): New macro.
19444 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
19445 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
19446 (Finternal_set_lisp_face_attribute)
19447 (Finternal_get_lisp_face_attribute): Handle QCfontset.
19448 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
19449 check also LFACE_FONTSET_INDEX.
19450 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
19451 attrs[LFACE_FONT_INDEX].
19452 (syms_of_xfaces): Intern and staticpro QCfontset.
19453
19454 * dispextern.h (enum lface_attribute_index): New member
19455 LFACE_FONTSET_INDEX.
19456
19457 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
19458
194592008-02-01 Kenichi Handa <handa@m17n.org>
19460
19461 * coding.c (coding_set_destination): Fix coding->destination for
19462 the case converting a region.
19463 (encode_coding_utf_8): Encode eight-bit chars as single byte.
19464 (encode_coding_object): Fix coding->dst_pos and
19465 coding->dst_pos_byte for the case converting a region.
19466
19467 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
19468
19469 * character.h (BYTE8_STRING): New macro.
19470
19471 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
19472
194732008-02-01 Kenichi Handa <handa@m17n.org>
19474
19475 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
19476 characters by octal form.
19477
19478 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
19479
19480 * buffer.h (_fetch_multibyte_char_len): Delete extern.
19481 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
19482 _fetch_multibyte_char_len.
19483 (FETCH_CHAR_AS_MULTIBYTE): New macro.
19484
19485 * casetab.c (set_canon, set_identity, shuffle): Simplify.
19486
19487 * casefiddle.c (casify_object): Simplify. Handle the case that
19488 the case conversion change the byte length.
19489 (casify_region): Likewise.
19490
19491 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
19492
19493 * character.c (_fetch_multibyte_char_len): Delete this variable.
19494 (syms_of_character): Setup Vprintable_chars.
19495
19496 * editfns.c (Fchar_equal): Fix for the unibyte case.
19497 (Finsert_byte): New function.
19498 (syms_of_editfns): Defsubr it.
19499
19500 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
19501 of direct code 0x3ffff.
19502
19503 * search.c (Freplace_match): Fix for the unibyte case.
19504
195052008-02-01 Kenichi Handa <handa@m17n.org>
19506
19507 * lread.c (safe_to_load_p): Fix the logic.
19508
19509 * syntax.c (scan_words): Don't treat characters belonging to
19510 different scripts as constituting a word.
19511
19512 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19513
19514 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
19515
19516 * emacs.c (main): In the case of --unibyte, instead of aborting on
19517 finding non-empty buffer, make it unibyte.
19518
195192008-02-01 Kenichi Handa <handa@m17n.org>
19520
19521 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
19522 to create a fontset.
19523
195242008-02-01 Dave Love <fx@gnu.org>
19525
19526 * character.c (Funibyte_char_to_multibyte): Doc fix.
19527
19528 * xfns.c [HAVE_STDLIB_H]: Fix last change.
19529
195302008-02-01 Kenichi Handa <handa@m17n.org>
19531
19532 * fontset.c (fontset_add): Make the type `int'.
19533 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
19534
19535 * character.c (unibyte_char_to_multibyte)
19536 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
19537 charset_unibyte, not charset_primary.
19538
19539 * charset.h (charset_unibyte): Extern it instead of charset_primary.
19540
19541 * charset.c (charset_unibyte): Rename from charset_primary.
19542 (Funibyte_charset): Rename from Fprimary_charset.
19543 (Fset_unibyte_charset): Rename from Fset_primary_charset.
19544 (syms_of_charset): Adjust for the above changes.
19545
19546 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
19547 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
19548 it->multibyte_p is zero.
19549
19550 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
19551 Delete extern.
19552
195532008-02-01 Kenichi Handa <handa@m17n.org>
19554
19555 * coding.c (Fdefine_coding_system_internal): Fix category setting
19556 for a coding system of type iso-2022.
19557
195582008-02-01 Kenichi Handa <handa@m17n.org>
19559
19560 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
19561
195622008-02-01 Kenichi Handa <handa@m17n.org>
19563
19564 * syntax.c (Vnext_word_boundary_function_table): New variable.
19565 (next-word-boundary-function-table): Declare it as a Lisp variable
19566 in syms_of_syntax.
19567 (scan_words): Call functions in Vnext_word_boundary_function_table
19568 if any.
19569
19570 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
19571
19572 * fontset.c (fs_load_font): If fontp->charset is not negative,
19573 return fontp without setting its members.
19574
195752008-02-01 Dave Love <fx@gnu.org>
19576
19577 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
19578
19579 * m/sparc.h (HAVE_ALLOCA): Delete.
19580
19581 * s/irix6-5.h: Don't include strings.h.
19582 (bcopy, bzero, bcmp): Don't undef.
19583
19584 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
19585
19586 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
19587 (TIOCSIGSEND): Don't test IRIX6.
19588 (bcopy, bzero, bcmp): Define conditionally.
19589
195902008-02-01 Kenichi Handa <handa@m17n.org>
19591
19592 * buffer.c (Qas, Qmake, Qto): New variables.
19593 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
19594 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
19595
19596 * callproc.c (Fcall_process): Don't call insert_1_both directly if
19597 we are inserting a process output into a multibyte buffer.
19598
19599 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
19600 multibyte_char_to_unibyte.
19601
19602 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
19603 by the primary charset, make it eight-bit char.
19604 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
19605
19606 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
19607 (charset_8_bit__control, charset_8_bit_graphic)
19608 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
19609 (define_charset_internal): New function.
19610 (syms_of_charset): Call define_charset_internal for pre-defined
19611 charsets.
19612
19613 * charset.h (charset_8_bit): Extern it.
19614
19615 * coding.c (make_conversion_work_buffer): Adjust for the change
19616 of Fset_buffer_multibyte.
19617 (encode_coding_raw_text): Increment p0 in the loop.
19618
19619 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
19620
19621 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
19622 for the change of Fset_buffer_multibyte.
19623
19624 * fns.c (Fstring_to_multibyte): New function.
19625 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
19626
196272008-02-01 Dave Love <fx@gnu.org>
19628
19629 * xfns.c (x_put_x_image): Declare args.
19630
19631 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
19632 (try_font_list): Declare an arg.
19633
19634 * xdisp.c (message2_nolog, set_message): Declare an arg.
19635
19636 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
19637
19638 * syntax.c (scan_sexps_forward): Declare an arg.
19639
19640 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
19641 Declare an arg.
19642
19643 * lisp.h (Fnew_fontset): Declare.
19644
19645 * keymap.c (push_key_description): Call CHARACTERP correctly.
19646
19647 * fontset.c (fontset_add): Declare args. Call make_number correctly.
19648 (face_for_char): Delete unused vars.
19649 (Fset_fontset_font): Doc fix. Delete unused vars.
19650
19651 * doc.c (Fsubstitute_command_keys): Delete unused vars.
19652
19653 * composite.c (update_compositions): Declare arg.
19654
19655 * cm.c (calccost, cmgoto): Declare args.
19656
19657 * charset.c: Remove `emacs' conditional. Doc fixes.
19658 (map_char_table_for_charset): Declare.
19659
19660 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
19661
19662 * ccl.c: Remove `emacs' conditional.
19663
196642008-02-01 Kenichi Handa <handa@m17n.org>
19665
19666 The following changes are to allow specifying multiple font
19667 patterns for a character range (specified by script or charset).
19668
19669 * Makefile.in (abbrev.o): Depend on syntax.h.
19670 (xfaces.o): Depend on charset.h.
19671
19672 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
19673 SINGLE_BYTE_CHAR_P.
19674
19675 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
19676
19677 * character.h (Vchar_script_table): Extern it.
19678
19679 * character.c (Vscript_alist): Delete.
19680 (Vchar_script_table, Qchar_script_table): New variable.
19681 (syms_of_character): Declare Vchar_script_table as a lisp variable
19682 and initialize it.
19683
19684 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
19685 have property char-table-extra-slots, make no extra slot.
19686
19687 * dispextern.h (struct face): Delete member `charset'.
19688 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
19689 SINGLE_BYTE_CHAR_P.
19690 (choose_face_font, lookup_non_ascii_face, font_name_registry):
19691 Add prototypes.
19692 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
19693 (generate_ascii_font_name): Rename from generate_ascii_font.
19694
19695 * fontset.h (get_font_repertory_func): New prototype.
19696 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
19697 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
19698
19699 * fontset.c (Qprepend, Qappend): New variables.
19700 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
19701 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
19702 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
19703 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
19704 (fontset_ref_and_range, fontset_add, reorder_font_vector)
19705 (load_font_get_repertory): New functions.
19706 (fontset_set): Delete.
19707 (fontset_face): New arg FACE. Return face ID, not face.
19708 Complete re-write to handle new fontset structure. Change caller.
19709 (free_face_fontset): Use ASET istead of AREF (X) = Y.
19710 (face_for_char): Don't call lookup_face.
19711 (make_fontset_for_ascii_face): New arg FACE.
19712 (fs_load_font): New arg CHARSET_ID. Don't check
19713 Vfont_encoding_alist here.
19714 (find_font_encoding): New function.
19715 (list_fontsets): Use STRINGP, not ! NILP.
19716 (accumulate_script_ranges): New function.
19717 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
19718 re-written to handle new fontset structure.
19719 (Ffontset_font): Return a copy of element.
19720 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
19721 docstring of font-encoding-alist.
19722
19723 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
19724 (Fset_fotset_font): Fix arguments to 5.
19725
19726 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
19727
19728 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
19729 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19730 (highlight_trailing_whitespace): Adjust for the change of
19731 lookup_named_face.
19732
19733 * xfaces.c: Include charset.h.
19734 (load_face_font): Delete argument C. Change caller.
19735 (generate_ascii_font_name): Rename from generate_ascii_font.
19736 (font_name_registry): New function.
19737 (cache_face): Store ascii faces before non-ascii faces in buckets.
19738 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
19739 Lookup only ascii faces.
19740 (lookup_non_ascii_face): New function.
19741 (lookup_named_face): Delete argument C. Change caller.
19742 (lookup_derived_face): Delete argument C. Change caller.
19743 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
19744 a string, just call font_list with it.
19745 (choose_face_font): Delete arguments FACE and C. New arg
19746 FONT_SPEC. Change caller.
19747 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
19748 Change caller.
19749 (realize_non_ascii_face): New function.
19750 (realize_x_face): Call load_face_font here.
19751 (realize_tty_face): Delete argument C. Change caller.
19752 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
19753 get a face ID.
19754 (dump_realized_face): Don't print charset of FACE.
19755
19756 * xfns.c (x_set_font): Always call x_new_fontset and
19757 store_frame_parameter.
19758 (Fx_create_frame): Call x_new_fontset, not x_new_font.
19759 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
19760
19761 * xterm.h (x_get_font_repertory): Extern it.
19762
19763 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
19764 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
19765 it->multibyte_p is zero.
19766 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19767 (x_new_fontset): If FONTSETNAME doesn't match any existing
19768 fontsets, create a new one.
19769 (x_get_font_repertory): New function.
19770
197712008-02-01 Kenichi Handa <handa@m17n.org>
19772
19773 * coding.c (Ffind_coding_systems_region_internal): Detect an
19774 ASCII only string correctly.
19775
19776 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
19777 version is 0.
19778
197792008-02-01 Kenichi Handa <handa@m17n.org>
19780
19781 * lread.c: Include "coding.h".
19782 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
19783 (load_each_byte, unread_char): New variables.
19784 (readchar_backlog): Delete.
19785 (readchar): Return a character unless load_each_byte is nonzero.
19786 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
19787 cons. If unread_char is not -1, simply return it.
19788 (unreadchar): Handle the case that readcharfun is
19789 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
19790 (read_multibyte): Delete.
19791 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
19792 (read_emacs_mule_char): New functions.
19793 (Fload): Even if the file doesn't have the extension ".elc", if
19794 safe_to_load_p returns a positive version number, assume that the
19795 file contains bytecompiled code. If the version is less than 22,
19796 load the file while decoding multibyte sequences by emacs-mule.
19797 (readevalloop): Don't use readchar_backlog.
19798 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
19799 (Fread_from_string): Pay attention to the case that STREAM is a cons.
19800 (read_escape): Delete the arg BYTEREP.
19801 (read1): Set load_each_byte to 1 temporarily while handling
19802 #@NUMBER. Don't call read_multibyte.
19803 (read_vector): Call Fread with a cons. If readcharfun is
19804 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
19805 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
19806 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
19807 and Qload_force_doc_strings.
19808
198092008-02-01 Kenichi Handa <handa@m17n.org>
19810
19811 * xdisp.c (face_before_or_after_it_pos): Call
19812 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
19813
198142008-02-01 Kenichi Handa <handa@m17n.org>
19815
19816 * character.h (TRAILING_CODE_P): New macro.
19817 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
19818 (string_char_with_unification): Fix prototype.
19819 (Vscript_alist): Extern it.
19820
19821 * character.c (Vscript_alist): New variable.
19822 (string_char_with_unification, str_as_unibyte)
19823 (string_escape_byte8): Add `const' to local variables.
19824 (syms_of_character): Declare script-alist as a Lisp variable.
19825
19826 * charset.h (Vcharset_ordered_list): Extern it.
19827 (charset_ordered_list_tick): Extern it.
19828 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
19829 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
19830 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
19831 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
19832 (Funify_charset): Adjust for the change of Funify_charset.
19833
19834 * charset.c (charset_ordered_list_tick): New variable.
19835 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
19836 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
19837 deunify intead of unify a charset.
19838 (string_xstring_p): Add `const' to local variables.
19839 (find_charsets_in_text): Add `const' to arguments and local variables.
19840 (encode_char): Adjust for the change of Funify_charset. Fix
19841 detecting of invalid code.
19842 (Fset_charset_priority): Increment charset_ordered_list_tick.
19843 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
19844 and TO_CODE.
19845
19846 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
19847 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
19848 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
19849 (decode_coding_ccl, consume_chars)
19850 (Ffind_coding_systems_region_internal)
19851 (Fcheck_coding_systems_region): Add `const' to local variables.
19852
19853 * print.c (print_object): Use octal form for printing the
19854 contents of a bool vector.
19855
198562008-02-01 Dave Love <fx@gnu.org>
19857
19858 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
19859 <version == 20>: Refuse to load.
19860
198612008-02-01 Dave Love <fx@gnu.org>
19862
19863 * fns.c: Move coding.h.
19864 (Qcodeset, Qdays, Qmonths): New.
19865 (concat): Use CHARACTERP instead of INTEGERP.
19866 (Flocale_codeset): Delete.
19867 (Flanginfo): New function.
19868 (syms_of_fns): Change accordingly.
19869
19870 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
19871
198722008-02-01 Dave Love <fx@gnu.org>
19873
19874 * casetab.c (init_casetab_once, init_casetab_once): Fix
19875 CHAR_TABLE_SET call.
19876
19877 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
19878
19879 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
19880
19881 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
19882 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
19883 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
19884
19885 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
19886
19887 * coding.c (ENCODE_DESIGNATION, decode_eol)
19888 (make_conversion_work_buffer, code_conversion_restore)
19889 (Fdefine_coding_system_internal): Convert Lisp types.
19890 (code_conversion_restore): Use EQ, not ==.
19891 (Fencode_coding_string): Fix code_convert_string call.
19892
19893 * coding.h (code_convert_region): Fix prototype.
19894
19895 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
19896
19897 * fontset.c (fontset_ref, fontset_set, fs_load_font)
19898 (Ffontset_info): Convert Lisp types.
19899
19900 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
19901
19902 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
19903
19904 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
19905
19906 * chartab.c: Include "...h", not <...h> in some cases.
19907
19908 * callproc.c (Fcall_process): Remove unused variables.
19909
199102008-02-01 Dave Love <fx@gnu.org>
19911
19912 * coding.c (Fset_coding_system_priority): Allow null arg list.
19913
199142008-02-01 Dave Love <fx@gnu.org>
19915
19916 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
19917 (Fself_insert_and_exit): Use CHARACTERP.
19918
19919 * callproc.c (Fcall_process): Remove unused vars.
19920
19921 * xterm.c (XTread_socket): Add extra dead keysyms.
19922
19923 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
19924
19925 * dispextern.h: Remove prototypes for redraw_frame,
19926 redraw_garbaged_frames.
19927
19928 * cmds.c (Fself_insert_command): Use CHARACTERP.
19929
19930 * chartab.c (make_sub_char_table): Remove unused var.
19931 (Fset_char_table_default, Fmap_char_table): Doc fix.
19932
19933 * keymap.c (access_keymap): Remove generic char code.
19934 (push_key_description): Use CHARACTERP.
19935
199362008-02-01 Dave Love <fx@gnu.org>
19937
19938 * charset.c: Doc fixes.
19939 (Funify_charset): Extra checking.
19940
199412008-02-01 Dave Love <fx@gnu.org>
19942
19943 * lread.c: Remove some unused variables.
19944 (safe_to_load_p): If safe, return the magic number version byte.
19945 (Fload): Maybe use load-with-code-conversion.
19946
199472008-02-01 Kenichi Handa <handa@m17n.org>
19948
19949 * category.c (Fmodify_category_entry): Don't modify the contents
19950 of category_set for characters out of the range. Avoid
19951 unnecessary modification.
19952
19953 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
19954 Vchar_unify_table. The default value of the table is now nil.
19955
19956 * character.c (syms_of_character): Setup Vchar_width_table for
19957 eight-bit-control and raw-byte chars.
19958
19959 * charset.h (enum define_charset_arg_index): Delete
19960 charset_arg_parents and add charset_arg_subset and
19961 charset_arg_superset.
19962 (enum charset_attr_index): Delete charset_parents and add
19963 charset_subset and charset_superset.
19964 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
19965 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
19966 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
19967 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
19968 (CHARSET_SUPERSET): New macros.
19969 (charset_work): Extern it.
19970 (ENCODE_CHAR): Use charset_work.
19971 (CHAR_CHARSET_P): Adjust for the change of encoder format.
19972 (map_charset_chars): Extern it.
19973
19974 * charset.c (load_charset_map): Set the default value of encoder
19975 and deunifier char-tables to nil.
19976 (map_charset_chars): Change argument. Change callers. Use
19977 map_char_table_for_charset instead of map_char_table.
19978 (Fmap_charset_chars): New optional args from_code and to_code.
19979 (Fdefine_charset_internal): Adjust for the change of
19980 `define-charset' (:parents -> :subset or :superset).
19981 (charset_work): New variable.
19982 (encode_char, syms_of_charset): Adjust for the change of
19983 Fdefine_charset_internal.
19984 (Ffind_charset_string): Setup the vector `charsets' correctly.
19985
19986 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
19987 the previous change.
19988 (char_table_ref_and_range): Adjust for the above change.
19989 (map_sub_char_table_for_charset): New function.
19990 (map_char_table_for_charset): New function.
19991
19992 * keymap.c (describe_vector): Handle a char-table directly here.
19993 (describe_char_table): Delete.
19994
19995 * lisp.h (map_charset_chars): Delete.
19996
199972008-02-01 Dave Love <fx@gnu.org>
19998
19999 * fns.c (count_combining): Comment out (unused).
20000 (Flocale_codeset): New.
20001 (syms_of_fns): Defsubr it.
20002
20003 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
20004 (size_t): Remove.
20005
200062008-02-01 Dave Love <fx@gnu.org>
20007
20008 * Makefile.in (chartab.o): Depend on charset.h.
20009
200102008-02-01 Kenichi Handa <handa@m17n.org>
20011
20012 * character.c (syms_of_character): Set the default value of
20013 Vprintable_chars to Qnil.
20014
200152008-02-01 Dave Love <fx@gnu.org>
20016
20017 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
20018
200192008-02-01 Kenichi Handa <handa@m17n.org>
20020
20021 * charset.c (load_charset_map): Handle the case that from < to
20022 correctly.
20023
20024 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
20025 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
20026 Pay attention to raw-8-bit chars.
20027
200282008-02-01 Kenichi Handa <handa@m17n.org>
20029
20030 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
20031 It is not bytecompiled now.
20032
20033 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
20034 (charset_jisx0208): New variables.
20035 (Fdefine_charset_internal): Setup them if appropriate.
20036 (init_charset_once): Initialize them to -1.
20037
20038 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
20039 (charset_jisx0208): Extern them.
20040
20041 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
20042 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
20043 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
20044 (setup_iso_safe_charsets): Fix arguments to Fassq.
20045 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
20046 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
20047 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
20048 (encode_coding_iso_2022): Change the 1st arg to
20049 ENCODE_ISO_CHARACTER to a variable.
20050
200512008-02-01 Kenichi Handa <handa@m17n.org>
20052
20053 * charset.h (enum define_charset_arg_index): New enums
20054 charset_arg_min_code and charset_arg_max_code.
20055 (struct charset): New member char_index_offset.
20056
20057 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
20058 Take charset->char_index_offset into account.
20059 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
20060 args[charset_arg_max_code]. Setup charset.char_index_offset.
20061 (syms_of_charset): Fix args to Fdefine_charset_internal.
20062
200632008-02-01 Dave Love <fx@gnu.org>
20064
20065 * coding.c (decode_coding_utf_8): Reject overlong sequences.
20066
200672008-02-01 Dave Love <fx@gnu.org>
20068
20069 * coding.c: Doc fixes.
20070 (Fcoding_system_aliases): Fix return value.
20071 (Qmac): Remove (duplicated) definition.
20072
200732008-02-01 Dave Love <fx@gnu.org>
20074
362654a6
JB
20075 * charset.c (Fcharset_priority_list, Fset_charset_priority):
20076 New functions.
aac0c6e3
MR
20077
20078 * character.c (Fstring): Doc fix.
20079
20080 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
20081
362654a6 20082 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
20083 (font-encoding-alist): Doc fix.
20084
200852008-02-01 Dave Love <fx@gnu.org>
20086
20087 * term.c (costs_set): Declare static, non-initialized for pcc.
20088 (encode_terminal_code): Remove unused var.
20089
20090 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
20091 for K&R.
20092
20093 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
20094
20095 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
20096 (suffixes): Move out of make_subsidiaries for K&R.
20097
20098 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
20099
20100 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
20101
201022008-02-01 Dave Love <fx@gnu.org>
20103
20104 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
20105
20106 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
20107
201082008-02-01 Yong Lu <lyongu@asia-infonet.com>
20109
20110 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
20111
20112 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
20113
201142008-02-01 Kenichi Handa <handa@m17n.org>
20115
20116 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
20117 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
20118
201192008-02-01 Kenichi Handa <handa@m17n.org>
20120
20121 * coding.c (decode_coding_charset): Adjust for the change of
20122 Fdefine_coding_system_internal.
20123 (Fdefine_coding_system_internal): For a coding system of
20124 `charset' type, store a list of charset IDs in
20125 `charset_attr_charset_valids' element of coding attributes.
20126
201272008-02-01 Kenichi Handa <handa@m17n.org>
20128
20129 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
20130 (emacs_mule_char): New arg src. Delete arg `composition'. Change
20131 caller. Handle 2-byte and 3-byte charsets correctly.
20132 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
20133 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
20134 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
20135 (DECODE_EMACS_MULE_21_COMPOSITION): Call
20136 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
20137 sequence.
20138 (decode_coding_emacs_mule): Handle composition correctly. Rewind
20139 `src' and `consumed_chars' correctly before calling emacs_mule_char.
20140 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
20141 and alt&rule composition.
20142 (decode_coding_iso_2022): Handle composition correctly.
20143 (init_coding_once): Setup emacs_mule_bytes for private charsets.
20144
20145 * charset.c (Fdefine_charset_internal): Fix bug for the case of
20146 re-defining a charset. If the charset has :emacs-mule-id, setup
20147 emacs_mule_bytes.
20148 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
20149
201502008-02-01 Kenichi Handa <handa@m17n.org>
20151
20152 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
20153 (encode_coding_big5, encode_coding_charset): If coding requires safe
20154 encoding, produce a character specified by
20155 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
20156
201572008-02-01 Dave Love <fx@gnu.org>
20158
20159 * xterm.c (XSetIMValues): Declare.
20160
20161 * process.c: Conditionally include sys/wait.h, pty.h.
20162
20163 * print.c (print_object): Fix print format for 64-bit systems.
20164
20165 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
20166
20167 * buffer.c (emacs_strerror): Declare.
20168
20169 * fontset.c (Fclear_face_cache): Declare.
20170 (accumulate_font_info): Comment-out (unused).
20171 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
20172 variables.
20173
20174 * character.h (string_escape_byte8): Declare.
20175
20176 * charset.c (load_charset_map, load_charset_map_from_file): Remove
20177 unused vars.
20178 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
20179 (Fmap_charset_chars): Doc fix.
20180
20181 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
20182 (Fset_coding_system_priority, Fset_coding_system_priority)
20183 (Fdefine_coding_system_internal): Doc fix.
20184
201852008-02-01 Dave Love <fx@gnu.org>
20186
20187 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
20188
201892008-02-01 Kenichi Handa <handa@m17n.org>
20190
20191 * character.c (string_escape_byte8): Make multibyte string with
20192 correct size.
20193
20194 * charset.c (Fmake_char): Delete unnecessary code.
20195
201962008-02-01 Kenichi Handa <handa@m17n.org>
20197
20198 * xfns.c (x_encode_text): Allocate coding.destination here, and
20199 call encode_coding_object with dst_object Qnil.
20200
20201 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
20202 multibyte form correctly.
20203
20204 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
20205 against Vfont_encoding_alist.
20206
20207 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
20208 handling of charset list.
20209 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
20210 (decode_coding_object): Move point to coding->dst_pos before
20211 calling post-read-conversion function.
20212 (encode_coding_object): Give correct arguments to
20213 pre-write-conversion. Ignore the return value of
20214 pre-write-conversion function. Pay attention to the case that
20215 pre-write-conversion changes the current buffer. If dst_object is
20216 Qt, even if coding->src_bytes is zero, allocate at least one byte
20217 to coding->destination.
20218
20219 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
20220
20221 * charset.c (Fmake_char): Make it more backward compatible.
20222 (Fmap_charset_chars): Fix docstring.
20223
202242008-02-01 Dave Love <fx@gnu.org>
20225
20226 * coding.c: Doc fixes.
20227 (Fdefine_coding_system_alias): Use names, not symbols, in
20228 coding-system-alist.
20229
202302008-02-01 Kenichi Handa <handa@m17n.org>
20231
20232 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
20233 of calling free_realized_face.
20234
202352008-02-01 Yong Lu <lyongu@asia-infonet.com>
20236
20237 * charset.c (read_hex): Don't treat SPC as a comment starter.
20238 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
20239 (Fdecode_char): Fix typo.
20240
202412008-02-01 Kenichi Handa <handa@m17n.org>
20242
20243 * charset.h (struct charset): New member `code_space_mask'.
20244
20245 * coding.c (coding_set_source): Delete the local variable beg_byte.
20246 (encode_coding_charset, Fdefine_coding_system_internal):
20247 Delete the local variable charset.
20248 (Fdefine_coding_system_internal): Setup
20249 attrs[coding_attr_charset_valids] correctly.
20250
20251 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
20252 member to check if CODE is valid or not.
20253 (Fdefine_charset_internal): Initialize `code_space_mask' member.
20254 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
20255 is within the range of charset->min_code and carset->max_code.
20256
202572008-02-01 Dave Love <fx@gnu.org>
20258
20259 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
20260
20261 * dispextern.h (generate_ascii_font): Fix return type.
20262
20263 * xfaces.c (generate_ascii_font): Fix arg declaration.
20264
20265 * coding.c (coding_inherit_eol_type)
20266 (Fset_terminal_coding_system_internal)
20267 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
20268
202692008-02-01 Kenichi Handa <handa@m17n.org>
20270
20271 * coding.c (decode_coding_charset, encode_coding_charset): Handle
20272 multiple charsets correctly.
20273
202742008-02-01 Kenichi Handa <handa@m17n.org>
20275
20276 * search.c (boyer_moore): Fix handling of multibyte character
20277 translation.
20278
20279 * xdisp.c (display_mode_element): When the variable `elt' is
20280 changed, update `this' and `lisp_string'.
20281
202822008-02-01 Kenichi Handa <handa@m17n.org>
20283
20284 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
20285
20286 * callproc.c (Fcall_process): Be sure to give the current buffer
20287 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
20288
20289 * charset.c (struct charset_map_entries): New struct.
20290 (load_charset_map): Rename from parse_charset_map. New args
20291 entries and n_entries. Change caller.
20292 (load_charset_map_from_file): Rename from load_charset_map.
20293 Change caller. New arg control_flag. Call load_charset_map at
20294 the tail.
20295 (load_charset_map_from_vector): New function.
20296 (Fdefine_charset_internal): Setup charset.compact_codes_p.
20297 (encode_char): If the charset is compact, change a character index
20298 to a code point.
20299
20300 * coding.c (coding_alloc_by_making_gap): Check the case that the
20301 source and destination are the same correctly.
20302 (decode_coding_raw_text): Set coding->consumed_char and
20303 coding->consumed to 0.
20304 (produce_chars): If coding->chars_at_source is nonzero, update
20305 coding->consumed_char and coding->consumed before calling
20306 alloc_destination.
20307 (Fdefine_coding_system_alias): Register ALIAS in
20308 Vcoding_system_alist.
20309 (syms_of_coding): Define `no-conversion' coding system at the tail.
20310
20311 * fileio.c (Finsert_file_contents): Set coding_system instead of
20312 val. If the current buffer is multibyte, always call
20313 decode_coding_gap.
20314
20315 * xfaces.c (try_font_list): Give higher priority to fontset's
20316 family than face's family.
20317
203182008-02-01 Kenichi Handa <handa@m17n.org>
20319
20320 * callproc.c (Fcall_process): Be sure to give the current buffer
20321 to decode_coding_c_string.
20322
20323 * xfaces.c (try_font_list): Give a family specified in a fontset
20324 higher priority than a family specified in a face.
20325
203262008-02-01 Kenichi Handa <handa@m17n.org>
20327
20328 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
20329 Fix arguments to insert_from_buffer.
20330
20331 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
20332
203332008-02-01 Kenichi Handa <handa@m17n.org>
20334
20335 * coding.c (produce_chars): Set the variable `multibytep' correctly.
20336 (decode_coding_gap): Set coding->dst_multibyte correctly.
20337
203382008-02-01 Kenichi Handa <handa@m17n.org>
20339
20340 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
20341 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
20342 (encode_coding_utf_16): Substitute coding->default_char for
20343 non-Unicode characters.
20344 (decode_coding): Don't call record_insert here.
20345 (setup_coding_system): Initialize `surrogate' of
20346 coding->spec.utf_16 to 0.
20347 (EMIT_ONE_BYTE): Fix for multibyte case.
20348
20349 * insdel.c (insert_from_gap): Call record_insert.
20350
203512008-02-01 Kenichi Handa <handa@m17n.org>
20352
20353 * casefiddle.c (casify_region): Fix multibyte case.
20354
20355 * character.c (c_string_width): Add return type `int'.
20356 (char_string_with_unification): Delete arg ADVANCED.
20357
20358 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
20359 (CHAR_STRING): Adjust for the change of char_string_with_unification.
20360 (CHAR_STRING_ADVANCE): Make it do-while statement.
20361
20362 * chartab.c (sub_char_table_set_range): Optimize for the case
20363 DEPTH == 3. Add workaround code for a GCC optimization bug.
20364
20365 * charset.c (parse_charset_map): Remove an unused variable.
20366
20367 * coding.c: Delete unused variables.
20368
20369 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
20370 earlier. If inserted is zero and the coding system doesn't
20371 require flushing, don't call decode_coding_gap.
20372
20373 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
20374
203752008-02-01 Kenichi Handa <handa@m17n.org>
20376
20377 The following changes are for using Unicode as an internal
20378 character model, and use UTF-8 format for buffer/string
20379 representation.
20380
20381 * .gdbinit (xchartable): Adjust for the change of char table structure.
20382 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
20383
20384 * Makefile.in (obj): Add character.o and chartab.o.
20385 (lisp, shortlisp): Remove utf-8.elc.
20386 (*.o): For many files, change dependency on charset.h to
20387 character.h, and add dependency on character.h.
20388 (character.o, chartab.o): New targets.
20389
20390 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
20391 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
20392 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
20393 of "charset.h".
20394
20395 * dired.c, filelock.c: Include "character.h".
20396
20397 * alloc.c: Include "character.h" instead of "charset.h".
20398 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
20399 (syms_of_alloc): Remove defsubr for Smake_char_table.
20400
20401 * buffer.c: Include "character.h" instead of "charset.h", don't
20402 include "coding.h".
20403 (Fset_buffer_multibyte): Adjust for UTF-8.
20404
20405 * buffer.h: EXFUN Fbuffer_live_p.
20406
20407 * callproc.c: Include "character.h" instead of "charset.h".
20408 (Fcall_process): Big change for the new code-conversion APIs.
20409
20410 * casetab.c: Include "character.h" instead of "charset.h".
20411 (set_canon, set_identity, shuffle): Adjust for the new
20412 map_char_table spec.
20413 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
20414 accessing the char table structure.
20415
20416 * chartab.c: New file that implements char table.
20417
20418 * category.c: Include "character.h".
20419 (copy_category_entry): New function.
20420 (copy_category_table): Call map_char_table and copy_category_entry.
20421 (Fmake_category_table): Initialize all top-level slots.
20422 (char_category_set): New function.
20423 (modify_lower_category_set): Delete.
20424 (Fmodify_category_entry): Call char_table_ref_and_range.
20425
20426 * category.h (CATEGORY_SET): Just call char_category_set.
20427
20428 * ccl.c: Include "character.h".
20429 (Qccl, Qcclp): New variables.
20430 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
20431 it's less than 256.
20432 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
20433 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
20434 and DST type.
20435 (ccl_driver): Change types of argument, adjust code accordingly.
20436 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
20437 ccl_driver.
20438 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
20439
20440 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
20441 New members src_multibyte, dst_multibyte, consumed, and produced.
20442 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
20443 (CODING_SPEC_CCL_PROGRAM): New macro.
20444 (ccl_driver): Update prototype.
20445 (Qccl, Qcclp, Fccl_program_p): Extern them.
20446 (CHECK_CCL_PROGRAM): New macro.
20447
20448 * character.c, character.h, chartab.c: New files.
20449
20450 * charset.c: Mostly re-written. Move character and multibyte sequence
20451 handling codes to character.c.
20452
20453 * charset.h: Mostly re-written. Move character and multibyte sequence
20454 handling codes to character.h.
20455
20456 * coding.c, coding.h: Mostly re-written.
20457
20458 * composite.c: Include "character.h" instead of "charset.h".
20459 (CHAR_WIDTH): Move to character.h.
20460 (HASH_KEY, HASH_VALUE): Delete.
20461
20462 * composite.h (enum composition_method): Change order of enumeration
20463 symbols.
20464
20465 * data.c: Include "character.h" instead of "charset.h".
20466 (Faref): Call CHAR_TABLE_REF for a char table.
20467 (Faset): Call CHAR_TABLE_SET for a char table.
20468
20469 * dispextern.h (free_realized_face, check_face_attribytes)
20470 (generate_ascii_font): Extern them.
20471 (free_realized_multibyte_face): Delete extern.
20472
20473 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
20474 table structure.
20475
20476 * editfns.c: Include "character.h" instead of "charset.h".
20477 (Fchar_to_string): Always call CHAR_STRING.
20478
20479 * emacs.c (main): Call init_charset_once, init_charset,
20480 syms_of_chartab, and syms_of_character.
20481
20482 * fileio.c: Include "character.h" instead of "charset.h".
20483 (Finsert_file_contents): Big change for the new code-conversion API.
20484 (choose_write_coding_system, Fwrite_region): Likewise.
20485 (build_annotations_2): Delete.
20486 (e_write): Big change for the new code-conversion API.
20487
20488 * fns.c: Include "character.h" instead of "charset.h".
20489 (copy_sub_char_table): Move to chartab.c.
20490 (Fcopy_sequence): Call copy_char_table for a char table.
20491 (concat): Delete codes calling count_multibyte.
20492 (string_char_to_byte, string_byte_to_char): Adjust for the new
20493 multibyte form.
20494 (internal_equal): Adjust for the change of char table structure.
20495 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
20496 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
20497 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
20498 (char_table_translate, optimize_sub_char_table)
20499 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
20500 chartab.c.
20501 (char_table_ref_and_index): Delete.
20502 (HASH_KEY, HASH_VALUE): Move to lisp.h.
20503 (Fmd5): Call preferred_coding_system instead of accessing
20504 Vcoding_category_list. Adjust for the new code-conversion API.
20505 (syms_of_fns): Move defsubr for char table related functions to
20506 chartab.c.
20507
20508 * fontset.c: Mostly re-written.
20509
20510 * fontset.h (struct font_info): Change type of the member encoding_type.
20511 (enum FONT_SPEC_INDEX): New enum.
20512 (fontset_font_pattern, fs_load_font): Update prototype.
20513 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
20514
20515 * indent.c: Include "character.h" instead of "charset.h".
20516 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
20517
20518 * insdel.c: Include "character.h" instead of "charset.h".
20519 (copy_text): Don't refer to Vnonascii_translation_table.
20520 (insert_from_gap): New function.
20521
20522 * keyboard.c: Include "character.h" instead of "charset.h".
20523 (command_loop_1): Never call direct_output_forward_char before
20524 a non-ASCII character.
20525 (read_char): If Vkeyboard_translate_table is a char table, always
20526 translate a character.
20527
20528 * keymap.c: Include "character.h".
20529 (store_in_keymap): Handle the case that IDX is a cons.
20530 (Fdefine_key): Handle the case that KEY is a cons and the car part
20531 is also a cons (range).
20532 (push_key_description): Adjust for the new character code.
20533 (describe_vector): Call describe_char_table for a char table.
20534 (describe_char_table): New function.
20535
20536 * keymap.h (describe_char_table): Extern it.
20537
20538 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
20539 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
20540 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
20541 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
20542 Delete.
20543 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
20544 structure.
20545 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
20546 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
20547 (CHARTAB_SIZE_BITS_3): New macros.
20548 (chartab_size): Extern it.
20549 (struct Lisp_Char_Table): Re-design.
20550 (struct Lisp_Sub_Char_Table): New structure.
20551 (HASH_KEY, HASH_VALUE): Move from fns.c.
20552 (CHARACTERBITS): Define as 22.
20553 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
20554 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
20555 (GC_SUB_CHAR_TABLE_P): New macro.
20556 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
20557 (code_convert_string_norecord): Deleted extern.
20558 (init_character_once, syms_of_character, init_charset)
20559 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
20560
20561 * lread.c: Include "character.h".
20562 (read_multibyte): New arg NBYTES.
20563 (read_escape): Change the meaning of returned *BYTEREP.
20564 (to_multibyte): Delete.
20565 (read1): Adjust the handling of char table and string.
20566
20567 * print.c: Include "character.h" instead of "charset.h".
20568 (print_string): Convert 8-bit raw bytes to octal form by
20569 string_escape_byte8.
20570 (print_object): Adjust for the new multibyte form. Print 8-bit
20571 raw bytes always in octal form. Handle sub char table correctly.
20572
20573 * process.c: Include "character.h" instead of "charset.h".
20574 (read_process_output, send_process): Adjust for the new
20575 code-conversion API.
20576
20577 * puresize.h (BASE_PURESIZE): Increase.
20578
20579 * regex.c: Include "character.h" instead of "charset.h".
20580 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
20581 (regex_compile): Accept a range whose starting and ending
20582 character have different leading bytes.
20583 (analyse_first): Adjust for the above change.
20584
20585 * search.c: Include "character.h" instead of "charset.h".
20586 (search_buffer, boyer_moore): Adjust for the new multibyte form.
20587 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
20588
20589 * syntax.c: Include "character.h" instead of "charset.h".
20590 (syntax_parent_lookup): Delete.
20591 (Fmodify_syntax_entry): Accept a cons as CHAR.
20592 (skip_chars): Adjust for the new multibyte form.
20593 (init_syntax_once): Call char_table_set_range instead of directly
20594 accessing the structure of a char table.
20595
20596 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
20597 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
20598 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
20599 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
20600
20601 * term.c: Include "buffer.h" and "character.h".
20602 (encode_terminal_code, write_glyphs): Adjust for the new
20603 code-conversion API.
20604 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
20605
20606 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
20607
20608 * xdisp.c: Include "character.h".
20609 (get_next_display_element): Adjust for the new multibyte form.
20610 (disp_char_vector): Adjust for the new char table structure.
20611 (decode_mode_spec_coding): Adjust for the new structure of
20612 coding system.
20613 (decode_mode_spec): Adjust for the new code-conversion API.
20614
20615 * xfaces.c: Include "character.h" instead of "charset.h".
20616 (load_face_font): Adjust for the change of choose_face_font and
20617 FS_LOAD_FONT.
20618 (generate_ascii_font): New function.
20619 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
20620 (set_font_frame_param): Adjust for the change of choose_face_font.
20621 (free_realized_face): Make it public.
20622 (free_realized_faces_for_fontset): Rename from
20623 free_realized_multibyte_face. Free also faces realized for ASCII.
20624 (choose_face_font): Change arguments. Adjust for the change of
20625 fontset_font_pattern and FS_LOAD_FONT.
20626
20627 * xfns.c: Include "character.h".
20628 (x_encode_text): Adjust for the new code-conversion API.
20629
20630 * xselect.c: Don't include "charset.h".
20631 (selection_data_to_lisp_data): Adjust for the new code conversion API.
20632
20633 * xterm.c: Include "character.h".
20634 (x_encode_char): New argument CHARSET. Change caller.
20635 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
20636 Call ENCODE_CHAR instead of SPLIT_CHAR.
20637 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
20638 CHAR_WIDTH instead of CHARSET_WIDTH.
20639 (XTread_socket): Adjust for the new code-conversion API.
20640 (x_new_font): Adjust for the change of FS_LOAD_FONT.
20641 (x_load_font): Adjust for the change of struct font.
20642
206432008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
20644
20645 * xfaces.c (face_at_buffer_position): Remove unused vars.
20646
206472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20648
20649 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
20650 Fix overflow checking.
20651
206522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20653
20654 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
20655 Cancel previous change.
20656
206572008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
20658
20659 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
20660 ccl->eight_bit_control. Fix check for buffer overflow.
20661 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
20662 (ccl_driver): Initialize extra_bytes to 0.
20663
206642008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
20665
20666 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
20667 return it ORed with ctrl_modifier.
20668
206692008-01-29 Miles Bader <miles@gnu.org>
20670
20671 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
20672
206732008-01-28 Jason Rumney <jasonr@gnu.org>
20674
20675 * w32.c (stat): Don't double check for networked drive.
20676
206772008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
20678
20679 * window.c (run_window_configuration_change_hook): New function.
20680 Code extracted from set_window_buffer. Set the selected frame.
20681 (set_window_buffer): Use it.
20682 * window.h (run_window_configuration_change_hook): Declare.
20683 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
20684
20685 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
20686
206872008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
20688
20689 * Makefile.in: Remove references to unused macros.
20690
206912008-01-26 Eli Zaretskii <eliz@gnu.org>
20692
20693 * w32.c (g_b_init_get_sid_sub_authority)
20694 (g_b_init_get_sid_sub_authority_count): New static variables.
20695 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
20696 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
20697 (init_user_info): Use them to retrieve uid and gid.
20698 Use 500/513, the Windows defaults, as Administrator's uid/gid.
20699 (fstat): Use pw_uid and pw_gid from the_passwd structure for
20700 st_uid and st_gid of the file.
20701
207022008-01-26 Jason Rumney <jasonr@gnu.org>
20703
20704 * w32.c (logon_network_drive): New function.
20705 (stat): Use it.
20706
207072008-01-26 Chong Yidong <cyd@stupidchicken.com>
20708
20709 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
20710 invisible text covered with an ellipsis.
20711
207122008-01-25 Richard Stallman <rms@gnu.org>
20713
20714 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
20715 jump back to beginning. Move some other initializations after that.
20716 (Qwindow_text_change_functions, Vwindow_text_change_functions):
20717 New variables.
20718 (syms_of_xdisp): Init them.
20719
20720 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
20721
20722 * buffer.c (reset_buffer_local_variables):
20723 Implement `permanent-local-hook'.
20724 (Qpermanent_local_hook): New variable.
20725 (syms_of_buffer): Init and staticpro it.
20726
207272008-01-25 Michael Albinus <michael.albinus@gmx.de>
20728
20729 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
20730
207312008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
20732
20733 * fns.c (Fclrhash): Return TABLE.
20734
207352008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20736
20737 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
20738 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
20739 is set even without positional changes.
20740 (x_scroll_bar_clear): Set bar->redraw_needed_p.
20741
20742 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
20743
207442008-01-23 Jason Rumney <jasonr@gnu.org>
20745
20746 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
20747
20748 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
20749 the unicode range available in MULE by locale-coding-system.
20750 Improve dbcs lead byte detection. Set event timestamp and modifiers
20751 earlier.
20752
207532008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20754
20755 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
20756 [MAC_OSX] (init_mac_osx_environment): Initialize it.
20757 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
20758 when used on child processes.
20759
207602008-01-21 Michael Albinus <michael.albinus@gmx.de>
20761
20762 * dbusbind.c (Fdbus_method_return_internal): Rename from
20763 Fdbus_method_return.
20764 (Fdbus_unregister_object): Move to dbus.el.
20765 (Fdbus_call_method, Fdbus_method_return_internal)
20766 (Fdbus_send_signal): Improve debug messages.
20767
207682008-01-20 Martin Rudalics <rudalics@gmx.at>
20769
20770 * undo.c (undo_inhibit_record_point): New variable.
20771 (syms_of_undo): Initialize it.
20772 (record_point): Don't record point when undo_inhibit_record_point
20773 is set.
20774
207752008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
20776
20777 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
20778
20779 * xdisp.c (Qauto_hscroll_mode): New var.
20780 (syms_of_xdisp): Initialize it.
20781 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
20782 window's buffer.
20783 (hscroll_windows): Don't check automatic_hscrolling_p here.
20784
20785 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
20786 vscroll if we're setting window-buffer to the value it already has.
20787
207882008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
20789
20790 * m/intel386.h: Remove references to XENIX.
20791
207922008-01-17 Andreas Schwab <schwab@suse.de>
20793
20794 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
20795 instead of HAVE_X86_64_LIB64_DIR.
20796 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
20797
207982008-01-17 Glenn Morris <rgm@gnu.org>
20799
20800 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
20801 to HAVE_X86_64_LIB64_DIR.
20802
208032008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
20804
20805 * s/irix3-3.h:
20806 * s/irix4-0.h:
20807 * s/386-ix.h:
20808 * s/domain.h:
20809 * s/hpux9-x11r4.h:
20810 * s/hpux9shxr4.h: Remove files for systems no longer supported.
20811
20812 * sysdep.c: Remove code containing references to symbols defined
20813 by unsupported systems.
20814
208152008-01-16 Glenn Morris <rgm@gnu.org>
20816
20817 * coding.c (select-safe-coding-system-function): Doc fix.
20818
208192008-01-15 Glenn Morris <rgm@gnu.org>
20820
20821 * config.in: Revert 2008-01-13 change: this is a generated file.
20822
208232008-01-13 Tom Tromey <tromey@redhat.com>
20824
20825 * lisp.h: Fix typo.
20826
208272008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
20828
20829 * m/sequent-ptx.h:
20830 * m/sequent.h:
20831 * s/ptx.h:
20832 * s/ptx4-2.h:
20833 * s/ptx4.h: Remove files for systems no longer supported.
20834
20835 * callproc.c (Fcall_process): Fix previous change.
20836
208372008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
20838
20839 * unexsunos4.c: Remove file, system not supported anymore.
20840
20841 * m/mips.h:
20842 * m/intel386.h:
20843 * callproc.c:
20844 * config.in:
20845 * ecrt0.c:
20846 * emacs.c:
20847 * fileio.c:
20848 * frame.c:
20849 * getpagesize.h:
20850 * keyboard.c:
20851 * lread.c:
20852 * process.c:
20853 * puresize.h:
20854 * sysdep.c:
20855 * systty.h:
20856 * syswait.h:
20857 * unexec.c:
20858 * xdisp.c:
20859 * alloc.c: Remove code containing references to symbols defined by
20860 unsupported systems.
20861
208622008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
20863
20864 * coding.c (detect_coding_mask): Fix previous change.
20865
208662008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
20867
20868 * coding.c (detect_coding_iso2022): New arg
20869 latin_extra_code_state. Allow Latin extra codes only
20870 when *latin_extra_code_state is nonzero.
20871 (detect_coding_mask): If there is a NULL byte, detect the encoding
20872 as UTF-16 or binary. If Latin extra codes exist, detect the
20873 encoding as ISO-2022 only when there's no other proper encoding is
20874 found.
20875
208762008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20877
20878 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
20879 #ifdef MAC_OS.
20880
208812008-01-08 Richard Stallman <rms@gnu.org>
20882
20883 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
20884
208852008-01-06 Nick Roberts <nickrob@snap.net.nz>
20886
20887 * keyboard.c (parse_menu_item): Don't enclose key bindings on
20888 menu bar in parentheses.
20889
208902008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
20891
20892 * m/7300.h:
20893 * m/acorn.h:
20894 * m/alliant-2800.h:
20895 * m/alliant.h:
20896 * m/alliant1.h:
20897 * m/alliant4.h:
20898 * m/altos.h:
20899 * m/amdahl.h:
20900 * m/apollo.h:
20901 * m/att3b.h:
20902 * m/aviion-intel.h:
20903 * m/aviion.h:
20904 * m/celerity.h:
20905 * m/clipper.h:
20906 * m/cnvrgnt.h:
20907 * m/convex.h:
20908 * m/cydra5.h:
20909 * m/delta88k.h:
20910 * m/dpx2.h:
20911 * m/dual.h:
20912 * m/elxsi.h:
20913 * m/f301.h:
20914 * m/gould-np1.h:
20915 * m/gould.h:
20916 * m/i860.h:
20917 * m/ibmps2-aix.h:
20918 * m/ibmrt-aix.h:
20919 * m/ibmrt.h:
20920 * m/irist.h:
20921 * m/is386.h:
20922 * m/isi-ov.h:
20923 * m/mega68.h:
20924 * m/mg1.h:
20925 * m/news-r6.h:
20926 * m/news-risc.h:
20927 * m/news.h:
20928 * m/nh3000.h:
20929 * m/nh4000.h:
20930 * m/ns16000.h:
20931 * m/ns32000.h:
20932 * m/nu.h:
20933 * m/orion.h:
20934 * m/orion105.h:
20935 * m/paragon.h:
20936 * m/pfa50.h:
20937 * m/plexus.h:
20938 * m/pyramid.h:
20939 * m/pyrmips.h:
20940 * m/sh3el.h:
20941 * m/sps7.h:
20942 * m/sr2k.h:
20943 * m/stride.h:
20944 * m/sun1.h:
20945 * m/sun2.h:
20946 * m/sun3-68881.h:
20947 * m/sun3-fpa.h:
20948 * m/sun3-soft.h:
20949 * m/sun3.h:
20950 * m/sun386.h:
20951 * m/symmetry.h:
20952 * m/tad68k.h:
20953 * m/tahoe.h:
20954 * m/targon31.h:
20955 * m/tek4300.h:
20956 * m/tekxd88.h:
20957 * m/tower32.h:
20958 * m/tower32v3.h:
20959 * m/ustation.h:
20960 * m/wicat.h:
20961 * m/xps100.h:
20962 * s/cxux.h:
20963 * s/cxux7.h:
20964 * s/dgux.h:
20965 * s/dgux4.h:
20966 * s/dgux5-4-3.h:
20967 * s/dgux5-4r2.h:
20968 * s/esix.h:
20969 * s/esix5r4.h:
20970 * s/hiuxmpp.h:
20971 * s/hiuxwe2.h:
20972 * s/iris3-5.h:
20973 * s/iris3-6.h:
20974 * s/isc2-2.h:
20975 * s/isc3-0.h:
20976 * s/isc4-0.h:
20977 * s/isc4-1.h:
20978 * s/newsos5.h:
20979 * s/newsos6.h:
20980 * s/osf1.h:
20981 * s/osf5-0.h:
20982 * s/riscix1-1.h:
20983 * s/riscix12.h:
20984 * s/sco4.h:
20985 * s/sco5.h:
20986 * s/sunos4-0.h:
20987 * s/sunos4-1.h:
20988 * s/sunos413.h:
20989 * s/sunos4shr.h:
20990 * s/umax.h:
20991 * s/unipl5-2.h:
20992 * s/xenix.h:
20993 * cxux-crt0.s:
20994 * unexapollo.c:
20995 * unexconvex.c:
20996 * unexenix.c:
20997 * unexsni.c: Remove files for systems no longer supported.
20998
20999 * m/intel386.h: Remove references to unsupported systems.
21000
21001 * w32.c (get_emacs_configuration): Remove reference to i860.
21002
21003 * sysdep.c: Remove dead code.
21004
210052008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
21006
21007 * s/rtu.h:
21008 * m/masscomp.h: Remove files. Platform is obsolete.
21009
210102008-01-04 Michael Albinus <michael.albinus@gmx.de>
21011
21012 * dbusbind.c (Fdbus_method_return): New function.
21013 (xd_read_message): Add the serial number to the event.
21014 (Fdbus_register_method): Activate the function.
21015
210162008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
21017
21018 * keyboard.c (read_key_sequence): Fix typo.
21019
210202008-01-03 Michael Albinus <michael.albinus@gmx.de>
21021
21022 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
21023 (xd_signature, xd_append_arg): Handle element type detection for
21024 empty arrays.
21025 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
21026 SDATA () calls; this must be solved more general.
21027 (Fdbus_register_signal): Use SBYTES instead of strlen.
21028
210292008-01-03 Magnus Henoch <magnus@zemdatav>
21030
21031 * dbusbind.c (xd_append_arg): Use unsigned char instead of
21032 unsigned int for byte values (necessary for big-endian platform).
21033 (Fdbus_call_method): Handle the case of no returned arguments.
21034
210352007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
21036
21037 * dbusbind.c (xd_read_message): Use non-static input_event struct.
21038
210392007-12-31 Magnus Henoch <mange@freemail.hu>
21040
21041 * dbusbind.c (xd_signature): Signature of variant is just "v".
21042
210432007-12-30 Michael Albinus <michael.albinus@gmx.de>
21044
21045 * dbusbind.c: Fix several errors and compiler warnings.
21046 Reported by Tom Tromey <tromey@redhat.com>.
21047 (XD_ERROR, XD_DEBUG_MESSAGE)
21048 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
21049 (xd_append_arg): Part for basic D-Bus types rewritten.
21050 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
21051 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
21052 appropriate.
21053 (xd_read_message): Return Qnil. Don't signal an error; it is not
21054 useful during event reading.
21055 (Fdbus_register_signal): Signal an error if the check for
21056 FUNCTIONP fails.
21057 (Fdbus_register_method): New function. The implementation is not
21058 complete, the call of the function signals an error therefore.
21059 (Fdbus_unregister_object): New function, renamed from
21060 Fdbus_unregister_signal. The initial check signals an error, if
21061 the object is not well formed.
21062
210632007-12-30 Richard Stallman <rms@gnu.org>
21064
21065 * textprop.c (get_char_property_and_overlay):
21066 Signal error if POSITION is out of range in a buffer.
21067
210682007-12-29 Martin Rudalics <rudalics@gmx.at>
21069
21070 * w32fns.c (Fx_create_frame): Make copy of frame parameters
21071 because the original parameters are in pure storage now.
21072
210732007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21074
21075 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
21076
210772007-12-22 Eli Zaretskii <eliz@gnu.org>
21078
21079 * callint.c (syms_of_callint) <command-history>: Add reference to
21080 history-length in the doc string.
21081
210822007-12-17 Jason Rumney <jasonr@gnu.org>
21083
21084 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
21085 before passing as wParam.
21086
210872007-12-22 Michael Albinus <michael.albinus@gmx.de>
21088
21089 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
21090 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
21091 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
21092 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
21093 as number.
21094 (Fdbus_call_method): Fix docstring.
21095
210962007-12-21 Michael Albinus <michael.albinus@gmx.de>
21097
21098 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
21099 New macros.
21100 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
21101 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
21102 Simplify.
21103 (xd_signature): New function.
21104 (xd_append_arg): Compute also signatures. Major rewrite.
21105 (xd_retrieve_arg): Make debug messages friendly.
21106 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
21107 Check for signatures of arguments.
21108
211092007-12-19 Michael Albinus <michael.albinus@gmx.de>
21110
21111 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
21112 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
21113 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
21114 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
21115 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
21116 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
21117 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
21118 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
21119 (xd_retrieve_value): Remove. Functionality included in ...
21120 (xd_append_arg): New function.
21121 (Fdbus_call_method, Fdbus_send_signal): Apply it.
21122
211232007-12-16 Michael Albinus <michael.albinus@gmx.de>
21124
21125 * dbusbind.c (top): Include <stdio.h>.
21126 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
21127 dbus_message_new_method_call and dbus_message_new_signal.
21128 (Fdbus_register_signal): Rename unique_name to uname.
21129 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
21130 non-existing unique name. Fix typos in matching rule. Return an
21131 object which is useful in Fdbus_unregister_signal.
21132 (Fdbus_unregister_signal): Reimplementation, in order to remove
21133 only the corresponding entry.
21134 (Vdbus_registered_functions_table): Change the order of entries.
21135 Apply these changes in xd_read_message and Fdbus_register_signal.
21136
211372007-12-16 Andreas Schwab <schwab@suse.de>
21138
21139 * fileio.c (Finsert_file_contents): Fix overflow check to not
21140 depend on undefined integer overflow.
21141
211422007-12-14 Jason Rumney <jasonr@gnu.org>
21143
21144 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
21145 for characters above 127.
21146
211472007-12-13 Jason Rumney <jasonr@gnu.org>
21148
21149 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
21150 before dereferencing array.
21151 (lookup_vk_code): Remove zero comparison.
21152
211532007-12-14 Michael Albinus <michael.albinus@gmx.de>
21154
21155 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
21156 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
21157 Use `unsigned int' instead of `uint'.
21158 (xd_read_message, Fdbus_register_signal): Split expressions into
21159 multiple lines before operators "&&" and "||", according to the
21160 GNU Coding Standards.
21161
211622007-12-14 Eli Zaretskii <eliz@gnu.org>
21163
21164 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
21165
211662007-12-12 Juri Linkov <juri@jurta.org>
21167
21168 * buffer.c (Frename_buffer): In interactive spec replace
21169 `read-buffer' with `read-string' that uses `buffer-name-history'
21170 as history, and the current buffer's name as default.
21171
211722007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
21173
21174 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
21175 manipulating the backtrace manually.
21176 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
21177 (struct backtrace, backtrace_list): Remove.
21178 (command_loop_1): Remove dead var `no_direct'.
21179
21180 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
21181 preserve non-built-in buffer-local variables.
21182 (Fkill_all_local_variables): Don't re-create&re-set permanent
21183 buffer-local variables.
21184
211852007-12-09 Juri Linkov <juri@jurta.org>
21186
21187 * buffer.c (Frename_buffer): Change interactive spec from "s" to
21188 Lisp code that uses `read-buffer' with current buffer as default.
21189
211902007-12-08 Michael Albinus <michael.albinus@gmx.de>
21191
21192 * dbusbind.c (xd_read_message): Generate an event for every
21193 registered handler. There might be several handlers registered
21194 for the same signal.
21195 (Fdbus_register_signal): Don't overwrite a registration for the
21196 same signal. Add a new registration if handlers are different.
21197 (Vdbus_registered_functions_table): Rework doc string.
21198
211992007-12-07 Michael Albinus <michael.albinus@gmx.de>
21200
21201 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
21202 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
21203 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
21204 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
21205 Unify argument lists.
21206 (xd_read_message, Fdbus_register_signal): Reorder and extend event
21207 arguments and hash table keys. Use unique name for service.
21208 (Fdbus_unregister_signal): Remove checks.
21209 (Vdbus_registered_functions_table): Fix doc string.
21210
212112007-12-05 Magnus Henoch <mange@freemail.hu>
21212
21213 * process.c (make_process): Initialize pty_flag to 0.
21214
212152007-12-05 Jason Rumney <jasonr@gnu.org>
21216
21217 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
21218 specified XBMs.
21219
212202007-12-05 Richard Stallman <rms@gnu.org>
21221
21222 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
21223
212242007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21225
21226 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
21227 New variable.
21228 (mac_try_close_socket) [MAC_OSX]: New function.
21229 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
21230 Update cfsockets_for_select. Replace invalid CFRunLoop source.
21231
21232 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
21233 Use mac_try_close_socket.
21234
212352007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21236
21237 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
21238 reloc_base.
21239 (copy_dysymtab): Compute relocation base here.
21240 (rebase_reloc_address) [__ppc64__]: New function.
21241 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
21242 changed.
21243
212442007-12-05 Jason Rumney <jasonr@gnu.org>
21245
21246 * w32proc.c (sys_spawnve): Quote args with wildcards.
21247
212482007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21249
21250 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
21251 __objc_* sections.
21252 (unrelocate) [_LP64]: Set relocation base to address of data segment.
21253
212542007-12-05 Michael Albinus <michael.albinus@gmx.de>
21255
21256 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
21257 Move check for Vdbus_registered_functions_table to
21258 xd_read_queued_messages.
21259 (xd_read_queued_messages): Protect xd_read_message calls by
21260 internal_condition_case_1.
21261
212622007-12-04 Michael Albinus <michael.albinus@gmx.de>
21263
21264 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
21265 Qdbus_system_bus and Qdbus_session_bus, respectively.
21266 (Vdbus_intern_symbols): Remove.
21267 (Vdbus_registered_functions_table): New hash table.
21268 (XD_SYMBOL_INTERN_SYMBOL): Remove.
21269 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
21270 Rewrite in order to manage registered functions by hash table
21271 Vdbus_registered_functions_table.
21272
212732007-12-03 Jan Djärv <jan.h.d@swipnet.se>
21274
21275 * xterm.c: Update URL to Window Manager Specification in comment.
21276
212772007-12-02 Michael Albinus <michael.albinus@gmx.de>
21278
21279 * config.in (HAVE_DBUS): Add.
21280
21281 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
21282 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
21283 (obj): Add $(DBUS_OBJ).
21284 (LIBES): Add $(DBUS_LIBS).
21285 (dbusbind.o): New target.
21286
21287 * dbusbind.c: New file.
21288
21289 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
21290
21291 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
21292 (Qdbus_event): New Lisp symbol.
21293 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
21294 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 21295 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
21296
21297 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
21298
212992007-12-01 Richard Stallman <rms@gnu.org>
21300
21301 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
21302
213032007-11-30 Jason Rumney <jasonr@gnu.org>
21304
21305 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
21306 (w32con_reset_terminal_modes): Clear screen buffer.
21307 (w32_face_attributes): Don't use color indexes that are out of range.
21308 Only reverse the default colors.
21309
21310 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
21311 WINDOWSNT.
21312
21313 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
21314
213152007-11-29 Jason Rumney <jasonr@gnu.org>
21316
21317 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
21318 (w32_face_attributes): Use Vtty_defined_color_alist to determine
21319 if the terminal colors are initialized.
21320 (unspecified_fg, unspecified_bg): Remove unused declarations.
21321
213222007-11-29 Andreas Schwab <schwab@suse.de>
21323
21324 * keyboard.c (apply_modifiers): Fix typo.
21325
213262007-11-29 Richard Stallman <rms@gnu.org>
21327
21328 * keymap.c (Fcurrent_local_map): Doc fix.
21329
213302007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
21331
21332 * s/gnu-kfreebsd.h: New file.
21333
213342007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
21335
21336 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
21337 Don't cast redundantly.
21338
21339 * keyboard.c (KEY_TO_CHAR): New macro.
21340 (parse_modifiers, apply_modifiers): Accept integer arguments.
21341 (read_key_sequence): Use them to unify the "shift->unshift" mapping
21342 for chars and symbol keys.
21343 After doing such remapping, apply function-key-map again.
21344
213452007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
21346
21347 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
21348 compiled anymore.
21349
213502007-11-26 Andreas Schwab <schwab@suse.de>
21351
21352 * process.c (list_processes_1): Fix indentation level of the
21353 command column.
21354
213552007-11-23 Andreas Schwab <schwab@suse.de>
21356
21357 * editfns.c (Fformat): Handle %c specially since it requires the
21358 argument to be of type int.
21359
213602007-11-23 Markus Triska <markus.triska@gmx.at>
21361
21362 * emacs.c (main): Call init_editfns before init_process, since
21363 init_process sets Vprocess_connection_type depending on OS release.
21364
213652007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
21366
21367 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
21368 (find_symbol_value): Use do_symval_forwarding.
21369
21370 * data.c (set_internal): Set the value in the `cons-cell' (for
21371 Buffer_Local_values) not only for frame-local variables.
21372
213732007-11-22 Andreas Schwab <schwab@suse.de>
21374
21375 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
21376 values to sprintf.
21377 * keymap.c (Fsingle_key_description): Likewise.
21378 * print.c (print_object): Likewise.
21379
213802007-11-22 Jan Djärv <jan.h.d@swipnet.se>
21381
21382 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
21383 file for image is nil.
21384
213852007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
21386
21387 * term.c: Include stdarg.h.
21388 (fatal): Implement using varargs.
21389 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
21390
213912007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
21392
21393 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
21394 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
21395 Update call to buffer_slot_type_mismatch.
21396 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
21397 (buffer_slot_type_mismatch): Update.
21398 * buffer.c (buffer_local_types): Remove.
21399 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
21400 (defvar_per_buffer): Set the type in the buffer_objfwd.
21401
214022007-11-21 Jason Rumney <jasonr@gnu.org>
21403
21404 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
21405 CreateFileMapping returns NULL on failure.
21406
214072007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
21408
21409 * search.c (Fset_match_data): Remove the `evaporate' feature.
21410 (unwind_set_match_data): Don't use the `evaporate' feature.
21411
214122007-11-21 Jason Rumney <jasonr@gnu.org>
21413
21414 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
21415
21416 * w32console.c (w32con_write_glyphs): Remove unused variables.
21417
214182007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
21419
21420 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
21421
21422 * s/darwin.h (MULTI_KBOARD): Remove.
21423
21424 * macfns.c (x_create_tip_frame, Fx_create_frame)
21425 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
21426
214272007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
21428
21429 * buffer.c (Fbuffer_local_value): Remove redundant test.
21430 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
21431 than in `current-buffer' to match the comment.
21432 Do the swap using swap_in_global_binding.
21433
21434 * data.c (store_symval_forwarding, set_internal):
21435 * eval.c (specbind): Remove dead code.
21436
21437 * coding.c (detect_coding, Fupdate_coding_systems_internal):
21438 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
21439 Since we do not want to see internal Lisp_*fwd objects here.
21440
214412007-11-18 Jan Djärv <jan.h.d@swipnet.se>
21442
21443 * sysdep.c (init_system_name): Use getaddrinfo if available.
21444
21445 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
21446 (x_scroll_bar_note_movement): start, end, with, height in struct
21447 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
21448
214492007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
21450
21451 * puresize.h (BASE_PURESIZE): Increase to 1190000.
21452
214532007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
21454
21455 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
21456 This undoes Richard's change of 14-Oct-2002.
21457
21458 * alloc.c (allocate_other_vector):
21459 * lisp.h (allocate_other_vector): Remove.
21460
21461 * window.c (struct save_window_data): Move non-lisp data to the end
21462 and make it `int' rather than Lisp_Object.
21463 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
21464 Done wrap/unwrap integer values.
21465 (Fset_window_configuration, compare_window_configurations):
21466 Update use of fields to their new types.
21467
21468 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
21469 Turn integer fields into `int'. Merge x_window_low and x_window_high.
21470 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
21471 (SET_SCROLL_BAR_X_WINDOW): Remove.
21472 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
21473 Access the new x_window field directly.
21474 * xterm.c (x_scroll_bar_create): Use a pseudovector.
21475 Don't wrap/unwrap integers into Lisp_Objects.
21476 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
21477 (x_scroll_bar_report_motion):
21478 Don't wrap/unwrap integers into Lisp_Objects.
21479 (x_term_init): Use SDATA.
21480 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
21481 (x_scroll_bar_set_handle, x_scroll_bar_remove)
21482 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
21483 (x_scroll_bar_report_motion, x_scroll_bar_clear):
21484 * xfns.c (x_set_background_color):
21485 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
21486 Access the new x_window field directly.
21487
21488 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
21489 (allocate_pseudovector): Make non-static.
21490
21491 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
21492 (allocate_pseudovector): Declare.
21493 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
21494
214952007-11-15 Andreas Schwab <schwab@suse.de>
21496
21497 * editfns.c (Fformat): Correctly format EMACS_INT values.
21498 Also take precision into account when formatting an integer.
21499
21500 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
21501
215022007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
21503
21504 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
21505 (syms_of_keyboard): Defsubr it.
21506
21507 * data.c (swap_in_global_binding): Fix longstanding bug where
21508 store_symval_forwarding was not called with the right second argument,
21509 thus causing objfwd-ing from being dropped.
21510
215112007-11-14 Juanma Barranquero <lekktu@gmail.com>
21512
21513 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
21514 (Fx_display_pixel_height, Fx_display_planes)
21515 (Fx_display_color_cells, Fx_server_max_request_size)
21516 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
21517 (Fx_display_visual_class, Fx_display_save_under):
21518 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
21519 (Fx_display_pixel_height, Fx_display_planes)
21520 (Fx_display_color_cells, Fx_server_max_request_size)
21521 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
21522 (Fx_display_mm_height, Fx_display_mm_width)
21523 (Fx_display_backing_store, Fx_display_visual_class)
21524 (Fw32_select_font, Fx_display_save_under):
21525 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
21526 (Fx_display_pixel_height, Fx_display_planes)
21527 (Fx_display_color_cells, Fx_server_max_request_size)
21528 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
21529 (Fx_display_save_under): Fix typos in docstrings.
21530
215312007-11-14 Juanma Barranquero <lekktu@gmail.com>
21532
21533 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
21534 corresponding to deleted entries; they are an implementation detail.
21535 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
21536 Remove variables.
21537 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
21538 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
21539 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
21540 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
21541 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
21542 (Fw32_define_rgb_color, Fw32_load_color_file)
21543 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
21544 Fix typos in docstrings.
21545 (Fx_server_version): Reflow docstring.
21546 (Fw32_shell_execute): Doc fixes.
21547
215482007-11-13 Juanma Barranquero <lekktu@gmail.com>
21549
21550 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
21551 if w32_parse_hot_key returned nil.
21552
215532007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
21554
21555 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
21556
215572007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 21558
aac0c6e3
MR
21559 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
21560
21561 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
21562
21563 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
21564 Remove W32_SCROLL_BAR_CLICK_EVENT.
21565
21566 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
21567 Add MULTIMEDIA_KEY_EVENT.
21568
21569 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
21570 (lispy_multimedia_keys) [WINDOWSNT]: New array.
21571 (make_lispy_event) [WINDOWSNT]: Use it to translate
21572 MULTIMEDIA_KEY_EVENT.
21573
21574 * w32term.h (WM_APPCOMMAND): Define if not already.
21575 (GET_APPCOMMAND_LPARAM): Likewise.
21576
21577 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
21578 WM_APPCOMMAND.
21579
21580 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
21581 (syms_of_w32fns): Export and initialize it.
21582 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
21583
215842007-11-09 Chong Yidong <cyd@stupidchicken.com>
21585
21586 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
21587 twice.
21588
21589 * xdisp.c (handle_face_prop): Fix last change.
21590
215912007-11-09 Richard Stallman <rms@gnu.org>
21592
21593 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
21594 not just for after-strings and before-strings.
21595 Call face_for_overlay_string and pass the overlay to it.
21596 (handle_display_prop): Determine whether property came from an overlay.
21597 Pass OVERLAY arg to handle_single_display_spec.
21598 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
21599 (load_overlay_strings): Fill in it->string_overlays.
21600 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
21601
21602 * xfaces.c (face_for_overlay_string): Function renamed from
21603 face_at_buffer_position_no_overlays, and add arg OVERLAY.
21604
21605 * dispextern.h (struct it): New elt string_overlays.
21606 New elt from_overlay, also in stack.
21607 Rearrange a few elements.
21608 (face_for_overlay_string): Decl renamed from
21609 face_at_buffer_position_no_overlays, and add argument.
21610
216112007-11-09 Richard Stallman <rms@gnu.org>
21612
21613 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
21614 to get the base face for an overlay string.
21615
21616 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
21617
21618 * xfaces.c (face_at_buffer_position_no_overlays): New function.
21619
21620 * xdisp.c (handle_stop): Move some code out of loop.
21621
216222007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21623
21624 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
21625 Fix conversion from Lisp object to ATSUFontID.
21626
216272007-11-09 Jason Rumney <jasonr@gnu.org>
21628
21629 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
21630
216312007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21632
21633 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
21634 Don't assume regions are aligned to page boundary.
21635 (print_load_command_name): Add LC_UUID if defined.
21636
216372007-11-09 Richard Stallman <rms@gnu.org>
21638
21639 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
21640
216412007-11-07 Jason Rumney <jasonr@gnu.org>
21642
21643 * s/windows95.h: Remove.
21644
216452007-11-06 Jan Djärv <jan.h.d@swipnet.se>
21646
21647 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
21648 abort with a message on unhandled store_type values.
21649
216502007-11-01 Jan Djärv <jan.h.d@swipnet.se>
21651
21652 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
21653 Remove HAVE_X11R5 and HAVE_X11R4.
21654
216552007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
21656
21657 * Makefile.in: Remove references to sunfns.c and sunfns.o.
21658
216592007-11-01 Johan Bockgård <bojohan@gnu.org>
21660
21661 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
21662 Don't set s->stippled_p here, since it has already been set by
21663 x_set_glyph_string_gc from x_draw_glyph_string.
21664
216652007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
21666
21667 * sunfns.c: Remove file.
21668
21669 * m/sun386.h:
21670 * m/sun2.h:
21671 * m/sparc.h: Remove Sun windows code.
21672
216732007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
21674
21675 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
21676 (init_keyboard): Set current_kboard's window-system to nil.
21677 (tty_read_avail_input): Typo.
21678 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
21679
216802007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
21681
21682 * s/usg5-4.h:
21683 * s/usg5-3.h:
21684 * s/ptx.h:
21685 * m/is386.h:
21686 * m/ibmps2-aix.h:
21687 * Makefile.in: Remove all mentions of X10.
21688
21689 * dispnew.c (syms_of_display): Don't mention version 10.
21690
216912007-10-28 Juanma Barranquero <lekktu@gmail.com>
21692
21693 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
21694 ($(BLD)/abbrev.$(O)): Remove.
21695
216962007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
21697
21698 Rewrite abbrev.c in Elisp.
21699 * image.c (Qcount): Don't declare as extern.
21700 (syms_of_image): Initialize and staticpro `Qcount'.
21701 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
21702 * emacs.c (main): Don't call syms_of_abbrev.
21703 * Makefile.in (obj): Remove abbrev.o.
21704 (abbrev.o): Remove.
21705 * abbrev.c: Remove.
21706
217072007-10-26 Martin Rudalics <rudalics@gmx.at>
21708
21709 * window.c (window_min_size_2): Don't count header-line.
21710
217112007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
21712
21713 * frame.h (struct frame): Move all bit fields after the first bit
21714 field to take advantage of the available space. Group all the
21715 chars together to reduce wasted space due to padding.
21716
217172007-10-26 Juanma Barranquero <lekktu@gmail.com>
21718
21719 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
21720
21721 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
21722 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
21723 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
21724 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
21725 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
21726 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
21727 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
21728 (last_marked, mark_object_loop_halt): Make static.
21729
21730 * frame.c (syms_of_frame) <delete-frame-functions>:
21731 Fix typo in docstring.
21732
217332007-10-25 Juanma Barranquero <lekktu@gmail.com>
21734
21735 * w32.c (init_environment): Fix tiny memory leak.
21736 (w32_get_resource): Remove unused variable `ok'.
21737
217382007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
21739
21740 Make `window-system' into a keyboard-local variable (rather than
21741 frame-local as done originally by multi-tty).
21742
21743 * keyboard.h (struct kboard): Add Vwindow_system.
21744 * keyboard.c (init_kboard): Set a default for Vwindow_system.
21745 (mark_kboards): Mark Vwindow_system.
21746
21747 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
21748 (init_display): Don't set the obsolete `window-system' frame-param.
21749
21750 * xterm.c (x_term_init):
21751 * w32term.c (w32_create_terminal):
21752 * term.c (init_tty): Set Vwindow_system.
21753 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
21754 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
21755
21756 * xfns.c (Fx_create_frame, x_create_tip_frame):
21757 * w32fns.c (Fx_create_frame, x_create_tip_frame):
21758 * macfns.c (Fx_create_frame):
21759 Don't set the obsolete `window-system' frame-param.
21760
21761 * frame.h (Qwindow_system): Remove.
21762 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
21763 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
21764
217652007-10-24 Richard Stallman <rms@gnu.org>
21766
21767 * frame.c (x_figure_window_size): For fullscreen case,
21768 set USPosition | PPosition without clobbering rest of window_prompting.
21769
21770 * keyboard.c (Fcurrent_idle_time): Doc fix.
21771
21772 * print.c (Fwith_output_to_temp_buffer): Doc fix.
21773
217742007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
21775
21776 * process.c (unwind_request_sigio): Only define if __ultrix__.
21777
21778 * callproc.c (child_setup): Remove spurious *.
21779
21780 * lisp.h (Fget_text_property): Declare.
21781 (have_menus_p): Declare it here rather than in sys-dep header files.
21782 * macterm.h (have_menus_p):
21783 * msdos.h (have_menus_p):
21784 * xterm.h (have_menus_p): Remove.
21785
21786 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
21787 (Fmake_variable_frame_local): Just check the variable's const-ness
21788 rather than checking nil or t.
21789
217902007-10-22 Jason Rumney <jasonr@gnu.org>
21791
21792 * w32fns.c: Include math.h.
21793 (w32_abort): Declaration moved to nt/config.nt.
21794
21795 * s/ms-w32.h (HAVE_STDLIB_H): Define.
21796 (abort): Redefinition moved to nt/config.nt.
21797
21798 * m/windowsnt.h: Remove.
21799
218002007-10-22 Juanma Barranquero <lekktu@gmail.com>
21801
21802 * emacs.c (Fdump_emacs): Fix typo in message.
21803 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
21804 <installation-directory>: Reflow docstring.
21805
218062007-10-22 Juri Linkov <juri@jurta.org>
21807
21808 * minibuf.c: Allow minibuffer default to be a list of default values.
21809 With empty input use the first element of this list as returned default.
21810 (string_to_object)
21811 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
21812 (read_minibuf): If defalt is cons, set histstring to its car.
21813 (Fread_string): If default_value is cons, set val to its car.
21814 (Fread_buffer): If def is cons, use its car.
21815 (Fcompleting_read): If defalt is cons, set val to its car.
21816
218172007-10-21 Michael Albinus <michael.albinus@gmx.de>
21818
21819 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
21820
218212007-10-20 Juanma Barranquero <lekktu@gmail.com>
21822
21823 * doc.c (Fdocumentation): Check for advice in all cases.
21824
218252007-10-19 Chong Yidong <cyd@stupidchicken.com>
21826
21827 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
21828
218292007-10-19 Richard Stallman <rms@gnu.org>
21830
21831 * doc.c (Fdocumentation): Check for and handle an advised function.
21832
218332007-10-19 Juanma Barranquero <lekktu@gmail.com>
21834
21835 * process.c (Fset_process_filter): Doc fix.
21836
218372007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
21838
21839 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
21840 which caused key-translation-map to applied repeatedly (thus breaking
21841 double-mode).
21842
218432007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21844
21845 * xselect.c (x_own_selection, x_handle_selection_clear)
21846 (x_clear_frame_selections):
21847 * w32menu.c (list_of_panes, list_of_items):
21848 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
21849 * textprop.c (validate_plist, interval_has_all_properties)
21850 (interval_has_some_properties, interval_has_some_properties_list)
21851 (add_properties, text_property_list):
21852 * process.c (Fget_buffer_process, list_processes_1, status_notify):
21853 * minibuf.c (Fassoc_string):
21854 * macselect.c (x_own_selection, x_clear_frame_selections)
21855 (Fx_disown_selection_internal):
21856 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
21857 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
21858
218592007-10-17 Chong Yidong <cyd@stupidchicken.com>
21860
21861 * process.c: Link to libs for calling res_init() if available.
21862 (Fmake_network_process): Call res_init() before getaddrinfo or
21863 gethostbyname, if possible.
21864
218652007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21866
21867 * lread.c (read1): Set pvectype for char_tables.
21868
21869 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
21870 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
21871 Add type checks.
21872 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
21873
21874 * alloc.c (free_misc): Use XMISCTYPE.
21875 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
21876
218772007-10-17 Glenn Morris <rgm@gnu.org>
21878
21879 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
21880 (syms_of_minibuf): Add Qcompletion_ignore_case.
21881 * dired.c (Qcompletion_ignore_case): Change to external.
21882 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
21883 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
21884 (Fread_file_name): Use it rather than intern'ing.
21885
21886 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
21887 (Fread_coding_system): Ignore case of user input.
21888
218892007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21890
21891 * xdisp.c (handle_display_prop): Ignore display specs after
21892 replacing one when string text is being replaced.
21893 (handle_single_display_spec): Pretend as if characters with display
21894 property haven't been consumed only when buffer text is being replaced.
21895
218962007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
21897
21898 * xfns.c (Fx_create_frame, Fx_display_list):
21899 * window.c (window_fixed_size_p, enlarge_window)
21900 (shrink_window_lowest_first):
21901 * macterm.c (init_font_name_table):
21902 * macfns.c (Fx_create_frame, Fx_display_list):
21903 * lread.c (close_load_descs):
21904 * keyboard.c (read_char_x_menu_prompt):
21905 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
21906 * coding.c (code_convert_region_unwind): Test the type of an object
21907 rather than just !NILP before extracting data from it.
21908
21909 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
21910
21911 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
21912 (XMISCANY): New macro.
21913 (XMISCTYPE): Use it.
21914 (struct Lisp_Misc_Any): New type.
21915 (union Lisp_Misc): Use it.
21916 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
21917 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
21918 (find_symbol_value, set_internal, default_value, Fset_default)
21919 (Fmake_variable_buffer_local, Fmake_local_variable)
21920 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
21921 (Flocal_variable_if_set_p, Fvariable_binding_locus):
21922 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
21923 * alloc.c (allocate_buffer): Set the size and tag.
21924 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
21925 Use XMISCANY.
21926 (die): Follow the GNU convention for error messages.
21927 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
21928 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
21929 tag any more.
21930 (set_buffer_internal_1):
21931 * frame.c (store_frame_param):
21932 * eval.c (specbind):
21933 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
21934
21935 * doc.c (Fsnarf_documentation): Simplify.
21936
219372007-10-14 Juanma Barranquero <lekktu@gmail.com>
21938
21939 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
21940 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
21941
219422007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
21943
21944 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
21945
219462007-10-14 Juanma Barranquero <lekktu@gmail.com>
21947
21948 * eval.c (do_autoload): Don't save autoloads.
21949
21950 * data.c (Ffset): Save autoload of the function being set.
21951
219522007-10-07 John Paul Wallington <jpw@pobox.com>
21953
21954 * xfns.c (x_create_tip_frame): Set the `display-type' frame
21955 parameter before setting up faces.
21956
219572007-10-13 Eli Zaretskii <eliz@gnu.org>
21958
21959 * ccl.c (Fregister_code_conversion_map):
21960 * keyboard.c (append_tool_bar_item): Reformat last change.
21961
21962 * lisp.h (eabs): Rename from `abs'. All callers changed.
21963
219642007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
21965
21966 * buffer.c (add_overlay_mod_hooklist):
21967 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
21968 * fontset.c (make_fontset):
21969 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
21970 (append_tool_bar_item):
21971 * macmenu.c (grow_menu_items):
21972 * w32menu.c (grow_menu_items):
21973 * xmenu.c (grow_menu_items): Use larger_vector.
21974
219752007-10-13 Eli Zaretskii <eliz@gnu.org>
21976
21977 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
21978 selected frame'' on MSDOS).
21979
219802007-10-12 Martin Rudalics <rudalics@gmx.at>
21981
21982 * frame.c (Qexplicit_name): New variable.
21983 (x_report_frame_params): Report it in parameter alist.
21984 (syms_of_frame): Intern and staticpro it.
21985
219862007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
21987
21988 * macfns.c (x_create_tip_frame): Set terminal for frame.
21989
219902007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
21991
21992 * frame.c (Qenvironment): Remove.
21993 (syms_of_frame) <Qenvironment>: Don't initialize.
21994 (Fdelete_frame): Don't treat the `environment' param specially.
21995 * frame.h (Qenvironment): Don't declare.
21996 * callproc.c (set_initial_environment): Don't set unused frame param.
21997
21998 * frame.c (Fframe_with_environment): Remove.
21999 (syms_of_frame) <Sframe_with_environment>: Don't declare.
22000
22001 * lisp.h (Fframe_with_environment): Don't declare.
22002
220032007-10-10 Juanma Barranquero <lekktu@gmail.com>
22004
22005 * indent.c (indent_tabs_mode, last_known_column)
22006 (last_known_column_modified): Make static.
22007 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
22008
220092007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
22010
22011 * puresize.h (BASE_PURESIZE): Increase to 1170000.
22012
220132007-10-09 Jason Rumney <jasonr@gnu.org>
22014
22015 * w32term.c (x_set_window_size): Disable code that attempts to tell
22016 Lisp code about a size change before it actually happens.
22017
220182007-10-09 Richard Stallman <rms@gnu.org>
22019
22020 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
22021 return HANDLED_RETURN.
22022
220232007-10-08 Martin Rudalics <rudalics@gmx.at>
22024
22025 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
22026 when there's an unread command event.
22027
22028 * frame.c (focus_follows_mouse): Move here from frame.el to allow
22029 window autoselection act appropriately when leaving selected frame.
22030 (syms_of_frame): Initialize focus_follows_mouse.
22031 * frame.h (focus_follows_mouse): Extern it.
22032 * macterm.c (XTread_socket): When focus_follows_mouse is nil
22033 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
22034 * msdos.c (dos_rawgetc): Likewise.
22035 * w32term.c (w32_read_socket): Likewise.
22036 * xterm.c (handle_one_xevent): Likewise.
22037 * xdisp.c (syms_of_xdisp): In doc-string of
22038 mouse-autoselect-window mention focus-follows-mouse.
22039
220402007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22041
22042 * macterm.c (mac_load_query_font): Fix missing return value.
22043 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
22044 Add BLOCK_INPUT.
22045
220462007-10-08 Richard Stallman <rms@gnu.org>
22047
22048 * xdisp.c (get_window_cursor_type): Implement documented behavior
22049 for cursor-in-non-selected-windows = t.
22050
220512007-10-08 Jason Rumney <jasonr@gnu.org>
22052
22053 * w32.c (w32_get_resource): Always close registry keys.
22054
220552007-10-08 Jason Rumney <jasonr@gnu.org>
22056
22057 * makefile.w32-in (LIBS): Add COMCTL32.
22058
22059 * w32fns.c (globals_of_w32fns): Init common controls.
22060
220612007-10-08 Richard Stallman <rms@gnu.org>
22062
22063 * image.c (our_memory_buffer): Rename from omfib_buffer.
22064
220652007-10-08 Richard Stallman <rms@gnu.org>
22066
22067 * buffer.c (Foverlays_at): Doc fix.
22068
220692007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
22070
22071 * fns.c (Fplist_put): Preserve uneven tail data.
22072
220732007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
22074
22075 * termhooks.h (enum event_kind): Remove trailing comma.
22076
22077 * frame.h (enum): Remove trailing comma.
22078
220792007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
22080
22081 * w32proc.c (delete_child): Don't terminate threads of zombies.
22082
220832007-10-08 Martin Rudalics <rudalics@gmx.at>
22084
22085 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
22086
22087 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
22088 last-repeatable-command.
22089 (init_kboard): Initialize Vlast_repeatable_command.
22090 (command_loop_1): Set it to real_this_command unless that was
22091 bound to an input event.
22092 (mark_kboards): Mark it.
22093
220942007-10-08 Richard Stallman <rms@gnu.org>
22095
22096 * eval.c (condition-case): Doc fix.
22097
220982007-10-08 Masatake YAMATO <jet@gyve.org>
22099
22100 * xfaces.c (tty_supports_face_attributes_p): Fix code
22101 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
22102 was copied and not edited.
22103
221042007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
22105
22106 Add new `input-decode-map' keymap and use it for terminal
22107 escape sequences.
22108 * keyboard.h (struct kboard): Add Vinput_decode_map.
22109 Remove Vlocal_key_translation_map.
22110 * keyboard.c (read_key_sequence): Add support for input-decode-map.
22111 (init_kboard): Init input-decode-map.
22112 Replace local-key-translation-map back with key-translation-map.
22113 (syms_of_keyboard): Declare input-decode-map.
22114 Remove local-key-translation-map. Update docstrings.
22115 (mark_kboards): Mark Vinput_decode_map.
22116 Don't mark Vlocal_key_translation_map.
22117 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
22118 Replace local-key-translation-map back with key-translation-map.
22119 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
22120 Bind in input-decode-map rather than function-key-map.
22121
22122 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
22123 This was made redundant by the previous introduction of XSETPVECTYPE.
22124
221252007-10-09 Richard Stallman <rms@gnu.org>
22126
22127 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
22128
221292007-09-29 Richard Stallman <rms@gnu.org>
22130
22131 * eval.c (internal_condition_case_2, internal_condition_case_1)
22132 (internal_condition_case): Reenable abort if x_catching_errors ()
22133 to see if that really happens and why.
22134
221352007-10-06 Andreas Schwab <schwab@suse.de>
22136
22137 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
22138
221392007-10-04 Juanma Barranquero <lekktu@gmail.com>
22140
22141 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
22142
221432007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
22144
22145 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
22146
221472007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
22148
22149 * window.h (struct window):
22150 * window.c (struct save_window_data, struct saved_window):
22151 * termhooks.h (struct terminal):
22152 * process.h (struct Lisp_Process):
22153 * frame.h (struct frame):
22154 * buffer.h (struct buffer):
22155 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
22156 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
22157 The size field of (pseudo)vectors is now unsigned.
22158 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
22159
22160 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
22161 Turn `count' into an integer.
22162
22163 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
22164 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
22165 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
22166 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
22167 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
22168
22169 * alloc.c (allocate_pseudovector): New fun.
22170 (ALLOCATE_PSEUDOVECTOR): New macro.
22171 (allocate_window, allocate_terminal, allocate_frame)
22172 (allocate_process): Use it.
22173 (mark_vectorlike): New function.
22174 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
22175 (mark_terminals): Use it.
22176 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
22177 (Fmake_byte_code): Use XSETPVECTYPE.
22178
22179 * frame.c (Fframe_parameters): Minor simplification.
22180
22181 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
22182
22183 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
22184
22185 * buffer.c (Fget_buffer_create, init_buffer_once):
22186 * lread.c (defsubr):
22187 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
22188
22189 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
22190 defined differently in the m/*.h files.
22191 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
22192 (XSETPVECTYPE): New macro.
22193 (XSETPSEUDOVECTOR): Use it.
22194
22195 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
22196 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
22197
22198 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
22199 * lread.c (defvar_per_buffer):
22200 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
22201
22202 * window.c (candidate_window_p): Only consider as visible frames that
22203 are on the same terminal.
22204
22205 * m/ibms390x.h (MARKBIT): Remove unused macro.
22206
222072007-10-01 Juanma Barranquero <lekktu@gmail.com>
22208
22209 * lread.c (Fload): Fix typo in docstring.
22210
222112007-10-01 Michaël Cadilhac <michael@cadilhac.name>
22212
22213 * floatfns.c (Fexpt): Manually check for overflows, so that a power
22214 of a non-zero value can't yield zero.
22215
222162007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
22217
22218 * term.c (term_clear_mouse_face, term_mouse_highlight)
22219 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
22220
22221 * print.c (safe_debug_print): Use XHASH.
22222
22223 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
22224 Lisp elements such as tags.
22225 (XHASH): New macro.
22226 (EQ): Use it.
22227 (SREF, SSET, STRING_COPYIN): Use SDATA.
22228 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
22229
22230 * alloc.c (mark_terminal): Remove left-over declaration.
22231 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
22232 (allocate_vectorlike): Remove type argument. Adjust callers.
22233 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
22234 Only handle the one remaining MEM_TYPE_VECTORLIKE.
22235
22236 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
22237 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
22238 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
22239 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
22240 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
22241 Use them.
22242
22243 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
22244 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
22245 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
22246
222472007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
22248
22249 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
22250 loaded by default.
22251
222522007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
22253
22254 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
22255 on this tty.
22256 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
22257
22258 * term.c (mouse_face_window): Rename from Qmouse_face_window.
22259 Update all users.
22260 (handle_one_term_event): Use Gpm_DrawPointer.
22261 (Fgpm_mouse_start): Rename from Fterm_open_connection.
22262 Signal errors instead of returning nil. Always return nil.
22263 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
22264 Make it a noop if gpm-mouse was not activated.
22265 (syms_of_term): Update names.
22266
222672007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
22268
22269 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
22270 (init_sys_modes): Check that gpm_tty is the current tty.
22271
22272 * alloc.c (allocate_terminal): Set the vector size to only count the
22273 lisp fields. Initialize those to nil.
22274 (mark_object): Don't treat terminals specially.
22275 (mark_terminal): Remove.
22276 (mark_terminals): Use mark_object instead.
22277
22278 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
22279 the GC to the beginning.
22280
22281 * indent.h:
22282 * indent.c: Use EMACS_INT for ints coming from Elisp data.
22283
22284 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
22285
222862007-09-25 Jason Rumney <jasonr@gnu.org>
22287
22288 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
22289
22290 * w32console.c (create_w32cons_output): Remove.
22291
22292 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
22293
22294 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
22295 (reset_sys_modes): Use reset_terminal_modes_hook.
22296
222972007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
22298
22299 * eval.c (do_autoload): Don't output any message.
22300
223012007-09-24 Juri Linkov <juri@jurta.org>
22302
22303 * emacs.c (standard_args): Change priority of "--no-splash"
22304 from 40 to 3. Add "--no-desktop" with the same priority.
22305
223062007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
22307
22308 * alloc.c (gc_sweep): Check cons cell mark bits word by word
22309 and optimize the case where they are all 1.
22310
223112007-09-23 Johannes Weiner <hannes@saeurebad.de>
22312
22313 * lisp.h (abs): Define if not defined.
22314 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
22315 Don't define `abs', since it's defined in lisp.h.
22316
223172007-09-22 Eli Zaretskii <eliz@gnu.org>
22318
22319 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
22320 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
22321 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
22322 (init_tty): Use DEV_TTY instead of "/dev/tty".
22323 [WINDOWSNT]: No need to protect from NAME arg being null.
22324
223252007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
22326
22327 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
22328 up the tty state.
22329
223302007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
22331
22332 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
22333 (gpm_tty): Change its type.
22334 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
22335 (gpm_tty): Change its type and initialize it.
22336 (Fterm_open_connection): Check the frame is indeed a tty.
22337 Use the new gpm_tty.
22338 (Fterm_close_connection): Use the new gpm_tty.
22339 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
22340 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
22341
223422007-09-21 Juanma Barranquero <lekktu@gmail.com>
22343
22344 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
22345 underline_color, to draw strike-through.
22346
223472007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
22348
22349 * lisp.h (allocate_terminal): Declare.
22350
22351 * window.c (candidate_window_p): Consider frames that are being placed
22352 by the user as somewhere between visible and iconified.
22353 (window_loop): Prefer windows on the current frame.
22354 (Fselect_window): Move the use of select-frame to the beginning so we
22355 can just delegate all the work (it'll call us back anyway).
22356
22357 * frame.c (Qdisplay_environment_variable):
22358 * frame.h (Qdisplay_environment_variable): Delete.
22359
22360 * .gdbinit (xbacktrace): Print the arg's address rather than the value
22361 of the first arg, since that value may be a union.
22362
22363 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
22364 parameter rather than Qdisplay_environment_variable. If all else
22365 fails, look for DISPLAY in initial-environment.
22366
223672007-09-21 Glenn Morris <rgm@gnu.org>
22368
22369 * Makefile.in (emacstool): Remove target.
22370 (lisp, shortlisp): Remove termdev.elc.
22371
223722007-09-21 Markus Triska <markus.triska@gmx.at>
22373
22374 * xterm.c (x_delete_display): Compile session management conditionally.
22375
223762007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
22377
22378 * callproc.c (getenv_internal_1): New function.
22379 (getenv_internal): Use it.
22380 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
22381
22382 * terminal.c (get_terminal): Don't accept ints to represent terminals.
22383 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
22384 (Fset_terminal_parameter): Work with dead terminals as well.
22385 (Fmodify_terminal_parameters): Remove.
22386
22387 * terminal.c (get_terminal): Handle terminals.
22388 Make sure the terminal returned is live.
22389 (create_terminal): Use allocate_terminal.
22390 (mark_terminals): Move to alloc.c.
22391 (delete_terminal): Use terminal->name as liveness status.
22392 NULL out fields after freeing their contents.
22393 Don't deallocate the object.
22394 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
22395 rather than an int.
22396 (Fterminal_live_p): Accept non-integer arguments.
22397 (Fterminal_list): Return terminal objects rather than an ints.
22398
22399 * alloc.c (enum mem_type): New member for `terminal' objects.
22400 (allocate_terminal): New function.
22401 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
22402 Handle terminals.
22403 (mark_terminal): New fun.
22404 (mark_terminals): Move from terminal.c.
22405
22406 * term.c (get_tty_terminal): Don't treat output_initial specially.
22407 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
22408 (delete_tty): Use terminal->name as liveness status.
22409
22410 * termhooks.h (struct terminal): Make it into a pseudovector.
22411 Remove `deleted' replaced by checking `name's nullness.
22412
22413 * print.c (print_object): Handle terminals.
22414
22415 * lisp.h (enum pvec_type): New `terminal' pseudovector.
22416 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
22417
22418 * frame.c (make_terminal_frame):
22419 * keyboard.c (tty_read_avail_input):
22420 * w32term.c (x_delete_terminal):
22421 * xfns.c (Fx_create_frame, x_create_tip_frame):
22422 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
22423
224242007-09-20 Glenn Morris <rgm@gnu.org>
22425
22426 * process.c (Fmake_network_process): Doc fix.
22427
224282007-09-19 Jason Rumney <jasonr@gnu.org>
22429
22430 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
22431
224322007-09-19 Michaël Cadilhac <michael@cadilhac.name>
22433
22434 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
22435 Fix a C warning regarding variable constness.
22436
22437 * xterm.c (handle_one_xevent): Fix a C warning.
22438
224392007-09-18 Jason Rumney <jasonr@gnu.org>
22440
22441 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
22442
224432007-09-17 Jan Djärv <jan.h.d@swipnet.se>
22444
22445 * gtkutil.c (gdpy_def): New variable.
22446 (xg_initialize): Initialize gdpy_def.
22447 (xg_display_close): If no other display exists, set gdpy_def to a
22448 new connection.
22449
224502007-09-16 Jan Djärv <jan.h.d@swipnet.se>
22451
22452 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
22453 when we have no file name for the icon.
22454 (xg_tool_bar_expose_callback): Remove.
22455 (xg_create_tool_bar): Don't connect expose signal to
22456 xg_tool_bar_expose_callback.
22457 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
22458
224592007-09-16 Andreas Schwab <schwab@suse.de>
22460
22461 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
22462 values instead of zapping them.
22463
224642007-09-14 Glenn Morris <rgm@gnu.org>
22465
22466 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
22467 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
22468 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
22469 scope and rename to omfib_buffer for clarity.
22470 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
22471
224722007-09-14 Kenichi Handa <handa@m17n.org>
22473
22474 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
22475
224762007-09-13 Jason Rumney <jasonr@gnu.org>
22477
22478 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
22479
22480 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
22481
22482 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
22483 (mac_term_init): Call here instead, passing rif.
22484
224852007-09-13 Glenn Morris <rgm@gnu.org>
22486
22487 * s/hpux.h: No longer define `static' as nothing.
22488
224892007-09-13 Johan Bockgård <bojohan@gnu.org>
22490
22491 * callint.c (Fcall_interactively): Remove unused var `fun'.
22492
224932007-09-12 Romain Francoise <romain@orebokech.com>
22494
22495 * window.c (prefer_window_split_horizontally, display_buffer):
22496 Revert 2007-09-08 change.
22497
224982007-09-12 Glenn Morris <rgm@gnu.org>
22499
22500 * alloca.c: Remove file.
22501 * Makefile.in (alloca): Do not undef.
22502 (allocaobj, alloca.o): Remove.
22503 (otherobj): Remove allocaobj.
22504 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
22505 * regex.c (C_ALLOCA): Remove all references and code that was only
22506 used when this was defined.
22507 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
22508 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
22509 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
22510
22511 * Makefile.in (SOURCES, unlock, relock): Delete.
22512
22513 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
22514 (menu_grab_callback): All uses changed.
22515
22516 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
22517 (x_reply_selection_request): All uses changed.
22518
225192007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
22520
22521 * lread.c (load_warn_old_style_backquotes): Change message to look
22522 better when it appears in the middle of byte-compiler messages.
22523
225242007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
22525
22526 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
22527
22528 * xterm.c (x_create_terminal): Add comment.
22529
22530 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
22531
225322007-09-10 Richard Stallman <rms@gnu.org>
22533
22534 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
22535
225362007-09-10 Michaël Cadilhac <michael@cadilhac.name>
22537
22538 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
22539 (DEFUN): Document `intspec', use it instead of `prompt'.
22540
22541 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
22542
22543 * data.c (Finteractive_form): If the interactive specification starts
22544 with a `(', use it as a Lisp form.
22545
22546 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
22547 name and file modes.
22548
22549 * callint.c (Fcall_interactively): Comment fixes.
22550
225512007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
22552
22553 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
22554 and compiled functions.
22555
225562007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
22557
22558 * window.c (prefer_window_split_horizontally): New variable.
22559 (display_buffer): Consider splitting window horizontally depending
22560 on prefer_window_split_horizontally.
22561
225622007-09-08 Eli Zaretskii <eliz@gnu.org>
22563
22564 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
22565
225662007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
22567
22568 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
22569
22570 * frame.c (x_set_frame_parameters): Check number is positive before
22571 using XFASTINT.
22572
22573 * window.c (freeze_window_start): Don't presume selected_window holds
22574 a window object.
22575 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
22576
225772007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
22578
22579 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
22580
225812007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
22582
22583 * window.c (Vsplit_window_preferred_function): New var.
22584 (Fdisplay_buffer): Use it.
22585 (syms_of_window): Export, and initialize it.
22586
225872007-09-06 Pixel <pixel@mandriva.com> (tiny change)
22588
22589 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
22590
225912007-09-06 Glenn Morris <rgm@gnu.org>
22592
22593 * gtkutil.c (menu_grab_callback) <cnt>:
22594 * xselect.c (x_reply_selection_request) <cnt>: Move static
22595 variable to file scope.
22596
225972007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
22598
22599 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
22600 consistent values of selected_frame and selected_window.
22601
226022007-09-04 Jason Rumney <jasonr@gnu.org>
22603
22604 * w32console.c (initialize_w32_display): Zero unused hooks.
22605
226062007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
22607
22608 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
22609 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
22610
226112007-09-04 Jason Rumney <jasonr@gnu.org>
22612
22613 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
22614 in w32console.c. Set up input. Remove XXX comments that have been
22615 confirmed as correct.
22616
22617 * s/ms-w32.h (MULTI_KBOARD): Define.
22618
22619 * w32console.c (one_and_only_w32cons): Remove.
22620 (initialize_w32_display): Take terminal argument.
22621
22622 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
22623 initialize_w32_display.
22624 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
22625
22626 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
22627
22628 * keyboard.c (discard_mouse_events): Discard it.
22629 (make_lispy_event): Translate it to a lisp event.
22630 (lispy_wheel_names): Add wheel-left and right events.
22631 (syms_of_keyboard): Enlarge wheel_syms.
22632
22633 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
22634 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
22635
22636 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
22637
22638 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
22639 from WM_MOUSEHWHEEL.
22640 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
22641
22642 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
22643 terminal.
22644
22645 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
22646 keyboard for the terminal.
22647
226482007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
22649
22650 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
22651 (Vresume_tty_hook): Rename from Vresume_tty_functions.
22652 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
22653 and resume-tty-function to resume-tty-hook.
22654 (Fsuspend_tty, Fresume_tty): Use new names.
22655
226562007-09-02 Jan Djärv <jan.h.d@swipnet.se>
22657
22658 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
22659 if it starts with "n:".
22660
226612007-08-31 Jan Djärv <jan.h.d@swipnet.se>
22662
22663 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
22664
226652007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
22666
22667 * frame.h:
22668 * frame.c (Qterm_environment_variable): Remove.
22669 (syms_of_frame): Don't init and staticpro it.
22670
22671 * callproc.c (getenv_internal): Remove special case for $TERM.
22672
22673 * callproc.c (Vinitial_environment): New variable.
22674 (set_initial_environment): Initialize it.
22675 (syms_of_callproc): Declare it.
22676 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
22677 TERM under which a process runs is never related to the TERM in which
22678 Emacs is running.
22679
226802007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
22681
22682 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
22683 * s/darwin.h: ... do it here.
22684
226852007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
22686
22687 * lisp.h (set_initial_environment): Rename from set_global_environment.
22688
22689 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
22690 removed by mistake on the multi-tty branch.
22691
22692 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
22693 (Fmodify_frame_parameters): Return a value.
22694
22695 * image.c (png_load): Comment-out var only used in commented-out code.
22696
22697 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
22698 before passing it to mark_object.
22699
22700 * xfaces.c (internal_resolve_face_name): Return a value.
22701 (internal_resolve_face_name, resolve_face_name_error): Comment out.
22702
22703 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
22704 (x_icon): Comment-out var only used in commented-out code.
22705
227062007-08-29 Romain Francoise <romain@orebokech.com>
22707
22708 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
22709 QUIT hasn't been provided.
22710
227112007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
22712
22713 * callproc.c (child_setup, getenv_internal): Use the
22714 display-environment-variable and term-environment-variable frame params.
22715 (set_initial_environment): Initialise Vprocess_environment.
22716
22717 * config.in: Disable multi-keyboard support on a mac.
22718
22719 * frame.c (Qterm_environment_variable)
22720 (Qdisplay_environment_variable): New variables.
22721 (syms_of_frame): Intern and staticpro them.
22722 (Fmake_terminal_frame): Disable output method test.
22723
22724 * frame.h: Declare them here.
22725
22726 * macfns.c (x_set_mouse_color): Get rif from the frame.
22727 (x_set_tool_bar_lines): Don't use updating_frame.
22728 (mac_window): Add 2 new parameters for consistency with other systems.
22729 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
22730 frame parameters following what is done in X11 and w32. Don't use
22731 FRAME_MAC_DISPLAY_INFO.
22732 (Fx_open_connection, start_hourglass): Remove window-system check.
22733 (x_create_tip_frame): Get the keyboard from the terminal.
22734
22735 * macmenu.c: Reorder includes.
22736 (Fx_popup_menu): Use terminal specific mouse_position_hook.
22737
22738 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
22739 terminal parameter.
22740 (x_clear_frame): Add a frame parameter.
22741 (note_mouse_movement): Get rif from the frame.
22742 (mac_term_init): Initialize the terminal.
22743 (mac_initialize): Make static and move terminal initialization ...
22744 (mac_create_terminal): ... to this new function.
22745
22746 * macterm.h (struct mac_display_info): Add terminal.
22747 (mac_initialize): Delete declaration.
22748
22749 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
22750
22751 * sysdep.c: Comment out text after #endif.
22752
22753 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
22754 is defined. Better initialize ttys in windows. Use terminal
22755 specific mouse_position_hook.
22756
22757 * termhooks.h (union display_info): Add mac_display_info.
22758
22759 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
22760 Set the default minibuffer frame, window_system and the rest of the
22761 frame parameters following what is done in X11.
22762
22763 * w32term.c (w32_initialize): Make static.
22764
22765 * xselect.c (x_handle_selection_clear): Only access
22766 terminal->kboard when MULTI_KBOARD is defined.
22767
22768 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
22769 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
22770
227712007-08-29 Jason Rumney <jasonr@gnu.org>
22772
22773 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
22774 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
22775
22776 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
22777 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
22778
22779 * keyboard.c (restore_kboard_configuration): Only define when
22780 MULTI_KBOARD defined.
22781
22782 * makefile.w32-in: Update dependancies from Makefile.in.
22783 (OBJ1): Add terminal.$(O)
22784
22785 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
22786 Don't define function body.
22787 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
22788
22789 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
22790
22791 * w32.c (request_sigio, unrequest_sigio): Remove.
22792
22793 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
22794 (w32con_clear_frame, w32con_clear_end_of_line)
22795 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
22796 (w32con_delete_glyphs, w32con_set_terminal_window)
22797 (scroll_line, w32_sys_ring_bell): Add frame arg.
22798 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
22799 Add terminal arg.
22800 (PICK_FRAME): Remove.
22801 (w32con_write_glyphs): Use frame specific terminal coding.
22802 (one_and_only_w32cons): New global variable.
22803 (initialize_w32_display): Use it for storing hooks.
22804 (create_w32cons_output): New function.
22805
22806 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
22807 arg a frame.
22808
22809 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
22810 Set window_system.
22811 (x_set_tool_bar_lines): Don't use updating_frame.
22812 (Fx_create_frame): Set terminal and ref count.
22813 (Fx_open_connection): Remove window-system check.
22814
22815 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
22816
22817 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
22818 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
22819 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
22820 Add frame arg.
22821 (x_delete_terminal, w32_create_terminal): New functions.
22822 (w32_term_init): Create a terminal.
22823 (w32_initialize): Move terminal specific initialization to
22824 w32_create_terminal.
22825
22826 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
22827 (w32_clear_rect, w32_clear_area): Use background from frame.
22828 (w32_display_info): Add terminal.
22829 (w32_sys_ring_bell, x_delete_display): Declare here.
22830
22831 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
22832
22833 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
22834
228352007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
22836
22837 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
22838 Fix get_named_tty calls for the controlling tty.
22839
228402007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
22841
194d44e7 22842 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
22843
228442007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
22845
22846 * term.c (tty_insert_glyphs): Add missing first parameter.
22847
228482007-08-29 Károly Lőrentey <karoly@lorentey.hu>
22849
22850 * buffer.c (Fbuffer_list, Fbury_buffer):
22851 Take frame->buried_buffer_list into account.
22852
22853 * cm.c (current_tty): New variable, for cmputc().
22854 (cmputc): Use it.
22855 (cmcheckmagic): Add tty parameter, look up terminal streams there.
22856 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
22857 (cmgoto): Add tty parameter. Pass it on to calccost().
22858 Use emacs_tputs() instead of tputs().
22859
22860 * cm.h (emacs_tputs): New macro to set current_tty, and then call
22861 tputs().
22862 (current_tty): New variable, for cmputc().
22863 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
22864
22865 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
22866 (internal_condition_case, internal_condition_case_1)
22867 (internal_condition_case_2): Don't abort when x_catching_errors.
22868
22869 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
22870 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
22871 prevent crashes caused by bogus longjmps in read_char.
22872
22873 * keymap.h (Fset_keymap_parent): Add EXFUN.
22874
22875 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
22876 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
22877 Remove redundant definition.
22878
22879 * macfns.c (x_set_mouse_color, x_make_gc):
22880 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22881
22882 * w32term.c (x_free_frame_resources):
22883 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22884 (w32_initialize): Use the accessor macros for terminal characteristics.
22885
22886 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
22887 Use the accessor macros for terminal characteristics.
22888 * msdos.c (internal_terminal_init): Use the accessor macros for
22889 terminal characteristics.
22890 (ScreenVisualBell, internal_terminal_init):
22891 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22892
22893 * termopts.h (no_redraw_on_reenter): Declare.
22894
22895 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
22896 (mark_terminals, mark_ttys): Declare.
22897 (Fgarbage_collect): Call them.
22898 (mark_object): Mark buried_buffer_list.
22899
22900 * prefix-args.c: Include stdlib.h for exit.
22901
22902 * syssignal.h: Add comment.
22903
22904 * indent.c: Include stdio.h.
22905
22906 * window.h (Vinitial_window_system): Declare.
22907 (Vwindow_system): Delete declaration.
22908
22909 * fontset.c (Finternal_char_font): Use FRAME_RIF.
22910
22911 * image.c (lookup_image): Don't initialize `c' until the xasserts
22912 have been run.
22913
22914 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
22915 FRAME_FOREGROUND_PIXEL.
22916
22917 * print.c (print_preprocess): Don't lose print_depth levels while
22918 iterating.
22919
22920 * widget.c (update_from_various_frame_slots):
22921 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22922
22923 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
22924 frames.
22925 (window_internal_height): Remove bogus make_number call.
22926 (init_window_once): Call make_terminal_frame with two zero parameters.
22927
22928 * fileio.c (Fread_file_name): Update comment.
22929
22930 * callint.c (Fcall_interactively):
22931 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
22932 Make sure it is correctly unwound.
22933
22934 * xsmfns.c (x_session_close): New function.
22935
22936 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
22937 Delete declarations.
22938
22939 * xterm.h: Remove declaration for x_fully_uncatch_errors.
22940 (x_output): Remove background_pixel and foreground_pixel fields.
22941 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
22942 (x_delete_device, x_session_close): Declare.
22943
22944 * lread.c: Include setjmp.h. Update declaration of `read_char'.
22945 (read_filtered_event): Call `read_char' with a local
22946 `wrong_kboard_jmpbuf'.
22947
22948 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
22949 Don't call single_kboard_state. Use FRAME_RIF.
22950
22951 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
22952 systems.
22953
22954 * lisp.h (set_process_environment): Rename to `set_global_environment'.
22955 (Fframe_with_environment, Fset_input_meta_mode)
22956 (Fset_quit_char): EXFUN.
22957 (x_create_device, tty_output, terminal, tty_display_info): Declare.
22958 (init_sys_modes, reset_sys_modes): Update prototypes.
22959 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
22960
22961 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
22962 Vlocal_key_translation_map, and Vkeyboard_translate_table.
22963 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
22964 Delete declarations.
22965 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
22966 (temporarily_switch_to_single_kboard, tty_read_avail_input):
22967 New declarations.
22968
22969 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
22970 already does that during init_display(). Call syms_of_keymap
22971 before syms_of_keyboard. Call `syms_of_terminal'.
22972 Call set_initial_environment, not set_process_environment.
22973 (shut_down_emacs): Call reset_all_sys_modes() instead of
22974 reset_sys_modes().
22975
22976 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
22977 (internal_resolve_face_name, resolve_face_name_error): New functions.
22978 (resolve_face_name): Protect against loops and errors thrown by Fget.
22979 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
22980 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
22981
22982 * scroll.c: Replace CURTTY() with local variables throughout the
22983 file (where applicable).
22984 (calculate_scrolling, calculate_direct_scrolling)
22985 (scrolling_1, scroll_cost): Use the accessor macros for terminal
22986 characteristics.
22987
22988 * keymap.c (Vfunction_key_map): Remove.
22989 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
22990 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
22991 (Vkey_translation_map): Remove.
22992 (syms_of_keymap): Remove DEFVAR for key-translation-map.
22993 (Fdescribe_buffer_bindings)
22994 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
22995 Update for terminal-local key-translation-map.
22996
22997 * Makefile.in (callproc.o): Update dependencies.
22998 (lisp, shortlisp): Add termdev.elc.
22999 (obj): Add terminal.o.
23000 (terminal.o): Add dependencies.
23001 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
23002 (data.o, fns.o): Add termhooks.h dependency.
23003 (SOME_MACHINE_LISP): Add dnd.elc.
23004 (minibuf.o): Fix typo.
23005 Update dependencies.
23006
23007 * data.c (do_symval_forwarding, store_symval_forwarding)
23008 (find_symbol_value): Use the selected frame's keyboard, not
23009 current_kboard.
23010
23011 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
23012 Vwindow_system.
23013
23014 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
23015 Fmenu_bar_open.
23016 (syms_of_xmenu): Update defsubr.
23017 (mouse_position_for_popup, Fx_popup_menu)
23018 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
23019 (set_frame_menubar, free_frame_menubar)
b97439ce 23020 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
23021 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
23022 an X frame.
23023
23024 * xselect.c (x_own_selection): Abort if not an X frame.
23025 (some_frame_on_display): Check if it is an X frame.
23026 (x_handle_selection_clear): Deal with MULTI_KBOARD.
23027
23028 * coding.c: Include frame.h and termhooks.h.
23029 (terminal_coding, keyboard_coding): Delete.
23030 (Fset_terminal_coding_system_internal)
23031 (Fset_keyboard_coding_system_internal)
23032 (Fkeyboard_coding_system)
23033 (Fterminal_coding_system): Add a terminal parameter.
23034 Get terminal_coding from the terminal.
23035 (init_coding_once): Don't call setup_coding_system here.
23036
23037 * dispextern.h (set_scroll_region, turn_off_insert)
23038 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
23039 (tty_clear_end_of_line, tty_setup_colors)
23040 (delete_tty, updating_frame)
23041 (produce_special_glyphs, produce_glyphs, write_glyphs)
23042 (insert_glyphs): Remove.
23043 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
23044 (tty_turn_off_highlight, get_tty_size): Add declaration.
23045 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
23046
23047 * frame.h (enum output_method): Add output_initial.
23048 (struct x_output): Delete.
23049 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
23050 Access foreground_pixel and background_pixel directly from the frame.
23051 (tty_display): Delete.
23052 (struct frame): Add buried_buffer_list, foreground_pixel,
23053 background_pixel and terminal. Delete kboard.
23054 (union output_data): Add tty.
23055 (FRAME_KBOARD): Get the kboard from the terminal.
23056 (FRAME_INITIAL_P): New macro.
23057 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
23058 (Qterm_environment_variable, Qdisplay_environment_variable)
23059 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
23060 New declarations.
23061
23062 * termchar.h (tty_output, tty_display_info): New structures.
23063 (tty_list): Declare.
23064 (FRAME_TTY, CURTTY): New macros.
23065 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
23066 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
23067 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
23068 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
23069
23070 * callproc.c: Include frame.h and termhooks.h, for terminal
23071 parameters.
23072 (add_env): New function.
23073 (child_setup): Use it.
23074 (child_setup, getenv_internal): Handle the new Vprocess_environment.
23075 (getenv_internal): Fix get_terminal_param call.
23076 (Fgetenv_internal, egetenv): Update doc.
23077 (syms_of_callproc): Initialize Vprocess_environment to nil.
23078 Register and initialize them. Remove obsolete defvars. Update doc
23079 strings.
23080 (child_setup): Handle Vlocal_environment_variables.
23081 (getenv_internal): Add terminal parameter.
23082 Handle Vlocal_environment_variables.
23083 (Fgetenv_internal): Add terminal parameter.
23084 (child_setup, getenv_internal, Fgetenv_internal): Store the local
23085 environment in a frame (not terminal) parameter. Update doc strings.
23086 (set_initial_environment): Rename from set_global_environment.
23087 Store Emacs environment in initial frame parameter.
23088
23089 * xdisp.c (redisplay_internal): Update references to
23090 `previous_terminal_frame'.
23091 (display_mode_line, Fformat_mode_line): Replace calls to
23092 `push_frame_kboard' with `push_kboard'.
23093 (get_glyph_string_clip_rects): Add extra parentheses and
23094 braces to prevent compiler warnings.
23095 (calc_pixel_width_or_height): Add xassert to check that the
23096 frame is alive. Don't call `lookup_image' on a termcap frame.
23097 (message2_nolog, message3_nolog, redisplay_internal)
23098 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
23099 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
23100 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
23101 (Fx_display_pixel_width, Fx_display_pixel_height)
23102 (Fx_display_planes, Fx_display_color_cells)
23103 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
23104 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
23105 (Fx_display_backing_store, Fx_display_visual_class)
23106 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
23107 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
23108
23109 * xfns.c (x_set_foreground_color x_set_background_color)
23110 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
23111 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23112 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
23113 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
23114 terminal that is being deleted.
23115 (Fx_create_frame): Use `store_frame_param' to set `window-system'
23116 frame parameter, and make sure it overrides any user-supplied setting.
23117 (Fx_close_connection, Fx_synchronize): Unify argument names with
23118 the rest of the DEFUNs.
23119
23120 * dispnew.c (Fsend_string_to_terminal): Update call to
23121 `get_tty_terminal'.
23122 (Fredraw_frame, Fsend_string_to_terminal)
23123 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
23124 FRAME_TERMCAP_P and FRAME_TTY.
23125 (window_change_signal): Don't believe width/height values that are
23126 impossibly small.
23127 (Vinitial_window_system): Rename from Vwindow_system.
23128 (termscript, Wcm, rif): Delete.
23129
23130 * termhooks.h (struct terminal): New struct containing the
23131 previously global text display hooks and new members NAME,
23132 DELETED and PARAM_ALIST.
23133 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
23134 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
23135 (FRAME_RIF): New macros.
23136 (get_terminal_param, get_device): New declarations.
23137 (termscript): Delete declaration.
23138
23139 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
23140 (XTflash, x_free_frame_resources, x_scroll_bar_create)
23141 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
23142 FRAME_FOREGROUND_PIXEL.
23143 (x_fully_uncatch_errors): Disable definition.
23144 (x_scroll_bar_expose): Fix reference to foreground pixel.
23145 (XTread_socket): Disable loop on all X displays.
23146 (x_delete_terminal): Don't set terminal->deleted and let
23147 delete_terminal delete the frames on the terminal.
23148 (x_delete_display): Doc update to reflect changes in
23149 delete_terminal.
23150 (x_display_info) <terminal>: Move member earlier in the struct.
23151 (deleting_tty): Remove old variable.
23152 (Fsuspend_tty): Call clear_tty_hooks.
23153 (Fresume_tty, init_tty): Call set_tty_hooks.
23154 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
23155 errors on X frames.
23156 (x_catch_errors_unwind): Abort if x_error_message is NULL.
23157 (handle_one_xevent): Initialize `f' to NULL.
23158 (x_delete_terminal, x_create_terminal): New functions.
23159 (XTset_terminal_modes, XTreset_terminal_modes)
23160 (XTread_socket, x_connection_closed, x_term_init)
23161 (x_term_init, x_delete_display): Add terminal parameter.
23162 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
23163 X connections.
23164
23165 * frame.c: Include termchar.h.
23166 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
23167 (Qwindow_system, Qenvironment, Qterm_environment_variable)
23168 (Qdisplay_environment_variable): New vars.
23169 (Fframep): Deal with output_initial.
23170 (Fframe-live-p): Doc fix.
23171 (Fwindow-system): New function.
23172 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
23173 (make_terminal_frame): Don't create frames on a terminal that is
23174 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23175 (store_frame_param): Check for found_for_frame before calling XFRAME.
23176 (Fmake_terminal_frame): Handle NULL tty names correctly.
23177 (syms_of_frame): Enhance doc string of `default-frame-alist'.
23178 (Fdelete_frame): Remove unused variable `count'. Don't allow other
23179 frames to refer to a deleted frame in their 'environment parameter.
23180 (Fframe_with_environment): New function.
23181 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
23182 (get_future_frame_param): New function.
23183 (Fmake_terminal_frame): Use it.
23184 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
23185
23186 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
23187 * sysdep.c (reset_sys_modes): Update for renames.
23188
23189 * keyboard.c (tty_read_avail_input): New function.
23190 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
23191 (syms_of_keyboard): Defsubr them.
23192 (Fset_input_meta_mode, Fset_quit_char): New functions.
23193 (Fset_input_mode): Split to above functions.
23194 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
23195 parameter. Use it in call to `read_char'.
23196 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
23197 Set wrong_kboard_jmpbuf correctly in recursive calls.
23198 Use current_kboard to access Vkeyboard_translate_table.
23199 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
23200 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
23201 Update longjmp invocations. Remember the original current_kboard,
23202 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
23203 changes it. Comment out unnecessary calls to
23204 `record_single_kboard_state' and `any_kboard_state'.
23205 Update recursive calls.
23206 (wrong_kboard_jmpbuf): Remove global variable.
23207 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
23208 Handle deleted interrupted_kboards correctly; that is a legal
23209 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
23210 and read_char calls. Abort if interrupted_kboard died in read_char.
23211 (any_kboard_state, single_kboard_state)
23212 (push_frame_kboard): Remove function.
23213 (pop_kboard): Switch out of single_kboard mode if the kboard has
23214 been deleted. Remove unused variable. Help debugging by not
23215 changing current_kboard unnecessarily. Set current_kboard to the
23216 kboard of the selected frame when the stored kboard object has
23217 been deleted before pop_kboard.
23218 (temporarily_switch_to_single_kboard): Change first parameter to a
23219 frame pointer. Throw an error when caller wants to change kboards
23220 while in single_kboard mode. Don't push_kboard if we weren't in
23221 single kboard state. Don't pop_kboard if we popped into any
23222 kboard state.
23223 (restore_kboard_configuration): Abort if pop_kboard changed the
23224 kboard in single_kboard mode. Call pop_kboard only after setting
23225 up single_kboard mode.
23226 (Frecursive_edit): Switch to single_kboard mode only in nested
23227 command loops.
23228 (cmd_error, command_loop, command_loop_1, timer_check):
23229 Comment out unnecessary call to `any_kboard_state' and
23230 `record_single_kboard_state'.
23231 (delete_kboard): Exit single_kboard mode if we have just deleted
23232 that kboard. Use FRAME_KBOARD.
23233 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
23234 `fatal_error_signal'.
23235 (record_single_kboard_state): Don't push_kboard if we weren't in
23236 single kboard state. Don't pop_kboard if we popped into any
23237 kboard state.
23238 (push_frame_kboard): Rename to push_kboard.
23239 (kbd_buffer_get_event): Use FRAME_TERMINAL.
23240 (read_avail_input): Read input from all terminals.
23241 (mark_kboards): Also mark Vkeyboard_translate_table.
23242 (kbd_buffer_store_event_hold): Simplify condition.
23243 (read_key_sequence): Reinitialize fkey and keytran at each replay.
23244 (Vkeyboard_translate_table): Move to struct kboard.
23245 (init_kboard): Initialize Vkeyboard_translate_table.
23246 (syms_of_keyboard): Use DEFVAR_KBOARD to define
23247 Vkeyboard_translate_table. Update doc strings. Update docs of
23248 local-function-key-map and function-key-map.
23249
23250 * terminal.c: New file.
23251
23252 * term.c: Include errno.h.
23253 (Vring_bell_function, device_list, initial_device)
23254 (next_device_id, ring_bell, update_begin, update_end)
23255 (set_terminal_window, cursor_to, raw_cursor_to)
23256 (clear_to_end, clear_frame, clear_end_of_line)
23257 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
23258 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
23259 (syms_of_term): Move their initialization to terminal.c.
23260 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
23261 (Ftty_display_color_cells)
23262 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
23263 (clear_tty_hooks, set_tty_hooks)
23264 (init_tty, maybe_fatal): New functions.
23265 (Ftty_type): Return nil if terminal is not on a tty instead of
23266 throwing an error. Doc update.
23267 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
23268 Doc update. Initialize new subrs and variables.
23269 (delete_tty): Use terminal->deleted.
23270 (tty_set_terminal_modes): Rename from set_terminal_modes.
23271 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
23272 (set_scroll_region): Rename to `tty_set_scroll_region'.
23273 (turn_on_insert): Rename to `tty_turn_on_insert'.
23274 (turn_off_insert): Rename to `tty_turn_off_insert'.
23275 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
23276 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
23277 (toggle_highligh): Rename to `tty_toggle_highlight'.
23278 (background_highlight): Rename to `tty_background_highlight'.
23279 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
23280 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
23281 (tty_set_scroll_region, tty_background_highlight)
23282 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
23283 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
23284 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
23285 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
23286 Add static modifier.
23287 (tty_reset_terminal_modes, tty_set_terminal_window)
23288 (tty_set_scroll_region, tty_background_highlight)
23289 (tty_highlight_if_desired, tty_cursor_to)
23290 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
23291 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
23292 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
23293 renames.
23294
232952007-08-28 Jan Djärv <jan.h.d@swipnet.se>
23296
23297 * keyboard.c: Qrtl is new.
23298 (parse_tool_bar_item): Handle :rtl keyword.
23299 (syms_of_keyboard): Intern :rtl keyword.
23300
23301 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
23302
23303 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
23304 so no Lisp code is executed.
23305 (file_for_image, find_rtl_image): New functions.
23306 (xg_get_image_for_pixmap): Use file_for_image.
23307 (update_frame_tool_bar): If direction is RTL, use RTL image if
23308 defined. Use Gtk stock images if defined.
23309
233102007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23311
23312 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
23313 for nonexistent or zero-width glyph in composition glyph.
23314
233152007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
23316
23317 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
23318
23319 * xdisp.c (Finvisible_p): New function.
23320 (syms_of_xdisp): defsubr it.
23321
233222007-08-24 Juanma Barranquero <lekktu@gmail.com>
23323
23324 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
23325 Doc fixes.
23326
233272007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23328
23329 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
23330
233312007-08-24 Martin Rudalics <rudalics@gmx.at>
23332
23333 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
23334 whether decoding has modified buffer contents.
23335
233362007-08-24 Jason Rumney <jasonr@gnu.org>
23337
23338 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
23339 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
23340 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
23341 (init_svg_functions) [HAVE_NTGUI]: New function.
23342 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
23343 (svg_load_image): Use them.
23344 (svg_load_image) [HAVE_NTGUI]: Implement background.
23345
233462007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23347
23348 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
23349 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
23350 (LIBX): Remove @RSVG_LIBS@.
23351 (LIBES): Add $(RSVG_LIBS).
23352
23353 * image.c (svg_load_image): Blend with specified background if exists.
23354 Use IMAGE_BACKGROUND. Add Mac OS Support.
23355
23356 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
23357 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
23358 Remove macros.
23359 [MAC_OSX] (socket_callback): Do nothing.
23360 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
23361 ReceiveNextEvent.
23362 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
23363 socket_callback.
23364 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
23365
233662007-08-22 Glenn Morris <rgm@gnu.org>
23367
23368 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
23369
233702007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
23371
23372 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
23373
23374 * image.c: Add support for SVG images. Some additional comments
23375 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
23376 (svg_image_p): New function to test for SVG image.
23377 (svg_load): New function to load SVG image.
23378 (svg_load_image): New function, helper for svg_load.
23379 (Qsvg): New Lisp_object.
23380 (svg_keyword_index): New enum.
23381 (svg_format): New static `image_keyword' struct.
23382 (svg_type): New static `image_type' struct.
23383 (librsvg/rsvg.h): Include it.
23384
233852007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
23386
23387 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
23388
233892007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
23390
23391 * lread.c (Qold_style_backquotes): New var.
23392 (syms_of_lread): Init and staticpro it.
23393 (load_warn_old_style_backquotes): New fun.
23394 (Fload): Use them to warn about old style backquotes.
23395 (end_of_file_error, Fload): Remove unused vars.
23396
23397 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
23398
23399 * lread.c (Vold_style_backquotes): New var.
23400 (syms_of_lread): Init and export it to Elisp.
23401 (read1): Set it when we find an old-style (back)quote.
23402
234032007-08-22 Jason Rumney <jasonr@gnu.org>
23404
23405 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
23406
234072007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
23408
23409 * puresize.h (BASE_PURESIZE): Increase to 1140000.
23410
234112007-08-19 Richard Stallman <rms@gnu.org>
23412
23413 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
23414
234152007-08-19 Andreas Schwab <schwab@suse.de>
23416
23417 * alloc.c (pure): Round PURESIZE up.
23418
234192007-08-17 Jan Djärv <jan.h.d@swipnet.se>
23420
23421 * xterm.c (handle_one_xevent): Remove check that mouse click is in
23422 active frame.
23423
234242007-08-16 Richard Stallman <rms@gnu.org>
23425
23426 * eval.c (Fcommandp): Add parens to clarify.
23427
23428 * minibuf.c (Fall_completions): Use enum for type of table.
23429
23430 * emacs.c (USAGE2): Improve text.
23431
234322007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
23433
23434 * term.c (tty_default_color_capabilities): Declare static
23435 variables in file scope, to avoid HPUX compiler problem.
23436
234372007-08-13 Jan Djärv <jan.h.d@swipnet.se>
23438
23439 * gtkutil.c (update_frame_tool_bar): Use -1 as index
23440 to gtk_toolbar_insert.
23441
234422007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
23443
23444 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
23445
23446 * insdel.c (reset_var_on_error): New fun.
23447 (signal_before_change, signal_after_change):
23448 Use it to reset (after|before)-change-functions to nil in case of error.
23449 Bind inhibit-modification-hooks to t.
23450 Don't bind (after|before)-change-functions to nil while they run.
23451
234522007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23453
23454 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
23455 filling pixmap with stippled background.
23456
234572007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23458
23459 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
23460 Don't use invisible frame as parent window for repositioning.
23461
234622007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
23463
23464 * print.c (new_backquote_output): Rename from old_backquote_output.
23465 (print): Inverse its logic (according to its name) so as to match the
23466 behavior of new_backquote_flag in lread.c.
23467
234682007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23469
23470 * gmalloc.c (posix_memalign): New function.
23471
23472 * macterm.c (frame_highlight, frame_unhighlight): Don't call
23473 ActivateControl/DeactivateControl here.
23474 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
23475 frame-notice-user-settings is non-nil.
23476 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
23477 for kEventParamFMFontStyle.
23478 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
23479 mac_pass_command_to_system and mac_pass_control_to_system here.
23480 (XTread_socket): Call ActivateControl/DeactivateControl here.
23481 (XTread_socket) [TARGET_API_MAC_CARBON]:
23482 Check mac_pass_command_to_system and mac_pass_control_to_system here.
23483 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
23484 for window repositioning.
23485
234862007-08-08 Glenn Morris <rgm@gnu.org>
23487
23488 * Replace `iff' in doc-strings and comments.
23489
234902007-08-07 Chong Yidong <cyd@stupidchicken.com>
23491
23492 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
23493
234942007-08-07 Martin Rudalics <rudalics@gmx.at>
23495
23496 * fileio.c (Finsert_file_contents): Run format-decode and
23497 after_insert_file_functions on entire buffer when REPLACE is
23498 non-nil and inhibit modification_hooks and point_motion_hooks.
23499 For consistency, run after_insert_file_functions iff something
23500 got inserted. Move signal_after_change and update_compositions
23501 after code running after_insert_file_functions. Make sure that
23502 undo_list doesn't record intermediate steps of the decoding process.
23503
235042007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23505
23506 * emacs.c (main)
23507 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
23508 Call malloc_enable_thread on interactive startup.
23509
23510 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
23511 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
23512 [USE_PTHREAD]: Conditionalize with it.
23513 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
23514 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
23515 New functions.
23516
235172007-08-06 Chong Yidong <cyd@stupidchicken.com>
23518
23519 * xdisp.c (redisplay_window): When restoring original buffer
23520 position, make sure it is still valid.
23521
23522 * image.c (png_load): Ignore png-supplied background color.
23523
235242007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23525
23526 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
23527 Use kCFAbsoluteTimeIntervalSince1970.
23528
23529 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
23530 New variable.
23531 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
23532 event loop should be quit.
23533 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
23534 Quit dialog event loop if quit_dialog_event_loop is set.
23535
23536 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
23537 (Selection): New typedef. Use instead of ScrapRef.
23538 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
23539 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
23540 (mac_clear_selection): Rename from clear_scrap.
23541 (get_flavor_type_from_symbol): New argument SEL and subsume function of
23542 scrap_has_target_type. All uses changed.
23543 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
23544 (mac_selection_has_target_p): New functions.
23545 (mac_put_selection_value): Rename from put_scrap_string.
23546 (mac_get_selection_value): Rename from get_scrap_string.
23547 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
23548 (put_scrap_private_timestamp, scrap_has_target_type)
23549 (get_scrap_private_timestamp): Remove functions.
23550 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
23551 (x_own_selection, x_get_local_selection):
23552 Use mac_valid_selection_value_p.
23553 (x_own_selection): Don't use put_scrap_private_timestamp.
23554 Record OWNERSHIP-INFO into Vselection_alist instead.
23555 (x_get_local_selection): Don't check type if request is local.
23556 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
23557 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
23558
235592007-08-04 Jan Djärv <jan.h.d@swipnet.se>
23560
23561 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
23562 add comment explaining why.
23563
235642007-08-03 Richard Stallman <rms@gnu.org>
23565
23566 * fileio.c (Fvisited_file_modtime): Use make_time.
23567
235682007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
23569
23570 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
23571 build.
23572
235732007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
23574
23575 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
23576
235772007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
23578
23579 * puresize.h (BASE_PURESIZE): Increase to 1130000.
23580
235812007-07-30 Richard Stallman <rms@gnu.org>
23582
23583 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
23584
235852007-07-29 Jan Djärv <jan.h.d@swipnet.se>
23586
23587 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
23588
235892007-07-28 Nick Roberts <nickrob@snap.net.nz>
23590
23591 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
23592 remote default-directory.
23593
23594 * buffer.c (mode-line-format): Update doc string.
23595
235962007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23597
23598 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
23599 scroll bar gap.
23600 (x_scroll_bar_create): Set bar->fringe_extended_p.
23601 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
23602 on frame edge. Check fringe background extension. Don't clear
23603 extended fringe background area.
23604
23605 * w32term.h (struct scroll_bar): New member fringe_extended_p.
23606 (w32_fill_area): Enclose multiple statements with do ... while (0).
23607
23608 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
23609 Extend fringe background to scroll bar gap.
23610 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
23611 Set bar->fringe_extended_p.
23612 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
23613 Put leftmost/rightmost scroll bars on frame edge. Check fringe
23614 background extension. Don't clear extended fringe background area.
23615
23616 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
23617 New member fringe_extended_p.
23618
236192007-07-25 Glenn Morris <rgm@gnu.org>
23620
23621 * Relicense all FSF files to GPLv3 or later.
23622
23623 * COPYING: Switch to GPLv3.
23624
236252007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
23626
23627 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
23628
23629 * data.c (Finteractive_form): Check for the presence of an
23630 `interactive-form' symbol property more thoroughly.
23631
23632 * data.c (Finteractive_form): Use an `interactive-form' property if
23633 present, analogous to the function-documentation property.
23634
236352007-07-24 Jason Rumney <jasonr@gnu.org>
23636
23637 * w32fns.c (x_real_positions): Get real position from OS instead of
23638 calculating it.
23639
236402007-07-23 Jason Rumney <jasonr@gnu.org>
23641
23642 * filelock.c (current_lock_owner): Allow for @ sign in username.
23643
236442007-07-22 Nick Roberts <nickrob@snap.net.nz>
23645
23646 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
23647 remote default-directory.
23648
23649 * buffer.c (mode-line-format): Describe above case in doc string.
23650
236512007-07-20 Eli Zaretskii <eliz@gnu.org>
23652
23653 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
23654 Define if not defined.
23655
236562007-07-18 Jason Rumney <jasonr@gnu.org>
23657
23658 * w32proc.c (w32_executable_type): Handle 64 bit executables.
23659
236602007-07-18 Richard Stallman <rms@gnu.org>
23661
23662 * data.c (Fsetq_default): Doc fix.
23663
23664 * eval.c (Fsetq): Doc fix.
23665
236662007-07-18 Juanma Barranquero <lekktu@gmail.com>
23667
23668 * coding.c (Ffind_operation_coding_system):
23669 * eval.c (For, Fand): Doc fixes.
23670 Reported by Johan Bockgård.
23671
236722007-07-18 Jan Djärv <jan.h.d@swipnet.se>
23673
23674 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
23675
23676 * xterm.h: Declare x_ewmh_activate_frame.
23677
23678 * xterm.c (x_ewmh_activate_frame): New function.
23679 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
23680
236812007-07-17 Martin Rudalics <rudalics@gmx.at>
23682
23683 * window.c (Fdisplay_buffer): If largest or LRU window is the
23684 only window, split it even if it is not eligible for splitting.
23685 This restores the original behavior broken by the 2007-07-15
23686 change.
23687
236882007-07-17 Glenn Morris <rgm@gnu.org>
23689
23690 * abbrev.c (abbrev_check_chars): New function.
23691 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
23692 Call abbrev_check_chars to check abbrev characters are word
23693 constituents. Doc fix.
23694
236952007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
23696
23697 * process.c (Fstart_process, Fmake_network_process)
23698 (read_process_output): Fix up last changes.
23699
237002007-07-16 Eli Zaretskii <eliz@gnu.org>
23701
23702 * makefile.w32-in (clean): Don't delete *~.
23703
237042007-07-16 Andreas Schwab <schwab@suse.de>
23705
23706 * window.c (Fdisplay_buffer): Use NILP.
23707 (Fset_window_scroll_bars): Likewise.
23708
237092007-07-15 Martin Rudalics <rudalics@gmx.at>
23710
23711 * window.c (window_min_size_2): New function.
23712 (window_min_size_1, size_window, Fdisplay_buffer)
23713 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
23714 windows without mode- or header-lines when window-min-height is
23715 too small.
23716 (size_window): Reset nodelete_p after testing it, following an
23717 earlier note by Kim F. Storm.
23718 (display_buffer): Do not set split_height_threshold to twice the
23719 value of window_min_height to avoid changing the value of a
23720 customizable variable. Rather explicitly check whether the
23721 height of the window that shall be splitted is at least as large
23722 as split_height_threshold.
23723 (Fwindow_full_width_p): New defun.
23724 (syms_of_window): Defsubr it.
23725
23726 * window.h: Add EXFUN for Fwindow_full_width_p.
23727
237282007-07-14 Jason Rumney <jasonr@gnu.org>
23729
23730 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
23731
237322007-07-14 Richard Stallman <rms@gnu.org>
23733
23734 * eval.c (maybe_call_debugger): New function.
23735 (find_handler_clause): Use maybe_call_debugger.
23736 Call it when the handler says `debug'.
23737 Eliminate DEBUGGER_VALUE_PTR.
23738 (Fsignal): Eliminate debugger_value.
23739 (Qdebug): New variable.
23740 (syms_of_eval): Initialize it.
23741
237422007-07-14 Juanma Barranquero <lekktu@gmail.com>
23743
23744 * eval.c (Fprogn):
23745 * keyboard.c (Ftrack_mouse):
23746 * print.c (Fwith_output_to_temp_buffer):
23747 * window.c (Fsave_window_excursion): Doc fix.
23748
237492007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
23750
23751 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
23752
237532007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
23754
23755 * process.h (struct Lisp_Process): Turn slots infd, outfd,
23756 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
23757 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
23758 read_output_delay, and read_output_skip from Lisp_Objects to ints.
23759 Remove unused encoding_carryover.
23760 * process.c: Adjust all functions accordingly.
23761
237622007-07-12 Richard Stallman <rms@gnu.org>
23763
23764 * term.c: Include unistd.h only if HAVE_UNISTD_H.
23765
237662007-07-11 Jason Rumney <jasonr@gnu.org>
23767
23768 * makefile.w32-in (LIBS): Include OLE32.
23769
23770 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
23771 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
23772
237732007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
23774
23775 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
23776 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
23777 from a Lisp_Object into a bare pointer.
23778 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
23779 Adjust the code correspondingly.
23780
23781 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
23782
23783 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
23784 (term_show_mouse_face): Remove unused var `j'.
23785 (handle_one_term_event): Remove unused vars `i' and `j'.
23786 Don't cast return value of ttyname since it's not necessary.
23787
237882007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
23789
23790 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
23791 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
23792
23793 * fns.c (map_char_table): Use an array of int for `indices' rather than
23794 an array of Lisp_Objects (which are only ever integers anyway).
23795 (Fmap_char_table): Update caller.
23796 * lisp.h: Update prototype.
23797 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
23798 * fontset.c (Ffontset_info):
23799 * casetab.c (set_case_table): Update callers.
23800
23801 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
23802
23803 * keymap.c (struct accessible_keymaps_data)
23804 (struct where_is_internal_data): New structures.
23805 (accessible_keymaps_1, where_is_internal_1): Use them to change
23806 interface to adhere to the one used by map_keymap.
23807 (Faccessible_keymaps, where_is_internal): Use map_keymap.
23808 (accessible_keymaps_char_table, where_is_internal_2): Remove.
23809
23810 * keymap.h (map_keymap_function_t): More informative prototype.
23811
238122007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
23813
23814 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
23815 (looking_at_1): Don't change search_regs and last_thing_searched
23816 if `inhibit-changing-match-data' is non-nil.
23817 (string_match_1, search_buffer, set_search_regs): Likewise.
23818 (syms_of_search): Add Lisp level definition for
23819 `inhibit-changing-match-data' and set it to nil.
23820 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
23821 start and end of the match, instead of using values in search_regs.
23822
238232007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
23824
23825 * minibuf.c (Fcompleting_read): New value `confirm-only'
23826 for `require-match'.
23827
238282007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
23829
23830 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
23831 part of the 2007-06-27 change to syms_of_fileio.
23832
238332007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23834
23835 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
23836 Check WINDOWP before using XWINDOW. Consolidate return statements.
23837
238382007-06-27 Richard Stallman <rms@gnu.org>
23839
23840 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
23841
238422007-06-27 Juanma Barranquero <lekktu@gmail.com>
23843
23844 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
23845
238462007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23847
23848 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
23849 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
23850 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
23851 (_free_internal, memalign): Use them.
23852 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
23853 Initialize to PTHREAD_MUTEX_INITIALIZER.
23854 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
23855 (morecore_nolock): Rename from morecore. All uses changed.
23856 Use only nolock versions of internal allocation functions.
23857 (_malloc_internal_nolock, _realloc_internal_nolock)
23858 (_free_internal_nolock): New functions created from
23859 _malloc_internal, _realloc_internal, and _free_internal.
23860 (_malloc_internal, _realloc_internal, _free_internal): Use them.
23861 Copy hook value to automatic variable before its use.
23862 (memalign): Copy hook value to automatic variable before its use.
23863
238642007-06-26 Kenichi Handa <handa@m17n.org>
23865
23866 * coding.c (Ffind_operation_coding_system): Docstring improved.
23867 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
23868
238692007-06-25 David Kastrup <dak@gnu.org>
23870
23871 * keymap.c (Fcurrent_active_maps): Add `position' argument.
23872 (Fwhere_is_internal): Adjust call to `current-active-maps' to
23873 cater for additional parameter.
23874
23875 * keymap.h: Adjust number of parameters to `current-active-maps'.
23876
23877 * doc.c (Fsubstitute_command_keys): Adjust call of
23878 `current-active-maps'.
23879
238802007-06-25 David Kastrup <dak@gnu.org>
23881
23882 * callint.c (Fcall_interactively): Make the parsing of interactive
23883 specs somewhat more readable.
23884
238852007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23886
23887 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
23888 to scroll bar gap also when bitmap fills fringe. Draw only foreground
23889 if extended background has already been filled.
23890
238912007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23892
23893 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
23894 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
23895
23896 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
23897 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
23898 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
23899 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
23900 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
23901 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
23902 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
23903 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
23904 Run timers during dialog popup.
23905 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
23906
239072007-06-21 Jason Rumney <jasonr@gnu.org>
23908
23909 * image.c (convert_mono_to_color_image): Swap fore and background.
23910
239112007-06-20 Jason Rumney <jasonr@gnu.org>
23912
23913 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
23914 (w32_free_bdf_font): Unmap memory not handle.
23915
239162007-06-20 Sam Steingold <sds@gnu.org>
23917
23918 * gmalloc.c (__morecore): Fix the declaration to comply with the
23919 definition.
23920
239212007-06-20 Juanma Barranquero <lekktu@gmail.com>
23922
23923 * w32term.c (w32_delete_display): Remove leftover declaration.
23924 (w32_define_cursor, w32_initialize): Make static.
23925
23926 * w32.c (_wsa_errlist): Fix typo in error message.
23927 (init_environment): Ignore any environment variable from the
23928 registry having a null value.
23929
239302007-06-20 Glenn Morris <rgm@gnu.org>
23931
23932 * Makefile.in (LIBGIF): Default to -lgif.
23933
239342007-06-17 Jason Rumney <jasonr@gnu.org>
23935
23936 * w32menu.c (add_menu_item): Don't use multibyte string functions on
23937 unicode strings.
23938
239392007-06-16 Juanma Barranquero <lekktu@gmail.com>
23940
23941 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
23942 Fix typo in docstring.
23943
239442007-06-16 Eli Zaretskii <eliz@gnu.org>
23945
23946 * w32menu.c (add_menu_item): Escape `&' characters in menu items
23947 and their keybindings.
23948
239492007-06-15 Chong Yidong <cyd@stupidchicken.com>
23950
23951 * composite.c (update_compositions): Fix last fix.
23952
239532007-06-14 Jason Rumney <jasonr@gnu.org>
23954
23955 * w32.c (get_process_times_fn): New function pointer.
23956 (globals_of_w32): Intialize it if present in kernel32.dll.
23957 (w32_get_internal_run_time): New function.
23958
23959 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
23960
239612007-06-14 Kenichi Handa <handa@etlken.m17n.org>
23962
23963 * composite.c (update_compositions): Check the validness of
23964 compositions.
23965
239662007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23967
23968 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
23969 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
23970
23971 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
23972 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
23973
23974 * macgui.h (USE_MAC_TOOLBAR): New define.
23975
23976 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
23977 Return immediately unless popup is activated.
23978
23979 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
23980 background to scroll bar gap.
23981 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
23982 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
23983 scroll bars on frame edge. Check fringe background extension.
23984 Don't clear extended fringe background area.
23985 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
23986 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
23987 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
23988 [USE_MAC_TOOLBAR]: New macros.
23989 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
23990 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
23991 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
23992 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
23993 [USE_MAC_TOOLBAR]: New functions.
23994 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
23995 manually if previous repositioning has failed.
23996 (mac_handle_keyboard_event): Use precomputed event kind.
23997 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
23998 as tool bar item click. Handle mouse movement over tool bar items.
23999
24000 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
24001 toolbar_win_gravity.
24002 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
24003 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
24004 Add externs.
24005
24006 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
24007 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
24008
240092007-06-14 Chong Yidong <cyd@stupidchicken.com>
24010
24011 * image.c (search_image_cache): Remove unused variable.
24012
240132007-06-13 Chong Yidong <cyd@stupidchicken.com>
24014
24015 * xfns.c, xmenu.c: Link to xaw3d if available.
24016
240172007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24018
24019 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
24020 frame_foreground and frame_background.
24021
24022 * image.c (lookup_image): Save frame foreground and background colors.
24023 (search_image_cache): Check if saved and current frame colors match.
24024
240252007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
24026
24027 * regex.c (regex_compile): Remove the `regnum' counter.
24028 Use bufp->re_nsub instead. Add support for \(?N:RE\).
24029
240302007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
24031
24032 * term.c: Include intervals.h to declare Fget_text_property.
24033
240342007-06-10 Jason Rumney <jasonr@gnu.org>
24035
24036 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
24037
240382007-06-08 Juanma Barranquero <lekktu@gmail.com>
24039
24040 * callint.c (Fcall_interactively):
24041 * editfns.c (Fdelete_and_extract_region):
24042 * fileio.c (Fread_file_name):
24043 * fns.c (Fmapconcat):
24044 * keyboard.c (cmd_error_internal):
24045 * keymap.c (Fkey_description):
24046 * lread.c (openp):
24047 * minibuf.c (read_minibuf):
24048 * search.c (wordify):
24049 * sunfns.c (sel_read):
24050 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
24051 * xfns.c (x_default_scroll_bar_color_parameter):
24052 * xmenu.c (menu_help_callback):
24053 * xselect.c (Fx_get_atom_name):
24054 * xterm.c (x_term_init): Use empty_unibyte_string.
24055
240562007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
24057
24058 * alloc.c (init_strings): Initialize canonical empty strings.
24059 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
24060 canonical empty string when the requested size is 0.
24061
24062 * emacs.c (empty_unibyte_string): Rename from empty_string.
24063 (empty_multibyte_string): New canonical empty string.
24064 (syms_of_emacs): Don't initialize empty_string.
24065
24066 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
24067 string, if appropriate.
24068 (empty_unibyte_string, empty_multibyte_string): New externs.
24069 (empty_string): Remove extern.
24070
24071 * lread.c (syms_of_lread): Use empty_unibyte_string.
24072
240732007-06-07 Jason Rumney <jasonr@gnu.org>
24074
24075 * s/ms-w32.h: Don't define HAVE_TZNAME.
24076
24077 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
24078
240792007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24080
24081 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
24082
24083 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
24084 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
24085
24086 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
24087 Don't call next handler.
24088 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
24089 Remove argument. Install handler to application.
24090 (set_frame_menubar): Don't change deep_p.
24091 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
24092 FRAME_OUTER_TO_INNER_DIFF_Y.
24093 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
24094 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
24095 [HAVE_DIALOGS]: New macros.
24096 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
24097 Use them.
24098 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
24099
24100 * macselect.c [MAC_OSX] (install_service_handler): Rename from
24101 init_service_handler. All callers changed. Return OSStatus value.
24102
24103 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
24104 All callers changed so as not to call SetPortWindowPort.
24105 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
24106 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
24107 mac_draw_string_common.
24108 (mac_draw_image_string_qd): Likewise.
24109 (mac_draw_string_common): Use them. Add INLINE.
24110 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
24111 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
24112 GetGlobalMouse.
24113 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
24114 and FRAME_OUTER_TO_INNER_DIFF_Y.
24115 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
24116 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
24117 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
24118 repositioning window to mac_handle_window_event.
24119 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
24120 saving window location to mac_handle_window_event
24121 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
24122 (install_menu_target_item_handler): Remove argument in extern.
24123 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
24124 Also accept command events.
24125 (do_keystroke): New function created from XTread_socket.
24126 (init_command_handler): Remove functions.
24127 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
24128 and save window location by kEventWindowShowing and kEventWindowHiding
24129 handlers here. Don't call next handler for window state change and
24130 focus events.
24131 (mac_handle_application_event, mac_handle_keyboard_event)
24132 [TARGET_API_MAC_CARBON]: New functions.
24133 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
24134 kEventWindowShowing and kEventWindowHiding events. Move installation
24135 of mouse, font, text input and menu target item handlers to
24136 install_application_handler.
24137 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
24138 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
24139 New function.
24140 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
24141 Register it.
24142 (XTread_socket) [TARGET_API_MAC_CARBON]:
24143 Consolidate SendEventToEventTarget calls.
24144 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
24145 Move application activation handler to mac_handle_application_event.
24146 Move keyboard handler to mac_handle_keyboard_event.
24147 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
24148 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
24149 init_command_handler. Call install_application_handler.
24150
24151 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
24152 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
24153
241542007-06-07 Glenn Morris <rgm@gnu.org>
24155
24156 * emacs.c (main): Use `emacs-copyright' in --version output.
24157
241582007-06-06 Chong Yidong <cyd@stupidchicken.com>
24159
24160 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
24161
241622007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24163
24164 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
24165
24166 * macgui.h: Replace WindowPtr with WindowRef.
24167
24168 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
24169 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
24170 Replace ControlHandle with ControlRef.
24171 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
24172
24173 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
24174 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
24175 Replace ControlHandle with ControlRef.
24176 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
24177 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
24178
24179 * macterm.h (struct scroll_bar): Rename member control_handle_low
24180 and control_handle_high to control_ref_low and control_ref_high.
24181 All uses changed.
24182 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
24183 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
24184 respectively. All uses changed.
24185 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
24186 (install_window_handler, remove_window_handler): Replace WindowPtr
24187 with WindowRef in externs.
24188
241892007-06-05 Juanma Barranquero <lekktu@gmail.com>
24190
24191 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
24192
241932007-06-03 Nick Roberts <nickrob@snap.net.nz>
24194
24195 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
24196
24197 * frame.c (Fmouse_position, Fmouse_pixel_position):
24198 Condition on HAVE_GPM too.
24199
24200 * term.c (term_mouse_highlight): Remove unused variables.
24201 (Fterm_open_connection): Set gpm_zerobased to 1.
24202 (term_mouse_movement, term_mouse_click, handle_one_term_event):
24203 Use zero based co-ordinates.
24204 (handle_one_term_event): Report a drag as mouse movement too.
24205
24206 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
24207
242082007-06-03 Chong Yidong <cyd@stupidchicken.com>
24209
24210 * image.c (search_image_cache): New function. Require background
24211 color match if background color is unspecified in the image spec.
24212 (uncache_image, lookup_image): Use it.
24213
242142007-06-01 Juanma Barranquero <lekktu@gmail.com>
24215
24216 * window.c (Fshrink_window): Reflow docstring.
24217
242182007-06-02 Chong Yidong <cyd@stupidchicken.com>
24219
24220 * Version 22.1 released.
24221
242222007-06-01 Richard Stallman <rms@gnu.org>
24223
24224 * xfns.c (x_encode_text): Add GCPRO.
24225
242262007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24227
24228 * xfns.c (x_set_name_internal): Save encoded name before
24229 x_encode_text in case string data is relocated.
24230
242312007-05-31 Richard Stallman <rms@gnu.org>
24232
24233 * buffer.c (syms_of_buffer): Doc fix.
24234
242352007-05-30 Nick Roberts <nickrob@snap.net.nz>
24236
24237 * sysdep.c (init_sys_modes): Add rather than replace with
24238 O_NONBLOCK.
24239
24240 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
24241 term_mouse_moveto.
24242
24243 * termhooks.h (term_mouse_moveto): New extern.
24244
24245 * term.c (mouse_face_window): Rename...
24246 (Qmouse_face_window): ...to this.
24247 (term_show_mouse_face, term_clear_mouse_face)
24248 (term_mouse_highlight): Use Qmouse_face_window.
24249 (term_mouse_moveto): New function.
24250 (term_mouse_position): Make it work.
24251 (syms_of_term): Uncomment assignment to mouse_position_hook.
24252 Staticpro Qmouse_face_window.
24253
242542007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24255
24256 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
24257 around current_column call.
24258
242592007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
24260
24261 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
24262 * xdisp.c (next_element_from_buffer):
24263 * window.c (delete_window):
24264 * term.c (term_mouse_highlight):
24265 * msdos.c (getdefdir):
24266 * macterm.c (mac_create_bitmap_from_bitmap_data)
24267 (init_font_name_table):
24268 * fns.c (Fsxhash):
24269 * data.c (Fmake_local_variable):
24270 * ccl.c (ccl_driver): Likewise.
24271
242722007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24273
24274 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
24275 Call mac_wakeup_from_rne on window size change.
24276
242772007-05-25 Chong Yidong <cyd@stupidchicken.com>
24278
24279 * image.c (uncache_image): Fix typo.
24280
242812007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
24282
24283 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
24284
242852007-05-22 Richard Stallman <rms@gnu.org>
24286
24287 * xterm.c (x_connection_closed): Remove NO_RETURN.
24288
242892007-05-22 Martin Rudalics <rudalics@gmx.at>
24290
24291 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
24292
242932007-05-21 Chong Yidong <cyd@stupidchicken.com>
24294
24295 * image.c (uncache_image): New function.
24296 (Fimage_refresh): New function.
24297
242982007-05-20 Jan Djärv <jan.h.d@swipnet.se>
24299
24300 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
24301
243022007-05-20 Nick Roberts <nickrob@snap.net.nz>
24303
24304 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
24305 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
24306
243072007-05-20 Nick Roberts <nickrob@snap.net.nz>
24308
24309 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
24310 conditional on [HAVE_GPM_H].
24311
243122007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
24313
24314 * syntax.c (skip_chars): Update syntax-table only after we checked that
24315 the new location is valid.
24316
243172007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24318
24319 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
24320 mac_get_window_bounds.
24321
243222007-05-20 Nick Roberts <nickrob@snap.net.nz>
24323
24324 * Makefile.in (LIBGPM): Allow it to be set from configure.
24325 If set then link Emacs with it.
24326
24327 * config.in: Regenerate.
24328
24329 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
24330 New externs.
24331
24332 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
24333 Include gpm.h.
24334 (handle_one_term_event, term_gpm): New externs.
24335
24336 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
24337 and allow it to be interrupted by SIGIO.
24338
24339 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
24340 (wait_reading_process_output): Wait on gpm_fd too.
24341 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
24342 (add_gpm_wait_descriptor_called_flag): New variable.
24343 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
24344
24345 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
24346 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
24347 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
24348 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
24349 (make_lispy_event): Add case GPM_CLICK_EVENT.
24350 (read_avail_input): Handle mouse input.
24351
24352 * term.c (write_glyphs_with_face): New function.
24353 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
24354 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
24355 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
24356 (mouse_face_face_id, term_gpm, pos_x, pos_y)
24357 (last_mouse_x, last_mouse_y): New variables.
24358 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
24359 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
24360 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
24361 (Fterm_close_connection): New functions.
24362 (term_init): Initialise mouse_face_window.
24363
243642007-05-19 Chong Yidong <cyd@stupidchicken.com>
24365
24366 * xdisp.c (redisplay_window): If first window line is a
24367 continuation line, recompute the new window start instead of
24368 recentering.
24369
243702007-05-18 Glenn Morris <rgm@gnu.org>
24371
24372 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
24373 Suggested by Alfred M. Szmidt <ams@gnu.org>.
24374
243752007-05-17 Glenn Morris <rgm@gnu.org>
24376
24377 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
24378
243792007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24380
24381 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
24382 dead key repeat and up events.
24383
243842007-05-14 Chong Yidong <cyd@stupidchicken.com>
24385
24386 * image.c (pbm_load): Check image size for monochrome pbm.
24387
243882007-05-13 Chong Yidong <cyd@stupidchicken.com>
24389
24390 * xterm.c (XTread_socket): Revert last change.
24391
243922007-05-12 Chong Yidong <cyd@stupidchicken.com>
24393
24394 * image.c (pbm_load): Correctly check image size for greyscale pbm.
24395
24396 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
24397
243982007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
24399
24400 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
24401 mixup (YAILOM).
24402
244032007-05-07 Andreas Schwab <schwab@suse.de>
24404
24405 * keymap.c (Flookup_key): Fix typo in last change.
24406
244072007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
24408
24409 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
24410 mapping for unibyte strings.
24411
244122007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24413
24414 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
24415 (Fx_popup_dialog) [MAC_OSX]: Likewise.
24416
244172007-04-29 Richard Stallman <rms@gnu.org>
24418
24419 * insdel.c (replace_range): For undo, record insertion first.
24420
244212007-04-29 Andreas Schwab <schwab@suse.de>
24422
24423 * lisp.h (VECSIZE): Use OFFSETOF.
24424
244252007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24426
24427 * xdisp.c (try_window_reusing_current_matrix): Fix number of
24428 disabled lines.
24429
244302007-04-28 Richard Stallman <rms@gnu.org>
24431
24432 * lread.c (read_escape): In a string, \s is always space.
24433
244342007-04-27 Jan Djärv <jan.h.d@swipnet.se>
24435
24436 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
24437
24438 * gtkutil.c (xg_update_menubar, create_menus): Create empty
24439 submenu for menu bar items.
24440
24441See ChangeLog.10 for earlier changes.
24442
24443;; Local Variables:
24444;; coding: utf-8
24445;; add-log-time-zone-rule: t
aac0c6e3
MR
24446;; End:
24447
e3eb1dae 24448 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
24449
24450 This file is part of GNU Emacs.
24451
24452 GNU Emacs is free software: you can redistribute it and/or modify
24453 it under the terms of the GNU General Public License as published by
24454 the Free Software Foundation, either version 3 of the License, or
24455 (at your option) any later version.
24456
24457 GNU Emacs is distributed in the hope that it will be useful,
24458 but WITHOUT ANY WARRANTY; without even the implied warranty of
24459 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24460 GNU General Public License for more details.
24461
24462 You should have received a copy of the GNU General Public License
24463 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
24464
24465;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40