* net/dbus.el (dbus-send-signal): Declare function.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
438105ed
JB
12010-07-04 Juanma Barranquero <lekktu@gmail.com>
2
3 Fix prototypes.
4
e5447b22 5 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed
JB
6 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
7 * fileio.c (read_non_regular, read_non_regular_quit): Pass Lisp_Object,
8 as required by internal_condition_case_1.
9 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
10 (analyse_first): Fix "const const".
e5447b22
JB
11 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
12 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 13
971de7fb
DN
142010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
15
16 * alloc.c: Convert function definitions to standard C.
17 * atimer.c:
18 * bidi.c:
19 * bytecode.c:
20 * callint.c:
21 * callproc.c:
22 * casefiddle.c:
23 * casetab.c:
24 * category.c:
25 * ccl.c:
26 * character.c:
27 * charset.c:
28 * chartab.c:
29 * cmds.c:
30 * coding.c:
31 * composite.c:
32 * data.c:
33 * dbusbind.c:
34 * dired.c:
35 * dispnew.c:
36 * doc.c:
37 * doprnt.c:
38 * ecrt0.c:
39 * editfns.c:
40 * fileio.c:
41 * filelock.c:
42 * filemode.c:
43 * fns.c:
44 * font.c:
45 * fontset.c:
46 * frame.c:
47 * fringe.c:
48 * ftfont.c:
49 * ftxfont.c:
50 * gtkutil.c:
51 * indent.c:
52 * insdel.c:
53 * intervals.c:
54 * keymap.c:
55 * lread.c:
56 * macros.c:
57 * marker.c:
58 * md5.c:
59 * menu.c:
60 * minibuf.c:
61 * prefix-args.c:
62 * print.c:
63 * ralloc.c:
64 * regex.c:
65 * region-cache.c:
66 * scroll.c:
67 * search.c:
68 * sound.c:
69 * strftime.c:
70 * syntax.c:
71 * sysdep.c:
72 * termcap.c:
73 * terminal.c:
74 * terminfo.c:
75 * textprop.c:
76 * tparam.c:
77 * undo.c:
78 * unexelf.c:
79 * window.c:
80 * xfaces.c:
81 * xfns.c:
82 * xfont.c:
83 * xftfont.c:
84 * xgselect.c:
85 * xmenu.c:
86 * xrdb.c:
87 * xselect.c:
88 * xsettings.c:
89 * xsmfns.c:
90 * xterm.c: Likewise.
91
ae492bec
EZ
922010-07-03 Eli Zaretskii <eliz@gnu.org>
93
76ea4cc9
EZ
94 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
95 frames other than the initial one. Fix reversal of colors when
96 `reverse' is specified in the frame parameters. Call
97 update_face_from_frame_parameter instead of
98 internal-set-lisp-face-attribute. Initialize screen colors from
99 initial_screen_colors[] when f->default_face_done_p is zero,
100 instead of depending on being called with default-frame-alist as
101 the alist argument.
102
103 * xfaces.c (update_face_from_frame_parameter): Move out of
104 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
105 with HAVE_WINDOW_SYSTEM.
106
1e6255ae
EZ
107 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
108 to menu-bar-mode, if not set in the frame parameters or in
109 default-frame-alist.
110
ae492bec
EZ
111 * w32console.c (sys_tputs): Adjust argument list to prototype in
112 term.c.
113
3a35a84c
JB
1142010-07-03 Juanma Barranquero <lekktu@gmail.com>
115
116 * lisp.h (memory_warnings): Fix prototype.
117
118 * cm.h (evalcost): Fix prototype.
119
120 * cm.c (evalcost): Fix arg type.
121
c532d349
DN
1222010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
123
124 * term.c (term_clear_mouse_face, Fidentity):
125 * syssignal.h (signal_handler_t):
126 * lisp.h (memory_warnings):
127 * coding.h (preferred_coding_system):
128 * cm.h (evalcost):
129 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
130
c0b36d46
EZ
1312010-07-02 Eli Zaretskii <eliz@gnu.org>
132
133 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
134 from prototypes.
135
136 * msdos.h (load_pixmap): Don't define away.
137
383e0970
J
1382010-07-02 Jan Djärv <jan.h.d@swipnet.se>
139
f57e2426
J
140 * lisp.h:
141 * atimer.h: Remove define for P_.
142
143 * alloc.c: Remove __P and P_ from .c and .m files.
144 * atimer.c:
145 * buffer.c:
146 * callint.c:
147 * category.c:
148 * charset.c:
149 * chartab.c:
150 * cm.c:
151 * coding.c:
152 * composite.c:
153 * data.c:
154 * dired.c:
155 * dispnew.c:
156 * doc.c:
157 * editfns.c:
158 * emacs.c:
159 * eval.c:
160 * fileio.c:
161 * filelock.c:
162 * fns.c:
163 * font.c:
164 * fontset.c:
165 * frame.c:
166 * ftfont.c:
167 * ftxfont.c:
168 * gmalloc.c:
169 * gtkutil.c:
170 * image.c:
171 * indent.c:
172 * intervals.c:
173 * keyboard.c:
174 * keymap.c:
175 * lread.c:
176 * marker.c:
177 * menu.c:
178 * minibuf.c:
179 * print.c:
180 * process.c:
181 * scroll.c:
182 * search.c:
183 * sound.c:
184 * strftime.c:
185 * syntax.c:
186 * sysdep.c:
187 * term.c:
188 * terminal.c:
189 * textprop.c:
190 * unexalpha.c:
191 * w32console.c:
192 * w32fns.c:
193 * w32font.c:
194 * w32menu.c:
195 * w32term.c:
196 * w32uniscribe.c:
197 * window.c:
198 * xdisp.c:
199 * xfaces.c:
200 * xfns.c:
201 * xfont.c:
202 * xftfont.c:
203 * xmenu.c:
204 * xselect.c:
205 * xterm.c: Likewise.
206
383e0970 207 Remove P_ and __P macros.
f57e2426
J
208 * atimer.h: Remove P_ and __P macros.
209 * buffer.h:
383e0970
J
210 * category.h:
211 * ccl.h:
212 * character.h:
213 * charset.h:
214 * cm.h:
215 * coding.h:
216 * composite.h:
217 * dispextern.h:
218 * disptab.h:
9e892c8d 219 * dosfns.h:
383e0970
J
220 * font.h:
221 * fontset.h:
222 * frame.h:
223 * gtkutil.h:
224 * indent.h:
225 * intervals.h:
226 * keyboard.h:
227 * keymap.h:
228 * lisp.h:
229 * macros.h:
230 * md5.h:
231 * menu.h:
232 * msdos.h:
233 * nsterm.h:
234 * puresize.h:
235 * region-cache.h:
236 * syntax.h:
237 * syssignal.h:
238 * systime.h:
239 * termhooks.h:
9e892c8d 240 * w32font.h:
383e0970
J
241 * w32term.h:
242 * widget.h:
243 * window.h:
244 * xgselect.h:
245 * xsettings.h:
246 * xterm.h: Likewise.
247
98601119
DN
2482010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
249
d9170db5
DN
250 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
251
98601119
DN
252 Cleanup old code.
253 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
254 * syssignal.h: Remove code for Lynx, not supported anymore.
255 * vm-limit.c: Remove unused code the depends on emacs not being
256 defined and NO_LIM_DATA being defined.
257 * mem-limits.h: Remove dead code.
258
1f984e12
J
2592010-07-01 Jan Djärv <jan.h.d@swipnet.se>
260
c49d071a
J
261 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
262
9d5405ec
J
263 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
264 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
265
7a18115b
J
266 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
267 parameters, they are already absolute.
268
581a8100
J
269 * nsterm.m (x_set_window_size, initFrameFromEmacs): Renamed
270 FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
271
272 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGH
273
274 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar): Update
275 FRAME_TOOLBAR_HEIGHT.
276
1f984e12
J
277 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar): Add
278 BLOCK/UNBLOCK_INPUT so asserts don't trigger.
279
c1ef4455
CY
2802010-06-30 Chong Yidong <cyd@stupidchicken.com>
281
282 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
283 check default-frame-alist.
284
ce8f5a9a
AS
2852010-06-30 Andreas Schwab <schwab@linux-m68k.org>
286
287 * process.c (create_process): Avoid using invalid file descriptors.
288
289 * callproc.c (child_setup): Avoid closing a file descriptor twice.
290
bf935339
J
2912010-06-30 Jan Djärv <jan.h.d@swipnet.se>
292
293 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
294 Improve documentation. Return font regardless of use_system_font.
295 (syms_of_xsettings): Improve documentation for font-use-system-font.
296
769e9d47
KH
2972009-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
298
299 * xftfont.c (xftfont_open): Check font width one by one also when
300 spacing is dual.
301
302 * ftfont.c (ftfont_open): Ditto.
303
6259c2ec
GM
3042010-06-30 Glenn Morris <rgm@gnu.org>
305
a46007e9
GM
306 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
307
6259c2ec
GM
308 * Makefile.in (CANNOT_DUMP): Update for configure name change.
309
310 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
311 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
312 * s/darwin.h (SYSTEM_MALLOC):
313 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
314
5d1d3d04
J
3152010-06-29 Jan Djärv <jan.h.d@swipnet.se>
316
317 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
318 (ns_get_screen): Don't assign integer to f.
319 (Fx_display_color_cells): Declarations before statements.
320
e547b051
J
3212010-06-28 Jan Djärv <jan.h.d@swipnet.se>
322
5fc8e5bc
J
323 * xfns.c (x_default_font_parameter): Remove got_from_system
324 (Bug#6526).
325
e547b051
J
326 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
327 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
328 defines based on what configure finds.
329
330 * xterm.c (XTflash): Use gtk_widget_get_window.
331 (xg_scroll_callback): Use gtk_adjustment_get_upper and
332 gtk_adjustment_get_page_size.
333 (handle_one_xevent): Use gtk_widget_get_mapped.
334 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
335 messages.
336
337 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
338
339 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
340 HAVE_GTK_FILE_SELECTION_NEW.
341
342 * gtkutil.c (xg_display_open, xg_display_close): Remove
343 HAVE_GTK_MULTIDISPLAY, it is always defined.
344 (xg_display_open): Return type is void.
345 (gtk_widget_set_has_window)
346 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
347 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
348 (gtk_adjustment_set_page_increment)
349 (gtk_adjustment_get_step_increment): #define these if not found
350 by configure.
351 (remove_submenu): New define based on Gtk+ version.
352 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
353 gtk_widget_get_window.
354 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
355 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
356 (create_dialog): Use gtk_dialog_get_action_area and
357 gtk_dialog_get_content_area.
358 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
359 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
360 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
361 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
362 g_object_ref and g_object_unref.
363 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
364 gtk_widget_get_sensitive.
365 (xg_update_submenu): Use remove_submenu.
366 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
367 properties instead to get old x and y position.
368 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
369 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 370 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
371 (xg_get_tool_bar_widgets): New function.
372 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
373 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
374 (toolbar_set_orientation): New #define based on if configure
375 finds gtk_orientable_set_orientation.
376 (xg_create_tool_bar): Call toolbar_set_orientation.
377 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
378 instead of gtk_box_pack_start_defaults.
379
b9229673
CY
3802010-06-28 Chong Yidong <cyd@stupidchicken.com>
381
382 * cmds.c (Fdelete_backward_char): Move into Lisp.
383
bbc803b0
DN
3842010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
385
386 * s/freebsd.h (BSD4_2): Remove redundant definition.
387 bsd-common.h defines it already.
388
6431f2e6
CY
3892010-06-27 Chong Yidong <cyd@stupidchicken.com>
390
391 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
392 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
393 tool-bar-mode, which are now set using these X resources at
394 startup, to determine the defaults (Bug#2249).
395
396 * w32fns.c (Fx_create_frame):
397 * nsfns.m (Fx_create_frame): Likewise.
398
399 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
400
8c079ebb
JB
4012010-06-24 Juanma Barranquero <lekktu@gmail.com>
402
403 * gtkutil.c (xg_update_scrollbar_pos):
404 Avoid C99 mid-block variable declaration.
405
e9b7ab96
JD
4062010-06-22 Jan Djärv <jan.h.d@swipnet.se>
407
bc869eca
JD
408 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
409
2b7e356a 410 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
411
412 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
413 if height is less than scroll bar min size.
414 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
415
e9b7ab96
JD
416 * xfns.c (x_default_font_parameter): Try to open font from system
417 before using it (bug#6478). Rename got_from_gconf to got_from_system.
418
32a679fd
JD
4192010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
420
421 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
422
70c4cfbb
EZ
4232010-06-20 Eli Zaretskii <eliz@gnu.org>
424
425 * xdisp.c (try_scrolling): When scroll-conservatively is set to
426 most-positive-fixnum, be extra accurate when scrolling window
427 start, to avoid missing the cursor line.
428
ad5a12b5
EZ
4292010-06-19 Eli Zaretskii <eliz@gnu.org>
430
431 * xdisp.c (try_scrolling): Compute the limit for searching point
432 in forward scroll from scroll_max, instead of an arbitrary limit
433 of 10 screen lines. See
434 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
435 and
436 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
437 for details.
438
2a64315a 4392010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
440
441 * editfns.c (Fbyte_to_string): Pacify compiler.
442
288cf4e9
SM
4432010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
444
445 * lread.c (read1): Phase out old-style backquotes a bit more.
446
6e6e5760
EZ
4472010-06-12 Eli Zaretskii <eliz@gnu.org>
448
cbc4fd20
EZ
449 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
450 bidimirror.h.
451
452 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
453
317fbf33
EZ
454 * bidi.c (bidi_initialize): Remove explicit initialization of
455 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 456 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 457 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
458
459 * biditype.h: New file.
460
cbc4fd20
EZ
461 * bidimirror.h: New file.
462
6e6e5760
EZ
463 * window.c (syms_of_window): Doc fix (bug#6409).
464
4176cba2
RF
4652010-06-12 Romain Francoise <romain@orebokech.com>
466
467 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
468 ediff-hook.
469
cb4bfcb5
GM
4702010-06-10 Glenn Morris <rgm@gnu.org>
471
64c60c2f
GM
472 * editfns.c (Fbyte_to_string): Pacify compiler.
473
cb4bfcb5
GM
474 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
475
e454a4a3
SM
4762010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
477
478 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
479 Check `object's type before accessing its guts.
480
c1b1acc2
DN
4812010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
482
483 * s/usg5-4.h: Fix previous change.
484 Suggested by Lawrence Mitchell <wence@gmx.li>
485
657d4c0b
AS
4862010-06-08 Andreas Schwab <schwab@linux-m68k.org>
487
488 * minibuf.c (Fall_completions): Add more checks.
489
9b27fd9f
JB
4902010-06-08 Juanma Barranquero <lekktu@gmail.com>
491
492 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
493
a99ebb40
DN
4942010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
495
d7c5d87d
DN
496 * lread.c (X_OK): Remove, unused.
497
0263a941
DN
498 * dispnew.c: Remove obsolete comment.
499
a99ebb40
DN
500 Remove INCLUDED_FCNTL.
501 * xterm.c (INCLUDED_FCNTL):
502 * callproc.c (INCLUDED_FCNTL):
503 * alloc.c (INCLUDED_FCNTL):
504 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
505 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
506
13b5221f
MR
5072010-06-07 Martin Rudalics <rudalics@gmx.at>
508
509 * window.c (Fselect_window): Move `record_buffer' up to the
510 beginning of this function, so the buffer gets recorded
511 even if the selected window does not change.
512 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
513
5220357f
JB
5142010-06-07 Juanma Barranquero <lekktu@gmail.com>
515
516 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
517 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
518
3085237c
DN
5192010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
520
521 Remove BSTRING related code, all platforms define it.
522 * s/usg5-4.h (BSTRING): Remove definition.
523 * s/template.h (BSTRING):
524 * s/msdos.h (BSTRING):
525 * s/ms-w32.h (BSTRING):
526 * s/hpux10-20.h (BSTRING):
527 * s/gnu-linux.h (BSTRING):
528 * s/darwin.h (BSTRING):
529 * s/cygwin.h (BSTRING):
530 * s/bsd-common.h (BSTRING):
531 * s/aix4-2.h (BSTRING): Likewise.
532 * sysdep.c: Remove code depending on BSTRING not being defined.
533
409f2919
JB
5342010-06-05 Juanma Barranquero <lekktu@gmail.com>
535
536 Remove obsolete macro BASE_LEADING_CODE_P.
537 * character.h (BASE_LEADING_CODE_P): Remove.
538 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
539 * buffer.c (Fset_buffer_multibyte):
540 * indent.c (scan_for_column, compute_motion):
541 * insdel.c (count_combining_before, count_combining_after):
542 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
543
087fc47a
JB
5442010-06-04 Juanma Barranquero <lekktu@gmail.com>
545
546 Turn `directory-sep-char' into a noop.
547
548 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
549 (DIRECTORY_SEP): Define unconditionally.
550
551 * s/ms-w32.h (DIRECTORY_SEP): Remove.
552
553 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
554 call dostounix_filename directly.
555
556 * fileio.c (CORRECT_DIR_SEPS): Remove.
557 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
558 (Fsubstitute_in_file_name): Use dostounix_filename instead.
559 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
560 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
561
562 * w32proc.c (CORRECT_DIR_SEPS): Remove.
563 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
564
0eb7675e
AS
5652010-06-03 Andreas Schwab <schwab@linux-m68k.org>
566
567 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
f07b083d 568 address. (Bug#6346)
0eb7675e 569
78edd3b7
JB
5702010-06-03 Juanma Barranquero <lekktu@gmail.com>
571
572 * ccl.c (Fccl_program_p): Fix typo in docstring.
573
eb697db5
DN
5742010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
575
576 Move UNEXEC definition to autoconf.
577 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
578 * s/sol2-10.h (UNEXEC):
579 * s/irix6-5.h (UNEXEC):
580 * s/hpux10-20.h (UNEXEC):
581 * s/gnu-linux.h (UNEXEC):
582 * s/darwin.h (UNEXEC):
583 * s/cygwin.h (UNEXEC):
584 * s/bsd-common.h (UNEXEC):
585 * s/aix4-2.h (UNEXEC):
586 * m/alpha.h (UNEXEC): Likewise.
587 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
588
aa3830c4
JB
5892010-06-03 Juanma Barranquero <lekktu@gmail.com>
590
591 Remove obsolete pre-unicode2 macros.
592 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
593 * composite.c (composition_reseat_it):
594 * data.c (Faset):
595 * fns.c (Ffillarray):
596 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
597 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
598
d234d13e
JL
5992010-06-03 Juri Linkov <juri@jurta.org>
600
601 * buffer.c (Fother_buffer): Add CHECK_FRAME.
602 (Fswitch_to_buffer): Remove unused variable `err'.
603
0d4bcf4d
GM
6042010-06-03 Glenn Morris <rgm@gnu.org>
605
e23dc1e2
GM
606 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
607
05b09564
GM
608 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
609 now that AH_BOTTOM does it.
610
824e2978
GM
611 * m/hp800.h (HAVE_ALLOCA):
612 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
613
0d4bcf4d
GM
614 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
615 Remove NOT_C_CODE tests, it is always true now.
616
c55d2abf
DN
6172010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
618
08a494a3
DN
619 Fix config.h includes.
620 * xsettings.c:
621 * xgselect.c:
622 * nsterm.m:
623 * nsselect.m:
624 * nsimage.m:
625 * nsfont.m:
626 * nsfns.m:
627 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
628 other files do.
629
75934b1d
DN
630 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
631
9f32a766
DN
632 * s/sol2-6.h: Remove obsolete comments.
633
c55d2abf
DN
634 Remove unnecessary alloca.h includes.
635 * keymap.c: Do not include alloca.h, config.h does that.
636 * sysdep.c: Likewise. Do not define fwrite, not used.
637
06ac62b4
SM
6382010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
639
640 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
641 the HAVE_TERMIO where it belongs (bug#6149).
642
1ab8293c
SM
6432010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
644
645 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
646 of bug#6305).
647
6dcfd253
EZ
6482010-05-30 Eli Zaretskii <eliz@gnu.org>
649
650 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
651 state is always cached (bug#6306).
652
6d26bbb2
EZ
6532010-05-29 Eli Zaretskii <eliz@gnu.org>
654
06fa4a23
EZ
655 Fix cursor motion in bidi-reordered continued lines.
656 * xdisp.c (try_cursor_movement): Backup to non-continuation line
657 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
658 over continuation lines in bidi-reordered buffers. Return
659 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
660 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
661
f5783df3
MA
6622010-05-28 Michael Albinus <michael.albinus@gmx.de>
663
664 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
665
7d56b2dd
KH
6662010-05-28 Kenichi Handa <handa@m17n.org>
667
668 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
669 Don't sheck SPEC if it is nil.
670 (font_list_entities): Call font_delete_unmatched if
b925d231 671 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 672
e58d4ff7
GM
6732010-05-28 Glenn Morris <rgm@gnu.org>
674
675 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
676
f1a5d776
CY
6772010-05-27 Chong Yidong <cyd@stupidchicken.com>
678
679 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
680 whether to trash.
681 (internal_delete_file, Frename_file): Callers changed.
682 (delete_by_moving_to_trash): Doc fix.
683 (Fdelete_directory_internal): Don't move to trash.
684
685 * callproc.c (delete_temp_file):
686 * buffer.c (Fkill_buffer): Callers changed.
687
688 * lisp.h: Update prototype.
689
f44a59e6
CY
6902010-05-27 Chong Yidong <cyd@stupidchicken.com>
691
692 * xdisp.c (redisplay_window): After redisplay, check if point is
693 still valid before setting it (Bug#6177).
694
81ac4f35
GM
6952010-05-27 Glenn Morris <rgm@gnu.org>
696
697 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
698 Convert comments to Makefile format.
699
700 * Makefile.in (bootstrap-clean): No more Makefile.c.
701
ccd89fb3
GM
7022010-05-26 Glenn Morris <rgm@gnu.org>
703
90278cb6
GM
704 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
705 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
706
ccd89fb3
GM
707 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
708 Remove.
709 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
710
b7050583
KH
7112010-05-26 Kenichi Handa <handa@m17n.org>
712
713 * composite.c (composition_compute_stop_pos): Fix condition for
714 backward scanning.
715
e5458003
GM
7162010-05-25 Glenn Morris <rgm@gnu.org>
717
c345fe90
GM
718 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
719 Move before TEMACS_LDFLAGS.
720 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
721 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
722
2e0689ab
GM
723 * Makefile.in (NOT_C_CODE): No longer define.
724 (config.h): No longer include.
725
8009a5e8
GM
726 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
727 variables it may reference.
728
e5458003
GM
729 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
730 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
731
10f72a37
KH
7322010-05-25 Kenichi Handa <handa@m17n.org>
733
734 * dispextern.h (struct composition_it): New members rule_idx and
735 charpos.
736
737 * xdisp.c (set_iterator_to_next): While scanning backward, assume
738 that the character positions of IT point the last character of the
739 current grapheme cluster.
740 (next_element_from_composition): Don't change character positions
741 of IT.
742 (append_composite_glyph): Set glyph->charpos to
743 it->cmp_it.charpos.
744
745 * composite.c (autocmp_chars): Change the first argument to RULE,
746 and try composition with RULE only.
747 (composition_compute_stop_pos): Record the index number of the
748 composition rule in CMP_IT->rule_idx.
749 (composition_reseat_it): Call autocmp_chars repeatedly until the
750 correct rule of the composition is found.
751 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
752 is at the last character of the current grapheme cluster when
753 CMP_IT->reversed_p is nonzero.
754
171eda53 7552010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 756
171eda53
SM
757 * editfns.c (Fbyte_to_string): New function.
758
66a9f7f4
SM
7592010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
760
761 * process.c (Fmake_network_process): Set :host to nil if it's not used.
762 Suggested by Masatake YAMATO <yamato@redhat.com>.
763
d8c315d1
EZ
7642010-05-23 Eli Zaretskii <eliz@gnu.org>
765
171eda53 766 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 767
f5b416d2 7682010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
769
770 * s/netbsd.h: If terminfo is found, use it in preference to
771 termcap. (Bug#6190) [Backport from trunk]
772
0416466c
EZ
7732010-05-19 Eli Zaretskii <eliz@gnu.org>
774
11117830 775 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
776
777 * dispextern.h (struct glyph_row): New members minpos and maxpos.
778 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
779 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
780 and maxpos members instead of start.pos and end.pos, respectively.
781
782 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
783 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
784 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
785 (try_window_reusing_current_matrix, try_window_id):
786 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
787 (init_from_display_pos, init_iterator): Use EMACS_INT for
788 character and byte positions.
66a9f7f4 789 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
790 arguments for minimum and maximum buffer positions seen by
791 display_line for this row. Don't use iterator to find the
792 position following the maximum one; instead, increment the
11117830
EZ
793 position found by display_line directly. Fix logic; eol_pos
794 should be tested before the rest. Handle the case of characters
795 delivered from display vector (bug#6036). Fix tests related to
796 it->method. Handle the truncated_on_right_p rows.
797 (RECORD_MAX_MIN_POS): New macro.
798 (display_line): Use it to record the minimum and maximum buffer
799 positions for glyphs in the row being assembled. Record the
800 position of the newline that terminates the line. If word wrap is
801 in effect, restore minimum and maximum positions seen up to the
802 wrap point, when iterator returns to it.
803 (try_window_reusing_current_matrix): Give up if in bidi-reordered
804 row and cursor not already at point. Restore original pre-bidi
805 code for unidirectional buffers.
d36fe237
EZ
806
807 * dispnew.c (increment_row_positions, check_matrix_invariants):
808 Increment and check row->start.pos and row->end.pos, in addition
809 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
810
11117830
EZ
811 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
812 Display truncated_on_left_p and truncated_on_right_p flags.
813 Formatting fixes.
814 (pmtxrows): Display the ordinal number of each row. Don't display
815 rows beyond the last one.
816
817 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
818 it is not copied by bidi_copy_it.
819
6e83d800
EZ
8202010-05-22 Eli Zaretskii <eliz@gnu.org>
821
822 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
823 (Bug#6237)
824
110683ad
CY
8252010-05-22 Chong Yidong <cyd@stupidchicken.com>
826
827 * image.c (Fimage_flush): Rename from image-refresh.
828
98fe5161
CY
8292010-05-21 Chong Yidong <cyd@stupidchicken.com>
830
831 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
832 just one window.
833
834 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
835 (clear_image_cache): If the number of cached images is unusually
836 large, decrease the cache eviction delay (Bug#6230).
837
e8752c66
GM
8382010-05-21 Glenn Morris <rgm@gnu.org>
839
66dbf213
GM
840 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
841 Move these rules to ns.mk.
842 * ns.mk: New file.
843
04384b2d
GM
844 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
845
e8752c66
GM
846 * Makefile.in (CANNOT_DUMP): New, set by configure.
847 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
848
2e2bbddb
JL
8492010-05-20 Juri Linkov <juri@jurta.org>
850
851 * fileio.c (Fdelete_file): Change interative spec to use
852 `read-file-name' like in `find-file-read-args' where the default
853 value is `default-directory' instead of `buffer-file-name'.
854 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
855
31c4aaf6
KR
8562010-05-20 Kevin Ryde <user42@zip.com.au>
857
858 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
859 (Voverriding_terminal_local_map, Vsystem_key_alist)
860 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
861
9d5cf9b6
GM
8622010-05-20 Glenn Morris <rgm@gnu.org>
863
864 * Makefile.in (DEPDIR): New constant.
865 (DEPFLAGS): Set with configure, not cpp.
866 (MKDEPDIR): New, set by configure.
867 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
868 (clean): Use $DEPDIR.
869 (deps_frag): Include from configure.
870 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
871 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
872
ead6f8f5
EZ
873 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
874 reallocation of the cache. (Bug#6210)
875
7f34aec3
GM
8762010-05-19 Glenn Morris <rgm@gnu.org>
877
d494e8f2
GM
878 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
879
c1d0dcfd
GM
880 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
881 (GNULIB_VAR): Remove.
882 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
883
884 * m/ibms390x.h (LINKER):
885 * m/macppc.h (LINKER) [GNU_LINUX]:
886 * s/aix4-2.h (ORDINARY_LINK):
887 * s/cygwin.h (LINKER):
888 * s/darwin.h (ORDINARY_LINK):
889 * s/gnu.h (ORDINARY_LINK):
890 * s/netbsd.h (LINKER):
891 * s/usg5-4.h (ORDINARY_LINK):
892 Move to configure.
893
7f34aec3
GM
894 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
895
754790b6
CY
8962010-05-18 Chong Yidong <cyd@stupidchicken.com>
897
898 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
899 prevent stack overflow if number of arguments is too large
900 (Bug#6214).
901
161e44d1
JB
9022010-05-18 Juanma Barranquero <lekktu@gmail.com>
903
904 * charset.c (load_charset_map_from_file): Don't call close after fclose.
905
be4ff9da
GM
9062010-05-18 Glenn Morris <rgm@gnu.org>
907
9539dc5d
GM
908 * s/gnu-linux.h: Combine two conditionals.
909
910 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
911 $(POST_ALLOC_OBJ).
912
40dc6bf4
GM
913 * Makefile.in (RALLOC_OBJ): New, set by configure.
914 (rallocobj): Replace with the previous variable.
915 (otherobj): Use $RALLOC_OBJ.
916
917 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
918 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
919
be4ff9da
GM
920 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
921 (gmallocobj, vmlimitobj): Replace with previous two variables.
922 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
923
16455a85
GM
9242010-05-17 Glenn Morris <rgm@gnu.org>
925
926 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
927 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
928
5fdb7468
GM
9292010-05-16 Glenn Morris <rgm@gnu.org>
930
7ca1f3f9
GM
931 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
932
7541dad5
GM
933 * Makefile.in (clean): Get rid of HAVE_NS conditional.
934
da53fab9
GM
935 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
936 trailing "/".
937
b02a6645
GM
938 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
939 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
940
8877ca0f
GM
941 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
942 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
943 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
944 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
945 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
946
5fdb7468
GM
947 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
948 Remove ${STARTFLAGS}, nothing ever sets it.
949
95adb4b1
DN
9502010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
951
952 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
953
676b6304
GM
9542010-05-16 Glenn Morris <rgm@gnu.org>
955
9beab9ce
GM
956 * Makefile.in (LIBX_BASE): Always define.
957
8a95f0e7
GM
958 * Makefile.in (LIBX_OTHER): Move out of cpp section.
959
676b6304
GM
960 * Makefile.in (LIBXT): Always define.
961
6e546d18
GM
9622010-05-15 Glenn Morris <rgm@gnu.org>
963
4235ca47 964 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 965
6e546d18
GM
966 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
967 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
968
8c5ff6dd
KR
9692010-05-15 Ken Raeburn <raeburn@raeburn.org>
970
560bb7ae 971 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
972 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
973
8b4eb796
KR
974 * emacs.c (main): Initialize initial-environment and
975 process-environment before generating from env, not after.
976
8c5ff6dd
KR
977 Handle --version reasonably in CANNOT_DUMP configuration.
978 * emacs.c (emacs_version, emacs_copyright): New string variables.
979 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
980 (syms_of_emacs): Defvar them, and initialize them from the C
981 string variables.
982 (main): If initialization hasn't been done, print initial version
983 info from the C strings, instead of starting an interactive session.
984
dbd3f723
EZ
9852010-05-15 Eli Zaretskii <eliz@gnu.org>
986
d20e1419
EZ
987 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
988 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
989 (bidi_paragraph_init): Remove redundant assertion that we are at
990 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
991
992 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
993 (syms_of_xdisp): Defsubr it.
994
d36fe237
EZ
995 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
996
dbd3f723
EZ
997 * Makefile.in: Fix MSDOS-related comments.
998
02be533b
GM
9992010-05-15 Glenn Morris <rgm@gnu.org>
1000
1a82cca9
GM
1001 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
1002 (really-lwlib, really-oldXMenu): Always define.
1003 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
1004
3df7b338
GM
1005 * Makefile.in: Simplify cpp conditional.
1006
2b5f541b
GM
1007 * Makefile.in (${ns_appdir}): Simplify using umask.
1008
02be533b
GM
1009 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
1010
4e2db1fe
SM
10112010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
1012
1013 * eval.c (specbind): Remove left-over duplicate test.
1014 Disallow let-binding frame-local vars. Add comment.
1015
4b292a22
EZ
10162010-05-14 Eli Zaretskii <eliz@gnu.org>
1017
2fe72643 1018 Make the cache of bidi iterator states dynamically allocated.
1edbd309 1019 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
1020 (bidi_init_it): Call it.
1021 (bidi_cache_iterator_state): Enlarge the cache if needed.
1022
4e2db1fe 1023 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
1024 bidi_get_next_char_visually. All callers changed.
1025
82ebc97b
KH
10262010-05-14 Kenichi Handa <handa@m17n.org>
1027
1028 * dispextern.h (struct composition_it): New member reversed_p.
1029
1030 * composite.c (composition_compute_stop_pos): Search backward if
1031 ENDPOS < CHARPOS.
1032 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
1033 Set CMP_IT->reversed_p.
b4b6e17e 1034 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 1035
4e2db1fe
SM
1036 * xdisp.c (set_iterator_to_next):
1037 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
1038 scanning backward. Call composition_compute_stop_pos if scan
1039 direction is changed.
1040 (next_element_from_buffer): Call composition_compute_stop_pos with
1041 negative ENDPOS if we are scanning backward.
1042 (next_element_from_composition): Pay attention to
1043 IT->cmp_it.reversed_p.
1044
0e5d7800
KH
10452010-05-14 Kenichi Handa <handa@m17n.org>
1046
560bb7ae 1047 * font.c (font_range): Return the range for the font found at first.
0e5d7800 1048
cb027b32
GM
10492010-05-14 Glenn Morris <rgm@gnu.org>
1050
177b0288
GM
1051 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
1052
fbc00890
GM
1053 * Makefile.in (mktime, X11, register): Move undefs to configure.
1054
f14d1dfd
GM
1055 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
1056 (MSDOS_X_OBJ): New variable.
1057 (MSDOS_SUPPORT_REAL): New constant.
1058 (MSDOS_SUPPORT): Set as a variable, not with cpp.
1059 (obj): Use MSDOS_X_OBJ.
1060 (lisp): Use MSDOS_SUPPORT as a variable.
1061
11842bd8
GM
1062 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
1063 (GPM_MOUSE_SUPPORT): Now it's a constant.
1064 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
1065 not cpp.
1066
489d31a4 1067 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 1068 (ns_appresdir): Remove, unused.
e20f1f07 1069
489d31a4
GM
1070 * Makefile.in (SHELL): Move outside cpp section.
1071
cb027b32
GM
1072 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
1073
5a903aa9
GM
10742010-05-13 Glenn Morris <rgm@gnu.org>
1075
3369c79f
GM
1076 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
1077 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
1078
d5e982a6
GM
1079 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
1080 HAVE_WINDOW_SYSTEM must be too.
1081
6192e163
GM
1082 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
1083 (lisp): Remove WINNT_SUPPORT.
1084
472c5d6b
GM
1085 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
1086 Let configure set these variables (to empty) in this case as well.
1087
0116466b
GM
1088 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
1089 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
1090
5a903aa9
GM
1091 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
1092 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
1093 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
1094 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
1095 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 1096 the values output by configure.
5a903aa9
GM
1097 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
1098
1a0d7c06
GM
10992010-05-12 Glenn Morris <rgm@gnu.org>
1100
b5457f14
GM
1101 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
1102 (LINKER_WAS_SPECIFIED): Remove.
1103
1a0d7c06
GM
1104 * Makefile.in (LIB_GCC): Set using configure, not cpp.
1105 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
1106 * m/arm.h (LIB_GCC) [GNU_LINUX]:
1107 * s/cygwin.h (LIB_GCC):
1108 * s/freebsd.h (LIB_GCC):
1109 * s/gnu-linux.h (LIB_GCC):
1110 * s/msdos.h (LIB_GCC):
1111 * s/netbsd.h (LIB_GCC):
1112 Move to configure.
1113
3ffd4615 11142010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
1115
1116 * ftfont.c: Fix incorrect parentheses of #if condition for
1117 definining M17N_FLT_USE_NEW_FEATURE.
1118
acddf8ae
GM
11192010-05-11 Glenn Morris <rgm@gnu.org>
1120
1121 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
1122 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
1123
ae5e04fa
EZ
11242010-05-10 Eli Zaretskii <eliz@gnu.org>
1125
1126 * xdisp.c (init_iterator): Don't turn on bidi reordering in
1127 unibyte buffers. See
1128 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
1129
7490175b
GM
11302010-05-10 Glenn Morris <rgm@gnu.org>
1131
97efb629
GM
1132 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
1133 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
1134 (LIBES): Use LIBS_SYSTEM as a variable.
1135 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
1136 * s/aix4-2.h (LIBS_SYSTEM):
1137 * s/freebsd.h (LIBS_SYSTEM):
1138 * s/hpux10-20.h (LIBS_SYSTEM):
1139 * s/sol2-6.h (LIBS_SYSTEM):
1140 * s/unixware.h (LIBS_SYSTEM):
1141 Move to configure.
1142
7490175b
GM
1143 * s/aix4-2.h (MAIL_USE_LOCKF):
1144 * s/bsd-common.h (MAIL_USE_FLOCK):
1145 * s/darwin.h (MAIL_USE_FLOCK):
1146 * s/gnu-linux.h (MAIL_USE_FLOCK):
1147 * s/irix6-5.h (MAIL_USE_FLOCK):
1148 * s/template.h (MAIL_USE_FLOCK):
1149 Move to configure.
1150
0235128c 11512010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
1152
1153 * Version 23.2 released.
1154
0235128c 11552010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
1156
1157 * composite.c (autocmp_chars): Save point as marker before calling
1158 auto-composition-function (Bug#5984).
1159
1160 * lisp.h (restore_point_unwind): Add prototype.
1161
1162 * fileio.c (restore_point_unwind): Remove static attribute.
1163
0235128c 11642010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
1165
1166 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
1167 new feature of libotf and m17n-flt.
0235128c
SM
1168 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
1169 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
1170 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
1171 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
1172 that OUT is NULL. Use OTF_drive_gsub_with_log and
1173 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
1174 OTF_drive_gpos.
1175 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
1176 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
1177 Setup mflt_enable_new_feature and mflt_try_otf.
1178
4721152c
J
11792010-05-08 Jan Djärv <jan.h.d@swipnet.se>
1180
1181 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
1182
1183 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
1184 box and toolbar (Bug #6139).
1185 (xg_create_tool_bar): Remove comment (Bug #6139).
1186 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
1187 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
1188
ee0a16cf
JB
11892010-05-08 Juanma Barranquero <lekktu@gmail.com>
1190
1191 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
1192 Update dependencies.
1193
96d79611
EZ
11942010-05-08 Eli Zaretskii <eliz@gnu.org>
1195
1196 * fringe.c (update_window_fringes): Set up truncation bitmaps for
1197 R2L lines.
1198
40c17879
GM
11992010-05-08 Glenn Morris <rgm@gnu.org>
1200
7b42b29f
GM
1201 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
1202
40c17879
GM
1203 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
1204 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
1205 (termcapobj): Replace with TERMCAP_OBJ.
1206 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
1207 (LIBES): Use LIBS_TERMCAP as a variable.
1208
1209 * s/freebsd.h (osreldate.h): No longer include, since this file
1210 does not use __FreeBSD_version any more.
1211
1212 * s/aix4-2.h (TERMINFO):
1213 * s/cygwin.h (TERMINFO):
1214 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1215 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
1216 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1217 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1218 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
1219 * s/irix6-5.h (TERMINFO):
1220 * s/netbsd.h (LIBS_TERMCAP):
1221 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
1222 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
1223 * s/usg5-4.h (TERMINFO):
1224 Move to configure.
1225
94b612ad
SM
12262010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
1227
1228 * eval.c (unbind_to): Don't unbind a local binding into the global
1229 binding when the local binding disappeared. Inversely, don't unbind
1230 a global binding into a newly created local binding.
1231 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
1232 can specify the frame to use, when applicable. Adjust callers.
1233
15e12598 12342010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 1235 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
1236
1237 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
1238
f724825e
EZ
12392010-05-07 Eli Zaretskii <eliz@gnu.org>
1240
5cba3209
EZ
1241 * w32fns.c: Include w32.h.
1242 (Fw32_shell_execute): Decode the error message before passing it
1243 to `error'. (Bug#6126)
1244
d16bdfc3
EZ
1245 * msdos.c (dos_set_window_size):
1246 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
1247 instead of `XSYMBOL (foo)->value'.
1248
59d93e87
EZ
12492010-05-07 Eli Zaretskii <eliz@gnu.org>
1250
9fdec8bc
EZ
1251 Fix the MS-DOS build, broken by autoconfiscation.
1252
1253 * Makefile.in: Don't use Make-style comments past the "start of
1254 cpp stuff" line.
1255 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
1256
1257 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
1258 edited directly by msdos/sed1v2.inp).
f724825e 1259
2f86b22b
GM
12602010-05-07 Glenn Morris <rgm@gnu.org>
1261
1262 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
1263 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
1264 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
1265 move out of cpp section.
1266 * s/freebsd.h (LD_SWITCH_SYSTEM):
1267 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
1268 * s/netbsd.h (LD_SWITCH_SYSTEM):
1269 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
1270
49ebbd65
DN
12712010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
1272
1273 Define LIB_STANDARD and START_FILES using autoconf.
1274 * s/usg5-4.h (LIB_STANDARD):
1275 * s/netbsd.h (START_FILES):
1276 * s/irix6-5.h (LIB_STANDARD):
1277 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
1278 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
1279 * s/freebsd.h (START_FILES):
1280 * s/darwin.h (START_FILES):
1281 * s/cygwin.h (START_FILES):
1282 * s/aix4-2.h (LIB_STANDARD):
1283 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
1284 * Makefile.in (STARTFILES): Rename to START_FILES, define using
1285 autoconf, not cpp.
1286
d43c06d6
DN
12872010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
1288
28823648
DN
1289 Remove NEED_BSDTTY and NEED_UNISTD_H.
1290 * s/hpux10-20.h (NEED_BSDTTY): Remove.
1291 * s/aix4-2.h (NEED_UNISTD_H): Remove.
1292 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
1293 <sys/ptyio.h> and <unistd.h>.
1294
aca00430
DN
1295 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
1296
d43c06d6
DN
1297 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
1298 * s/gnu.h (START_FILES): Remove empty definition.
1299
3e56b11d
JD
13002010-05-06 Jan Djärv <jan.h.d@swipnet.se>
1301
1302 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
1303
e3cf0cde
GM
13042010-05-06 Glenn Morris <rgm@gnu.org>
1305
1306 * Makefile.in (CPP, LN_S): Remove unused variables.
1307
774b9a60
SM
13082010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
1309
1310 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
1311
4ab92842
LM
13122010-05-05 Lawrence Mitchell <wence@gmx.li>
1313
1314 * m/sparc.h: Fix typo in earlier change.
1315
178f2507
SM
13162010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
1317
1318 Misc tweaks.
1319 * eval.c (Fdefvaralias): Remove unintended nested if.
1320 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
1321
80f00217 13222010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
1323
1324 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
1325
ef03a4e6
DN
13262010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
1327
58eb6cf0
DN
1328 Remove BSD_PGRPS.
1329 * s/bsd-common.h (BSD_PGRPS): Remove undef.
1330 * s/gnu-linux.h (BSD_PGRPS): Remove.
1331 * term.c (dissociate_if_controlling_tty):
1332 * sysdep.c (narrow_foreground_group, widen_foreground_group)
1333 (init_sys_modes, reset_sys_modes):
1334 * emacs.c (main):
1335 * callproc.c (Fcall_process, child_setup): Remove code depending
1336 on BSD_PGRPS.
1337
ef03a4e6
DN
1338 Remove POSIX_SIGNALS.
1339 * s/usg5-4.h (POSIX_SIGNALS):
1340 * s/netbsd.h (POSIX_SIGNALS):
1341 * s/msdos.h (POSIX_SIGNALS):
1342 * s/ms-w32.h (POSIX_SIGNALS):
1343 * s/hpux11.h (POSIX_SIGNALS):
1344 * s/gnu.h (POSIX_SIGNALS):
1345 * s/gnu-linux.h (POSIX_SIGNALS):
1346 * s/freebsd.h (POSIX_SIGNALS):
1347 * s/darwin.h (POSIX_SIGNALS):
1348 * s/cygwin.h (POSIX_SIGNALS):
1349 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
1350 * s/unixware.h:
1351 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
1352 * process.c (create_process):
1353 * syssignal.h:
1354 * sysdep.c (wait_for_termination, init_signals):
1355 * process.c (create_process):
1356 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
1357 remove all code that assumes the contrary.
1358
49628785
GM
13592010-05-04 Glenn Morris <rgm@gnu.org>
1360
27a2cdfc
GM
1361 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
1362 variable.
1363 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
1364 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
1365 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
1366 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
1367 LD_SWITCH_SYSTEM_tmp.
1368 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
1369 New variables, set by configure.
1370
eb21eab5
GM
1371 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
1372 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
1373 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
1374 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
1375 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
1376
49628785
GM
1377 * s/aix4-2.h (C_SWITCH_SYSTEM):
1378 * m/alpha.h (C_SWITCH_MACHINE):
1379 Move to configure.in.
1380 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
1381 New variables, set by configure.
1382 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
1383 $c_switch_machine and $c_switch_system.
1384
7dff330b
DN
13852010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
1386
1387 * s/hpux10-20.h (LIB_STANDARD): New definition.
1388 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
1389 on it, not used anymore.
1390
53967e09
CY
13912010-05-03 Chong Yidong <cyd@stupidchicken.com>
1392
1393 * eval.c (internal_condition_case_n): Rename from
1394 internal_condition_case_2.
1395 (internal_condition_case_2): New function.
1396
1397 * xdisp.c (safe_call): Use internal_condition_case_n.
1398
1399 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
1400 (internal_delete_file, Frename_file): Callers changed.
1401
1402 * buffer.c (Fkill_buffer):
1403 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
1404
1405 * lisp.h: Update prototypes.
1406
3dee6fdb
GM
14072010-05-03 Glenn Morris <rgm@gnu.org>
1408
1409 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
1410 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
1411 (LIBXT): Set with configure, not cpp.
1412 (LIBX): Remove.
1413 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
1414
a101e0fb
DN
14152010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
1416
1417 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
1418 The FreeBSD is not needed, the default works, Solaris version is
1419 not needed, and the remaining case is not supported by configure.
1420
f63d0028
JD
14212010-05-02 Jan Djärv <jan.h.d@swipnet.se>
1422
1423 * xsmfns.c (CHDIR_OPT): New define.
1424 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
1425 restarting emacs.
1426
1427 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
1428 shut_down_emacs.
1429
1430 * emacs.c (USAGE1): Mention --chdir.
1431 (main): Handle --chdir.
1432 (standard_args): Add --chdir.
1433 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
1434 #5552).
1435
e4814a9f
DN
14362010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
1437
cd03c74a
DN
1438 Remove LD_SWITCH_MACHINE.
1439 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
1440 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
1441
c3a398a1
DN
1442 Clean up IRIX code.
1443 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
1444 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
1445
87e7285c
DN
1446 Clean up AIX code.
1447 * m/ibmrs6000.inp: Remove file, unused.
1448 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
1449 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
1450 definition ...
1451 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
1452
80f00217
JB
1453 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
1454 unused.
e4814a9f 1455
59ca28de
EZ
14562010-05-01 Eli Zaretskii <eliz@gnu.org>
1457
197daef4
EZ
1458 Emulate POSIX_SIGNALS on MS-Windows.
1459
1460 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
1461 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
1462
1463 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
1464 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
1465 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
1466
80f00217
JB
1467 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
1468 New stubs.
197daef4 1469
af7c7572
EZ
1470 Miscellaneous fixes of bidi display.
1471
59ca28de
EZ
1472 * xdisp.c (find_row_end): New function, refactored from display_line.
1473 (display_line): Use it.
017ea819
EZ
1474 (extend_face_to_end_of_line): In almost-filled rows, extend only
1475 if the row is R2L and not continued.
166e930d 1476 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 1477 Preserve overlay and string info in row->end.
166e930d
EZ
1478 (insert_left_trunc_glyphs): Support addition of left truncation
1479 glyphs to R2L rows.
b47e0dcf 1480 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
1481 glyph between adjacent windows. Fix a crash when a display string
1482 is continued to the next line. Don't return zero if cursor was
1483 found by `cursor' property of a display string.
b47e0dcf
EZ
1484 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
1485 test for that explicitly.
59ca28de 1486
7acac9f4
GM
14872010-05-01 Glenn Morris <rgm@gnu.org>
1488
1489 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
1490 for clarity.
1491 (OTHER_OBJ): Remove.
1492 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
1493 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
1494
45841e65
KK
14952010-05-01 Karel Klíč <kklic@redhat.com>
1496
1497 * fileio.c (Ffile_selinux_context): Context functions may return null.
1498
afc61943
DN
14992010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
1500
80f00217 1501 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 1502
5a1bb006
GM
15032010-04-30 Glenn Morris <rgm@gnu.org>
1504
1505 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
1506 (OTHER_OBJ): Define as a separate variable, for clarity.
1507
210af043
J
15082010-04-30 Jan Djärv <jan.h.d@swipnet.se>
1509
1510 * xsettings.c: include limits.h and update file comment.
1511
0a7df391
GM
15122010-04-30 Glenn Morris <rgm@gnu.org>
1513
d5096f16
GM
1514 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
1515 Set with configure, not cpp.
1516 (LIBW): Remove, replace with $TOOLKIT_LIBW.
1517
7eb1ac33
GM
1518 * Makefile.in (mallocobj): Remove.
1519 (otherobj): Simplify using @OTHER_OBJ@.
1520
517d086b
GM
1521 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
1522 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
1523 Don't bother making nsgui.h dependency platform-specific.
1524
0a7df391
GM
1525 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
1526
d6d23852
SM
15272010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
1528
d2630aef
SM
1529 * process.c (read_process_output, exec_sentinel): Don't burp if the
1530 sentinel/filter kills the current buffer (bug#6060).
1531
f9dddf52 1532 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
1533 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
1534 Remove unused var `args'.
1535 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
1536 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
1537 * doc.c (store_function_docstring): Use XSETCAR.
1538
f1e3642a
GM
15392010-04-28 Glenn Morris <rgm@gnu.org>
1540
faf535f8
GM
1541 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
1542 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
1543
c40f9449
GM
1544 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
1545
658f86ca
GM
1546 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
1547 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
1548
bc0b5f61
GM
1549 * Makefile.in (FONT_OBJ): New, set by configure.
1550 (FONT_DRIVERS): Use $FONT_OBJ.
1551
294c50a0
GM
1552 * Makefile.in (LIBXMU): Set with configure, not cpp.
1553 * s/aix4-2.h (LIBXMU):
1554 * s/hpux10-20.h (LIBXMU):
1555 Remove definition, now set in configure.
1556
e6ec4e99
GM
1557 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
1558
f1e3642a
GM
1559 * m/amdx86-64.h [i386]: Move this test to configure.in.
1560
c6ea2936
GM
15612010-04-27 Glenn Morris <rgm@gnu.org>
1562
8fdac2c3
GM
1563 * Makefile.in (LIBXTR6): Set with configure, not cpp.
1564 * s/unixware.h (NEED_LIBW): Remove definition.
1565
986fb647
GM
1566 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
1567 (TOOLKIT_LIBW): New, set by configure.
1568 (@X_TOOLKIT_TYPE@): No longer define it.
1569
c6ea2936
GM
1570 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
1571 (MOTIF_LIBW): Set with configure, not cpp.
1572 * s/aix4-2.h (LIB_MOTIF):
1573 * s/gnu-linux.h (LIB_MOTIF):
1574 * s/unixware.h (LIB_MOTIF): Move to configure.in.
1575
aaa36002
DN
15762010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
1577
1578 Reduce CPP usage.
1579 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
1580 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
1581 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
1582 definitions and undefs. Inline definitions in the only user.
1583 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 1584
b678dd8b
GM
15852010-04-27 Glenn Morris <rgm@gnu.org>
1586
76cda504
GM
1587 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
1588 since the defaults (set by the system file) are fine in most cases.
1589 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
1590 * m/ibms390x.h (START_FILES, LIB_STANDARD):
1591 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
1592 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
1593 Remove definitions, since they are set correctly in s/gnu-linux.h.
1594 * s/freebsd.h (START_FILES, LIB_STANDARD):
1595 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
1596 * s/hpux10-20.h (START_FILES):
1597 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
1598 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
1599
b678dd8b
GM
1600 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
1601 (MOTIF_LIBW): Use $LIBXP.
1602 (otherobj): Use $WIDGET_OBJ.
1603
9452ded1
DN
16042010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
1605
7e10844c
DN
1606 * Makefile.in (LIBS_MACHINE): Remove, unused.
1607
9452ded1
DN
1608 Use autoconf instead of cpp for LIB_MATH.
1609 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
1610 * s/cygwin.h (LIB_MATH): Likewise.
1611 * Makefile.in (LIB_MATH): Do not define with cpp.
1612 (LIBES): Use autoconf for LIB_MATH.
1613
fcebfc6a
KH
16142010-04-26 Kenichi Handa <handa@m17n.org>
1615
1616 * composite.c (Ffind_composition_internal): Fix the return value
1617 for an automatic composition.
1618
39e2ad1b
DN
16192010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
1620
1621 Remove all NO_ARG_ARRAY uses.
1622 * fns.c (concat2, concat3, nconc2):
1623 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
1624 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
1625 * m/xtensa.h (NO_ARG_ARRAY):
1626 * m/template.h (NO_ARG_ARRAY):
1627 * m/sparc.h (NO_ARG_ARRAY):
1628 * m/sh3.h (NO_ARG_ARRAY):
1629 * m/mips.h (NO_ARG_ARRAY):
1630 * m/macppc.h (NO_ARG_ARRAY):
1631 * m/iris4d.h (NO_ARG_ARRAY):
1632 * m/intel386.h (NO_ARG_ARRAY):
1633 * m/ibms390x.h (NO_ARG_ARRAY):
1634 * m/ibms390.h (NO_ARG_ARRAY):
1635 * m/ibmrs6000.h (NO_ARG_ARRAY):
1636 * m/ia64.h (NO_ARG_ARRAY):
1637 * m/hp800.h (NO_ARG_ARRAY):
1638 * m/arm.h (NO_ARG_ARRAY):
1639 * m/amdx86-64.h (NO_ARG_ARRAY):
1640 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
1641
adf4f59c
EZ
16422010-04-25 Eli Zaretskii <eliz@gnu.org>
1643
6bdf5d65
EZ
1644 * xdisp.c (display_line): Don't assume 2nd call to
1645 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
1646 (iterate_out_of_display_property): New function, body from pop_it.
1647 (pop_it): Use it.
adf4f59c 1648
dfbbda83
GM
16492010-04-24 Glenn Morris <rgm@gnu.org>
1650
1651 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
1652 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
1653 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
1654 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
1655
2d4018aa
EZ
16562010-04-24 Eli Zaretskii <eliz@gnu.org>
1657
a49884a6
EZ
1658 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
1659 use `get_next_display_element' and `set_iterator_to_next' to
1660 advance to the next character, when looking for the character that
1661 begins the next row.
1662
76db6fcc 1663 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
1664 definition of "struct Lisp_Symbol".
1665
70eab5c1
GM
16662010-04-24 Glenn Morris <rgm@gnu.org>
1667
1668 * Makefile.in (CRT_DIR): New variable, set by configure.
1669 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
1670 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
1671
1ad4cc3d
DN
16722010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1673
e769f484
DN
1674 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
1675
4196ff33
DN
1676 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
1677
879b0ee4
DN
1678 Remove redundant flags.
1679 * s/freebsd.h (C_SWITCH_SYSTEM):
1680 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
1681 * s/netbsd.h (C_SWITCH_SYSTEM):
1682 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
1683 of these.
1684
03cbbcb8
DN
1685 Simplify m/intel386.h.
1686 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
1687 user: ecrt0.c.
1688 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
1689 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
1690 the only user: s/unixware.h.
1691 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
1692 from m/intel386.h.
1693 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
1694 moved here from m/intel386.h.
1695
1ad4cc3d
DN
1696 * m/mips.h: Remove #if 0 code.
1697
8785b888
EZ
16982010-04-23 Eli Zaretskii <eliz@gnu.org>
1699
728588cc
EZ
1700 Fix display of composed characters from L2R scripts in bidi buffers.
1701 * xdisp.c (set_iterator_to_next, next_element_from_composition):
1702 After advancing IT past the composition, resync the bidi iterator
1703 with IT's position. (Bug#5977)
1704
a63f80b4
DN
17052010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1706
1707 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
1708 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
1709
ff5dec5c
SM
17102010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
1711
1712 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
1713
8785b888
EZ
17142010-04-23 Eli Zaretskii <eliz@gnu.org>
1715
58ccf243 1716 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
1717 * xdisp.c (pop_it): When the stack is popped after displaying
1718 from a string, bidi-iterate to exit from the text portion covered
1719 by the `display' property or overlay. (Bug#5988, bug#5920)
1720
feeb1604
DN
17212010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1722
8e324eb6
DN
1723 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
1724 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
1725
809fcaba
DN
1726 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
1727 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
1728
ed710380
DN
1729 Simplify STARTFILES definition.
1730 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
1731 relying on Makefile.in to define it.
1732 * s/cygwin.h (START_FILES): Likewise.
1733 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
1734
feeb1604
DN
1735 Clean up Solaris code.
1736 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
1737 (LIB_MOTIF): Remove, configure takes care of this.
1738 (NOT_USING_MOTIF): Remove, unused.
1739 * xrdb.c: Remove #if 0-ed #include.
1740 (SYSV): Remove conditional for old SysV.
1741 * sysdep.c (closedir): Remove conditional code for Solaris,
1742 Solaris has closedir.
1743
a0d0b563
JD
17442010-04-22 Jan Djärv <jan.h.d@swipnet.se>
1745
1746 * xsettings.c (read_and_apply_settings): Check if current_font is
1747 NULL before strcmp (Bug#6001).
1748
56bae7c7
DN
17492010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
1750
1751 Clean up HP-UX files.
1752 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
1753 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
1754 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
1755 * s/hpux10-20.h: ... to the only user, here.
1756
372b7a95
EZ
17572010-04-21 Eli Zaretskii <eliz@gnu.org>
1758
1759 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
1760 use buffer-local values of paragraph-start and paragraph-separate.
1761 <paragraph_start_re, paragraph_separate_re>: Rename from
1762 fallback_paragraph_start_re and fallback_paragraph_separate_re.
1763 (Bug#5992)
1764
f904c0f9
JD
17652010-04-21 Jan Djärv <jan.h.d@swipnet.se>
1766
1767 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
1768 current_tool_bar_style are new.
1769 (store_config_changed_event): Rename from store_font_changed_event.
1770 (XSETTINGS_TOOL_BAR_STYLE): New define.
1771 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
1772 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
1773 HAVE_XFT.
1774 (something_changedCB): store_font_changed_event is now
1775 store_config_changed_event
1776 (parse_settings): Rename from parse_xft_settings. Read
1777 non-xft xsettings outside #ifdef HAVE_XFT.
1778 (read_settings): Renamed from read_xft_settings.
1779 (apply_xft_settings): Take current settings as parameter. Do not
1780 call read_(xft)_settings.
1781 (read_and_apply_settings): New function.
1782 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
1783 read_and_apply_settings if there are settings to be read.
1784 (init_xsettings): Renamed from init_xfd_settings.
1785 Call read_and_apply_settings unconditionally.
1786 (xsettings_initialize): Call init_xsettings.
1787 (Ftool_bar_get_system_style): New function.
1788 (syms_of_xsettings): Define Qmonospace_font_name and
1789 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 1790 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 1791 dynamic-setting.
31a01b90 1792 Move misplaced HAVE_GCONF
f904c0f9
JD
1793
1794 * xsettings.h (Ftool_bar_get_system_style): Declare.
1795
1796 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
1797 Qtext, Qboth, Qboth_horiz are new.
1798 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
1799 Vtool_bar_style, tool_bar_max_label_size.
1800
1801 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
1802
1803 * keyboard.c: QClabel is new.
1804 (parse_tool_bar_item): Take out QClabel from tool bar items.
1805 Try to construct a label if ther is no QClabel.
1806 (syms_of_keyboard): Intern :label as QClabel.
1807
1808 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
1809 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
1810 New.
1811
1812 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
1813 dynamic-setting.el.
1814
1815 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
1816 (xg_make_tool_item, xg_show_toolbar_item): New function.
1817 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
1818 Call xg_make_tool_item to make a tool bar item.
1819 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
1820
1821 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
1822 into account for toolbars.
1823
c632dfda
JD
18242010-04-21 Jan Djärv <jan.h.d@swipnet.se>
1825
1826 * data.c (make_blv): Declarations before code (Bug#5993).
1827
10efe302
GM
18282010-04-21 Glenn Morris <rgm@gnu.org>
1829
1830 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
1831 Define using autoconf, not cpp.
1832 (LIBXSM): New variable, set by autoconf.
1833 (LIBXT): Use $LIBXSM.
1834
4285ac5a
DN
18352010-04-21 Dan Nicolaescu <local_user@dannlt>
1836
3ec759e7
DN
1837 Remove NOMULTIPLEJOBS, unused.
1838 * s/template.h (NOMULTIPLEJOBS):
1839 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
1840
4285ac5a
DN
1841 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
1842 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
1843 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
1844 detects -znocombreloc and passes it to the linker
1845 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
1846
2807228d
GM
18472010-04-21 Glenn Morris <rgm@gnu.org>
1848
1849 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
1850
574c05e2
KK
18512010-04-21 Karel Klíč <kklic@redhat.com>
1852
1853 * Makefile.in (LIBSELINUX_LIBS): New.
1854 (LIBES): Add $LIBSELINUX_LIBS.
1855 * eval.c, lisp.h (call7): New function.
1856 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
1857 (Ffile_selinux_context, Fset_file_selinux_context):
1858 New functions.
1859 (Fcopy_file): New parameter preserve-selinux-context.
1860 (Frename_file): Preserve selinux context when renaming by copy-file.
1861
91eac4bb 18622010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 1863 Eli Zaretskii <eliz@gnu.org>
91eac4bb 1864
50426a04
JB
1865 Don't depend on cm.c or termcap.c on Windows, use stubs.
1866 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
1867 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
1868 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
1869 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
1870 (sys_tputs, sys_tgetstr): New stubs.
1871 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
1872 (tputs, tgetstr): New; define to sys_*.
91eac4bb 1873
938efb77
JB
18742010-04-20 Juanma Barranquero <lekktu@gmail.com>
1875
1876 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
1877
b4bf28b7
SM
18782010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1879
8b1e1112
SM
1880 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
1881 Just signal a warning rather than an error when inside a let.
1882 (Fmake_variable_frame_local): Add the same test.
1883
933ac235
SM
1884 * font.c (syms_of_font): Make the style table vars read-only.
1885
b4bf28b7
SM
1886 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
1887 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
1888
1889 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
1890
93d68d0c
EZ
18912010-04-20 Eli Zaretskii <eliz@gnu.org>
1892
1893 Fix R2L paragraph display on TTY.
1894
1895 * xdisp.c (unproduce_glyphs): New function.
1896 (display_line): Use it when produced glyphs are discarded from R2L
1897 glyph rows.
1898 (append_composite_glyph): In R2L rows, prepend the glyph rather
1899 than appending it.
1900
1901 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
1902 rather than append it. Set up the resolved_level and bidi_type
1903 attributes of the appended glyph.
283ccc18
EZ
1904 (produce_special_glyphs): Mirror the backslash continuation
1905 character in R2L lines.
93d68d0c 1906
283ccc18 1907 Implement display of R2L paragraphs in GUI sessions.
26cdf528 1908
283ccc18
EZ
1909 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
1910 append_stretch_glyph.
1911 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
1912 off-by-one error in computing x at end of text in the row.
1913 (append_stretch_glyph): In reversed row, prepend the glyph rather
1914 than append it. Set resolved_level and bidi_type of the glyph.
1915 (extend_face_to_end_of_line): If the row is reversed, prepend a
1916 stretch glyph whose width is such that the rightmost glyph will be
1917 drawn at the right margin of the window. Fix off-by-one error on
1918 TTY frames in testing whether a line needs face extension. Fix
1919 face extension at ZV. If this is the last glyph row, use
1920 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
1921 region face.
1922 (set_cursor_from_row, display_line): Use
26cdf528
EZ
1923 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
1924 row->continuation_lines_width.
283ccc18
EZ
1925 (next_element_from_buffer): Don't call bidi_paragraph_init if we
1926 are at ZV. Fixes a crash when reseated to ZV by
1927 try_window_reusing_current_matrix.
45903529
EZ
1928 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
1929 which happens with R2L glyph rows. Fixes a crash when inserting a
1930 character at end of an R2L line.
283ccc18
EZ
1931 (set_cursor_from_row): Don't be fooled by truncated rows: don't
1932 treat them as having zero-width characters. Improve comments.
1933 Don't reverse pos_before and pos_after for reversed glyph rows.
1934 Set cursor.x to negative value when the cursor might be on the
1935 left fringe.
1936 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
1937 left fringe, not the right one.
f951a506
EZ
1938 (notice_overwritten_cursor, draw_phys_cursor_glyph)
1939 (erase_phys_cursor): For reversed cursor_row, support cursor on
1940 the left fringe.
1941
283ccc18
EZ
1942 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
1943 of continuation indicators on the fringes.
1944 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
1945 left fringe.
1946
f951a506
EZ
1947 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
1948 draw cursor on the left fringe.
1949
1950 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
1951 cursor on the left fringe.
1952
f951a506
EZ
1953 * dispnew.c (update_text_area): Handle reversed desired rows when
1954 the cursor is on the left fringe.
1955 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
1956 below, not by 0, for when the cursor is on the left fringe.
1957
3bb49aaf
JD
19582010-04-20 Jan Djärv <jan.h.d@swipnet.se>
1959
1960 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
1961 widget is a scrollbar.
1962
c0be27fd
KH
19632010-04-20 Kenichi Handa <handa@m17n.org>
1964
1965 * charset.c (char_charset): Consider Vcharset_non_preferred_head
1966 only when the arg CHARSET_LIST is nil.
1967
ce5b453a
SM
19682010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1969
1970 Make variable forwarding explicit rather the using special values.
1971 Basically, this makes the structure of buffer-local values and object
1972 forwarding explicit in the type of Lisp_Symbols rather than use
1973 special Lisp_Objects for that. This tends to lead to slightly more
1974 verbose code, but is more C-like, simpler, and makes it easier to make
1975 sure we handled all cases, among other things by letting the compiler
1976 help us check it.
1977 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
1978 Removing forwarding objects.
1979 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
1980 (struct Lisp_Symbol): Make the various forms of variable-forwarding
1981 explicit rather than hiding them inside Lisp_Object "values".
1982 (XFWDTYPE): New macro.
1983 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
1984 (XBUFFER_LOCAL_VALUE): Remove.
1985 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
1986 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
1987 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
1988 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
1989 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
1990 Remove the Lisp_Misc_* header.
1991 (struct Lisp_Buffer_Local_Value): Redefine.
1992 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
1993 (struct Lisp_Misc_Any): Add filler to get the right size.
1994 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
1995 Lisp_Intfwd.
1996 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
1997 (DEFVAR_KBOARD): Allocate a forwarding object.
1998 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
1999 (let_shadows_global_binding_p): New function.
2000 (union Lisp_Val_Fwd): New type.
2001 (make_blv): New function.
2002 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
2003 (store_symval_forwarding, swap_in_global_binding, Fboundp)
2004 (swap_in_symval_forwarding, find_symbol_value, Fset)
2005 (let_shadows_buffer_binding_p, set_internal, default_value)
2006 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
2007 (Fkill_local_variable, Fmake_variable_frame_local)
2008 (Flocal_variable_p, Flocal_variable_if_set_p)
2009 (Fvariable_binding_locus):
2010 * xdisp.c (select_frame_for_redisplay):
2011 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
2012 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
2013 * frame.c (store_frame_param):
2014 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
2015 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
2016 value structure.
2017 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
2018 (clone_per_buffer_values): Only adjust markers into the current buffer.
2019 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
2020 (Fbuffer_local_value, set_buffer_internal_1)
2021 (swap_out_buffer_local_variables):
2022 Adapt to the new symbol value structure.
2023 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
2024 (defvar_per_buffer): Take a new arg for the fwd object.
2025 (buffer_lisp_local_variables): Return a proper alist (different fix
2026 for bug#4138).
2027 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
2028 (Fgarbage_collect): Don't handle buffer_defaults specially.
2029 (mark_object): Handle new symbol value structure rather than the old
2030 special Lisp_Misc_* objects.
2031 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
2032 * term.c (set_tty_color_mode):
2033 * bidi.c (bidi_initialize): Don't access the ->value field directly.
2034 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
2035 a buffer_local_flags.
2036 * print.c (print_object): Get rid of impossible forwarding objects.
2037
fd3998ff
EZ
20382010-04-19 Eli Zaretskii <eliz@gnu.org>
2039
2040 * bidi.c (bidi_get_type, bidi_get_category)
2041 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
2042 (bidi_type_of_next_char, bidi_level_of_next_char):
2043 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 2044
e42cd1a7
JB
20452010-04-19 Juanma Barranquero <lekktu@gmail.com>
2046
2047 * dired.c (Ffile_attributes): Fix typo in docstring.
2048
6e104790 20492010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
2050
2051 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
2052 NSInteger (Bug#5811).
2053
6e104790 20542010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
2055
2056 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
2057 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
2058
6e104790 20592010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
2060
2061 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
2062
6e104790
SM
20632010-04-19 Chong Yidong <cyd@stupidchicken.com>
2064
2065 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
2066 terminal frames (Bug#5837).
2067
37dcfea0
EZ
20682010-04-19 Eli Zaretskii <eliz@gnu.org>
2069
d1da276f
EZ
2070 * .gdbinit (xsubchartable): New command.
2071
37dcfea0
EZ
20722010-04-19 Eli Zaretskii <eliz@gnu.org>
2073
2074 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 2075 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
2076 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
2077 and
2078 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
2079
e9515805
SM
20802010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
2081
2082 * alloc.c (Fpurecopy): Hash-cons if requested.
2083 (syms_of_alloc): Update purify-flag docstring.
2084
22aa44a8
JD
20852010-04-18 Jan Djärv <jan.h.d@swipnet.se>
2086
2087 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
2088 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
2089
ebb5722e
EZ
20902010-04-17 Eli Zaretskii <eliz@gnu.org>
2091
2092 Fix a crash when an NSM character is inserted at BEGV.
2093
2094 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
2095 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
2096 NEUTRAL_B or UNKNOWN_BT.
2097
0f4442ef
EZ
20982010-04-16 Eli Zaretskii <eliz@gnu.org>
2099
2100 * xdisp.c (set_cursor_from_row): Don't consider possibility of
2101 other rows with cursor unless they are different from this row and
2102 this row is part of a continued line. (Bug#5943)
2103
7d4e45f8
DN
21042010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
2105
2106 * s/freebsd.h: Restore osreldate.h include.
2107 Suggested by Naohiro Aota.
2108
5ba5ec85
J
21092010-04-16 Jan Djärv <jan.h.d@swipnet.se>
2110
2111 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
2112
20af301d
CY
21132010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
2114
2115 * s/cygwin.h: Avoid linking against static libgcc.
2116
a4b000fb
JL
21172010-04-15 Juri Linkov <juri@jurta.org>
2118
2119 * window.c: Add Qscroll_command.
2120 Remove Vscroll_preserve_screen_position_commands.
2121 (window_scroll_pixel_based, window_scroll_line_based): Check the
2122 `scroll-command' property on the last command instead of searching
2123 the last command in Vscroll_preserve_screen_position_commands.
2124 (syms_of_window): Initialize and staticpro `Qscroll_command'.
2125 Put Qscroll_command property on Qscroll_up and Qscroll_down.
2126 (scroll-preserve-screen-position): Doc fix.
2127 (Vscroll_preserve_screen_position_commands): Remove variable.
2128
bc319ba4
DN
21292010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
2130
6bb24457
DN
2131 * xdisp.c (message): Do not use NO_ARG_ARRAY.
2132
19d4c244
DN
21332010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
2134
2135 Reduce cpp use in Makefile.in.
2136 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
2137 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
2138 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
2139 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
2140 (CRT0_COMPILE): Remove, inline it in the only user.
2141
32129746
JL
21422010-04-14 Juri Linkov <juri@jurta.org>
2143
2144 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
2145 `scroll-up-command' and `M-v' from `scroll-down' to
2146 `scroll-down-command'.
2147
9013a7f8
JL
21482010-04-14 Juri Linkov <juri@jurta.org>
2149
2150 * window.c (Vscroll_preserve_screen_position_commands): New variable
2151 with the default value as the list of Qscroll_down and Qscroll_up.
2152 (window_scroll_pixel_based, window_scroll_line_based): Search the
2153 last command in the list Vscroll_preserve_screen_position_commands
2154 instead of comparing with Qscroll_up and Qscroll_down.
2155
4bef8d26
JD
21562010-04-13 Jan Djärv <jan.h.d@swipnet.se>
2157
92848133
JD
2158 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
2159 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
2160 does that.
2161
4bef8d26
JD
2162 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
2163 to zero.
2164
58b963f7
SM
21652010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2166
84164a0d
SM
2167 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
2168
2b0a91e7
SM
2169 Try to solve the problem of spurious EOF chars in long lines of text
2170 sent to interactive subprocesses.
2171 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
2172 (system_process_attributes): Remove unused var `ttotal'.
2173 * process.c (send_process): Don't bother breaking long line with EOF
2174 chars when talking to ttys any more.
2175 (wait_reading_process_output): Output a warning when called in such
2176 a way that it could block without being interruptible.
2177
58b963f7
SM
2178 Try to detect file modification within the same second.
2179 * buffer.h (struct buffer): New field modtime_size.
2180 * buffer.c (reset_buffer): Initialize it.
2181 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
2182 (Fverify_visited_file_modtime): Check it.
2183 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
2184 (Fset_visited_file_modtime): Set (or clear) it.
2185
01f5787b
SM
21862010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
2187
2188 * process.c (status_notify): Remove unused var `ro'.
2189
83725342
JD
21902010-04-12 Jan Djärv <jan.h.d@swipnet.se>
2191
2192 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
2193 more than one visual (Bug#5938).
2194
b9465836
DN
21952010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
2196
50426a04
JB
2197 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
2198 Undefine.
b9465836 2199
8d9c8ece
DN
22002010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
2201
b1f52161
DN
2202 Remove C_SWITCH_SYSTEM_TEMACS.
2203 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
2204 (malloc, realloc, free): Use emacs, not temacs for conditional
2205 definition.
2206
2207 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
2208 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
2209
8d9c8ece
DN
2210 Use autoconf, not cpp for some variables.
2211 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
2212 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
2213 (ALL_CFLAGS): Use them as make variables.
2214 (really-lwlib, really-oldXMenu): Do not pass them.
2215
1ecb2d3f
JD
22162010-04-11 Jan Djärv <jan.h.d@swipnet.se>
2217
2218 * xmenu.c (apply_systemfont_to_dialog): New.
2219 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
2220
3a4fa2f2
SM
22212010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
2222
97e53006
SM
2223 * process.c (exec_sentinel): Preserve current-buffer.
2224
3a4fa2f2
SM
2225 * process.c (read_process_output): Move the save-current-buffer to
2226 apply to both the filter and the non-filter branches.
2227
88df7221
DN
22282010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
2229
2230 * s/msdos.h (UNEXEC): New definition.
2231
5634ff85
YM
22322010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2233
6eff5c3d
YM
2234 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
2235 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
2236
2237 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
2238 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
2239 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
2240 TRY_WINDOW_CHECK_MARGINS.
2241
2242 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
2243 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
2244 width only when it is for padding.
5634ff85 2245
b13aef54
J
22462010-04-09 Jan Djärv <jan.h.d@swipnet.se>
2247
2248 * xfns.c (Fx_show_tip): Call try_window in a loop until
2249 fonts_changed_p is zero (Bug#2423).
2250
21d28484
EZ
22512010-04-08 Eli Zaretskii <eliz@gnu.org>
2252
2253 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
2254 the end of TEXT_AREA. (Bug#5856)
2255
0269ef77
JD
22562010-04-08 Jan Djärv <jan.h.d@swipnet.se>
2257
2258 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
2259 HAVE_GCONF.
2260
5930fe97
EZ
22612010-04-08 Eli Zaretskii <eliz@gnu.org>
2262
2263 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
2264 prev.orig_type, for resolving type of NSM. (Bug#5858)
2265
99852628
JD
22662010-04-08 Jan Djärv <jan.h.d@swipnet.se>
2267
2268 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
2269 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
2270 in current_font.
2271 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
2272 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
2273 New functions.
2274 (syms_of_xsettings): Initialize current_font.
2275 defsubr Sfont_get_system_normal_font.
99852628
JD
2276
2277 * xsettings.h (Ffont_get_system_normal_font,
2278 xsettings_get_system_normal_font): Declare.
2279
2280 * xfns.c (extern xlwmenu_default_font): Remove.
2281 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
2282 to xlwmenu.c.
2283
2284 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
2285 menu items in UTF-8.
2286
2287 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
2288 (apply_systemfont_to_menu): New function.
2289 (set_frame_menubar, create_and_show_popup_menu): Call
2290 apply_systemfont_to_menu.
2291
7fc874c4
J
22922010-04-07 Jan Djärv <jan.h.d@swipnet.se>
2293
2294 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
2295 FRAME_LINE_TO_PIXEL_Y.
2296
2297 * xterm.c (x_set_window_size_1): Don't add border_width/height to
2298 pixelwidth/height.
2299
863bf481
DN
23002010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
2301
5e5a3b92
DN
2302 Simplify code for HP machines.
2303 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
2304 for GNU_LINUX, not needed.
2305 (UNEXEC, NEED_BSDTTY): Move definitions...
2306 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
2307
863bf481
DN
2308 * m/iris4d.h (UNEXEC): Move definition ...
2309 * s/irix6-5.h (UNEXEC): ... here.
2310
3e6bec3b
JD
23112010-04-04 Jan Djärv <jan.h.d@swipnet.se>
2312
2313 * xfns.c (set_machine_and_pid_properties): New function.
2314 (Fx_create_frame): Call set_machine_and_pid_properties.
2315
2912322b
SM
23162010-04-03 Eli Zaretskii <eliz@gnu.org>
2317
1502b819
EZ
2318 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
2319 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
2320 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
2321
2912322b
SM
2322 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
2323 in this function. (Bug#5703)
2324
23252010-04-03 Chong Yidong <cyd@stupidchicken.com>
2326
2327 * nsterm.h: Fix last change.
2328
c435b432
DN
23292010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
2330
a568f507
DN
2331 * m/intel386.h (NO_REMAP): Move definition ...
2332 * s/msdos.h (NO_REMAP): ... here.
2333
4cd9f6c2
DN
2334 * m/vax.h (CRT0_DUMMIES): Remove, unused.
2335
c435b432
DN
2336 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
2337 used on those platforms.
2338
42a2c622
DN
23392010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
2340
2341 Remove extern errno declarations.
2342 * xterm.c:
2343 * xrdb.c:
2344 * w32term.c:
2345 * unexec.c:
2346 * unexaix.c:
2347 * sysdep.c:
2348 * process.c:
2349 * lread.c:
2350 * keyboard.c:
2351 * floatfns.c:
2352 * filelock.c:
2353 * fileio.c:
2354 * emacs.c (main):
2355 * ecrt0.c:
2356 * dispnew.c:
2357 * callproc.c:
2358 * buffer.c: Remove errno extern declarations.
2359 * s/netbsd.h (NEED_ERRNO): Remove.
2360
8224f93d
DN
23612010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
2362
2363 Remove all uses of LIBX11_SYSTEM.
2364 * Makefile.in (LIBX11_SYSTEM): Remove.
2365 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
2366 instead.
2367
814062c7
EZ
23682010-04-01 Eli Zaretskii <eliz@gnu.org>
2369
ed68db4d
EZ
2370 Remove support for DJGPP v1.x (bug#5813).
2371
2372 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
2373 * s/msdos.h:
2374 * unexec.c (make_hdr, copy_text_and_data):
2375 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 2376 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
2377 (IT_set_terminal_modes, __write, _rename, gethostname)
2378 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
2379 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
2380 the value of __DJGPP__.
ed68db4d
EZ
2381 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
2382 compatibility code.
8224f93d
DN
2383 * lread.c:
2384 * gmalloc.c (memalign):
2385 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
2386 * emacs.c (main):
2387 * dosfns.c (init_dosfns):
ed68db4d
EZ
2388 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
2389
52f4d8d5
EZ
23902010-04-01 Eli Zaretskii <eliz@gnu.org>
2391
814062c7
EZ
2392 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
2393 string with `cursor' property comes from an `after-string'
2394 overlay. (Bug#5816)
2395
0dc2e11d
GM
23962010-04-01 Glenn Morris <rgm@gnu.org>
2397
2398 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
2399 Define as Makefile variables.
2400 (LIBX): Use above variables rather than directly using autoconf.
2401
1d29df59
DN
24022010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
2403
2404 Clean up BSD_SYSTEM use.
2405 * xterm.c:
2406 * process.c:
2407 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
2408 for including <sys/ioctl.h>.
2409 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
2410 code is only used for MSDOS.
2411
1546c559
JL
24122010-03-31 Juri Linkov <juri@jurta.org>
2413
2414 * image.c: Add `Qextension_data'.
2415 (syms_of_image): Initialize and staticpro `Qextension_data'.
2416 (Fimage_metadata): Rename from `Fimage_extension_data'.
2417 (gif_load): Put GIF extension data to the property
2418 `Qextension_data'.
2419
6521c534
CY
24202010-03-31 Chong Yidong <cyd@stupidchicken.com>
2421
2422 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
2423 * nsterm.h: Fix prototype.
2424
52c30783
EZ
24252010-03-31 Eli Zaretskii <eliz@gnu.org>
2426
2427 * xdisp.c (highlight_trailing_whitespace): Support highlight of
2428 trailing whitespace in right-to-left rows.
2429
855a0da7
SM
24302010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
2431
2432 Get rid of the direct_output optimizations.
2433 * keyboard.c (nonundocount): Remove extern declaration.
2434 (command_loop_1): Remove brittle optimisation for cheap and
2435 common operations.
2436 * xdisp.c (redisplay_internal): Don't bother checking
2437 redisplay_performed_directly_p any more.
2438 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
2439 any more.
2440 * dispnew.c (redisplay_performed_directly_p)
2441 (direct_output_for_insert, direct_output_forward_char):
2442 * dispextern.h (redisplay_performed_directly_p)
2443 (direct_output_for_insert, direct_output_forward_char): Remove.
2444 * cmds.c (nonundocount): Make it static.
2445
85738751 24462010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
2447
2448 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
2449
85738751 24502010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
2451
2452 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
2453 invisible (Bug#5766).
2454
85738751 24552010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 2456
855a0da7
SM
2457 * xdisp.c (x_consider_frame_title, update_window_cursor):
2458 Remove HAVE_NS conditionals.
194d44e7 2459 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
2460
2461 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
2462 filename for the title.
2463 (ns_set_doc_edited): Do nothing if the selected window is a
2464 minibuffer window.
2465
2466 * nsterm.h: Add prototypes for ns_set_name_as_filename and
2467 ns_set_doc_edited.
2468
2469 * nsterm.m: Remove unneeded prototype.
2470
85738751 24712010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
2472
2473 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
2474 in the DOC file. (Bug#5336)
2475
85738751 24762010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
2477
2478 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
2479
75d1428c
SM
24802010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
2481
2482 * window.c (keys_of_window): Remove redundant/overridden bindings.
2483
82043cfb
EZ
24842010-03-30 Eli Zaretskii <eliz@gnu.org>
2485
2486 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
2487 Restore original behavior when the iterator is not bidi_p.
2488
b5dd0ae7
DN
24892010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
2490
2491 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
2492
bd924a5d
EZ
24932010-03-30 Eli Zaretskii <eliz@gnu.org>
2494
2495 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
2496 are outside the range of cached character positions.
2497
3580374b
JB
24982010-03-30 Juanma Barranquero <lekktu@gmail.com>
2499
2500 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
2501
a7b02820
EZ
25022010-03-30 Eli Zaretskii <eliz@gnu.org>
2503
2504 Initial support for bidirectional editing.
2505
2506 * Makefile.in (obj): Include bidi.o.
2507 (bidi.o): New target.
2508
2509 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
2510 ($(BLD)/bidi.$(O)): New target.
2511
2512 * bidi.c: New file.
2513
2514 * buffer.h (struct buffer): New members bidi_display_reordering
2515 and bidi_paragraph_direction.
2516
2517 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
2518 and bidi_paragraph_direction.
2519 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
2520 and bidi-paragraph-direction.
2521 (Fbuffer_swap_text): Swap the values of
2522 bidi_display_reordering and bidi_paragraph_direction.
2523
2524 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
2525 (bidi_type_t, bidi_dir_t): New types.
2526 (bidi_saved_info, bidi_stack, bidi_it): New structures.
2527 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
2528 prev_stop, base_level_stop, and eol_pos.
2529 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
2530 (IT_STACK_SIZE): Enlarge to 5.
2531 (struct glyph_row): New member reversed_p.
2532 <string_buffer_position>: Update prototype.
2533 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
2534 glyph_row if bidi_it.paragraph_dir == R2L.
2535 (struct glyph): New members resolved_level and bidi_type.
2536
2537 * dispnew.c (direct_output_forward_char): Give up if we need bidi
2538 processing or buffer's direction is right-to-left.
2539 (prepare_desired_row): Preserve the reversed_p flag.
2540 (row_equal_p): Compare the reversed_p attributes as well.
2541
2542 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
2543 bidi_init_it and set it->paragraph_embedding from the current
2544 buffer's value of bidi_paragraph_direction.
2545 (reseat_1): Initialize bidi_it.first_elt.
2546 (set_iterator_to_next, next_element_from_buffer): Use the value of
2547 paragraph_embedding to determine the paragraph direction.
2548 (set_iterator_to_next): Under bidi reordering, call
2549 bidi_get_next_char_visually. Call bidi_paragraph_init if the
2550 new_paragraph flag is set in the bidi iterator.
2551 (next_element_from_buffer): If bidi_it.first_elt is set,
2552 initialize paragraph direction and find the first character to
2553 display in the visual order. If reseated to a middle of a line,
2554 prime the bidi iterator starting at the line's beginning. Handle
2555 the situation where we overstepped stop_charpos due to
2556 non-linearity of the bidi iteration. Likewise for when we back up
2557 beyond the previous stop_charpos. When moving across stop_charpos,
2558 record it in prev_stop.
2559 (display_line): Set row->end and it->start for the next row to the
2560 next character in logical order. Always extend reversed_p rows to
2561 the end of line, even if they end at ZV. Copy the reversed_p flag
2562 to the next glyph row. Keep calling set_cursor_from_row for
2563 bidi-reordered rows even if we already have a possible candidate
2564 for cursor position. Set row_end after all the row's glyphs have
2565 been produced, by looping over the glyphs. Record the position
2566 after EOL in it->eol_pos, and use it to set end_pos of the last
2567 row produced for a continued line.
2568 <Qright_to_left, Qleft_to_right>: New variables.
2569 (syms_of_xdisp): Initialize and staticpro them.
2570 (string_buffer_position_lim): New function.
2571 (string_buffer_position): Most of code moved to
2572 string_buffer_position_lim. Last argument and return value are
2573 now EMACS_INT; all callers changed.
2574 (set_cursor_from_row): Rewritten to support bidirectional text and
2575 reversed glyph rows.
2576 (text_outside_line_unchanged_p, try_window_id): Disable
2577 optimizations if we are reordering bidirectional text and the
2578 paragraph direction can be affected by the change.
2579 (append_glyph, append_composite_glyph)
2580 (produce_image_glyph, append_stretch_glyph): Set the
2581 resolved_level and bidi_type members of each glyph.
2582 (append_glyph): If the glyph row is reversed, prepend the glyph
2583 rather than appending it.
2584 (handle_stop_backwards): New function.
2585 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
2586 (reseat): call handle_stop_backwards to recompute prev_stop and
2587 base_level_stop for the new position.
2588 (handle_invisible_prop): Under bidi iteration, skip invisible text
2589 using bidi_get_next_char_visually. If we are `reseat'ed, init the
2590 paragraph direction. Update IT->prev_stop after skipping
2591 invisible text.
2592 (move_it_in_display_line_to): New variables prev_method
2593 and prev_pos. Compare for strict equality in
2594 BUFFER_POS_REACHED_P.
2595 (try_cursor_movement): Examine all the candidate rows that occlude
2596 point, to return the best match. If rows are bidi-reordered
2597 and point moved backwards, back up to the row that is not a
2598 continuation line, and start looking for a suitable row from
2599 there.
2600
2601 * term.c (append_glyph): Reverse glyphs by pre-pending them,
2602 rather than appending, if the glyph_row's reversed_p flag is set.
2603 Set the resolved_level and bidi_type members of each glyph.
2604
2605 * .gdbinit (pbiditype): New command.
2606 (pgx): Use it to display bidi level and type of the glyph.
2607 (pitx): Display some bidi information about the iterator.
2608 (prowlims, pmtxrows): New commands.
2609
32a8894e
DN
26102010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
2611
2612 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
2613 * s/usg5-4.h (LIBS_DEBUG):
2614 * s/irix6-5.h (C_DEBUG_SWITCH):
2615 * s/gnu-linux.h (LIBS_DEBUG):
2616 * s/darwin.h (LIBS_DEBUG):
2617 * s/bsd-common.h (LIBS_DEBUG):
2618 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
2619 * m/iris4d.h (LIBS_DEBUG):
2620 * m/hp800.h (LIBS_DEBUG): Remove definitions.
2621
2622 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
2623 (LIBS_DEBUG): Remove definition.
2624
649dbf36
CY
26252010-03-27 Chong Yidong <cyd@stupidchicken.com>
2626
2627 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
2628 Windows.
2629
cad4261f
YM
26302010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2631
2632 * process.c (Fmake_network_process): Don't call turn_on_atimers around
2633 `connect' (Bug#5723).
2634
cd591dbc
HE
26352010-03-25 Helmut Eller <eller.helmut@gmail.com>
2636
2637 * process.c (Fmake_network_process): Call `select' for interrupted
2638 `connect' rather than creating new socket (Bug#5173).
2639
e867cb5d 26402010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
2641
2642 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
2643
2644 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
2645
2646 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
2647
e867cb5d 26482010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
2649
2650 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
2651 XLoadQueryFont.
2652
e867cb5d 26532010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
2654
2655 * coding.c (decode_coding_ccl): Fix previous change for the
2656 multibyte case.
fb608df3
KH
2657 (encode_coding_ccl): Don't setup ccl program here. Fix for the
2658 case that the output buffer is fullfilled.
2659 (encode_coding): Setup ccl program here.
fbdc1721 2660
5845f0ed
DN
26612010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
2662
814fb708
DN
2663 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
2664
5845f0ed
DN
2665 Simplify LIBS_MACHINE definitions.
2666 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
2667 * m/iris4d.h (LIBS_MACHINE): Likewise.
2668 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
2669 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 2670 * s/netbsd.h: Remove commented out code.
5845f0ed 2671
b7064064
DN
26722010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
2673
df7734b2
DN
2674 Remove dead code dealing with POSIX_SIGNALS.
2675 * atimer.c (set_alarm): Remove dead code, all USG systems define
2676 POSIX_SIGNALS.
2677 * data.c (arith_error): Likewise.
2678 * keyboard.c (input_available_signal, handle_user_signal)
2679 (interrupt_signal): Likewise.
2680 * process.c (sigchld_handler): Likewise.
2681 (create_process): Remove if 0 code. Remove HPUX conditional when
2682 !defined (POSIX_SIGNALS), it cannot be true.
2683 * syssignal.h: Remove USG5_4 and USG conditionals when
2684 !POSIX_SIGNALS, they cannot be true.
2685
b7064064
DN
2686 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
2687 NO_SOCK_SIGIO, not used anymore.
2688
55da5ee3
DN
26892010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
2690
0be96e3a
DN
2691 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
2692 support vax on BSDs.
2693
55da5ee3
DN
2694 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
2695 * s/aix4-2.h (ORDINARY_LINK): ... here.
2696
c0282183
AS
26972010-03-21 Andreas Schwab <schwab@linux-m68k.org>
2698
82c3d67a
AS
2699 * Makefile.in (abs_builddir): Define.
2700 (bootstrap_exe): Use it.
2701 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 2702
3613edce
SM
27032010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
2704
2705 * Makefile.in (bootstrap_exe): Use an absolute name.
2706
7f110ddc
DN
27072010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2708
22e87574
DN
2709 Remove support for old GNU/Linux using libc version 5.
2710 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
2711 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
2712
05a670e6
DN
2713 Consolidate redundant definitions in s/bsd-common.h.
2714 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2715 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2716 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
2717 doing it in all files that include this one.
2718 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2719 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2720 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2721 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2722 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2723 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2724 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2725 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2726 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2727
2968f561
DN
2728 Consolidate redundant definitions.
2729 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
2730 it's undefined in all files that include this one.
2731 (POSIX_SIGNALS): Define here instead of doing it in all files that
2732 include this one.
2733 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2734 (POSIX_SIGNALS): Do not define.
2735 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2736 (POSIX_SIGNALS): Do not define.
2737 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2738 (POSIX_SIGNALS): Do not define.
2739
15d25dc0
DN
2740 Remove support for old UNIX System V systems.
2741 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
2742 * s/usg-5-4-2.h: Remove.
2743
07e339e4
DN
2744 Remove support for Solaris on PPC and for old versions.
2745 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
2746 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
2747 that cancel each other.
2748 * s/sol2-3.h:
2749 * s/sol2-4.h:
2750 * s/sol2-5.h: Remove.
2751 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
2752 (NO_REMAP): Remove, unused.
2753 (UNEXEC): Move definition ...
2754 * s/aix4-2.h (UNEXEC): ... here.
2755
7f110ddc
DN
2756 * s/openbsd.h: Remove support for non-ELF and for systems that do
2757 not support shared libraries.
2758 * s/netbsd.h:
2759 * s/freebsd.h: Likewise.
2760
605f35cd
DN
27612010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2762
2763 Remove non-working support for lynxos 3.0.
2764 * s/lynxos.h: Remove file.
2765
2766 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
2767 COFF_BSD_SYMBOLS, nothing defines it anymore.
2768
aed71cf4
DN
27692010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2770
2771 Remove obsolete uses of HAVE_SHM.
2772 * emacs.c (standard_args):
2773 (Fdump_emacs):
2774 (syms_of_emacs): Remove code depending on HAVE_SHM.
2775
2776 * alloc.c: Remove HAVE_SHM dependent definition.
2777
2778 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
2779
aded53ff
GM
27802010-03-18 Glenn Morris <rgm@gnu.org>
2781
17284745
GM
2782 * emacs.c (USAGE4): Hard-code bug address.
2783 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
2784 (bug_reporting_address): Remove.
2785 (main): Don't call bug_reporting_address.
2786
aded53ff
GM
2787 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
2788 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
2789
303500aa
CY
27902010-03-15 Chong Yidong <cyd@stupidchicken.com>
2791
2792 * xfns.c (Fx_create_frame):
2793 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
2794 on left.
2795
cef3058f
CY
27962010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
2797
2798 * editfns.c (Fformat): Account for string precision when computing
2799 field width (Bug#5710).
2800
a647d59d
CY
28012010-03-12 Chong Yidong <cyd@stupidchicken.com>
2802
4fa42018
CY
2803 * xfns.c (Fx_create_frame): Set default to Qright.
2804
a647d59d
CY
2805 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
2806 all window systems.
2807
6da23aaa
EZ
28082010-03-12 Eli Zaretskii <eliz@gnu.org>
2809
a96f6398 2810 These changes remove termcap.c from the build on Posix platforms.
83d02def 2811 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
2812 (MSDOS_OBJ): ...to here.
2813 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
2814 now identical to when LIBS_TERMCAP is defined.
2815
2816 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
2817
2818 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
2819
a96f6398 2820 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 2821
288f9fc0
CY
28222010-03-10 Chong Yidong <cyd@stupidchicken.com>
2823
2824 * Branch for 23.2.
2825
d48cd3f4
SM
28262010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
2827
2828 Cleanup setup of gl_state in various parts of the code.
2829 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
2830 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
2831 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
2832 (skip_chars):
2833 * regex.c (regex_compile): Use it.
2834 (re_compile_pattern): Don't set gl_state.current_syntax_table since
2835 it's now set in regex_compile when/if we need it.
2836
618db430
SM
28372010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
2838
c0335e02
SM
2839 Make it possible to C-g in a tight bytecode loop again (bug#5680).
2840 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
2841 (QUIT): Use it to consolidate code and remove redundancy.
2842 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
2843
254c06a8
SM
2844 * regex.c (regex_compile): Setup gl_state as well.
2845
618db430
SM
2846 * syntax.c (skip_chars): Setup gl_state (bug#3823).
2847 (in_classes): Use CONSP before XCAR/XCDR.
2848
233f0c9f
CY
28492010-03-03 Chong Yidong <cyd@stupidchicken.com>
2850
2851 * keymap.c (Fwhere_is_internal): Use Fequal to compare
2852 definitions, so that keyboard macros are correctly handled
2853 (Bug#5481).
2854
75f80e63
EZ
28552010-03-02 Eli Zaretskii <eliz@gnu.org>
2856
2857 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
2858 text that could be relocated inside the call to emacs_mule_char.
2859 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
2860 (CODING_DECODE_CHAR): Add a comment describing its purpose.
2861
dcfb9bc4
KH
28622010-03-02 Kenichi Handa <handa@m17n.org>
2863
fc9a17bc
KH
2864 * character.c (parse_str_as_multibyte): Fix handling of the
2865 multibyte form of raw-bytes.
2866 (str_as_multibyte): Likewise.
2867
dcfb9bc4
KH
2868 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
2869 form of raw-bytes.
2870
412c01b6
CY
28712010-02-28 Chong Yidong <cyd@stupidchicken.com>
2872
2873 * charset.c (load_charset_map_from_file)
2874 (load_charset_map_from_vector): Zero out allocated
2875 charset_map_entries before using them.
2876
df7e1ea0
AS
28772010-02-27 Andreas Schwab <schwab@linux-m68k.org>
2878
2879 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
2880
fe69a722
CY
28812010-02-27 Chong Yidong <cyd@stupidchicken.com>
2882
4ed28cf4
CY
2883 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
2884 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 2885
7379cfce
KH
28862010-02-26 Kenichi Handa <handa@m17n.org>
2887
f88cc4d6
KH
2888 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
2889
7379cfce
KH
2890 * xdisp.c (reseat_to_string): Fix previous change.
2891
cf2fdcfb
CY
28922010-02-26 David Reitter <david.reitter@gmail.com>
2893
2894 * nsfont.m (nsfont_draw): ns_antialias_text should be a
2895 Lisp_Object (Bug#4736).
2896
cc6c7c75
KH
28972010-02-25 Kenichi Handa <handa@m17n.org>
2898
2899 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
2900
32e737d7
JD
29012010-02-24 Jan Djärv <jan.h.d@swipnet.se>
2902
2903 * xterm.c (XTflash): Move declarations before statements.
2904
2905 * gtkutil.c (xg_get_gdk_display): Remove (unused).
2906 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
2907 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
2908 (xg_create_tool_bar): Remove unused variables.
2909 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 2910 (xg_create_frame_widgets): Remove variable grav.
32e737d7 2911
676cae9f
CY
29122010-02-21 Chong Yidong <cyd@stupidchicken.com>
2913
2914 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
2915
886cc2b8
SM
29162010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
2917
2918 * term.c (fatal): Add a final \n if needed (bug#5596).
2919
ddb2d8e2
CY
29202010-02-18 Chong Yidong <cyd@stupidchicken.com>
2921
2922 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
2923
2a4f8d3d
GM
29242010-02-18 Glenn Morris <rgm@gnu.org>
2925
2926 * callint.c (Finteractive): Doc fix.
2927
ebaf11b6
KH
29282010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
2929
886cc2b8
SM
2930 * coding.c (record_conversion_result):
2931 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
2932 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
2933 memory allocation error.
2934
d0396581
KH
29352010-02-17 Kenichi Handa <handa@m17n.org>
2936
886cc2b8
SM
2937 * coding.c (decode_coding_ccl): Don't setup ccl program here.
2938 Fix for the case that the output buffer is fullfilled.
d0396581
KH
2939 (decode_coding): Setup ccl program here. Keep looping when the
2940 decoder stopped because the output buffer is
2941 fullfilled (bug#5534).
2942
2943 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
2944
98599f74
JD
29452010-02-13 Jan Djärv <jan.h.d@swipnet.se>
2946
471e4f04 2947 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 2948 bug #5571.
886cc2b8 2949 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 2950 overdrawn.
98599f74 2951
182659ae
JD
29522010-02-10 Jan Djärv <jan.h.d@swipnet.se>
2953
2954 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
2955 doing_interact here.
2956 (ice_connection_closed): New function.
2957 (x_session_check_input, smc_die_CB, ice_io_error_handler)
2958 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
2959 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
2960 returns I/O error.
2961 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
2962 bug #5512.
2963
9be32c4e 29642010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
2965
2966 * nsfont.m (nsfont_open): The system's value for the font descent
2967 is negative, so round it down to avoid clipping.
2968
a2f3eb19
CY
29692010-02-06 Chong Yidong <cyd@stupidchicken.com>
2970
2971 * charset.c (load_charset_map_from_file)
2972 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 2973 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 2974
3088147c
CY
29752010-02-05 Chong Yidong <cyd@stupidchicken.com>
2976
2977 * charset.c (load_charset_map_from_file): Allocate large
2978 charset_map_entries structure on the heap rather than the stack.
2979 (Bug#5526).
2980
b57d9029
KH
29812010-01-31 Kenichi Handa <handa@m17n.org>
2982
2983 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 2984 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 2985
c67d885b
CY
29862010-01-31 Chong Yidong <cyd@stupidchicken.com>
2987
2988 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
2989 <deactivated@gmail.com> (Bug#3605).
2990
8fab2362
CY
29912010-01-31 David De La Harpe Golden <david@harpegolden.net>
2992
2993 * fileio.c (Frename_file): Correctly rename symlinks to
2994 directories (Bug#5496).
2995
cb2a62f2
CY
29962010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
2997
2998 * nsterm.m (ns_ring_bell): Handle visible bell like X.
2999
944c7a26
AS
30002010-01-30 Andreas Schwab <schwab@linux-m68k.org>
3001
3002 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
3003
c024ac08
CY
30042010-01-29 Chong Yidong <cyd@stupidchicken.com>
3005
3006 * frame.c (DEFAULT_ROWS): Change default to 35.
3007
3008 * xfns.c (x_default_font_parameter): Change default XFT font to
3009 monospace-10 (Bug#3643).
3010
af93af83
EZ
30112010-01-29 Eli Zaretskii <eliz@gnu.org>
3012
3013 * w32inevt.c (key_event): Remove unnecessary comparison of
3014 event->uChar.AsciiChar with 128.
3015
ca0eb708
CY
30162010-01-28 Chong Yidong <cyd@stupidchicken.com>
3017
b242dbfc
CY
3018 * fileio.c (Frename_file): Fix last change (Bug#5487).
3019
ca0eb708
CY
3020 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
3021
3022 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
3023
45d45af5
JD
30242010-01-28 Jan Djärv <jan.h.d@swipnet.se>
3025
3026 * xfns.c (Fx_create_frame): Remove window size matching code from
3027 2010-01-15.
a73f9c9d 3028 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 3029
7e233730
JR
30302010-01-27 Jason Rumney <jasonr@gnu.org>
3031
3032 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 3033 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 3034
86e893e3
KH
30352010-01-27 Kenichi Handa <handa@m17n.org>
3036
3037 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 3038 pattern string (Bug#4209).
86e893e3 3039
8719abec
CY
30402010-01-27 David De La Harpe Golden <david@harpegolden.net>
3041
3042 * fileio.c (Frename_file): Call copy-directory and
3043 delete-directory for directories, in order to handle cross-device
3044 renaming (Bug#3353).
3045
844794c8
JD
30462010-01-25 Jan Djärv <jan.h.d@swipnet.se>
3047
aa3e13b5 3048 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 3049 sizes 24 and 10. Bug #3643.
844794c8 3050
bd4b5750
SM
30512010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
3052
8dc1adf6 3053 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
3054 * keymap.c (shadow_lookup): Add `remap' arg.
3055 (describe_map, describe_vector): Update calls to shadow_lookup.
3056 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
3057 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
3058 perform remapping during shadow_lookup check of remapped_sequences.
3059
285d07e2
CY
30602010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
3061
3062 * image.c (png_load): Use png_sig_cmp instead of the obsolete
3063 png_check_sig, which has been removed in libpng 1.4.
3064
c6d09b8d
CY
30652010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
3066
3067 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
3068 lacks this header file).
3069
3d782998
YM
30702010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3071
3072 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
3073 as in Emacs 22.
3074
2aff7c53
YM
30752010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3076
3077 * lisp.h (make_pure_string): String pointer arg now points to const.
3078
3079 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
3080 args now point to const.
3081
74327f7a
EZ
30822010-01-22 Eli Zaretskii <eliz@gnu.org>
3083
3084 * lread.c (Fload): Don't treat files without .elc extension as
3085 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
3086 them. (bug#5303)
3087
4d1e6632
KH
30882010-01-20 Kenichi Handa <handa@m17n.org>
3089
3090 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
3091 treat the source as actual byte sequence.
3092
1fdede8f
AM
30932010-01-19 Alan Mackenzie <acm@muc.de>
3094
3095 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 3096 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
3097 `signal_after_change_p' to `coherent_change_p', and make the
3098 invocation of `modify_region' conditional on it.
3099
67477f30
JD
31002010-01-19 Jan Djärv <jan.h.d@swipnet.se>
3101
3102 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
3103 for debug purpose.
3104 (syms_of_xsettings): Declare xft-settings.
3105
244b023e
CY
31062010-01-18 Chong Yidong <cyd@stupidchicken.com>
3107
3108 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
3109
617364fe
CY
31102010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
3111
3112 * xterm.c (event_handler_gdk): Block input (Bug#5037).
3113
4fe22cdf
CY
31142010-01-16 Chong Yidong <cyd@stupidchicken.com>
3115
3116 * emacs.c (standard_args): Adjust arg priorities to reflect how
3117 they are processed in startup.el.
3118
e118d2be
AS
31192010-01-16 Andreas Schwab <schwab@linux-m68k.org>
3120
3121 * Makefile.in (lisp, shortlisp): Update.
3122
523ae620
SM
31232010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
3124
3125 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
3126 code, link the new kboard into all_kboard before running Lisp code,
3127 and protect the new terminal with GCPRO (Bug#5365).
3128 (x_term_init): Remove unused var `atom'.
3129 (x_delete_display, x_delete_terminal): Remove unused var `i'.
3130
f0d13888
JD
31312010-01-15 Jan Djärv <jan.h.d@swipnet.se>
3132
3133 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
3134 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
3135 to find out usable size of the desktop. Don't make frames larger than
ac146f82 3136 this. Bug #3643.
f0d13888 3137
cc320f07
KH
31382010-01-15 Kenichi Handa <handa@m17n.org>
3139
3140 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
3141
7ffdf101
CY
31422010-01-15 Chong Yidong <cyd@stupidchicken.com>
3143
3144 * nsterm.m (Qnone): Define.
3145
3146 * nsfns.m (Qnone): Move definition to nsterm.m.
3147
d12bd917
KH
31482010-01-14 Kenichi Handa <handa@m17n.org>
3149
3150 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
3151 systems.
3152
d9a7c140
KH
31532010-01-14 Kenichi Handa <handa@m17n.org>
3154
3155 Make auto-composition work on all buffers even if they are
3156 fundamental mode.
3157
3158 * composite.c (Vauto_composition_mode): New variable.
3159 (composition_compute_stop_pos): Check Vauto_composition_mode
3160 instead of Vauto_composition_function.
3161 (composition_adjust_point, Ffind_composition_internal): Likewise.
3162 (syms_of_composite): Declare Lisp variable
3163 "auto-composition-mode" here.
3164
63286bb2
CY
31652010-01-13 Chong Yidong <cyd@stupidchicken.com>
3166
3167 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
3168 during call to vendor-specific-keysyms (Bug#5365).
3169
c2623ee7
YM
31702010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3171
3172 * keyboard.c (input_available_signal) [SYNC_INPUT]:
3173 Call SIGNAL_THREAD_CHECK (Bug#5333).
3174
3175 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
3176 Call SIGNAL_THREAD_CHECK.
3177
0b5397c2
SM
31782010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
3179
3180 Try to fix bug#5314. This is probably not the final word, tho.
3181 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
3182 recent-auto-save-p as a side-effect.
3183 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
3184 * buffer.c (Fkill_buffer, reset_buffer):
3185 * editfns.c (Fsubst_char_in_region):
3186 * fileio.c (Finsert_file_contents, Fdo_auto_save)
3187 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
3188
dc954cb2
KH
31892010-01-13 Kenichi Handa <handa@m17n.org>
3190
3191 Display buffer name, etc. in mode line by composing correctly.
3192
3193 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
3194 STRING is not nil.
0b5397c2 3195 (display_mode_element): Adjust for the change of
dc954cb2
KH
3196 decode_mode_spec and display_line.
3197 (decode_mode_spec): Change arg MULTIBYTE to STRING.
3198 (display_string): Handle the case that STRING is non-null and
3199 LISP_STRING is not nil.
3200
0b5397c2
SM
3201 * xterm.c (x_draw_composite_glyph_string_foreground):
3202 Pay attention to s->face->overstrike.
dc954cb2
KH
3203
3204 * composite.c (composition_reseat_it): Don't check PT if STRING is
3205 non nil.
3206
4a00eaca
YM
32072010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3208
3209 * keyboard.c (read_char): Don't apply previous change when current
3210 buffer is unchanged by command execution.
3211
60abb287
JD
32122010-01-12 Jan Djärv <jan.h.d@swipnet.se>
3213
3214 * keyboard.c (read_char): Return after executing from special map.
3215
893db5bc
GM
32162010-01-12 Glenn Morris <rgm@gnu.org>
3217
3218 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
3219 bug-gnu-emacs rather than emacs-pretest-bug.
3220
4d03ece0
CY
32212010-01-11 Chong Yidong <cyd@stupidchicken.com>
3222
3223 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
3224 initializing the Lisp variables that depend on them.
3225
1df47e38
YM
32262010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3227
3228 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
3229 Clear areas that will not be updated after change of menu bar lines.
3230 Clear the menu bar window's current matrix when the window gets empty.
3231
2f1c6384
CY
32322010-01-09 Chong Yidong <cyd@stupidchicken.com>
3233
e398c61c
CY
3234 * intervals.h, textprop.c (extend_property_ranges): Return value
3235 and args changed. Discard properties that begin at or after the
3236 new end (Bug#5306).
3237
3238 * editfns.c (Fformat): Caller changed.
3239
e5a29a10
CY
3240 * nsterm.m (ns_set_default_prefs): Delete function.
3241 (syms_of_nsterm): Initialize ns_command_modifier,
3242 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
3243 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
3244
2f1c6384
CY
3245 * xdisp.c (pos_visible_p): Check for invisible text at the correct
3246 position (Bug#4040).
3247
d427a9fa
EZ
32482010-01-09 Eli Zaretskii <eliz@gnu.org>
3249
3250 * editfns.c (Ffloat_time): Doc fix.
3251
21b9df2f
JD
32522010-01-09 Jan Djärv <jan.h.d@swipnet.se>
3253
3254 * xfns.c (Fx_create_frame): Don't create frame larger than display
3255 by default bug#3643.
3256
4b00d3b1
YM
32572010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3258
3259 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
3260 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
3261 windows above internal border.
3262
3263 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
3264 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
3265 windows above internal border.
3266
3267 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
3268 tool bar windows specially.
3269
3270 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
3271
3272 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
3273 specially.
3274 (XTflash): Take account of menu bar height.
3275
3276 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
3277 specially.
3278
5075d853
JD
32792010-01-08 Jan Djärv <jan.h.d@swipnet.se>
3280
ac146f82 3281 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
3282 also be true before we can return early (bug #5339).
3283
474217c8
CY
32842010-01-06 David Reitter <david.reitter@gmail.com>
3285
3286 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
3287 (Fns_display_usable_bounds): Rewrite, computing bounds properly
3288 (Bug#3233).
3289
c0e6d47d
JD
32902010-01-06 Jan Djärv <jan.h.d@swipnet.se>
3291
d0cf45b7
JD
3292 * font.c (font_open_entity): Enable chache and call cached_font_ok
3293 for the driver if defined.
3294 (QCuser_spec): New symbol.
3295 (font_spec_from_name): Save name as user-spec.
3296 (font_load_for_lface): Keep user-spec instead of name.
3297 (font_open_by_name): Save name as user-spec.
3298 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 3299 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
3300
3301 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
3302 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
3303 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
3304
3305 * font.h (struct font_driver): Add cached_font_ok.
3306
c0e6d47d
JD
3307 * xterm.c (x_clear_frame): Queue draw for scroll bars.
3308
7c583cd8
JD
33092010-01-05 Jan Djärv <jan.h.d@swipnet.se>
3310
3311 * xterm.c (x_new_font): Move code for setting rows/cols before
3312 resizing ...
ac146f82 3313 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
3314
3315 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
3316 (xg_frame_resized, xg_frame_set_char_size):
3317 Call xg_clear_under_internal_border.
7c583cd8 3318 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 3319
03f77f0a
CY
33202010-01-05 Chong Yidong <cyd@stupidchicken.com>
3321
3322 * keyboard.c (read_key_sequence): Catch keyboard switch after
3323 making a new tty frame (Bug#5095).
3324
2a1ef5be
KH
33252010-01-05 Kenichi Handa <handa@m17n.org>
3326
3327 * fontset.c (fontset_find_font): Fix getting the frame pointer.
3328
e3eb1dae
SM
33292010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
3330
3331 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
3332 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
3333 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
3334
777013f2
MA
33352010-01-03 Michael Albinus <michael.albinus@gmx.de>
3336
3337 * dbusbind.c (xd_add_watch): Improve debug message.
3338 (xd_remove_watch): Improve debug message. If DATA is the session
3339 bus, unset D-Bus session environment.
3340 (Fdbus_init_bus): Pass the bus as argument to
3341 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 3342
8932b1c2
CY
33432010-01-01 Chong Yidong <cyd@stupidchicken.com>
3344
87231e2c
CY
3345 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
3346
4801c5fa
CY
3347 * lread.c (syms_of_lread): Make it clearer that these are the
3348 names of loaded files (Bug#5068).
3349
8932b1c2
CY
3350 * eval.c (run_hook_with_args): Handle the case where the global
3351 value has the obsolete single-function form (Bug#5026).
3352
11e3c684
CY
33532009-12-27 Chong Yidong <cyd@stupidchicken.com>
3354
3355 * minibuf.c (Fall_completions): Minor optimization.
3356
5b28ce35
EZ
33572009-12-26 Eli Zaretskii <eliz@gnu.org>
3358
5ce6e4f4
JB
3359 * .gdbinit (pgx): Fix display of composite glyphs.
3360 Display cmp.from and cmp.to as well.
3361 (pitx): Fix last change.
5b28ce35 3362
bcffff46
KH
33632009-12-25 Kenichi Handa <handa@m17n.org>
3364
3365 * composite.h (composition_adjust_point): Update prototype.
3366
3367 * composite.c (composition_reseat_it): Don't make a composition
3368 spanning over point.
3369 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
3370 composable characters.
3371 (composition_adjust_point): New arg NEW_PT. Callers changed.
3372
3373 * keyboard.c (command_loop_1): Force redisplay if the last point
3374 was within a composition.
3375 (adjust_point_for_property): Don't adjust point for automatic
3376 composition when called after buffer modification.
3377
3f670e9a
EZ
33782009-12-19 Eli Zaretskii <eliz@gnu.org>
3379
5ce6e4f4
JB
3380 * .gdbinit (pitx): Don't use enum names, use their values.
3381 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
3382 (pgx): Don't use enum names, use their values.
3383 (pitmethod): New helper command.
3384 (pitx): Use it to display iteration method.
3385 (pgrowit): New command.
3386
ad903955
EZ
3387 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
3388
3f670e9a
EZ
3389 Update dependencies in Makefile.in.
3390
3391 * Makefile.in (alloc.o): Depend on termhooks.h.
3392 (atimer.o): Depend on blockinput.h.
3393 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
3394 and frame.h.
3395 (callint.o): Depend on systime.h, coding.h, and composite.h.
3396 (callproc.o): Depend on buffer.h.
3397 (casefiddle.o): Don't depend on charset.h.
3398 (casetab.o): Depend on character.h.
3399 (ccl.o): Depend on composite.h.
3400 (chartab.o): Depend on ccl.h.
3401 (cm.o): Depend on dispextern.h.
3402 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
3403 (coding.o): Don't depend on $(INTERVALS_H).
3404 (composite.o): Don't depend on dispextern.h explicitly (it's in
3405 $(INTERVALS_H)). Depend on ccl.h.
3406 (data.o): Depend on systime.h, coding.h, composite.h,
3407 dispextern.h, font.h, and ccl.h.
3408 (dired.o): Depend on composite.h.
3409 (dispnew.o): Depend on coding.h. Don't depend explicitly on
3410 composite.h (it's in $(INTERVALS_H)).
3411 (doc.o): Depend on systime.h, coding.h, and composite.h.
3412 (editfns.o): Don't depend explicitly on dispextern.h.
3413 (emacs.o): Depend on frame.h and coding.h.
3414 (eval.o): Depend on coding.h, composite.h, and xterm.h.
3415 (fileio.o): Depend on frame.h and commands.h. Don't depend
3416 explicitly on dispextern.h.
3417 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
3418 composite.h.
3419 (fns.o): Don't depend on termhooks.h.
3420 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
3421 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
3422 coding.h, $(INTERVALS_H), window.h, xterm.h.
3423 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
3424 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
3425 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
3426 fontset.h, ccl.h, and ftfont.h.
3427 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
3428 (gtkutil.o): Depend on dispextern.h and composite.h.
3429 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
3430 termhooks.h, and ccl.h.
3431 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
3432 (intervals.o): Depend on systime.h and coding.h.
3433 (keyboard.o): Depend on composite.h and coding.h.
3434 (keymap.o): Depend on coding.h and frame.h.
3435 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
3436 (macros.o): Depend on systime.h, coding.h, and composite.h.
3437 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
3438 and atimer.h.
3439 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
3440 dispextern.h explicitly.
0b5397c2
SM
3441 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
3442 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
3443 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
3444 (regex.o): Don't depend on charset.h.
3445 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
3446 (search.o): Don't depend explicitly on composite.h.
3447 (sound.o): Depend on atimer.h and systime.h.
3448 (syntax.o): Don't depend explicitly on composite.h.
3449 (sysdep.o): Depend on coding.h and composite.h.
3450 (term.o): Depend on xterm.h and buffer.h.
3451 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
3452 (textprop.o): Don't depend on dispextern.h explicitly.
3453 (undo.o): Depend on dispextern.h.
3454 (window.o): Depend on coding.h and termhooks.h. Don't depend on
3455 dispextern.h and composite.h explicitly.
3456 (xdisp.o): Depend on ccl.h.
3457 (xfaces.o): Depend on coding.h and ccl.h.
3458 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
3459 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
3460 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
3461 ftfont.h.
3462 (xgselect.o): New dependency.
3463 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
3464 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
3465 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
3466 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
3467 (xsmfns.o): Depend on frame.h and dispextern.h.
3468 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
3469 sysselect.h.
3470
7a6f7fea
AS
34712009-12-19 Andreas Schwab <schwab@linux-m68k.org>
3472
3473 * font.c (Fclear_font_cache): Pass correct cache argument to
3474 font_clear_cache.
3475
f4c21026
AS
34762009-12-16 Andreas Schwab <schwab@linux-m68k.org>
3477
3478 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
3479 twice.
3480
f7ab0997
CY
34812009-12-15 Chong Yidong <cyd@stupidchicken.com>
3482
3483 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
3484 calling file-remote-p. Reported by Jim Meyering.
3485
fa8e045a
MA
34862009-12-15 Michael Albinus <michael.albinus@gmx.de>
3487
3488 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 3489 avoid compiler warnings. (Bug #5217)
fa8e045a 3490
a63dba42
KH
34912009-12-14 Kenichi Handa <handa@m17n.org>
3492
3493 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
3494 in 8-bit encoding.
3495
5ce6e4f4 34962009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
3497
3498 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
3499 tooltip windows.
3500
223e5fc6
JD
35012009-12-13 Jan Djärv <jan.h.d@swipnet.se>
3502
36acb2a7
JD
3503 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
3504 Xatom_net_window_type.
3505
3506 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
3507 Xatom_net_window_type.
3508
b8f00677
JD
3509 * xterm.c (my_log_handler): New function.
3510 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 3511 so we can filter out buggy messages. (Bug #5120).
b8f00677 3512
e5f0bc9a
JD
3513 * xterm.c (xg_scroll_callback): Parameter list changed,
3514 use parameter GtkScrollType to determine scroll/line/page.
3515 Only allow dragging if a button < 4 is grabbed (bug #5177).
3516 (xg_end_scroll_callback): New function.
3517 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
3518 xg_create_scroll_bar.
3519
3520 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
3521 (scroll_end_callback): Remove.
3522 (xg_create_scroll_bar): Add parameter end_callback, bind it to
3523 button-release-event. Replace value-changed event with change-value,
3524 bug #5177,
3525 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
3526 bug #5177.
3527
3528 * gtkutil.h (XG_LAST_SB_DATA): Remove.
3529 (xg_create_scroll_bar): Add GCallback end_callback.
3530
223e5fc6
JD
3531 * xftfont.c (QClcdfilter): New variable.
3532 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
3533 (syms_of_xftfont): Initialize QClcdfilter.
3534
3c055b77
JD
35352009-12-12 Jan Djärv <jan.h.d@swipnet.se>
3536
3537 * xsettings.c (struct xsettings): Add member seen.
3538 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 3539 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
3540 (apply_xft_settings): Only update Xft settings with what member seen
3541 indicates as new.
3542
05fe33ff
EZ
35432009-12-12 Eli Zaretskii <eliz@gnu.org>
3544
3545 * dispextern.h (struct text_pos): Use EMACS_INT;
3546 (struct glyph): Use EMACS_INT for charpos.
3547 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
3548 region_beg_charpos, region_end_charpos,
3549 redisplay_end_trigger_charpos, and also for
3550 iterator_stack_entry.end_charpos and
3551 iterator_stack_entry.stop_charpos.
3552
e8d7886a
JD
35532009-12-12 Jan Djärv <jan.h.d@swipnet.se>
3554
5ce6e4f4 3555 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
3556 (xg_create_scroll_bar): Call scroll_end_callback on button release
3557 event (bug #5177).
3558 (xg_event_is_for_scrollbar): != replaced with ==.
3559
d0db2ec8
KH
35602009-12-12 Kenichi Handa <handa@m17n.org>
3561
3562 * ftfont.c (struct ftfont_info): New member matrix.
3563 (ftfont_open): Setup xftfont_info->matrix.
3564 (MFLTFontFT): New member matrix.
3565 (FLOOR, CEIL, ROUND): New macros.
3566 (ftfont_get_metrics): Handle matrix transformation.
3567 (ftfont_shape_by_flt): New arg matrix. Callers changed.
3568
3569 * xftfont.c (struct xftfont_info): New member matrix.
3570 (xftfont_open): Setup xftfont_info->matrix.
3571
35722009-12-10 Kenichi Handa <handa@m17n.org>
3573
3574 * xdisp.c (append_space_for_newline): Consider face-remapping.
3575
2cc7b62f
AS
35762009-12-09 Andreas Schwab <schwab@linux-m68k.org>
3577
b87dd913
AS
3578 * xsettings.c: Include "keyboard.h".
3579
eba5eb94
AS
3580 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
3581
2cc7b62f
AS
3582 Fix implicit function declarations.
3583 * cmds.c: Include "frame.h".
3584 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
3585 * frame.h: Move declaration of delete_frame outside of
3586 HAVE_WINDOW_SYSTEM.
3587
a4ef73c8
CY
35882009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
3589
3590 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
3591
3592 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
3593 GTK builds.
3594
944a300c
AS
35952009-12-07 Andreas Schwab <schwab@linux-m68k.org>
3596
3597 * unexelf.c (unexec): Don't search for .data twice.
3598
022eef62
CY
35992009-12-05 Chong Yidong <cyd@stupidchicken.com>
3600
426ac949
CY
3601 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
3602 if push failed.
3603 (handle_line_prefix): Set avoid_cursor_p here. Check return value
3604 of push_display_prop (Bug#5000).
3605
022eef62
CY
3606 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
3607 value of font_list_entities (Bug#5085).
3608
be95bee9
JB
36092009-12-04 Juanma Barranquero <lekktu@gmail.com>
3610
3611 Fix `string-to-number' to deal consistently with integers and floats.
3612 * lread.c (isfloat_string): New argument ignore_trailing to accept all
3613 trailing characters, not just whitespace.
3614 (read1): Pass new arg 0 to keep old behavior.
3615 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
3616 trailing chars, as it is already done for integers. Doc fixes.
3617 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
3618
24c2d7ce
EZ
36192009-12-04 Eli Zaretskii <eliz@gnu.org>
3620
0b5397c2
SM
3621 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
3622 Delete unused enumeration value.
24c2d7ce 3623
7e694795
EZ
36242009-12-03 Eli Zaretskii <eliz@gnu.org>
3625
3626 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
3627
84b31826
SM
36282009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
3629
3630 * process.c (Fmake_network_process): Fix up the tests for
3631 "connectionless socket", so they DTRT for seqpacket sockets as well.
3632
f00c449b
SM
36332009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
3634
3635 * process.c (Qseqpacket): New symbol.
3636 (HAVE_SEQPACKET): New macro.
3637 (Fmake_network_process): Accept new :type `seqpacket'.
3638 (init_process): Add `seqpacket' feature when applicable.
3639 (syms_of_process): Initialize Qseqpacket.
3640
8096a0ff
YM
36412009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3642
3643 * font.c (font_load_for_lface, font_open_by_name): Don't store name
3644 if entity is Qnil.
3645
3e0de07f
SM
36462009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
3647
3648 * print.c (print_preprocess): Preprocess the key_and_value table of
3649 hashtables, even tho they're "hidden" (bug#5082).
3650
abeafb2a
JD
36512009-11-29 Jan Djärv <jan.h.d@swipnet.se>
3652
3653 * frame.c (frame_make_pointer_invisible)
3654 (frame_make_pointer_visible): Declare f before statements.
3655
4bf47195
EZ
36562009-11-28 Eli Zaretskii <eliz@gnu.org>
3657
3658 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
3659 omitted dependencies on lisp.h.
3660
c525b3f2
JD
36612009-11-27 Jan Djärv <jan.h.d@swipnet.se>
3662
ece2d4ed
JD
3663 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
3664 is NULL.
3665
3666 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
3667
3668 * frame.c (frame_make_pointer_invisible)
3e0de07f 3669 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
3670 frame.
3671
c525b3f2
JD
3672 * search.c (simple_search): Remove warning by making *p const.
3673
2f00e299
DN
36742009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
3675
3676 * xdisp.c (power_letter): Remove duplicate const.
3677
084b049b
JD
36782009-11-25 Jan Djärv <jan.h.d@swipnet.se>
3679
a1fadc6f
JD
3680 * term.c (delete_tty): Remove check for last terminal (bug#4970).
3681
5ce6e4f4 3682 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
3683 defaults (bug #5025).
3684
28259cac
SM
36852009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
3686
3687 * insdel.c (adjust_markers_for_delete): Move it in the
3688 right direction! (bug#4803)
3689
e8e14166
YM
36902009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3691
3692 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
3693
3694 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
3695
86677b58
GM
36962009-11-24 Glenn Morris <rgm@gnu.org>
3697
3698 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
3699
581e51e8
JD
37002009-11-23 Jan Djärv <jan.h.d@swipnet.se>
3701
cfc86c7a
JD
3702 * Makefile.in: Must create deps for ecrt0.o in its rule.
3703
581e51e8
JD
3704 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
3705 because that is what Gtk+ font dialog understands.
3706
3707 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
3708 of Fcopy_sequence.
3709 (font_open_by_name): Put name given into QCname for font-object returned.
3710
3711 * frame.c (x_set_font): Save original font name as frame parameter
3712 font-parameter.
3713
3714 * xsettings.c (set_default_xft_settings): New function.
3715 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
3716 is found.
3717
8b264ecb
AS
37182009-11-22 Andreas Schwab <schwab@linux-m68k.org>
3719
3720 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
3721 searching backwards through multibyte buffer.
3722
872870b2
JD
37232009-11-21 Jan Djärv <jan.h.d@swipnet.se>
3724
3725 * xterm.c: #include xgselect.h.
3726 (x_initialize): Call xgselect_initialize.
3727
3728 * xsettings.c (something_changedCB): C++ comments => C comments.
3729 (init_gconf): Do not deal with any GLib file descriptors, xg_select
3730 does that now.
3731
3732 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
3733 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
3734 (scroll_bar_button_cb): Remove.
5ce6e4f4 3735 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
3736 event.
3737 (xg_create_scroll_bar): Don't bind button-press-event and
3738 button-release-event.
3739
3740 * process.c: Include xgselect.h if defined (USE_GTK) ||
3741 defined (HAVE_GCONF).
3742 (wait_reading_process_output): Call xg_select for the same condition.
3743
3744 * xgselect.c (xg_select): New function to better integrate with
3745 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
3746
3747 * xgselect.h: New file, declare xg_select, xgselect_initialize.
3748
3749 * Makefile.in (XOBJ): Add xgselect.o.
3750
62a6e103
AS
37512009-11-21 Andreas Schwab <schwab@linux-m68k.org>
3752
0b5397c2
SM
3753 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
3754 Remove ignored second argument. All callers changed.
62a6e103
AS
3755 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
3756 (RE_STRING_CHAR_AND_LENGTH): Likewise.
3757 * xdisp.c (string_char_and_length): Likewise.
3758
b0ca0f33
DN
37592009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
3760
3761 * xterm.c (x_new_font):
3762 * print.c (print_object):
3763 * cmds.c (Fself_insert_command): Move declarations before statements.
3764
dd5a6279
CY
37652009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
3766
3767 * s/cygwin.h: Remove unneeded linker flags.
3768
4a8e097d
JD
37692009-11-20 Jan Djärv <jan.h.d@swipnet.se>
3770
0d1d0d26
JD
3771 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
3772
3773 * xsettings.h: Declare xsettings_get_system_font.
3774
3775 * xsettings.c (xsettings_get_system_font): New function.
3776 (init_gconf): No use initiating gconf unless we have Xft also.
3777 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
3778 HAVE_GCONF.
3779
4a8e097d
JD
3780 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
3781 add a blank entry so it doesn't collapse into nothing.
3782
8ab1650e
SM
37832009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
3784
3785 * lread.c (Funintern): Comment out last change.
3786
82c602f0
RS
37872009-11-19 Richard Stallman <rms@gnu.org>
3788
3789 * lread.c (Funintern): Error if symbol is t or nil.
3790
87e32266
SM
37912009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
3792
3793 * insdel.c (make_gap_larger): Don't make as many assumptions about the
3794 representation of Lisp integers.
3795 Reported by MJ Chan <mjchan.inbox@gmail.com>.
3796
1b9ac145
AS
37972009-11-17 Andreas Schwab <schwab@linux-m68k.org>
3798
3799 * lisp.h: Remove declaration of Ffont_get_system_font.
3800 * xfns.c: Move include of "xsettings.h".
3801 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
3802
dfb3c4c6
JD
38032009-11-17 Jan Djärv <jan.h.d@swipnet.se>
3804
87e32266
SM
3805 * xsettings.c (something_changedCB, Ffont_get_system_font):
3806 Check use_system_font.
dfb3c4c6
JD
3807 (syms_of_xsettings): DEFVAR font-use-system-font.
3808
9370c1d8
AS
38092009-11-17 Andreas Schwab <schwab@linux-m68k.org>
3810
25fe851a
AS
3811 * xfns.c (x_default_font_parameter): Remove dead assignment.
3812
9370c1d8
AS
3813 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
3814
637fa988
JD
38152009-11-17 Jan Djärv <jan.h.d@swipnet.se>
3816
87e32266 3817 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 3818 not have FC_LCD_*. #define them if not there.
a6eb20d8 3819
87e32266 3820 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 3821
637fa988
JD
3822 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
3823
3824 * xterm.c (handle_one_xevent): Call xft_settings_event for
3825 ClientMessage, PropertyNotify and DestroyNotify.
3826 (x_term_init): If we have XFT, get DPI from Xft.dpi.
3827 Call xsettings_initialize.
3828
3829 * xftfont.c (xftfont_fix_match): New function.
3830 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
3831 Call xftfont_fix_match after XftFontMatch.
3832
3833 * xfont.c (xfont_driver): Initialize all members.
3834
87e32266
SM
3835 * xfns.c (x_default_font_parameter):
3836 Try font from Ffont_get_system_font.
637fa988
JD
3837 Do not get font from x_default_parameter if we got one from
3838 Ffont_get_system_font.
87e32266 3839 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
3840
3841 * w32font.c (w32font_driver): Initialize all members.
3842
3843 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
3844
3845 * lisp.h: Declare syms_of_xsettings.
3846
87e32266
SM
3847 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
3848 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
3849
3850 * ftfont.c (ftfont_filter_properties): New function.
3851
3852 * frame.c (x_set_font): Remove unused variable lval.
3853
87e32266 3854 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
3855
3856 * font.c (font_put_extra): Don't return if val is nil, it means
3857 boolean option is off.
3858 (font_parse_fcname): Collect all extra properties in extra_props
3859 and call filter_properties for all drivers with extra_props and
3860 font as parameter.
87e32266
SM
3861 (font_open_entity): Do not use cache, it does not pick up new
3862 fontconfig settings like hinting.
637fa988
JD
3863 (font_load_for_lface): If spec had a name in it, store it in entity.
3864
a73f9c9d 3865 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
3866
3867 * config.in: HAVE_GCONF is new.
3868
3869 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
3870 xsettings.o is new.
3871
5a942932
KH
38722009-11-17 Kenichi Handa <handa@m17n.org>
3873
3874 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
3875 back to the default font in case that no suitable font is found.
3876
b7c7a4d1
SM
38772009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
3878
3879 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
3880 Suggested by Chad Brown <yandros@mit.edu>.
3881 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
3882
072f1e39
JD
38832009-11-16 Jan Djärv <jan.h.d@swipnet.se>
3884
3885 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
3886
5d1e70a2
AS
38872009-11-14 Andreas Schwab <schwab@linux-m68k.org>
3888
87e32266 3889 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 3890
a53cfbe5
JD
38912009-11-14 Jan Djärv <jan.h.d@swipnet.se>
3892
473a99b7
JD
3893 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
3894 has a parent.
3895
a53cfbe5 3896 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 3897 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
3898
3899 * config.in: Generated (AUTO_DEPEND).
3900
f04bb9b2
MA
39012009-11-13 Michael Albinus <michael.albinus@gmx.de>
3902
b7c7a4d1 3903 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
3904 Vdbus_registered_functions_table, because it contains also
3905 properties. Fix docstring.
b7c7a4d1 3906 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 3907
8f11f7ec
SM
39082009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
3909
3910 * alloc.c (mark_object): Don't reprocess marked strings.
3911 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
3912 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
3913
8a605fe8
KH
39142009-11-13 Kenichi Handa <handa@m17n.org>
3915
8f11f7ec 3916 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
3917 semantics of Vword_combining_categories.
3918 (Vword_combining_categories): Describe the slight change of the
3919 semantics.
3920
241c4680
EZ
39212009-11-13 Eli Zaretskii <eliz@gnu.org>
3922
3923 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
3924
3925 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
3926
5d58e44c
SM
39272009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
3928
3929 * xdisp.c (syms_of_xdisp): Fix typo in last change.
3930
5e13f9d3
JB
39312009-11-12 Juanma Barranquero <lekktu@gmail.com>
3932
3933 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
3934
cf54c754
DR
39352009-11-11 David Reitter <david.reitter@gmail.com>
3936
3937 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
3938 variables to fix 2009-11-09 change.
3939
a4ada374
DN
39402009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
3941
91433552
DN
3942 * process.c (ifflag_def): Make flag_sym constant.
3943 (Fnetwork_interface_info): Use a constant pointer.
3944 (ifflag_table):
3945 * xfns.c (cursor_bits):
3946 * xdisp.c (power_letter):
3947 * termcap.c (speeds, esctab):
3948 * sysdep.c (baud_convert):
3949 * keyboard.c (lispy_accent_codes, modifier_names):
3950 * image.c (xbm_format, xpm_format, pbm_format, png_format)
3951 (jpeg_format, tiff_format, gif_format, svg_format)
3952 (interlace_start, interlace_increment, gs_format):
3953 * gtkutil.c (separator_names):
3954 * fringe.c (swap_nibble):
3955 * fns.c (base64_value_to_char, base64_char_to_value):
3956 * fileio.c (make_temp_name_tbl):
3957 * coding.c (suffixes): Make constant.
3958
f4265f6c
DN
3959 * frame.c (make_initial_frame):
3960 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
3961 build_string.
3962 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
3963
04420943
DN
3964 * s/freebsd.h:
3965 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
3966
0a5d24ae
DN
3967 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
3968 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
3969
a4ada374
DN
3970 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
3971 * xterm.c (syms_of_xterm):
3972 * xfaces.c (syms_of_xfaces):
3973 * xdisp.c (syms_of_xdisp):
3974 * lread.c (syms_of_lread):
3975 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
3976 build_string.
91433552 3977
a4ada374
DN
3978 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
3979
af98fc7f
SM
39802009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3981
8ab1650e 3982 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 3983
e90292a9
JD
39842009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3985
3986 * keyboard.h: Declare timer_check.
3987
3988 * keyboard.c (timer_check_2): New function that does what the old
3989 timer_check did.
3990 (timer_check): Call timer_check_2 until -1 or a non-zero time is
3991 returned, i.e. don't return -1 with timers pending.
3992
3993 * process.c: Remove extern declaration of timer_check.
3994
3995 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
3996 even if timer_check returned -1.
3997
af98fc7f
SM
3998 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
3999 xg_dialog_data.
e90292a9
JD
4000 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
4001 the event loop.
4002 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
4003 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
4004 Destroy the dialog after xg_dialog_run.
4005
045b83c0
SM
40062009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
4007
4008 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
4009
1fb99a3a
JD
40102009-11-10 Jan Djärv <jan.h.d@swipnet.se>
4011
4012 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
4013
04e452cb
JB
40142009-11-09 Juanma Barranquero <lekktu@gmail.com>
4015
4016 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
4017
ef7417fd
SM
40182009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
4019
4020 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
4021 w32menu.c, and nsmenu.m.
4022 Simplify the obsolete case where position is nil.
4023 (cleanup_popup_menu): New function, moved from nsmenu.m.
4024 (struct skp): Remove slot `notreal'.
4025 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
4026 adjust callers.
4027 (single_menu_item): Adjust call to parse_menu_item.
4028 (syms_of_menu): Defsubr x-popup-menu.
4029 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
4030 (keymap_panes): Don't export any more.
4031 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
4032 (xmenu_show): Declare.
4033 * keyboard.c (parse_menu_item): Remove arg `notreal'.
4034 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
4035 * keyboard.h (parse_menu_item): Update declaration.
4036 * xmenu.c (Fx_popup_menu): Remove.
4037 (syms_of_xmenu): Don't defsubr x-popup-menu.
4038 * w32menu.c (Fx_popup_menu): Remove.
4039 (syms_of_w32menu): Don't defsubr x-popup-menu.
4040 * nsmenu.m (cleanup_popup_menu): Remove.
4041 (ns_menu_show): Rename from ns_popup_menu and remove all the code
4042 moved to menu.c's Fx_popup_menu.
4043 (Fx_popup_menu): Remove.
4044 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
4045 menu_items (it's done in menu.c already).
4046
424d6179
SM
40472009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
4048
4049 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
4050 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
4051
c0df13a6 40522009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
4053
4054 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 4055 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
4056 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
4057 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
4058
2de9f71c
SM
40592009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
4060
4061 Let integers use up 2 tags to give them one extra bit and thus double
4062 their range.
4063 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
4064 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
4065 New macros.
4066 (enum Lisp_Type): Use them. Give explicit values.
4067 (Lisp_Type_Limit): Remove.
4068 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
4069 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
4070 Pay attention to USE_2_TAGS_FOR_INTS.
4071 (INTEGERP): Use LISP_INT_TAG_P.
4072 * fns.c (internal_equal): Simplify the default case.
4073 (sxhash): Use case_Lisp_Int.
4074 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
4075 any more.
4076 (Ftype_of): Use case_Lisp_Int.
4077 (store_symval_forwarding): Take into account the fact that Ints can
4078 now have more than one tag.
4079 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
4080 buffer_slot_type_mismatch):
4081 * xfaces.c (face_attr_equal_p):
4082 * print.c (print_object):
4083 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
4084 Use case_Lisp_Int.
4085
323637a2
EZ
40862009-11-06 Eli Zaretskii <eliz@gnu.org>
4087
7ac65b38
EZ
4088 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
4089
323637a2
EZ
4090 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
4091 warning.
4092
e511451f
JD
40932009-11-06 Jan Djärv <jan.h.d@swipnet.se>
4094
4095 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
4096
4097 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
4098
4099 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
4100 ButtonPressRelease and MotionNotify (bug#4870).
4101
5e2327cf
DN
41022009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
4103
5adc433e
DN
4104 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
4105
d67b4f80
DN
4106 * xterm.c (syms_of_xterm):
4107 * xselect.c (syms_of_xselect):
4108 * xmenu.c (syms_of_xmenu):
4109 * xfns.c (syms_of_xfns):
4110 * xfaces.c (syms_of_xfaces):
4111 * xdisp.c (syms_of_xdisp):
4112 * window.c (syms_of_window):
4113 * w32fns.c (syms_of_w32fns):
4114 * undo.c (syms_of_undo):
4115 * textprop.c (syms_of_textprop):
4116 * terminal.c (syms_of_terminal):
4117 * syntax.c (syms_of_syntax):
4118 * sound.c (syms_of_sound):
4119 * search.c (syms_of_search):
4120 * print.c (syms_of_print):
4121 * minibuf.c (syms_of_minibuf):
4122 * macros.c (syms_of_macros):
4123 * keymap.c (syms_of_keymap, initial_define_key)
4124 (initial_define_lispy_key):
4125 * keyboard.c (syms_of_keyboard):
4126 * insdel.c (syms_of_insdel):
4127 * image.c (syms_of_image):
4128 * fringe.c (syms_of_fringe):
4129 * frame.c (syms_of_frame):
4130 * fontset.c (syms_of_fontset):
4131 * fns.c (syms_of_fns):
4132 * fns.c (syms_of_fns):
4133 * fileio.c (syms_of_fileio):
4134 * fileio.c (syms_of_fileio):
4135 * eval.c (syms_of_eval):
4136 * doc.c (syms_of_doc):
4137 * dispnew.c (syms_of_display):
4138 * dired.c (syms_of_dired):
4139 * dbusbind.c (syms_of_dbusbind):
4140 * data.c (syms_of_data):
4141 * composite.c (syms_of_composite):
4142 * coding.c (syms_of_coding):
4143 * cmds.c (syms_of_cmds):
4144 * charset.c (define_charset_internal, syms_of_character):
4145 * ccl.c (syms_of_ccl):
4146 * category.c (syms_of_category, init_category_once):
4147 * casetab.c (syms_of_casetab):
4148 * casefiddle.c (syms_of_casefiddle):
4149 * callint.c (syms_of_callint):
4150 * bytecode.c (syms_of_bytecode):
4151 * buffer.c (keys_of_buffer, syms_of_buffer):
4152 * alloc.c (syms_of_alloc):
4153 * process.c (syms_of_process, init_process):
4154 * lread.c (syms_of_lread, init_obarray):
4155 * font.c (build_style_table):
4156 * emacs.c (syms_of_emacs, main): Replace calls to intern with
4157 intern_c_string, calls to make_pure_string with
4158 make_pure_c_string. Use pure_cons instead of Fcons.
4159
5e2327cf
DN
4160 * process.c (socket_options): Make it const.
4161 (set_socket_option, init_process): Use a const pointer.
4162
4163 * lread.c (intern_c_string): New function.
4164 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
4165 (defvar_int): Uset it. Make the name const char*.
4166
4167 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
4168 (defvar_int): Update prototypes.
4169 (DEFUN, EXFUN): Support for prototypes is now required.
4170 (intern_c_string): New prototype.
4171 (struct Lisp_Subr): Make symbol_name constant.
4172
4173 * font.c (struct table_entry): Remove unused member. Make NAMES
4174 constant.
4175 (weight_table, slant_table, width_table): Make constant.
4176
4177 * emacs.c (struct standard_args): Make name and longname constant.
4178
4179 * character.h (DEFSYM): Use intern_c_string.
4180
a56eaaef
DN
41812009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
4182
4183 * alloc.c (make_pure_c_string): New function.
4184
4185 * eval.c (Fautoload): Purecopy all arguments.
4186
f6a07420
KH
41872009-11-05 Kenichi Handa <handa@m17n.org>
4188
4189 * fileio.c (Finsert_file_contents): Be sure set coding-system of
4190 the buffer in case of replace.
4191
5d28d4b1
DN
41922009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
4193
4194 * puresize.h (BASE_PURESIZE): Increase to 1620000.
4195
b349d111
SM
41962009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
4197
d528b1ce
SM
4198 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
4199 when applicable (bug#4851).
4200
b349d111
SM
4201 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
4202 (P_): Support for prototypes is now required.
4203
c38eb027
CY
42042009-10-31 Chong Yidong <cyd@stupidchicken.com>
4205
4206 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
4207 (Bug#4827).
4208
0405f8d9
EZ
42092009-10-30 Eli Zaretskii <eliz@gnu.org>
4210
d528b1ce 4211 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 4212
ca0a881a
DN
42132009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
4214
4215 * puresize.h (BASE_PURESIZE): Increase to 1470000.
4216
d528b1ce
SM
4217 * lread.c (Fload): Purecopy the file name when building
4218 Vpreloaded_file_list.
ca0a881a 4219
47e0e0e4
JR
42202009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
4221
4222 * w32fns.c (syms_of_w32fns): Change default value of
4223 w32-scroll-lock-modifier to nil. (Bug#2827)
4224
057bce6f
JB
42252009-10-26 Juanma Barranquero <lekktu@gmail.com>
4226
782a943e 4227 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 4228
242bc74c
AS
42292009-10-26 Andreas Schwab <schwab@redhat.com>
4230
4231 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
4232
522d013a
JB
42332009-10-26 Juanma Barranquero <lekktu@gmail.com>
4234
4235 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
4236 For delta < 0, skip check that only makes sense when the mini-window
4237 is going to be enlarged. (Bug#4534)
4238
18060980
CY
42392009-10-25 Chong Yidong <cyd@stupidchicken.com>
4240
4241 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
4242 string in menu maps (Bug#4471).
4243
fec8f0fe
CY
42442009-10-24 Chong Yidong <cyd@stupidchicken.com>
4245
4246 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
4247 FRAME_NS_VIEW on terminal frames (Bug#4765).
4248
10d66ec0
AS
42492009-10-24 Andreas Schwab <schwab@linux-m68k.org>
4250
1cae01f7
AS
4251 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
4252 DBUS_TYPE_UINTnn separately to get proper sign extension.
4253
58a12889
AS
4254 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
4255 can properly handle unsigned types.
d528b1ce 4256 (make_uid, make_gid): Remove.
58a12889 4257
987c9327
AS
4258 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
4259 types again.
4260
522d013a 4261 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
4262 (system_process_attributes): Likewise.
4263
905a9ed3
DN
42642009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
4265
4266 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
4267
4268 * eval.c (Fautoload): Purecopy the filename. Simplify.
4269
4270 * category.c (Fdefine_category): Purecopy docstring.
4271
a599b3e8
AS
42722009-10-23 Andreas Schwab <schwab@linux-m68k.org>
4273
7b792fc9
AS
4274 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
4275
a599b3e8
AS
4276 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
4277
b35ac83e
CY
42782009-10-23 Chong Yidong <cyd@stupidchicken.com>
4279
4280 * window.c (Fwindow_edges, Fwindow_pixel_edges)
4281 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
4282 (Bug#4775).
4283
e8903e00
SM
42842009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
4285
4286 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
4287 (init_fileio_once):
4288 * lisp.h (init_fileio_once): Remove.
4289 * emacs.c (main): Don't call init_fileio_once.
4290
8f43cbf3
DN
42912009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
4292
4293 * puresize.h (BASE_PURESIZE): Increase to 1430000.
4294
26898943
AS
42952009-10-21 Andreas Schwab <schwab@linux-m68k.org>
4296
4297 * doprnt.c (doprnt): Fix overflow check.
4298
5c646d5a
JD
42992009-10-21 Jan Djärv <jan.h.d@swipnet.se>
4300
3132a7ea
JD
4301 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
4302
5c646d5a
JD
4303 * xterm.h (x_wait_for_event): Declare it.
4304
4305 * xterm.c (pending_event_wait): New variable.
4306 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
4307 see pending_event_wait.eventtype.
4308 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
4309 (x_new_font): Call change_frame_size with new rows/columns before we
4310 try to resize the frame.
5c646d5a 4311 (x_wait_for_event): New function.
d528b1ce
SM
4312 (x_set_window_size_1): Don't change gravity unless change_gravity
4313 is set.
5c646d5a
JD
4314 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
4315 don't change frame size, instead wait for the ConfigureNotify.
4316 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
4317 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
4318 (x_initialize): Initialize pending_event_wait.
4319
4320 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
4321 size.
4322
4323 * widget.c (EmacsFrameSetValues): Add comment.
4324 (EmacsFrameSetCharSize): Just call x_set_window_size.
4325
4326 * gtkutil.c (xg_frame_set_char_size): Flush events and call
4327 x_wait_for_event.
d528b1ce 4328 (flush_and_sync): Remove again.
5c646d5a
JD
4329 (xg_get_font_name): Suggest monospace if no previous font is known.
4330
e9c1637d
SM
43312009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
4332
4333 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 4334 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 4335
5a72cccb
YM
43362009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4337
4338 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
4339 processing pending events when event is filtered for input method.
ab04798f 4340 (Bug#3681)
5a72cccb 4341
2629aa37
JB
43422009-10-20 Juanma Barranquero <lekktu@gmail.com>
4343
4344 * fns.c: Add #endif accidentally removed in previous change.
4345
c3417a74
DN
43462009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
4347
4348 * fns.c: Remove code for unsupported system: MAC_OS.
4349 * image.c: Likewise. Include setjmp.h.
4350
9685cef2
JD
43512009-10-19 Jan Djärv <jan.h.d@swipnet.se>
4352
4353 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
4354 pixel -1 (bug #4742).
4355
d7306fe6
DN
43562009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
4357
019d2c4c
DN
4358 * process.c (create_pty): Remove conditionals for no longer
4359 supported systems: UNIPLUS and RTU.
4360
ee6bacd4
DN
4361 * xterm.c:
4362 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
4363
d7306fe6
DN
4364 * alloc.c: Do not define struct catchtag.
4365 * eval.c: Move struct catchtag definition ...
4366 * lisp.h: ... here.
4367
4368 * image.c: Move png.h #include earlier to avoid warnings.
4369
4370 * xterm.c:
4371 * xsmfns.c:
4372 * xselect.c:
4373 * xrdb.c:
4374 * xmenu.c:
4375 * xftfont.c:
4376 * xfont.c:
4377 * xfns.c:
4378 * xfaces.c:
4379 * xdisp.c:
4380 * window.c:
4381 * widget.c:
4382 * w32xfns.c:
4383 * w32uniscribe.c:
4384 * w32term.c:
4385 * w32select.c:
4386 * w32reg.c:
4387 * w32proc.c:
4388 * w32menu.c:
4389 * w32inevt.c:
4390 * w32heap.c:
4391 * w32font.c:
4392 * w32fns.c:
4393 * w32console.c:
4394 * w32.c:
4395 * w16select.c:
4396 * vm-limit.c:
4397 * unexsol.c:
4398 * unexec.c:
4399 * unexcw.c:
4400 * unexaix.c:
4401 * undo.c:
4402 * tparam.c:
4403 * textprop.c:
4404 * terminfo.c:
4405 * terminal.c:
4406 * termcap.c:
4407 * term.c:
4408 * syntax.c:
4409 * sound.c:
4410 * sheap.c:
4411 * search.c:
4412 * scroll.c:
4413 * region-cache.c:
4414 * regex.c:
4415 * ralloc.c:
4416 * process.c:
4417 * print.c:
b024548b
DN
4418 * nsterm.m:
4419 * nsselect.m:
4420 * nsmenu.m:
4421 * nsimage.m:
4422 * nsfont.m:
4423 * nsfns.m:
d7306fe6
DN
4424 * msdos.c:
4425 * minibuf.c:
4426 * menu.c:
4427 * marker.c:
4428 * macros.c:
4429 * keymap.c:
4430 * keyboard.c:
4431 * intervals.c:
4432 * insdel.c:
4433 * indent.c:
4434 * gtkutil.c:
4435 * ftxfont.c:
4436 * ftfont.c:
4437 * fringe.c:
4438 * frame.c:
4439 * fontset.c:
4440 * font.c:
4441 * fns.c:
4442 * floatfns.c:
4443 * filelock.c:
4444 * fileio.c:
4445 * emacs.c:
4446 * editfns.c:
4447 * dosfns.c:
4448 * doprnt.c:
4449 * doc.c:
4450 * dispnew.c:
4451 * dired.c:
4452 * dbusbind.c:
4453 * data.c:
4454 * composite.c:
4455 * coding.c:
4456 * cmds.c:
4457 * cm.c:
4458 * chartab.c:
4459 * charset.c:
4460 * character.c:
4461 * ccl.c:
4462 * category.c:
4463 * casetab.c:
4464 * casefiddle.c:
4465 * callproc.c:
4466 * callint.c:
4467 * bytecode.c:
4468 * buffer.c:
4469 * atimer.c: Include setjmp.h. (Bug#4643)
4470
fd5f21e6
SM
44712009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
4472
4c0354d7
SM
4473 Remove leftover table unibyte_to_multibyte_table.
4474 * character.c (unibyte_to_multibyte_table): Remove.
4475 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
4476 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
4477 * character.h (UNIBYTE_TO_CHAR): New macro.
4478 (MAKE_CHAR_MULTIBYTE): Use it.
4479 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
4480 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
4481 (message_dolog, set_message_1):
4482 * search.c (Freplace_match):
4483 * editfns.c (Fcompare_buffer_substrings):
4484 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
4485 (concat):
4486 * insdel.c (copy_text, count_size_as_multibyte):
4487 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
4488 * term.c (produce_glyphs):
4489 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
4490 * regex.c (RE_CHAR_TO_MULTIBYTE):
4491 * cmds.c (internal_self_insert):
4492 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
4493
fd5f21e6
SM
4494 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
4495
4418646e
DN
44962009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
4497
4498 * puresize.h (BASE_PURESIZE): Increase to 1310000.
4499
35f5c1d2
JB
45002009-10-16 Juanma Barranquero <lekktu@gmail.com>
4501
4502 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
4503
a0cd8f6b
AR
45042009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
4505
4506 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
4507 still needed under Tiger.
4508
4509 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
4510
4511 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
4512 __Apple__.
4513
4514 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
4515
01a8d3fa
KH
45162009-10-15 Kenichi Handa <handa@m17n.org>
4517
4518 * print.c (print_object): Escape a symbol like "2E10" too.
4519
bf6c75c9 45202009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
4521
4522 Cleanups and changes for 64-bit compile under Snow Leopard.
4523 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
4524
4525 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
4526
c5959062 4527 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
4528 (ns_findfonts, nsfont_list_family): Use long format in printf, and
4529 cast argument.
4530 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 4531 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
4532
4533 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
4534
4535 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
4536 where appropriate.
4537
4538 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
4539 where appropriate.
6e4780c5
JB
4540 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
4541 Use stringWithUTF8String.
bf6c75c9
AR
4542 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
4543
6e4780c5
JB
4544 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
4545 Add formal protocol mention to inheritance.
bf6c75c9
AR
4546 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
4547
6e4780c5
JB
4548 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
4549 Fix printf format.
bf6c75c9
AR
4550 (ns_query_color): Use CGFloat where appropriate.
4551 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 4552 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
4553 argument.
4554
3d87f118
AR
4555 * config.in (NS_HAVE_NSINTEGER): Drop.
4556
a95c8102
AR
4557 * dbusbind.c (dbus-method-return-internal)
4558 (dbus-method-error-internal): Use long format in printf, and cast
4559 argument.
4560
4561 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
4562 in printf, and cast argument.
4563
6873acca 4564 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
4565 cast argument.
4566
9ec6f100
GM
45672009-10-11 Glenn Morris <rgm@gnu.org>
4568
4569 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
4570
5be883cd
JD
45712009-10-08 Jan Djärv <jan.h.d@swipnet.se>
4572
4573 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
4574 menu bar with a small width so it doesn't enlarge the frame.
4575
d7a39b51
JB
45762009-10-08 Juanma Barranquero <lekktu@gmail.com>
4577
4578 * fontset.c (Fset_fontset_font): Fix typos in error messages.
4579
0c2b6f8e
GM
45802009-10-06 Glenn Morris <rgm@gnu.org>
4581
4582 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
4583 SOME_MACHINE_LISP (this enters indirectly via DOC).
4584
e02131a2
EZ
45852009-10-05 Eli Zaretskii <eliz@gnu.org>
4586
4587 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
4588
b4744254
EZ
45892009-10-04 Eli Zaretskii <eliz@gnu.org>
4590
4591 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
4592 Doc fix.
4593
dbf64827
JB
45942009-10-03 Martin Rudalics <rudalics@gmx.at>
4595
4596 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
4597
e9a0aef8
MA
45982009-10-02 Michael Albinus <michael.albinus@gmx.de>
4599
d528b1ce 4600 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
4601 used anymore outside fileio.c.
4602
4603 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
4604
64eb2b56
JB
46052009-10-01 Juanma Barranquero <lekktu@gmail.com>
4606
4607 * lisp.h (Qdelete_directory_internal):
4608 Declare, instead of Qdelete_directory.
4609
4610 * w32fns.c (Fsystem_move_file_to_trash): Use it.
4611
9d28c33e
SM
46122009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
4613
4614 * eval.c (Fcalled_interactively_p): Add `kind' argument.
4615
9d8f3bd9
MA
46162009-10-01 Michael Albinus <michael.albinus@gmx.de>
4617
9d28c33e 4618 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
4619 Fdelete_directory. It is not a command anymore. It has no file
4620 name handler.
4621
9694740b
SM
46222009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
4623
4624 * xdisp.c (get_next_display_element): Use an enum in last change.
4625
748e162f
KH
46262009-09-28 Kenichi Handa <handa@m17n.org>
4627
9694740b 4628 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
4629 unibyte_display_via_language_environment in handling
4630 Vnobreak_char_display.
4631
17efd58d
AR
46322009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
4633
4634 * nsterm.h (ns_app_name): New extern variable.
4635
4636 * nsterm.m (ns_app_name): New variable.
4637 (ns_term_init): Set and use it.
4638 (ns_term_shutdown): Use it.
4639
4640 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
4641 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
4642
4643 * nsfns.m (ns_set_name_iconic, ns_set_name)
4644 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
4645 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
4646
9694740b
SM
4647 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
4648 Remove double-casting in client_data comparison.
31c2d412 4649
3208cb35
YM
46502009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4651
4652 * keyboard.c (make_lispy_event): Remember last wheel direction.
4653 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
4654
b7d552d6
GM
46552009-09-26 Glenn Morris <rgm@gnu.org>
4656
4657 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
4658 internal.elc. Add term/pc-win.elc.
4659 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
4660 term/x-win.elc.
4661 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
4662 term/w32-win.elc.
4663 (NS_SUPPORT): New.
4664 (lisp): Add NS_SUPPORT.
4665 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
4666
4ff670a8
DR
46672009-09-25 David Reitter <david.reitter@gmail.com>
4668
4669 * nsmenu.m (EmacsMenu-clear): Recognize application menu
4670 on Mac OS X 10.6+ (bug#4513).
4671
feabfb6c
JB
46722009-09-24 Juanma Barranquero <lekktu@gmail.com>
4673
4674 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
4675 some parts of Emacs code (like font selection) don't grok them.
4676 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 4677
de59072a
AS
46782009-09-24 Andreas Schwab <schwab@redhat.com>
4679
4680 * coding.c (decode_coding_iso_2022): Fix operator precedence.
4681
a489517b
JB
46822009-09-24 Juanma Barranquero <lekktu@gmail.com>
4683
4684 * dired.c (Fdirectory_files): Fix typo in docstring.
4685
0592970c
AR
46862009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4687
4688 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
4689 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
4690 (EmacsScroller-setPosition:portion:whole:): Remove -display call
4691 under GNUstep.
4692 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
4693
4694 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
4695 glyph advancement.
4696
48e8a88b
AR
46972009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4698
4699 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 4700 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
4701
4702 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
4703 deleted (bug #4492).
4704
e14f0a78
AR
4705 * nsfont.m (Vns_reg_to_script): New lisp variable.
4706 (syms_of_nsfont): Declare it.
4707 (ns_registry_to_script): New function.
4708 (ns_get_req_script): Call it.
4709 (ns_findfonts): Don't give up on non-unicode registry.
4710
4711 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
4712
5b650faa
SM
47132009-09-20 Tom Tromey <tromey@redhat.com>
4714
4715 * eval.c (find_handler_clause): Make stack-trace-on-error work in
4716 batch mode (bug#4228).
4717
a489517b 47182009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
4719
4720 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 4721 carefully. (Bug #4339)
0bae4e09 4722
fcfe06f3
CY
47232009-09-18 Chong Yidong <cyd@stupidchicken.com>
4724
d798ba87 4725 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 4726
31642728
AR
47272009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
4728
4729 * emacs.c (inhibit_x_resources): Update doc string for NS.
4730 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 4731 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
4732
4733 * nsterm.h (ns_no_defaults): Remove.
4734
4735 * nsterm.m (ns_no_defaults): Remove.
4736 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
4737 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
4738 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
4739 don't update the NSWindow itself.
4740 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 4741 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
4742
4743 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
4744 ns_use_qd_smoothing.
4745
4746 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
4747 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 4748 (x-close-connection): Drop PSFlush() under OS X.
a489517b 4749 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 4750
8686ac71
JB
47512009-09-17 Juanma Barranquero <lekktu@gmail.com>
4752
4753 * emacs.c (inhibit_x_resources): New variable.
4754 (main) [HAVE_NS]: Don't process --quick command line option.
4755 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
4756
4757 * lisp.h (inhibit_x_resources): Declare it extern.
4758
4759 * w32reg.c (x_get_string_resource):
4760 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
4761
e227ba05
EZ
47622009-09-17 Eli Zaretskii <eliz@gnu.org>
4763
362654a6
JB
4764 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
4765 Add lisp/term/internal.elc.
e227ba05 4766
742d40e8
SM
47672009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
4768
4769 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
4770 (bug#4461).
4771
005bd5a2
DN
47722009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
4773
4774 * puresize.h (BASE_PURESIZE): Increase to 1290000.
4775
4776 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
4777 (OBJECTS_MACHINE): Remove, unused.
4778
f9af9719
SM
47792009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
4780
4781 * frame.c (x_get_resource_string): Remove unused.
4782
0307c7d2
JD
47832009-09-15 Jan Djärv <jan.h.d@swipnet.se>
4784
4785 * xterm.c (x_new_font): Call change_frame_size before calling
4786 x_set_window_size, in case frame size won't change.
4787
4788 * frame.c (x_set_font): Remove dead code.
4789
428b13d6
SM
47902009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
4791
4792 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
4793
5766c380
SM
47942009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4795
4796 * lread.c (Fload): Don't output a message after loading an obsolete
4797 package any more (done in Lisp now).
4798
2fd0161b
CY
47992009-09-12 Chong Yidong <cyd@stupidchicken.com>
4800
4801 * fns.c (syms_of_fns): Doc fix (Bug#4227).
4802
bc5e75b6
SM
48032009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4804
4805 * keymap.c (Fwhere_is_internal): Use nconc2.
4806
c31c985e
AM
48072009-09-11 Alan Mackenzie <acm@muc.de>
4808
4809 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
4810 batch mode.
4811
78012bd2
AS
48122009-09-11 Andreas Schwab <schwab@linux-m68k.org>
4813
4814 * xdisp.c (display_mode_element): Detect cycles.
4815
9d889332
SM
48162009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4817
4818 * keymap.c (where_is_internal): Don't erroneously return nil right after
4819 filling the cache.
4820 (where_is_internal_1): Fix up typo.
4821
7ab5d780
GM
48222009-09-11 Glenn Morris <rgm@gnu.org>
4823
4824 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
4825 share a common doc-string.
4826
5238a749
SM
48272009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4828
66d77eda
SM
4829 * keymap.c (get_keymap): Return the actual keymap symbol rather than
4830 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
4831
5238a749
SM
4832 * keymap.c (QCadvertised_binding): New constant.
4833 (syms_of_keymap): Initialize it.
4834 (Fwhere_is_internal): Try and use bindings from :advertised-binding
4835 if applicable.
4836
19f48442
SM
48372009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
4838
50d4ba39
SM
4839 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
4840 (parse_menu_item): Streamline since bindings are recomputed all the
4841 time anyway. Don't bother checking Vdefine_key_rebound_commands any
4842 more and don't support lmenu's menu-alias any more either.
4843
a88a5372
SM
4844 * keymap.c (where_is_internal_data): Make noindirect a boolean.
4845 (where_is_internal): Strip it down to only traverse the keymaps.
4846 Move the cache handling from Fwhere_is_internal to here.
4847 (Fwhere_is_internal): Move the handling of remapping and the choice of
4848 the best binding from where_is_internal to here.
4849 Unify the cached/noncached paths, so remapping is also handled
4850 correctly when the cache is used, and so the cache can be used to
4851 speed up remap-handling when applicable.
4852 Give preference to non-remapped bindings.
4853 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
4854 non-remapped bindings.
4855 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
4856 command remapping.
4857
19f48442
SM
4858 * xdisp.c (display_mode_element): Move list length limit from 50 to
4859 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
4860
599498c3 48612009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
4862
4863 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
4864
f9b7b5ac
SM
48652009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
4866
a53af587
JB
4867 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
4868 (Bug#4334)
4869
f9b7b5ac
SM
4870 * keymap.c (where_is_internal): Filter out shadowed remappings.
4871 Assume that where_is_internal returns unshadowed bindings to simplify
4872 the code and get rid of the gotos. Use ASIZE.
4873
04f4b72d
JD
48742009-09-04 Jan Djärv <jan.h.d@swipnet.se>
4875
4da146f2
JD
4876 * xterm.c (x_focus_changed): If we get a focusout and pointer
4877 is invisible, make it visible.
4878
04f4b72d
JD
4879 * xterm.h: Remove condition for declaration of
4880 x_*_window_to_frame.
4881
7cef7ce3
SM
48822009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
4883
4884 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
4885 initial terminal as well.
4886
a54fa5b7
JD
48872009-09-02 Jan Djärv <jan.h.d@swipnet.se>
4888
4889 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 4890 x_menubar_window_to_frame.
a54fa5b7 4891
50426a04 4892 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
4893 (XTmouse_position): Do not return valid positions
4894 for clicks in the menubar and the toolbar for Gtk+.
4895
4896 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
4897 if the widget for the event has the same top level as a frame,
4898 return the frame.
4899 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
4900 internal windows, bug #4122.
4901 (x_non_menubar_window_to_frame): Remove.
4902
5a021dd0
GM
49032009-09-02 Glenn Morris <rgm@gnu.org>
4904
4905 * buffer.c (default-major-mode): Move most of the doc from here...
4906 (major-mode): ... to here.
4907
548fe2f3
NR
49082009-08-30 Nick Roberts <nickrob@snap.net.nz>
4909
4910 * process.c (wait_reading_process_output): Keep the descriptor
4911 when pty is used by a non-child process, e.g., in I/O buffer of
4912 GDB this allows inferior to be restarted.
4913
e0840eef
EZ
49142009-08-29 Eli Zaretskii <eliz@gnu.org>
4915
4916 * xdisp.c (redisplay_internal): Remove redundant test and collapse
4917 both branches into one.
4918
82e98df4
SM
49192009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
4920
4921 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
4922 (main): Use enable-multibyte-characters rather than
4923 default-enable-multibyte-characters. Output a warning message when
4924 running a unibyte session.
4925
890617cb
YM
49262009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4927
4928 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
4929 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
4930 (copy_data_segment): Also copy __program_vars section.
4931 (copy_dyld_info) [LC_DYLD_INFO]: New function.
4932 (dump_it) [LC_DYLD_INFO]: Use it.
4933
4934 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
4935
e7adeadc
EZ
49362009-08-28 Eli Zaretskii <eliz@gnu.org>
4937
4938 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
4939 $(SRC)/buildobj.h.
4940 (buildobj.h): Renamed from $(SRC)/buildobj.h.
4941 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
4942 $(SRC)/buildobj.h.
4943 (clean): Add buildobj.h.
4944
3ed8bbdc
TZ
49452009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
4946
4947 * print.c (print_object): Set escapeflag to 1 when printing
4948 hashtable keys and values.
4949
155a6764
SM
49502009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
4951
4952 * lread.c (read_integer): Use doubles (and potentially return a float
4953 number) as we do in string-to-number.
4954 (read1): Use strtol to read integers, signal errors on strtol's
4955 overflow and use floats if strtol's output is too large for
4956 Elisp integers.
4957
877610de
EZ
49582009-08-27 Eli Zaretskii <eliz@gnu.org>
4959
4960 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
4961 (make-buildobj-SH): Fix last change.
4962 (SRC): Move to before where it's first used.
4963
ef73e7be
KH
49642009-08-27 Kenichi Handa <handa@m17n.org>
4965
550c8289
KH
4966 * process.c (send_process): Use encode_coding_object instead of
4967 encode_coding_string to perform eol-conversion even if the string
4968 is unibyte.
4969
60afa08d
KH
4970 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
4971 character.
4972
ef73e7be 4973 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 4974 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 4975
7b3a82d7
DN
49762009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
4977
5654bf63
DN
4978 * callproc.c (Fcall_process): Remove always true #if.
4979
7b3a82d7
DN
4980 * lisp.h: Replace #if 0 code for checking with text pointing to
4981 the --enable-checking configure flag.
4982
4983 * emacs.c (main): Mention the --enable-profiling configure flag
4984 instead of using CFLAGS.
4985
878bde49
KR
49862009-08-26 Ken Raeburn <raeburn@raeburn.org>
4987
4988 * Makefile.in (buildobj.h): New target.
4989 (doc.o): Depend on it.
4990 (temacs${EXEEXT}): Don't generate buildobj.lst.
4991 (mostlyclean): Delete buildobj.h, not buildobj.lst.
4992 * makefile.w32-in ($(SRC)/buildobj.h): New target.
4993 ($(BLD)/doc.$(O)): Depend on it.
4994 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
4995 provided by Eli Zaretskii.)
4996 ($(TEMACS)): Don't generate buildobj.lst.
4997 * doc.c: Include buildobj.h.
4998 (buildobj): New static variable.
4999 (Fsnarf_documentation): Use it, instead of opening and reading
5000 buildobj.lst.
5001
1574224c
MA
50022009-08-25 Michael Albinus <michael.albinus@gmx.de>
5003
5004 * dbusbind.c (Fdbus_call_method)
5005 (Fdbus_call_method_asynchronously): Use English numeric format for
5006 timeout values in doc string.
5007
d9da2f45
KH
50082009-08-25 Kenichi Handa <handa@m17n.org>
5009
ef73e7be
KH
5010 * alloc.c (mark_char_table): New function.
5011 (mark_object): Use mark_char_table for a char-table.
5012
d9da2f45
KH
5013 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
5014 (CHAR_TABLE_REF): Use it.
5015
c8edcc01
KR
50162009-08-23 Ken Raeburn <raeburn@raeburn.org>
5017
5018 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
5019 before invoking the newly build emacs to check for load-path
5020 shadowing.
5021
7763401b
GM
50222009-08-22 Glenn Morris <rgm@gnu.org>
5023
5024 * Makefile.in (bootstrap_exe): New variable.
5025 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
5026 Use ${bootstrap_exe}.
5027
729eadda
EZ
50282009-08-22 Eli Zaretskii <eliz@gnu.org>
5029
5030 * coding.h (encode_coding_string): Don't encode unibyte strings.
5031 (Bug#4047)
5032
eb4c6ace
MA
50332009-08-22 Michael Albinus <michael.albinus@gmx.de>
5034
5035 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
5036
5037 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
5038 intended as hotfix only.
5039 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
5040
36e34d1b
AR
50412009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5042
5043 * nsterm.m (ns_get_color): Update documentation properly for last
5044 change, and clean up loose ends in the code left by it. Fix
5045 longstanding bug with 16-bit hex parsing, and add support for
5046 yet another X11 format (rgb:r/g/b) for compatibility.
5047 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
5048 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
5049
f983eb8a
SM
50502009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
5051
5052 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
5053
3f56d3c6
MA
50542009-08-20 Michael Albinus <michael.albinus@gmx.de>
5055
5056 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
5057 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
5058 (xd_initialize, xd_pending_messages): Check, whether
5059 $DBUS_SESSION_BUS_ADDRESS is set.
5060
fb641d68
YM
50612009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5062
5063 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
5064
5065 * nsterm.m (ns_get_color): Remove incompatible color formats again.
5066
cf59a374
GM
50672009-08-20 Glenn Morris <rgm@gnu.org>
5068
5069 * emacs.c (system-type): Doc fix.
5070
1373f3be
SM
50712009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
5072
5073 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
5074 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
5075
058ed861
MA
50762009-08-18 Michael Albinus <michael.albinus@gmx.de>
5077
1373f3be
SM
5078 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
5079 New functions.
058ed861
MA
5080 (xd_initialize): Revert change from 2009-08-16.
5081
563a866e 50822009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
5083
5084 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 5085 font-group vector, return nil.
5fc05db0 5086
e42bdf01
CY
50872009-08-17 Chong Yidong <cyd@stupidchicken.com>
5088
5089 * process.c (status_notify): Don't perform redisplay.
5090 (Fdelete_process, list_processes_1, process_send_signal):
5091 Expliticly perform redisplay.
5092 (wait_reading_process_output): Always check process status, but
5093 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
5094
4230ab74
KR
50952009-08-17 Ken Raeburn <raeburn@raeburn.org>
5096
1373f3be 5097 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
5098 (XFLOAT_INIT): New macro for storing a float value.
5099 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
5100 * fns.c (sxhash): Copy out the value of a float in order to
5101 examine its bytes.
5102 * dbusbind.c (xd_append_arg): Likewise.
5103
4230ab74
KR
5104 * emacs.c (main): Don't call syms_of_data twice.
5105
a0645cdd
MA
51062009-08-16 Michael Albinus <michael.albinus@gmx.de>
5107
5108 * dbusbind.c (xd_initialize): Add connection file descriptor to
5109 input_wait_mask, in order to let select() detect, whether a new
5110 message has been arrived.
ca4f31ea 5111 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 5112
485db0ba
MA
51132009-08-15 Michael Albinus <michael.albinus@gmx.de>
5114
1373f3be
SM
5115 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
5116 New functions.
485db0ba
MA
5117
5118 * lisp.h (xd_pending_messages): Declare.
5119
5120 * keyboard.c (readable_events): Call xd_pending_messages.
5121
b5b98ff4
CY
51222009-08-15 Chong Yidong <cyd@stupidchicken.com>
5123
1373f3be 5124 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 5125
f8354c6e
CY
5126 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
5127
b5b98ff4
CY
5128 * buffer.c (set_buffer_internal_1)
5129 (swap_out_buffer_local_variables): Check for unbound local
5130 variables (Bug#4138).
5131
8b9fc636
EZ
51322009-08-14 Eli Zaretskii <eliz@gnu.org>
5133
5134 * process.c (create_pty): Fix last change.
5135
ce959360
CY
51362009-08-13 Chong Yidong <cyd@stupidchicken.com>
5137
5138 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
5139 (xbm_load_image): Caller changed.
64b807c9 5140 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 5141
c7baf7e9
NR
51422009-08-13 Nick Roberts <nickrob@snap.net.nz>
5143
5144 * process.c (create_pty): New function.
5145 (Fstart_process): Use it to allow Emacs to just associate a pty
5146 with the buffer. See associated change in gdb-mi.el.
5147 (list_processes_1): Deal with no program name.
5148 (start_process_unwind): Use pid == -2 to mean no process.
5149
1ac9108a
SM
51502009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
5151
5152 * cmds.c (nonundocount): New global variable.
5153 (keys_of_cmds): Initialize it.
5154 (Fself_insert_command): Use it to combine upto 20 sequential chars
5155 into a single undo entry, just like the Qself_insert_command code in
5156 keyboard.c does.
5157 Call frame_make_pointer_invisible, also like the Qself_insert_command
5158 code in keyboard.c does.
5159 * keyboard.c (command_loop_1): Use the new global nonundocount rather
5160 than its own local replacement for it.
5161
e267324c
KR
51622009-08-10 Ken Raeburn <raeburn@raeburn.org>
5163
1ac9108a 5164 * fns.c (concat): Don't re-set string length to its current value.
77437343 5165
1ac9108a
SM
5166 * coding.h (decode_coding_string, encode_coding_string):
5167 Use SBYTES macro.
f0bed503 5168
1ac9108a 5169 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
5170 (doprnt): Merge with doprnt1, discarding lispstrings code.
5171 * lisp.h (doprnt_lisp): Don't declare.
5172
416e006d
JL
51732009-08-07 Juri Linkov <juri@jurta.org>
5174
5175 * puresize.h (BASE_PURESIZE): Increase to 1270000.
5176
6f7d5780
DN
51772009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
5178
5179 * print.c (syms_of_print): Undo previous change.
5180
f19a0f5b
TZ
51812009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
5182
5183 * lread.c (read1, syms_of_lread): Read hashtables back from the
5184 readable format.
5185
5186 * print.c (print_preprocess, print_object): Print hashtables fully
5187 and readably.
5188 (syms_of_print): Provide 'hashtable-print-readable.
5189
b9173dc2
AR
51902009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5191
5192 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
5193 no family set.
5194 (nsfont_open): Handle case when entity has no family.
5195
1586503c
AR
51962009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5197
5198 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
5199 element, not a list, for match case.
5200
087048cd
KH
52012009-07-28 Kenichi Handa <handa@m17n.org>
5202
5203 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
5204 rigidly.
5205
5206 * xfont.c (xfont_list_pattern): Don't ignore the return value of
5207 font_parse_xlfd. Check font properties more rigidly.
5208
780c2506
DN
52092009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
5210
31fd7c5c
JB
5211 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
5212 bsd-common.h.
780c2506 5213
a8c0cc18
KH
52142009-07-27 Kenichi Handa <handa@m17n.org>
5215
5216 * xfaces.c (face_with_height): Call font_clear_prop.
5217
4fbe2306
CY
52182009-07-26 Chong Yidong <cyd@stupidchicken.com>
5219
111d9af3
CY
5220 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
5221
5222 * xterm.c (x_term_init): Use Qx.
5223
4fbe2306
CY
5224 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
5225
1ac9108a 5226 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
5227 (ns_get_color): Revert 2009-07-16 change.
5228
beb0b7f9
EZ
52292009-07-25 Eli Zaretskii <eliz@gnu.org>
5230
5231 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 5232 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 5233
2baf5e76
KR
52342009-07-25 Ken Raeburn <raeburn@raeburn.org>
5235
1ac9108a
SM
5236 * coding.h (decode_coding_string, encode_coding_string):
5237 Use SCHARS macro.
8890e5f5 5238
2baf5e76 5239 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 5240 (load_depth): Delete.
2baf5e76
KR
5241 (Qload_in_progress): New variable.
5242 (load_unwind): Don't reference load_depth or load_in_progress.
5243 (Fload): Likewise; specbind Qload_in_progress instead.
5244 (init_lread): Don't initialize load_depth.
5245 (syms_of_lread): Initialize and protect Qload_in_progress.
5246
1395c6f5
AR
52472009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5248
5249 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
5250
4e2f36cf
AR
52512009-07-23 Yavor Doganov <yavor@gnu.org>
5252
5253 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
5254
5dd9a6f7
AR
52552009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5256
5257 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
5258 Bugs 3792, 3720, 2402.
5259 (ns_lookup_indexed_color): Check for bad index.
5260 (ns_index_color): Init unused slot to 0.
5261 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
5262 Bug 3714, possibly 3082.
5dd9a6f7 5263
c902b920
JR
52642009-07-22 Jason Rumney <jasonr@gnu.org>
5265
1ac9108a
SM
5266 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
5267 Position IME window at cursor (Bug#2570).
c902b920
JR
5268 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
5269 (globals_of_w32fns): Dynamically load functions required above.
5270
5271 * w32term.c (w32_draw_window_cursor): Send message to reposition
5272 any IME window.
5273
090101cf
CY
52742009-07-21 Chong Yidong <cyd@stupidchicken.com>
5275
5276 * fileio.c: Revert 2009-07-16 changes.
5277 (Vauto_save_include_big_deletions): New variable.
5278 (Fdo_auto_save): Disable auto-save only if
5279 auto-save-include-big-deletions is nil.
5280
e6583e3d
CY
52812009-07-21 Chong Yidong <cyd@stupidchicken.com>
5282
5283 * xdisp.c (move_it_to): For continued lines ending in a tab, take
5284 the overflowed pixels into account (Bug#3879).
5285
ece435a5
KR
52862009-07-21 Ken Raeburn <raeburn@raeburn.org>
5287
5288 * lread.c (load_depth): New variable.
5289 (Fload, load_unwind, init_lread): Set it to the load recursion
5290 depth; set load_in_progress as a simple boolean based on the
5291 current load_depth. (Bug#3892)
5292
40b2d973
AR
52932009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5294
5295 * nsfont.m (ns_has_attribute): Remove.
5296 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
5297
10be7e0d
JL
52982009-07-18 Juri Linkov <juri@jurta.org>
5299
5300 * process.c (Fset_process_query_on_exit_flag): Mention killing
5301 a buffer in docstring.
5302
fa055055
KH
53032009-07-17 Kenichi Handa <handa@m17n.org>
5304
5305 * casetab.c (shuffle): Fix the logic of setting up the cycle.
5306
042f7b69
YM
53072009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5308
5309 * nsfns.m (Fns_set_alpha): Remove function.
5310 (syms_of_nsfns): Don't defsubr it.
5311
5312 * nsterm.m (ns_get_color): Remove incompatible color formats.
5313 (ns_color_to_lisp): Generate #rrggbb color format string.
5314
4be941e3
RS
53152009-07-16 Richard Stallman <rms@gnu.org>
5316
5317 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
5318 (Fset_buffer_auto_saved): Handle save_length = -2.
5319
4e6b227d
CY
53202009-07-16 Chong Yidong <cyd@stupidchicken.com>
5321
5322 * xterm.c (Qx_gtk_map_stock): New var.
5323
5324 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
5325 of calling intern each time.
5326
a1856973
YM
53272009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5328
5329 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
5330 does tiling.
5331
5332 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
5333
497e54d8
KH
53342009-07-14 Kenichi Handa <handa@m17n.org>
5335
72d36834
KH
5336 * font.c (font_vconcat_entity_vectors): New function.
5337 (struct font_sort_data): New member font_driver_preference.
5338 (font_compare): Check font_driver_preference.
5339 (font_sort_entities): The format of the first argument changed.
5340 (font_delete_unmatched): Likewise.
5341 (font_list_entities): The return type changed.
5342 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
5343 (font_find_for_lface): Adjuste for the above changes.
5344 Don't suppress the checking of C even if the repertory supports it.
5345 (Flist_fonts): Adjust for the above changes.
72d36834 5346
1ac9108a
SM
5347 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
5348 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
5349 Reject a font who has adstyle property that is different from a
5350 langname derived from registry property.
1ac9108a 5351 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 5352
b6046155
EZ
53532009-07-13 Eli Zaretskii <eliz@gnu.org>
5354
5355 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
5356 local copy of dirfilename.
5357
fb6b6049
KH
53582009-07-13 Kenichi Handa <handa@m17n.org>
5359
e2402a5e
KH
5360 * chartab.c (sub_char_table_ref_and_range): Fix the range check
5361 against max_char.
5362
fb6b6049
KH
5363 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
5364 calling XSYMBOL (sym).
5365
65156807
EZ
53662009-07-11 Eli Zaretskii <eliz@gnu.org>
5367
1ac9108a
SM
5368 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
5369 New function.
5370 (directory_files_internal) [WINDOWSNT]:
5371 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
5372 the filesystem of the directory is fast or slow.
5373
5374 * w32.c (logon_network_drive): Don't assume PATH is an absolute
5375 file name.
5376 (is_slow_fs): New function.
5377 (stat): Use it to determine whether to issue more system calls to
5378 get accurate file attributes, when w32-get-true-file-attributes is
5379 `local'.
5380
e0ab5fcf
JD
53812009-07-10 Jan Djärv <jan.h.d@swipnet.se>
5382
5383 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 5384 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
5385 parameter font-parameter as default to the font dialog.
5386
784ceded
KH
53872009-07-10 Kenichi Handa <handa@m17n.org>
5388
5389 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
5390
fb8edc0b
EZ
53912009-07-09 Eli Zaretskii <eliz@gnu.org>
5392
1ac9108a 5393 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 5394
fb8edc0b
EZ
5395 * w32.c (stat): Treat UNC file names as residing on remote
5396 drives. (Bug#3542)
5397
635c75b1
KH
53982009-07-09 Kenichi Handa <handa@m17n.org>
5399
5400 * fontset.c (fontset_find_font): Fix previous change.
5401
c1d5ce94
MA
54022009-07-08 Michael Albinus <michael.albinus@gmx.de>
5403
5404 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
5405 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
5406 error flag.
5407
edb61b39
KH
54082009-07-08 Kenichi Handa <handa@m17n.org>
5409
374bf7e4
KH
5410 * fontset.c (fontset_find_font): Fix the logic of handling
5411 charset_matched.
5412 (font_for_char): Delete unused var.
5413 (generate_ascii_font_name): Delete it.
5414
edb61b39
KH
5415 * coding.h (JIS_TO_SJIS2): Fix the code range check.
5416
5417 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
5418 (encode_coding_sjis): Fix the code range check.
5419
0f3f018c
CY
54202009-07-07 Chong Yidong <cyd@stupidchicken.com>
5421
5422 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
5423 (Fexpand_file_name): Copy string data properly (Bug#3772).
5424
fcaf6f3a
JD
54252009-07-07 Jan Djärv <jan.h.d@swipnet.se>
5426
5427 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
5428 first MapNotify.
5429
6809ca75
KH
54302009-07-07 Kenichi Handa <handa@m17n.org>
5431
5432 * character.h (unibyte_has_multibyte_table): Delete extern.
5433 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
5434
5435 * charset.c (Fset_charset_priority): Update charset_unibyte.
5436 (syms_of_charset): Initialize charset_unibyte.
5437
5438 * character.c (unibyte_has_multibyte_table): Delete it.
5439 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
5440 charset_unibyte.
5441 (multibyte_char_to_unibyte_safe): Likewise.
5442 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
5443
1ac9108a 5444 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
5445 (x_produce_glyphs): Likewise.
5446
5447 * .gdbinit (xcharset): Fix the treating $arg0.
5448
ad9e2d54
EZ
54492009-07-04 Eli Zaretskii <eliz@gnu.org>
5450
5451 Emulation of `getloadavg' on MS-Windows.
50426a04 5452 * w32.c: Include float.h.
ad9e2d54
EZ
5453 (g_b_init_get_native_system_info, g_b_init_get_system_times)
5454 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
5455 (get_native_system_info, get_system_times): New functions.
5456 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
5457 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
5458 (globals_of_w32): Initialize g_b_init_get_native_system_info,
5459 g_b_init_get_system_times, and num_of_processors.
5460
0a3472c7
JR
54612009-07-03 Jason Rumney <jasonr@gnu.org>
5462
5463 * w32term.c (w32_initialize): Use standard types.
5464
80904120
EZ
54652009-07-03 Eli Zaretskii <eliz@gnu.org>
5466
5467 * dired.c (Ffile_attributes): Decode user and group names by the
5468 locale's encoding. (Bug#3443)
5469
6978862d
DN
54702009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
5471
f8d23104
DN
5472 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
5473 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
5474
5475 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
5476
5477 * term.c (init_tty): Remove spurious #ifdef.
5478
6978862d
DN
5479 * m/mips.h: Mention this file is also used for netbsd.
5480 * m/pmax.h: Remove file.
5481
e044e4fc
JD
54822009-07-03 Jan Djärv <jan.h.d@swipnet.se>
5483
5484 * xterm.h (struct x_display_info): Add invisible_cursor.
5485 (struct x_output): Add current_cursor.
5486
5487 * xterm.c (XTtoggle_invisible_pointer): New function.
5488 (x_define_frame_cursor): Don't define cursor if invisible or the
5489 same as before. Set current_cursor.
5490 (x_create_terminal): Set toggle_invisible_pointer_hook.
5491
5492 * xfns.c (make_invisible_cursor): New function.
5493 (x_set_mouse_color): Call make_invisible_cursor.
5494 Set current_cursor.
5495 (x_window): Set current_cursor.
5496
5497 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
5498
5499 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
5500 inserting a character.
5501 (read_avail_input): Call frame_make_pointer_visible.
5502
5503 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
5504 (frame_make_pointer_invisible, frame_make_pointer_visible):
5505 New functions.
e044e4fc
JD
5506 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
5507
5508 * frame.h: Declare frame_make_pointer_invisible and
5509 frame_make_pointer_visible.
5510 (struct frame): Add pointer_invisible.
5511
574c8efa
JD
55122009-07-02 Jan Djärv <jan.h.d@swipnet.se>
5513
7b507248
JD
5514 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
5515 frame isn't visible.
5516 (xg_frame_resized): If width/height is -1, get size of window
5517 from X server.
5518
5519 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
5520 for MapNotify.
5521
835bdaa7 5522 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 5523 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 5524 (flush_and_sync): Reintroduce.
574c8efa 5525
3f1c6666 55262009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 5527
31fd7c5c 5528 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
5529
5530 * xterm.c (x_handle_net_wm_state): Also look for sticky.
5531 (x_term_init): Initialize Xatom_net_wm_state_sticky.
5532
5533 * frame.h: Declare Qsticky.
5534
cad9ef74
JD
5535 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
5536
5537 * nsfns.m (ns_frame_parm_handlers): Ditto.
5538
5539 * frame.c: Declare Qsticky.
5540 (frame_parms): Add sticky.
5541
5542 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
5543
5544 * xterm.h: Declare x_set_sticky.
5545
5546 * xterm.c (x_set_sticky): New function.
5547
69b16610
JD
5548 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
5549 (xg_tool_bar_menu_proxy): Attach enter/leave events to
5550 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
5551
5552 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
5553
5554 * frame.c: Qmaximized is new.
5555 (x_set_frame_parameters): Do not handle fullscreen specially.
5556 Only set width and height if explicitly set.
5557 (x_set_fullscreen): Handle Qmaximized.
5558 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
5559 (syms_of_frame): Initialize Qmaximized.
5560
1ac9108a
SM
5561 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
5562 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
5563
5564 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
5565 for Expose event. Add call to x_check_fullscreen for MapNotify event.
5566 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
5567 set gravity to NorthWestGravity when USE_GTK.
5568 (set_wm_state): New function.
31fd7c5c 5569 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
5570 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
5571 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 5572 or the case when no window manager is running. That means remove calls
3f1c6666
JD
5573 to x_real_positions and x_fullscreen_adjust.
5574
5575 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
5576 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
5577 flush_and_sync.
5578 (xg_height_changed): New function.
5579 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
5580 and gtk_window_set_policy. Set frame gravity after parsing the
5581 geometry string.
3f1c6666
JD
5582 (xg_update_frame_menubar, free_frame_menubar)
5583 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
5584 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
5585 Remove calls to xg_frame_set_char_size.
5586
fd503d99
KH
55872009-07-01 Kenichi Handa <handa@m17n.org>
5588
5589 * keyboard.c (decode_keyboard_code): New function.
5590 (tty_read_avail_input): Decode the input bytes if necessary.
5591
1ac9108a
SM
5592 * coding.c (setup_coding_system):
5593 Initialize coding->carryover_bytes to 0.
fd503d99
KH
5594 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
5595 use Qno_conversion.
5596
24ed93fb
YM
55972009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5598
5599 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
5600
99061dfc
CY
56012009-06-30 Chong Yidong <cyd@stupidchicken.com>
5602
1ac9108a 5603 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 5604
ff90fbde
JR
56052009-06-30 Jason Rumney <jasonr@gnu.org>
5606
5607 * w32term.c (w32_initialize): Use GetModuleHandle for library that
5608 is already loaded.
5609 Set user model ID if supported (bug#1849).
5610
5f445726
JM
56112009-06-29 Jim Meyering <meyering@redhat.com>
5612
5613 Remove useless if-before-xfree test.
5614 * nsfont.m (nsfont_close): Remove useless test.
5615 * term.c (delete_tty): Likewise.
5616 * w32.c (system_process_attributes): Likewise.
5617 * w32font.c (w32font_close): Likewise.
5618 * xfaces.c (x_free_gc): Likewise.
5619 * xselect.c (buffer): Likewise.
5620
b9607587
AS
56212009-06-28 Andreas Schwab <schwab@linux-m68k.org>
5622
5623 * process.c (send_process): Keep decoded string in a local
5624 variable and protect it from GC. (Bug#3521)
5625
89ba96f4
EZ
56262009-06-28 Eli Zaretskii <eliz@gnu.org>
5627
5628 * term.c (create_tty_output) [MSDOS]: #ifdef away.
5629 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
5630
098a1589
CY
56312009-06-28 Chong Yidong <cyd@stupidchicken.com>
5632
485422be
CY
5633 * xdisp.c (start_display, handle_face_prop)
5634 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
5635 (redisplay_window, try_window_id, produce_image_glyph):
5636 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 5637
098a1589
CY
5638 * xterm.c (x_update_window_begin, x_new_focus_frame)
5639 (x_scroll_bar_handle_click, handle_one_xevent)
5640 (handle_one_xevent, XTread_socket, x_focus_on_frame)
5641 (x_make_frame_visible, x_make_frame_invisible)
5642 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
5643 code chunks that are now obsolete.
5644
78c38319
MA
56452009-06-28 Michael Albinus <michael.albinus@gmx.de>
5646
5647 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
5648 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
5649 for hours, when optimzation is enabled.
5650 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
5651 (xd_read_message): Make them static.
5652
4189ed40
CY
56532009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
5654
5655 * term.c (turn_on_face): Allow simultaneously bold and dim
5656 terminal faces (Bug#3530).
5657
cd9b5e16
CY
56582009-06-27 Chong Yidong <cyd@stupidchicken.com>
5659
4e23bedb
CY
5660 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
5661
cd9b5e16
CY
5662 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
5663 truncation glyphs (Bug#3686).
5664
07cc3c35
GM
56652009-06-27 Glenn Morris <rgm@gnu.org>
5666
5667 * m/pmax.h: Restore file, with only netbsd portions.
5668
31fd7c5c 56692009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 5670
cd9b5e16 5671 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 5672
42d4a64f
KH
56732009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
5674
5675 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
5676 the arg FORCE_SYMBOL.
5677
930fe55b 56782009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
5679
5680 * fontset.c (fontset_find_font): When a usable rfont_def is found
5681 in a fallback font-group, make it the first element of the group.
5682
57ebc3fd
CY
56832009-06-24 Chong Yidong <cyd@stupidchicken.com>
5684
5685 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
5686
f084f942
KH
56872009-06-24 Kenichi Handa <handa@m17n.org>
5688
5689 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
5690 set for C.
5691 (fontset_font): Record the availability of a font for C both in
5692 the realized fontsets of the current one and the default one.
5693
2f686c87
DN
56942009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
5695
5696 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
5697 conditional, it is always defined on AIX.
5698
666e158e
MB
56992009-06-23 Miles Bader <miles@gnu.org>
5700
5701 * window.c (Vrecenter_redisplay): New variable.
5702 (syms_of_window): Initialize it.
5703 (Qtty): New extern declaration.
5704 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
5705
c6da7cd2
JM
57062009-06-23 Jim Meyering <meyering@redhat.com>
5707
1ac9108a
SM
5708 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
5709 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 5710 pointer dereferences are guaranteed to be valid.
c6da7cd2 5711
678dca3d
KH
57122009-06-23 Kenichi Handa <handa@m17n.org>
5713
74d75424
KH
5714 * emacs.c (main): Call init_font ().
5715
5716 * font.h (Vfont_log): Extern it.
5717 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
5718
5719 * font.c (font_sort_entities, font_list_entities)
5720 (font_matching_entity, font_open_entity)
5721 (font_close_object): Change font_add_log to FONT_ADD_LOG.
5722 (Vfont_log): Delete static.
5723 (font_log_env_checked): Delete this variable.
5724 (font_add_log): Don't check font_log_env_checked.
5725 (font_deferred_log): Check Vfont_log.
5726 (init_font): New function.
5727
678dca3d
KH
5728 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
5729
5730 * w32font.c: Change font_add_log to FONT_ADD_LOG.
5731
5732 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
5733
5734 * xfont.c: Change font_add_log to FONT_ADD_LOG.
5735
5736 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
5737 (face_for_char): Don't call font_deferred_log here.
5738 (font_for_char): Likewise.
5739
8a668709
CY
57402009-06-22 Chong Yidong <cyd@stupidchicken.com>
5741
9a01ee33
CY
5742 * w32term.c (x_draw_glyph_string): Use the glyph string's width
5743 rather than its background_width for drawing the overline and
5744 underline (Bug#489).
5745
5746 * xterm.c (x_draw_glyph_string): Use the glyph string's width
5747 rather than its background_width for drawing the overline and
5748 underline (Bug#489).
ec7c9926
CY
5749 (xg_default_icon_file): New variable.
5750 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
5751 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 5752
8a668709
CY
5753 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
5754 (load_overlay_strings): Remove externs.
5755 (fast_find_position): Function deleted.
5756 (mouse_face_from_buffer_pos): New function, based on
5757 fast_find_position. Correctly handle before-strings,
5758 display-strings, and after-strings (Bug#1220).
5759 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
5760
4d4c02d8
CY
57612009-06-21 Chong Yidong <cyd@stupidchicken.com>
5762
1ac9108a 5763 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
5764 (move_it_in_display_line_to, move_it_in_display_line_to)
5765 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
5766
70243478
CY
57672009-06-21 Chong Yidong <cyd@stupidchicken.com>
5768
5769 * Branch for 23.1.
5770
13087e59
JR
57712009-06-21 Jason Rumney <jasonr@gnu.org>
5772
5773 * w32term.c (keyboard_codepage): New static variable.
5774 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
5775 (w32_read_socket) [WM_CHAR]: Use it to decode character
5776 input (bug#3237).
5777 (w32_initialize): Initialize it.
5778 (codepage_for_locale): New function.
5779
4735b74e
KR
57802009-06-20 Ken Raeburn <raeburn@raeburn.org>
5781
5782 * process.c (status_message): Pass Faset index argument as a lisp
5783 object, so as to work with USE_LISP_UNION_TYPE.
5784
0e727afa
YM
57852009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5786
5787 * coding.c (Ffind_coding_systems_region_internal):
5788 Cache checked characters.
5789
cf299835
KH
57902009-06-18 Kenichi Handa <handa@m17n.org>
5791
1ac9108a 5792 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 5793
90f20d94
AS
57942009-06-18 Andreas Schwab <aschwab@redhat.com>
5795
5796 * xdisp.c (redisplay_internal): Check that the frame is still
5797 live after redisplay of its windows.
5798 (redisplay_windows): Check that the window is still live.
5799
7f1faf1c
KH
58002009-06-17 Andreas Schwab <schwab@linux-m68k.org>
5801
5802 * coding.c (detect_coding_utf_16): Fix previous change.
5803
cc13543e
KH
58042009-06-16 Kenichi Handa <handa@m17n.org>
5805
5806 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
5807 UTF-16 by checking the dispersion of Eth and Oth bytes.
5808
977b85f4
AS
58092009-06-15 Andreas Schwab <schwab@linux-m68k.org>
5810
5811 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
5812
66bd43d1
KH
58132009-06-15 Kenichi Handa <handa@m17n.org>
5814
5815 * process.c (status_message): Fix previous change. Be sure to
5816 decode a localized string.
5817
cb5ca9c5
YM
58182009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5819
5820 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
5821 add comment explaining why.
5822
ec7709ba 58232009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 5824
ec7709ba 5825 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 5826
4b7f335c
AR
58272009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
5828
5829 * nsfont.m (ns_attribute_value): Remove.
5830 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
5831 (ns_has_attribute): Shrink the normal range.
5832 (ns_findfonts): Don't worry about requested spec in determining
5833 need for synthItal.
e41820ee 5834 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 5835
73b26103
SZ
58362009-06-14 Seiji Zenitani <zenitani@mac.com>
5837
5838 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
5839
5753e4da
KH
58402009-06-11 Kenichi Handa <handa@m17n.org>
5841
5842 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
5843 overhang for the static composition case.
5844
3561b671
KH
58452009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5846
5753e4da
KH
5847 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
5848 overhang for the automatic composition case.
5849
3561b671
KH
5850 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
5851 composition case.
5852
852bbd41
CY
58532009-06-10 Chong Yidong <cyd@stupidchicken.com>
5854
5855 * xdisp.c (get_next_display_element): When handling wrap-prefix
5856 and line-prefix, treat \n as a control character (bug#3502).
5857
9903d1e6
KH
58582009-06-10 Kenichi Handa <handa@m17n.org>
5859
5860 * font.c (font_parse_family_registry): Fix for one-char foundry.
5861 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
5862
0bcbaaaa
CY
58632009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
5864
5865 * process.c (status_message): Fix handling of multibyte signal
5866 string (Bug#3499).
5867
40aa3f13
JM
58682009-06-09 Jim Meyering <meyering@redhat.com>
5869
1f80c7e2
CY
5870 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
5871 color name is missing.
40aa3f13 5872
72d51285
KH
58732009-06-09 Kenichi Handa <handa@m17n.org>
5874
5875 * charset.c (Fmap_charset_chars): In docstring, state clearly that
5876 FROM-CODE and TO-CODE are codepoints of CHARSET.
5877
c1d04d84
AR
58782009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
5879
5880 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
5881
58822009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
5883
5884 Changes to support :script/:lang/:otf in NS font driver.
5885 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
5886 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
5887 indicate not part of font driver interface, and change callers.
5888 (ns_get_family): Remove pointless null check.
5889 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
5890 ns_spec_to_descriptor, ns_descriptor_to_entity.
5891 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
5892 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
5893 (ns_spec_to_descriptor, ns_descriptor_to_entity)
5894 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
5895 (ns_get_req_script, ns_accumulate_script_ranges)
5896 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
5897 New functions.
5898 (nsfont_list, nsfont_match): Use ns_findfonts.
5899 (nsfont_open): Use font descriptor instead of traits.
5900 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
5901 (dump_glyphstring): Rename to ns_dump_glyphstring.
5902
c7eb9816
AR
5903 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
5904
c1d04d84
AR
5905 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
5906
5907 * fontset.c (fontset_from_font): Remove NS-specific code.
5908
ec7709ba 59092009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
5910
5911 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
5912 nonactive windows.
5913
31fd7c5c 59142009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 5915
1ac9108a 5916 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 5917
68852c13 59182009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
5919
5920 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
5921
6756cd1d
CY
59222009-06-07 Chong Yidong <cyd@stupidchicken.com>
5923
5924 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
5925 account for the overflowing of newlines into the last glyph on the
5926 display line (Bug#3482).
5927
28bf482a
DR
59282009-06-05 David Reitter <david.reitter@gmail.com>
5929
ec7709ba
JB
5930 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
5931 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
5932 Fns_selection_exists_p, Fns_selection_owner_p.
5933
fdb55376
JR
59342009-06-03 Jason Rumney <jasonr@gnu.org>
5935
5936 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
5937 available. (Bug#3379)
5938
05129fbe
KH
59392009-05-29 Kenichi Handa <handa@m17n.org>
5940
1ac9108a
SM
5941 * coding.c (get_translation_table):
5942 Check Venable_character_translation.
05129fbe 5943
ec7709ba 59442009-05-26 David Reitter <david.reitter@gmail.com>
15891144 5945
ec7709ba
JB
5946 * nsterm.m (ns_raise_frame): Only raise frame if visible.
5947 (x_make_frame_visible): Move frame to front rather than calling
15891144 5948 ns_raise_frame().
ec7709ba 5949 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 5950 isn't key window.
ec7709ba 5951 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
5952 drawRect may be called by NSView even if the frame is hidden.
5953
ec7709ba
JB
5954 * nsfns.m (Fx_create_frame): Follow other ports in
5955 determining visibility; default to t. Ensure async_visible is set.
15891144 5956
21f73755
EZ
59572009-05-23 Eli Zaretskii <eliz@gnu.org>
5958
5959 * dired.c (Ffile_attributes): Doc fix.
5960
34001e41
CY
59612009-05-22 Chong Yidong <cyd@stupidchicken.com>
5962
5963 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
5964
46306a17
SM
59652009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
5966
5967 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
5968 and xfont_scratch_props.
5969 (syms_of_xfont): Do it here instead.
5970 (xfont_find_ccl_program): Delete, unused.
5971 (xfont_open): Delete unused var `i'.
5972
ef6e0694
KH
59732009-05-21 Kenichi Handa <handa@m17n.org>
5974
5975 * fontset.c (Qlatin): Don't make it static.
5976
46306a17
SM
5977 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
5978 New functions.
ef6e0694
KH
5979 (xfont_scripts_cache, xfont_scratch_props): New variables.
5980 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
5981 (xfont_list_pattern): Argument changed. Callers changed.
5982 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
5983 (xfont_list): Don't reject a font spec with :script property.
5984 (xfont_has_char): Fix setting of encoding.
5985 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
5986 xfont_scratch_props.
5987
59882009-05-19 Kenichi Handa <handa@m17n.org>
5989
46306a17 5990 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
5991 Callers changed.
5992
59932009-05-18 Kenichi Handa <handa@m17n.org>
5994
5995 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
5996
ac71ced7
SM
59972009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
5998
5999 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
6000 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
6001
1c6d1051
YM
60022009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6003
6004 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
6005 (x_delete_terminal): Dissociate resource database from display and
6006 then call XrmDestroyDatabase before closing display.
6007
9b9b779c
AR
60082009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
6009
6010 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
6011 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
6012 whether selected frame is viable before raising it (based on patch
6013 by David Reitter), and improve commentary.
6014 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 6015
cccd42d5
KH
60162009-05-15 Kenichi Handa <handa@m17n.org>
6017
6018 * font.c (Ffont_spec): Check arguments.
6019
337fbd17
CY
60202009-05-14 Chong Yidong <cyd@stupidchicken.com>
6021
6022 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
6023 weight when testing attributes (Bug#3282).
6024
47a6002f
JD
60252009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6026
6027 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
6028 what we expect to get in the next ConfigureNotify event.
6029
9cb363db
YM
6030 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
6031 before Xft one (Bug#1696).
6032
b9126609
CY
60332009-05-07 David Reitter <david.reitter@gmail.com>
6034
6035 * nsfns.m (Fx_display_planes): Compute bitplanes using
6036 NSBitsPerPixelFromDepth (Bug#3207).
6037
27a69fd9
CY
60382009-05-10 Chong Yidong <cyd@stupidchicken.com>
6039
6040 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
6041
00f37552
TTN
60422009-05-10 Ulrich Mueller <ulm@gentoo.org>
6043
6044 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
6045
2d82a920
DR
60462009-05-07 David Reitter <david.reitter@gmail.com>
6047
ec7709ba
JB
6048 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
6049 Respect mouse face background.
2d82a920 6050
46b0d52d
DR
60512009-05-07 David Reitter <david.reitter@gmail.com>
6052
ec7709ba
JB
6053 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
6054 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
6055 in ns_update_begin and ns_update_end.
6056
ce1b23bb
SM
60572009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
6058
5996e1b7
SM
6059 * nsfns.m (ns_get_screen): Rewrite.
6060 Don't presume selected-frame is of type `ns'.
6061
ba98e3a0
SM
6062 * font.c (font_update_drivers): Sanity fallback to avoid disabling
6063 all drivers.
6064
ce1b23bb
SM
6065 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
6066
bcda200f
YM
60672009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6068
6069 * keyboard.h (add_user_signal): Fix typo in extern.
6070
6071 * lisp.h (add_user_signal): Remove extern.
6072
6073 * unexelf.c (unexec): Consider a section to precede the .bss section
6074 if its addresses overlap that of .bss.
6075 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
6076 instead of dumping process.
6077
864660a2
SM
60782009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
6079
6080 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
6081
50da4e56
SM
60822009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
6083
6084 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
6085
51520a1a
DN
60862009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
6087
6088 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
6089 any statements.
6090
409ea3a1
AS
60912009-05-02 Andreas Schwab <schwab@linux-m68k.org>
6092
59c4c60f
AS
6093 * process.c (read_process_output): Make sure the current buffer is
6094 always restored.
6095
409ea3a1
AS
6096 * coding.c (record_conversion_result): Don't modify
6097 Vlast_code_conversion_error for successful result.
6098 (alloc_destination): Don't clobber conversion result. (Bug#1650)
6099
56f00ed2
KH
61002009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
6101
6102 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 6103 (load_charset_map): Remove unnecessary code.
56f00ed2 6104
4491c9d2
DR
61052009-04-30 David Reitter <david.reitter@gmail.com>
6106
35f5b128 6107 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
6108 through f24.
6109
6970f632
CY
61102009-04-30 Chong Yidong <cyd@stupidchicken.com>
6111
6112 * xfaces.c (face_at_buffer_position): New arg base_face_id.
6113
6114 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
6115 face_at_buffer_position.
6116 (face_before_or_after_it_pos, get_next_display_element)
6117 (note_mouse_highlight): Update face_at_buffer_position call.
6118
6119 * term.c (term_mouse_highlight):
6120 * msdos.c (IT_note_mouse_highlight):
6121 * fontset.c (Finternal_char_font):
35f5b128 6122 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
6123
6124 * dispextern.h (face_at_buffer_position): Update prototype.
6125
0c616f63
KH
61262009-04-30 Kenichi Handa <handa@m17n.org>
6127
35f5b128 6128 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 6129
ad3aaf33
AS
61302009-04-29 Andreas Schwab <schwab@linux-m68k.org>
6131
6132 * callproc.c (Fcall_process): Fix GC protection. Make sure
6133 current buffer is always restored.
6134
c3c963a0
YM
61352009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6136
6137 * atimer.c (init_atimer): Also clear stopped_atimers.
6138
6139 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
6140
7e3386cb
YM
6141 * process.c (create_process): Clean up merger residues of
6142 2008-07-17 change.
6143
91f68422
CY
61442009-04-29 Ulrich Mueller <ulm@gentoo.org>
6145
6146 * lread.c (Vread_circle): New variable.
6147 (read1): Disable recursive read if Vread_circle is nil.
6148
24b34550
KH
61492009-04-29 Kenichi Handa <handa@m17n.org>
6150
6151 * fontset.h (set_default_ascii_font): Delete extern.
6152
6153 * fontset.c (set_default_ascii_font): Delete this unused function.
6154
6155 * frame.c (x_set_font): When ARG is a font-object, check if the
6156 font-object matches with the ASCII font-spec of the frame's
9c358bda 6157 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 6158
77bf07e1
AS
61592009-04-28 Andreas Schwab <schwab@linux-m68k.org>
6160
6161 * fns.c (Flocale_info): Protect vector from GC during decoding.
6162
6163 * process.c (Fstart_process): Protect argv strings from GC during
6164 encoding.
6165
2c55aacf
AS
61662009-04-27 Andreas Schwab <schwab@linux-m68k.org>
6167
6168 * sysdep.c: Include <ctype.h>.
6169
b892d3c9
DR
61702009-04-27 David Reitter <david.reitter@gmail.com>
6171
35f5b128 6172 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
6173 Remove commented-out code.
6174
9d0644c4
JB
61752009-04-26 Johan Bockgård <bojohan@gnu.org>
6176
6177 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
6178
b7053016
JR
61792009-04-25 Jason Rumney <jasonr@gnu.org>
6180
6181 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
6182
4e8231f3
YM
61832009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6184
6185 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
6186 Swap bytes in short integer if fringe bitmap width > 8.
6187
493dcf2c
KH
61882009-04-23 Kenichi Handa <handa@m17n.org>
6189
6190 * xfaces.c (Fx_list_fonts): If a font size is specified in
6191 PATTERN, set it in returned scalable fonts.
6192
401e9e57
CY
61932009-04-22 Chong Yidong <cyd@stupidchicken.com>
6194
708e05dc
CY
6195 * keyboard.c (Fset_input_meta_mode): Doc fix.
6196
6197 * dispnew.c (Fsend_string_to_terminal): Doc fix.
6198
1ac9108a 6199 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
6200
6201 * coding.c (Fterminal_coding_system): Doc fix.
6202
6203 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
6204 (Fx_display_pixel_height, Fx_display_planes)
6205 (Fx_display_color_cells, Fx_server_max_request_size)
6206 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
6207 (Fx_display_mm_height, Fx_display_mm_width)
6208 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
6209 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
6210 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
6211 (check_x_display_info): Handle terminal objects instead of
6212 terminal ids.
6213
401e9e57
CY
6214 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
6215 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
6216 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
6217 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 6218
df80c7f0
KH
62192009-04-21 Kenichi Handa <handa@m17n.org>
6220
5a8f12af 6221 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 6222 (font_score): Check AVGWIDTH too.
908567ef 6223
df80c7f0
KH
6224 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
6225 worst case.
1ac9108a
SM
6226 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
6227 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 6228
705af33f
JR
62292009-04-19 Jason Rumney <jasonr@gnu.org>
6230
6231 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 6232 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
6233
6234 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
6235 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
6236 get_phys_cursor_geometry.
6237
b71ac3dd 6238 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
6239 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
6240 using get_phys_cursor_geometry.
6241
6242 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
6243 correctly calculated.
6244
dc2933eb
JD
62452009-04-19 Jan Djärv <jan.h.d@swipnet.se>
6246
1ac9108a
SM
6247 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
6248 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
6249 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
6250 is deprecated.
6251
973e7849
AS
62522009-04-18 Andreas Schwab <schwab@linux-m68k.org>
6253
6254 * font.c (font_put_frame_data): Use xfree instead of free.
6255
314d66f4
JB
62562009-04-17 Juanma Barranquero <lekktu@gmail.com>
6257
6258 * w32font.c (Qja, Qko): Remove declarations.
6259 (syms_of_w32font): Don't DEFSYM them.
6260
cf702558
CY
62612009-04-17 Chong Yidong <cyd@stupidchicken.com>
6262
6263 * font.c (Qja, Qko): Move definitions here from ftfont.c.
6264
6265 * font.h (Qja, Qko): Extern them.
6266
6267 * ftfont.c (Qja, Qko): Remove declarations.
6268
6269 * xfont.c (Qja, Qko): Remove declarations.
6270
b50504f5
KH
62712009-04-17 Kenichi Handa <handa@m17n.org>
6272
bde25748
KH
6273 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
6274 string from a vector to handle Latin-1 characters correctly.
6275
b50504f5
KH
6276 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
6277 entity even if the cache hits.
6278
f4646fff
AS
62792009-04-16 Andreas Schwab <schwab@linux-m68k.org>
6280
6281 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 6282 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 6283
e7deaab0
AS
6284 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
6285 * lisp.h: Adjust prototypes.
6286
0a0e7d49
CY
62872009-04-16 Chong Yidong <cyd@stupidchicken.com>
6288
6289 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
6290 change (Bug#3003).
6291
3c908a57
KH
62922009-04-16 Kenichi Handa <handa@m17n.org>
6293
1ac9108a 6294 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
6295
6296 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
6297 adstyle.
6298
6299 * ftfont.c (Qja, Qko): Don't make them static.
6300 (enum ftfont_cache_for): New enum.
6301 (fc_charset_table): Undo the previous change.
6302 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
6303 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
6304 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
6305 non-scarable font, try to get AVERAGE_WIDTH.
6306 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
6307 Change ft_face_cache from a list of a hash-table. Don't check
6308 `ja' and `ko' adstyle here.
6309 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
6310 FTFONT_CACHE_FOR_CHARET.
6311 (ftfont_get_charset): Undo the previous change.
1ac9108a 6312 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
6313 (ftfont_close): Likewise.
6314 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
6315
6316 * font.c (font_sort_entites): Change the meaning of the arg
6317 BEST-ONLY. Don't optimize for VEC of lenght 1.
6318 (font_select_entity): Just return the value of font_sort_entites.
6319
6320 * xfaces.c (merge_face_vectors): Reflect font properties in
6321 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
6322 font_clear_prop if a face attribute doesn't change.
6323
3c908a57
KH
6324 * charset.h (charset_ksc5601): Extern it.
6325
6326 * charset.c (charset_ksc5601): New variable.
6327 (Fdefine_charset_internal): Set charset_ksc5601.
6328 (init_charset_once): Initialize charset_ksc5601 to -1.
6329
d65859c3
DN
63302009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
6331
6332 * fileio.c (history_delete_duplicates): Remove unused declaration.
6333
6334 * callint.c (history_delete_duplicates): New declaration.
6335 (Fcall_interactively): Remove command history duplicates when
6336 history_delete_duplicates is true.
6337
3ba010e5
EZ
63382009-04-14 Eli Zaretskii <eliz@gnu.org>
6339
6340 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
6341
06f19b91
KH
63422009-04-14 Kenichi Handa <handa@m17n.org>
6343
6344 * font.c (Ffont_info): Fix docstring. Fix the second element of
6345 the returned value (bug#2949).
6346
2cce8bfc
CY
63472009-04-14 Chong Yidong <cyd@stupidchicken.com>
6348
6349 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
6350
d156542d
KH
63512009-04-14 Kenichi Handa <handa@m17n.org>
6352
6353 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
6354 encoding charset is ascii_compatible.
6355
6356 * charset.c (Fdefine_charset_internal): Make charset
6357 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
6358 code_offset is 0, and covers all ASCII characters.
6359
86fa089e
SM
63602009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
6361
6362 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
6363 (ns_string_to_pasteboard_internal):
6364 * nsmenu.m (process_dialog):
6365 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
6366 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
6367 * lisp.h (Fx_load_color_file): Declare.
6368
a8a3728b
KH
63692009-04-13 Kenichi Handa <handa@m17n.org>
6370
1ac9108a 6371 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
6372 (font_select_entity): Suppress the code to optimize for the same
6373 kind of fonts.
6374 (font_load_for_lface): Get a font that supports at least ASCII
6375 characters.
6376
6377 * ftfont.c (Qja, Qko): New variables.
6378 (fc_charset_table): Delete uniquifier data for iso8859-1.
6379 (ftfont_get_latin1_charset): New function.
6380 (get_adstyle_property): New function.
6381 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
6382 bitmap fonts.
6383 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
6384 Delete iso-8859-1 range from the charset of fonts whose adstyle is
6385 `ko' or `ja'.
6386 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 6387 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
6388 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
6389 property.
6390 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
6391 (syms_of_ftfont): DEFSYM Qja and Qko.
6392
483670b5
KH
63932009-04-09 Kenichi Handa <handa@m17n.org>
6394
12b55765
KH
6395 * charset.c (map_charset_chars): For a charset of `superset'
6396 method, fix calculation of code range.
6397
483670b5
KH
6398 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
6399 from the list of extra properties.
6400 (font_clear_prop): Be sure to delete `:name' font property.
6401
57d3b93b
KH
64022009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6403
b4b2c2ca
YM
6404 * dispnew.c (redraw_overlapping_rows): Fix detection of
6405 overlapping for topmost and bottommost rows.
6406
1ac9108a 6407 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 6408
472c3609
JR
64092009-04-06 Jason Rumney <jasonr@gnu.org>
6410
6411 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
6412
ab193662
KH
64132009-04-06 Kenichi Handa <handa@m17n.org>
6414
6415 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
6416
6417 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
6418
0c26f026
KH
64192009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6420
6421 * ftfont.c (ftfont_open): Fix checking of the return value of
6422 FT_Load_Char. Fix setting font->underline_thickness.
6423
e173bbce
CY
64242009-04-04 Chong Yidong <cyd@stupidchicken.com>
6425
6426 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
6427 (Fterminal_parameters, Fterminal_parameter)
6428 (Fset_terminal_parameter): In doc string, refer to terminal
6429 objects rather than terminal ids.
6430
693a2698
EZ
64312009-04-04 Eli Zaretskii <eliz@gnu.org>
6432
6433 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
6434 ret_lim_data. (Bug#2867)
6435
d5221487
CY
64362009-04-03 Chong Yidong <cyd@stupidchicken.com>
6437
6438 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
6439 so they don't get wider than the window, matching 2006-01-23
6440 change to the partner function in xdisp.c (Bug#2800).
6441
223509a3
KH
64422009-04-03 Kenichi Handa <handa@m17n.org>
6443
6444 * print.c (print_object): Make each lowest sub_char_table start a
6445 new line (Bug#2866).
6446
74fcd0b1
KH
64472009-04-02 Kenichi Handa <handa@m17n.org>
6448
6449 * fontset.c (fontset_font): Record no-font when a fontset
6450 explicitly tells not to try another font-specs.
6451
c542407d
SM
64522009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
6453
6454 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
6455
e3869731
KH
64562009-03-30 Kenichi Handa <handa@m17n.org>
6457
d8d2f142
KH
6458 * fontset.c (fontset_from_font): Specify only registry in a
6459 font-spec for all characters supported by that registry.
6460
e3869731
KH
6461 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
6462 even if HAVE_M17N_FLT is not defined.
6463
5da5f805
CY
64642009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
6465
6466 * ftfont.c: Conditionalize prototyping and use of
6467 ftfont_variation_glyphs.
6468
ab226c50
SM
64692009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
6470
9628fed7
SM
6471 * frame.c (delete_frame): Work around compiler bug.
6472
6473 * editfns.c (general_insert_function): Adjust to insdel.c changes.
6474 * insdel.c (prepare_to_modify_buffer, signal_before_change):
6475 Some more EMACS_INT.
6476 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
6477
6478 * xdisp.c (dump_glyph): Fix typo.
6479
ae19ba7c
SM
6480 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
6481 (adjust_markers_gap_motion, adjust_markers_for_delete)
6482 (adjust_markers_for_insert, adjust_point)
6483 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
6484 (make_gap, copy_text, count_size_as_multibyte, insert)
6485 (insert_and_inherit, insert_before_markers)
6486 (insert_before_markers_and_inherit, insert_1)
6487 (count_combining_before, count_combining_after, insert_1_both)
6488 (insert_from_string, insert_from_string_before_markers)
6489 (insert_from_string_1, insert_from_gap, insert_from_buffer)
6490 (insert_from_buffer_1, adjust_after_replace)
6491 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
6492 (replace_range_2, del_range, del_range_1, del_range_byte)
6493 (del_range_both, del_range_2, modify_region)
6494 (prepare_to_modify_buffer, signal_before_change)
6495 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
6496 for buffer positions and sizes.
6497 * lisp.h: Adjust prototypes accordingly.
6498
6499 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
6500 (non_regular_inserted, non_regular_nbytes, read_non_regular)
6501 (Finsert_file_contents): Use EMACS_INT for buffer positions.
6502
ab226c50
SM
6503 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
6504
46dfb8fb
JD
65052009-03-27 Jan Djärv <jan.h.d@swipnet.se>
6506
6507 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
6508 lines and columns so we keep the same pixel height and width.
6509
6510 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
6511 the property _NET_WM_STATE has changed.
46dfb8fb
JD
6512 (x_handle_net_wm_state): New function to update frame parameter
6513 fullscreen.
6514 (x_term_init): Initialize atoms for _NET_WM_STATE.
6515
6516 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
6517
d347e494
SM
65182009-03-27 Kevin Ryde <user42@zip.com.au>
6519
6520 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
6521 Gpm_GetEvent as an error that justifies closing the filedescriptor.
6522 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
6523 (Fgpm_mouse_stop): Pass that new parameter.
6524 * termhooks.h (close_gpm): Adjust prototype.
6525
84db11d6
SM
65262009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
6527
c95a5008
SM
6528 * lisp.h (Fx_focus_frame): Declare.
6529
84db11d6
SM
6530 * callint.c (Fcall_interactively): For '^' just delegate the work to
6531 handle-shift-selection.
6532 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
6533
0a1958d6
CY
65342009-03-24 Chong Yidong <cyd@stupidchicken.com>
6535
0bfdff23
CY
6536 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
6537
0a1958d6
CY
6538 * data.c (Qinteractive_form): New variable.
6539 (Finteractive_form): Use it.
6540
6541 * eval.c (Fcommandp): Use Qinteractive_form.
6542
58aec0d6
JR
65432009-03-24 Jason Rumney <jasonr@gnu.org>
6544
6545 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
6546 Calculate total size precisely. Decode environment variables
6547 before substituting. (Bug#38)
6548
553dd618
KH
65492009-03-24 Kenichi Handa <handa@m17n.org>
6550
6551 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 6552 encoding (Bug#2722).
553dd618 6553
c39ea606
JD
65542009-03-23 Jan Djärv <jan.h.d@swipnet.se>
6555
6556 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
6557 that gdpy is set.
6558
bc9b2b5e
AM
65592009-03-22 Alan Mackenzie <acm@muc.de>
6560
6561 * callint.c (Finteractive): Clarify the doc string - even
6562 promptless elements need \n separators.
6563
9f995a76
JR
65642009-03-22 Jason Rumney <jasonr@gnu.org>
6565
6566 * w32term.c (syms_of_w32term): Doc fix for
6567 x-use-underline-position-properties.
6568
22749e9a
EZ
65692009-03-21 Eli Zaretskii <eliz@gnu.org>
6570
6571 * w32.c (getpwuid): Change argument type to unsigned.
6572 (struct w32_id): Change type of `rid' member to unsigned.
6573 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
6574 argument ID to unsigned. All callers changed.
6575 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
6576
e00553bf
EZ
65772009-03-20 Eli Zaretskii <eliz@gnu.org>
6578
6579 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
6580 negative, produce a float value.
6581
6582 * dired.c (make_uid, make_gid): New functions.
6583 (Ffile_attributes): Use them to avoid negative UID and GID.
6584
f761d6b6
JB
65852009-03-20 Juanma Barranquero <lekktu@gmail.com>
6586
6587 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
6588 (syms_of_keyboard) <command-hook-internal, input-method-function>:
6589 Fix typos in docstrings.
6590
d507f8d7
KH
65912009-03-19 Kenichi Handa <handa@m17n.org>
6592
6593 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
6594 changed, use font_load_for_lface to get a new font object.
6595 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
6596
6597 * frame.c (x_set_font): Handle the case that ARG is a cons.
6598
c68845e0
GM
65992009-03-19 Glenn Morris <rgm@gnu.org>
6600
6601 * fileio.c (Fsubstitute_in_file_name): Doc fix.
6602
bfa49dd1
CY
66032009-03-19 Chong Yidong <cyd@stupidchicken.com>
6604
6605 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
6606
8458d4c1
KH
66072009-03-19 Kenichi Handa <handa@m17n.org>
6608
6609 * charset.c (load_charset_map_from_file): When a mapfile can't be
6610 loaded, signal an error.
6611
78e7d1fe
EZ
66122009-03-18 Eli Zaretskii <eliz@gnu.org>
6613
6614 * dired.c (Ffile_attributes): Make sure UID and GID are always
6615 positive, even if the value is too large for a positive EMACS_INT.
6616 Doc fix.
6617
6618 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
6619
5da9fdfa
YM
66202009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6621
6622 * xmenu.c (xdialog_show): Move Fredisplay call ...
6623 (Fx_popup_dialog): ... here.
6624
7519c40d
SM
66252009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
6626
6627 * dired.c (file_name_completion): Disable the first optimization just
6628 installed, since it is not implemented correctly.
6629
2cd298e2
SM
66302009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
6631
6632 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 6633 only if the entry can affect bestmatch.
2cd298e2
SM
6634 Stop the search early, as Ftry_completion already does.
6635
48d37adf
CY
66362009-03-17 Chong Yidong <cyd@stupidchicken.com>
6637
e10c9c93 6638 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 6639
9286b16a
CY
66402009-03-15 Chong Yidong <cyd@stupidchicken.com>
6641
6642 * keyboard.c (parse_menu_item): Don't display remappings as menu
6643 equivalent bindings (Bug#788).
6644
f7b146dc
JR
66452009-03-15 Jason Rumney <jasonr@gnu.org>
6646
6647 * w32term.h (WM_EMACS_PAINT): New message.
6648 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
6649 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
6650 before passing to lisp thread. (Bug#950)
6651
f761d6b6 66522009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 6653
d93f9575
CY
6654 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
6655 variable as it was never reset.
6656 (ns_term_init): Remove initialization of Lisp-settable defaults
6657 and ns_expand_space.
6658 (-setPanelFromDefaultValues): Remove ns_expand_space.
6659 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
6660 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
6661 i.e. no additional spacing, similar to Carbon port.
6662
d93f9575
CY
6663 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
6664 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 6665
305018ec
JD
66662009-03-14 Jan Djärv <jan.h.d@swipnet.se>
6667
6668 * sound.c (alsa_configure): Remove call to deprecated
6669 snd_pcm_sw_params_set_xfer_align.
6670
f761d6b6 66712009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
6672
6673 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
6674 after clicking in a detached tool bar.
6675 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
6676
46e722a9
SM
66772009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
6678
348db3dd
SM
6679 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
6680 int/Lisp_Object mixup).
46e722a9 6681
a3d16f39
KH
66822009-03-13 Kenichi Handa <handa@m17n.org>
6683
6684 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 6685 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
6686 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
6687 (set_fontset_font): Change ARG to a vector. Handle range_list in
6688 ARG correctly.
6689 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 6690 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
6691 the above change.
6692 (fontset_from_font): Fix previous change.
fe24f56a 6693 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
6694 entry. If FONTSET is the default fontset, don't set the extra
6695 slot of the returning char-table.
6696
b066e6b6
JB
66972009-03-12 Juanma Barranquero <lekktu@gmail.com>
6698
6699 * nsfns.m (Fx_close_connection): Doc fix.
6700 (Fns_do_applescript): Reflow docstring.
6701 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
6702 (Fx_display_pixel_width, Fx_display_pixel_height)
6703 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
6704 Fix typos in docstrings.
6705 (Fns_set_alpha): Fix typos in error messages.
6706
d472514e 67072009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 6708
d472514e 6709 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
6710 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
6711 were used for such events.
6712
d472514e
JB
6713 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
6714 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 6715
d472514e 6716 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
6717 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
6718
fb930676
KH
67192009-03-11 Kenichi Handa <handa@m17n.org>
6720
ff85581a
KH
6721 * font.h (font_open_by_spec): Extern it.
6722
c50b7e98
KH
6723 * font.c (font_open_by_spec): New function.
6724 (font_open_by_name): Use font_open_by_spec.
6725
fb930676
KH
6726 * frame.c (x_set_font): When ARG is a font-object, don't alter the
6727 fontset of the frame.
6728
6729 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
6730 modify the default font of frames that use this fontset.
6731 (num_auto_fontsets): New variable.
6732 (fontset_from_font): Use num_auto_fontsets to decide a fontset
6733 name. Be sure to set FONTSET_ASCII to the correct font name.
6734 (update_auto_fontset_alist): New function.
6735
df4e8455
JB
67362009-03-11 Juanma Barranquero <lekktu@gmail.com>
6737
6738 * makefile.w32-in: Update dependencies.
6739
0a375797
AR
67402009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6741
6742 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
6743
61313fa3
SM
67442009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
6745
6746 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
6747
b55103fb
CY
67482009-03-10 Chong Yidong <cyd@stupidchicken.com>
6749
6750 * lread.c (Feval_buffer): Doc fix.
6751
dde2559c
KH
67522009-03-09 Kenichi Handa <handa@m17n.org>
6753
6754 * charset.c (Qfile_name_handler_alist): Extern it.
6755 (load_charset_map_from_file): Temporarily bind
6756 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
6757
df4e8455 67582009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 6759
47f588bb
GM
6760 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
6761 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 6762
4ddf94bd
AR
67632009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6764
4c9bdfc2
AR
6765 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
6766 (x_set_window_size): Change back to calculated method of setting
6767 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
6768 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
6769 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
6770
fe41ae9e
AR
6771 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
6772
4c9bdfc2
AR
6773 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
6774 accelerator in parens under GNUstep.
6775
825d0875
KH
67762009-03-06 Kenichi Handa <handa@m17n.org>
6777
6778 These changes are to detect incorrect composition sequence without
f3b3be74 6779 looking ahead the source. (Bug#2370)
825d0875
KH
6780
6781 * coding.h: Include "composite.h".
6782 (enum compisition_state): New enum.
6783 (struct compisition_status): New struct.
6784 (struct iso_2022_spec): New member cmp_status.
6785 (struct emacs_mule_spec): New struct.
6786 (struct coding_system): New members ctext_extended_segment_len and
6787 embedded_utf_8. Change the union member
6788 spec.emacs_mule_full_support to spec.emacs_mule.
6789
6790 * coding.c (CODING_ISO_CMP_STATUS): New macro.
6791 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 6792 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
6793 (ADD_COMPOSITION_DATA): New arg nbytes.
6794 (emacs_mule_char): New arg cmp_status.
6795 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
6796 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
6797 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
6798 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
6799 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
6800 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
6801 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
6802 (EMACS_MULE_COMPOSITION_END): New macro.
6803 (emacs_mule_finish_composition): New function.
6804 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
6805 (decode_coding_emacs_mule): Avoid long looking ahead while
6806 handling composition.
6807 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
6808 (ENCODE_COMPOSITION_RULE): New macro.
6809 (finish_composition): New function.
6810 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
6811 (DECODE_COMPOSITION_START): New implementation.
6812 (DECODE_COMPOSITION_END): Likewise.
6813 (STORE_COMPOSITION_RULE): New macro.
6814 (decode_coding_iso_2022): Avoid long looking ahead while handling
6815 composition, CTEXT extended segment, and embedded UTF-8.
6816 (setup_coding_system): For a coding of type iso-2022, reset
6817 CODING_ISO_EXTSEGMENT_LEN (coding) and
6818 CODING_ISO_EMBEDDED_UTF_8 (coding).
6819 (get_translation): Delete arguments last_block, from_nchars,
6820 to_nchars. Callers changed.
6821 (produce_chars): Don't modify charbuf. Adjusted for the change of
6822 get_translation.
98a326f7 6823 (produce_composition): Adjust for the new annotation sequence.
825d0875 6824 (handle_composition_annotation): Likewise.
98a326f7 6825 (consume_chars): Adjust for the change of get_translation.
825d0875 6826
ccbc4452
AR
68272009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
6828
4ddf94bd 6829 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 6830
988a7ddb
KH
68312009-03-05 Kenichi Handa <handa@m17n.org>
6832
6833 * font.c (font_select_entity): New function.
6834 (font_find_for_lface): Use font_select_entity to select a font.
6835
6836 * fontset.c (fontset_find_font): If a font found without
a8a3728b 6837 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
6838 font with C restriction.
6839
98a326f7 68402009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 6841
be1bce46 6842 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 6843
10ea2b82
JR
68442009-03-04 Jason Rumney <jasonr@gnu.org>
6845
2c93b248 6846 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 6847 characters that have already been read. (Bug#2569)
2c93b248 6848
10ea2b82
JR
6849 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
6850 Log an error message if check_image_size failed.
6851 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 6852 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 6853
71a0c011
EZ
68542009-03-02 Eli Zaretskii <eliz@gnu.org>
6855
6856 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
6857 when decoding process output.
6858
2f63bba8
RS
68592009-03-01 Richard M Stallman <rms@gnu.org>
6860
6861 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
6862
6863 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
6864
0a9564cb
EZ
68652009-02-28 Eli Zaretskii <eliz@gnu.org>
6866
6867 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
6868 (decode_coding_emacs_mule, decode_coding_iso_2022)
6869 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6870 (decode_coding_raw_text, decode_coding_charset)
6871 (setup_coding_system, decode_eol, decode_coding, consume_chars):
6872 Honor inhibit-eol-conversion. (Bug #2186)
6873
449148b3
JR
68742009-02-28 Jason Rumney <jasonr@gnu.org>
6875
6876 * coding.c (detect_coding_charset): If not checking latin extra,
6877 fail on characters between 0x80 and 0xA0. (Bug#2354)
6878
a4aee864
EZ
68792009-02-28 Eli Zaretskii <eliz@gnu.org>
6880
6881 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 6882 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 6883
d88bee5a
GM
68842009-02-27 Glenn Morris <rgm@gnu.org>
6885
6886 * callint.c (Finteractive): Doc fix.
6887
a808f22d
KH
68882009-02-27 Kenichi Handa <handa@m17n.org>
6889
6890 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
6891
caf8d60c
CY
68922009-02-27 Chong Yidong <cyd@stupidchicken.com>
6893
6894 * font.c (font_style_to_value): Set value for unknown symbols to
6895 100 instead of 255.
b61137ea
CY
6896 (weight_table, slant_table, width_table): Treat "unspecified" as
6897 the default value.
caf8d60c 6898
1a0de25c
JB
68992009-02-26 Juanma Barranquero <lekktu@gmail.com>
6900
6901 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
6902
8fc45744
JB
69032009-02-25 Juanma Barranquero <lekktu@gmail.com>
6904
107bd7d1
JB
6905 * lread.c (Fload): Stop checking Vloads_in_progress and signal
6906 error as soon as a recursive load is detected.
8fc45744 6907
f097e223
AR
69082009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6909
6910 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
6911 before caching.
6912
8810a12f
KH
69132009-02-24 Kenichi Handa <handa@m17n.org>
6914
6915 * fontset.c (fontset_find_font): Fix the condition for checking
6916 unavailable font.
6917
2c7d1565
GM
69182009-02-24 Glenn Morris <rgm@gnu.org>
6919
6920 * xfaces.c (Finternal_set_font_selection_order): Remove leading
6921 whitespace that confuses documentation.
6922
a20878b6
MB
69232009-02-23 Miles Bader <miles@gnu.org>
6924
6925 * process.c (Flist_system_processes, Fprocess_attributes)
6926 (syms_of_process): Rename `system-process-attributes' to
6927 `process-attributes'.
6928
b3b58c01
AS
69292009-02-22 Andreas Schwab <schwab@linux-m68k.org>
6930
1b3b981b
AS
6931 * coding.h (struct coding_system): Make safe_charsets a pointer to
6932 unsigned char.
6933 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
6934 being 255.
6935 (SAFE_CHARSET_P): Likewise.
6936 (setup_iso_safe_charsets): Properly setup safe_charsets.
6937 (Fdefine_coding_system_internal): Likewise.
6938 (setup_coding_system): Likewise. Remove unneeded casts.
6939 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
6940 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
6941 unneeded casts.
6942
b3b58c01
AS
6943 * insdel.c (del_range_2): Don't modify gap contents when called
6944 from decode_coding_object. (Bug#1809)
6945
0b6f228c
CY
69462009-02-21 Chong Yidong <cyd@stupidchicken.com>
6947
6948 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
6949 Qfont_object.
6950 (Ftype_of): Recognize font objects.
6951
6952 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
6953
6954 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
6955 moved to data.c.
6956
52f8870b
AR
69572009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6958
6959 * nsterm.m (x_make_frame_invisible): Unset async_visible,
6960 async_iconified. Based on a patch by Christian Lynbech
6961 <christian.lynbech@tieto.com>.
6962 (EmacsView-windowDidMiniaturize:): Unset async_visible.
6963
7087d5e9
GM
69642009-02-20 Glenn Morris <rgm@gnu.org>
6965
6966 * syntax.c (Fskip_chars_forward): Fix doc typo.
6967
41d2ceef
CY
69682009-02-20 Chong Yidong <cyd@stupidchicken.com>
6969
6970 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
6971
1a3b7ca6
CY
69722009-02-19 Chong Yidong <cyd@stupidchicken.com>
6973
6974 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
6975
73cce38d
KH
69762009-02-19 Kenichi Handa <handa@m17n.org>
6977
6978 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 6979 Don't overflow coding->carryover. (Bug#2370)
73cce38d 6980
a51092ee
DN
69812009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
6982
6983 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
6984
c423ecca
KH
69852009-02-18 Kenichi Handa <handa@m17n.org>
6986
6987 * font.c (font_check_otf_features): Fix handling of `nil' element.
6988 (Ffont_spec): Describe :lang and :otf in the docstring.
6989
4c1958f4
AS
69902009-02-16 Andreas Schwab <schwab@suse.de>
6991
6992 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
6993 string.
6994
5704f39a
KH
69952009-02-16 Kenichi Handa <handa@m17n.org>
6996
6997 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 6998 (Bug#1723)
5704f39a 6999
8f0085aa
CY
70002009-02-14 Chong Yidong <cyd@stupidchicken.com>
7001
a057d86a 7002 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
7003
7004 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
7005 (handle_line_prefix): Suppress wrapping of wrap prefixes.
7006
aff01dd9
EZ
70072009-02-14 Eli Zaretskii <eliz@gnu.org>
7008
7009 * msdos.c (MAX_SCREEN_BUF): New macro.
7010 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
7011 Encode the entire run of glyphs sharing the same face, instead of
7012 doing that one glyph at a time (fixes a bug with displaying
7013 double-size characters).
7014
ba301db3
AR
70152009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
7016
7017 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
7018
7019 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
7020 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 7021 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
7022
7023 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 7024 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 7025
51d861de
SM
70262009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
7027
ac146f82 7028 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
7029 invisible areas.
7030
7fed8996
JR
70312009-02-12 Jason Rumney <jasonr@gnu.org>
7032
631ea4fb
JR
7033 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
7034 (add_font_entity_to_list): Call check_face_name even when family
7035 is unspecified.
7036
cb4a3e42
JR
7037 * w32term.c (x_display_pixel_height, x_display_pixel_width):
7038 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 7039 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 7040
7fed8996 7041 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 7042 raster fonts. (Bug#2219)
7fed8996 7043
895416e3
KH
70442009-02-12 Kenichi Handa <handa@m17n.org>
7045
7046 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
7047 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
7048 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 7049 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
7050 (find_automatic_composition): While looking forward and backward,
7051 check static composition. Fix where to stop looking forward.
7052 (composition_adjust_point): Fix checking of static composition.
7053 (Fcomposition_get_gstring): Pay attention to
1dacf998 7054 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
7055
7056 * lisp.h (fast_looking_at): Extern it.
7057
7058 * search.c (fast_looking_at): New function.
7059
51d861de 7060 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
7061 <struct glyph>.u.cmp.to.
7062 (append_composite_glyph): Likewise.
7063
51d861de 7064 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
7065 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
7066 composition.
51d861de 7067 (append_composite_glyph): Adjust for the change of
895416e3
KH
7068 <strcut glyph>.u.cmp.to.
7069
8510724d
JB
70702009-02-11 Juanma Barranquero <lekktu@gmail.com>
7071
7072 * casetab.c (init_casetab_once):
7073 * coding.c (ALLOC_CONVERSION_WORK_AREA):
7074 * font.c (font_update_lface):
7075 * fontset.c (Fnew_fontset):
7076 * ftfont.c (ftfont_drive_otf):
7077 * xfont.c (xfont_open):
7078 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
7079
294fa707
SM
70802009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
7081
7082 * fileio.c (Fwrite_region): !NILP -> CONSP.
7083
b5bfebec
AS
70842009-02-10 Andreas Schwab <schwab@suse.de>
7085
7086 * process.c (send_process): Properly relocate pointer into data
adab88bd 7087 when using encoded data. (Bug#2272)
b5bfebec 7088
cb84a2be
KH
70892009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
7090
7091 * coding.c (detect_coding_charset): Fix previous change.
7092
89e09428
JR
70932009-02-08 Jason Rumney <jasonr@gnu.org>
7094
7095 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 7096 disappeared while hourglass was displayed. (Bug #2193)
89e09428 7097
4470a277
AS
70982009-02-07 Andreas Schwab <schwab@suse.de>
7099
7100 * unexelf.c (unexec): Fix error message.
7101
3175b12a
AR
71022009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
7103
7104 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 7105 when modal window is active. (Bug #2152)
3175b12a
AR
7106 (applicationShouldTerminate:): Remove now-unneeded while loop
7107 around NSRunAlertPanel.
7108
7109 * nsmenu.m (popupSession): New file-global variable.
7110 (pop_down_menu): End the popupSession before closing dialog.
7111 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
7112 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
7113 don't query NSApp for events (just sleep instead).
7114
8434d0b8
EZ
71152009-02-07 Eli Zaretskii <eliz@gnu.org>
7116
51d861de
SM
7117 * coding.c (syms_of_coding) <translation-table-for-input>:
7118 Modify doc string to discourage use for character code unification.
8434d0b8 7119
aa82edfd
CY
71202009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7121
7122 * atimer.c (run_timers): Update pending_atimers.
7123
2d283c7c
CY
71242009-02-06 Chong Yidong <cyd@stupidchicken.com>
7125
eb306cab
CY
7126 * image.c (svg_load_image): Fix last change.
7127
2d283c7c
CY
7128 * xfns.c (Fx_create_frame): Signal an error if no font is
7129 found (Bug#2147).
7130
4d8e170e
JB
71312009-02-05 Juanma Barranquero <lekktu@gmail.com>
7132
7133 * character.c (syms_of_character) <script-representative-chars>:
7134 Fix typo in docstring.
7135
c96169a0
AR
71362009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7137
7138 * nsmenu.m (pop_down_menu): New function.
7139 (ns_popup_dialog): Call it on unwind.
7140 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
7141 call timer_check() (Bug#2154).
7142 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
7143 handling_signal is set.
7144 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
7145
31fd7c5c 7146 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
7147
7148 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
7149
7150 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
7151
51d861de
SM
7152 * keyboard.c (poll_for_input_1, handle_async_input):
7153 Set handling_signal under HAVE_NS.
c96169a0 7154
aacd8ba1
GM
71552009-02-04 Glenn Morris <rgm@gnu.org>
7156
7157 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
7158
4cb75c4b
KH
71592009-02-04 Kenichi Handa <handa@m17n.org>
7160
7161 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
7162
7163 * charset.c (Fchar_charset): New optional arg restriction.
7164
7165 * coding.h (coding_system_charset_list): Extern it.
7166
7167 * coding.c (coding_system_charset_list): New function.
7168
7169 * composite.c: Include coding.h and termhooks.h.
7170 (composition_gstring_p): Fix for the terminal case.
7171 (composition_gstring_width): Likewise.
7172 (fill_gstring_body): Likewise.
7173 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
7174 the frame.
7175 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
7176 is within a composition.
867d4bb3 7177 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
7178
7179 * term.c (encode_terminal_code): Fix handling of composition.
7180 (produce_composite_glyph): For static composition, get pixel_width
7181 from struct composition.
7182
826ba17e
AS
71832009-02-02 Andreas Schwab <schwab@suse.de>
7184
7185 * unexelf.c (unexec): Handle unaligned bss offset.
7186
8ad093db
AR
71872009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7188
7189 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
7190 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 7191
8ad093db
AR
7192 * keyboard.c (handle_interrupt): Don't call
7193 quit_throw_to_read_char() under NS.
d0a76a6e 7194
8ad093db
AR
7195 * blockinput.h: Remove NS-specific code.
7196
4d18a7a2
DN
71972009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
7198
db878925
DN
7199 * dispnew.c (window_change_signal): Don't try to get the size of a
7200 suspended tty frame.
7201 * term.c (Fresume_tty): Resize if the size has changed while the
7202 tty was suspended.
7203
4d18a7a2
DN
7204 * alloc.c (mark_stack): Properly conditionalize previous change.
7205
8984df7c
JB
72062009-01-30 Juanma Barranquero <lekktu@gmail.com>
7207
7208 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
7209 * w32term.c (w32_read_socket) [SYNC_INPUT]:
7210 Remove; this code is not used on Windows.
7211
75f4f1ac
EZ
72122009-01-30 Eli Zaretskii <eliz@gnu.org>
7213
7214 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
7215 EOLs that also has stray ^M characters.
7216
07a1e794
JB
72172009-01-30 Juanma Barranquero <lekktu@gmail.com>
7218
7219 * atimer.c (run_timers, alarm_signal_handler):
7220 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
7221 * w32inevt.c (w32_console_read_socket):
7222 * w32term.c (w32_read_socket):
7223 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
7224
a8b11cc9
CY
72252009-01-30 Chong Yidong <cyd@stupidchicken.com>
7226
7227 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
7228 Initialize it as a relative filename pattern.
7229 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
7230 (Fcall_process_region): Simplify temp file creation using
7231 temporary-file-directory.
7232
c279587b
EZ
72332009-01-29 Eli Zaretskii <eliz@gnu.org>
7234
7235 * msdos.c: Rename pending_signals to msdos_pending_signals.
7236 (sig_suspender, sigprocmask): Adjust.
7237
a8fe3242
CY
72382009-01-29 Chong Yidong <cyd@stupidchicken.com>
7239
7240 * keyboard.c (pending_signals): New var.
7241 (poll_for_input, input_available_signal, init_keyboard): Set it.
7242 (process_pending_signals): New function.
7243
7244 * lisp.h (QUIT): Check pending_signals instead of
7245 interrupt_input_pending. Use process_pending_signals.
7246
51d861de 7247 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 7248
51d861de 7249 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
7250
7251 * sysdep.c (emacs_write): Use process_pending_signals.
7252
7253 * xterm.c (XTread_socket): Update pending_signals.
7254
7255 * w32term.c (w32_read_socket): Update pending_signals.
7256
7257 * w32inevt.c (w32_console_read_socket): Update pending_signals.
7258
6570a1c4
KH
72592009-01-29 Kenichi Handa <handa@m17n.org>
7260
7261 * xftfont.c (xftfont_has_char): New function.
7262 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
7263
d72a4afa
AR
72642009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7265
7266 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
7267 under GNUstep.
7268 (ns_query_color): New declaration.
7269
7270 * nsterm.m (ns_confirm_quit): New variable.
7271 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
7272 (EmacsApp-applicationShouldTerminate:): Use it.
7273 (EmacsPrefsController): Let user set it.
7274 (ns_query_color): New function.
7275 (ns_defined_color): Use it.
7276 (ns_initialize): Drop.
7277 (ns_term_init): Add two lines from ns_initialize(), and set
7278 input_interrupt_mode to nil.
7279
7280 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 7281 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 7282
9fe78804
KH
72832009-01-28 Kenichi Handa <handa@m17n.org>
7284
7285 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
7286 (fontset_get_font_group): Remember that no font-group is specified
7287 for C.
9fe78804 7288
fa57de36
CY
72892009-01-27 Chong Yidong <cyd@stupidchicken.com>
7290
930600e9
CY
7291 * fns.c (concat): Check for string overflow (bug#1787).
7292
fa57de36
CY
7293 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
7294 Quadruple undo limits (bug#1501).
7295
7179ce7b
KH
72962009-01-27 Kenichi Handa <handa@m17n.org>
7297
7298 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
7299 directly use GT_Get_Char_index.
7300
7301 * xftfont.c (struct xftfont_info): New member `index'.
7302
7303 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 7304 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 7305
5be8fcc0
CY
73062009-01-26 Kenichi Handa <handa@m17n.org>
7307
7308 * fontset.c (fontset_find_font): Fix handling of non-cons return
7309 value of fontset_get_font_group.
7310 (fontset_font): Revert last change.
7311
19ae3e61
JR
73122009-01-26 Jason Rumney <jasonr@gnu.org>
7313
7314 * w32font.c (w32font_list_internal): Return quickly if registry is
7315 unknown. Simplify final return.
7316 (add_font_entity_to_list): Break complex logic down into more
7317 manageable chunks. Move unknown registry check to
7318 w32font_list_internal.
7319
8612b71a
AR
73202009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
7321
7322 Changes to remove Feval calls from GUI under NS.
7323
d8038940
JB
7324 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
7325 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
7326 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
7327
7328 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
7329 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
7330 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
7331 instead of NON_ASCII_KEYSTROKE_EVENT.
7332 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
7333 (EmacsApp-applicationShouldTerminate:): Query user.
7334 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
7335 instead of Feval.
7336
7337 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
7338
7339 * keyboard.c (kbd_buffer_get_event): Check for it.
7340 (keys_of_keyboard): Define lispy keys for
7341 ns-put/unput-working-text.
7342
7343 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
7344 versions.
7345 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
7346
6288ae55
CY
73472009-01-25 Chong Yidong <cyd@stupidchicken.com>
7348
7349 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 7350 setting current_buffer directly. (Bug#2044)
6288ae55 7351
289e7f8f
CY
73522009-01-24 Chong Yidong <cyd@stupidchicken.com>
7353
5ce87308 7354 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 7355 any work. (Bug#1952, bug#1990).
5ce87308 7356
64cc3cf6 7357 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 7358
b3243e6f
AR
73592009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7360
7361 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
7362 (ns_no_defaults): New declaration.
7363 (main): Use it.
e0d2e69a 7364
d900b2af 7365 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 7366
d900b2af 7367 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 7368
d900b2af
AR
7369 * nsterm.m (ns_no_defaults): New variable.
7370 (ns_initialize): Don't read defaults when ns_no_defaults.
7371 (EmacsView-readSelectionFromPasteboard:)
7372 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 7373 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
7374 (ns_dumpglyphs_stretch): New function.
7375 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 7376 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 7377
e0d2e69a
AR
7378 * nsimage.m (setPixmapData:): Set to ignore image DPI.
7379
3ac71f5d
CY
73802009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
7381
7382 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
7383 call for Sparc64.
7384
3fe53a83
AR
73852009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7386
7387 * nsfns.m:
7388 * nsgui.h:
7389 * nsmenu.m:
7390 * nsselect.m:
7391 * nsterm.h:
7392 * nsterm.m: Remove '23' comments that indicated code added during
7393 update from emacs-20 -> emacs-23.
7394
10f87c6f 73952009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
7396
7397 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 7398 ns_alternate_modifier. (Bug#1217)
a3b53a85 7399
c7cef62d
AR
7400 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
7401 Display all shortcuts, including those w/o super modifier.
7402
575fb8bd
AR
7403 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
7404
918b848b
CY
74052009-01-22 Chong Yidong <cyd@stupidchicken.com>
7406
7407 * fileio.c (Vwrite_region_post_annotation_function)
7408 (Vwrite_region_annotation_buffers): New vars.
7409 (build_annotations_unwind): Just reset
7410 Vwrite_region_annotation_buffers.
7411 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
7412 Call write-region-post-annotation-function.
7413 (build_annotations): Add to Vwrite_region_annotation_buffers if
7414 buffer changes.
7415
a39e2539
AR
74162009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7417
7418 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
7419 Tiger.
51d861de
SM
7420 * nsfns.m (ns_do_applescript):
7421 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 7422
35ed44db
AR
74232009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
7424
7425 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
7426
cbe0b5bf
AR
74272009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7428
7429 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 7430
6049d3a0
AR
7431 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
7432
7433 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
7434 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
7435 handle Ctrl-tab. (Bug#1841)
7436 (ns_get_color): Use unsigned long long for scanned hex string value.
7437 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 7438 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 7439 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 7440 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 7441 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 7442 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 7443 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 7444
d3810c21 7445 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 7446 DPI. (Bug#1316)
d3810c21
AR
7447 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
7448 values in onTiger section.
4c7077c3 7449
e301e634
CY
74502009-01-19 Chong Yidong <cyd@stupidchicken.com>
7451
7f82490b
CY
7452 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
7453 Check return value of font_spec_from_name.
64cc3cf6 7454 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
7455
7456 * font.c (font_spec_from_name): Return Qnil if font name could not
7457 be parsed.
7458 (font_parse_name): Treat a `?' character as part of an XLFD.
7459
e301e634
CY
7460 * fns.c (Fsubstring): Doc fix.
7461
1c0db158
KH
74622009-01-19 Kenichi Handa <handa@m17n.org>
7463
51d861de 7464 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
7465 (ftfont_list): Likewise.
7466
acf20901
JB
74672009-01-18 Juanma Barranquero <lekktu@gmail.com>
7468
fff4e459
JB
7469 * dbusbind.c (Fdbus_register_signal):
7470 * process.c (conv_sockaddr_to_lisp):
7471 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
7472
acf20901
JB
7473 * callproc.c (Fgetenv_internal): Doc fix.
7474
e7abcdfb
CY
74752009-01-16 Chong Yidong <cyd@stupidchicken.com>
7476
7477 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
7478 it is not even used.
7479
b60861e6
GM
74802009-01-16 Glenn Morris <rgm@gnu.org>
7481
7482 * font.c (Ffont_variation_glyphs): Silence compiler.
7483
8db52afe
JB
74842009-01-15 Juanma Barranquero <lekktu@gmail.com>
7485
7486 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
7487 Reported by David Robinow <drobinow@gmail.com>.
7488
4cddb209
KH
74892009-01-15 Kenichi Handa <handa@m17n.org>
7490
51d861de 7491 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 7492
f247f67b
JR
74932009-01-14 Jason Rumney <jasonr@gnu.org>
7494
7495 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 7496 never a fontset. (Bug#1562)
f247f67b 7497
f56a4450
KH
74982009-01-14 Kenichi Handa <handa@m17n.org>
7499
7500 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 7501 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 7502
4e99855e
CY
75032009-01-13 Chong Yidong <cyd@stupidchicken.com>
7504
7505 * font.c (font_clear_prop): If clearing the family, clear the font
7506 width index too.
7507
fff4e459 7508 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 7509
24f01470
JB
75102009-01-12 Juanma Barranquero <lekktu@gmail.com>
7511
7512 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
7513 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
7514 functions, use sizeof.
7515
a41240a3
MR
75162009-01-12 Martin Rudalics <rudalics@gmx.at>
7517
7518 * keyboard.c (read_char): Fix case where last_nonmenu_event
7519 returned a bad value with submenus. (Bug#447)
7520
944636b8
CY
75212009-01-12 Chong Yidong <cyd@stupidchicken.com>
7522
7523 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
7524 family, clear the font width index too.
7525
0dad7c6f
JR
75262009-01-11 Jason Rumney <jasonr@gnu.org>
7527
7528 * keyboard.c (cmd_error_internal): Exit when errors occur before
7529 frame creation and not in daemon mode. (Bug#1836)
7530
7c2363af
CY
75312009-01-10 Chong Yidong <cyd@stupidchicken.com>
7532
7533 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
7534 of a display vector, backtrack.
7535 (try_window_reusing_current_matrix): Check glyph type before
7536 referencing charpos member.
7537
97b1b294
EZ
75382009-01-10 Eli Zaretskii <eliz@gnu.org>
7539
7540 Fix Bug #876:
7541
7542 * coding.c (inhibit_null_byte_detection): New variable.
7543 (detect_coding, detect_coding_system): Don't pay attention to null
7544 bytes if inhibit_null_byte_detection is non-zero.
51d861de 7545 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
7546 <inhibit-iso-escape-detection>: Doc fix.
7547
4624b6e3
JR
75482009-01-09 Jason Rumney <jasonr@gnu.org>
7549
7550 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 7551 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
7552 Only report Unicode Plane 2 fonts as unicode-sip.
7553
323b840c
CY
75542009-01-09 Chong Yidong <cyd@stupidchicken.com>
7555
51d861de
SM
7556 * xfaces.c (Fx_font_family_list): Delete function.
7557 Move compatibility version to faces.el.
323b840c 7558
51d861de 7559 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 7560
eba7400d
MR
75612009-01-09 Martin Rudalics <rudalics@gmx.at>
7562
7563 * frame.c (x_set_frame_parameters): Remember requested value for
7564 fullscreen before it's reset by the parameter handler.
7565
4b09796d
GM
75662009-01-09 Glenn Morris <rgm@gnu.org>
7567
7568 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 7569 (last_command_event): ... and update all users.
4b09796d
GM
7570 (last_input_char): For clarity, rename to...
7571 (last_input_event): ... and update all users.
7572 (last-command-char, last-input-char): Move to subr.el as aliases.
7573 * cmds.c, commands.h: Update for last_command_char rename.
7574
14ccea62
CY
75752009-01-08 Chong Yidong <cyd@stupidchicken.com>
7576
51d861de 7577 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 7578
5f004711
JR
75792009-01-08 Jason Rumney <jasonr@gnu.org>
7580
7581 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
7582 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
7583 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
7584 Don't declare.
fff4e459 7585 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
7586 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
7587
b71f6f73
KH
75882009-01-07 Kenichi Handa <handa@m17n.org>
7589
50b06221 7590 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 7591 remember the coding system used for decoding in
50b06221
KH
7592 coding_system (Bug#1039).
7593
b71f6f73 7594 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 7595 breaking the loop. (Bug#870)
b71f6f73
KH
7596 (decode_coding_utf_16, decode_coding_emacs_mule)
7597 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7598 (decode_coding_charset): Likewise.
7599
56f668f7
MR
76002009-01-05 Martin Rudalics <rudalics@gmx.at>
7601
7602 * frame.c (x_set_frame_parameters): Make sure height (width) get
7603 applied when fullwidth (fullheight) is set. (Bug#1522)
7604
5da9424d
JB
76052009-01-04 Juanma Barranquero <lekktu@gmail.com>
7606
7607 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
7608 (utc_base): Declare as ULONGLONG, not long double.
7609 (convert_time_raw): Delete.
7610 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
7611 (initialize_utc_base): New function.
7612 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
7613 (convert_from_time_t): Use initialize_utc_base; compute result with
7614 64-bit arithmetic.
7615 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
7616
c4605e09
EZ
76172009-01-03 Eli Zaretskii <eliz@gnu.org>
7618
9acef61c 7619 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
7620 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
7621 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
7622 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
7623 [!subprocesses]: Define.
7624 (syms_of_process) [!subprocesses]: Intern and staticpro them.
7625 (Flist_system_processes, Fsystem_process_attributes)
7626 [!subprocesses]: Call list_system_processes and
7627 system_process_attributes instead of returning Qnil.
7628
9acef61c
JB
7629 * dosfns.c (system_process_attributes, list_system_processes):
7630 New functions.
c4605e09
EZ
7631
7632 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
7633
7634 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
7635 Don't use the default (no-op) implementation.
7636
8b7d0a16
JR
76372009-01-03 Jason Rumney <jasonr@gnu.org>
7638
a6d46bc1
JR
7639 * keyboard.c (parse_modifiers_uncached): Wheel events are
7640 clicks (bug#687).
7641
8b7d0a16
JR
7642 * w32term.c (x_query_colors, x_query_color): New functions.
7643
7644 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
7645 (svg_load_image): Cast returned pointers from dynamically loaded
7646 functions. Eliminate W32 specific code.
7647
bfe11752
DN
76482009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
7649
89e2438a
DN
7650 * nsfns.m (x_set_foreground_color, x_set_background_color)
7651 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
7652 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
7653 x_ prefix instead of ns_. Update references.
7654 (syms_of_nsfns): Add a FIXME comment.
7655
7656 * nsterm.m (x_set_cursor_type): New prototype.
7657 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
7658
bfe11752
DN
7659 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
7660 for Solaris instead of incorrectly providing Qutime and Qcutime.
7661
031da700
EZ
76622009-01-02 Eli Zaretskii <eliz@gnu.org>
7663
7664 * w32.c (process_times): Compute sum of utime and stime.
7665 (system_process_attributes): Add Qtime to the alist.
7666
7667 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
7668 and add them to the alist.
7669
7670 * process.c (top level) <Qtime, Qctime>: New variables.
7671 (syms_of_process): staticpro them.
7672 (Fsystem_process_attributes): Add their documentation to the doc
7673 string.
7674
7675 * process.h: Declare Qtime and Qctime.
7676
df23bf08
JR
76772009-01-02 Jason Rumney <jasonr@gnu.org>
7678
9acef61c 7679 * image.c (Qgobject): New symbol.
df23bf08
JR
7680 (syms_of_image): Initialize it.
7681 (init_svg_functions): Load some functions from gobject library.
7682
5bbdf7aa
DN
76832009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
7684
7685 * frame.c (make_terminal_frame): Remove redundant code and useless
7686 block.
7687
63136da6
AS
76882009-01-01 Andreas Schwab <schwab@suse.de>
7689
7690 * process.c (conv_sockaddr_to_lisp): Add workaround for
7691 getsockname bug on BSD.
7692
9ef69046
CY
76932009-01-01 Chong Yidong <cyd@stupidchicken.com>
7694
d6fafbe0
CY
7695 * xfns.c (x_create_tip_frame): Set border width of the X window.
7696
51d861de 7697 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 7698
f9c34147
JR
76992009-01-01 Jason Rumney <jasonr@gnu.org>
7700
9acef61c 7701 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
7702 Don't block input, as per earlier xterm.c changes.
7703
f5497e45
AR
77042008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
7705
7706 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
7707 (ns_appkit_version_int): New function.
7708 (x-server-version): Use ns_appkit_version_int and follow 21+
7709 convention of returning 3 integers.
7710
c19cab20
KH
77112008-12-30 Kenichi Handa <handa@m17n.org>
7712
7713 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
7714 (CHAR_SURROGATE_PAIR_P): New macro.
7715
7716 * font.h (struct font_driver): New member get_variation_glyphs.
7717
9acef61c 7718 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
7719 (Ffont_variation_glyphs): New function.
7720 (syms_of_font): Defsubr it.
7721
7722 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
7723 ftfont_variation_glyphs.
7724 (setup_otf_gstring): New function.
7725 (ftfont_drive_otf): Use it.
7726 (ftfont_shape_by_flt): Handle variation selector.
7727 (ftfont_variation_glyphs): New function.
7728
28cd591f
MR
77292008-12-30 Martin Rudalics <rudalics@gmx.at>
7730
7731 * frame.c (Vemacs_iconified): Remove.
7732
7f714baf
JR
77332008-12-30 Jason Rumney <jasonr@gnu.org>
7734
7735 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 7736 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 7737
9d2d22ab
CY
77382008-12-30 Chong Yidong <cyd@stupidchicken.com>
7739
7740 * indent.c (Fvertical_motion): Don't advance iterator if we have
7741 reseated to the desired position.
7742
7743 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
7744 checking for pos match.
7745
545312c2
KH
77462008-12-30 Kenichi Handa <handa@m17n.org>
7747
1ede3eb6
KH
7748 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
7749 just get the low 8-bit of the code.
7750
545312c2
KH
7751 * font.c (font_intern_prop): Validate str as multibyte.
7752
bd7bbf29
DN
77532008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
7754
31e0750e
DN
7755 * dispextern.h (struct face): Move lface and hash from the middle
7756 of bitfields.
7757
bd7bbf29
DN
7758 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
7759
b5672e7c
DN
77602008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
7761
7762 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
7763 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
7764 instead of intervals.h.
7765
d704470f
AS
77662008-12-26 Andreas Schwab <schwab@suse.de>
7767
7768 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
7769 cons.
7770
54b33868
MR
77712008-12-26 Martin Rudalics <rudalics@gmx.at>
7772
7773 * textprop.c (Qminibuffer_prompt): New variable.
7774 (syms_of_textprop): Initialize it.
7775 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
7776 in minibuffer-prompt face. (Bug#1662)
7777
40b615d6
JR
77782008-12-25 Jason Rumney <jasonr@gnu.org>
7779
7780 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
7781
baae5c2d
JR
77822008-12-24 Jason Rumney <jasonr@gnu.org>
7783
7784 * ralloc.c (r_alloc_reset_variable): New function.
7785
7786 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 7787 record of what points where. (Bug#716)
baae5c2d 7788
a9051c88
DN
77892008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
7790
7791 * minibuf.c (read_minibuf): Follow the non-interactive case when
7792 running as a daemon, before detaching.
7793
8b146312
AS
77942008-12-22 Andreas Schwab <schwab@suse.de>
7795
7796 * buffer.c (init_buffer): Use realloc instead of xrealloc.
7797 * gtkutil.c (free_widget_value): Use xfree instead of free.
7798
56f2de10
MR
77992008-12-22 Martin Rudalics <rudalics@gmx.at>
7800
7801 * frame.c (delete_frame): New function derived from
7802 Fdelete_frame to handle Qnoelisp value for FORCE argument.
7803 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
7804 (Fdelete_frame): Call delete_frame. Remove line from doc-string
7805 saying that FORCE non-nil doesn't run `delete-frame-functions'.
7806 * frame.h: Extern delete_frame.
7807 * window.c (window_loop):
7808 * terminal.c (delete_terminal):
7809 * xterm.c (x_connection_closed):
7810 * xfns.c (Fx_hide_tip):
9acef61c 7811 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 7812
1fc200d6
JR
78132008-12-21 Jason Rumney <jasonr@gnu.org>
7814
7815 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
7816 when character maps to .notdef character.
7817
5e252df2
SM
78182008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
7819
7820 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
7821
99b72cc4
JR
78222008-12-20 Jason Rumney <jasonr@gnu.org>
7823
7824 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 7825 a graphical frame on Windows. (Bug#1325)
99b72cc4 7826
acc49a52
JD
78272008-12-20 Jan Djärv <jan.h.d@swipnet.se>
7828
7829 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
7830
6ea15123
CY
78312008-12-20 Chong Yidong <cyd@stupidchicken.com>
7832
7833 * minibuf.c (Fread_buffer): Doc fix.
7834
b2dab6c8
JR
78352008-12-20 Jason Rumney <jasonr@gnu.org>
7836
54ea0c87 7837 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 7838 server name in UNC paths. (Bug#719)
54ea0c87 7839
b2dab6c8 7840 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 7841 charbuf. (Bug#1035)
b2dab6c8 7842
6d1921be
DN
78432008-12-19 Daniel Engeler <engeler@gmail.com>
7844
7845 * sysdep.c (serial_configure): Fix typo.
7846
53934c98
DN
78472008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
7848
7849 * sysdep.c: Include alloca.h.
f4f634e8
DN
7850 (system_process_attributes): Add implementation for Solaris.
7851
7852 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 7853
06e111a6
DN
78542008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
7855
7856 Reorganize implementation of Flist_system_processes and
7857 Fsystem_process_attributes. No functional changes.
7858 * process.c: Don't #include pwd.h, grp.h and limits.h.
7859 (Flist_system_processes): Just call list_system_processes.
7860 (Fsystem_process_attributes): Just call system_process_attributes.
7861 (procfs_list_system_processes, time_from_jiffies)
7862 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
7863 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
7864
7865 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
7866 (list_system_processes): Rename from
7867 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
7868 Provide a do nothing implementation.
7869 (system_process_attributes): Rename from
7870 procfs_list_system_processes.
7871 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 7872 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
7873
7874 * w32.c (list_system_processes): Rename from
7875 w32_list_system_processes.
7876 (system_process_attributes): Rename from
7877 w32_system_process_attributes.
7878
7879 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
7880
7881 * process.h (w32_list_system_processes)
7882 (w32_system_process_attributes): Remove.
362654a6
JB
7883 (list_system_processes, system_process_attributes):
7884 New prototypes.
06e111a6 7885
6a705b23
KH
78862008-12-19 Kenichi Handa <handa@m17n.org>
7887
7888 * xfont.c (xfont_decode_coding_xlfd): New function.
7889 (xfont_encode_coding_xlfd): New function.
7890 (xfont_list_pattern): Decode XLFD by iso-8859-1.
7891 (xfont_list): Decode and encode XLFD by iso-8859-1.
7892 (xfont_match): Likewise.
7893 (xfont_list_family): Likewise.
7894 (xfont_open): Likewise.
7895
d66c0241 7896 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
7897 names are utf-8.
7898
d66c0241 7899 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
7900 names are utf-8.
7901
5a130941
JD
79022008-12-18 Jan Djärv <jan.h.d@swipnet.se>
7903
7904 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
7905 changed.
bfd20325
JD
7906 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
7907 clicked on a detached tool bar button.
5a130941 7908
fd95644b
DN
79092008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
7910
7911 * emacs.c (main): Print and error and exit when no data is read
7912 from the pipe.
7913
e6eee6ae
JR
79142008-12-17 Jason Rumney <jasonr@gnu.org>
7915
7916 * w32font.c (w32font_has_char): Always return -1.
7917
a35dd56b
KH
79182008-12-16 Kenichi Handa <handa@m17n.org>
7919
7920 * font.c (font_open_entity): Fix previous change.
7921
0e3635c2
DN
79222008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
7923
7924 * process.c: Include <limits.h>.
7925
d4835507 79262008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
7927
7928 * font.c (font_update_drivers): Fix mistake in reconstructing the
7929 driver list.
7930
79312008-12-16 Chong Yidong <cyd@stupidchicken.com>
7932
7933 * font.c (font_clear_cache): Fix format of font cache data.
7934
e2cbc401
CY
79352008-12-15 Chong Yidong <cyd@stupidchicken.com>
7936
7937 * xftfont.c (xftfont_open): Free Xft font pattern if
7938 XftFontOpenPattern fails.
7939
7940 * xterm.c (x_free_frame_resources): Remove extraneous call to
7941 free_frame_faces.
7942
b131d535
CY
79432008-12-13 Chong Yidong <cyd@stupidchicken.com>
7944
7945 * xterm.c (x_delete_display): Move xim_close_dpy call to
7946 x_delete_terminal.
7947 (x_delete_terminal): Call xim_close_dpy.
7948
e6df5336
JR
79492008-12-13 Jason Rumney <jasonr@gnu.org>
7950
7951 * w32font.c (intern_font_name): New function.
7952 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
7953 (w32font_open_internal, Fx_select_font): Decode font name.
7954 (fill_in_logfont, list_all_matching_fonts): Encode font name.
7955
7956 * w32font.h (intern_font_name): Declare new function.
7957
7958 * w32uniscribe.c (add_opentype_font_name_to_list):
7959 Use intern_font_name.
7960
20d68145
CY
79612008-12-13 Chong Yidong <cyd@stupidchicken.com>
7962
9f2554de
CY
7963 * frame.c (Fdelete_frame): Call free_font_driver_list.
7964
3d9bec9a
CY
7965 * font.c (free_font_driver_list): Implement missing function.
7966
20d68145
CY
7967 * w32term.c (w32_term_init): Don't initialize the image cache
7968 here; it will be done in init_frame_faces.
7969
7970 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
7971 (struct x_display_info): Remove unused member null_pixel. New
7972 member xim_callback_data.
7973
7974 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
7975 (xim_initialize): Save pointer to callback function data.
7976 (xim_close_dpy): Free callback function data. Call XCloseIM,
7977 reverting 2008-11-04 change by David Smith.
7978 (x_term_init): Don't initialize the image cache here; it will be
7979 done in init_frame_faces. Remove ancient "null_pixel" cruft.
7980 (x_delete_display): Free x_dnd_atoms member.
7981
96f9306b
KH
79822008-12-13 Kenichi Handa <handa@m17n.org>
7983
6dec9044
JB
7984 * font.c (font_rescale_ratio): Moved from xfaces.c.
7985 Argument type changed. Handle a font-spec too.
96f9306b 7986 (font_score): Check Vface_font_rescale_alist.
6dec9044 7987 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
7988
7989 * xfaces.c (font_rescale_ratio): Moved to font.c.
7990
8d5b4964
CY
79912008-12-13 Chong Yidong <cyd@stupidchicken.com>
7992
7993 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
7994
e6df5336
JR
79952008-12-12 Jason Rumney <jasonr@gnu.org>
7996
7997 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
7998 Vwindow_system_version to the real w32 major version.
7999
97c6058a
DN
80002008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
8001
8002 * term.c (init_tty): Move setting the terminal name before the
8003 potential user: maybe_fatal.
8004
ec4e88d7
CY
80052008-12-11 Chong Yidong <cyd@stupidchicken.com>
8006
d4835507
JB
8007 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
8008 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 8009
b4233ec9
JR
80102008-12-11 Jason Rumney <jasonr@gnu.org>
8011
8ec71e23 8012 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 8013 SYMBOL_CHARSET. (Bug#547)
8ec71e23 8014
b4233ec9 8015 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 8016 size for surrogates. (Bug#1096, bug#872)
b4233ec9 8017
011a0143
JB
80182008-12-11 Juanma Barranquero <lekktu@gmail.com>
8019
8020 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
8021
3c309f34
JB
80222008-12-11 Juanma Barranquero <lekktu@gmail.com>
8023
8024 * process.c (Fsystem_process_attributes, syms_of_process):
8025 Fix typo in name of Ssystem_process_attributes.
8026 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
8027
fedc6ab5
JB
80282008-12-11 Juanma Barranquero <lekktu@gmail.com>
8029
8030 * syntax.c (Fmodify_syntax_entry): Doc fix.
8031
ba3de0e8
JB
80322008-12-10 Juanma Barranquero <lekktu@gmail.com>
8033
8034 * font.c (Ffont_spec): Move usage to end of docstring.
8035
174f1c74
JR
80362008-12-10 Jason Rumney <jasonr@gnu.org>
8037
8038 * w32font.c (Qcham): New symbol.
8039 (font_supported_scripts): Add cham, and comments for other new
8040 scripts in bitfield from OpenType spec.
9d32f818
JR
8041 (add_font_entity_to_list): Limit unicode-sip fonts to those that
8042 contain characters beyond the bmp.
174f1c74 8043
7b649478
KH
80442008-12-10 Kenichi Handa <handa@m17n.org>
8045
8046 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 8047 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
8048 Qunicode_sip.
8049
2133e2d1
JB
80502008-12-10 Juanma Barranquero <lekktu@gmail.com>
8051
8052 * coding.c (QCdefault_char): Rename from QCdefalut_char.
8053 (Fcoding_system_put): Use QCdefault_char.
8054 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
8055
9af886ee
CY
80562008-12-09 Chong Yidong <cyd@stupidchicken.com>
8057
74d819eb
CY
8058 * xftfont.c (syms_of_xftfont): Fix typo.
8059
4ccfa1c0 8060 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 8061
7c19d3ae
DN
80622008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
8063
8064 * emacs.c (main): Close daemon_pipe on exec.
8065
567826bb
CY
80662008-12-08 Chong Yidong <cyd@stupidchicken.com>
8067
8068 * termchar.h (struct tty): New members termcap_term_buffer and
8069 termcap_strings_buffer.
8070
8071 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 8072 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
8073 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
8074 All callers changed.
8075 (init_tty): Store termcap data and string buffers in new struct
8076 tty members termcap_term_buffer and termcap_strings_buffer.
8077 (delete_tty): Free them.
4ccfa1c0 8078 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 8079
aa96c42b
SZ
80802008-12-07 Seiji Zenitani <zenitani@mac.com>
8081
8082 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 8083 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 8084
b7e1d896
CY
80852008-12-06 Chong Yidong <cyd@stupidchicken.com>
8086
8087 * coding.c (make_conversion_work_buffer): Disable buffer
8088 modification hooks in the work buffer.
8089
b5ec91a5
EZ
80902008-12-05 Eli Zaretskii <eliz@gnu.org>
8091
8092 * process.c (procfs_system_process_attributes): If `nread' has a
8093 negative value, assign zero to it.
8094
a5d2a52b
CY
80952008-12-05 Chong Yidong <cyd@stupidchicken.com>
8096
68c5540b 8097 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 8098
7bf1bb21
KH
80992008-12-05 Kenichi Handa <handa@m17n.org>
8100
8101 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
8102 second character is a combining character.
8103
2fdc7d00
EZ
81042008-12-05 Eli Zaretskii <eliz@gnu.org>
8105
8106 * process.c (procfs_system_process_attributes): Don't use cmd,
8107 cmdsize, and q without initializing them first.
8108
bf6bfba8
JR
81092008-12-04 Jason Rumney <jasonr@gnu.org>
8110
8111 * w32font.c (w32font_draw): Initialize orig_clip before getting
8112 it, and delete it when finished.
8113
a3b1a468
DN
81142008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
8115
8116 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
8117 case when running as a daemon before detaching.
8118
8b8be8eb
JB
81192008-12-03 Juanma Barranquero <lekktu@gmail.com>
8120
805f2638 8121 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 8122
b1bde622
KH
81232008-12-03 Kenichi Handa <handa@m17n.org>
8124
e500c47d
KH
8125 * font.c (font_at): Set `multibyte' at first.
8126
ca516334
KH
8127 * coding.c (decode_coding_charset): Check type of an element of
8128 vector VALIDS.
7bf1bb21 8129 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 8130
4ccfa1c0 8131 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
8132 (font_for_char): Likewise.
8133
1e5ecd37
CY
81342008-12-03 Chong Yidong <cyd@stupidchicken.com>
8135
d5b01609 8136 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
8137 (font_update_lface): Handle fonts with corrupted size specs,
8138 i.e. non-int and non-float.
d5b01609 8139
11e3a6e4 8140 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 8141 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 8142 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 8143
ab06788b
CY
8144 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
8145
1e5ecd37 8146 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 8147 underline_minimum_offset for underline position.
1e5ecd37 8148
63c125ab
DN
81492008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
8150
8151 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
8152
8153 * character.c (c_string_width): Specify the type for LEN.
8154
3a8406e1
KH
81552008-12-03 Kenichi Handa <handa@m17n.org>
8156
4ccfa1c0 8157 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 8158 (decode_coding_utf_8): Likewise.
4ccfa1c0 8159 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 8160 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 8161
651df7d9
CY
81622008-12-02 Chong Yidong <cyd@stupidchicken.com>
8163
8164 * keyboard.c (make_lispy_position): Only use PT if the selected
8165 window is current.
8166
1f625c6c
AS
81672008-12-02 Andreas Schwab <schwab@suse.de>
8168
f7741ce9
AS
8169 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
8170
1f625c6c
AS
8171 * doprnt.c (doprnt1): Fix size of charbuf.
8172
92bc2678
CY
81732008-12-02 Chong Yidong <cyd@stupidchicken.com>
8174
8175 * keyboard.c (timer_check): Revert last change.
8176
93b9e8cc
JB
81772008-12-02 Juanma Barranquero <lekktu@gmail.com>
8178
8179 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
8180
fd7a37d5
JB
81812008-12-01 Juanma Barranquero <lekktu@gmail.com>
8182
8183 * makefile.w32-in: Update dependencies.
8184 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
8185
c115043b
AS
81862008-12-01 Andreas Schwab <schwab@suse.de>
8187
8188 * font.c (register_font_driver): Use xmalloc.
8189 (font_put_frame_data): Likewise.
8190
f5668d2a
CY
81912008-12-01 Chong Yidong <cyd@stupidchicken.com>
8192
860d96be
CY
8193 * xfaces.c (realize_x_face): Make abort condition clearer.
8194
f5668d2a
CY
8195 * gtkutil.c (update_frame_tool_bar): Initialize variable.
8196
379c17e7
CY
81972008-11-30 Chong Yidong <cyd@stupidchicken.com>
8198
8199 * keyboard.c (timer_check): After a timer runs, ensure that the
8200 selected window's buffer is current.
8201
35f36d65
JB
82022008-11-30 Juanma Barranquero <lekktu@gmail.com>
8203
f952c61c
JB
8204 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
8205 It was accidentally restored by the Unicode merge.
8206
35f36d65
JB
8207 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
8208
b23077df
JB
82092008-11-29 Juanma Barranquero <lekktu@gmail.com>
8210
8211 * w32proc.c: Include "coding.h".
8212 (Fw32_short_file_name): Encode filename passed to Windows API.
8213 (Fw32_long_file_name): Encode filename passed to Windows API and
8214 decode back the result. (Bug#1433)
8215
b8ebe9dd
KH
82162008-11-29 Kenichi Handa <handa@m17n.org>
8217
8cc53f96
KH
8218 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
8219 not before accessing it.
8220
b8ebe9dd
KH
8221 * charset.c (Fdefine_charset_internal): After calculating
8222 min_char, max_char, and fastmap, copy the charset structure again.
8223 (encode_char): Fix the previous change.
8224
59bc82c0
SZ
82252008-11-28 Seiji Zenitani <zenitani@mac.com>
8226
8227 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
8228
8229 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
8230
8231 * nsterm.m (x_set_frame_alpha): New function.
8232
32247e3d
EZ
82332008-11-27 Eli Zaretskii <eliz@gnu.org>
8234
8235 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
8236
b003e5ff
JB
82372008-11-27 Juanma Barranquero <lekktu@gmail.com>
8238
8239 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
8240 pointer to check_face_name.
8241
708550f5
KH
82422008-11-27 Kenichi Handa <handa@m17n.org>
8243
8244 * category.h (SET_CATEGORY_SET): Call set_category_set.
8245 (set_category_set): Extern it.
8246
8247 * category.c (hash_get_category_set): New function.
8248 (Fmodify_category_entry): Adjusted for the change of
8249 char_table_ref_and_range. Call hash_get_category_set to get a
8250 category set to store in the table.
8251
8252 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
8253 Funify_charset.
8254
2ae37cf0 8255 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
8256 (DECODE_CHAR): Check if the decoder vector is ready.
8257 (ENCODE_CHAR): Check if the encoder char-table is ready.
8258 (maybe_unify_char): Extern it.
8259
8260 * charset.c (Vchar_unified_charset_table): Delete it.
8261 (inhibit_load_charset_map): New variable.
8262 (temp_charset_work): New variable.
8263 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
8264 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
8265 New macros.
8266 (load_charset_map): Meaning of control_flag changed. If
8267 inhibit_load_charset_map is nonzero, setup a table in
8268 temp_charset_work.
8269 (load_charset): New argument control_flag.
8270 (map_charset_for_dump): New function.
8271 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
8272 map_charset_for_dump.
8273 (Fdefine_charset_internal): If the charset method is MAP, load
8274 mapping tables by calling load_charset.
8275 (Funify_charset): Don't load a mapping table but directly set
8276 Vchar_unify_table.
8277 (maybe_unify_char): New function.
8278 (decode_char): Don't handle the deleted method MAP_DEFERRED.
8279 Handle the case of inhibit_load_charset_map being nonzero.
8280 (encode_char): Don't handle the deleted method MAP_DEFERRED.
8281 Handle the case of inhibit_load_charset_map being nonzero.
8282 (Fclear_charset_maps): Just free temp_charset_work.
8283 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
8284 variable.
8285
8286 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
8287 change of char_table_ref_and_range.
8288 (char_table_ref_and_range): Change the meaning of argument FROM
8289 and TO. Now the caller must provide initial values for *FROM
8290 and *TO.
8291
8292 * fontset.c (fontset_add): Adjusted for the change of
8293 char_table_ref_and_range.
8294 (fontset_get_font_group): Likewise.
8295 (Ffontset_info): Likewise.
8296
8297 * keymap.c (describe_vector): Adjusted for the change of
8298 char_table_ref_and_range. For char-table, put boundary between
8299 non-ASCII and 8-bit characters.
8300
8301 * print.c (print_object): For bool-vector, delete unnecessary
8302 check of ASCII_BYTE_P.
8303
9196133b
JR
83042008-11-26 Jason Rumney <jasonr@gnu.org>
8305
8306 * w32font.c (w32font_open_internal): Don't include external
9acef61c 8307 leading in font height. (Bug#879)
9196133b 8308
9f688acf
GM
83092008-11-26 Glenn Morris <rgm@gnu.org>
8310
8311 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
8312 redefinition with ifdef. (Bug#1383)
8313
90d19aff
AR
83142008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8315
8316 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
8317
4ccfa1c0 83182008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
8319
8320 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
8321 New EmacsView methods.
8322 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
8323 Fixes bug #1048,1357,1414.
8324
83252008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8326
8327 Fix bug #1362.
8328 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
8329 is not an indexed color.
8330 * nsterm.m (free_indexed_color): Add argument checking.
8331 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
8332
e7d5ecb3
CY
83332008-11-24 Chong Yidong <cyd@stupidchicken.com>
8334
8335 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
8336 Document confirm-after-completion value for
8337 minibuffer-completion-confirm.
8338
c285743c
JR
83392008-11-24 Jason Rumney <jasonr@gnu.org>
8340
8341 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
8342 warning.
8343
b0857706
JR
83442008-11-23 Jason Rumney <jasonr@gnu.org>
8345
8346 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
8347 restored before returning.
8348
8349 * w32font.c (check_face_name): New function.
8350 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 8351 fonts. (Bug#642)
b0857706 8352
ee50ff07
MR
83532008-11-22 Martin Rudalics <rudalics@gmx.at>
8354
8355 * buffer.c (Fswitch_to_buffer): Reword and mention new option
8356 confirm-nonexistent-file-or-buffer in doc-string.
8357
b8ff72fa
SM
83582008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
8359
8360 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
8361 Fix copy/paste typo. Add checks.
8362
cee53ed4
KH
83632008-11-21 Kenichi Handa <handa@m17n.org>
8364
8365 * coding.c (detect_coding_iso_2022): Reject invalid composition
8366 sequence.
8367 (DECODE_COMPOSITION_START): If the current source is the last
8368 block, and the current composition doesn't end, regard this
8369 sequence as invalid.
8370 (decode_coding_iso_2022): Handle invalid composition sequence.
8371
f6ef1e65
MR
83722008-11-20 Martin Rudalics <rudalics@gmx.at>
8373
8374 * window.c (coordinates_in_window): Don't return
8375 ON_VERTICAL_BORDER for the rightmost position of a mode/header
8376 line when the window is not the rightmost one. (Bug#1372)
8377
e08b1705
MR
83782008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
8379
8380 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
8381
ad98e89f
EZ
83822008-11-15 Eli Zaretskii <eliz@gnu.org>
8383
8384 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
8385 and bright_bg if noninteractive is non-zero.
8386
fb098a4b
CY
83872008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8388
8389 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
8390 x_draw_glyph_string_background.
8391
8392 * w32term.c (x_draw_glyph_string): Likewise.
8393
ce952b6e
CY
83942008-11-15 Chong Yidong <cyd@stupidchicken.com>
8395
8396 * xterm.c (x_draw_glyph_string): Stop drawing the background of
8397 the next glyph string once past the overhang width.
8398
8399 * nsterm.m (ns_draw_glyph_string): Likewise.
8400
8401 * w32term.c (x_draw_glyph_string): Likewise.
8402
26ea7079
CY
84032008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
8404
8405 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
8406 double file close.
8407
1c33c906
MR
84082008-11-14 Martin Rudalics <rudalics@gmx.at>
8409
8410 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
8411 dedicated status of window before attempting to display another
8412 buffer in it.
8413
8fc29035
JB
84142008-11-14 Juanma Barranquero <lekktu@gmail.com>
8415
8416 * msdos.c (Fmsdos_long_file_names):
8417 (syms_of_msdos) <dos-unsupported-char-glyph>:
8418 * dosfns.c (Fint86): Fix typos in docstrings.
8419
55fb4286
EZ
84202008-11-14 Eli Zaretskii <eliz@gnu.org>
8421
8422 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
8423
3fda0315
KY
84242008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
8425
8426 * puresize.h (BASE_PURESIZE): Increase to 1260000.
8427
7e849c17
CY
84282008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
8429
8430 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
8431
8432 * frame.h: Negative alpha means "don't touch".
8433
8434 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
8435
8436 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
8437
b9fd67bd
DN
84382008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
8439
8440 * hftctl.c:
8441 * chpdef.h:
8442 * acldef.h: Remove files used only for systems no longer supported.
8443
8444 * Makefile.in: Fix .o alphabetical ordering.
8445 (hftctl.o): Remove dependency, file removed.
8446 (keymap.o, print.o): Depend on charset.h.
8447
d5998e03
KH
84482008-11-10 Kenichi Handa <handa@m17n.org>
8449
2ae37cf0 8450 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 8451
be70e183
CY
84522008-11-08 Chong Yidong <cyd@stupidchicken.com>
8453
8454 * dired.c (file_name_completion): If completion_ignore_case is
8455 enabled, ignore case when checking completion-regexp-list.
8456
7cf94eac
EZ
84572008-11-08 Eli Zaretskii <eliz@gnu.org>
8458
8459 * vm-limit.c (get_lim_data): Fix last change.
8460
ee107a89
KH
84612008-11-08 Kenichi Handa <handa@m17n.org>
8462
8463 * character.c (Fget_byte): New function.
8464 (syms_of_character): Defsubr Fget_byte.
8465
5fd15622
CY
84662008-11-07 Chong Yidong <cyd@stupidchicken.com>
8467
8468 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
8469 cursor position is valid after scrolling.
8470
13d62fad
JB
84712008-11-06 Juanma Barranquero <lekktu@gmail.com>
8472
8473 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
8474
a1dd2936
GM
84752008-11-06 Glenn Morris <rgm@gnu.org>
8476
8477 * xterm.c (handle_one_xevent): Don't let popup menus cause
8478 mouse-autoselect-window related window switching. (Bug#1261)
8479
860cd236
CY
84802008-11-04 David Smith <davidsmith@acm.org> (tiny change)
8481
8482 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
8483
653a3150
AS
84842008-11-04 Andreas Schwab <schwab@suse.de>
8485
8486 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
8487
870f5cac
CY
84882008-11-03 Chong Yidong <cyd@stupidchicken.com>
8489
8490 * xfns.c (Fx_wm_set_size_hint): New function.
8491
1e02f3cb
MR
84922008-11-03 Martin Rudalics <rudalics@gmx.at>
8493
8494 * textprop.c (Fprevious_single_char_property_change): Return 0
8495 when there's no change in a string. (Bug#1301)
8496
e630dfc6
MR
84972008-11-02 Martin Rudalics <rudalics@gmx.at>
8498
8499 * frame.c (do_switch_frame): New argument NORECORD passed to
8500 Fselect_window.
8501 (Fselect_frame): New argument NORECORD passed to
8502 do_switch_frame.
8503 (Fset_frame_selected_window): New argument NORECORD passed to
8504 Fselect_frame.
8505 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
8506 in call of do_switch_frame.
8507 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
8508 Handle NORECORD argument in call of Fselect_frame.
8509 * lisp.h (do_switch_frame, Fselect_frame)
8510 (Fset_frame_selected_window): Adjust declarations.
8511 * window.c (select_frame_norecord): New function.
8512 (run_window_configuration_change_hook): Use it and call
8513 Fselect_frame with NORECORD set.
8514 (Fselect_window): Pass NORECORD to Fselect_frame.
8515 (Fset_window_configuration): Handle NORECORD argument in call of
8516 do_switch_frame.
8517 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
8518 Fset_frame_selected_window.
8519 * keyboard.c (command_loop_1): Handle NORECORD in call of
8520 Fselect_frame (currently ifdefd).
8521
9020b223
GM
85222008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
8523
8524 * emacs.c (USAGE2): Untabify.
8525
793ffee8
SM
85262008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
8527
8528 * composite.c (fill_gstring_header): Fix copy/paste typo.
8529
ab6d1131
MR
85302008-10-31 Martin Rudalics <rudalics@gmx.at>
8531
8532 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
8533 (Fother_window): Rename argument and rewrite doc-string.
8534 (select_window_norecord): Fix return value. (Bug#1276)
8535
601a9cf1
JB
85362008-10-30 Juanma Barranquero <lekktu@gmail.com>
8537
8538 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
8539 new frames overriding foreground for tooltips. Based on similar patch
8540 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
8541
813b0652
CY
85422008-10-29 Chong Yidong <cyd@stupidchicken.com>
8543
8544 * emacs.c (Fdaemon_initialized): Initialize nfd.
8545
4414f58f
MR
85462008-10-29 Martin Rudalics <rudalics@gmx.at>
8547
8548 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
8549 (Fwindow_text_height): Clarify doc-strings.
8550 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
8551 doc-string of window-scroll-functions.
8552
ecdcaa09
RS
85532008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
8554
8555 * category.c (syms_of_category): Fix typo in docstring.
8556
23fe745a
JB
85572008-10-28 Juanma Barranquero <lekktu@gmail.com>
8558
8559 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
8560 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
8561 Fix typos in docstrings.
8562
ff808935
DN
85632008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
8564
8565 * emacs.c (daemon_pipe): Make non-static.
8566 (IS_DAEMON): Move definition ...
8567 * lisp.h (IS_DAEMON): ... here.
8568 (daemon_pipe): Declare.
8569 (is_daemon): Remove.
8570 * dispnew.c (init_display): Use IS_DAEMON.
8571
fc012771
SM
85722008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
8573
8574 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
8575 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
8576
8577 * emacs.c (is_daemon): Remove.
8578 (main): Don't set is_daemon.
8579 (IS_DAEMON): New macro.
8580 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 8581 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
8582 parent exits.
8583 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
8584
d8bdbe6f
CY
85852008-10-27 Chong Yidong <cyd@stupidchicken.com>
8586
d1a072bf
CY
8587 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
8588 over-sized glyph, draw it with the default glyph width.
8589
e2e325aa
CY
8590 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
8591 glyph, draw it with the default glyph width.
8592
8593 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
8594 glyph, draw it with the default glyph width.
8595
d8bdbe6f
CY
8596 * xdisp.c (try_scrolling): When computing the distance from the
8597 scroll margin to PT, try moving some distance past the window
8598 bottom before giving up.
8599
7bfac547
MR
86002008-10-27 Martin Rudalics <rudalics@gmx.at>
8601
8602 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
8603 (Fset_window_buffer): Explain in doc-string that a window can be
8604 "strongly" dedicated to its buffer.
8605
4ff029f6
DN
86062008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
8607
8608 * emacs.c (daemon_name): New variable.
8609 (main): Deal with --daemon=SERVER_NAME.
8610 (Fdaemonp): Return a name if one was passed to --daemon.
8611
5790ef40
DN
86122008-10-26 Romain Francoise <romain@orebokech.com>
8613
f9bd0df9 8614 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
8615 (main): Create a pipe before forking, make the parent exit only after
8616 the child has closed its end of the pipe. Move closing the
8617 descriptors ...
8618 (Fdaemon_initialized): ... here. New function.
8619
f5385255
SM
86202008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
8621
4d632321
SM
8622 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
8623 the previous unoptimized table.
8624
f5385255
SM
8625 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
8626 the distinction between non-nil and non-t value of `dedicated'.
8627
6c56a0f3
CY
86282008-10-25 Chong Yidong <cyd@stupidchicken.com>
8629
8630 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 8631 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 8632
fec89261
MR
86332008-10-25 Martin Rudalics <rudalics@gmx.at>
8634
8635 * window.c (Fget_buffer_window, Fdelete_windows_on)
8636 (Freplace_buffer_in_windows): Make buffer argument optional and
8637 rename to buffer_or_name.
8638
34fcddd0
CY
86392008-10-24 Chong Yidong <cyd@stupidchicken.com>
8640
f5385255
SM
8641 * xdisp.c (handle_single_display_spec, handle_display_prop):
8642 Undo 2005-05-16 change.
34fcddd0
CY
8643 (handle_stop): Pop iterator if it's loaded with an empty string.
8644 (get_overlay_strings_1): Don't save iterator if it's loaded with
8645 an empty string (bug#1201).
8646
064766f2
KH
86472008-10-24 Kenichi Handa <handa@m17n.org>
8648
8649 * ftfont.c (ftfont_otf_features): Fix previous change.
8650 (ftfont_otf_capability): Check FeatureList.FeatureCount before
8651 calling ftfont_otf_features.
8652
f9bd0df9 86532008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
8654
8655 * font.c (font_match_p): Fix for the case that a vector of
8656 characters is in script-representative-chars.
8657
1dae9197
MA
86582008-10-24 Michael Albinus <michael.albinus@gmx.de>
8659
8660 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 8661 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
8662 (xd_read_queued_messages): Catch Qdbus_error from the macros.
8663 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 8664 macro. (Bug#1186)
1dae9197 8665
f9bd0df9 86662008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
8667
8668 * s/sol2-10.h: New file.
8669
878a4584
JB
86702008-10-23 Juanma Barranquero <lekktu@gmail.com>
8671
8672 * xdisp.c (fill_glyph_string): Fix typo in source (though the
8673 poor beast has survived 9+ years and the jump from xterm.c!).
8674
cd265ca6
MR
86752008-10-23 Martin Rudalics <rudalics@gmx.at>
8676
8677 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
8678 Reword doc-string.
f5385255 8679 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 8680
472a4dc9
JB
86812008-10-23 Juanma Barranquero <lekktu@gmail.com>
8682
8683 * character.c (syms_of_character) <script-representative-chars>:
8684 <unicode-category-table>: Doc fixes.
8685
159bd5a2
NF
86862008-10-23 Noah Friedman <friedman@splode.com>
8687
8688 * coding.c (make_conversion_work_buffer): Check that
8689 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
8690 Fget_buffer_create.
8691
49f9c344
KH
86922008-10-23 Kenichi Handa <handa@m17n.org>
8693
8694 * font.c (font_add_log): Check the values of extra properties.
8695
12bb3111
MR
86962008-10-22 Martin Rudalics <rudalics@gmx.at>
8697
8698 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
8699 Reword doc-string.
8700 (Fset_window_parameter): Use NILP.
8701 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 8702 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 8703
bbeb4e99
JB
87042008-10-22 Juanma Barranquero <lekktu@gmail.com>
8705
8706 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
8707
87082008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
8709
8710 * nsfns.m (ns_appkit_version): New function.
8711 (x-server-version): Use it.
8712 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
8713 (x-server-vendor): Don't check_ns().
8714
8715 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
8716
a9b555d3
JB
87172008-10-22 Juanma Barranquero <lekktu@gmail.com>
8718
8719 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
8720 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
8721
4626499f
KH
87222008-10-22 Kenichi Handa <handa@m17n.org>
8723
e3681952
KH
8724 * syntax.c (scan_words): Call word_boundary_p instead of comparing
8725 scripts.
8726
4626499f
KH
8727 * category.c (word_boundary_p): Check scripts instead of charset.
8728 Handle nil value in word-separating-categories and
8729 word-combining-categories.
8730 (syms_of_category): Fix docstrings of word-separating-categories
8731 and word-combining-categories.
8732
1560f91a
EZ
87332008-10-21 Eli Zaretskii <eliz@gnu.org>
8734
8735 * coding.c (Fencode_coding_region, Fdecode_coding_region)
8736 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
8737
f4668441
MR
87382008-10-21 Martin Rudalics <rudalics@gmx.at>
8739
8740 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
8741 Rename arg "buffer" to "buffer_or_name".
8742 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
8743 it optional.
8744 (no_switch_window): Remove since the return value is not used.
a9b555d3 8745 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
8746 Consider window as dedicated when Fwindow_dedicated_p returns a
8747 non-nil value.
8748 * lisp.h: Remove prototype for no_switch_window.
8749
fd75ddb2
JD
87502008-10-21 Jan Djärv <jan.h.d@swipnet.se>
8751
8752 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 8753 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 8754
07295713
KH
87552008-10-21 Kenichi Handa <handa@m17n.org>
8756
8757 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
8758 check Vlatin_extra_code_table.
8759
712adc82
EZ
87602008-10-20 Eli Zaretskii <eliz@gnu.org>
8761
8762 * fileio.c (Fset_file_modes): Doc fix.
8763
f549eb0b
MA
87642008-10-19 Michael Albinus <michael.albinus@gmx.de>
8765
8766 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
8767 in arrays.
8768
aac0c6e3
MR
87692008-10-19 Martin Rudalics <rudalics@gmx.at>
8770
8771 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
8772 Mention kill-buffer in doc-string.
8773 (Fset_window_buffer): Reinsert tem check removed in last commit.
8774 (Fenlarge_window, Fshrink_window): Have argument names and
8775 doc-string follow Elisp manual more closely.
8776
87772008-10-18 Eli Zaretskii <eliz@gnu.org>
8778
8779 * fileio.c (Fset_file_modes): Doc fix.
8780
87812008-10-18 Martin Rudalics <rudalics@gmx.at>
8782
8783 * window.c (Fwindow_width, Fset_window_start)
8784 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
8785 (Fdelete_windows_on, Freplace_buffer_in_windows):
8786 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
8787 (Fwindow_dedicated_p): Make window argument optional.
8788 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
8789 (Fset_window_buffer): Respect any non-nil dedicated value for
8790 window. Rename "buffer" argument to "buffer_or_name".
8791
87922008-10-18 Ulrich Mueller <ulm@gentoo.org>
8793
8794 * m/sh3.h: New file, machine description for SuperH.
8795
87962008-10-17 Martin Rudalics <rudalics@gmx.at>
8797
8798 * window.c (Fsplit_window): Rename arg horflag to horizontal.
8799
88002008-10-17 Kenichi Handa <handa@m17n.org>
8801
8802 * ftfont.c (ftfont_otf_features): Fix indexing
8803 gsub_gpos->FeatureList.Feature. Check the validity of indices.
8804
88052008-10-16 Magnus Henoch <mange@freemail.hu>
8806
8807 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
8808 (Fdbus_call_method_asynchronously): Ditto.
8809 This change makes C-h f display the argument list.
8810
88112008-10-16 Chong Yidong <cyd@stupidchicken.com>
8812
8813 * fileio.c (Fexpand_file_name): Doc fix.
8814
8815 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
8816 of :foreground and :background equivalent to unspecified (20.x
8817 compatibility).
8818
88192008-10-15 Eli Zaretskii <eliz@gnu.org>
8820
8821 * buffer.c (syms_of_buffer): Doc fix.
8822
88232008-10-14 Kenichi Handa <handa@m17n.org>
8824
8825 * font.c (font_clear_prop): When clearing font width, clear the
8826 average width field too.
8827
88282008-10-12 Andreas Schwab <schwab@suse.de>
8829
8830 * ftfont.c (ftfont_shape_by_flt): Make static.
8831 * ftfont.h (ftfont_shape_by_flt): Don't declare.
8832
8833 * font.c: Don't include <m17n-flt.h>.
8834
88352008-10-10 Eli Zaretskii <eliz@gnu.org>
8836
8837 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
8838
88392008-10-09 Eli Zaretskii <eliz@gnu.org>
8840
8841 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
8842 away code.
8843
88442008-10-09 Chong Yidong <cyd@stupidchicken.com>
8845
8846 * dispnew.c (update_text_area): Avoid looping due to large glyph
8847 overhangs (bug#1070).
8848
88492008-10-09 Kenichi Handa <handa@m17n.org>
8850
8851 * fontset.c (face_for_char): If face->fontset is negative, just
8852 return ascii_face.
8853
f5385255
SM
8854 * font.c (font_delete_unmatched): Fix previous change.
8855 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
8856
88572008-10-09 Martin Rudalics <rudalics@gmx.at>
8858
8859 * frame.c (Fraise_frame): On text-only terminals select frame in
8860 order to make it visible. (Bug#1061)
8861
88622008-10-08 Chong Yidong <cyd@stupidchicken.com>
8863
8864 * fontset.c (fontset_find_font): Check frame validity.
8865
88662008-10-07 Chong Yidong <cyd@stupidchicken.com>
8867
a9b555d3 8868 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
8869 (xg_display_close): Allow Emacs to close all displays (bug#985).
8870
88712008-10-06 Andreas Schwab <schwab@suse.de>
8872
f5385255 8873 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
8874
88752008-10-06 Chong Yidong <cyd@stupidchicken.com>
8876
f5385255 8877 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 8878
a9b555d3 8879 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
8880
8881 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
8882 during initialization.
8883
88842008-10-04 Eli Zaretskii <eliz@gnu.org>
8885
8886 * xdisp.c (redisplay_internal): If frame switched, redisplay the
8887 whole thing on MSDOS frames as well as on a TTY.
8888
8889 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
8890 well as for TTY.
8891 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
8892 well as on a TTY.
8893
8894 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
8895 as well as for TTY.
8896
8897 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
8898
8899 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
8900 MSDOS frames as well.
8901
89022008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8903
8904 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
8905 correct arguments.
b71ac3dd 8906 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
8907
89082008-10-03 Glenn Morris <rgm@gnu.org>
8909
8910 * emacs.c (USAGE1): Add --daemon.
8911
89122008-10-02 Eli Zaretskii <eliz@gnu.org>
8913
8914 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
8915 100, so it's in percents as advertised.
8916
89172008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8918
8919 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
8920 (ns_output.current_cursor, ns_output.desired_cursor)
8921 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
8922 (FRAME_NEW_CURSOR_COLOR): Remove.
8923
8924 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 8925 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
8926 enumeration (HOLLOW_BOX_CURSOR, etc.).
8927
8928 * nsterm.m (ns_frame_rehighlight): Remove commented code.
8929 (draw_window_cursor): Simplify code.
f5385255
SM
8930 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
8931 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 8932 updates manually.
a9b555d3
JB
8933 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
8934 Use core Emacs cursor types.
aac0c6e3 8935
b8ff72fa 8936 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
8937
89382008-10-02 Martin Rudalics <rudalics@gmx.at>
8939
8940 * process.c (Faccept_process_output): Fix doc-string.
8941
89422008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
8943
8944 * gmalloc.c (__sbrk): Also define for uClibc.
8945
8946 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
8947 for uClibc.
8948
89492008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8950
8951 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
8952 styles.
8953 (nsfont_open): Reenable the cache.
8954
89552008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8956
8957 * font.c (font_matching_entity): Reflect ATTRS in font selection.
8958 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
8959
89602008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
8961
8962 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
8963 a suspended terminal.
8964
89652008-09-30 Michael Albinus <michael.albinus@gmx.de>
8966
8967 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
8968
89692008-09-30 Eli Zaretskii <eliz@gnu.org>
8970
8971 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
8972
89732008-09-30 Chong Yidong <cyd@stupidchicken.com>
8974
8975 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
8976 in a continued line coincides with a line beginning.
8977
89782008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8979
8980 * nsfont.m (nsfont_trait_distance): Fix bug.
8981 (nsfont_list): Return a list rather than a vector (syncs with Handa
8982 changes of 2008-05-14).
8983 (nsfont_open): Improve logging.
8984
89852008-09-29 Andreas Schwab <schwab@suse.de>
8986
8987 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
8988
89892008-09-28 Martin Rudalics <rudalics@gmx.at>
8990
8991 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
8992 name as char-resolve-modifiers.
8993 Reported by: Markus Triska <markus.triska@gmx.at>
8994
89952008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
8996
8997 * dispnew.c (init_display): Return earlier when running as a daemon.
8998
89992008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9000
9001 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
9002
90032008-09-27 Eli Zaretskii <eliz@gnu.org>
9004
9005 * composite.c (Fcomposition_get_gstring)
9006 (Fcompose_region_internal, Fcompose_string_internal)
9007 (Ffind_composition_internal): Doc fix.
9008 (syms_of_composite) <compose-chars-after-function>: Doc fix.
9009 (syms_of_composite) <auto-composition-function>: Doc fix.
9010 (syms_of_composite) <composition-function-table>: Doc fix.
9011
90122008-09-25 Chong Yidong <cyd@stupidchicken.com>
9013
9014 * search.c (wordify): New argument for lax word-ends.
9015 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
9016
90172008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
9018
9019 * lisp.h (is_daemon): Declare.
9020 * dispnew.c (init_display): Do not try to initialize the terminal
9021 when running as a daemon.
9022
90232008-09-22 Chong Yidong <cyd@stupidchicken.com>
9024
9025 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
9026 x_display_pixel_height.
9027
90282008-09-22 Martin Rudalics <rudalics@gmx.at>
9029
9030 * undo.c (record_point): Don't call Fundo_boundary for first
9031 change. (Bug#731)
9032
90332008-09-22 Juanma Barranquero <lekktu@gmail.com>
9034
9035 * emacs.c (Fdaemonp): Doc fix.
9036
90372008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
9038
9039 * emacs.c (main): Place #ifdef in the proper place.
9040
90412008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
9042
9043 * emacs.c (standard_args): Add --daemon.
9044 (main): Disconnect from the terminal when --daemon is passed.
9045 (is_daemon): New variable.
9046 (Fdaemonp): New function.
9047 (syms_of_emacs): Defsubr it.
9048
90492008-09-20 Chong Yidong <cyd@stupidchicken.com>
9050
9051 * xdisp.c (get_next_display_element): Handle string display
9052 correctly when checking for the end of a box run.
9053
90542008-09-20 Glenn Morris <rgm@gnu.org>
9055
9056 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
9057 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
9058 (Frename_file): Avoid copying to trash if a rename involves
9059 a delete. (Bug#964).
9060
90612008-09-20 Eli Zaretskii <eliz@gnu.org>
9062
9063 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
9064 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
9065 frames as well as termcap frames.
9066 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
9067 get_named_tty.
9068
90692008-09-19 Eli Zaretskii <eliz@gnu.org>
9070
9071 * process.c (procfs_system_process_attributes): Fix cmdline in
9072 case /proc/PID/cmdline is empty.
9073
9074 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
9075 x_display_pixel_height.
9076
90772008-09-19 Juanma Barranquero <lekktu@gmail.com>
9078
9079 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
9080
9081 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
9082 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
9083
90842008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
9085
9086 * dispextern.h (struct it): Move line_wrap away from the middle of
9087 bitfields. Move voffset in struct iterator_stack_entry after the
9088 bitfields. Move tab_width near after another short.
9089
90902008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
9091
9092 * frame.h (struct frame): Move alpha from the middle of bitfields.
9093
9094 * window.h (struct window): Move frozen_window_start_p after the
9095 rest of the bitfields to reduce padding.
9096
90972008-09-18 Chong Yidong <cyd@stupidchicken.com>
9098
9099 * xterm.h (x_display_info): Remove `height' and `width' members.
9100
9101 * nsterm.h (ns_display_info): Remove `height' and `width' members.
9102
9103 * w32term.h (w32_display_info): Remove `height', `width',
9104 `height_in', and `width_in' members.
9105
b8ff72fa
SM
9106 * xterm.c (x_display_pixel_height, x_display_pixel_width):
9107 New functions.
aac0c6e3
MR
9108 (x_calc_absolute_position): Use them.
9109 (x_term_init): Omit removed `height' and `width' members.
9110
b8ff72fa
SM
9111 * w32term.c (x_display_pixel_height, x_display_pixel_width):
9112 New functions.
aac0c6e3
MR
9113 (w32_read_socket, x_calc_absolute_position): Use them.
9114 (w32_initialize_display_info, w32_term_init): Omit removed members
9115 of w32_display_info.
9116
b8ff72fa
SM
9117 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
9118 New functions.
9119 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 9120
b8ff72fa
SM
9121 * xterm.c (x_display_pixel_height, x_display_pixel_width):
9122 New functions.
aac0c6e3
MR
9123 (x_calc_absolute_position): Use them.
9124 (x_term_init): Omit removed `height' and `width' members.
9125
9126 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
9127 (compute_tip_xy):
9128 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
9129 * xmenu.c (menu_position_func): Use x_display_pixel_height and
9130 x_display_pixel_width.
9131
91322008-09-18 Kenichi Handa <handa@m17n.org>
9133
9134 * composite.c (fill_gstring_header): Don't check FROM and TO here.
9135 (composition_compute_stop_pos): Fix handling of static composition.
9136 (Fcomposition_get_gstring): Check FROM and TO at first.
9137
91382008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
9139
46e722a9 9140 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
9141 mixup (YAILOM).
9142
91432008-09-17 Chong Yidong <cyd@stupidchicken.com>
9144
9145 * indent.c (Fvertical_motion): Use position reported by iterator
9146 instead of PT for determining screen motion (bug#943).
9147
91482008-09-17 Romain Francoise <romain@orebokech.com>
9149
9150 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
9151
91522008-09-17 Kenichi Handa <handa@m17n.org>
9153
9154 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
9155
9156 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
9157 if necessary.
9158
91592008-09-16 Kenichi Handa <handa@m17n.org>
9160
9161 * coding.c (make_conversion_work_buffer): Avoid calling
9162 Fget_buffer_create if it is not necessary.
9163
91642008-09-15 Martin Rudalics <rudalics@gmx.at>
9165
9166 * window.c (Fselect_window): Don't update window_select_count and
9167 use_time when norecord is not nil.
9168
91692008-09-14 Kenichi Handa <handa@m17n.org>
9170
9171 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
9172 specpdl_ptr.
9173
91742008-09-12 Kenichi Handa <handa@m17n.org>
9175
9176 * indent.c (scan_for_column): Don't handle automatic composition
9177 if the current buffer is not associated with a window.
9178
9179 * composite.c (composition_reseat_it): If the current buffer is
9180 not associated with a window, ignore the automatic composition.
9181 (find_automatic_composition): Likewise.
9182
91832008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
9184
9185 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
9186 (Fgpm_mouse_stop): Use it.
9187 * termhooks.h (close_gpm): Declare.
9188 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
9189 connection if Gpm_GetEvent fails.
9190
9191 * window.c (set_window_buffer): Always preserve current-buffer.
9192
91932008-09-12 Glenn Morris <rgm@gnu.org>
9194
9195 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
9196
91972008-09-11 Glenn Morris <rgm@gnu.org>
9198
9199 * charset.c (charset-map-path): Doc fix.
9200
92012008-09-10 Kenichi Handa <handa@m17n.org>
9202
9203 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
9204
9205 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
9206 compose a grapheme cluster with the preceding base glyph.
9207
9208 * composite.c (composition_compute_stop_pos): Fix previous change.
9209 Reset cmp_it->id to -1 at first.
9210
92112008-09-10 Glenn Morris <rgm@gnu.org>
9212
9213 * Makefile.in (character.o, chartab.o): Fix config.h typo.
9214
92152008-09-09 Chong Yidong <cyd@stupidchicken.com>
9216
9217 * keyboard.c (read_key_sequence): Reapply translation maps when
9218 switching keyboards.
9219
92202008-09-09 Kenichi Handa <handa@m17n.org>
9221
9222 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
9223 characters.
9224
9225 * composite.c (FORWARD_CHAR): Fix calculation
9226 of (POSITION).pos_byte.
9227 (composition_compute_stop_pos): Limit the search of composition to
9228 at most 500 characters ahead. If we reach the limit or find a
9229 newline, set cmp_it->ch to -2 and return 0.
9230 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
9231
92322008-09-08 Kenichi Handa <handa@m17n.org>
9233
9234 * indent.c (Fvertical_motion): Be sure to set
9235 it_overshoot_expected if it.cmp_it.id is non-negative.
9236
92372008-09-07 Andreas Schwab <schwab@suse.de>
9238
9239 * callproc.c (Fcall_process): Don't hold references to string data
9240 across garbage collection. Move initialisation of new_argv down
9241 to avoid compiler bug.
9242
92432008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
9244
9245 * process.c (Fsystem_process_attributes): Doc fix.
9246
92472008-09-07 Chong Yidong <cyd@stupidchicken.com>
9248
9249 * callproc.c (Fcall_process): Canonicalize current directory name.
9250
9251 * xdisp.c (move_it_to): When moving by vpos, ensure that the
9252 iterator advances to the next line if the current line ends in a
9253 continued tab.
9254
92552008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
9256
9257 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
9258 member to point to cmp_from.
9259
9260 * xdisp.c: Doc fix for references to gidx data member.
9261
92622008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
9263
9264 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
9265
92662008-09-07 Kenichi Handa <handa@m17n.org>
9267
9268 * composite.c (FORWARD_CHAR): Check STOP after
9269 incrementing (POSITION).pos.
9270
92712008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
9272
9273 * process.c (Fsystem_process_attributes): Doc fix.
9274
92752008-09-06 Chong Yidong <cyd@stupidchicken.com>
9276
9277 * keyboard.c (Ftop_level): Doc fix.
9278
92792008-09-06 Eli Zaretskii <eliz@gnu.org>
9280
9281 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
9282 minibuffer, don't let lower part of menu invade the echo area.
9283
9284 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
9285 "char *q" to access menu text and advance through it. Revert the
9286 change that displayed ">" instead of ASCII character 0x10.
9287
92882008-09-05 Eli Zaretskii <eliz@gnu.org>
9289
9290 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
9291 toggle boxes and radio buttons on MS-DOS as well.
9292
92932008-09-05 Kenichi Handa <handa@m17n.org>
9294
9295 * composite.c (autocmp_chars): Check lookback count.
9296 (composition_compute_stop_pos): Set cmp_it->lookback.
9297 (composition_reseat_it): Check lookback count.
9298 (struct position_record): New struct.
9299 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
9300 (find_automatic_composition): New function.
9301 (composition_adjust_point): Use find_automatic_composition.
9302
9303 * dispextern.h (struct composition_it): New member lookback.
9304
93052008-09-02 Chong Yidong <cyd@stupidchicken.com>
9306
9307 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
9308 if moving by a single line.
9309
93102008-09-02 Andreas Schwab <schwab@suse.de>
9311
9312 * xterm.c (x_delete_display): Fix merge error.
9313
9314 * fileio.c (Fexpand_file_name): Remove unused variables.
9315
93162008-09-02 Eli Zaretskii <eliz@gnu.org>
9317
9318 * fileio.c (Fexpand_file_name): Copy argument `name' into local
9319 storage on all platforms, not just on DOS_NT.
9320
93212008-09-02 Jason Rumney <jasonr@gnu.org>
9322
b8ff72fa
SM
9323 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
9324 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
9325
93262008-09-01 Chong Yidong <cyd@stupidchicken.com>
9327
9328 * xfaces.c (Finternal_set_alternative_font_family_alist)
9329 (Finternal_set_alternative_font_registry_alist): Properly copy
9330 entire alist structure.
9331
93322008-09-01 Kenichi Handa <handa@m17n.org>
9333
d66c0241 9334 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 9335 representative chars of the script is a vector.
d66c0241
JB
9336 (ftfont_list): Handle the case where the representative chars of
9337 the script is a vector.
aac0c6e3
MR
9338
9339 * character.c (syms_of_character): Docstring of
9340 script-representative-chars fixed.
9341
93422008-08-31 Eli Zaretskii <eliz@gnu.org>
9343
9344 * msdos.c (BUILD_CHAR_GLYPH): New macro.
9345 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
9346 the menu. Allocate larger buffer for `text', to account for
9347 possible ^C characters.
9348
93492008-08-31 Martin Rudalics <rudalics@gmx.at>
9350
9351 * xdisp.c (prepare_menu_bars): Don't call
9352 Vwindow_size_change_functions with arg Qt.
9353
93542008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
9355
9356 * font.h (font_range):
9357 * fileio.c (report_file_error):
46e722a9
SM
9358 * composite.c (composition_update_it): Yet another int/Lisp_Object
9359 mixup (YAILOM).
aac0c6e3
MR
9360
93612008-08-30 Glenn Morris <rgm@gnu.org>
9362
9363 * data.c (Fmake_variable_frame_local): Doc fix.
9364
9365 * frame.c (Fmodify_frame_parameters): Doc fix.
9366
93672008-08-30 Eli Zaretskii <eliz@gnu.org>
9368
9369 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
9370 needed by GetTokenInformation.
9371 (w32_system_process_attributes): Check return values of all system
9372 APIs.
9373
9374 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
9375 only when the state changes.
9376 (IT_update_begin, IT_update_end): Add termscript trace.
9377
9378 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
9379 clipboard is unavailable. Set dst to NULL if it doesn't point to
9380 malloc'ed data.
9381 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
9382 passing random values to xfree.
9383
9384 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 9385 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
9386
93872008-08-29 Jason Rumney <jasonr@gnu.org>
9388
9389 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
9390
93912008-08-29 Eli Zaretskii <eliz@gnu.org>
9392
9393 * composite.c (fill_gstring_body): Avoid compiler warnings.
9394
9395 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
9396 LGLYPH_SET_CODE to avoid compiler warnings.
9397
2ae37cf0 9398 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
9399
9400 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
9401
9402 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
9403 LGLYPH_SET_CODE.
9404
94052008-08-29 Kenichi Handa <handa@m17n.org>
9406
9407 * fileio.c (report_file_error): Don't downcase the first character
9408 of errstring if it is still unibyte.
9409
94102008-08-29 Kenichi Handa <handa@m17n.org>
9411
9412 These changes are to re-implement the automatic composition so
9413 that it doesn't use text properties.
9414
9415 * Makefile.in (ftfont.o): Depend on composite.h.
9416 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
9417
9418 * character.h (Vunicode_category_table): Extern it.
9419
9420 * character.c (Vunicode_category_table): New variable.
9421 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
9422
9423 * chartab.c (optimize_sub_char_table): Perform more greedy
9424 optimization.
9425
b8ff72fa
SM
9426 * composite.h (enum composition_method):
9427 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
9428 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
9429 (Vcomposition_function_table): Extern it.
9430 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
9431 (composition_gstring_put_cache, composition_gstring_from_id)
9432 (composition_gstring_p, composition_gstring_width)
9433 (composition_compute_stop_pos, composition_reseat_it)
9434 (composition_update_it, composition_adjust_point): Extern them.
9435 (Fcomposition_get_gstring): EXFUN it.
9436
d66c0241 9437 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
9438 (Vcomposition_function_table)
9439 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
9440 (gstring_hash_table, gstring_work, gstring_work_headers):
9441 New variables.
aac0c6e3
MR
9442 (gstring_lookup_cache, composition_gstring_put_cache)
9443 (composition_gstring_from_id, composition_gstring_p)
9444 (composition_gstring_width, fill_gstring_header)
9445 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
9446 (composition_reseat_it, composition_update_it)
b8ff72fa 9447 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
9448 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
9449 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 9450 Defsubr composition_get_gstring.
aac0c6e3
MR
9451
9452 * dispextern.h (struct glyph): New union u.cmp. Delete the member
9453 cmp_id.
9454 (struct glyph_string): Delete the member gidx. New members
9455 cmp_id, cmp_from, and cmp_to.
9456 (enum it_method): Delete GET_FROM_COMPOSITION.
9457 (struct composition_it): New struct.
9458 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
9459 Delete c, len, cmp_id, cmp_len in u.comp.
9460
9461 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 9462 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 9463 (enum lglyph_indices): Likewise.
b8ff72fa 9464 (font_range): Adjust extern.
aac0c6e3
MR
9465 (font_fill_lglyph_metrics): Extern it.
9466
9467 * font.c (QCf): New variable.
9468 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
9469 (font_prepare_composition): Delete this function.
9470 (font_range): Type and arguments changed.
9471 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
9472 (font_fill_lglyph_metrics): New function.
b8ff72fa 9473 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 9474 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
9475 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
9476 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
9477
9478 * fontset.h (font_for_char): Extern it.
9479
9480 * fontset.c (font_for_char): New function.
9481
9482 * ftfont.c: Include composite.h.
9483 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 9484 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
9485
9486 * indent.c: Include composite.h and dispextern.h.
9487 (check_composition): Delete this function.
9488 (scan_for_column): Handle composition by
9489 composition_compute_stop_pos, composition_reseat_it, and
9490 composition_update_it.
9491 (compute_motion): Likewise.
9492 (Fvertical_motion): Fix checking of composition.
9493
9494 * keyboard.c (adjust_point_for_property): Check composition by
9495 composition_adjust_point.
9496
b8ff72fa 9497 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
9498 struct glyph_string.
9499
b8ff72fa
SM
9500 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
9501 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
9502 struct glyph.
9503 (produce_composite_glyph): Likewise.
9504
b8ff72fa
SM
9505 * w32term.c (x_draw_composite_glyph_string_foreground):
9506 Adjust for the change of struct glyph_string.
aac0c6e3
MR
9507 (x_draw_glyph_string): Likewise.
9508
9509 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
9510 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
9511
9512 * xdisp.c: Include font.h.
9513 (it_props): Delete the entry for Qauto_composed.
9514 (init_iterator): Initialize it->cmp_it.id to -1.
9515 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 9516 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
9517 (handle_auto_composed_prop): Delete it.
9518 (handle_composition_prop): Handle only static composition.
9519 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
9520 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 9521 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
9522 (pop_it): Likewise.
9523 (get_next_element): Delete next_element_from_composition.
9524 (CHAR_COMPOSED_P): New macro.
9525 (get_next_display_element): For automatic composition, get a face
9526 from the font in the glyph-string.
9527 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 9528 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
9529 (next_element_from_string): Check if the character at the current
9530 position is composed by CHAR_COMPOSED_P.
9531 (next_element_from_buffer): Likewise.
d66c0241
JB
9532 (next_element_from_composition): Adjust for the change of struct it.
9533 Update it->cmp_it.
b8ff72fa
SM
9534 (dump_glyph): Adjust for the change of struct glyph.
9535 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
9536 it and struct glyph. Don't handle automatic composition here.
9537 (fill_gstring_glyph_string): New function.
9538 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 9539 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
9540 (BUILD_GSTRING_GLYPH_STRING): New macro.
9541 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
9542 automatic composition.
b8ff72fa 9543 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 9544 struct glyph.
b8ff72fa 9545 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 9546
b8ff72fa 9547 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
9548 the change of struct glyph_string.
9549 (x_draw_glyph_string): Likewise.
9550
95512008-08-29 Glenn Morris <rgm@gnu.org>
9552
9553 * buffer.c (word-wrap): Doc fix.
9554 * xdisp.c (truncate-partial-width-windows): Doc fix.
9555 Increase default to 50.
9556
95572008-08-29 Chong Yidong <cyd@stupidchicken.com>
9558
9559 * xdisp.c (update_tool_bar_unwind): New function.
9560 (update_tool_bar): Temporarily set selected frame before building
9561 tool-bar items.
9562
95632008-08-28 Michael Albinus <michael.albinus@gmx.de>
9564
9565 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
9566 snprintf, respectively.
9567 (xd_append_arg): Convert strings with Fstring_make_unibyte.
9568
95692008-08-28 Chong Yidong <cyd@stupidchicken.com>
9570
9571 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
9572 LDFLAGS to GNUstep CC invocation.
9573
95742008-08-27 Chong Yidong <cyd@stupidchicken.com>
9575
9576 * indent.c (Fvertical_motion): Revert last change. Handle the
9577 general case where we are moving forward, and PT spans multiple
9578 screen lines.
9579
9580 * eval.c (find_handler_clause): Temporarily increase
9581 max-lisp-eval-depth while printing the backtrace buffer, to
9582 guarantee that help-mode code can run.
9583
95842008-08-27 Eli Zaretskii <eliz@gnu.org>
9585
9586 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
9587 colors under -rv.
9588 (IT_set_frame_parameters): Don't swap foreground and background
9589 colors if `(reverse . t)' is present in the frame properties.
9590 (internal_terminal_init): Call init_frame_faces only for the
9591 initial frame.
9592
95932008-08-27 Andreas Schwab <schwab@suse.de>
9594
9595 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
9596
95972008-08-27 Andreas Schwab <schwab@suse.de>
9598
9599 * search.c (search_buffer): Set char_base to zero only at the end.
9600
96012008-08-27 Kenichi Handa <handa@m17n.org>
9602
b8ff72fa 9603 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
9604
96052008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
9606
9607 * xterm.c (x_term_init): Temporarily hide the partially
9608 initialized terminal while calling vendor-specific-keysyms.
9609
96102008-08-26 Eli Zaretskii <eliz@gnu.org>
9611
9612 * msdos.c (internal_terminal_init): Most initializations done only
9613 once, especially initial_screen_colors[] and termscript open.
9614
96152008-08-26 Chong Yidong <cyd@stupidchicken.com>
9616
9617 * eval.c (Fcondition_case): Doc fix.
9618
9619 * widgetprv.h (EmacsFramePart): Change font member to the new font
9620 struct.
9621
9622 * widget.c: Include character.h and font.h for XSETFONT.
9623 (setup_frame_gcs): Compute X font id from font struct, just once.
9624
96252008-08-26 Eli Zaretskii <eliz@gnu.org>
9626
9627 * term.c (get_named_tty): Fix last change.
9628
96292008-08-26 Chong Yidong <cyd@stupidchicken.com>
9630
9631 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 9632 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
9633
96342008-08-25 Eli Zaretskii <eliz@gnu.org>
9635
9636 * frame.c (do_switch_frame): Mark previously displayed frame as
9637 obscured for FRAME_MSDOS_P frames as well.
9638
96392008-08-24 Eli Zaretskii <eliz@gnu.org>
9640
9641 * frame.c (make_terminal_frame): Initialize f->terminal,
9642 f->terminal->reference_count, and scroll bars on MS-DOS as well.
9643 Set the top frame to newly created frame.
9644 (Fmake_terminal_frame): Reuse the_only_display_info.
9645
9646 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
9647 estimating available memory.
9648
b97439ce 96492008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
9650
9651 * nsterm.m (ns_draw_window_cursor): Don't call
9652 NSDisableScreenUpdates and NSEnableScreenUpdates on
9653 non-NS_IMPL_COCOA systems.
9654
96552008-08-23 Andreas Schwab <schwab@suse.de>
9656
9657 * process.c (procfs_system_process_attributes): Fix use of
9658 uninitialized variables.
9659
96602008-08-23 Eli Zaretskii <eliz@gnu.org>
9661
9662 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
9663
9664 * dispnew.c (init_display): Remove MS-DOS specific conditions for
9665 calling tty-set-up-initial-frame-faces.
9666
b8ff72fa
SM
9667 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
9668 Allow MSDOS frames along with X frames.
aac0c6e3
MR
9669
9670 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
9671 addition to output_termcap.
9672
9673 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
9674
9675 * termchar.h (FRAME_TTY): Support output_msdos_raw.
9676 (struct tty_display_info) [MSDOS]: Add fields related to mouse
9677 highlight.
9678
9679 * process.c [!subprocesses]: Define QCname.
9680 (syms_of_process): Intern and staticpro it.
9681
9682 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
9683 Adjust for changes in encoding/decoding routines.
9684 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
9685 encode_coding and decode_coding.
9686
b8ff72fa 9687 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
9688
9689 * dosfns.c: Include frame.h before termhooks.h.
9690 (dos_cleanup): Use CURTTY ()->termscript instead of a global
9691 variable termscript.
9692
9693 * s/msdos.h (USER_FULL_NAME): Define.
9694 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
9695
9696 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
9697 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
9698 pw->pw_gecos.
9699
9700 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
9701 SELECTED_FRAME as additional (1st) argument.
9702 (tty_read_avail_input): Handle output_msdos_raw in
9703 addition to output_termcap.
9704
9705 * msdos.c: Include frame.h before termhooks.h.
9706 (mouse_on, mouse_off, mouse_moveto, mouse_init)
9707 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
9708 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
9709 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
9710 (IT_set_terminal_modes, IT_reset_terminal_modes)
9711 (IT_set_frame_parameters): Use tty->termscript instead of a global
9712 variable termscript.
9713 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
9714 global variable terminal_coding. Don't refer to
9715 Vnonascii_translation_table.
9716 (internal_terminal_init): Set Vwindow_system in current_kboard.
9717 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
9718 Announce date and time of session start, if termscript is open.
9719 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
9720 term.c:init_tty). Open termscript only of not already open.
9721 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
9722 here instead of dos_ttraw. Don't initialize display if this is an
9723 initial tty. Don't set FRAME_FONT.
9724 (Vwindow_system_version): Bump to 23.
9725 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
9726 is available, set up mouse_position_hook.
9727 (dos_ttraw, IT_set_terminal_modes): If called with initial
9728 terminal, do nothing.
9729 (IT_set_frame_parameters): Handle the Qtty_type frame
9730 parameter by calling internal_terminal_init.
9731 (dos_set_window_size, show_mouse_face)
9732 (clear_mouse_face, IT_note_mode_line_highlight)
9733 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
9734 (dos_rawgetc): Use tty_display_info instead of x_display_info.
9735 (initialize_msdos_display): New function.
9736 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
9737 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
9738 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
9739 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 9740 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
9741 (request_sigio, unrequest_sigio): Don't define, now defined on
9742 sysdep.c.
9743 (IT_write_glyphs): Rewrite to use encode_terminal_code.
9744
9745 * term.c [MSDOS]: Include msdos.h.
9746 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
9747 conditional to DOS_NT. Allow only one call to this function in a
9748 session. Don't allocate a new struct tty_display_info; instead,
9749 reuse the_only_display_info. Call get_tty_size to get screen
9750 dimensions. Call init_baud_rate to set bad_rate.
9751 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
9752 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 9753 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
9754 (get_tty_terminal, get_named_tty, Ftty_type)
9755 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
9756 output_termcap.
b8ff72fa
SM
9757 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
9758 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 9759 only when subprocesses are supported.
aac0c6e3
MR
9760
9761 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
9762 f->output_data.x.
9763 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
9764 terminal devices.
9765
5582fbc7 9766 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
9767 x_output.
9768 (FRAME_FONT): Use output_data.tty.
9769 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
9770 (struct x_display_info): Rename from display_info. Update all users in
9771 msdos.c.
aac0c6e3 9772 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 9773 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
9774 (dos_ttraw): Update prototype.
9775
9776 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
9777 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
9778
97792008-08-23 Jason Rumney <jasonr@gnu.org>
9780
9781 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
9782 (fn_TIFFSetDirectory): New library function used.
9783 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
9784 (tiff_load): Use :index to select among multiple images. Set count
9785 property when multiple images exist.
9786 (gif_format): Use :index, not :image.
9787
97882008-08-23 Chong Yidong <cyd@stupidchicken.com>
9789
9790 * xdisp.c (try_scrolling): Check INT_MAX instead of
9791 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
9792 to obtain INT_MAX.
9793
97942008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
9795
9796 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
9797
97982008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
9799
9800 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
9801 GNUstep library location.
9802
98032008-08-21 Chong Yidong <cyd@stupidchicken.com>
9804
9805 * xfaces.c (x_update_menu_appearance): Check validity of menu font
9806 before using it.
9807
9808 * puresize.h (BASE_PURESIZE): Increase to 1250000.
9809
98102008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9811
9812 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
9813 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
9814 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
9815 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
9816 (EmacsApp-cursor_blink_handler): Remove declaration.
9817 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
9818 match 01 Feb 2008 changes in xterm.c.
9819 (ns_read_socket): Add cast to avoid warning.
9820 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
9821 GNUstep.
9822
98232008-08-20 Chong Yidong <cyd@stupidchicken.com>
9824
9825 * xselect.c (x_get_foreign_selection): Return nil if desired
9826 selection could not be obtained, instead of signalling an error.
9827
98282008-08-20 David Reitter <david.reitter@gmail.com>
9829
9830 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
9831 * nsterm.m: Remove ns-specific code for cursor blinking.
9832 (ns_draw_window_cursor): Clear cursor properly rather than
9833 redrawing the area. Respect width of bar cursors.
9834 These changes enable the use of generic blink-cursor-mode and
9835 generic cursor types in NS and support smooth cursor movements (do
9836 not blink off after command).
9837 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
9838 Nextstep, too.
9839
98402008-08-19 Kenichi Handa <handa@m17n.org>
9841
9842 * font.c (Vfont_log_deferred): New variable.
9843 (font_add_log): Check Vfont_log_deferred.
9844 (font_deferred_log): New function.
9845
9846 * font.h (font_deferred_log): Extern it.
9847
9848 * fontset.c (reorder_font_vector): Use encoding charset of fonts
9849 for sorting.
9850 (face_for_char): Use deferred log.
9851
98522008-08-18 Kenichi Handa <handa@m17n.org>
9853
9854 * fontset.c (face_for_char): Add font log.
9855
9856 * font.c (font_add_log): Add the font properties :script, :lang,
9857 and :otf in the log.
9858
98592008-08-17 Chong Yidong <cyd@stupidchicken.com>
9860
9861 * xdisp.c: Remove dead code.
9862 (handle_invisible_prop, next_overlay_string): Defer call to
9863 setup_for_ellipsis.
9864 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
9865
98662008-08-15 Chong Yidong <cyd@stupidchicken.com>
9867
9868 * xfaces.c (lookup_derived_face): Properly handle possible zero
9869 return value of get_lface_attributes.
9870 (merge_faces): Don't tell lookup_derived_face to signal an error
9871 if face is not found.
9872
9873 * dired.c (Fdirectory_files): Doc fix.
9874
9875 * process.c (make_process): Initialize kill_without_query struct
9876 member.
9877
98782008-08-15 Eli Zaretskii <eliz@gnu.org>
9879
9880 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
9881 Alternative calculation of totphys for Visual Studio 6.
9882
9883 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
9884
9885 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
9886 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
9887 All users changed.
9888 (stat): Only root directory passed to GetDriveType. Allow RAM
9889 disk as well as local fixed disk when w32-get-true-file-attributes
9890 is set to `local'.
9891 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
9892 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
9893 (w32_cached_id, w32_add_to_cache): New functions.
9894 (get_name_and_id): Look account names in the cache before calling
9895 lookup_account_sid.
9896 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
9897 New initialization flags.
9898 (globals_of_w32): Initialize them to zero.
9899 (w32_system_process_attributes): Use w32_cached_id and
9900 w32_add_to_cache.
9901
99022008-08-14 Lawrence Mitchell <wence@gmx.li>
9903
9904 * lread.c (Fread_char, Fread_char_exclusive): If no character
9905 event is read before timeout is reached, return nil, rather than
9906 converting to a number.
9907
99082008-08-14 Chong Yidong <cyd@stupidchicken.com>
9909
9910 * fns.c (use_dialog_box): Doc fix.
9911
9912 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
9913 on OS X.
9914
99152008-08-13 Chong Yidong <cyd@stupidchicken.com>
9916
9917 * frame.c (Qns_parse_geometry): New var.
9918 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
9919
99202008-08-11 Chong Yidong <cyd@stupidchicken.com>
9921
9922 * xdisp.c (x_produce_glyphs): Handle the case when font has no
9923 space character in calculating tabs.
9924
99252008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
9926
9927 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
9928
99292008-08-10 Glenn Morris <rgm@gnu.org>
9930
9931 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
9932 silence gcc "limited range of data type" warnings in some
9933 make_fixnum_or_float calls.
9934
99352008-08-09 Eli Zaretskii <eliz@gnu.org>
9936
9937 * w32.c (w32_system_process_attributes): If the process does not
9938 exist, return nil.
9939
9940 * w32.c: Include thelp32.h, psapi.h and coding.h.
9941 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
9942 declarations.
9943 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
9944 (Process32Next_Proc): New typedefs.
9945 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
9946 (g_b_init_process32_next, g_b_init_open_thread_token)
9947 (g_b_init_impersonate_self, g_b_init_revert_to_self)
9948 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
9949 (g_b_init_get_process_working_set_size)
9950 (g_b_init_global_memory_status_ex): New static variables.
9951 (globals_of_w32): Initialize them.
9952 (create_toolhelp32_snapshot, process32_first, process32_next)
9953 (open_thread_token, impersonate_self, revert_to_self)
9954 (get_process_memory_info, get_process_working_set_size)
9955 (global_memory_status, global_memory_status_ex): New wrapper
9956 functions.
9957 (w32_list_system_processes, w32_system_process_attributes)
9958 (enable_privilege, restore_privilege, ltime, process_times):
9959 New functions.
9960 (convert_time_raw): New function.
9961 (convert_time): Remove conversion of FILETIME into time in 100
9962 nsec units, call convert_time_raw instead.
9963
9964 * process.h (w32_list_system_processes, w32_system_process_attributes):
9965 Add prototypes.
9966 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
9967 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
9968 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
9969 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
9970
9971 * process.c (Fsystem_process_attributes): Doc fix.
9972
99732008-08-08 Chong Yidong <cyd@stupidchicken.com>
9974
9975 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
9976 a continued multi-char glyph; if so, advance to the actual glyph.
9977
99782008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
9979
9980 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
9981
9982 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
9983 (.m.o): Use it.
9984 * config.in: Regenerate.
9985
99862008-08-07 Chong Yidong <cyd@stupidchicken.com>
9987
9988 * xdisp.c (redisplay_window): Revert last change.
9989 (try_window): Check bottom scroll margin too.
9990
99912008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9992
9993 * config.in: Regenerate.
9994
9995 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
9996 -list-load-path-shadows'.
9997 (nsgui.h): Reduce number of things depending on it.
9998
99992008-08-06 Chong Yidong <cyd@stupidchicken.com>
10000
10001 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
10002 instead of window-end which does the wrong thing at eob.
10003 (try_cursor_movement): Minor optimization.
10004 (redisplay_window): If scroll margin is defined, don't assume
10005 window doesn't need scrolling.
10006
100072008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10008
10009 * config.in: Regenerate.
10010
10011 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
10012 (mostlyclean): Don't delete *.d under NS.
10013
10014 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
10015
100162008-08-06 Kenichi Handa <handa@m17n.org>
10017
10018 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
10019
100202008-08-06 Andreas Schwab <schwab@suse.de>
10021
10022 * config.in: Regenerate.
10023
100242008-08-05 Chong Yidong <cyd@stupidchicken.com>
10025
10026 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
10027 forcing a window start.
10028
10029 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
10030 (auto_save_1): Update modtime when auto-save-list-file-name is on.
10031
100322008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10033
10034 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
10035 argument.
10036
100372008-08-05 Juanma Barranquero <lekktu@gmail.com>
10038
10039 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
10040 <scroll-down-aggressively, before-change-functions>:
10041 <after-change-functions>: Reflow docstrings.
10042
100432008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 10044 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
10045
10046 Dock menu customization, based on a patch by Ken Raeburn, plus some
10047 other fixes.
10048 * nsmenu.m (dockMenu): New variable.
10049 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
10050
10051 * nsterm.h (dockMenu): Declare.
10052
10053 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
10054 (ns_term_init): Initialize dockMenu.
10055 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
10056 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
10057 left.
10058
10059 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
10060
100612008-08-04 Chong Yidong <cyd@stupidchicken.com>
10062
10063 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
10064
10065 * config.in: Regenerate.
10066
100672008-08-04 Seiji Zenitani <zenitani@mac.com>
10068
10069 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
10070
100712008-08-04 Chong Yidong <cyd@stupidchicken.com>
10072
10073 * nsterm.h (find_and_call_menu_selection): Fix prototype.
10074
100752008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10076
10077 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
10078
10079 * keyboard.h: Comment an #endif.
10080
10081 * lisp.h (have_menus_p): Adjust comment.
10082
10083 * menu.c (find_and_return_menu_selection): Fix comparison with
10084 client_data.
10085
10086 * nsmenu.m (popup_activated_flag): New variable.
10087 (popup_activated): New function.
10088 (menu-or-popup-active-p): New exported lisp definition.
10089 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
10090 when popup done.
10091 (ns_popup_dialog): Set popup_activated_flag.
10092
10093 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
10094 version for GNUstep (handled by conditional typedef in nsterm.m).
10095 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
10096 in rgb.txt).
10097
10098 * process.c (init_process): Use DARWIN_OS, not DARWIN.
10099
10100 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
10101
10102 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
10103
10104 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
10105 shortcircuit if popup_activated like GTK and X toolkit.
10106
10107 * m/inter386.h: Change DARWIN to DARWIN_OS.
10108
10109 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
10110 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
10111 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
10112 comment on NO_SOCK_SIGIO.
10113
101142008-08-03 Chong Yidong <cyd@stupidchicken.com>
10115
10116 * nsterm.m (windowDidResize): Remove stopModal call.
10117
101182008-08-03 Andreas Schwab <schwab@suse.de>
10119
10120 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
10121 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
10122
101232008-08-02 Chong Yidong <cyd@stupidchicken.com>
10124
10125 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
10126 Don't use uninitialized pointer variable when using getrlimit.
10127
101282008-08-02 Jason Rumney <jasonr@gnu.org>
10129
10130 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
10131
101322008-08-02 Eli Zaretskii <eliz@gnu.org>
10133
10134 * alloc.c (NSTATICS): Bump to 0x640.
10135
10136 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
10137
10138 * lisp.h: Add prototype for directory_files_internal.
10139
10140 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
10141 New functions.
10142 (syms_of_process): Defsubr them. Add initializations for various
10143 Q* symbols used in procfs_system_process_attributes.
10144 (procfs_list_system_processes, procfs_system_process_attributes)
10145 [HAVE_PROCFS]: New functions.
10146 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
10147 (procfs_get_total_memory): New functions.
10148
101492008-08-01 Juanma Barranquero <lekktu@gmail.com>
10150
10151 * xfaces.c (Fx_load_color_file): Fix previous change;
10152 it is #ifdef WINDOWSNT, not WINDOWS_NT.
10153
101542008-08-01 Michael Albinus <michael.albinus@gmx.de>
10155
10156 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
10157
101582008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10159
10160 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
10161
101622008-08-01 Chong Yidong <cyd@stupidchicken.com>
10163
10164 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
10165
10166 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
10167 define NSApplicationDelegateReplySuccess.
10168 (EmacsView -converstationIdentifier): Use long instead of
10169 NSInteger for GNUstep, since it doesn't have NSInteger.
10170
10171 * xmenu.c: Revert last change.
10172
10173 * keyboard.h: Fix last change.
10174
101752008-08-01 Juanma Barranquero <lekktu@gmail.com>
10176
10177 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
10178 on Windows.
10179
101802008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10181
10182 Warning clearing and clean-up in NS port.
10183 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
10184 Add prototypes.
10185 * nsgui.h (FACE_DEFAULT): Remove, unused.
10186 (XGCValues): Change colors to unsigned long.
10187 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
10188 nsterm.m.
10189 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
10190 (ns_list_fonts): Remove, unused.
10191 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
10192 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
10193 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
10194 (nsfont_draw): Compare face colors to 0, not nil.
10195 * nsmenu.m (struct widget_value): Drop unneeded declaration.
10196 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
10197 (-addSubmenuWithTitle:): Use NSMenuItem class.
10198 (ns_popup_menu): Use NO, not NULL, for enabled setting.
10199 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
10200 (ns_clip_to_row): Make gc arg a BOOL.
10201 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
10202 ns_clip_to_row() call.
10203 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
10204 used). Cast FRAME_FONT assignments.
10205 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
10206 (ns_string_to_lispmod): Change arg to const char.
10207 (ns_term_init): Use NSMenuItem class.
10208 (EmacsApp -openFile:): Move to different section of file.
10209 (EmacsApp -application:openFiles:): Don't return a value, call
10210 -replyToOpenOrPrint:.
10211 (EmacsView -keyDown:): Fix up cast.
10212 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
10213 (EmacsView -menuDown:): Cast tag in call to
10214 find_and_call_menu_selection().
10215 (ns_list_fonts): Remove, unused.
10216 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
10217 (ns_fontname_to_xlfd): Make static.
10218 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
10219 Remove prototypes (now in keyboard.h).
10220 (next_menubar_widget_id): Remove, unused.
10221 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
10222 Remove prototypes (now in keyboard.h).
10223 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
10224
102252008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
10226
10227 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
10228 (floatfns.o): Depend on syssignal.h.
10229 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
10230
10231 * systty.h: Fix previous change that removed BSD_TERMIOS.
10232 Add comments to #ifdefs.
10233
102342008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10235
10236 * w32fns.c (w32-load-color-file): Remove.
10237 (x-open-connection): Use renamed Fx_load_color_file.
10238 * xfaces.c (x-load-color-file): Add.
10239 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
10240 Emacs.clr.
10241 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
10242
102432008-07-31 Michael Albinus <michael.albinus@gmx.de>
10244
10245 * dbusbind.c (Fdbus_call_method_asynchronously)
10246 (Fdbus_method_error_internal): New defuns.
10247 (xd_read_message): Handle also reply messages.
10248 (Vdbus_registered_functions_table): Extend docstring.
10249
102502008-07-31 Juanma Barranquero <lekktu@gmail.com>
10251
10252 * keyboard.c (gobble_input): Fix previous change.
10253
102542008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
10255
10256 * bitmaps/README:
10257 * xfns.c:
10258 * termcap.c:
10259 * term.c:
10260 * syswait.h:
10261 * systty.h:
10262 * systime.h:
10263 * syssignal.h:
10264 * sysdep.c:
10265 * process.h:
10266 * process.c:
10267 * print.c:
10268 * ndir.h:
10269 * lread.c:
10270 * keyboard.c:
10271 * getpagesize.h:
10272 * floatfns.c:
10273 * fileio.c:
10274 * emacs.c:
10275 * doc.c:
10276 * dispnew.c:
10277 * dired.c:
10278 * data.c:
10279 * callproc.c:
10280 * buffer.c:
10281 * README:
10282 * Makefile.in:
10283 * s/template.h:
10284 * s/msdos.h:
10285 * m/vax.h: Remove VMS support.
10286 * s/vms.h:
10287 * vlimit.h:
10288 * uaf.h:
10289 * temacs.opt:
10290 * param.h:
10291 * ioctl.h: Remove file.
10292
102932008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
10294
10295 * s/ms-w32.h (MULTI_KBOARD): Remove.
10296 * xterm.c:
10297 * xselect.c:
10298 * xfns.c:
10299 * window.c:
10300 * w32term.c:
10301 * w32fns.c:
10302 * terminal.c:
10303 * termhooks.h:
10304 * term.c:
10305 * sysdep.c:
10306 * keyboard.h:
10307 * keyboard.c:
10308 * frame.h:
10309 * frame.c:
10310 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
10311 * config.in: Regenerate.
10312
103132008-07-30 Jason Rumney <jasonr@gnu.org>
10314
10315 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
10316
10317 * w32font.c (w32font_encode_char): Leave as unicode if in range.
10318 (w32font_open_internal): Get unicode version of textmetrics.
10319 Don't enable or disable glyph indices here.
10320 (w32font_open): Disable use of glyph indices.
10321
10322 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
10323
103242008-07-30 Chong Yidong <cyd@stupidchicken.com>
10325
10326 * minibuf.c (Vread_buffer_function): Doc fix.
10327
103282008-07-30 John Paul Wallington <jpw@pobox.com>
10329
10330 * minibuf.c (read_buffer_completion_ignore_case): New var.
10331 (Fread_buffer): Use it.
10332
103332008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
10334
10335 * systty.h (sensemode): Remove empty #if. Remove reference to
10336 BSD_TERMIOS, unused.
10337
10338 * sysdep.c: Remove reference to DGUX.
10339 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
10340
10341 * config.in: Regenerate.
10342
103432008-07-30 Jason Rumney <jasonr@gnu.org>
10344
10345 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
10346
103472008-07-29 Jason Rumney <jasonr@gnu.org>
10348
10349 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
10350 is populated.
10351 (uniscribe_encode_char): Always use uniscribe.
10352 Avoid using context if cache is populated.
10353
103542008-07-29 Jan Djärv <jan.h.d@swipnet.se>
10355
10356 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
10357 open menu.
10358
10359 * gtkutil.c (menu_nav_ended): Remove.
10360 (create_menus): Remove signal connect for menu_nav_ended.
10361
103622008-07-28 Chong Yidong <cyd@stupidchicken.com>
10363
10364 * xdisp.c (redisplay_window): Check return value of
10365 compute_window_start_on_continuation_line before forcing a window
10366 start.
10367
103682008-07-28 Jason Rumney <jasonr@gnu.org>
10369
10370 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
10371
10372 * w32term.c (w32_enable_unicode_output, cleartype_active):
10373 Remove obsolete display options.
10374 (x_draw_glyph_string_background): Don't use old cleartype_active
10375 workaround.
10376 (w32_initialize): Remove cleartype_active initialization.
10377 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
10378
103792008-07-28 Andreas Schwab <schwab@suse.de>
10380
10381 * lisp.h (init_weak_hash_tables, syms_of_font)
10382 (xd_read_queued_messages, syms_of_dbusbind): Declare.
10383 (remove_hash_entry): Don't declare.
10384 * eval.c (maybe_call_debugger): Make static and move before use.
10385 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
10386 * xdisp.c: Include "gtkutil.h" if USE_GTK.
10387 * xterm.h (x_set_frame_alpha): Declare.
10388
103892008-07-28 Jan Djärv <jan.h.d@swipnet.se>
10390
10391 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
10392 (create_menus): Connect selection-done to menu_nav_ended.
10393
103942008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10395
10396 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
10397 Set Vx_resource_name to a fallback. Replace read of 'buffered'
10398 parameter with read of 'alpha' one.
10399 (Qns_frame_parameter): Remove.
5582fbc7 10400 * nsselect.m (selection-coding-system)
aac0c6e3
MR
10401 (next-selection-coding-system, Vselection_coding_system)
10402 (Vnext_selection_coding_system): Drop.
10403
104042008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10405
10406 * nsfns.m (do-applescript, do_applescript): Rename to
10407 ns-do-applescript, ns_do_applescript, and move within file.
10408
104092008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
10410
10411 Remove support for Mac Carbon.
10412 * mactoolbox.c:
10413 * macterm.h:
10414 * macterm.c:
10415 * macselect.c:
10416 * macmenu.c:
10417 * macgui.h:
10418 * macfns.c:
10419 * mac.c: Remove file.
10420 * s/darwin.h:
10421 * m/intel386.h:
10422 * xfaces.c:
10423 * xdisp.c:
10424 * window.c:
10425 * tparam.c:
10426 * termhooks.h:
10427 * termcap.c:
10428 * term.c:
10429 * syssignal.h:
10430 * sysselect.h:
10431 * sysdep.c:
10432 * process.c:
10433 * lread.c:
10434 * lisp.h:
10435 * keyboard.c:
10436 * image.c:
10437 * fringe.c:
10438 * frame.h:
10439 * frame.c:
10440 * fontset.c:
10441 * font.h:
10442 * font.c:
10443 * fns.c:
10444 * fileio.c:
10445 * emacs.c:
10446 * dispnew.c:
10447 * dispextern.h:
10448 * config.in:
10449 * atimer.c:
2ae37cf0 10450 * Makefile.in: Remove code for Carbon.
aac0c6e3 10451
f0131492 104522008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
10453
10454 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
10455
104562008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10457
10458 * macterm.h (kCGBitmapByteOrder32Host): New define for
10459 non-universal SDKs.
10460
10461 * image.c (mac_create_cg_image_from_image, image_load_image_io)
10462 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
10463
10464 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
10465 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
10466
104672008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
10468
10469 * w32inevt.c: Include dispextern.h.
10470
104712008-07-26 Andreas Schwab <schwab@suse.de>
10472
10473 * print.c (print_object): Fix off-by-one in last change.
10474
104752008-07-25 Juanma Barranquero <lekktu@gmail.com>
10476
10477 * term.c (syms_of_term): Don't initialize default_orig_pair,
10478 default_set_foreground and default_set_background on Windows.
10479
104802008-07-25 Jason Rumney <jasonr@gnu.org>
10481
10482 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
10483 ScriptItemize. Clean up return value checking. Remove unused
10484 variables.
10485 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
10486 shaping engine.
10487
10488 * w32font.c (w32font_has_char): Handle the case where we can't
10489 determine the script for a character.
10490
104912008-07-25 Chong Yidong <cyd@stupidchicken.com>
10492
10493 * term.c (syms_of_term): Initialize default_orig_pair,
10494 default_set_foreground, and default_set_background.
10495
10496 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
10497 clash (bug#86).
10498 (getloadavg): Callers changed.
10499
10500 * image.c (svg_load_image): Fix last change.
10501 (svg_load_image): Use rsvg_handle_get_dimensions to check that
10502 image size is valid. Use g_object_unref instead of deprecated
10503 rsvg_handle_free to free rsvg handle.
10504 (x_from_xcolors): Don't initialize pixmap (silence compiler).
10505
105062008-07-25 Jason Rumney <jasonr@gnu.org>
10507
10508 * w32font.c (w32font_encode_char): Encode characters outside BMP as
10509 surrogates before looking up glyph index.
10510 (w32font_text_extents): Encode as surrogates if falling back to
10511 functions that need UTF-16 wide chars.
10512
10513 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
10514 BMP as surrogates before looking up glyph index.
10515
105162008-07-25 Chong Yidong <cyd@stupidchicken.com>
10517
10518 * image.c (svg_load_image): Check for failure in return value of
10519 rsvg_handle_get_pixbuf. Free rsvg handle when done.
10520
105212008-07-25 Jason Rumney <jasonr@gnu.org>
10522
10523 * w32font.c (Fx_select_font): Reverse sense of second arg.
10524
105252008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
10526
10527 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
10528 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
10529
10530 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
10531 (PURESIZE): Use it.
10532
105332008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
10534
10535 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
10536 * m/alpha.h (TEXT_END):
10537 * m/ibmrs6000.h (TEXT_END):
10538 * m/macppc.h (TEXT_END):
10539 * s/darwin.h (TEXT_END):
10540 * s/msdos.h (TEXT_END): Remove, unused.
10541 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
10542 * s/cygwin.h: Remove comment.
10543
10544 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
10545 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
10546 * m/intel386.h (DOT_GLOBAL_START):
10547 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
10548 (USG): Remove, file not used on USG platforms.
10549
10550 * Makefile.in (HAVE_X11): Remove empty #else.
10551
105522008-07-24 Andreas Schwab <schwab@suse.de>
10553
10554 * fileio.c (Finsert_file_contents): Properly adjust undo list
10555 after format conversion.
10556
105572008-07-24 Jan Djärv <jan.h.d@swipnet.se>
10558
10559 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
10560 (menu_nav_ended): Remove.
10561 (create_menus): Remove signal connect for menu_nav_ended.
10562 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
10563 create_menus.
10564 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
10565
105662008-07-23 Jason Rumney <jasonr@gnu.org>
10567
10568 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
10569 with opened font.
10570 (w32font_open): Set font type to gdi.
10571
10572 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
10573
105742008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
10575
10576 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
10577 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
10578 defines it.
10579 * unexec.c (ADDR_CORRECT): Define unconditionally.
10580
10581 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
10582
10583 * unexec.c: Remove code depending on !COFF and USG, the file is
10584 not used for such systems.
10585
10586 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
10587 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
10588 (LD_SWITCH_SYSTEM_1): Remove, update users.
10589
10590 * s/darwin.h (DATA_END):
10591 * m/intel386.h (DATA_END):
10592 * m/ibmrs6000.h (DATA_END):
10593 * m/alpha.h (DATA_END): Remove, unused.
10594
10595 * config.in: Regenerate.
10596 * s/ms-w32.h (subprocesses): Define unconditionally.
10597 * s/template.h (subprocesses): Update comment.
10598 * s/vms.h (subprocesses):
10599 * s/usg5-4.h (subprocesses):
10600 * s/hpux10-20.h (subprocesses):
10601 * s/gnu-linux.h (subprocesses):
10602 * s/cygwin.h (subprocesses):
10603 * s/bsd-common.h (subprocesses):
10604 * s/aix4-2.h (subprocesses):
10605 * s/darwin.h (subprocesses): Do not define, defined by default now.
10606
10607 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
10608 Remove all references.
10609 (temacs): Add GNUstep specific ld flags.
10610
10611 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
10612 similarly to what X does.
10613
106142008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10615
10616 * nsfns.m (x-list-fonts): Remove.
10617 (syms_of_nsfns): Drop the x-list-fonts declaration.
10618 * nsterm.m: Get rid of remaining "//" comments.
10619
106202008-07-22 Chong Yidong <cyd@stupidchicken.com>
10621
10622 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
10623
10624 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
10625 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
10626 (Fns_own_selection_internal, Fx_disown_selection_internal)
10627 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
10628
10629 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
10630 ... */' style of docstrings. Doc fixes.
10631
106322008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
10633
10634 * terminfo.c (UP, BC, PC): Undo previous change.
10635
10636 * nsfns.m: Rename ns prefixed functions/variables to the
10637 corresponding x versions. Update references.
10638
106392008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
10640
10641 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
10642
106432008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
10644
10645 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
10646 Remove forwarding functions.
10647 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
10648 non-static.
10649 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
10650 non-static.
10651 (ns_frame_parm_handlers): Use the new names.
10652 (syms_of_nsfns): Move to the end of file.
10653
10654 * nsterm.m (syms_of_nsterm): Move to the end of file.
10655
10656 * dispnew.c (init_display): Remove code for X10.
10657
106582008-07-22 Jason Rumney <jasonr@gnu.org>
10659
10660 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
10661 bare drive.
10662
106632008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10664
10665 * nsterm.m (syms_of_nsterm): Remove debugging println.
10666
106672008-07-22 David Reitter <david.reitter@gmail.com>
10668
10669 * nsfns.m (do_applescript, F_do_applescript): NS version of the
10670 Carbon implementation of the same functionality: execute arbitrary
10671 AppleScript code.
10672
106732008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10674
10675 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
10676 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
10677 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
10678 (Fx_display_mm_height, Fx_display_mm_width)
10679 (Fx_display_backing_store, Fx_display_visual_class)
10680 (Fx_display_save_under, Fx_open_connection)
10681 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
10682 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
10683 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
10684 (Fx_display_pixel_width, Fx_display_pixel_height)
10685 (Fx_display_usable_bounds, Fx_display_planes)
10686 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
10687 ... */' style of docstrings.
10688
106892008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
10690
10691 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
10692 on this platform.
10693 (mips):
10694 * m/iris4d.h (mips): Do not define.
10695 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
10696
10697 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
10698
10699 * image.c:
10700 * nsfns.m:
10701 * nsselect.m:
10702 * nsterm.h:
10703 * nsterm.m: Rename ns prefixed functions/variables to the
10704 corresponding x versions. Update references.
10705
10706 * m/ibms390x.h (NO_REMAP): Do not undefine.
10707
10708 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
10709
107102008-07-21 Chong Yidong <cyd@stupidchicken.com>
10711
10712 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
10713 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
10714 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
10715 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
10716 (Fns_display_mm_height, Fns_display_mm_width)
10717 (Fns_display_backing_store, Fns_display_visual_class)
10718 (Fns_display_save_under, Fns_open_connection)
10719 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
10720 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
10721 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
10722 (Fns_display_pixel_width, Fns_display_pixel_height)
10723 (Fns_display_usable_bounds, Fx_display_planes)
10724 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
10725
107262008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
10727
10728 * print.c (print_object): Check print_depth before searching for
10729 circularities.
10730
107312008-07-21 Michael Albinus <michael.albinus@gmx.de>
10732
10733 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
10734 only sprintf.
10735
107362008-07-21 Kenichi Handa <handa@m17n.org>
10737
10738 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
10739
107402008-07-20 Andreas Schwab <schwab@suse.de>
10741
10742 * syntax.c (find_start_pos, find_start_value)
10743 (find_start_value_byte, find_start_begv, find_defun_start)
10744 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
10745
107462008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
10747
10748 * s/sol2-3.h: Insert contents of s/sol2.h.
10749 (LD_SWITCH_SYSTEM): Remove redundant definition.
10750 * s/sol2.h: Remove, unused.
10751
107522008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10753
10754 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
10755
107562008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10757
10758 * Makefile.in (ns_appdir): Fix typo in find command.
10759
107602008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
10761
10762 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
10763
10764 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
10765 added not supported anymore.
10766
10767 * s/usg5-4-2.h (LIBS_SYSTEM):
10768 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
10769
10770 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10771 * s/lynxos.h (GETPGRP_NO_ARG):
10772 * s/hpux10-20.h (NO_SIOCTL_H):
10773 * s/gnu.h (GETPGRP_NO_ARG):
10774 * s/gnu-linux.h (NO_SIOCTL_H):
10775 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10776 * s/cygwin.h (GETPGRP_NO_ARG):
10777 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
10778 (C_DEBUG_SWITCH): Remove duplicate definition.
10779
10780 * m/ibms390.h: Remove boilerplate comments.
10781
10782 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
10783
10784 * process.c (HAVE_SERIAL): Consolidate ifdefs.
10785 (wait_reading_process_output): Remove code for SunOS, platform not
10786 supported anymore. Use SOLARIS2 instead of sun.
10787
107882008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10789
10790 * font.c (font_open_by_name): Under NS, default lface height to zero.
10791 (font_open_for_lface): Under NS, set size based on frame fontsize.
10792 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
10793 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
10794
107952008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10796
10797 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
10798 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
10799 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
10800 YES/NO.
10801 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
10802 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
10803 * Makefile.in (clean): Clear out build destination dir.
10804
108052008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10806
10807 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
10808 xterm, xselect.
10809 * lisp.h: Remove declaration of hash_remove.
10810 * nsgui.h: Remove redefinitions of hash_remove.
10811 * fns.c (hash_remove): Rename to hash_remove_from_table.
10812
108132008-07-19 Seiji Zenitani <zenitani@mac.com>
10814
10815 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
10816 strdup() the family UTF8String before modifying it.
10817
108182008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10819
10820 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
10821 NS_FACE_BACKGROUND with 0 instead of nil.
10822 * nsfont.m (nsfont_draw): Same.
10823
108242008-07-19 Chong Yidong <cyd@stupidchicken.com>
10825
10826 * nsfns.m (ns_set_background_color): Fix crash.
10827
108282008-07-18 Chong Yidong <cyd@stupidchicken.com>
10829
10830 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
10831
108322008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
10833
10834 * puresize.h (BASE_PURESIZE): Increase to 1240000.
10835
108362008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10837
10838 * gtkutil.c: Include <config.h> instead of "config.h".
10839
10840 * lisp.h (Foverlay_buffer): Add EXFUN.
10841
10842 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
10843 child process to complete child_setup. Undo 2005-09-21 change.
10844
10845 * s/darwin.h: Mention setsid after vfork.
10846
108472008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10848
10849 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
10850 Depend on macgui.h.
10851
10852 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
10853 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
10854
10855 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
10856 and f19.
10857 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
10858
10859 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
10860 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
10861 Remove enumerators.
10862
10863 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
10864 Check if FACE_FROM_ID returns NULL.
10865
108662008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
10867
10868 * w32inevt.c (change_frame_size): Remove extern declaration.
10869 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
10870 change_frame_size.
10871
108722008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
10873
10874 * getloadavg.c: Revert last change (2008-07-15).
10875
108762008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
10877
10878 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 10879 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
10880 from configure.
10881
108822008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
10883
10884 * s/sol2.h:
10885 * s/sol2-4.h: Reorganize conditionals.
10886
10887 * ecrt0.c: Remove code depending on m68000, not used anymore.
10888
10889 * fns.c (hash_remove): Make static.
10890 * lisp.h (hash_remove): Don't prototype.
10891
10892 * m/ibmrs6000.h:
10893 * m/ibms390x.h:
10894 * m/macppc.h: Remove boilerplate comments.
10895
10896 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
10897 Solaris, which does not need them.
10898
10899 * m/vax.h: Remove comments about unsupported systems.
10900
10901 * s/darwin.h: Reorganize ifdefs.
10902
109032008-07-17 Andreas Schwab <schwab@suse.de>
10904
10905 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
10906
109072008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
10908
10909 Use SDATA. Follow coding convention of placing operators at
10910 beginning of next line rather than end of previous line, and placing
10911 spaces around infix operators.
10912
10913 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
10914 in case it was defined already.
10915 USE @GNUSTEP_MAKEFILES@ rather than envvars.
10916 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
10917 ns_default.
10918 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
10919 Lisp_Objects.
10920 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
10921 (ns_defined_color, ns_color_to_lisp): Declare.
10922 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
10923 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
10924 it's accepted even with USE_LISP_UNION_TYPE.
10925 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
10926 (update_frame_tool_bar): Remove apparently obsolete tests for
10927 non-integerness of f->tool_bar_lines.
10928 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
10929 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
10930 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
10931 (nsfont_open): Don't confuse NULL for Qnil.
10932 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
10933 * menu.h (find_and_call_menu_selection):
10934 * menu.c (find_and_call_menu_selection): Use just int for vector size.
10935 (find_and_return_menu_selection): Always return something.
10936 * frame.h: Include dispextern.h for Display_Info.
10937 (display_x_get_resource): Declare.
10938
109392008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
10940
10941 * syntax.c: Remove stdio.h include accidentally introduced in
10942 Emacs.app commit.
10943 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
10944 NS_IMPL_COCOA.
10945 * keyboard.c (handle_async_input, input_available_signal): Remove
10946 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
10947
109482008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
10949
10950 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
10951 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
10952 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
10953 Use SDATA.
10954
10955 * keymap.c: Remove all NS-specific code.
10956 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
10957 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
10958 where_is_preferred_modifier, return a different value depending on how
10959 preferred is the binding.
10960 (where_is_internal): Adjust accordingly.
10961 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
10962 Adjust to new preferred_sequence_p.
10963 (syms_of_keymap): Declare `where-is-preferred-modifier'.
10964 * keyboard.c (parse_solitary_modifier): Not static any more.
10965 * keyboard.h (parse_solitary_modifier): Declare.
10966
109672008-07-16 Andreas Schwab <schwab@suse.de>
10968
10969 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
10970 of easymenu.
10971
109722008-07-16 Chong Yidong <cyd@stupidchicken.com>
10973
10974 * xdisp.c (move_it_in_display_line): Account for word wrap, so
10975 that we don't move off the line.
10976
109772008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
10978
10979 * keyboard.c (Qsuper): Remove.
10980 (parse_menu_item): Don't call where_is_internal specially for NS.
10981
109822008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10983
10984 * s/gnu-linux.h: Remove boilerplate comments.
10985
10986 * m/alpha.h (__ELF__): Consolidate conditions.
10987
10988 * m/m68k.h (linux): Use GNU_LINUX instead.
10989 Remove boilerplate comments.
10990
10991 * m/intel386.h: Undo refactoring from previous change.
10992 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
10993 too, remove dead code.
10994 (linux): Use GNU_LINUX instead.
10995
109962008-07-16 Jason Rumney <jasonr@gnu.org>
10997
10998 * w32gui.h: Repeat 26 June changes lost by last change.
10999
110002008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
11001
11002 * systty.h: Remove code for Aix on 386, unsupported platform.
11003
11004 * s/ms-w32.h: Remove boilerplate comments.
11005 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
11006
11007 * s/gnu-linux.h (TERM): Remove support.
11008 (HAVE_SYSVIPC): Remove, unused.
11009 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
11010 for this system.
11011
11012 * process.c: Remove support for IRIS, unused.
11013 Remove support for TERM, not relevant anymore.
11014
11015 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
11016 used with the definition.
11017
11018 * s/aix4-2.h (static): Do not undef.
11019
11020 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
11021 only used on Aix.
11022 (HAVE_SYSVIPC): Remove, unused.
11023
11024 * m/hp800.h (CANNOT_DUMP): Do not undef.
11025
11026 * m/alpha.h: Fix comment.
11027
11028 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
11029 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
11030 used by this configuration.
11031 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
11032 * unexec.c: Remove code depending on HPUX and
11033 USG_SHARED_LIBRARIES, not used with this file. Remove code
11034 depending on IRIS, unused. Remove if 0-ed code.
11035
11036 * s/template.h: Remove comments about static.
11037
11038 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
11039 Remove if 0-ed code.
11040 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
11041 were the same as the default.
11042 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
11043 Remove boilerplate comments.
11044 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
11045 (HAVE_SYSVIPC): Remove, unused.
11046 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
11047
11048 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11049 Remove boilerplate comments.
11050 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11051 Remove boilerplate comments.
11052 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11053 Remove boilerplate comments.
11054 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
11055
11056 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
11057 USG systems which do not use DATA_SEG_BITS.
11058 Refactor code. Remove boilerplate comments.
11059
11060 * m/ibms390.h:
11061 * m/m68k.h:
11062 * s/bsd-common.h:
11063 * s/cygwin.h:
11064 * s/darwin.h:
11065 * s/freebsd.h:
11066 * s/gnu.h:
11067 * s/msdos.h: Remove boilerplate comments.
11068
11069 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 11070 do not use this file.
aac0c6e3
MR
11071 (IRIS_4D): Remove, unused.
11072
11073 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 11074 do not use this file.
aac0c6e3
MR
11075 (SIGN_EXTEND_CHAR):
11076 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
11077 * unexmips.c: Remove file, unused.
11078
11079 * editfns.c (Fuser_full_name): Replace the only use of
11080 USER_FULL_NAME with its value.
11081 * config.in: Regenerate.
11082
110832008-07-16 David Reitter <david.reitter@gmail.com>
11084
11085 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
11086 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
11087
110882008-07-16 Glenn Morris <rgm@gnu.org>
11089
11090 * emacs.c (system-type): Doc fix.
11091
110922008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
11093
11094 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
11095 If the cache doesn't work, let's fix it, rather than work around it.
11096
110972008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11098
11099 * Makefile.in: Correct additions for nsfont.o in last commit.
11100 * nsfont.m: New file (forgot last commit).
11101
111022008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
11103
11104 * callproc.c (set_initial_environment): Initialize
11105 Vprocess_environment under CANNOT_DUMP (fixes crash when
11106 batch-compiling for bootstrap).
11107
111082008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 11109 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
11110
11111 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
11112 fix crash due to different init order.
11113
111142008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11115
11116 Changes and additions for NeXTstep windowing system (Cocoa and
11117 GNUstep) support.
11118
11119 * Makefile.in:
11120 * config.in: Support defines and build commands for NS port.
11121 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
11122 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
11123 * dispextern.h: Include nsgui.h and add needed typedefs under NS
11124 windowing.
11125 (struct face): Add synth_ital field.
11126 * dispnew.c: Include nsterm.h when compiling under NS windowing.
11127 (init_display): Initialize Vinitial_window_system to "ns" when so
11128 compiled.
11129 * emacs.c: Include GSConfig.h when compiling under GNUstep.
11130 (display_arg): Use under NS.
11131 (main): Under NS, allocate autorelease pool and handle command line
11132 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
11133 (standard_args): Add NS-specific args.
11134 (shut_down_emacs): Shut down NS terminal if compiled under NS.
11135 * font.c (DEFAULT_ENCODING): New variable.
11136 (font_find_for_lface): Use it.
11137 (syms_of_font): Load syms_of_nsfont under NS.
11138 * font.h: Declare nsfont_driver when compiled under NS.
11139 * fontset.c: When compiling under NS, include nsterm.h.
11140 (fontset_from_font): Autoconstruct fontset under NS.
11141 * frame.c (various): Under NS, include nsterm.h, add Qns window system
11142 symbol, document and use it.
11143 (do_switch_frame): When for_deletion under Cocoa, add
11144 Fraise_frame(Qnil).
11145 (x_set_frame_parameters): Ensure font attribute changes are picked up.
11146 (x_get_arg): Allow "yes" and "no" as boolean values.
11147 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
11148 Qright under Cocoa.
11149 (focus-follows-mouse): Default to 0 under NS.
11150 * frame.h (enum output_method): Add output_ns.
11151 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
11152 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
11153 (FRAME_WINDOW_P): NS-specific definition.
11154 * fringe.c (max_used_fringe_bitmap): Make public.
11155 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
11156 (getloadavg): Use NeXT code under descendant OS's.
11157 * image.c (includes and header section, x_create_bitmap_from_data)
11158 (x_create_bitmap_from_file, free_bitmap_record, image_background)
11159 (image_background_transparent, x_clear_image_1)
11160 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
11161 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
11162 (x_to_xcolors, x_from_xcolors, x_disable_image)
11163 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
11164 other GUIs, including XPM support using code originally written for
11165 Carbon GUI.
11166 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
11167 using NS API.
11168 (image_ascent): Use font metrics macros instead of direct struct field
11169 access.
11170 * keyboard.c (includes): Add nsterm.h when compiling under NS.
11171 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
11172 Also, handle NS as GTK for menu bar purposes.
11173 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
11174 toolkit where they differ.
11175 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
11176 use cachelist, still needed under NS.
11177 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
11178 (struct widget_value): Define it here for menu.c.
11179 * keymap.c (includes): Include modifier internals.
11180 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
11181 NS.
11182 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
11183 support for preferring sequences using certain modifiers, specified by
11184 the FIRSTONLY argument.
11185 * lisp.h (hash_remove): Rename to avoid name clash when compiling
11186 under NS GNUstep implementation.
11187 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
11188 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
11189 * menu.c: Include nsterm.h under NS.
11190 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
11191 (free_menubar_widget_tree_value, update_submenu_strings)
11192 (find_and_call_menu_selection): Treat NS as X and NT.
11193 (find_and_return_menu_selection): New function, used for popup menus.
11194 * nsgui.h:
11195 * nsterm.h:
11196 * nsfns.m:
11197 * nsimage.m:
11198 * nsmenu.m:
11199 * nsselect.m:
11200 * nsterm.m: New files.
11201 * process.c (wait_reading_process_output): Under NS, call ns_select()
11202 instead of plain select().
11203 * syntax.c (char_quoted): Under NS, avoid a crash when called near
11204 beginning of buffer.
11205 * sysselect.h (init_process): Rename when compiling under Cocoa to
11206 avoid name conflict.
11207 * termhooks.h (display_info): Add ns_display_info to union.
11208 * terminal.c (Fterminal_live_p): Add ns to terminal types.
11209 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
11210 COCOA environment.
11211 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
11212 unexec() signature. (Note, this will dump, but the resulting file
11213 crashes; unexosx is used instead; keeping around for reference and
11214 possible aid in getting dump working under GNUstep.)
11215 * w32gui.h (button_type, widget_value): Remove definitions (now in
11216 keyboard.h).
11217 * window.c: Include nsterm.h when compiling under NS.
11218 * xdisp.c (includes): Include nsterm.h when compiling under NS.
11219 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
11220 other GUI windowing systems.
11221 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
11222 GTK.
11223 (x_consider_frame_title): Under NS, set icon type and frame
11224 modified-state indicator; use ns_set_name_as_filename() when using
11225 formatted title.
11226 (update_window_cursor): Make public when compiling under NS.
11227 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
11228 (hourglass_atimer, Vhourglass_delay
11229 * xfaces.c (header section, init_frame_faces, clear_font_table)
11230 (defined_color, unload_color, x_face_list_fonts)
11231 (prepare_face_for_display): Add NS support parallel to other GUIs.
11232 Emulate GCs like other non-X GUIs.
11233 (split_font_name): Don't lowercase font name under NS.
11234 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
11235 under NS.
11236 * s/darwin.h: Add support for compilation under NS.
11237
112382008-07-15 Jason Rumney <jasonr@gnu.org>
11239
11240 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
11241 (w32_show_hourglass): Rename from show_hourglass.
11242 (w32_hide_hourglass): Rename from hide_hourglass.
11243 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
11244 (Vhourglass_delay): Declare extern.
11245 (hourglass_started): Remove.
11246
11247 * xdisp.c (Vhourglass_delay): Remove static.
11248 (hourglass_started, start_hourglass, cancel_hourglass):
11249 Don't include these versions on WINDOWSNT.
11250
112512008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11252
11253 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
11254 variables (formerly in xfns.c).
11255 (show_hourglass, hide_hourglass): New prototypes (same).
11256 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
11257 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
11258 in xfns.c).
11259 (syms_of_xdisp): Declare/initialize display-hourglass,
11260 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
11261 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
11262 formerly in xfns.c.
11263 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
11264 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
11265 (start_hourglass, cancel_hourglass): Remove.
11266 (show_hourglass, hide_hourglass): Remove prototypes and static
11267 modifiers.
11268 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
11269 hourglass_atimer, hourglass_shown_p declaration/initialization.
11270 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
11271 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
11272 (start_hourglass, cancel_hourglass): Remove.
11273 (show_hourglass, hide_hourglass): Remove prototypes and static
11274 modifiers.
11275 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
11276 hourglass_atimer, hourglass_shown_p declaration/initialization.
11277 * w32fns.c (display_hourglass_p, Vhourglass_delay)
11278 (DEFAULT_HOURGLASS_DELAY): Remove.
11279 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
11280 hourglass_shown_p declaration/initialization.
11281
112822008-07-14 Jason Rumney <jasonr@gnu.org>
11283
11284 * w32fns.c (w32_get_arg): Remove wrapper function.
11285 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
11286 directly.
11287 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
11288
112892008-07-14 Kenichi Handa <handa@m17n.org>
11290
11291 * xfont.c (xfont_open): Add workaround for X's bug.
11292
112932008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
11294
11295 * fontset.c: Include <stdio.h> unconditionally.
11296
112972008-07-13 Michael Albinus <michael.albinus@gmx.de>
11298
11299 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
11300 for filtering.
11301
113022008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
11303
11304 * s/vms.h: Use __GNUC__ instead of _GNUC_.
11305
11306 * m/macppc.h:
11307 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
11308
11309 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
11310 (SPECIAL_EMACS_INT):
11311 * m/ia64.h (SPECIAL_EMACS_INT):
11312 * m/amdx86-64.h (SPECIAL_EMACS_INT):
11313 * s/gnu.h (NLIST_STRUCT):
11314 * s/aix4-2.h (X11R5_INHIBIT_I18N):
11315 * s/gnu-linux.h (LINUX):
11316 * s/msdos.h (HAVE_FACES):
11317 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
11318
11319 * systty.h:
11320 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
11321 anymore.
11322
113232008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
11324
11325 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
11326 always defined as int.
11327
11328 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
11329 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
11330 * s/gnu-linux.h (HAVE_WAIT_HEADER):
11331 * s/freebsd.h (HAVE_WAIT_HEADER):
11332 * s/bsd-common.h (HAVE_UNION_WAIT):
11333 * s/aix4-2.h (HAVE_WAIT_HEADER):
11334 * m/mips.h (HAVE_UNION_WAIT):
11335 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
11336 (COFF, static): Do not define, they are undefined later in the file.
11337
11338 * process.c (update_status): Don't use a union.
11339 (status_convert):
11340 (sigchld_handler): Use int instead of WAITTYPE.
11341
113422008-07-12 Chong Yidong <cyd@stupidchicken.com>
11343
11344 * indent.c (Fvertical_motion): Restore hscroll before moving to
11345 goal column.
11346
113472008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
11348
11349 * lisp.h: Remove left over code.
11350
113512008-07-11 Andreas Schwab <schwab@suse.de>
11352
11353 * lisp.h: Fix logic in last change.
11354
11355 * menu.h: New file.
11356 * menu.c: Include it.
11357 * xmenu.c: Likewise.
11358 * Makefile.in: Update dependencies.
11359
113602008-07-11 Kenichi Handa <handa@m17n.org>
11361
11362 * fontset.c (fontset_from_font): Cancel the previous change.
11363
113642008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
11365
11366 * lisp.h:
11367 * w32heap.c:
11368 * emacs.c:
11369 * alloc.c: Replace all references of NO_UNION_TYPE with
11370 USE_LISP_UNION_TYPE.
11371
11372 * m/xtensa.h (NO_UNION_TYPE):
11373 * m/vax.h (NO_UNION_TYPE):
11374 * m/template.h (NO_UNION_TYPE):
11375 * m/sparc.h (NO_UNION_TYPE):
11376 * m/mips.h (NO_UNION_TYPE):
11377 * m/macppc.h (NO_UNION_TYPE):
11378 * m/m68k.h (NO_UNION_TYPE):
11379 * m/iris4d.h (NO_UNION_TYPE):
11380 * m/intel386.h (NO_UNION_TYPE):
11381 * m/ibms390x.h (NO_UNION_TYPE):
11382 * m/ibms390.h (NO_UNION_TYPE):
11383 * m/ibmrs6000.h (NO_UNION_TYPE):
11384 * m/ia64.h (NO_UNION_TYPE):
11385 * m/hp800.h (NO_UNION_TYPE):
11386 * m/arm.h (NO_UNION_TYPE):
11387 * m/amdx86-64.h (NO_UNION_TYPE):
11388 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
11389 defining it the same.
11390
113912008-07-10 Chong Yidong <cyd@stupidchicken.com>
11392
11393 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
11394
113952008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
11396
11397 * fileio.c:
50426a04 11398 * sysdep.c:
aac0c6e3
MR
11399 * systty.h:
11400 * m/ibmrs6000.h:
11401 * m/iris4d.h:
11402 * s/aix4-2.h:
11403 * s/freebsd.h:
11404 * s/gnu-linux.h:
11405 * s/hpux10-20.h:
11406 * s/hpux11.h:
11407 * s/netbsd.h:
11408 * s/sol2-3.h:
11409 * s/sol2-4.h:
11410 * s/sol2.h:
11411 * s/usg5-4.h:
11412 * s/vms.h: Remove references to unused variables.
11413
114142008-07-10 Andreas Schwab <schwab@suse.de>
11415
11416 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
11417 pattern before matching the generic family.
11418
114192008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
11420
11421 * unexec.c:
11422 * s/vms.h:
11423 * s/usg5-4-2.h:
11424 * s/sol2-5.h:
11425 * s/freebsd.h:
11426 * s/darwin.h: Remove dead code.
11427
11428 * m/template.h:
11429 * m/sparc.h:
11430 * m/mips.h:
11431 * m/m68k.h:
11432 * m/iris4d.h:
11433 * m/intel386.h:
11434 * m/ibms390x.h:
11435 * m/ibms390.h:
11436 * m/ia64.h:
11437 * m/hp800.h:
11438 * m/arm.h:
11439 * m/amdx86-64.h: Remove dead code and references to unused
11440 and compiler defined symbols.
11441
11442 * unexmips.c:
11443 * unexelf.c: Remove references to desupported systems.
11444
11445 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
11446
11447 * m/powermac.h: Remove boilerplate comments.
11448 (NO_REMAP): Remove unused definition.
11449
11450 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
11451 define them.
11452
114532008-07-10 Kenichi Handa <handa@m17n.org>
11454
11455 * xfont.c (xfont_open): Log the reason of failure.
11456
114572008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
11458
11459 * fontset.c (fontset_get_font_group):
11460 * font.c (font_check_otf): Specify argument types.
11461
114622008-07-09 Kenichi Handa <handa@m17n.org>
11463
11464 * coding.c (detect_coding_utf_8): Set detect_info->found only when
11465 non-ASCII char is found.
11466
11467 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
11468 (reorder_font_vector): Change the arg preferred_family to font.
11469 Prefer the spec matching with font.
11470 (fontset_get_font_group): New function.
11471 (fontset_find_font): Change the format of an element of a realized
11472 fontset. Use fontset_get_font_group.
11473 (fontset_font): Try the current fontset, the default fontset, the
11474 fallbacks of the current fontset, and the fallbacks of the default
11475 fontset in this order.
11476 (face_for_char): Delete the shortcut to use the current font.
11477 (fontset_from_font): Don't set fonts for Latin in the fontset.
11478
11479 * font.h (font_make_object, font_match_p): Adjust prototypes.
11480
11481 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
11482
11483 * font.c (font_make_object): New arg entity and pixelsize.
11484 (font_check_otf_features, font_check_otf): New functions.
11485 (font_match_p): Check :lang, :script, and :otf properties.
11486
11487 * xfont.c (xfont_open): Adjust it for the change of
11488 font_make_object.
11489 (xfont_text_extents): Fix initial setting of metrics.
11490
11491 * ftfont.c (struct ftfont_info): New member index, delete member
11492 fc_charset_idx. Make the member order compatible with struct
11493 xftfont_info.
11494 (fc_charset_table): Change charset names to registry names.
11495 (ftfont_pattern_entity): Delete the args registry and
11496 fc_charset_idx. Change the value of :font-entity property
11497 to (FONTNAME . INDEX). Always set :registry property to
11498 `iso10646-1'.
11499 (struct ftfont_cache_data): New struct.
11500 (ftfont_lookup_cache): New arg for_face.
11501 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
11502 (ftfont_driver): Set the member otf_capability.
11503 (ftfont_get_charset): Adjust it for the change of
11504 fc_charset_table.
11505 (OTF_TAG_SYM): New macro.
11506 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
11507 for the change of fc_charset_table.
11508 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
11509 ftfont_pattern_entity. Add FC_INDEX to objset.
11510 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
11511 and ftfont_pattern_entity.
11512 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
11513 font_make_object, struct ftfont_info.
11514 (ftfont_has_char): Use ftfont_get_fc_charset.
11515 (ftfont_otf_features, ftfont_otf_capability): New functions.
11516 (ftfont_shape): Use ftfont_get_otf.
11517 (ftfont_text_extents): Fix initial setting of metrics.
11518
11519 * xftfont.c (struct xftfont_info): New member ft_size. Make the
11520 member order compatible with struct ftfont_info.
11521 (xftfont_open): Add FC_CHARSET to the pattern. Set
11522 xftfont_info->ft_size. Don't unlock the face. Check BDF
11523 properties if appropriate.
11524 (xftfont_close): Unlock the face.
11525 (xftfont_anchor_point, xftfont_shape): Deleted.
11526 (syms_of_xftfont): Don't set members anchor_point and shape of
11527 xftfont_driver.
11528
11529 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
11530 font_make_object.
11531
11532 * w32font.c (w32font_open): Adjust it for the change of
11533 font_make_object.
11534 (w32font_open_internal): Don't set properties of font_object here.
11535
115362008-07-08 Chong Yidong <cyd@stupidchicken.com>
11537
11538 * macfns.c (x_create_tip_frame):
11539 * w32fns.c (x_create_tip_frame):
11540 * xfns.c (x_create_tip_frame): Pass parameter argument to
11541 face-set-after-frame-default.
11542
11543 * xfaces.c (Finternal_merge_in_global_face): Save merged
11544 attributes for the default face back into the face vector.
11545
115462008-07-08 Andreas Schwab <schwab@suse.de>
11547
11548 * fontset.h: Declare fontset_from_font. Don't declare
11549 new_fontset_from_font and fontset_from_font_name.
11550 * xterm.c: Include "fontset.h".
11551 * Makefile.in (xterm.o): Update dependencies.
11552
115532008-07-08 Glenn Morris <rgm@gnu.org>
11554
11555 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
11556 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
11557
115582008-07-07 Chong Yidong <cyd@stupidchicken.com>
11559
11560 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
11561 (x_set_frame_parameters): Don't bind it.
11562
115632008-07-07 Juanma Barranquero <lekktu@gmail.com>
11564
11565 * w32fns.c (map_w32_filename): Declare extern.
11566
115672008-07-07 Jason Rumney <jasonr@gnu.org>
11568
11569 * w32term.c (WS_EX_LAYERED): Define if not already.
11570
115712008-07-06 Chong Yidong <cyd@stupidchicken.com>
11572
11573 * xfaces.c (set_font_frame_param): Don't try to set the font
11574 parameter if it is still unspecified in the lface.
11575
115762008-07-05 Chong Yidong <cyd@stupidchicken.com>
11577
11578 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
11579 face if it didn't already exist.
11580
11581 * xdisp.c (try_window_id): Give up if word-wrapping is on.
11582
115832008-07-05 Andreas Schwab <schwab@suse.de>
11584
11585 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
11586
115872008-07-05 Chong Yidong <cyd@stupidchicken.com>
11588
11589 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
11590 word-wrapping.
11591 (IT_DISPLAYING_WHITESPACE): New macro.
11592 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
11593 when word-wrapping. Simplify word-wrapping logic. Use correct
11594 pixel positions when saving copies of the iterator.
11595 (display_line): Use proper wrap point if the last character on a
11596 line was preceded by whitespace.
11597
115982008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
11599
11600 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
11601
116022008-07-04 Kenichi Handa <handa@m17n.org>
11603
11604 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
11605
11606 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
11607
116082008-07-02 Jason Rumney <jasonr@gnu.org>
11609
11610 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 11611 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
11612
11613 * xdisp.c (next_element_from_display_vector): Move assignment out
11614 of if statement.
11615
116162008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
11617
11618 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
11619
11620 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
11621 (syms_of_fileio): Initialize and export them.
11622 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
11623
11624 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
11625 (Fsystem_move_file_to_trash): New function.
11626 (syms_of_w32fns): Export it to lisp.
11627
116282008-07-01 Jason Rumney <jasonr@gnu.org>
11629
11630 * w32font.c (w32font_text_extents): Don't count overhang as part
11631 of width.
11632
116332008-06-30 Miles Bader <miles@gnu.org>
11634
11635 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
11636 Add `avoid_cursor_p' field.
11637
11638 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
11639 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
11640 (append_glyph, append_composite_glyph, produce_image_glyph)
11641 (append_stretch_glyph): Initialize avoid_cursor_p.
11642 (get_it_property): Rename from `get_line_height_property'.
11643 (x_produce_glyphs): Use get_it_property.
11644 (handle_line_prefix, push_display_prop): New functions.
11645 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
11646 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
11647 New variables.
11648 (syms_of_xdisp): Initialize them.
11649
116502008-06-30 Kenichi Handa <handa@m17n.org>
11651
11652 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
11653 XftDefaultSubstitute (they are called in XftFontMatch).
11654 (xftfont_open): Fix args to ftfont_font_format.
11655
11656 * ftfont.c (fc_charset_table): New member lang.
11657 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 11658 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
11659 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
11660 (ftfont_open): Fix args to ftfont_font_format.
11661 (ftfont_font_format): New arg filename.
11662
116632008-06-30 Chong Yidong <cyd@stupidchicken.com>
11664
11665 * xfaces.c (Finternal_merge_in_global_face): If default face was
11666 modified, realize it again. Update the font face attribute.
11667
116682008-06-29 Jason Rumney <jasonr@gnu.org>
11669
11670 * w32term.c (x_set_frame_alpha): Fix logic.
11671
116722008-06-29 Kenichi Handa <handa@m17n.org>
11673
11674 * fontset.c (Finternal_char_font): Return font-object instead of
11675 font-name.
11676
11677 * composite.c (get_composition_id): Fix the width calculation for TAB.
11678
116792008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
11680
11681 * indent.c (Fvertical_motion): Properly handle float column arg.
11682
116832008-06-28 Jason Rumney <jasonr@gnu.org>
11684
11685 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
11686 (pfnSetLayeredWindowAttributes): New function pointer.
11687 (w32_initialize): Initialize it when supported.
11688 (x_set_frame_alpha): New function.
11689
11690 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
11691 (w32_frame_parm_handlers): Set alpha handler.
11692
11693 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
11694
116952008-06-27 Jason Rumney <jasonr@gnu.org>
11696
11697 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
11698 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
11699 (w32_to_x_charset, x_to_w32_charset)
11700 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
11701 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
11702 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
11703 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
11704 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
11705 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
11706 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
11707 (Qw32_charset_unicode): Remove.
11708 (syms_of_w32fns): Update for above changes.
11709
11710 * w32font.c (w32_to_x_charset, x_to_w32_charset)
11711 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
11712 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
11713 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
11714 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
11715 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
11716 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
11717 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
11718 (syms_of_w32font): Update for above changes.
11719
117202008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
11721
11722 * s/usg5-4.h: Fix previous change: keep the correct branch of a
11723 removed #if.
11724 (USG_SHARED_LIBRARIES): Remove duplicate definition.
11725
117262008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 11727 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
11728
11729 * makefile.w32-in (LOCAL_FLAGS):
11730 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
11731
11732 * sysdep.c (_spawnlp, _getpid):
11733 Declare with explicit _cdecl instead of _CRTAPI1.
11734
11735 * editfns.c (Fget_internal_run_time):
11736 Check for WINDOWSNT with #ifdef, not #if.
11737
117382008-06-26 Jason Rumney <jasonr@gnu.org>
11739
11740 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
11741
11742 * w32term.c (x_draw_glyph_string_foreground)
11743 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
11744 Use FONT_HANDLE macro.
11745 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
11746
11747 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
11748 (uniscribe_encode_char): Use FONT_HANDLE macro.
11749
11750 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
11751 (w32font_text_extents): Use precast w32_font.
11752 (w32font_close): Free cached metrics.
11753 (w32font_open_internal): Allocate space for name on stack.
11754
117552008-06-26 Chong Yidong <cyd@stupidchicken.com>
11756
11757 * xdisp.c (extend_face_to_end_of_line): Fix last change.
11758
117592008-06-26 Jason Rumney <jasonr@gnu.org>
11760
11761 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
11762 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
11763
117642008-06-26 Juanma Barranquero <lekktu@gmail.com>
11765
11766 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
11767
117682008-06-26 Jason Rumney <jasonr@gnu.org>
11769
11770 * w32bdf.c, w32bdf.h: Remove obsolete files.
11771
11772 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
11773
11774 * w32gui.h: Don't include w32bdf.h.
11775 (XCharStruct, enum w32_char_font_type, W32FontStruct):
11776 Remove obsolete font support.
11777
11778 * w32font.h (struct w32font_info): Remove compat_w32_font.
11779 Add hfont member.
11780 (FONT_COMPAT): Remove obsolete macro.
11781
11782 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
11783 (w32font_encode_char, w32font_text_extents): Use new hfont member.
11784 (w32font_open_internal): Remove compat code. Set new hfont member.
11785 (Fx_select_font): Use new hfont member.
11786
11787 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
11788 (uniscribe_encode_char): Use new hfont member.
11789
11790 * w32term.c (x_draw_glyph_string_foreground)
11791 (x_draw_composite_glyph_string_foreground): Use new hfont member.
11792 (x_draw_glyph_string): Use metrics in w32font_info.
11793
117942008-06-26 Kenichi Handa <handa@m17n.org>
11795
11796 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
11797
117982008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
11799
11800 * unexnext.c:
11801 * m/ews4800.h:
11802 * m/hp9000s300.h:
11803 * m/ibm370aix.h:
11804 * m/mips-siemens.h:
11805 * m/ncr386.h:
11806 * m/next.h:
11807 * m/pmax.h:
11808 * m/powerpcle.h:
11809 * m/tandem-s2.h:
11810 * s/386bsd.h:
11811 * s/bsd386.h:
11812 * s/bsd4-1.h:
11813 * s/bsd4-2.h:
11814 * s/bsdos2-1.h:
11815 * s/bsdos2.h:
11816 * s/bsdos3.h:
11817 * s/bsdos4.h:
11818 * s/nextstep.h:
11819 * s/ultrix4-3.h:
11820 * s/usg5-0.h:
11821 * s/usg5-2-2.h:
11822 * s/usg5-2.h:
11823 * s/usg5-4-3.h:
11824 * s/ux4800.h:
11825 * s/uxpds.h:
11826 * s/uxpv.h: Remove support for obsolete systems.
11827 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 11828 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
11829 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
11830 Remove, insert contents in s/aix4-2.h.
11831 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
11832 * s/bsd4-3.h: Rename to ...
11833 * s/bsd-common.h: ... this.
11834 * data.c:
11835 * doc.c:
11836 * ecrt0.c:
11837 * emacs.c:
11838 * fileio.c:
11839 * floatfns.c:
11840 * keyboard.c:
11841 * mem-limits.h:
11842 * print.c:
11843 * process.c:
11844 * sysdep.c:
11845 * syssignal.h:
11846 * systty.h:
11847 * syswait.h:
11848 * term.c:
11849 * unexec.c:
11850 * unexelf.c:
11851 * unexhp9k800.c:
11852 * m/hp800.h:
11853 * m/ibmrs6000.h:
11854 * m/mips.h:
11855 * m/vax.h:
11856 * s/darwin.h:
11857 * s/freebsd.h:
11858 * s/gnu.h:
11859 * s/ms-w32.h:
11860 * s/msdos.h:
11861 * s/netbsd.h:
11862 * s/template.h: Remove references to obsolete variables.
11863
11864 * Makefile.in: Add dependencies for all unexec files.
11865 (admindir): Remove unused variable.
11866 (UNEXEC_SRC): Remove references.
11867
118682008-06-25 Chong Yidong <cyd@stupidchicken.com>
11869
11870 * xfns.c (x_default_font_parameter): If Xft is available, first
11871 try Monospace-12 for the default font.
11872
118732008-06-25 Jason Rumney <jasonr@gnu.org>
11874
11875 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
11876
118772008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
11878
11879 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
11880
11881 * buffer.c (syms_of_buffer): Remove default-word-wrap.
11882
118832008-06-25 Juanma Barranquero <lekktu@gmail.com>
11884
11885 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
11886 <scroll-conservatively>: Fix typo in docstring.
11887
11888 * xselect.c (Fx_send_client_event): Doc fix.
11889
118902008-06-25 Kenichi Handa <handa@m17n.org>
11891
11892 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
11893
11894 * font.c (font_parse_fcname): Remove unused variables.
11895 (font_sort_entites): Delete the arg SPEC. Caller changed.
11896 Fix for the case of ! best_only.
11897 (font_delete_unmatched): Check DPI and AVGWIDTH too.
11898
11899 * lisp.h (Fstring_to_unibyte): EXFUN it.
11900
11901 * character.h (str_to_unibyte): Extern it.
11902
11903 * character.c (str_to_unibyte): New function.
11904
11905 * fns.c (Fstring_to_unibyte): New function.
11906 (syms_of_fns): Defsubr it.
11907
119082008-06-24 Kenichi Handa <handa@m17n.org>
11909
11910 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
11911 DPI too.
11912 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
11913
119142008-06-24 Andreas Schwab <schwab@suse.de>
11915
11916 * Makefile.in (${lispsource}loaddefs.el): Rename from
11917 ../lisp/loaddefs.el.
11918 (bootstrap-clean): Do what distclean does but don't remove
11919 Makefile.
11920 (distclean): Depend on bootstrap-clean and remove Makefile.
11921
119222008-06-24 Chong Yidong <cyd@stupidchicken.com>
11923
11924 * buffer.h (struct buffer): New member word_wrap.
11925
11926 * buffer.c (syms_of_buffer): New variables default-word-wrap and
11927 word-wrap.
11928 (init_buffer_once): Initialize them.
11929
11930 * dispextern.h (struct it): Replace bool truncate_lines_p with a
11931 line_wrap enum possessing three possible values.
11932
11933 * termopts.h: Replace truncate_partial_width_windows with
11934 Vtruncate_partial_width_windows.
11935
11936 * dispnew.c (direct_output_for_insert): Avoid direct output when
11937 inserting a space with word wrap on.
11938
11939 * indent.c (compute_motion): Obey integer values of
11940 truncate-partial-width-windows.
11941
11942 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
11943 replacing truncate_partial_width_windows.
11944 (init_iterator): If Vtruncate_partial_width_windows is an integer,
11945 truncate only if the window width is below that integer.
11946 (start_display, resize_mini_window, produce_stretch_glyph)
11947 (display_string, move_it_in_display_line_to): Use line_wrap.
11948 (back_to_previous_visible_line_start, reseat_1): Reset
11949 string_from_display_prop_p.
11950 (display_line): Extend default face to end of line when wrapping.
11951
119522008-06-24 Kim F. Storm <storm@cua.dk>
11953
11954 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
11955 to wrap continued lines at word boundaries.
11956
119572008-06-24 Jason Rumney <jasonr@gnu.org>
11958
11959 * font.c (Ffont_face_attributes): Multiply pixel size before point
11960 conversion to avoid multiplying rounding error.
11961
119622008-06-23 Jason Rumney <jasonr@gnu.org>
11963
11964 * w32term.c (x_draw_glyph_string_background)
11965 (x_draw_glyph_string): Remove old bdf font code.
11966
11967 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
11968
119692008-06-22 Kenichi Handa <handa@m17n.org>
11970
11971 * font.c (font_find_for_lface): Try the adstyle specified in
11972 the property of LFACE_FONT of LFACE (if any).
11973
119742008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 11975 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
11976
11977 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
11978
119792008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
11980
11981 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
11982 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
11983 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
11984 (witness-emacs): Remove.
11985 (lisp, shortlisp): Move loaddefs.el earlier.
11986 (mostlyclean): Forget about witness-emacs.
11987
119882008-06-22 Glenn Morris <rgm@gnu.org>
11989
11990 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
11991 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
11992
119932008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11994
11995 * Makefile.in (PRECOMP): Remove.
11996 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
11997 (witness-emacs): Run `compile-first'.
11998 (.el.elc): Use the new compile-onefile target.
11999
120002008-06-21 Kenichi Handa <handa@m17n.org>
12001
12002 * xftfont.c (xftfont_open): Handle QCembolden only when
12003 FC_EMBOLDEN is defined.
12004
120052008-06-21 Andreas Schwab <schwab@suse.de>
12006
12007 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
12008 (.el.elc): Likewise.
12009
120102008-06-21 Miles Bader <miles@gnu.org>
12011
12012 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
12013 build dir, not the lisp source dir.
12014
120152008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
12016
12017 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
12018 (bootstrapclean): Remove.
12019 (.el.elc): New rule.
12020 (PRECOMP): New var.
12021 (../lisp/subdirs.el): Remove.
12022 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
12023 (witness-emacs): New target.
12024 (mostlyclean): Remove witness-emacs as well.
12025 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
12026 Add witness-emacs dependency.
12027
120282008-06-20 Chong Yidong <cyd@stupidchicken.com>
12029
12030 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
12031 defined by the font.
12032
120332008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12034
12035 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
12036 (bootstrap-clean): New target that keeps TAGS around.
12037 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
12038 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
12039
120402008-06-20 Jason Rumney <jasonr@gnu.org>
12041
12042 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
12043 Remove obsolete font code.
12044
12045 * w32font.c (font_matches_spec): Use csb bitfield from font signature
12046 to determine language support.
12047
120482008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12049
12050 * sysdep.c (cfsetspeed): New fun extracted from the code.
12051 (cfmakeraw): Move before first use.
12052
120532008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
12054
12055 * sysdep.c (cfmakeraw): Provide fallback implementation.
12056 (serial_configure): Provide fallback implementation of cfsetspeed.
12057
120582008-06-20 Kenichi Handa <handa@m17n.org>
12059
12060 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
12061 the pattern.
12062
12063 * fontset.c (fontset_from_font): Copy font_spec before changing
12064 the elements.
12065
12066 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
12067
120682008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12069
12070 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
12071 for explicit `font' parameters.
12072
12073 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
12074
120752008-06-19 Kenichi Handa <handa@m17n.org>
12076
12077 * frame.c: Include <ctype.h>.
12078 (x_set_font_backend): Allow spacing characters in the X resource
12079 for FontBackend.
12080
120812008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
12082
12083 * w32fns.c, xfns.c (Qfont_param): New var.
12084 (syms_of_w32fns): Initialize it.
12085 (x_default_font_parameter): Record explicit `font' into
12086 `font-parameter'.
12087
120882008-06-18 Kenichi Handa <handa@m17n.org>
12089
12090 * font.c (font_parse_xlfd): Fix previous change.
12091 (font_parse_fcname): Don't use :fc-unknown-spec.
12092 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
12093 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
12094 (font_add_log): Prepend the driver name to the resulting fonts.
12095
12096 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
12097 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
12098 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
12099
12100 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
12101 (QCembolden): New variables.
12102 (syms_of_xftfont): DEFSYM them.
12103 (xftfont_open): Call XftFontMatch. Don't trust the result of
12104 XftTextExtents8 if the pixel_size is less than 5.
12105
121062008-06-18 Andreas Schwab <schwab@suse.de>
12107
12108 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
12109 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
12110
121112008-06-18 Jason Rumney <jasonr@gnu.org>
12112
12113 * w32font.c (w32font_list, w32font_match): Add logging.
12114
12115 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
12116
121172008-06-17 Chong Yidong <cyd@stupidchicken.com>
12118
12119 * font.c (font_parse_fcname): Store divider characters for
12120 unknown-spec list. For known key symbols, intern using correct
12121 symbol name.
12122
121232008-06-17 Kenichi Handa <handa@m17n.org>
12124
12125 * xfaces.c (realize_default_face): If the frame is not on window
12126 system, set the fontset of face to nil.
12127
121282008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
12129
12130 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
12131
121322008-06-16 Juanma Barranquero <lekktu@gmail.com>
12133
12134 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
12135 (build_font_name_from_vector): Delete externs.
12136
12137 * xfaces.c (struct font_name): Don't declare.
12138
121392008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
12140
12141 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
12142
121432008-06-16 Chong Yidong <cyd@stupidchicken.com>
12144
12145 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
12146
121472008-06-16 Juanma Barranquero <lekktu@gmail.com>
12148
12149 * font.c (Ffont_spec): Fix usage in docstring.
12150 (Ffont_face_attributes): Doc fix.
12151
121522008-06-16 Andreas Schwab <schwab@suse.de>
12153
12154 * font.c (Ffont_face_attributes): Fix definition.
12155
121562008-06-16 Jason Rumney <jasonr@gnu.org>
12157
12158 * font.h (font_style_symbolic_from_value): Remove.
12159
12160 * font.c (font_style_symbolic_from_value): Remove.
12161 (font_style_symbolic): Revert to pre 2008-06-13 version.
12162
12163 * w32font.c (w32_to_fc_weight): New function.
12164 (w32font_full_name, logfont_to_fcname): Use it.
12165
121662008-06-16 Kenichi Handa <handa@m17n.org>
12167
12168 * font.c (font_check_object): Delete it.
12169 (font_clear_cache): Check if a font-object is alive.
12170 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
12171 font-object to nil.
12172 (font_close_object): Don't check FONT_CLOSE_OBJECT.
12173 (font_at): Don't call font_check_object.
12174 (Ffont_get): Return a symbol for :weight, :slant, and :width.
12175
121762008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
12177
12178 * puresize.h (BASE_PURESIZE): Increase to 1230000.
12179
121802008-06-16 Chong Yidong <cyd@stupidchicken.com>
12181
12182 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
12183
121842008-06-15 Chong Yidong <cyd@stupidchicken.com>
12185
12186 * font.c (font_parse_fcname): Only one decimal point.
12187 (font_unparse_fcname): Handle data in family and foundry indices
12188 as symbols, not strings.
12189 (font_unparse_gtkname, Ffont_face_attributes): New functions.
12190
12191 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
12192
12193 * font.h (font_unparse_gtkname): Add prototype.
12194
121952008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
12196
12197 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
12198
121992008-06-15 Andreas Schwab <schwab@suse.de>
12200
12201 * font.c (font_update_drivers): Fix crash when no drivers match.
12202
122032008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
12204
12205 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
12206 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
12207
122082008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
12209
12210 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
12211
122122008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
12213
12214 * process.c (Fserial_process_configure, Fprocess_send_eof):
12215 Use EQ to compare Lisp_Objects.
12216
122172008-06-13 Jason Rumney <jasonr@gnu.org>
12218
12219 * w32fns.c (Fw32_select_font): Remove old font API function.
12220
12221 * w32font.c (logfont_to_fcname): New function.
12222 (Fx_select_font): New font dialog function compatible with
12223 GTK/fontconfig version.
12224
12225 * font.c (font_style_symbolic_from_value): New function.
12226 (font_style_symbolic): Use it.
12227
12228 * font.h (font_style_symbolic_from_value): Declare new function.
12229
122302008-06-13 Juanma Barranquero <lekktu@gmail.com>
12231
12232 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
12233 <font-width-table>: Fix typos in docstrings.
12234
122352008-06-13 Daniel Engeler <engeler@gmail.com>
12236
12237 These changes add serial port access.
12238 * process.c: Add HAVE_SERIAL.
12239 (Fdelete_process, Fprocess_status, Fset_process_buffer)
12240 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
12241 (list_processes_1, select_wrapper, Fstop_process)
12242 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
12243 (status_notify): Modify to handle serial processes.
12244 [HAVE_SERIAL] (Fserial_process_configure)
12245 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
12246 New functions.
12247 * process.h (struct Lisp_Process): Add `type'.
12248 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
12249 New functions.
12250 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
12251 serial ports.
b71ac3dd 12252 (serial_open, serial_configure): New functions.
aac0c6e3
MR
12253 * w32.h: Add FILE_SERIAL.
12254 (struct _child_process): Add ovl_read, ovl_write.
12255
122562008-06-13 Kenichi Handa <handa@m17n.org>
12257
12258 * dispextern.h (enum lface_attribute_index): New member
12259 LFACE_FOUNDRY_INDEX.
12260
12261 * font.c (font_score): Delete arg alternate_families. Check only
12262 weight, slant, width, and size. Ignore the difference of alias
12263 style symbols.
12264 (font_sort_entites): Adjust for the above change. Reflect the
12265 order of font-driver to scores.
12266 (font_list_entities): Don't check alternate_familes here.
12267 (font_clear_prop): Handle foundry.
12268 (font_update_lface): Don't parse "foundry-family" form here.
12269 Handle FONT_FOUNDRY_INDEX.
12270 (font_find_for_lface): Likewise. Handle alternate families here.
12271 If registry is nil, try iso8859-1 and ascii-0.
12272 (font_open_for_lface): Pay attention to size in ENTITY.
12273 (font_open_by_name): Simplify by calling font_load_for_lface.
12274 (free_font_driver_list): Delete it.
12275 (font_update_drivers): Preserve the order of backends.
12276 (syms_of_font): Setting of sort_shift_bits adjusted for the change
12277 of font_score and font_sort_entites.
12278 (font_update_sort_order): Likewise.
12279
12280 * xfaces.c (LFACE_FOUNDRY): New macro.
12281 (check_lface_attrs): Check foundry.
12282 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
12283 (merge_face_vectors): Check foundry.
12284 (merge_face_ref): Likewise.
12285 (Finternal_set_lisp_face_attribute): Likewise.
12286 (x_update_menu_appearance): Likewise.
12287 (Finternal_get_lisp_face_attribute): Likewise.
12288 (lface_hash): Likewise.
12289 (lface_same_font_attributes_p): Likewise.
12290 (x_supports_face_attributes_p): Likewise.
12291 (tty_supports_face_attributes_p): Likewise.
12292 (Finternal_set_alternative_font_family_alist): Intern strings.
12293 (Finternal_set_alternative_font_registry_alist): Downcase strings.
12294 (realize_default_face): Set LFACE_FOUNDRY (lface).
12295
12296 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
12297 font-driver at first.
12298
12299 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
12300
123012008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12302
12303 * lread.c (Fload): Use xfree, not free on saved_doc_string.
12304
123052008-06-12 Jim Meyering <meyering@redhat.com>
12306
12307 Make unexec_free handle NULL the same way free does.
12308 * unexmacosx.c (unexec_free): Ignore a NULL argument.
12309
123102008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
12311
12312 * character.h (CHAR_TO_BYTE_SAFE): New macro.
12313 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
12314 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
12315 (WEAK_ALIAS): Simplify.
12316 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
12317 when searching a unibyte buffer.
12318
123192008-06-12 Chong Yidong <cyd@stupidchicken.com>
12320
12321 * xfns.c (Fx_select_font): Rename from x-font-dialog.
12322
123232008-06-12 Juanma Barranquero <lekktu@gmail.com>
12324
12325 * w32font.c: Include ctype.h.
12326
123272008-06-11 Jason Rumney <jasonr@gnu.org>
12328
12329 * w32font.c (w32font_encode_char): Detect missing glyphs that are
12330 misreported as space.
12331 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
12332 as aliases for registry iso10646-1.
12333
123342008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
12335
12336 * buffer.c (clone_per_buffer_values): Skip `name'.
12337
123382008-06-11 Chong Yidong <cyd@stupidchicken.com>
12339
12340 * font.c (font_parse_fcname): Fix last change; accept decimal
12341 points in font size.
12342
123432008-06-10 Jason Rumney <jasonr@gnu.org>
12344
12345 * w32uniscribe.c (add_opentype_font_name_to_list):
12346 Skip non unicode fonts.
12347
123482008-06-10 Chong Yidong <cyd@stupidchicken.com>
12349
12350 * xfns.c (Fx_font_dialog): New function.
12351
12352 * gtkutil.c (xg_dialog_response_cb): Rename from
12353 xg_file_response_callback.
12354 (pop_down_dialog): Rename from pop_down_file_dialog.
12355 (xg_get_file_name): Callers changed.
12356 (xg_get_font_name): New function.
12357
12358 * gtkutil.h (xg_get_font_name): Insert prototype.
12359
123602008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
12361
12362 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
12363 x_underline_minimum_display_offset.
12364 (syms_of_xdisp): Declare it here rather than in xterm.c.
12365 * dispextern.h (underline_minimum_offset): Declare it.
12366 * w32term.c (x_draw_glyph_string): Use it.
12367 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
12368 (syms_of_xterm): Don't declare it any more.
12369 (x_draw_glyph_string): Adjust to the new name.
12370
8719abec 123712008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
12372
12373 * xterm.c (x_underline_minimum_display_offset): New var.
12374 (x_draw_glyph_string): Use it.
12375 (syms_of_xterm): Declare it.
12376
123772008-06-10 Chong Yidong <cyd@stupidchicken.com>
12378
12379 * font.c (font_parse_fcname): Accept GTK-style font names too.
12380
123812008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
12382
12383 * dired.c (file_name_completion): Don't return t if the match is exact
12384 but with different capitalization.
12385 * minibuf.c (Ftry_completion): Simplify.
12386
12387 * window.c (Vwindow_point_insertion_type): New var.
12388 (set_window_buffer): Use it.
12389 (syms_of_window): Init and export it to Lisp.
12390
123912008-06-10 Kenichi Handa <handa@m17n.org>
12392
12393 * font.h (font_intern_prop): Prototype adjusted.
12394
12395 * font.c (font_intern_prop): New arg force_symbol.
12396 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
12397 Adjust for the change of font_intern_prop.
12398
12399 * ftfont.c (ftfont_pattern_entity):
12400 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
12401 (w32_registry):
12402 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
12403 the change of font_intern_prop.
12404
124052008-06-09 Juanma Barranquero <lekktu@gmail.com>
12406
12407 * w32menu.c (digest_single_submenu): Declare extern.
12408
124092008-06-09 Jason Rumney <jasonr@gnu.org>
12410
12411 * w32term.c (x_make_frame_visible): Use alternate restore flags.
12412
12413 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
12414 (parse_single_submenu): Remove.
12415 (digest_single_submenu): Remove.
12416 (syms_of_w32menu): Don't initialise variables that have moved
12417 to menu.c.
12418 (set_frame_menubar): Sync with version in xmenu.c.
12419 (w32_menu_show): Sync with xmenu_show in xmenu.c.
12420
12421 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
12422 Make static again.
12423
124242008-06-09 Jason Rumney <jasonr@gnu.org>
12425
12426 Changes to w32 files related to the move of common menu code
12427 to menu.c on 2008-06-08 by Chong Yidong.
12428
12429 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
12430 defs to w32gui.h.
12431 (single_keymap_panes, push_menu_item, push_menu_pane):
12432 Make globally visible.
12433
12434 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
12435 (local_free, malloc_widget_value, free_widget_value)
12436 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
12437 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
12438 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
12439 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
12440 (menu_items, menu_items_allocated, menu_items_used)
12441 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
12442 (init_menu_items, finish_menu_items, discard_menu_items)
12443 (grow_menu_items, push_submenu_start, push_submenu_end)
12444 (push_left_right_boundary, push_menu_pane, push_menu_item)
12445 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
12446 (free_menubar_widget_tree_value, parse_single_submenu)
12447 (update_submenu_strings): Remove functions.
12448 (xmalloc_widget_value): Remove and declare extern.
12449
12450 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
12451 (OBJ1): Build it.
12452
12453 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
12454 (local_heap, local_alloc, local_free, malloc_widget_value)
12455 (free_widget_value): Define here.
12456
124572008-06-09 Kenichi Handa <handa@m17n.org>
12458
12459 * font.h (Qascii_0): Extern it.
12460
12461 * font.c (Qascii_0): New variable.
12462 (syms_of_font): DEFSYM it.
12463 (font_open_by_name): If the registry "iso8859-1" fails, try also
12464 "ascii-0".
12465
12466 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
12467
124682008-06-08 Kenichi Handa <handa@m17n.org>
12469
12470 * .gdbinit (xfont): New command.
12471
124722008-06-08 Andreas Schwab <schwab@suse.de>
12473
12474 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
12475 * Makefile.in (menu.o): Update dependencies.
12476
12477 * Makefile.in (obj): Always add menu.o.
12478 * emacs.c (main): Always call syms_of_menu.
12479 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
12480
124812008-06-08 Chong Yidong <cyd@stupidchicken.com>
12482
12483 * Makefile.in: Compile menu.c.
12484
12485 * lisp.h: Declare syms_of_menu.
12486
12487 * emacs.c (main): Call syms_of_menu.
12488
12489 * keyboard.h: Relocate platform-independent menu definitions from
12490 xmenu.c.
12491
12492 * menu.c: New file. Relocate platform-independent menu
12493 definitions from xmenu.c. Suggested by Adrian Robert.
12494
12495 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 12496 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
12497 (menu_items_used, menu_items_n_panes)
12498 (menu_items_submenu_depth): Move to keyboard.h.
12499 (init_menu_items, finish_menu_items, unuse_menu_items)
12500 (discard_menu_items, restore_menu_items, save_menu_items)
12501 (grow_menu_items, push_submenu_start, push_submenu_end)
12502 (push_left_right_boundary, push_menu_pane, push_menu_item)
12503 (keymap_panes, single_keymap_panes, single_menu_item)
12504 (list_of_panes, list_of_items, find_and_call_menu_selection)
12505 (xmalloc_widget_value, free_menubar_widget_value_tree)
12506 (parse_single_submenu, digest_single_submenu)
12507 (update_submenu_strings): Move to menu.c.
12508
125092008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
12510
12511 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
12512
125132008-06-06 Miles Bader <miles@gnu.org>
12514
12515 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
12516 face, not frame default.
12517
125182008-06-05 Martin Rudalics <rudalics@gmx.at>
12519
12520 * window.c (pop_up_windows, pop_up_frames)
12521 (display_buffer_reuse_frames, Vpop_up_frame_function)
12522 (Vdisplay_buffer_function, Veven_window_heights)
12523 (Vspecial_display_buffer_names, Vspecial_display_regexps)
12524 (Vspecial_display_function, Vsame_window_buffer_names)
12525 (Vsame_window_regexps, split_height_threshold)
12526 (Vsplit_window_preferred_function): Move those vars to window.el.
12527 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
12528 (Fdisplay_buffer): Move those functions to window.el.
12529 (syms_of_window): Remove corresponding declarations.
12530 (display_buffer): New function.
12531 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
12532 * dispnew.c (Flast_nonminibuf_frame): New function.
12533 * buffer.c (Fpop_to_buffer): Move to window.el.
12534
125352008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12536
12537 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
12538
125392008-06-05 Kenichi Handa <handa@m17n.org>
12540
12541 * coding.c (detect_coding): Fix previous change.
12542 (detect_coding_system): Likewise.
12543
125442008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12545
12546 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
12547
12548 * keymap.c (Vminibuffer_local_filename_must_match_map):
12549 Rename from Vminibuffer_local_must_match_filename_map.
12550 (syms_of_keymap):
12551 * minibuf.c (Fcompleting_read): Adjust accordingly.
12552 * commands.h: Rename declaration as well.
12553
125542008-06-05 Kenichi Handa <handa@m17n.org>
12555
12556 * font.c (Ffont_spec): Don't use font_parse_family_registry for
12557 family name.
12558 (Ffont_put): Likewise.
12559
12560 * fontset.c (fontset_find_font): Call font_open_for_lface with the
12561 current font-spec.
12562
12563 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
12564 is unspecified.
12565
12566 * xfaces.c (realize_x_face): If the font-related face attributes
12567 are the same as those of default face, realize a new fontset from
12568 default->fontset.
12569 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
12570
125712008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12572
12573 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
12574 (move_it_in_display_line): New wrapper.
12575
12576 * window.c (window_scroll_pixel_based_preserve_x)
12577 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
12578 (window_scroll_pixel_based, window_scroll_line_based):
12579 Use them to preserve column positions.
12580 (syms_of_window): Initialize them.
12581
12582 * indent.c (Fvertical_motion): Extend first arg to allow passing an
12583 (HPOS . VPOS) pair.
12584
12585 * dispextern.h (move_it_in_display_line): Declare.
12586
125872008-06-05 Juanma Barranquero <lekktu@gmail.com>
12588
12589 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
12590 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
12591 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
12592
125932008-06-04 Juanma Barranquero <lekktu@gmail.com>
12594
12595 * window.c (Fset_window_parameter): Doc fix.
12596 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
12597
125982008-06-04 Joakim Verona <joakim@verona.se>
12599
12600 * window.h (struct window): Add new member window_parameters.
12601
12602 * window.c (Fwindow_parameters, Fwindow_parameter)
12603 (Fset_window_parameter): New defuns.
12604 (syms_of_window): Defsubr the new defuns.
12605 (make_window): Initialize window_parameters to nil.
12606
126072008-06-04 John Paul Wallington <jpw@pobox.com>
12608
12609 * eval.c (Fdefmacro): Doc fix.
12610
126112008-06-04 Kenichi Handa <handa@m17n.org>
12612
12613 * coding.c (detect_coding): Fix handling of coding->head_ascii.
12614 Be sure to call setup_coding_system when we find a proper coding system.
12615 (detect_coding_system): Fix handling of coding->head_ascii.
12616
126172008-06-03 Andreas Schwab <schwab@suse.de>
12618
12619 * font.c (font_prop_validate_spacing): Fix last change.
12620
126212008-06-03 Kenichi Handa <handa@m17n.org>
12622
12623 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
12624 (font_parse_fcname): Fix handling of unknown key.
12625
12626 * xfont.c (xfont_list): Try an alias.
12627
12628 * charset.c (char_charset): Return NULL if the arg charset_list is
12629 specified and C doesn't belong to any of them.
12630
126312008-06-02 Chip Coldwell <coldwell@redhat.com>
12632
12633 * font.c (font_pixel_size): Don't take cdr of an integer.
12634
126352008-06-02 Jim Meyering <meyering@redhat.com>
12636
12637 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
12638 * alloc.c (xfree): Return right away for a NULL arg.
12639 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
12640 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
12641 * mac.c (create_apple_event_from_event_ref): Likewise.
12642 (create_apple_event_from_drag_ref, cfstring_create_normalized):
12643 Likewise.
12644 * doprnt.c (doprnt1): Likewise.
12645 * frame.c (frame): Likewise.
12646 * keyboard.c (wipe_kboard): Likewise.
12647 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
12648 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
12649 * term.c (tty_default_color_capabilities, maybe_fatal)
12650 (delete_tty): Likewise.
12651 * w16select.c (string): Likewise.
12652 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
12653 * w32bdf.c (w32_free_bdf_font): Likewise.
12654 * w32fns.c (w32_unload_font): Likewise.
12655 * w32font.c (w32font_close): Likewise.
12656 * window.c (size_window): Likewise.
12657 * xselect.c (receive_incremental_selection): Likewise.
12658 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
12659 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
12660 * w32.c (stat): Likewise.
12661
12662 Remove useless if-before-free tests.
12663 * editfns.c (Fset_time_zone_rule): Likewise.
12664 * lread.c (nosuffix): Likewise.
12665 * ralloc.c (get_bloc): Likewise.
12666 * regex.c (reg_free): Likewise.
12667 * xftfont.c (xftfont_open, xftfont_close): Likewise.
12668 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
12669 * xsmfns.c (smc_save_yourself_CB): Likewise.
12670
126712008-06-02 Kenichi Handa <handa@m17n.org>
12672
12673 * font.c (font_find_for_lface): Handle float font size.
12674 (font_open_for_lface): Likewise.
12675
12676 * xfaces.c (x_supports_face_attributes_p): Check face->font before
12677 comparing the properties.
12678
126792008-06-01 Jason Rumney <jasonr@gnu.org>
12680
12681 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
12682 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
12683 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
12684 Don't add empty script list.
12685 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
12686
126872008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
12688
12689 * Makefile.in (dot, dotdot): Remove, update users.
12690 ".." has been used elsewhere in the file for a long time.
12691 (LIBXT_STATIC): Remove conditional based on unused variable.
12692
126932008-06-01 Miles Bader <miles@gnu.org>
12694
12695 * xfaces.c (Vface_remapping_alist): New variable.
12696 (syms_of_xfaces): Initialize it.
12697 (enum named_merge_point_kind): New type.
12698 (struct named_merge_point): Add `named_merge_point_kind' field.
12699 (push_named_merge_point): Make cycle detection respect different
12700 named-merge-point kinds.
12701 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
12702 Remove face-name alias resolution.
12703 (lface_from_face_name): New definition using
12704 `lface_from_face_name_no_resolve'.
12705 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
12706 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
12707 (get_lface_attributes): New definition that layers face-remapping on
12708 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
12709 (lookup_basic_face): New function.
12710 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
12711 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
12712 `get_lface_attributes'.
12713 (face_at_buffer_position): Use `lookup_basic_face' to lookup
12714 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
12715 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
12716
12717 * xdisp.c (init_iterator): Pass base_face_id through
12718 `lookup_basic_face' when we actually use it as a face-id.
12719 (handle_single_display_prop): Use `lookup_basic_face' to lookup
12720 DEFAULT_FACE_ID.
12721
12722 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
12723 lookup the initial face-id.
12724
12725 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
12726
127272008-06-01 Juanma Barranquero <lekktu@gmail.com>
12728
12729 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
12730 (Fremove_text_properties): Fix typos in docstrings.
12731
127322008-05-31 Kenichi Handa <handa@m17n.org>
12733
12734 * font.c (font_list_entities): Fix the car part of data to be
12735 stored in the cache.
12736
12737 * ftfont.c (ftfont_font_format): Don't use strcasestr.
12738
127392008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
12740
12741 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
12742 Add a `test' argument so another predicate than `equal' can be used.
12743 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
12744 (map_char_table): Remove unused vars `c' and `i'.
12745 * lisp.h (Foptimize_char_table): Adjust declaration.
12746 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
12747
127482008-05-30 Kenichi Handa <handa@m17n.org>
12749
12750 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
12751 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
12752 defined.
12753
127542008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
12755
12756 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
12757 (Fmake_variable_frame_local): Disallow mixing buffer-local and
12758 frame-local settings for the same variable.
12759
127602008-05-30 Kenichi Handa <handa@m17n.org>
12761
12762 * fontset.c (Ffont_info): Move to font.c.
12763 (syms_of_fontset): Delete defsubr of Sfont_info.
12764
12765 * font.c (font_style_to_value, font_score): Delete casting of the
12766 args to xstcasecmp.
12767 (register_font_driver): Increment num_font_drivers only when
12768 registering the driver globally.
12769 (Ffont_info): Move from fontset.c. Handle a font object too.
12770 (syms_of_font): Defsubr Sfont_info.
12771
127722008-05-29 Kenichi Handa <handa@m17n.org>
12773
12774 * coding.h (enum define_coding_utf8_arg_index): New enum.
12775 (enum coding_attr_index): Change coding_attr_utf_16_bom to
12776 coding_attr_utf_bom.
12777 (enum utf_bom_type): Rename from utf_16_bom_type.
12778 (struct utf_16_spec): Adjust for the above change.
12779 (struct coding_system): Add utf_8_bom in `spec' union.
12780
12781 * coding.c (CODING_UTF_8_BOM): New macro.
12782 (enum coding_category): Delete coding_category_utf_8, add
12783 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
12784 coding_category_utf_8_sig.
12785 (CATEGORY_MASK_UTF_8): Delete it.
12786 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
12787 (CATEGORY_MASK_UTF_8_SIG): New macros.
12788 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
12789 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
12790 CATEGORY_MASK_UTF_8_SIG.
12791 (CATEGORY_MASK_UTF_8): New macro.
12792 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
12793 (detect_coding_utf_8): Check BOM.
12794 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
12795 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
12796 (encode_coding_utf_16): Likewise.
12797 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
12798 (detect_coding, detect_coding_system): Handle utf-8-auto.
12799 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
12800 (syms_of_coding): Fix setting up of Vcoding_category_table.
12801
128022008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
12803
12804 * process.c (Faccept_process_output): If `millisec' is non-nil,
12805 `seconds' default to 0.
12806 (wait_reading_process_output): Also return non-nil if we read output
12807 from a non-running process.
12808
128092008-05-29 Jason Rumney <jasonr@gnu.org>
12810
12811 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
12812 `raster' specified.
12813 (add_font_entity_to_list): Allow non-opentype truetype fonts back
12814 in the uniscribe backend, but disallow any font that has no
12815 unicode subrange support.
12816
128172008-05-29 Juanma Barranquero <lekktu@gmail.com>
12818
12819 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
12820 Fix typos in docstrings.
12821
128222008-05-29 Kenichi Handa <handa@m17n.org>
12823
12824 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
12825 (Fx_family_fonts): Set frame correctly.
12826
128272008-05-28 Jason Rumney <jasonr@gnu.org>
12828
12829 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
12830
128312008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
12832
12833 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
12834 calling build_annotations.
12835
128362008-05-28 Juanma Barranquero <lekktu@gmail.com>
12837
12838 * coding.c (Fdecode_coding_region, Fencode_coding_region)
12839 (Fencode_coding_string):
12840 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
12841 <latin-extra-code-table>: Fix typos in docstrings.
12842 (syms_of_coding) <coding-system-alist>: Doc fix.
12843 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
12844
128452008-05-28 Kenichi Handa <handa@m17n.org>
12846
12847 * fontset.c (Ffont_info): Don't call font_close_object.
12848
12849 * font.c (font_parse_family_registry): Use Ffont_put to validate
12850 foundry and family.
12851 (font_delete_unmatched): Don't check spacing.
12852 (font_list_entities): Add spacing to the spec to list fonts.
12853
12854 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
12855 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
12856
12857 * coding.c (encode_coding_raw_text): Fix previous change.
12858 (encode_coding_object): When the dst_object is a buffer and is
12859 different from src_object, move gap to PT.
12860
128612008-05-27 Chong Yidong <cyd@stupidchicken.com>
12862
12863 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
12864
128652008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
12866
12867 * coding.c (encode_coding_raw_text): Set coding->produced_char for
12868 all branches. Compute it differently.
12869
12870 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
12871
128722008-05-27 Juanma Barranquero <lekktu@gmail.com>
12873
12874 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
12875 into "else if () ... else ...".
12876
128772008-05-27 Jason Rumney <jasonr@gnu.org>
12878
12879 * w32font.c (w32font_open_internal): Determine if glyph indices
12880 are likely to work here.
12881
128822008-05-27 Chong Yidong <cyd@stupidchicken.com>
12883
12884 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
12885 draw overlap glyphs with appropriate highlighting.
12886
128872008-05-27 Kenichi Handa <handa@m17n.org>
12888
12889 * xfont.c (xfont_open): Fix calculation of font->average_width.
12890
128912008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
12892
12893 * casefiddle.c (casify_object): Try to guess better whether the
12894 argument is a byte or a char.
12895
128962008-05-26 Andreas Schwab <schwab@suse.de>
12897
12898 * xselect.c (x_reply_selection_request): Properly handle format == 32.
12899 Always send multiples of format size.
12900
12901 * xterm.c (x_set_frame_alpha): Fix type mismatch.
12902
129032008-05-26 Jason Rumney <jasonr@gnu.org>
12904
12905 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
12906 (compute_metrics): Don't set failure if we just cleared the cache.
12907 (w32_weight_table): Remove unused variable.
12908 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
12909 backwards compatibility.
12910
129112008-05-25 Kenichi Handa <handa@m17n.org>
12912
12913 * w32term.c (x_draw_glyph_string):
12914 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
12915
12916 * xfaces.c: Delete unused function prototypes.
12917 (xstrlwr, font_frame): Delete them.
12918 (clear_face_cache): Delete unused variable.
12919
12920 * xftfont.c (xftfont_open): Delete unused variable.
12921 If underline_thickness is not 1, adjust underline_position.
12922
12923 * ftxfont.c (ftxfont_open): Delete unused variable.
12924
12925 * fontset.c (face_for_char): Optimize for the case of no charset
12926 property.
12927
12928 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
12929 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
12930 (otf_open, font_otf_capability, generate_otf_features)
12931 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
12932 Comment out by surrounding "#if 0" and "#endif" for the moment.
12933 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
12934 (syms_of_font): Codes for accessing above commented out.
12935
129362008-05-24 Eli Zaretskii <eliz@gnu.org>
12937
12938 * w32proc.c: Include dispextern.h.
12939
12940 * w32.c: Include dispextern.h.
12941
129422008-05-23 Juanma Barranquero <lekktu@gmail.com>
12943
12944 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
12945 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
12946 Fix typos in docstrings.
12947
129482008-05-23 Jason Rumney <jasonr@gnu.org>
12949
12950 * xsmfns.c: Remove includes that are already included by config.h.
12951
129522008-05-23 Kenichi Handa <handa@m17n.org>
12953
12954 * charset.c (Qemacs, charset_emacs): New variables.
12955 (char_charset): Fix for non-Unicode characters.
12956 (syms_of_charset): Define charset_emacs.
12957
12958 * w32term.c (x_draw_glyph_string): Be sure to update
12959 s->underline_thickness and s->underline_position. Be sure to draw
12960 underline within the current line area.
12961
12962 * xterm.c (x_draw_glyph_string): Be sure to update
12963 s->underline_thickness and s->underline_position. Be sure to draw
12964 underline within the current line area.
12965
12966 * fontset.c: Delete unused variables and add casting for char *
12967 throughout the file.
12968 (fontset_font): Try the fallback fonts of the current fontset
12969 before consulting the default fontset.
12970
12971 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
12972
12973 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
12974
129752008-05-22 Jason Rumney <jasonr@gnu.org>
12976
12977 * font.c: Don't include strings.h.
12978
12979 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
12980
12981 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
12982 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
12983 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
12984 to call xstrcasecmp.
12985
12986 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
12987
12988 * fontset.c (fs_query_fontset): Use xstrcasecmp.
12989
12990 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
12991
12992 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
12993
129942008-05-22 Kenichi Handa <handa@m17n.org>
12995
12996 * puresize.h (BASE_PURESIZE): Increase to 1220000.
12997
12998 * font.c (font_prop_validate_style): Adjust for the format
12999 change of font_style_table.
13000
13001 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
13002 two args.
13003
13004 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
13005 two args.
13006
130072008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
13008
13009 * minibuf.c (keys_of_minibuf): Delete.
13010 * lisp.h (keys_of_minibuf): Delete.
13011 * emacs.c (main): Don't call keys_of_minibuf.
13012
130132008-05-22 Kenichi Handa <handa@m17n.org>
13014
13015 * ftfont.c (ftfont_resolve_generic_family): Rename from
13016 ftfont_list_generic_family. Return a single family for each
13017 generic family.
13018 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
13019 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
13020 Call font_add_log.
13021 (ftfont_match): Call font_add_log.
13022
13023 * font.h (Ffont_xlfd_name): EXFUN adjusted.
13024 (FONT_DEBUG): Define it.
13025 (font_add_log): Extern it.
13026 (font_assert): Rename from xassert.
13027
13028 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
13029 (xfont_list_family): Call font_add_log.
13030 (xfont_match): Likewise.
13031 (memq_no_quit): Delete.
13032
13033 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
13034 call of Ffont_xlfd_name.
13035
13036 * xfaces.c (struct table_entry, slant_table, weight_table)
13037 (swidth_table): Move to font.c.
13038
13039 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
13040 xassert are changed to font_assert. Delete many unused variables.
13041 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
13042 New variables.
13043 (struct table_entry): Move from xfaces.c and modified.
13044 (weight_table, slant_table, width_table): Move from xfaces.c and
13045 contents adjusted for the change of struct table_entry.
13046 (font_style_to_value, font_style_symbolic): Adjust for the
13047 format change of font_style_table.
13048 (font_parse_family_registry): Don't overwrite existing foundry and
13049 family of font_spec.
13050 (font_score): Fix calculation of diff for sizes.
13051 (font_sort_entites): Call font_add_log.
13052 (font_delete_unmatched): Return a newly created list.
13053 (font_list_entities): Fix previous change. Call font_add_log.
13054 (font_matching_entity, font_open_entity, font_close_entity):
13055 Call font_add_log.
13056 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
13057 (Finternal_set_font_style_table): Delete.
13058 (BUILD_STYLE_TABLE): New macro.
13059 (build_style_table): New function.
13060 (Vfont_log, font_log_env_checked): New variables.
13061 (font_add_log): New function.
13062 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
13063 Declare Lisp variables "font-weight-table", "font-slant-table",
13064 "font-width-table", and "font-log". Initialize font_style_table.
13065
130662008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
13067
13068 * xterm.c (x_set_frame_alpha): Move declarations before statements.
13069
130702008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 13071 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
13072
13073 * frame.c (Qalpha): Add a new frame parameter `alpha'.
13074 (Vframe_alpha_lower_limit): New variable.
13075 (x_set_alpha): New function.
13076
13077 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
13078
13079 * xfns.c (x-create-frame, Qalpha):
13080 Initialize the frame parameter `alpha'.
13081 * xterm.c (OPAQUE, OPACITY): New.
13082 (x_set_frame_alpha): New function.
13083 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
13084
13085 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
13086 * w32fns.c (w32_frame_parm_handlers): Likewise.
13087
130882008-05-20 Jason Rumney <jasonr@gnu.org>
13089
13090 * w32font.c (add_font_entity_to_list): Don't add non-opentype
13091 truetype fonts to opentype list.
13092
130932008-05-20 Juanma Barranquero <lekktu@gmail.com>
13094
13095 * fontset.c (Ffontset_info): Doc fix.
13096 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
13097 <ignore-relative-composition>: Fix typos in docstrings.
13098
13099 * font.c (syms-of-font) <font-encoding-alist>:
13100 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
13101 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
13102 (Ffont_otf_alternates): Doc fixes.
13103
131042008-05-20 Kenichi Handa <handa@m17n.org>
13105
13106 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
13107 font.h through out the file.
13108 (FONT_DRIVERS): Rename from FONTOBJ.
13109 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
13110 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
13111
13112 * emacs.c (main): Call syms_of_font unconditionally.
13113
13114 * font.h (find_font_encoding): Extern it.
13115
13116 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
13117 fontset.c.
194d44e7 13118 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
13119 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
13120 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
13121 only when HAVE_WINDOW_SYSTEM is defined.
13122 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
13123 when HAVE_WINDOW_SYSTEM is defined.
13124
13125 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
13126 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
13127
13128 * xfaces.c: Include font.h unconditionally.
13129 (merge_face_ref, merge_face_vectors)
13130 (Finternal_set_lisp_face_attribute): Cancel the previous change.
13131
131322008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
13133
13134 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
13135 indirect_variable.
13136 * eval.c (lisp_indirect_variable): New fun.
13137 (Fuser_variable_p): Use it.
13138
131392008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
13140
13141 * lisp.h (indirect_variable):
13142 * data.c (indirect_variable, let_shadows_buffer_binding_p):
13143 Use Lisp_Symbol pointers rather than Lisp_Object.
13144 Adjust callers.
13145 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
13146 To this end, change calling-convention.
13147
13148 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
13149 if some non-hidden buffers are selected by string&pred.
13150
131512008-05-19 Chong Yidong <cyd@stupidchicken.com>
13152
13153 * process.c (wait_reading_process_output): Always check status
13154 when in batch mode.
13155
131562008-05-19 Kenichi Handa <handa@m17n.org>
13157
13158 * font.c (font_list_entities): Fix handling of cache.
13159 (font_matching_entity): Likewise.
13160
13161 * ftfont.c (cs_iso8859_1): Delete.
13162 (ft_face_cache): New variable.
13163 (struct ftfont_info): New member fc_charset_idx.
13164 (ftfont_build_basic_charsets): Delete.
13165 (fc_charset_table): New variable.
13166 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
13167 . FC_CHARSET_IDX) as :font-entity property in the font entity.
13168 Callers changed.
13169 (ftfont_lookup_cache, ftfont_get_charset): New functions.
13170 (ftfont_spec_pattern): New argument fc_charset_idx.
13171 Check registry more rigidly. Change callers.
13172 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
13173 change of :font-entity property of the font.
13174
13175 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
13176 property of the font.
13177
131782008-05-18 Juanma Barranquero <lekktu@gmail.com>
13179
13180 * coding.c (Fcoding_system_p): Rename argument to match docstring.
13181 (Funencodable_char_position, Fcheck_coding_systems_region)
13182 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
13183 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
13184 (Ffind_operation_coding_system, Fset_coding_system_priority)
13185 (Fcoding_system_eol_type): Doc fixes.
13186
131872008-05-17 Glenn Morris <rgm@gnu.org>
13188
13189 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
13190
131912008-05-16 Eli Zaretskii <eliz@gnu.org>
13192
13193 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
13194 and st_gid.
13195
13196 * frame.c (Fdelete_frame): Don't call font_update_drivers if
13197 HAVE_WINDOW_SYSTEM is not defined.
13198
13199 * xfaces.c (merge_face_ref, merge_face_vectors)
13200 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
13201 HAVE_WINDOW_SYSTEM is defined.
13202 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
13203
132042008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
13205
13206 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
13207
132082008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13209
13210 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
13211
132122008-05-15 Kenichi Handa <handa@m17n.org>
13213
13214 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
13215 preference.
13216
132172008-05-15 Glenn Morris <rgm@gnu.org>
13218
13219 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
13220
132212008-05-15 Chong Yidong <cyd@stupidchicken.com>
13222
13223 * fns.c (init_fns): Don't initialize weak_hash_tables here.
13224 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
13225
13226 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
13227
132282008-05-15 Kenichi Handa <handa@m17n.org>
13229
13230 * ftfont.c (ftfont_list): Downcase family name to check generic
13231 families.
13232
13233 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
13234 font-spec for QCfont value.
13235
13236 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
13237 buffer. Check the return value of it.
13238
132392008-05-14 Jason Rumney <jasonr@gnu.org>
13240
13241 * w32term.c (w32_get_glyph_overhangs): Remove.
13242 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
13243
132442008-05-14 Kenichi Handa <handa@m17n.org>
13245
13246 * font.c (font_prop_validate): Make nil a valid value.
13247 (font_clear_cache): Check if the cached vector of entities is nil
13248 or not.
13249
132502008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13251
13252 * emacs.c (main_thread): Conditionalize on
13253 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
13254 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
13255
13256 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
13257 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
13258 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
13259
132602008-05-14 Kenichi Handa <handa@m17n.org>
13261
13262 * coding.c (detect_coding_iso_2022): Ignore a coding category that
13263 has no corresponding coding system.
13264
132652008-05-14 Jason Rumney <jasonr@gnu.org>
13266
13267 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
13268
13269 * w32font.h (w32font_open_internal): Update declaration.
13270
13271 * w32font.c (w32font_open_internal): Change last argument from
13272 w32font_info struct to font object. Fill in font object from
13273 font_entity. Get Outline metrics if possible. Use them to
13274 calculate underline position and thickness. Use xlfd name as name
13275 property. Don't set codepage.
13276 (w32font_open): Pass font_object to w32font_open_internal. Don't
13277 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
13278 (w32font_draw): Use s->font.
13279 (clear_cached_metrics): Don't clear non-existent blocks.
13280
13281 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
13282 font was not found.
13283 (x_draw_glyph_string): Use underline position and thickness from font.
13284
13285 * w32uniscribe.c (uniscribe_open): Pass font_object to
13286 w32font_open_internal.
13287
132882008-05-14 Kenichi Handa <handa@m17n.org>
13289
13290 These changes are to delete all legacy font-handling codes, and
13291 make Emacs use only font-backends.
13292
13293 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
13294 (frame.o, image.o, print.o): Depend on $(FONTSRC).
13295
13296 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
13297
13298 * charset.h (Vcharset_non_preferred_head)
13299 (Vcurrent_iso639_language): Extern them.
13300
13301 * charset.c (Vcharset_non_preferred_head): New variable.
13302 (Vcurrent_iso639_language): New variable.
13303 (syms_of_charset): Declare it as a Lisp variable.
13304 (char_charset): Don't check non preferred charsets. As a last
13305 resort, return charset_unicode.
13306 (Fset_charset_priority): Update Vcharset_non_preferred_head.
13307
13308 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
13309 conditionals. Don't check enable_font_backend. Delete all codes
13310 used only when USE_FONT_BACKEND is not defined.
13311
13312 * dispextern.h (struct glyph_string): Change type of `font' to
13313 `struct font *'.
13314 (struct glyph_string): New member underline_position and
13315 underline_thickness.
13316 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
13317 (struct face): Change type of `font' to `struct font *'. Remove
13318 members `font_name', `font_info_id'.
13319 (per_char_metric, encode_char): Delete externs.
13320 (calc_pixel_width_or_height): Adjust the prototype.
13321
13322 * emacs.c (enable_font_backend): Delete extern.
13323 (main): Don't set enable_font_backend. Don't check the command
13324 line argument "-disable-font-backend".
13325
13326 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
13327 (enum font_property_index): New members FONT_DPI_INDEX,
13328 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
13329 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
13330 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
13331 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
13332 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
13333 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
13334 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
13335 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
13336 (struct font_spec, struct font_entity): New structs.
13337 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
13338 (struct font): Many members from old "struct font_info" moved to
13339 here. Members font and entity deleted.
13340 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
13341 the new font-related objects.
13342 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
13343 (CHECK_FONT_GET_OBJECT): Likewise.
13344 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
13345 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
13346 (struct font_driver): New members case_sensitive anc check. Type
13347 of the member list and open changed.
13348 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
13349 (font_symbolic_width, font_find_object, font_get_spec)
13350 (font_set_lface_from_name): Delete extern.
13351 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
13352
13353 * font.c: Include <strings.h>.
13354 (enable_font_backend): Delete it.
13355 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
13356 (CHECK_VALIDATE_FONT_SPEC): Delete it.
13357 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
13358 (null_string): Delete it.
13359 (null_vector): Make it static.
13360 (font_family_alist): Delete it.
13361 (Qnormal): Extern it.
13362 (QCextra, QClanguage): Delete it.
13363 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
13364 (font_make_spec, font_make_entity, font_make_object)
13365 (font_intern_prop): Renamed from intern_downcase. Don't downcase
13366 the string. Callers changed.
13367 (font_pixel_size): Adjusted for the format change of font-related
13368 objects.
13369 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
13370 (font_style_to_value, font_style_symbolic): New function.
13371 (build_font_family_alist): Delete it.
13372 (font_registry_charsets): Use Fassoc_string instead of
13373 assq_no_quit.
13374 (font_prop_validate_symbol): Don't return null_string.
13375 (font_prop_validate_style): Adjusted for the change of
13376 style-related values in a font vector.
13377 (font_property_table): Delete entries for QClanguage and
13378 QCantialias, add entries for QCavgwidth.
13379 (get_font_prop_index): Delete the 2nd argument FROM.
13380 (font_prop_validate): Arguments changed.
13381 (font_put_extra): Adjusted for the change of font-related objects.
13382 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
13383 (font_parse_fcname, font_unparse_fcname)
13384 (font_prepare_composition): Likewise.
13385 (font_parse_family_registry): Renamed from font_merge_old_spec.
13386 (otf_open): Delete the 1st arg entity.
13387 (font_otf_capability): Adjusted for the above change.
13388 (font_score): New arg alternate_families. Adjusted for the change
13389 of font-related objects.
13390 (font_sort_entites): New arg best_only.
13391 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
13392 Delete them.
13393 (font_match_p): Check alternate families.
13394 (font_find_object): Delete it.
13395 (font_check_object): New function.
13396 (font_clear_cache): Adjusted for the change of font-related objects.
13397 (font_delete_unmatched): New arg.
13398 (font_list_entities): Call font_driver->list with a spec that
13399 doesn't specify style-related properties.
13400 (font_matching_entity): Arguments changed. Caller changed.
13401 (font_open_entity): Adjusted for the change of font-related objects.
13402 (font_close_object, font_has_char, font_encode_char)
13403 (font_get_name, font_get_spec): Likewise.
13404 (font_spec_from_name, font_clear_prop, font_update_lface):
13405 New functions.
13406 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
13407 (font_prepare_for_face, font_done_for_face, font_open_by_name)
13408 (font_at): Adjusted for the change of font-related objects.
13409 (font_range): New function.
13410 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
13411 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
13412 (Fcopy_font_spec, Fmerge_font_spec): New function.
13413 (Ffont_family_list): Renamed from list-families.
13414 (Finternal_set_font_style_table): Arguments changed.
13415 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
13416 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
13417 change of font-related objects.
13418 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
13419
13420 * fontset.h (struct font_info): Delete it. Most members go to
13421 struct font.
13422 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
13423 (enum FONT_SPEC_INDEX): Delete it.
13424 (font_info, list_fonts_func, load_font_func, query_font_func)
13425 (set_frame_fontset_func, find_ccl_program_func)
13426 (get_font_repertory_func, new_fontset_from_font_name): Delete
13427 externs.
13428 (fontset_from_font_name): Extern it.
13429 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
13430 (FONT_INFO_FROM_FACE): Deleted.
13431 (face_for_font): Adjust prototype.
13432
13433 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
13434 conditionals. Don't check enable_font_backend. Delete all codes
13435 used only when USE_FONT_BACKEND is not defined.
13436 (get_font_info_func, list_font_func, load_font_func)
13437 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
13438 (get_font_repertory_func): Delete them.
13439 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
13440 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
13441 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
13442 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
13443 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
13444 (fontset_compare_rfontdef): New function.
13445 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
13446 rfont-defs by qsort. Adjusted for the change of font-group vector.
13447 (load_font_get_repertory): Deleted.
13448 (fontset_find_font): Use new macros to ref/set elements of
13449 font-def and rfont-def.
13450 (fontset_font): Fix the timing of remembering that no font for C.
13451 (free_face_fontset): Do nothing if the face has no fontset.
13452 (face_suitable_for_char_p): Use new macros to ref/set elements of
13453 rfont-def.
13454 (face_for_char): Likewise. Call face_for_char with font_object.
13455 (fs_load_font): Delete. Delete #pragma surrounding it.
13456 (fs_query_fontset): Use strcasecmp instead of strcmp.
13457 (generate_ascii_font_name): Adjusted for the format change of
13458 font-spec.
13459 (Fset_fontset_font): Likewise. Use new macros to set elements of
13460 font-def.
13461 (Fnew_fontset): Use font_unparse_xlfd to generate
13462 FONTSET_ASCII (fontset).
13463 (new_fontset_from_font_name): Deleted.
13464 (fontset_from_font): Renamed from new_fontset_from_font. Check if
13465 a fontset is already created for the font. FIx updating of
13466 Vfontset_alias_alist.
13467 (fontset_ascii_font): Deleted.
13468 (Ffont_info): Adjusted for the format change of font-spec.
13469 (Finternal_char_font): Likewise.
13470 (Ffontset_info): Likewise.
13471 (syms_of_fontset): Don't check load_font_func.
13472
13473 * fns.c (internal_equal): Handle PREV_FONT.
13474
13475 * frame.h: Delete USE_FONT_BACKEND conditional.
13476
13477 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
13478 conditionals. Don't check enable_font_backend. Delete all codes
13479 used only when USE_FONT_BACKEND is not defined.
13480 (x_set_font): Call x_new_font, not x_new_fontset2.
13481 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
13482 already set for the frame.
13483
13484 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
13485 a font-entity by font_make_entity. Use font_intern_prop instead
13486 of intern_downcase. Use FONT_SET_STYLE to set a style-related
13487 font property. If a font is scalable, set avgwidth property to 0.
13488 Set font-entity property by font_put_extra.
13489 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
13490 (ffont_driver): Adjusted for the change of struct font_driver.
13491 (ftfont_spec_pattern): New function.
13492 (ftfont_list): Return a list, not vector.
13493 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
13494 (ftfont_list_family): Don't downcase names.
13495 (ftfont_free_entity): Deleted.
13496 (ftfont_open): Return a font-object. Adjusted for the change of
13497 struct font. Get underline_thickness and underline_position from
13498 font property. Don't update dpyinfo->smallest_font_height and
13499 dpyinfo->smallest_char_width.
13500 (ftfont_close): Don't free `struct font'.
13501 (ftfont_has_char): Adjusted for the format change of font-entity.
13502 (ftfont_encode_char, ftfont_text_extents): Likewise.
13503
13504 * ftxfont.c (ftxfont_list): Return a list, not vector.
13505 (ftxfont_open): Return a font-object. Adjusted for the change of
13506 struct font. Get underline_thickness and underline_position from
13507 font property. Don't update dpyinfo->smallest_font_height and
13508 dpyinfo->smallest_char_width.
13509 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
13510 (ftxfont_draw): Adjusted for the change of struct font.
13511
13512 * image.c (image_ascent): Don't include "charset.h". Include
13513 "character.h" and "font.h".
13514
13515 * lisp.h (enum pvec_type): New member PREV_FONT.
13516 (Fassoc_string): EXFUN it.
13517
13518 * print.c: Include font.h.
13519 (print_object): Handle font-related objects.
13520
13521 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
13522 conditionals. Don't check enable_font_backend. Delete all codes
13523 used only when USE_FONT_BACKEND is not defined.
13524 (handle_auto_composed_prop): Do nothing if it->f is not on a
13525 window system. Check how many following characters can be
13526 displayed by the same font.
13527 (calc_pixel_width_or_height): Type of the 4th arg is changed to
13528 'struct font *'.
13529 (get_char_face_and_encoding): Assign the whole encoding task to
13530 the `encode-char' method of a font driver.
13531 (fill_composite_glyph_string): Adjusted for the change of `struct
13532 face' and `struct glyph_string'.
13533 (fill_glyph_string): Likewise.
13534 (get_per_char_metric): Arguments changed.
13535 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
13536 and `struct glyph_string'.
13537 (produce_stretch_glyph, calc_line_height_property)
13538 (x_produce_glyphs): Likewise.
13539
13540 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
13541 conditionals. Don't check enable_font_backend. Delete all codes
13542 used only when USE_FONT_BACKEND is not defined. Use
13543 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
13544 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
13545 (Qp): Extern them.
13546 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
13547 Deleted.
13548 (struct font_name): Deleted.
13549 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
13550 (compare_fonts_by_sort_order): New function.
13551 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
13552 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
13553 Deleted.
13554 (Fx_family_fonts): Use font_list_entities, and sort fonts by
13555 compare_fonts_by_sort_order.
13556 (Fx_font_family_list): Call Ffont_family_list.
13557 (face_numeric_value, face_numeric_weight, face_numeric_slant)
13558 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
13559 (face_symbolic_slant, face_symbolic_swidth)
13560 (split_font_name_into_vector, build_font_name_from_vector)
13561 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
13562 (font_rescale_ratio, split_font_name, build_font_name)
13563 (free_font_names, sort_fonts, x_face_list_fonts)
13564 (face_font_available_p, sorted_font_list, cmp_font_names)
13565 (font_list_1, concat_font_list, font_list, remove_duplicates):
13566 Deleted.
13567 (Fx_list_fonts): Use Ffont_list.
13568 (LFACE_AVGWIDTH): Deleted.
13569 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
13570 by FONTP.
13571 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
13572 (set_lface_from_font_name): Delete it.
13573 (set_lface_from_font): Renamed from
13574 set_lface_from_font_and_fontset. Caller changed. Don't set
13575 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
13576 for face.
13577 (merge_face_vectors): Copy font-spec if necessary.
13578 Clear properties of the font-spec if necessary.
13579 (merge_face_ref): Clear properties of the font-spec if necessary.
13580 (Finternal_set_lisp_face_attribute): Likewise.
13581 (set_font_frame_param): Use font_load_for_lface to load a
13582 font-object, and call Fmodify_frame_parameters with it.
13583 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
13584 font name by Ffont_xlfd_name.
13585 (Finternal_lisp_face_attribute_values): Don't check QCweight,
13586 QCslant, and QCwidth.
13587 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
13588 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
13589 Compare fonts by EQ.
13590 (lookup_non_ascii_face): Deleted.
13591 (face_for_font): The 2nd argument changed.
13592 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
13593 Check atomic font properties by case insensitive.
13594 (realize_non_ascii_face): Set face->overstrike correctly.
13595 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
13596 (dump_realized_face): Get font name from
13597 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
13598
13599 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
13600 conditionals. Don't check enable_font_backend. Delete all codes
13601 used only when USE_FONT_BACKEND is not defined.
13602 (xic_create_xfontset): Original code deleted and renamed from
13603 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
13604 (x_make_gc): Don't set GCFont in GCs.
13605 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
13606 opened by "fixed".
13607 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
13608 find_ccl_program_func, query_font_func, set_frame_fontset_func,
13609 get_font_repertory_func.
13610
13611 * xfont.c: Include <stdlib.h> and "ccl.h".
13612 (struct xfont_info): New structure.
13613 (xfont_query_font): Deleted.
13614 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
13615 moved from xterm.c.
13616 (xfont_driver): Adjusted for the change of struct font_driver.
13617 (compare_font_names): New function.
13618 (xfont_list_pattern): Sort font names case insensitively. Make
13619 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
13620 (xfont_list): Return a list, not vector.
13621 (xfont_match): If the font doesn't have QCname property, generate
13622 a name from the other font properties.
13623 (xfont_open): Return a font-object. Adjusted for the change of
13624 struct font. Get underline_thickness and underline_position from
13625 font property. Don't update dpyinfo->smallest_font_height and
13626 dpyinfo->smallest_char_width.
13627 (xfont_close): Don't free struct font.
13628 (xfont_prepare_face): Adjusted for the change of struct font.
13629 (xfont_done_face): Deleted.
13630 (xfont_has_char): Adjusted for the change of struct font.
13631 (xfont_encode_char, xfont_draw): Likewise.
13632 (xfont_check): New function.
13633
13634 * xftfont.c (xftfont_list): Adjusted for the change of `list'
13635 callback function.
13636 (xftfont_match): Adjusted for the format change of font-entity.
13637 (xftfont_open): Adjusted for the format change of font-entity and
13638 font-object. Adjusted for the change of struct font. Return a
13639 font-object. Don't update dpyinfo->smallest_font_height and
13640 dpyinfo->smallest_char_width.
13641 (xftfont_close): Block input while calling XftFontClose.
13642 (xftfont_prepare_face): Don't block input while calling
13643 xftfont_get_colors. Adjusted for the change of struct font.
13644 (xftfont_shape): Return value of error case fixed.
13645
13646 * xrdb.c (x_load_resources): Don't setup a fontset resource.
13647
13648 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
13649 conditionals.
13650 (FONT_WIDTH): Return (f)->max_width.
13651 (struct x_display_info): Delete member `font'.
13652 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
13653 (x_find_ccl_program, x_get_font_repertory): Delete externs.
13654 (struct x_output): Change type of `font' to `struct font *'.
13655
13656 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
13657 conditionals. Don't check enable_font_backend. Delete all codes
13658 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
13659 (x_per_char_metric, x_encode_char): Deleted.
13660 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
13661 (x_compute_glyph_string_overhangs): Adjusted for the change of
13662 `struct face'.
13663 (x_draw_glyph_string_foreground)
13664 (x_draw_composite_glyph_string_foreground): Likewise.
13665 (x_draw_glyph_string): Likewise. Use font->underline_position and
13666 font->underline_thickness.
13667 (x_new_font): Renamed from x_new_fontset2.
13668 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
13669 (x_check_font): Call `check' method of a font driver.
13670 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
13671 (x_query_font, x_get_font_repertory): Deleted.
13672 (x_find_ccl_program): Renamed and moved to xfont.c.
13673 (x_redisplay_interface): Adjusted for the change of `struct
13674 redisplay_interface'.
13675
13676 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
13677 conditionals. Don't check enable_font_backend. Delete all codes
13678 used only when USE_FONT_BACKEND is not defined. Surround non-used
13679 code by "#ifdef OLD_FONT" and "endif".
13680 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
13681
13682 * w32font.h (struct w32font_info): New member.
13683 (FONT_COMPAT): New macro.
13684 (w32font_open_internal): Prototype adjusted.
13685
13686 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
13687 OLD_FONT" and "endif".
13688
13689 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
13690 conditionals. Don't check enable_font_backend. Delete all codes
13691 used only when USE_FONT_BACKEND is not defined.
13692 (w32font_open): Return a font-object. Make a font-object by
13693 font_make_object. Adjusted for the change of struct w32font_info.
13694 (w32font_close): Don't free struct font. Adjusted for the change
13695 of struct w32font_info.
13696 (w32font_encode_char, w32font_text_extents, w32font_draw):
13697 Adjusted for the change of struct w32font_info.
13698 (w32font_draw): Likewise.
13699 (w32font_list_internal): Return a list, not vector.
13700 (w32font_open_internal): Change the 4th arg to font-object.
13701 Adjusted for the change of struct w32font_info and font-object format.
13702 (add_font_name_to_list): Don't downcase names.
13703 (w32_enumfont_pattern_entity): Make a font-entity by
13704 font_make_entity. Adjusted for the format change of font-entity.
13705 Use FONT_SET_STYLE to set a style-related font property. If a
13706 font is scalable, set avgwidth property to 0. Set font-entity
13707 property by font_put_extra.
13708 (font_matches_spec): Adjusted for the format change of font-entity.
13709 (w32_weight_table, w32_decode_weight): New variables.
13710 (w32_encode_weight): New function.
13711 (fill_in_logfont): Adjusted for the format change of font-spec.
13712 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
13713 weight value.
13714 (w32font_driver): Adjusted for the change of struct font_driver.
13715
13716 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
13717 conditionals. Don't check enable_font_backend. Surround non-used
13718 code by "#ifdef OLD_FONT" and "endif".
13719 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
13720 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
13721
13722 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
13723 conditionals. Don't check enable_font_backend. Delete all codes
13724 used only when USE_FONT_BACKEND is not defined. Surround non-used
13725 code by "#ifdef OLD_FONT" and "endif".
13726
13727 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
13728 (uniscribe_open): Return value changed to font-object.
13729 Adjusted for the format change of font-object.
13730 (uniscribe_otf_capability): Adjusted for the change of struct font.
13731 (add_opentype_font_name_to_list): Don't downcase names.
13732 (uniscribe_font_driver): Adjusted for the change of struct
13733 font_driver.
13734
137352008-05-13 Chong Yidong <cyd@stupidchicken.com>
13736
13737 * dispnew.c (update_frame_1): Check if tty output is still valid
13738 before flushing it.
13739
137402008-05-13 Jan Djärv <jan.h.d@swipnet.se>
13741
13742 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
13743 to Gtk+ menus.
13744
137452008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
13746
13747 * dired.c (file_name_completion): Tweak the code so as to always do it
13748 in a single pass. Tighten the scope of some variables.
13749
13750 * dired.c (Qdefault_directory): New var.
13751 (file_name_completion): Use it instead of Fexpand_file_name.
13752 (syms_of_dired): Initialize it.
13753
137542008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
13755
13756 * fileio.c (double_dollars): Remove dead code.
13757
137582008-05-10 Eli Zaretskii <eliz@gnu.org>
13759
13760 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
13761 Mention w32-get-true-file-attributes in doc string.
13762
13763 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
13764
137652008-05-09 Glenn Morris <rgm@gnu.org>
13766
13767 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
13768 2008-04-23.
13769
137702008-05-09 Eli Zaretskii <eliz@gnu.org>
13771
13772 Support for reporting owner and group of each file on MS-Windows:
13773 * dired.c (stat_uname, stat_gname): New functions, with special
13774 implementation for w32.
13775 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
13776
13777 * w32.c: Rename the_passwd_* to dflt_passwd_*.
13778 (dflt_group_name): New static variable.
13779 (dflt_group): Rename from the_group.
13780 (init_user_info): Init dflt_group fields. Get user's group name
13781 from LookupAccountSid.
13782 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
13783 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
13784 New initialization states.
13785 (globals_of_w32): Initialize them to zero. Initialize the default
13786 group name to "None".
13787 (GetFileSecurity_Name): New global var, the name of the function
13788 to call for GetFileSecurity.
13789 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
13790 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
13791 (get_file_security, get_security_descriptor_owner)
13792 (get_security_descriptor_group, is_valid_sid)
13793 (get_file_security_desc, get_rid, get_name_and_id)
13794 (get_file_owner_and_group): New functions.
13795 (stat): Use get_file_security_desc and get_file_owner_and_group to
13796 report the owner and primary group of each file. Don't ignore the
13797 high 32 bits of file's size, now that st_size is 64-bit wide.
13798 Fix test when to get true file attributes.
13799 (init_user_info): Use get_rid instead of equivalent inline code.
13800 (fstat): Don't ignore the high 32 bits of file's size.
13801
138022008-05-09 Chong Yidong <cyd@stupidchicken.com>
13803
13804 * image.c (png_load): Use correct bit-depth for setting background
13805 color.
13806
138072008-05-08 Eli Zaretskii <eliz@gnu.org>
13808
13809 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
13810 epa-hook.elc.
13811
138122008-05-08 Juanma Barranquero <lekktu@gmail.com>
13813
13814 * font.c (Ffont_match_p): Don't use `iff' in docstring.
13815
138162008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
13817
13818 * macfns.c (Fx_create_frame): Make a copy of frame parameters
13819 because the original parameters are in pure storage now.
13820 (mac_window): Remove unused params. Update callers.
13821
138222008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
13823
13824 * lread.c (substitute_object_recurse): Use lower-level primitives.
13825 Don't signal errors when traversing sub-char-tables.
13826 Don't loop over all the possible characters when traversing char-tables.
13827
13828 * print.c (print_preprocess): Add sub-char-tables to the print-table,
13829 just like we do in print.c.
13830
138312008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
13832
13833 * minibuf.c (Ftry_completion): Remove code left over from when we used
13834 scmp instead of Fcompare_strings.
13835
138362008-05-04 Juanma Barranquero <lekktu@gmail.com>
13837
13838 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
13839
138402008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13841
13842 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
13843 Create bitmap context in native byte order.
13844
13845 * macterm.c (XDrawLine)
13846 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
13847 context in native byte order.
13848
138492008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13850
13851 * config.in: Regenerate.
13852
13853 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
13854 New definitions for Image I/O support.
13855 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
13856 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
13857 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
13858 (mac_data_provider_release_data, image_load_image_io)
13859 [USE_MAC_IMAGE_IO]: New functions.
13860 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
13861 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
13862 (init_image_func_pointer) [MAC_OSX]: Remove function.
13863 (image_load_quartz2d) [MAC_OSX]: Check availability of
13864 CGImageCreateWithPNGDataProvider at compile time.
13865 Use lowercase `false' for boolean constant.
13866 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
13867 Use image_load_image_io.
13868 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
13869 Don't check MyCGImageCreateWithPNGDataProvider.
13870 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
13871 Don't call init_image_func_pointer.
13872
13873 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
13874
13875 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
13876 Make variable non-static.
13877 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
13878 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
13879
13880 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
13881 (RED_FROM_ULONG): Mask off higher bits.
13882 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
13883
13884 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
13885 Include AvailabilityMacros.h.
13886 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
13887 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
13888
138892008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
13890
13891 * chartab.c (Fset_char_table_range): If range is t, really set all
13892 chars to that value.
13893
138942008-05-03 Eli Zaretskii <eliz@gnu.org>
13895
13896 * dired.c (Ffile_attributes): Don't allow the device number become
13897 negative.
13898
138992008-05-02 Daiki Ueno <ueno@unixuser.org>
13900
13901 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
13902
139032008-05-02 Juri Linkov <juri@jurta.org>
13904
13905 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
13906 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
13907 DEFAULT argument as a list of default values in docstrings.
13908
139092008-05-01 Chong Yidong <cyd@stupidchicken.com>
13910
13911 * puresize.h (BASE_PURESIZE): Increase to 1210000.
13912
139132008-05-01 Martin Rudalics <rudalics@gmx.at>
13914
13915 * dispnew.c (change_frame_size_1): Preserve small windows when
13916 shrinking frames by calling set_window_height|width with third
13917 arg 2.
13918
13919 * window.h (struct window): Replace field too_small_ok by field
13920 resize_proportionally.
13921
13922 * window.c (make_window): Initialize resize_proportionally.
13923 (enlarge_window): Temporarily set resize_proportionally to make
13924 sure that shrink_windows does scale the window proportionally.
13925 (shrink_windows): When window has resize_proportionally set try
13926 to shrink it proportionally by stealing from other windows.
13927 (struct saved_window, Fset_window_configuration)
13928 (compare_window_configurations): Handle resize_proportionally.
13929 (WINDOW_TOTAL_SIZE): New macro.
13930 (window_min_size, shrink_windows, size_window): Use it.
13931 (check_min_window_sizes): Remove. Invalid values of
13932 window-min-height|width are handled by window_min_size_2 now.
13933 (size_window, Fsplit_window, enlarge_window)
13934 (adjust_window_trailing_edge, grow_mini_window): Don't call
13935 check_min_window_sizes.
13936 (window_min_size_2, window_min_size_1, window_min_size):
13937 New argument safe_p for retrieving "safe" minimum sizes.
13938 (Fdisplay_buffer, Fsplit_window, enlarge_window)
13939 (adjust_window_trailing_edge, grow_mini_window):
13940 Adjust arguments of window_min_size... functions.
13941 (shrink_windows): Argument min_size removed. New argument
13942 safe_p allows shrinking windows to their safe minimum sizes.
13943 Calculate minimum size and decide whether a window shall be
13944 deleted for each window individually.
13945 (size_window): When nodelete_p equals 2, tell shrink_windows to
13946 delete windows only if their new minimum size is no more safe.
13947 (shrink_window_lowest_first): Call window_min_size_1 to make
13948 sure to preserve modeline of bottom-most window when resizing
13949 the minibuffer.
13950 (Fset_window_configuration, Fcurrent_window_configuration)
13951 (compare_window_configurations): Do not handle
13952 window-min-height|width any more.
13953 (syms_of_window): Clarify window-min-height|width doc-strings.
13954
139552008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
13956
13957 * dired.c (file_name_completion): Fix up the encoding/decoding issue
13958 some more. Copy some of the code from Ftry_completions.
13959 Remove special case code that dates back to initial revision when the
13960 slash was only added when necessary and that can't trigger nowadays.
13961
139622008-04-27 Kenichi Handa <handa@m17n.org>
13963
13964 * font.c (font_prop_validate): Signal `error' instead of `font'.
13965
139662008-04-29 Jason Rumney <jasonr@gnu.org>
13967
13968 * w32fns.c (Fw32_battery_status): New defun.
13969 (syms_of_w32fns): Defsubr it.
13970
139712008-04-28 Andreas Schwab <schwab@suse.de>
13972
13973 * dired.c (file_name_completion): Fix another mixing of encoded
13974 and decoded names.
13975
139762008-04-28 Juanma Barranquero <lekktu@gmail.com>
13977
13978 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
13979
139802008-04-27 Juanma Barranquero <lekktu@gmail.com>
13981
13982 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
13983
139842008-04-27 Andreas Schwab <schwab@suse.de>
13985
13986 * dired.c (file_name_completion): Fix inappropriate mixing of
13987 encoded and decoded names.
13988
13989 * xterm.c (XTread_socket): Fix use of uninitialized variable.
13990
13991 * puresize.h (BASE_PURESIZE): Increase to 1200000.
13992
139932008-04-26 Eli Zaretskii <eliz@gnu.org>
13994
13995 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
13996 2008-03-31, it's not needed anymore with `struct stat' definition
13997 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
13998 for the same reasons.
13999
140002008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
14001
14002 * m/sparc.h: Additional redefinitions for GNU/Linux.
14003
140042008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14005
14006 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
14007 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
14008 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
14009 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
14010 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
14011 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
14012 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14013 Likewise.
14014
14015 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
14016 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
14017 (mac_ax_number_of_characters): Add externs.
14018 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
14019 [USE_MAC_TSM]: Likewise.
14020 (mac_handle_text_input_event) [MAC_OSX]:
14021 Handle kEventTextInputOffsetToPos for no active input area case.
14022 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
14023 (mac_handle_document_access_event)
14024 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
14025 (install_application_handler) [MAC_OSX]: Register handlers for
14026 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
14027 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14028 Register mac_handle_document_access_event.
14029
14030 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
14031 Make functions non-static.
14032
140332008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
14034
14035 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
14036 (read_file_name_completion_ignore_case, insert_default_directory)
14037 (Qdefault_directory): Move to minibuffer.el.
14038 (Fread_file_name): Call the new `read-file-name' instead.
14039
140402008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14041
14042 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
14043 Make function non-static.
14044 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
14045 Remove function.
14046 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
14047 Move to mactoolbox.c.
14048 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
14049
14050 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
14051 (mac_rect_make): New macro.
14052
14053 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
14054 instead of float.
14055 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
14056 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
14057 (XSetBackground) [USE_CG_DRAWING]: Likewise.
14058 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
14059 CGRectMake.
14060 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
14061 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
14062 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
14063 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
14064 instead of WindowRef in argument type.
14065 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
14066 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
14067 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
14068 instead of DISPLAY. All uses changed.
14069 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
14070 (x_calc_absolute_position): Simplify so as not to use
14071 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
14072
14073 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
14074 instead of WindowRef in argument type.
14075 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
14076 [TARGET_API_MAC_CARBON]: Remove externs.
14077 (create_apple_event, mac_event_parameters_to_lisp)
14078 [TARGET_API_MAC_CARBON]: Add externs.
14079
14080 * mactoolbox.c (Vmac_ts_script_language_on_focus)
14081 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
14082 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
14083 is clicked.
14084 (x_activate_menubar): Remove extern for saved_menu_event_location.
14085 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
14086 Move from mac.c.
14087
140882008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14089
14090 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
14091 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
14092
140932008-04-23 Jason Rumney <jasonr@gnu.org>
14094
14095 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
14096 attributes only for local files.
14097
14098 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
14099 default to Qlocal.
14100
141012008-04-22 Juri Linkov <juri@jurta.org>
14102
14103 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
14104 read-buffer-to-switch instead of using the letter "B".
14105
141062008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
14107
14108 * fileio.c (Qdefault_directory): New variable.
14109 (Fread_file_name): Use it to pass `dir' to the completion functions.
14110
141112008-04-20 Chong Yidong <cyd@stupidchicken.com>
14112
14113 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
14114
141152008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
14116
14117 * keyboard.c (Vpre_help_message): Remove.
14118 (show_help_echo): Remove default C code.
14119
14120 * dired.c (directory_files_internal, file_name_completion):
14121 Only call ENCODE_FILE if the string is indeed decoded.
14122
141232008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
14124
14125 * Makefile.in (TOOLKIT_DEFINES): Remove.
14126 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
14127
141282008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14129
14130 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
14131 (mactoolbox.o): New target.
14132
14133 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
14134 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
14135
14136 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
14137 Use mac_set_frame_window_background instead of XSetWindowBackground.
14138 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
14139 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
14140 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
14141 instead of SetWindowTitleWithCFString.
14142 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
14143 Move function to mactoolbox.c.
14144 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
14145 Use mac_set_window_modified instead of SetWindowModified.
14146 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
14147 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
14148 (Fx_focus_frame): Use mac_front_non_floating_window instead of
14149 FrontNonFloatingWindow. Use mac_activate_window instead of
14150 ActivateWindow. Use mac_active_non_floating_window instead of
14151 ActiveNonFloatingWindow.
14152 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
14153 Use mac_show_hourglass and mac_hide_hourglass.
14154 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
14155 instead of GetGlobalMouse.
14156 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
14157 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
14158 Use mac_bring_window_to_front instead of BringToFront.
14159 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
14160 mactoolbox.c.
14161 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
14162 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
14163 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
14164 mactoolbox.c.
14165
14166 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
14167 (XtPointer): Move typedef from macmenu.c.
14168 (enum button_type): Move enum from macmenu.c.
14169 (widget_value): Move typedef from macmenu.c.
14170 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
14171 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
14172 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
14173 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
14174 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
14175 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
14176 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
14177 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
14178 (Selection): Move typedef from macselect.c.
14179 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
14180 macterm.c.
14181 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
14182 (mac_is_window_collapsed, mac_bring_window_to_front)
14183 (mac_send_window_behind, mac_hide_window, mac_show_window)
14184 (mac_collapse_window, mac_front_non_floating_window)
14185 (mac_active_non_floating_window, mac_activate_window)
14186 (mac_move_window_structure, mac_move_window, mac_size_window)
14187 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
14188
14189 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
14190 (enum mac_menu_kind): Move enum to mactoolbox.c.
14191 (min_menu_id): Move variable to mactoolbox.c.
14192 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
14193 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
14194 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
14195 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
14196 [TARGET_API_MAC_CARBON]: Likewise.
14197 (XtPointer): Move typedef to macgui.h.
14198 (enum button_type): Move enum to macgui.h.
14199 (widget_value): Move typedef to macgui.h.
14200 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
14201 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
14202 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
14203 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
14204 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
14205 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
14206 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
14207 (popup_activated_flag): Make variable non-static.
14208 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
14209 (add_menu_item, fill_menu, dispose_menus):
14210 Move functions to mactoolbox.c.
14211 (restore_show_help_function, menu_target_item_handler)
14212 (install_menu_target_item_handler, mac_handle_dialog_event)
14213 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
14214 [TARGET_API_MAC_CARBON]: Likewise.
14215 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
14216 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
14217 (find_and_call_menu_selection, name_is_separator): Make function
14218 non-static.
14219 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
14220 to mactoolbox.c.
14221 (set_frame_menubar): Don't call install_menu_quit_handler.
14222 (menu_item_selection): New variable.
14223 (mac_menu_show): Use create_and_show_popup_menu.
14224 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
14225 selection but set variable menu_item_selection. All uses changed.
14226 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
14227 Call install_menu_quit_handler. Move to mactoolbox.c.
14228
14229 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
14230 (Selection): Move typedef to macgui.h.
14231 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
14232 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
14233 Make variables non-static.
14234 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
14235 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
14236 Make functions non-static.
14237 (Vmac_service_selection) [MAC_OSX]: Likewise.
14238 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
14239 (mac_valid_selection_target_p, mac_clear_selection)
14240 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
14241 (mac_put_selection_value, mac_selection_has_target_p)
14242 (mac_get_selection_value, mac_get_selection_target_list)
14243 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
14244 Move functions to mactoolbox.c.
14245 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
14246 Likewise.
14247 (copy_scrap_flavor_data, mac_handle_service_event)
14248 (install_service_handler) [MAC_OSX]: Likewise.
14249 (syms_of_macselect) <Vmac_dnd_known_types>:
14250 Use mac_dnd_default_known_types.
14251
14252 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
14253 Move to mactoolbox.c.
14254 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
14255 (Fx_selection_owner_p): Add EXFUN.
14256 (install_window_handler, remove_window_handler, XSetWindowBackground):
14257 Remove externs.
14258 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
14259 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
14260 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
14261 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
14262 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
14263 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
14264 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
14265 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
14266 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
14267 (create_and_show_popup_menu, mac_get_selection_from_symbol)
14268 (mac_valid_selection_target_p, mac_clear_selection)
14269 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
14270 (mac_put_selection_value, mac_selection_has_target_p)
14271 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
14272 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
14273 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
14274 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
14275 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
14276 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
14277 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
14278 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
14279 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
14280
14281 * mactoolbox.c: New file.
14282
142832008-04-18 Jason Rumney <jasonr@gnu.org>
14284
14285 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
14286
142872008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
14288
14289 * character.c (Fmultibyte_char_to_unibyte):
14290 Return latin1 chars unchanged.
14291
14292 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
14293 relocated if it points to `name'.
14294
142952008-04-17 Kenichi Handa <handa@m17n.org>
14296
14297 * data.c (Faset): Allow setting a multibyte character in an
14298 ASCII-only unibyte string.
14299
14300 * lisp.h (STRING_SET_MULTIBYTE): New macro.
14301
143022008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
14303
14304 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
14305 done in config.h.
14306
143072008-04-16 Juanma Barranquero <lekktu@gmail.com>
14308
14309 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
14310 (Fchar_direction): Add usage in the docstring.
14311
143122008-04-15 Chong Yidong <cyd@stupidchicken.com>
14313
14314 * keyboard.c (read_key_sequence): Remove always-true checks.
14315
143162008-04-14 Jason Rumney <jasonr@gnu.org>
14317
14318 * w32font.c (w32font_open_internal): Set max_bounds.descent in
14319 compatibility struct, for better underline positioning.
14320
143212008-04-13 David Hansen <david.hansen@gmx.net>
14322
14323 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
14324 string.
14325
143262008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
14327
14328 * m/hp800.h (XUINT, XSET): Remove.
14329
143302008-04-12 Juanma Barranquero <lekktu@gmail.com>
14331
14332 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
14333 previous change.
14334
143352008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
14336
14337 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
14338 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
14339
143402008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
14341
14342 * keymap.h (map_keymap_canonical): Declare.
14343 * xmenu.c (single_keymap_panes): Use it.
14344
143452008-04-11 Glenn Morris <rgm@gnu.org>
14346
14347 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
14348 set the target's value to that of the alias.
14349
143502008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
14351
14352 * term.c (set_tty_color_mode): Left over typo.
14353
143542008-04-10 Michael Albinus <michael.albinus@gmx.de>
14355
14356 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
14357 only after check for file name handler functions. Signal, when
14358 native functionality is not supported.
14359 (syms_of_fileio): Declare it unconditionally.
14360
143612008-04-10 Jason Rumney <jasonr@gnu.org>
14362
14363 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
14364 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
14365
14366 * w32.c (logon_network_drive): Also logon to remote drives that
14367 are mapped to drive letters.
14368
143692008-04-10 Glenn Morris <rgm@gnu.org>
14370
14371 * xdisp.c (truncate-partial-width-windows): Doc fix.
14372
143732008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
14374
14375 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
14376 Move functions to minibuffer.el.
14377 (syms_of_fileio): Don't declare them.
14378
143792008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
14380
14381 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
14382 (syms_of_minibuf): Remove its initialization.
14383
14384 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
14385
143862008-04-09 Juanma Barranquero <lekktu@gmail.com>
14387
14388 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
14389
143902008-04-09 Jason Rumney <jasonr@gnu.org>
14391
14392 * makefile.w32-in (distclean): Delete makefile too.
14393 (maintainer-clean): New target.
14394
14395 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
14396
14397 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
14398 for new font backend and composite cases.
14399
144002008-04-09 Jan Djärv <jan.h.d@swipnet.se>
14401
14402 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
14403 Most of the code moved to run_timers.
14404 (do_pending_atimers): Call run_timers.
14405 (run_timers): New function.
14406
14407 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
14408 run atimers.
14409
14410 * process.c (wait_reading_process_output): The same as above.
14411
144122008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
14413
14414 * minibuf.c (last_exact_completion): Remove variable.
14415 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
14416 (complete_and_exit_1, complete_and_exit_2)
14417 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
14418 (Fdisplay_completion_list, display_completion_list_1)
14419 (Fminibuffer_completion_help, Fself_insert_and_exit)
14420 (Fexit_minibuffer, Fminibuffer_message): Move functions to
14421 minibuffer.el.
14422 (syms_of_minibuf): Remove corresponding initializations.
14423
14424 * keyboard.c (Qdeactivate_mark): New var.
14425 (command_loop_1): Use it to call `deactivate-mark'.
14426 (syms_of_keyboard): Initialize it.
14427
14428 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
14429 to another frame.
14430 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
14431 Don't call set_tty_color_mode.
14432 (store_frame_param): Reset previous_frame rather than call
14433 set_tty_color_mode.
14434 * term.c (set_tty_color_mode): Rewrite.
14435 * dispextern.h (set_tty_color_mode): New type.
14436 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
14437
144382008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
14439
14440 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
14441 for generic chars, which do not exist any more in emacs-unicode.
14442
144432008-04-08 Michael Albinus <michael.albinus@gmx.de>
14444
14445 * coding.c (detect_coding_emacs_mule)
14446 (Ffind_operation_coding_system): Fix typo.
14447
144482008-04-08 Jason Rumney <jasonr@gnu.org>
14449
14450 * w32uniscribe.c (SNAME): Extract only symbol name.
14451
14452 * w32font.h (struct w32_metric_cache): New struct.
14453 (w32font_info): Use it.
14454 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
14455 (CACHE_BLOCKSIZE): New constants.
14456
14457 * w32font.c (Qja, Qko, Qzh): New symbols.
14458 (syms_of_w32font): Initialise them.
14459 (font_matches_spec): Use them to filter by language.
14460 (recompute_cached_metrics): Remove function.
14461 (compute_metrics, clear_cached_metrics): New functions.
14462 (w32font_encode_char): Use them to manage metric cache.
14463 (w32font_text_extents): Cache metrics for all glyphs on demand.
14464 Delay converting glyph indices to WORD until needed.
14465 (w32font_open_internal): Initialize metric cache to empty.
14466 (registry_to_w32_charset): Charset should always be a symbol.
14467 (fill_in_logfont, list_all_matching_fonts): Family should
14468 always be a symbol.
14469
144702008-04-06 Jason Rumney <jasonr@gnu.org>
14471
14472 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
14473 Give up if glyph indices not supported. Use uniscribe obtained
14474 ABC widths for individual metrics. Map glyph clusters back to
14475 characters using fClusterStart flag. Return number of glyphs
14476 produced, not chars processed.
14477 (uniscribe_shape): Map char at FROM to current glyph.
14478
144792008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14480
14481 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
14482 Use SetMenuItemHierarchicalMenu.
14483
144842008-04-05 Jason Rumney <jasonr@gnu.org>
14485
14486 * image.c (pbm_load): Allow color values up to 65535.
14487 Throw an error if max_color_idx is outside the supported range.
14488 Report an error when image size is invalid.
14489 Read two bytes at a time when raw images have max_color_idx above 255.
14490
aac0c6e3
MR
144912008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
14492
14493 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
14494 append "CCL: Quitted" when the CCL program is quitted.
14495 (setup_ccl_program): Initialize ccl->quit_silently to zero.
14496
14497 * ccl.h (struct ccl_program): New member quit_silently.
14498
144992008-04-05 Chong Yidong <cyd@stupidchicken.com>
14500
14501 * search.c (compile_pattern_1): Treat non-nil and non-string of
14502 search-spaces-regexp as nil.
14503
14504 * minibuf.c (Fassoc_string): Tweak docstring.
14505
145062008-04-05 Eli Zaretskii <eliz@gnu.org>
14507
14508 * dired.c (Ffile_attributes): Support inode numbers wider than 32
14509 bits. Remove ugly WINDOWSNT-specific kludge introduced on
14510 2008-03-14 to force inode be positive.
14511
14512 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
14513 _S_* ones, since we now use our own sys/stat.h.
14514 (stat, fstat): Don't mangle the inode number.
14515 (init_user_info): Don't restrict UID and GID to 0-60000 range.
14516
145172008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
14518
14519 * frame.h (struct frame): Give one more bit to `visible' since we use
14520 values larger than 1 to indicate obscured frames on ttys.
14521
14522 * keymap.c (Qkeymap_canonicalize): New var.
14523 (Fmap_keymap_internal): New fun.
14524 (describe_map): Use keymap-canonicalize.
14525
14526 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
14527 (Fundo_boundary): Set them.
14528 (syms_of_undo): Initialize them.
14529 (record_point): Use them instead of last_point_position*.
14530 (last_undo_buffer): Change type.
14531
145322008-04-04 Jason Rumney <jasonr@gnu.org>
14533
14534 * w32font.c (w32font_text_extents): Use font's ascent and descent.
14535 (recompute_cached_metrics): Don't set ascent and descent per char.
14536
14537 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
14538 (uniscribe_check_otf): Add GC protection before consing.
14539 Rearrange loop for counting features.
14540
145412008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
14542
14543 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
14544 buffer with byte-size of source buffer.
14545
145462008-04-03 Chong Yidong <cyd@stupidchicken.com>
14547
14548 * callint.c (Fcall_interactively): Handle temporary region even
14549 when shift-select-mode is off.
14550
145512008-04-03 Jason Rumney <jasonr@gnu.org>
14552
14553 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
14554
145552008-04-03 Kenichi Handa <handa@m17n.org>
14556
14557 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
14558 (CATEGORY_MASK_UTF_16): Likewise.
14559 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
14560 binary file.
14561 (detect_coding): Add null-byte detection for a binary file.
14562 (detect_coding_system): Likewise.
14563
145642008-04-03 Jason Rumney <jasonr@gnu.org>
14565
14566 * w32uniscribe.c: New file.
14567
14568 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
14569
14570 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
14571
14572 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
14573 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
14574 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
14575 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
14576 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
14577 (Qphonetic): New symbols.
14578 (syms_of_w32font): Initialize them.
14579 (font_supported_scripts): Use them.
14580 (w32font_list_family): List all charsets.
14581 (w32font_text_extents, recompute_cached_metrics): Fix metric
14582 calculations.
14583 (w32_enumfont_pattern_entity): Make full_type a DWORD.
14584 Give opentype fonts their own format.
14585 (font_matches_spec): New arguments backend and logfont.
14586 Handle :otf spec for uniscribe backend.
14587 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
14588 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
14589
14590 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
14591 font backend.
14592 (globals_of_w32fns): Initialize uniscribe font backend.
14593
14594 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
14595 dependencies.
14596 (w32uniscribe.$(O)): New file to build.
14597 (FONT_OBJ): Include w32uniscribe.$(O).
14598 (LIBS): Add uniscribe libraries.
14599
14600 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
14601
146022008-04-02 Chong Yidong <cyd@stupidchicken.com>
14603
14604 * callint.c (Vshift_select_mode): New var.
14605 (Finteractive): Document new ^ spec.
14606 (Fcall_interactively): Call handle-shift-selection if the ^ spec
14607 is present.
14608
14609 * keyboard.c (Vthis_command_keys_shift_translated): New var.
14610 (command_loop_1): Avoid running the direct display versions of
14611 forward-char and backward-char if shift-selection may occur.
14612 (read_key_sequence): Set Vthis_command_keys_shift_translated if
14613 shift-translation takes place.
14614
14615 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
14616 avoid clobbering by define-minor-mode.
14617
14618 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
14619 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
14620
14621 * syntax.c (Fforward_word): Add ^ interactive spec.
14622
14623 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
14624 (Fscroll_right): Add ^ interactive spec.
14625
146262008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
14627
14628 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
14629
14630 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
14631
14632 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
14633
146342008-03-31 Juri Linkov <juri@jurta.org>
14635
14636 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
14637
146382008-03-30 Jan Djärv <jan.h.d@swipnet.se>
14639
14640 * gtkutil.c (xg_set_geometry): Fix indentation.
14641 (xg_resize_outer_widget): Remove.
14642 (x_wm_size_hint_off): Fix indentation.
14643 (xg_frame_set_char_size): Call flush_and_sync after
14644 gtk_window_resize.
14645 (x_wm_set_size_hint): Pass NULL as geometry window to
14646 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
14647 Add menu bar and tool bar height to base height.
14648 (xg_update_frame_menubar, free_frame_menubar)
14649 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
14650 (update_frame_tool_bar, free_frame_tool_bar):
14651 Change xg_resize_outer_widget to xg_frame_set_char_size.
14652
146532008-03-30 Michael Albinus <michael.albinus@gmx.de>
14654
14655 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
14656 (Fdbus_call_method): New parameter TIMEOUT.
14657 (dbus-send-signal): Optimize UNGCPRO call.
14658
146592008-03-29 Juri Linkov <juri@jurta.org>
14660
14661 * window.c (Fdisplay_buffer): Move call to
14662 Vsplit_window_preferred_function out of conditions that check
14663 if window is eligible for vertical splitting.
14664 When Vsplit_window_preferred_function is non-nil, call it and use
14665 its non-nil return value as window. Otherwise, continue doing
14666 vertical splitting using Fsplit_window with arg horflag=nil.
14667 (syms_of_window) <Vsplit_window_preferred_function>: Change the
14668 default value from `split-window' to nil.
14669
146702008-03-29 Juri Linkov <juri@jurta.org>
14671
14672 * callint.c (Fcall_interactively): Revert 2008-03-16 change
14673 for interactive code letters 'b' and 'B'.
14674
146752008-03-29 Eli Zaretskii <eliz@gnu.org>
14676
14677 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
14678 multibyte string.
14679
146802008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
14681
14682 * keyboard.c (pending_funcalls): New var.
14683 (timer_check): Run it.
14684 (syms_of_keyboard): Initialize it.
14685 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
14686 (Vdelete_terminal_functions): New vars.
14687 (syms_of_terminal): Initialize them.
14688 (Fdelete_terminal): Run delete-terminal-functions.
14689 * xdisp.c (safe_eval): Rewrite.
14690 (safe_call2): New fun.
14691 * frame.c (Qdelete_frame_functions): New var.
14692 (syms_of_frame): Initialize it.
14693 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
14694 * lisp.h (safe_call2, pending_funcalls): Declare.
14695
146962008-03-28 Andreas Schwab <schwab@suse.de>
14697
14698 * indent.c (Fmove_to_column): Move declaration before statements.
14699
147002008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
14701
14702 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
14703 (struct frame): Use bit fields for boolean vars.
14704
14705 * process.c (server_accept_connection): Simplify naming.
14706 (emacs_get_tty_pgrp): Use SDATA.
14707
14708 * coding.c (decode_coding_object): Fix last change.
14709
147102008-03-27 Jason Rumney <jasonr@gnu.org>
14711
14712 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
14713
147142008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
14715
14716 * charset.c (Fdefine_charset_internal): Change the way of
14717 registering charsets in Vcharset_order_list.
14718 (syms_of_charset): Make the charset `eight-bit' supplementary.
14719
147202008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
14721
14722 * regex.c (EXTEND_BUFFER): Change order of pointer addition
14723 operations, to avoid having the difference between pointers
14724 overflow.
14725
147262008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
14727
14728 * indent.c (check_display_width): New fun.
14729 (scan_for_column): Use it.
14730
14731 * data.c (syms_of_data): Mark most-positive-fixnum and
14732 most-negative-fixnum as constants.
14733
14734 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
14735
14736 * indent.c (scan_for_column): Extract from current_column_1.
14737 Merge with the same code from Fmove_to_column.
14738 (current_column_1, Fmove_to_column): Use it.
14739
147402008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
14741
14742 * keymap.c (map_keymap_internal): New fun.
14743 (map_keymap): Use it.
14744 (Fmap_keymap_internal): New fun.
14745 (Fmap_keymap): Remove left-out test from before make_save_value.
14746
14747 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
14748
14749 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
14750 Use XCAR/XCDR.
14751
14752 * process.h (struct Lisp_Process): Remove filter_multibyte.
14753 * process.c (QCfilter_multibyte): Remove.
14754 (setup_process_coding_systems): Don't use filter_multibyte.
14755 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
14756 (read_process_output): Don't adjust multibyteness to filter_multibyte.
14757 (Fset_process_filter_multibyte): Change the coding-system to
14758 approximate the previous behavior.
14759 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
14760 coding-system.
14761
14762 * coding.c (decode_coding_object): When not decoding into a buffer,
14763 obey the coding system's preference of (uni|multi)byte.
14764
147652008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
14766
14767 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
14768 every char is changed and has a different byte-length.
14769 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
14770 Fix int -> EMACS_INT.
14771
147722008-03-23 David Hansen <david.hansen@gmx.net>
14773
14774 * dbusbind.c (xd_read_message): Remove extra copying of message
14775 strings. Check for NULL `interface' or `member'.
14776
147772008-03-22 Eli Zaretskii <eliz@gnu.org>
14778
14779 * w32.c (readdir): If FindFirstFile/FindNextFile return in
14780 cFileName a file name that includes `?' characters, use the 8+3
14781 alias in cAlternateFileName instead.
14782
147832008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
14784
14785 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
14786
147872008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
14788
14789 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
14790 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
14791 work on current_buffer only instead (that was already the case
14792 for some of the code anyway).
14793 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
14794 (temp_set_point, temp_set_point_both): Use EMACS_INT.
14795 (SET_PT, SET_PT_BOTH): Adjust.
14796 * intervals.h (set_point, temp_set_point, set_point_both)
14797 (temp_set_point_both): Remove redundant declarations.
14798
147992008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
14800
14801 * fileio.c (Finsert_file_contents):
14802 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
14803 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
14804 when buffer != current_buffer anyway.
14805
148062008-03-20 Andreas Schwab <schwab@suse.de>
14807
14808 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
14809 as default.
14810
148112008-03-19 Jason Rumney <jasonr@gnu.org>
14812
14813 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
14814 (syms_of_w32fns): Initialize them.
14815 (HOURGLASS_ID): New constant.
14816 (x_window_to_frame): Don't check hourglass_window.
14817 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
14818 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
14819 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
14820 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
14821 Only change the cursor if hourglass is not active.
14822 (Fx_create_frame): Initialize frame's current_cursor.
14823 (hourglass_atimer): Remove.
14824 (hourglass_started): New function.
14825 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
14826 (show_hourglass): Adapt to w32, changing argument to frame.
14827
14828 * w32term.h (struct w32_output): Remove hourglass_window.
14829 Add current_cursor.
14830
14831 * eval.c (call_debugger, Fsignal):
14832 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
14833 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
14834 (Fexecute_extended_command, cancel_hourglass_unwind):
14835 * minibuf.c (read_minibuf):
14836 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
14837
148382008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
14839
14840 * window.c (run_funs): New fun.
14841 (run_window_configuration_change_hook): Use it to run the buffer-local
14842 and the global part of the hook.
14843
14844 * xdisp.c (format_mode_line_unwind_data): Add window argument.
14845 (unwind_format_mode_line): Restore selected window.
14846 (x_consider_frame_title, Fformat_mode_line): Set selected window.
14847
148482008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
14849
14850 * editfns.c (Fchar_equal): Check they are valid characters.
14851
14852 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
14853
148542008-03-17 Andreas Schwab <schwab@suse.de>
14855
14856 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
14857 against a charset.
14858
14859 * lisp.h (Fbuffer_list): Declare.
14860
148612008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 14862
aac0c6e3
MR
14863 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
14864 handlebox_widget is != 0.
14865
148662008-03-16 Juri Linkov <juri@jurta.org>
14867
14868 * callint.c (Fcall_interactively): For interactive code letters
14869 'b' and 'B' put the buffer list into the list of default "future"
14870 values of the minibuffer.
14871
148722008-03-16 Andreas Schwab <schwab@suse.de>
14873
14874 * keyboard.c (read_key_sequence): Fix downcasing of letters with
14875 modifiers.
14876
14877 * regex.c (re_match_2_internal): Correct matching of a charset
14878 against latin-1 characters.
14879
148802008-03-16 Kenichi Handa <handa@m17n.org>
14881
14882 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
14883 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
14884 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
14885 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
14886 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
14887 CHAR_STRING_ADVANCE.
14888 (produce_chars): Fix for the case that the source and the
14889 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
14890 instead of CHAR_STRING_ADVANCE.
14891 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
14892 STRING_CHAR_ADVANCE.
14893
148942008-03-15 Andreas Schwab <schwab@suse.de>
14895
14896 * regex.c (re_match_2_internal): Correct matching of eight bit
14897 characters in unibyte strings.
14898
148992008-03-15 Martin Rudalics <rudalics@gmx.at>
14900
14901 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
14902 at end of range when it coincides with the end of the buffer.
14903
149042008-03-14 Eli Zaretskii <eliz@gnu.org>
14905
14906 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
14907
14908 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
14909
149102008-03-14 Jason Rumney <jasonr@gnu.org>
14911
14912 * editfns.c (initial_tz): New variable.
14913 (syms_of_editfns): Initialize it.
14914 (Fset_time_zone_rule): Set it when first called.
14915 Use it when TZSTRING is nil.
14916
14917 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
14918 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
14919 (monitor_from_point_fn, get_monitor_info_fn): New globals.
14920 (globals_of_w32fns): Initialize them.
14921 (compute_tip_xy): Use them to position tooltips.
14922
149232008-03-14 Glenn Morris <rgm@gnu.org>
14924
14925 * emacs.c (main): Revert previous change.
14926 (standard_args): Revert -internal-script back to -scriptload,
14927 and remove the long-option form.
14928
149292008-03-13 Glenn Morris <rgm@gnu.org>
14930
14931 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
14932 Remove option -enable-font-backend.
14933
149342008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
14935
14936 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
14937
149382008-03-11 Jan Djärv <jan.h.d@swipnet.se>
14939
14940 * xterm.c (x_connection_closed): For GTK: If this is the last
14941 terminal just exit without closing the display.
14942
149432008-03-11 Jason Rumney <jasonr@gnu.org>
14944
14945 * w32font.c (w32font_full_name): Use floor to round.
14946
f0131492 149472008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
14948
14949 * sound.c (alsa_configure): Declare vol at beginning of block.
14950
14951 * fontset.c (Ffontset_info): Remove extra semicolon.
14952
149532008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
14954
14955 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
14956 size of resulting string.
14957
149582008-03-10 Jason Rumney <jasonr@gnu.org>
14959
14960 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
14961
149622008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14963
14964 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
14965 Don't pretend as if characters with display property haven't been
14966 consumed for string-replacing-string case.
14967
149682008-03-08 Kim F. Storm <storm@cua.dk>
14969
14970 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
14971 (get_next_display_element, next_element_from_string)
14972 (next_element_from_ellipsis, next_element_from_buffer): Use it.
14973
149742008-03-08 Andreas Schwab <schwab@suse.de>
14975
14976 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
14977
149782008-03-06 Jason Rumney <jasonr@gnu.org>
14979
14980 * w32font.c (w32_registry): Take font_type argument. Use ANSI
14981 when charset not specified. Only translate ANSI to unicode when
14982 font_type is truetype.
14983 (w32font_coverage_ok): New function.
14984 (add_font_entity_to_list): Use it to filter unsuitable fonts.
14985
149862008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
14987
14988 * lread.c (Fread_char): Resolve modifiers.
14989 (Fread_char_exclusive): Likewise.
14990
14991 * character.c (char_resolve_modifier_mask): New function.
14992 (char_string): Use char_resolve_modifier_mask.
14993 (Fchar_resolve_modifiers): New function.
14994 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
14995 function.
14996
149972008-03-04 Jason Rumney <jasonr@gnu.org>
14998
14999 * makefile.w32-in: Always include w32font.c in the build.
15000 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
15001
150022008-03-04 Andreas Schwab <schwab@suse.de>
15003
15004 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
15005 (versionclean): Likewise.
15006
150072008-03-04 Juanma Barranquero <lekktu@gmail.com>
15008
15009 * .cvsignore: Add oo.
15010
150112008-03-03 Andreas Schwab <schwab@suse.de>
15012
15013 * coding.c (decode_coding_object): Inhibit gap shrinking while
15014 decoding in place.
15015
150162008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
15017
15018 * w32term.c: Remove unused include "gnu.h".
15019 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
15020
15021 * gnu.h: Rename to ...
15022 * emacs-icon.h: ... this.
15023 * xterm.c: Use emacs-icon.h instead of gnu.h.
15024 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
15025
150262008-03-03 Juanma Barranquero <lekktu@gmail.com>
15027
15028 * w32font.c: Include math.h.
15029
150302008-03-03 Jason Rumney <jasonr@gnu.org>
15031
15032 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
15033 Compute options separately.
15034 (w32font_open_internal): Set glyph_idx before caching metrics.
15035
15036 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
15037 Define if system headers don't.
15038 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
15039 (w32font_encode_char): Don't declare here.
15040
15041 * w32font.c (Quniscribe, QCformat): New symbols.
15042 (syms_of_w32font): Define them.
15043 (w32font_has_char): Indicate uncertainty.
15044 (w32font_encode_char): Encode as glyph point. Make static.
15045 (recompute_cached_metrics): New function.
15046 (w32font_open_internal): Use it. Set font to use glyph points
15047 initially. Set format based on type of font.
15048 (w32font_text_extents, w32font_draw): Optionally use glyph points.
15049 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
15050 on it. Set format based on information available here.
15051 (add_font_entity_to_list): Identify backend based on opentype_only.
15052
150532008-03-02 Andreas Schwab <schwab@suse.de>
15054
15055 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
15056
15057 * coding.c (decode_coding_big5, produce_chars):
15058 Fix typos in last change.
15059
150602008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
15061
15062 * gnu.h: New icon.
15063
150642008-03-02 Kenichi Handa <handa@m17n.org>
15065
15066 * coding.c (decode_coding_utf_8): When eol-type of CODING is
15067 `dos', don't decode '\r' if that is the last in the source.
15068 (decode_coding_utf_16, decode_coding_emacs_mule)
15069 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15070 (decode_coding_raw_text, decode_coding_charset): Likewise.
15071 (produce_chars): Don't decode EOL here. Use EMACS_INT.
15072
150732008-03-01 Jason Rumney <jasonr@gnu.org>
15074
15075 * w32font.c (w32font_full_name): Report point size for scalable fonts.
15076
150772008-03-01 Kim F. Storm <storm@cua.dk>
15078
15079 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
15080
150812008-03-01 Jason Rumney <jasonr@gnu.org>
15082
15083 * w32font.c (w32font_full_name): New function.
15084 (w32font_open_internal): Use it.
15085
150862008-03-01 Kim F. Storm <storm@cua.dk>
15087
15088 * dispnew.c (line_draw_cost): Fix invalid glyph check.
15089
150902008-03-01 Jason Rumney <jasonr@gnu.org>
15091
15092 * font.c (font_unparse_fcname): Increase len when style is a symbol.
15093
150942008-03-01 Jan Djärv <jan.h.d@swipnet.se>
15095
15096 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
15097 xg_frame_resized when the event is for the edit widget.
15098
15099 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
15100
15101 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
15102 set_char_size.
15103 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
15104 operations on widgets here. Just set frame size if needed.
15105 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
15106 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
15107 (x_wm_set_size_hint): Set size hints on the edit widget only, not
15108 the whole frame.
15109 (xg_create_tool_bar): Move attachment of the tool bar to
15110 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
15111 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
15112
151132008-03-01 Jason Rumney <jasonr@gnu.org>
15114
15115 * w32fns.c (w32_msg_pump): Disable debug code.
15116
151172008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15118
15119 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
15120
151212008-02-29 Chong Yidong <cyd@stupidchicken.com>
15122
15123 * xdisp.c (next_overlay_string): Don't set
15124 overlay_strings_at_end_processed_p if we're currently reading from
15125 a display string.
15126
151272008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
15128
15129 * xdisp.c (get_overlay_strings_1): Fix typo.
15130
151312008-02-29 Chong Yidong <cyd@stupidchicken.com>
15132
15133 * xdisp.c (get_overlay_strings_1): Add missing argument type.
15134
151352008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
15136
15137 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
15138
15139 * xdisp.c (display_mode_element): Cancel the previous change.
15140 (decode_mode_spec): Likewise.
15141 (handle_auto_composed_prop): Don't make composition if it->string
15142 is a string.
15143
151442008-02-27 Kim F. Storm <storm@cua.dk>
15145
15146 * lisp.h (GLYPH): Change type from int to struct with separate char
15147 and face_id members.
15148 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
15149 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
15150 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
15151 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
15152 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
15153 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
15154 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
15155 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
15156 handle new Lisp glyph code encoding, either an integer or a cons.
15157
15158 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
15159 (GLYPH_ALIAS): Delete.
15160 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
15161 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
15162 (GLYPH_FROM_CHAR): Replace macro by ...
15163 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
15164
15165 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
15166 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
15167 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
15168 (GLYPH_INVALID_P): New macro.
15169 (spec_glyph_lookup_face): Update prototype.
15170
15171 * dispnew.c (line_draw_cost): Adapt to new glyph type.
15172 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
15173 new glyph code encoding.
15174 (spec_glyph_lookup_face): No return value; update passed glyph instead.
15175 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
15176
15177 * xdisp.c (get_next_display_element, next_element_from_display_vector):
15178 Adapt to new glyph type and new glyph code encoding.
15179
15180 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
15181
15182 * indent.c (current_column, current_column_1, Fmove_to_column)
15183 (compute_motion): Adapt to new glyph code encoding.
15184
15185 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
15186
151872008-02-27 Chong Yidong <cyd@stupidchicken.com>
15188
15189 * process.c (wait_reading_process_output): Check for window
15190 changes caused by timers.
15191 Suggested by Johan Bockgård.
15192
151932008-02-27 Glenn Morris <rgm@gnu.org>
15194
15195 * emacs.c (USAGE1): Add `--disable-font-backend'.
15196
151972008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
15198
15199 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
15200 is made to the buffer.
15201
152022008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
15203
15204 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
15205 (face_at_string_position):
15206 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
15207 (face_at_string_position):
15208 * xdisp.c (display_string, next_overlay_change):
15209 * buffer.h (overlays_at):
15210 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
15211 Update callers.
15212
152132008-02-26 Chong Yidong <cyd@stupidchicken.com>
15214
15215 * editfns.c (Fformat): Doc fix.
15216
152172008-02-26 Juanma Barranquero <lekktu@gmail.com>
15218
15219 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
15220 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
15221 (Ffont_otf_alternates, Fquery_font): Doc fixes.
15222
152232008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
15224
15225 * buffer.c (Fbuffer_swap_text): New function.
15226 (syms_of_buffer): Defsubr it.
15227
152282008-02-25 Chong Yidong <cyd@stupidchicken.com>
15229
15230 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
15231
152322008-02-25 Jason Rumney <jasonr@gnu.org>
15233
15234 * w32font.c (w32font_draw): Draw one character at a time when padding.
15235
152362008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
15237
15238 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
15239 Handle a nil arg. Use run_window_configuration_change_hook.
15240 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
15241 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
15242 Use run_window_configuration_change_hook.
15243
152442008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
15245
15246 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
15247 1-pixel width.
15248
152492008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
15250
15251 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
15252 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
15253 if the glyph in the font is zero pixel with.
15254
15255 * dispextern.h (struct glyph_string): New member padding_p.
15256
15257 * w32font.c (w32font_draw): Pay attention to s->padding_p.
15258
15259 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
15260
15261 * xfont.c (xfont_draw): Pay attention to s->padding_p.
15262
15263 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
15264
15265 * font.c: If the font driver doesn't have `shape' function, return Qnil.
15266
152672008-02-25 Jason Rumney <jasonr@gnu.org>
15268
15269 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
15270
152712008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
15272
15273 Allow fine-grained image-cache flushing.
15274 * dispextern.h (struct image): Add `dependencies' field.
15275 (clear_image_caches): Change arg to Lisp_Object.
15276 * image.c (make_image): Initialize `dependencies' field.
15277 (clear_image_cache): Change arg to allow fine-grained flushing.
15278 Perform the flush even if image-cache-eviction-delay is nil.
15279 (clear_image_caches): Change arg to Lisp_Object.
15280 (Fclear_image_cache): Expand meaning of the argument.
15281 (mark_image): Mark `dependencies' field.
15282 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
15283 (lface_hash): Use XHASH rather than XFASTINT.
15284 (face_at_buffer_position): Fix int -> EMACS_INT position.
15285 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
15286 (select_frame_for_redisplay): Remove code duplication.
15287 (redisplay_internal): Adapt arg to call to clear_image_caches.
15288
152892008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
15290
15291 * s/vms4-0.h:
15292 * s/vms4-2.h:
15293 * s/vms4-4.h:
15294 * s/vms5-5.h: Remove, unused.
15295
15296 * s/irix5-2.h:
15297 * s/irix6-0.h:
15298 * s/riscos5.h:
15299 * s/mach-bsd4-3.h:
15300 * m/mips4.h: Remove files for obsolete systems.
15301
15302 * Makefile.in:
15303 * filelock.c:
15304 * unexmips.c:
15305 * m/hp9000s300.h:
15306 * m/iris4d.h:
15307 * s/aix3-1.h:
15308 * s/hpux.h:
15309 * s/msdos.h:
15310 * s/usg5-0.h:
15311 * s/usg5-2-2.h:
15312 * s/usg5-2.h:
15313 * s/usg5-3.h: Remove references to obsolete variables.
15314
15315 * s/irix5-0.h: Remove, move all the contents ...
15316 * s/irix6-5.h: ... here. Simplify.
15317 * config.in: Regenerate.
15318
153192008-02-24 Jason Rumney <jasonr@gnu.org>
15320
15321 * w32term.c (x_draw_glyph_string_background): Clear the background
15322 manually when cleartype is in use.
15323 (x_draw_glyph_string_foreground): Draw text transparently when
15324 cleartype is in use.
15325
15326 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
15327 a font into it unless we have to.
15328
153292008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
15330
15331 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
15332 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 15333
aac0c6e3
MR
153342008-02-18 Jason Rumney <jasonr@gnu.org>
15335
15336 * w32fns.c (Fw32_shell_execute): Encode parameters.
15337
153382008-02-09 Eli Zaretskii <eliz@gnu.org>
15339
15340 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
15341
153422008-02-05 Juanma Barranquero <lekktu@gmail.com>
15343
15344 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
15345
153462008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
15347
15348 * xterm.c (x_set_offset): Don't change the gravity if
15349 CHANGE_GRAVITY is -1.
15350
153512008-02-23 Chong Yidong <cyd@stupidchicken.com>
15352
15353 * fileio.c (auto_save_error_occurred): New var.
15354 (auto_save_error): Set it.
15355 (Fdo_auto_save): Don't overwrite the error message if an auto-save
15356 error occurred.
15357
153582008-02-23 Eli Zaretskii <eliz@gnu.org>
15359
15360 * w32.c (globals_of_w32): Add initializations for
15361 g_b_init_get_sid_sub_authority and
15362 g_b_init_get_sid_sub_authority_count.
15363
153642008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
15365
15366 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
15367 (font_parse_xlfd): Use them for sanity check.
15368 (Finternal_set_font_style_table): Make sure the table is bijective.
15369
15370 Consolidate the image_cache to the terminal struct.
15371 * termhooks.h (P_): Remove redundant def.
15372 (struct terminal): New field `image_cache'.
15373 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
15374 of FRAME_X_IMAGE_CACHE.
15375 * xterm.h (struct x_display_info): Remove image_cache field.
15376 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15377 * w32term.h (struct w32_display_info): Remove image_cache field.
15378 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15379 * macterm.h (struct mac_display_info): Remove image_cache field.
15380 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15381 * xterm.c (x_term_init):
15382 * w32term.c (w32_term_init):
15383 * macterm.c (mac_term_init): Set the image_cache in the terminal.
15384 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
15385 Remove declarations.
15386 (clear_image_caches, mark_image_cache): New declarations.
15387 * xfaces.c (clear_face_cache):
15388 * xdisp.c (redisplay_internal): Use clear_image_caches.
15389 * image.c (clear_image_cache): Don't check that a frame is on
15390 a window-system before checking if it shares the same cache.
15391 (clear_image_caches): New function.
15392 (Fclear_image_cache): Use it.
15393 (mark_image): Move from allo.c.
15394 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
15395 * alloc.c (mark_image, mark_image_cache): Move to image.c.
15396 (mark_object): Don't call mark_image_cache for frames.
15397 (mark_terminals): Call mark_image_cache.
15398
15399 * lisp.h (Fdelete_terminal): Declare.
15400
15401 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
15402 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
15403 wrong_type_argument.
15404
154052008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
15406
15407 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
15408 malayalam.el, and tamil.el. Add sinhala.el.
15409
154102008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
15411
15412 * xterm.c (x_connection_closed): Consolidate identical tests.
15413 (x_delete_terminal): Don't crash if called via x_connection_closed.
15414
154152008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
15416
15417 * xdisp.c (decode_mode_spec): New arg string.
15418 (display_mode_element): Adjust for the above change.
15419
154202008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
15421
15422 * callint.c (Fcall_interactively): Use AREF.
15423
154242008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
15425
15426 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
15427
154282008-02-18 Jan Djärv <jan.h.d@swipnet.se>
15429
15430 * xfns.c (Fx_show_tip): Set string to " " if empty.
15431
154322008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
15433
15434 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
15435 with Qt.
15436
154372008-02-17 Kenichi Handa <handa@m17n.org>
15438
15439 * ftfont.c (ftfont_shape): Return Lispy number.
15440
15441 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
15442 for GCs.
15443 (Finternal_set_font_selection_order): Call font_update_sort_order
15444 only when enable_font_backend is set.
15445 (realize_x_face): Set face->font_info to that of default face only
15446 when enable_font_backend is set.
15447
15448 * xdisp.c (handle_composition_prop): Set it->c to the fist
15449 character of the composed region.
15450 (fill_composite_glyph_string): Set base_face->font_info to
15451 s->font_info. Get a face for ascii from base_face->ascii_face.
15452 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
15453 with a face already decided.
15454 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
15455 non-negative.
15456 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
15457 call font_prepare_composition unconditionally.
15458
15459 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
15460
15461 * xterm.h (struct x_display_info): New member font.
15462
15463 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
15464 (x_set_mouse_face_gc, x_new_font): Likewise.
15465 (x_term_init): Setup display_info->font.
15466 (x_delete_terminal): Free display_info->font.
15467
15468 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
15469
15470 * ftxfont.c (ftxfont_default_fid): Delete it.
15471 (ftxfont_open): Set xfont->fid to 0.
15472 (ftxfont_end_for_frame): Clear data specific to the frame and the
15473 font-driver.
15474
15475 * xftfont.c (xftfont_default_fid): Delete it.
15476 (xftfont_open): Set xfont->fid to 0.
15477
15478 * fontset.c (FONTSET_OBJLIST): New macro.
15479 (fontset_find_font): Update font-object list of the fontset.
15480 (free_realized_fontset): New function.
15481 (free_face_fontset): Call free_realized_fontset.
15482 (Ffont_info): Call font_close_object only when enable_font_backend
15483 is set.
15484
15485 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
15486 [HAVE_NTGUI]: Include w32term.h.
15487 [MAC_OS]: Include macterm.ch.
15488 (font_otf_ValueRecord): Use make_number.
15489 (font_finish_cache): Fix handling of reference count.
15490 (font_clear_cache): Update num_fonts.
15491 (font_open_entity): Update smallest_char_width and
15492 smallest_font_height of the frame.
15493 (font_close_object): Update num_fonts.
15494 (Fclear_font_cache): Fix finding the target cache data.
15495
154962008-02-16 Glenn Morris <rgm@gnu.org>
15497
15498 * fontset.c (Finternal_char_font): Fix compilation warning.
15499
155002008-02-16 Eli Zaretskii <eliz@gnu.org>
15501
15502 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
15503 instead of char arrays. Enlarge the size of array passed to
15504 get_token_information.
15505
15506 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
15507 warnings.
15508
155092008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
15510
15511 * .gdbinit: Don't set `args', it breaks gdb --args.
15512
155132008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
15514
15515 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
15516 within a narrowed buffer.
15517
155182008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
15519
15520 * coding.c (decode_coding_object, encode_coding_object):
15521 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
15522
155232008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
15524
15525 * coding.c (coding_set_destination): Use BEG_BYTE rather than
15526 hardcoding 1.
15527 (detect_coding_system):
15528 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
15529 (string_char_to_byte, string_byte_to_char, insert_from_gap):
15530 * insdel.c (insert_from_gap):
15531 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
15532 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
15533 (string_to_multibyte):
15534 * character.c (chars_in_text, multibyte_chars_in_text):
15535 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
15536
15537 * character.h (FETCH_STRING_CHAR_ADVANCE)
15538 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
15539 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
15540 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
15541
15542 * casefiddle.c (casify_region): Only call after-change and composition
15543 functions on the part of the region that was changed.
15544
15545 * keyboard.c (read_avail_input):
15546 * frame.c (Fdelete_frame): Call Fdelete_terminal.
15547
155482008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
15549
15550 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
15551 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
15552
155532008-02-11 Juanma Barranquero <lekktu@gmail.com>
15554
15555 * w32menu.c (push_submenu_start, push_submenu_end)
15556 (push_left_right_boundary, push_menu_pane, push_menu_item):
15557 * keyboard.c (read_key_sequence): Don't pass args with side effects
15558 to AREF, it fails when compiling with -DENABLE_CHECKING.
15559
155602008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
15561
15562 * Makefile.in (${lispsource}international/charprop.el):
15563 Delete this target.
15564
15565 * search.c (boyer_moore): Fix incorrect synching of the trunk and
15566 emacs-unicode-2.
15567
155682008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
15569
15570 * terminal.c (Fdelete_terminal): Clean up the `force' path.
15571
155722008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
15573
15574 * frame.c (Qnoelisp): New symbol.
15575 (syms_of_frame): Initialize it.
15576 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
15577 harmless Elisp code, from a strong `force' from x_connection_closed.
15578 * frame.h (Qnoelisp): Declare.
15579 * xterm.c (x_connection_closed): Pass `noelisp'.
15580
15581 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
15582 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
15583 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
15584 rather than `int' for the type of `type'.
15585
155862008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
15587
15588 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
15589
15590 * Makefile.in (GNUC): Remove support for gcc-1.x.
15591
155922008-02-10 Richard Stallman <rms@gnu.org>
15593
15594 * lisp.h (ASET): Use AREF, not ASLOT.
15595
155962008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
15597
15598 * lisp.h (ASET): Check bounds.
15599
156002008-02-10 Glenn Morris <rgm@gnu.org>
15601
15602 * buffer.c (mode-name): Doc fix.
15603
156042008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
15605
15606 * Makefile.in:
15607 * emacs.c:
15608 * gmalloc.c:
15609 * keyboard.c:
15610 * lisp.h:
15611 * m/ibm370aix.h:
15612 * process.c:
15613 * regex.c:
15614 * s/hpux.h:
15615 * sysdep.c:
15616 * sysselect.h:
15617 * systty.h:
15618 * unexec.c:
15619 * w32term.c:
15620 * xsmfns.c:
15621 * xterm.c: Remove code that deals with obsolete variables.
15622
15623 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
15624
15625 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
15626 nothing else needs it anymore.
15627
156282008-02-09 Eli Zaretskii <eliz@gnu.org>
15629
15630 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
15631 instead of unibyte_char_to_multibyte.
15632
156332008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
15634
15635 * s/gnu-linux.h: Remove commented out code.
15636
15637 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
15638
15639 * Makefile.in: Update what RMS says about using autoconf.
15640 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
15641 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
15642 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
15643 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
15644
156452008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
15646
15647 * keymap.c (Fkey_description): Move side effect outside of macro call.
15648
15649 * xfaces.c (Finternal_make_lisp_face):
15650 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
15651
15652 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
15653 (syms_of_fontset): Use ASET.
15654
15655 * fns.c (concat): Move side effect outside of macro call.
15656 (hash_clear): Use ASET.
15657
156582008-02-08 Richard Stallman <rms@gnu.org>
15659
15660 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
15661 If FORCE, and frame has a surrogate minibuffer for another frame,
15662 delete the other frame first.
15663
156642008-02-07 Timo Savola <timo.savola@iki.fi>
15665
15666 * xterm.c (x_detect_focus_change): Handle embed client message.
15667 (handle_one_xevent): Ditto.
15668 (handle_one_xevent): If embedded and we get a button press/release,
15669 request focus.
15670 (xembed_set_info, xembed_send_message): New functions.
15671 (x_make_frame_visible): Call xembed_set_info if embedded.
15672 (x_make_frame_invisible): Call xembed_set_info if embedded.
15673 (x_term_init): Initialize Xatom_XEMBED.
15674 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
15675 (x_iconify_frame): Ditto.
15676
15677 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
15678 (enum xembed_info, enum xembed_message, enum xembed_focus)
15679 (enum xembed_modifier, enum xembed_accelerator): New.
15680 (xembed_set_info, xembed_send_message): Declare.
15681 (FRAME_X_EMBEDDED_P): New.
15682
15683 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
15684 gtk_plug_new.
15685
15686 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
15687 window ID of a frame.
15688 (x_window): Reparent frame if embedded.
15689 (Fx_create_frame): Don't set border width if embedded.
15690
15691 * emacs.c (USAGE3): Add --parent-id.
15692 (standard_args): Ditto.
15693
156942008-02-07 Jan Djärv <jan.h.d@swipnet.se>
15695
15696 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
15697
156982008-02-07 Jim Meyering <meyering@redhat.com>
15699
15700 Use "do...while (0)", not "if (1)...else" in macro definitions.
15701 The latter provokes a warning from gcc about the empty else, when
15702 followed by ";". Also, without that trailing semicolon, it would
15703 silently swallow up any following statement.
15704 * syntax.h (SETUP_SYNTAX_TABLE)
15705 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
15706 * buffer.h (DECODE_POSITION): Likewise.
15707 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
15708 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
15709 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
15710 (FETCH_CHAR_ADVANCE): Likewise.
15711 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
15712
157132008-02-07 Jim Meyering <meyering@redhat.com>
15714
15715 * lread.c [lint]: Don't include <sys/inode.h>.
15716
157172008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
15718
15719 * xselect.c (x_handle_dnd_message):
15720 * xmenu.c (digest_single_submenu, xmenu_show):
15721 * xdisp.c (with_echo_area_buffer_unwind_data)
15722 (format_mode_line_unwind_data, unwind_format_mode_line)
15723 (display_menu_bar):
15724 * eval.c (Ffetch_bytecode):
15725 * doc.c (store_function_docstring):
15726 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
15727 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
15728 * buffer.c (add_overlay_mod_hooklist): Use ASET.
15729
157302008-02-07 Kenichi Handa <handa@m17n.org>
15731
15732 * ftxfont.c (ftxfont_open): Don't set
15733 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
15734
15735 * ftfont.c (ftfont_open): Fix previous change.
15736
157372008-02-06 Jason Rumney <jasonr@gnu.org>
15738
15739 * w32font.c (w32font_text_extents): Fill in lbearing metric.
15740 Use cached metrics for ASCII characters.
15741 (w32font_open_internal): Don't set font's owning_frame.
15742 Cache metrics for ASCII characters.
15743
15744 * w32font.h (struct w32font_info): Add ascii_metrics.
15745 Remove owning_frame.
15746
157472008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
15748
15749 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
15750 to negative value.
15751
15752 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
15753
15754 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
15755
15756 * charset.c (syms_of_charset): Set QCtest and Qeq.
15757
157582008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
15759
15760 * process.c (Fstart_process):
15761 * callproc.c (Fcall_process): Handle the case where
15762 Funhandled_file_name_directory returns nil.
15763
15764 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
15765 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
15766 * font.c (check_gstring): Use them and AREF to access the vector before
15767 we know it's really a gstring.
15768 (Ffont_shape_text): Fix typo.
46e722a9 15769 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
15770
15771 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
15772 Declare.
15773
15774 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
15775
157762008-02-05 Jason Rumney <jasonr@gnu.org>
15777
15778 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
15779 Set smallest_font_height and smallest_char_width in display info.
15780
157812008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
15782
15783 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
15784
157852008-02-05 Miles Bader <miles@gnu.org>
15786
15787 * xfaces.c (get_lface_attributes, merge_named_face)
15788 (lookup_named_face, lookup_derived_face, realize_named_face):
15789 Revert 2008-02-01 change by cyd@stupidchicken.com.
15790
157912008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
15792
15793 * fontset.c (Ffontset_info): Handle the case of inhibitting the
15794 fallback fonts.
15795 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
15796
157972008-02-04 Jason Rumney <jasonr@gnu.org>
15798
15799 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
15800 set full_name.
15801 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
15802
158032008-02-03 Jason Rumney <jasonr@gnu.org>
15804
15805 * makefile.w32-in (OBJ1): Include font.o here.
15806 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
15807
158082008-02-02 Jason Rumney <jasonr@gnu.org>
15809
15810 * makefile.w32-in (temacs): Bump EMHEAP to 21.
15811
158122008-02-01 Jason Rumney <jasonr@gnu.org>
15813
15814 * s/cygwin.h: Define VIRT_ADDR_VARIES.
15815
15816 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
15817
158182008-02-01 Andreas Schwab <schwab@suse.de>
15819
15820 * Makefile.in (shortlisp, lisp): Update for rename of
15821 ../lisp/language/myanmar.el.
15822
158232008-02-01 Chong Yidong <cyd@stupidchicken.com>
15824
15825 * xfaces.c (get_lface_attributes): Delete function.
15826 (merge_named_face, lookup_named_face, lookup_derived_face)
15827 (realize_named_face): Call lface_from_face_name directly, and use
15828 the fact that merge_face_vectors does not alter its FROM argument.
15829
158302008-02-01 Jason Rumney <jasonr@gnu.org>
15831
15832 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
15833 input in the default locale. Handle non-Unicode multibyte input.
15834
158352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15836
15837 * fontset.c (reorder_font_vector): Exclude nil elements from the
15838 font group. Don't try multiple fonts.
15839 (fontset_font): Adjust for the above change.
15840 (Finternal_char_font): Return nil if the found font doesn't
15841 contain the character ch.
15842
15843 * Makefile.in (lisp, shortlisp): Add cham.el.
15844
158452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15846
15847 * font.h (FONTP): Make it return 1 also for a font-object.
15848
15849 * .gdbinit (xfontset): New function.
15850
15851 * font.c (font_find_for_lface): Check if the character C is
15852 supported or not only for the first font.
15853
15854 * fontset.c (reorder_font_vector): Fix typo.
15855 (fontset_find_font): Don't add a font-spec specifying a script.
15856 Use 0 (not Qt) for the indication of empty font-group. Change the
15857 format of RFONT-DEF. Return Qt if no font in the font-group
15858 support the character.
15859 (fontset_font): Adjust for the above change. If no font was
15860 found the character, remember that.
15861 (face_for_char): Adjust for the change of RFONT-DEF.
15862 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
15863 no font for the target.
15864 (Finternal_char_font): Adjust for the change of RFONT-DEF.
15865
158662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15867
15868 * font.c (font_load_for_face): Handle the case that the font in
15869 face->lface is a string.
15870
158712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15872
15873 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
15874
158752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15876
15877 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
15878 Fix previous change. If the frame is not on a window system,
15879 signal an error.
15880
158812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15882
15883 * coding.c (decode_coding_object, encode_coding_object): Adjust
15884 marker positions after conversion.
15885
15886 * lisp.h (struct Lisp_Marker): New member need_adjustment.
15887
158882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15889
15890 * font.c (font_find_for_lface): Fix the handling of the return
15891 value of font_has_char.
15892 (Ffont_shape_text): Fix previous change.
15893
15894 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
15895 (fontset_ref_and_range): Delete it.
15896 (fontset_find_font): Call char_table_ref_and_range instead of
15897 FONTSET_REF_AND_RANGE.
15898 (make_fontset): Don't setup font groups of Latin here.
15899 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
15900 (new_fontset_from_font): Make the specified font the default for
15901 all Latin characters.
15902
159032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15904
15905 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
15906 is on a window system before accessing the fontset of the frame.
15907
159082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15909
15910 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
15911
15912 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
15913 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
15914
15915 * font.c (Ffont_shape_text): If the font driver doesn't have a
15916 shaper function, make zero-width glyphs to have at least one-pixel
15917 width. Fix setting of `to' field of glyphs.
15918
159192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15920
15921 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
15922 glyphs.
15923
15924 * font.h (struct font_driver): Improve docstring of member `shape'.
15925
159262008-02-01 Kenichi Handa <handa@m17n.org>
15927
15928 * composite.c (syms_of_composite): Fix docstring of
15929 auto-composition-function.
15930
15931 * font.h (LGLYPH_SIZE): New macro.
15932
15933 * font.c (Ffont_fill_gstring): Stop filling when a character not
15934 supported by the font is found.
15935 (Ffont_shape_text): When a shape callback function returns nil,
15936 try at most two more times with larger gstring.
15937 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
15938
15939 * xdisp.c (handle_auto_composed_prop): Change the argument to
15940 auto-composition-function.
15941
15942 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
15943 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
15944 Lispy glyph and store it in the lgstring.
15945
15946 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
15947
15948 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
15949
159502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15951
15952 * font.c (Ffont_shape_text): Avoid unnecessary composition.
15953
15954 * fontset.c (Vfont_encoding_charset_alist): New variable.
15955 (syms_of_fontset): DEFVAR it.
15956 (reorder_font_vector, fontset_find_font): Optimize for the case of
15957 no need of reordering.
15958 (face_for_char): Map the charset property by
15959 Vfont_encoding_charset_alist.
15960
159612008-02-01 Jason Rumney <jasonr@gnu.org>
15962
15963 * w32font.c (logfonts_match): Don't check adstyle here.
15964 (font_matches_spec): Check here against physical font instead.
15965 (add_font_entity_to_list): Avoid some substitutions.
15966
15967 * font.c (font_parse_fcname): Default weight and slant to normal.
15968 (font_score): Prefer normal fonts if weight or slant unspecified.
15969 (font_score) [WINDOWSNT]: Scale weight difference down to closer
15970 match freetype scores.
15971
159722008-02-01 Jason Rumney <jasonr@gnu.org>
15973
15974 * w32font.c (w32font_text_extents): Don't use the frame stored in the
15975 font, as it may have been deleted.
15976 (w32_enumfont_pattern_entity): Map generic family to adstyle using
15977 most common hyphenless variation.
15978 (logfonts_match): Check generic family.
15979 (font_matches_spec): Don't check generic family here.
15980 (fill_in_logfont): Set generic family based on adstyle.
15981
15982 * w32font.h (w32font_get_cache): Update declaration.
15983
159842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15985
15986 * ftfont.c (ftfont_get_cache): Adjust the argument type.
15987
15988 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
15989 If none of the new drivers are available, call font_update_drivers
15990 with the old drivers.
15991
15992 * w32font.c (w32font_get_cache): Adjust the argument type.
15993
15994 * xfont.c (xfont_get_cache): Adjust the argument type.
15995
15996 * font.h (struct font_driver): Change argument type of get_cache.
15997
15998 * xftfont.c (xftfont_start_for_frame): Delete prototype.
15999
16000 * font.c (Ffont_get): Fix arguments to Fassoc.
16001 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
16002 (font_clear_cache): New function.
16003 (font_list_entities, font_matching_entity): Use font_get_cache.
16004 (font_update_drivers): Call font_clear_cache when finishing a driver.
16005
16006 * fontset.c (fontset_find_font): Fix previous change.
16007
160082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16009
16010 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
16011 dpyinfo->font_table.
16012 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
16013 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
16014
16015 * font.c (font_at): Handle the case that the arg C is negative.
16016 Handle the unibyte case.
16017 (Ffont_at): Call font_at with the arg C -1.
16018
16019 * xdisp.c (handle_auto_composed_prop): Don't get a character at
16020 the position here, and call font_at with the arg C -1.
16021 Don't check the range of the existing composition at the point.
16022
160232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16024
16025 * fontset.c (fontset_add): New args charset_id and family.
16026 Change caller.
16027 (load_font_get_repertory, fontset_find_font): Assume that
16028 font_spec is always a font-spec object.
16029 (Fset_fontset_font): Always store a font-spec object in a fontset.
16030
16031 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
16032 instead of get_property_and_range.
16033
160342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16035
16036 * xftfont.c (struct xftfont_info): Delete the member ft_face.
16037 (xftfont_open): Don't keep locking face.
16038 (xftfont_close): Don't unlock face.
16039 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
16040
16041 * fontset.c (fontset_find_font): Don't prefer a font of
16042 supplementary charset.
16043
160442008-02-01 Kenichi Handa <handa@m17n.org>
16045
16046 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
16047 script, langsys_tag to langsys, new member script.
16048 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 16049 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
16050 listing to the script specified in that property. Fix arg to
16051 OTF_check_features.
16052
160532008-02-01 Jason Rumney <jasonr@gnu.org>
16054
16055 * w32font.h: New file.
16056
16057 * w32font.c: Include it.
16058 (struct w32font_info): Add owning_frame field. Move to w32font.h.
16059 (w32font_open): Set owning_frame.
16060 (w32font_text_extents): Use owning_frame.
16061 (struct font_callback_data): Add opentype_only field.
16062 (add_font_entity_to_list): Use it to filter fonts.
16063 Don't check against full name.
16064 (w32font_list_internal): New function.
16065 (w32font_list): Use it.
16066 (w32font_match_internal): New function.
16067 (w32font_match): Use it.
16068 (w32font_open_internal): New function.
16069 (w32font_open): Use it.
16070 (w32font_get_cache, w32font_close, w32font_has_char)
16071 (w32font_encode_char, w32font_text_extents, w32font_draw):
16072 Make non-static.
16073
16074 * makefile.w32-in (w32font.o): Depend on w32font.h.
16075
160762008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16077
16078 * charset.c (Fdefine_charset_internal): Record a supplementary
16079 charset at the tail of Vcharset_order_list.
16080
16081 * font.c (Ffont_shape_text): Fix the return value.
16082
16083 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
16084
16085 * xdisp.c (handle_auto_composed_prop): Fix previous change.
16086
160872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16088
16089 * ftfont.c (struct OpenTypeSpec): New struct.
16090 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
16091 (ftfont_get_open_type_spec): New function.
16092 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
16093
16094 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
16095
160962008-02-01 Jason Rumney <jasonr@gnu.org>
16097
16098 * w32font.c (add_font_entity_to_list): Compare only the beginning
16099 of full name.
16100
161012008-02-01 Kenichi Handa <handa@m17n.org>
16102
16103 * xdisp.c (handle_auto_composed_prop): Simplify the code.
16104 Never return HANDLED_RECOMPUTE_PROPS.
16105
161062008-02-01 Kenichi Handa <handa@m17n.org>
16107
16108 * font.c (font_gstring_produce): Delete it.
16109
16110 * composite.h (COMPOSITION_METHOD):
16111 Handle COMPOSITION_WITH_GLYPH_STRING.
16112
161132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16114
16115 * xfont.c (Qx): Delete.
16116 (syms_of_xfont): Don't initialize Qx.
16117
16118 * composite.h (enum composition_method):
16119 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
16120
161212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16122
16123 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
16124 (choose_face_font): Accept new form of font-spec.
16125
16126 * frame.h (font_driver_list): Declare it unconditionally.
16127 (struct frame): Define members font_driver_list and font_data_list
16128 unconditionally.
16129
16130 * fontset.c: Include "font.h" unconditionally.
16131 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
16132 (Fset_fontset_font): Accept a font-spec object.
16133
16134 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
16135 PIXEL_SIZE part a wild card.
16136
16137 * dispextern.h (struct glyph_string): Define members clip and
16138 num_clips unconditionally.
16139 (struct face): Define members font_info and extra unconditionally.
16140
16141 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
16142 ftfont_info only when HAVE_LIBOTF is defined.
16143
161442008-02-01 Andreas Schwab <schwab@suse.de>
16145
16146 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
16147 and end.
16148
161492008-02-01 Jason Rumney <jasonr@gnu.org>
16150
16151 * w32font.c (w32font_driver): Add new fields.
16152
161532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16154
16155 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
16156 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
16157 (LIBES): Add @M17N_FLT_CFLAGS@.
16158
16159 * composite.c (compose_text): Don't treat the new style
16160 composition specially.
16161
16162 * emacs.c (main): Call syms_of_font unconditionally.
16163
16164 * font.h (FONT_ENTITY_NOT_LOADABLE)
16165 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
16166 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
16167 (struct font_driver): New member shape.
16168 (font_registry_charsets): Extern it.
16169 (font_find_for_lface, font_prepare_composition): Adjust prototype.
16170 (font_otf_capability, font_drive_otf): Delete their externs.
16171
16172 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
16173 (font_charset_alist, font_registry_charsets): Move from xfont.c
16174 and rename.
16175 (font_prop_validate_otf): New function.
16176 (font_property_table): Register it for QCotf.
16177 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
16178 (font_drive_otf): Delete.
16179 (font_prepare_composition): New arg F. Adjust for the change of
16180 lispy gstring.
16181 (font_find_for_lface): New arg C.
16182 (font_load_for_face): Adjust for the change of font_find_for_lface.
16183 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
16184 lispy gstring.
16185 (Ffont_shape_text): New function.
16186 (Fopen_font): If the font size is not given, use 12-pixel.
16187 (Ffont_at): New arg STRING.
16188 (syms_of_font): Initalize font_charset_alist.
16189 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
16190 conditionally.
16191
16192 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
16193 fonts of the same font-spec. Change the format of RFONT-DEF.
16194 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
16195 Adjust for the change of RFONT-DEF.
16196 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
16197
16198 * ftfont.h: New file.
16199
16200 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
16201 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
16202 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
16203 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
16204 font_otf_capability and font_drive_otf, set ftfont_shape.
16205 (ftfont_list): Adjust for the change of :otf property value.
16206 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
16207 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
16208 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
16209 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
16210 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
16211 (otf_gstring, gstring, m17n_flt_initialized): New variables.
16212
16213 * w32term.c (x_draw_composite_glyph_string_foreground):
16214 Adjust for the change of lispy gstring.
16215
16216 * xdisp.c (handle_composition_prop): Adjust for the change of
16217 lispy gstring. Call a function for auto-composition with the
16218 third arg it->window.
16219 (fill_composite_glyph_string): Adjust for the change of lispy string.
16220 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
16221
16222 * xfaces.c (set_font_frame_param): Adjust for the change of
16223 font_find_for_lface.
16224
16225 * xfont.c (x_font_charset_alist): Move to font.c and rename.
16226 (xfont_registry_charsets): Likewise. Change caller.
16227 (syms_of_xfont): Don't handle x_font_charset_alist.
16228
16229 * xftfont.c: Include "ftfont.h".
16230 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
16231 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
16232 (xftfont_close) [HAVE_LIBOTF]: Close otf.
16233 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
16234 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
16235 Set xftfont_driver.shape to xftfont_shape.
16236
16237 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
16238 the change of lispy gstring.
16239
162402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16241
16242 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
16243
162442008-02-01 Jason Rumney <jasonr@gnu.org>
16245
16246 * w32font.c (w32font_draw): Fill background manually.
16247
162482008-02-01 Jason Rumney <jasonr@gnu.org>
16249
16250 * font.c (Qfontp): Remove unused symbol.
16251 (QCantialias): New symbol.
16252 (syms_of_font): Define it.
16253 (font_property_table): Set a validator for QCantialias.
16254
16255 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
16256 Define if not already.
16257 (QCfamily): Share with xfaces.c.
16258 (Qstandard, Qsubpixel, Qnatural): New symbols.
16259 (syms_of_w32font): Define them. Don't define QCfamily here.
16260 (w32_antialias_type, lispy_antialias_type): New functions.
16261 (w32_enumfont_pattern_entity): New arg requested_font.
16262 Set antialias parameter if non-default was requested.
16263 (fill_in_logfont): Fill in lfQuality if :antialias specified.
16264
162652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16266
16267 * lread.c (read1): Undo the previous change.
16268
162692008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
16270
16271 * frame.c (Fdelete_frame): Call font_update_drivers only when
16272 USE_FONT_BACKEND is defined.
16273
162742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16275
16276 * font.h (struct font_bitmap): New member bits_per_pixel.
16277 (struct font_driver): New members start_for_frame and end_for_frame.
16278 (struct font_data_list): New struct.
16279 (font_put_frame_data, font_get_frame_data): Extern them.
16280
16281 * frame.h (struct frame): New member font_data_list.
16282
16283 * font.c (font_update_drivers): Call driver->start_for_frame and
16284 driver->end_for_frame at proper timings.
16285 (font_put_frame_data, font_get_frame_data): New functions.
16286 (Ffont_spec): Add usage in the docstring.
16287
16288 * frame.c (make_frame): Initialize f->font_data_list to NULL.
16289 (Fdelete_frame): Call font_update_drivers.
16290
16291 * xftfont.c (struct xftface_info): Delete the member xft_draw.
16292 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
16293 (xftfont_get_xft_draw): New function.
16294 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
16295 (xftfont_end_for_frame): New function.
16296 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
16297
16298 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
16299 Change argument. Cache GCs in the per-frame data.
16300 (struct ftxfont_frame_data): New struct.
16301 (ftxfont_draw_bitmap): New arg gc_fore and flush.
16302 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
16303 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
16304 (ftxfont_end_for_frame): New function.
16305 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
16306
16307 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
16308
163092008-02-01 Kenichi Handa <handa@m17n.org>
16310
16311 * xselect.c (Vselection_coding_system)
16312 (Vnext_selection_coding_system): Delete them.
16313 (syms_of_xselect): Don't declare selection-coding-system and
16314 next-selection-coding-system. They are declared in select.el.
16315
163162008-02-01 Jason Rumney <jasonr@gnu.org>
16317
16318 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
16319
16320 * w32fns.c: Include imm.h.
16321 (get_composition_string_fn, get_ime_context_fn): New optional
16322 system functions.
16323 (globals_of_w32fns): Load them from imm32.dll.
16324 (ignore_ime_char): New flag.
16325 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
16326 WM_IME_ENDCOMPOSITION messages.
16327
16328 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
16329 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
16330
163312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16332
16333 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
16334 (READCHAR_REPORT_MULTIBYTE): New macro.
16335 (readchar): New 2nd arg MULTIBYTE.
16336 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
16337 Make symbol's name multibyte according to the multibyteness of the
16338 source.
16339
163402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16341
16342 * xfaces.c (face_for_overlay_string): Call lookup_face with
16343 correct arguments (fix of synching with the trunk).
16344
163452008-02-01 Kenichi Handa <handa@m17n.org>
16346
16347 * font.c (font_prop_validate_symbol, font_prop_validate_style)
16348 (font_prop_validate_non_neg, font_prop_validate_spacing):
16349 Delete argument prop_index.
16350 (font_property_table): Change arguments to validater. Change Callers.
16351 (font_lispy_object): Delete.
16352 (font_at): Use font_find_object instead fo font_lispy_object.
16353
163542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16355
16356 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
16357 and file names.
16358
163592008-02-01 Jason Rumney <jasonr@gnu.org>
16360
16361 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
16362 (font_matches_spec): Remove debug output.
16363 (add_font_entity_to_list): Avoid using substituted fonts.
16364
163652008-02-01 Jason Rumney <jasonr@gnu.org>
16366
16367 * doc.c (Fsnarf_documentation):
16368 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
16369
163702008-02-01 Miles Bader <miles@gnu.org>
16371
16372 * dispextern.h (struct glyph_row): Only define "clip" field if
16373 HAVE_WINDOW_SYSTEM is defined.
16374
163752008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16376
16377 Fix up multi-tty merge.
16378
16379 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
16380 and indentation.
16381
16382 * xfaces.c (free_realized_face, clear_face_gcs):
16383 Include font_done_for_face in the input_blocked section, just in case.
16384
16385 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
16386 (get_char_face_and_encoding): Undo last change and remove the *other*
16387 duplicate definition (i.e. keep the one that's better scoped and that
16388 includes code for the font-backend).
16389
16390 * terminal.c (create_terminal): Default keyboard_coding to
16391 `no-conversion' and terminal_coding to `undecided'.
16392
16393 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
16394
16395 * fontset.c (free_realized_fontsets): Check that the table entry does
16396 contain a fontset before trying to compare it to `base'.
16397
16398 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
16399 syms_of_charset, and syms_of_coding earlier because init_window_once
16400 now needs Vcoding_system_hash_table to be setup.
16401
16402 * coding.h (default_buffer_file_coding): Remove.
16403
16404 * coding.c (default_buffer_file_coding): Remove.
16405 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
16406 than ->symbol, and use the terminal-local coding system.
16407 (syms_of_coding): Don't setup the coding-systems that are not
16408 terminal-local.
16409 (Fdefine_coding_system_internal): Use XCAR/XCDR.
16410
16411 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
16412 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
16413
16414 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
16415 in chartab.c and were re-added here by mistake.
16416 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
16417
16418 * doc.c (Fsnarf_documentation):
16419 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
16420 src to etc.
16421
16422 * ChangeLog.10: Add mistakenly removed entry.
16423
164242008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
16425
16426 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
16427
164282008-02-01 Miles Bader <miles@gnu.org>
16429
16430 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
16431 Add extra args to FACE_FOR_CHAR.
16432
164332008-02-01 Kenichi Handa <handa@m17n.org>
16434
16435 * keymap.c (where_is_internal_1): If key is a cons, store the copy
16436 in sequence.
16437
16438 * chartab.c (map_sub_char_table, map_char_table): If the range
16439 contains just one character, call the function with that character
16440 even if the depth is not 3.
16441
164422008-02-01 Jason Rumney <jasonr@gnu.org>
16443
16444 * w32font.c (w32font_text_extents): Calculate metrics for the
16445 whole string.
16446
164472008-02-01 Jason Rumney <jasonr@gnu.org>
16448
16449 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
16450
164512008-02-01 Jason Rumney <jasonr@gnu.org>
16452
16453 * w32term.c (x_set_glyph_string_clipping): Use
16454 get_glyph_string_clip_rects.
16455 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
16456 Adjust for the change of struct glyph_string.
16457
16458 * w32font.c (w32font_draw): Do clipping here.
16459
164602008-02-01 Kenichi Handa <handa@m17n.org>
16461
16462 * xftfont.c (xftfont_draw): Adjust for the change of struct
16463 glyph_string.
16464
16465 * xterm.c (x_set_glyph_string_clipping): Use
16466 get_glyph_string_clip_rects.
16467 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
16468 Adjust for the change of struct glyph_string.
16469
16470 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
16471 the resulting clip(s}.
16472 (expose_overlaps): Add arg r. Change callers. Set it to
16473 row->clip temporarily.
16474 (expose_window): Redraw rows overlapping the exposed area.
16475
16476 * dispextern.h (struct glyph_row): New member clip.
16477 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
16478 clip_height, new member clip, and num_clips.
16479
164802008-02-01 Kenichi Handa <handa@m17n.org>
16481
16482 * data.c (Fchar_or_string_p): Fix docstring.
16483
164842008-02-01 Kenichi Handa <handa@m17n.org>
16485
16486 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
16487 create a temporary XftDraw object.
16488
164892008-02-01 Kenichi Handa <handa@m17n.org>
16490
16491 * font.c (Ffontp): Fix docstring.
16492
16493 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
16494 strong evidence of ISO-2022.
16495
164962008-02-01 Kenichi Handa <handa@m17n.org>
16497
16498 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
16499 SYNTAX_ENTRY_FOLLOW_PARENT.
16500
165012008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16502
16503 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
16504 its type.
16505 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
16506 Update to the new type of weak_hash_tables and next_weak.
16507
16508 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
16509 a plain C pointer to Lisp_Hash_Table.
16510
16511 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
16512 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
16513 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
16514 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
16515 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
16516 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
16517 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
16518 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
16519 (GC_EQ): Remove since they've been identical to their non-GC_
16520 alter-egos ever since the markbit was eradicated.
16521
16522 * alloc.c:
16523 * buffer.c:
16524 * buffer.h:
16525 * data.c:
16526 * fileio.c:
16527 * filelock.c:
16528 * fns.c:
16529 * frame.h:
16530 * lisp.h:
16531 * macterm.c:
16532 * print.c:
16533 * process.c:
16534 * w32fns.c:
16535 * w32menu.c:
16536 * w32term.c:
16537 * xfns.c:
16538 * xmenu.c:
16539 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
16540
165412008-02-01 Kenichi Handa <handa@m17n.org>
16542
16543 * chartab.c (map_sub_char_table): Make it work for the top-level
16544 char-table. Fix handling of parent char-table.
16545 (map_char_table): Adjust for the above change.
16546
165472008-02-01 Jason Rumney <jasonr@gnu.org>
16548
16549 * w32font.c (Qgdi): Rename from Qw32.
16550
165512008-02-01 Jason Rumney <jasonr@gnu.org>
16552
16553 * w32bdf.c (get_quoted_string): Make function static.
16554
165552008-02-01 Kenichi Handa <handa@m17n.org>
16556
16557 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
16558 bigger ascent and descent than those of the font, use them as
16559 font's ascent and descent.
16560
165612008-02-01 Kenichi Handa <handa@m17n.org>
16562
16563 * Makefile.in (${lispsource}international/charprop.el): Move this
16564 target within "#ifdef HAVE_UNIDATA" and "#endif".
16565
165662008-02-01 Kenichi Handa <handa@m17n.org>
16567
16568 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
16569 (shortlisp): Add ../lisp/language/tai-viet.el.
16570
165712008-02-01 Ulrich Mueller <ulm@gentoo.org>
16572
16573 * Makefile.in (${lispsource}international/charprop.el): Depend on
16574 temacs${EXEEXT}.
16575
165762008-02-01 Jason Rumney <jasonr@gnu.org>
16577
16578 * w32font.c (w32font_close): Delete the GDI font object.
16579
16580 * w32menu.c: Include character.h.
16581
16582 * w32proc.c: Likewise.
16583
16584 * w32select.c: Likewise.
16585
16586 * makefile.w32-in (w32proc.o): Depend on character.h.
16587
165882008-02-01 Jason Rumney <jasonr@gnu.org>
16589
16590 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
16591
16592 * w32menu.c (syms_of_w32menu): Likewise.
16593
16594 * w32proc.c (syms_of_ntproc): Likewise.
16595
16596 * w32select.c (syms_of_w32select): Likewise.
16597
16598 * w32term.c (syms_of_w32term): Likewise.
16599
166002008-02-01 Jason Rumney <jasonr@gnu.org>
16601
16602 * w32font.c (w32font_draw): Delete brush after using it.
16603
166042008-02-01 Jason Rumney <jasonr@gnu.org>
16605
16606 * w32font.c (w32font_open): Don't set font_idx.
16607 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
16608 to font settings.
16609 (w32font_draw): Fill background explicitly.
16610
166112008-02-01 Jason Rumney <jasonr@gnu.org>
16612
16613 * w32term.c (w32_initialize): Don't call w32font_initialize.
16614
16615 * w32font.c (w32font_info): Remove subranges.
16616 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
16617 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
16618 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
16619 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
16620 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
16621 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
16622 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
16623 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
16624 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
16625 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
16626 New symbols.
16627 (font_callback_data): New struct.
16628 (w32font_list, w32font_match): Use it.
16629 (w32font_open): Don't populate subranges.
16630 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
16631 (w32font_encode_char): Always return unicode code-point as-is.
16632 (w32font_text_extents): Supply a transformation matrix to
16633 GetGlyphOutline. Never look up by glyph index. Avoid looping
16634 twice. Use unicode version of GetTexExtentPoint32 instead of
16635 glyph index version.
16636 (set_fonts_frame): Remove.
16637 (w32_enumfont_pattern_entity): Add frame parameter, use it to
16638 set frame parameter. Use backward compatible fake foundries.
16639 Save generic family in extra slot under QCfamily. Make width slot
16640 constant. Save QCspacing value. Save list of scripts instead of
16641 binary subranges.
16642 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
16643 (add_font_entity_to_list): Use font_callback_data struct. Filter
16644 unwanted fonts.
16645 (add_one_font_entity_to_list): Use font_callback_data struct.
16646 (w32_registry): Default to iso10646_1.
16647 (fill_in_logfont): Use dpi from extra slot. Don't bother with
16648 string font registries. Don't fill in font name if it is a generic
16649 family name, fill family instead. Use spacing, family and script
16650 extra info to fill pitch, family and charset fields.
16651 (list_all_matching_fonts): Use font_callback_data struct.
16652 (unicode_range_for_char): Remove.
16653 (font_supported_scripts): New function.
16654 (w32font_initialize): Remove.
16655 (syms_of_w32font): Update which symbols are defined.
16656
166572008-02-01 Jason Rumney <jasonr@gnu.org>
16658
16659 * font.c (font_pixel_size): Reverse assq_no_quit args.
16660
16661 * w32term.h (FONT_WIDTH): Report max width, not average.
16662 (FONT_MAX_WIDTH): Remove.
16663 (FONT_AVG_WIDTH): New macro.
16664
16665 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
16666 redefinition of FONT_WIDTH.
16667
16668 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
16669 (w32_cache_char_metrics): Use FONT_WIDTH.
16670
16671 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
16672
166732008-02-01 Jason Rumney <jasonr@gnu.org>
16674
16675 * w32font.c (w32font_open): Make lfHeight negative.
16676
16677 * w32fns.c (x_default_font_parameter): Use new style font name.
16678 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
16679
166802008-02-01 Jason Rumney <jasonr@gnu.org>
16681
16682 * w32font.c (QCsubranges): New symbol.
16683 (w32font_open, w32font_has_char): Get subranges from subproperty
16684 of extra.
16685 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
16686 (syms_of_w32font): Define :subranges symbol.
16687
16688 * font.c (font_put_extra): Expose externally.
16689
16690 * font.h (font_put_extra): Move declaration from font.c.
16691
16692 * font.c (Ffont_get): Use font driver to determine otf capability.
16693 (adjust_anchor): Check if driver defines anchor_point before using.
16694
16695 * w32font.c (w32font_open): Handle size, height and pixel_size better.
16696 (w32font_draw): Use options.
16697 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
16698 Fix detection of truetype fonts.
16699 (registry_to_w32_charset): Handle charsets other than iso8859-1
16700 expressed as lisp symbols.
16701 (w32_registry): Express charset as lisp symbol.
16702 (fill_in_logfont): Reverse pixel and point height logic.
16703 Don't set width here. Set quality to default.
16704
16705 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
16706 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
16707
16708 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
16709 Remove redundant loop and allocation.
16710
16711 * makefile.w32-in (font.o, w32font.o): New objects.
16712 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
16713 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
16714
16715 * xdisp.c (fill_composite_glyph_string): Make the first arg to
16716 STORE_XCHARB a valid l-value.
16717
16718 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
16719 calculations for non-Truetype fonts.
16720 (x_draw_glyph_string): Sync with xterm.c.
16721 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
16722 Remove redundant code.
16723 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
16724
16725 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
16726 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
16727
16728 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
16729 (x_to_w32_charset, w32_to_x_charset): Expose externally.
16730
16731 * w32font.c: New file for w32 font backend.
16732
167332008-02-01 Kenichi Handa <handa@m17n.org>
16734
16735 * term.c: Don't include "buffer.h" twice.
16736
167372008-02-01 Kenichi Handa <handa@m17n.org>
16738
16739 * character.c (Funibyte_string): New function.
16740 (syms_of_character): Defsubr it.
16741
167422008-02-01 Jason Rumney <jasonr@gnu.org>
16743
16744 * w32term.c [USE_FONT_BACKEND]:
16745 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
16746 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
16747 (x_draw_glyph_string, x_draw_glyph_string_foreground)
16748 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
16749 (x_free_frame_resources): Sync with xterm.c.
16750
167512008-02-01 Andreas Schwab <schwab@suse.de>
16752
16753 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
16754 char-table size.
16755
167562008-02-01 Kenichi Handa <handa@m17n.org>
16757
16758 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
16759
167602008-02-01 Kenichi Handa <handa@m17n.org>
16761
16762 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
16763 font_otf_gpos, add font_drive_otf.
16764
16765 * fontset.c (fontset_find_font): Pay attention to font size
16766 specified for a font.
16767 (reorder_font_vector): Check contents of font_def.
16768
16769 * font.c (struct otf_list): Delete it.
16770 (otf_list): Make it a lisp variable.
16771 (otf_open): Use lispy otf_list.
16772 (generate_otf_features): Rename from parse_gsub_gpos_spec.
16773 (check_otf_features): New function.
16774 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
16775 New functions.
16776 (font_drive_otf): New function merging font_otf_gsub and
16777 font_otf_gpos.
16778 (font_open_for_lface): New arg spec. Change argument order.
16779 (font_load_for_face): Adjust for the change of font_open_for_lface.
16780 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
16781 Ffont_otf_gpos.
16782 (syms_of_font): Staticpro otf_list. Delete defsubr of
16783 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
16784
16785 * xfaces.c (set_font_frame_param): Adjust for the change of
16786 font_open_for_lface.
16787
16788 * font.h (font_open_for_lface): Adjust prototype.
16789 (struct font_driver): Delete members otf_gsub and otf_gpos, add
16790 member otf_drive.
16791 (font_otf_gsub, font_otf_gpos): Delete externs.
16792 (font_drive_otf): Extern it.
16793
167942008-02-01 Kenichi Handa <handa@m17n.org>
16795
16796 * font.c (font_at): If the window W is not on a window system,
16797 return Qnil.
16798
16799 * coding.c (produce_chars, encode_coding): Don't call
16800 insert_from_gap if no characters to produce.
16801
168022008-02-01 Kenichi Handa <handa@m17n.org>
16803
16804 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
16805 Fclear_face_cache.
16806
16807 * xfaces.c (face_for_font): Check also face->font==font->font.font.
16808
168092008-02-01 Miles Bader <miles@gnu.org>
16810
16811 * emacs.c (main): Change default value of `enable_font_backend' to 1.
16812 Parse "--disable-font-backend" option.
16813 (standard_args): Add "--disable-font-backend" option.
16814
168152008-02-01 Kenichi Handa <handa@m17n.org>
16816
16817 * fontset.c (fontset_find_font): New function.
16818 (fontset_font): Use fontset_find_font.
16819 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
16820 Register the specified font for all Latin characters.
16821 (new_fontset_from_font): Register the specified font for all Latin
16822 characters.
16823 (dump_fontset): For a realized fontset, include the base fontset
16824 name in the returned vector.
16825
168262008-02-01 Kenichi Handa <handa@m17n.org>
16827
16828 * character.h (CHAR_STRING): Cast C to unsigned on calling
16829 char_string.
16830
16831 * character.c (char_string): Type of arg C changed to unsigned.
16832 Signal an error if C is an invalid character code.
16833
16834 * editfns.c (general_insert_function, Fchar_to_string):
16835 Use CHARACTERP, not INTEGERP.
16836
168372008-02-01 Kenichi Handa <handa@m17n.org>
16838
16839 * character.h (MIN_MULTIBYTE_LEADING_CODE)
16840 (MAX_MULTIBYTE_LEADING_CODE): New macros.
16841
16842 * regex.c (analyse_first): Fix for multibyte characters in "case
16843 charset:" and "case categoryspec:".
16844
168452008-02-01 Andreas Schwab <schwab@suse.de>
16846
16847 * Makefile.in (LIBES): Move standard libraries to the end.
16848
168492008-02-01 Kenichi Handa <handa@m17n.org>
16850
16851 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
16852 nonzero, don't shrink the buffer nextb.
16853
16854 * buffer.h (struct buffer_text): New member inhibit_shrinking.
16855
16856 * coding.c (coding_alloc_by_making_gap): New arg offset.
16857 (alloc_destination): Call coding_alloc_by_making_gap with the arg
16858 offset.
16859 (decode_coding_iso_2022): Update coding->safe_charsets.
16860 (decode_coding_gap): Temporarily set
16861 current_buffer->text->inhibit_shrinking to 1.
16862
168632008-02-01 Kenichi Handa <handa@m17n.org>
16864
16865 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
16866 indexing into elements of s->cmp and s->char2b.
16867
168682008-02-01 Juanma Barranquero <lekktu@gmail.com>
16869
16870 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
16871
168722008-02-01 Kenichi Handa <handa@m17n.org>
16873
16874 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
16875 target_multibyte instead of multibyte.
16876 (re_match_2_internal): Call bcmp_translate with target_multibyte.
16877 (bcmp_translate): Change the argument name from multibyte to
16878 target_multibyte.
16879
168802008-02-01 Kenichi Handa <handa@m17n.org>
16881
16882 These changes are to compile a regexp into a pattern that can be
16883 used both for multibyte and unibyte targets.
16884
16885 * Makefile.in (search.o): Depend on charset.h.
16886
16887 * character.c (multibyte_char_to_unibyte_safe): New function.
16888
16889 * search.c: Include "charset.h".
16890 (compile_pattern_1): Delete argument multibyte. Don't set
16891 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
16892 (compile_pattern): Don't compare cp->buf.target_multibyte.
16893 Compare cp->buf.charset_unibyte.
16894 (compile_pattern): Set cp->buf.target_multibyte.
16895
16896 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
16897
16898 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
16899
16900 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
16901 multibyte. Change callers.
16902 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
16903 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
16904 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
16905 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
16906 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
16907 (regex_compile): Make the compiled pattern usable both for
16908 multibyte and unibyte targets.
16909 (analyse_first): Make the fastmap usable both for multibyte and
16910 unibyte targets.
16911 (TRANSLATE_VIA_MULTIBYTE): Delete.
16912 (re_match_2_internal): Pay attention to the case that the
16913 multibyteness of bufp and target may be different.
16914
169152008-02-01 Kenichi Handa <handa@m17n.org>
16916
16917 * xdisp.c (x_produce_glyphs): When a font is not found, make the
16918 empty box occupy at least one column width.
16919
169202008-02-01 Miles Bader <miles@gnu.org>
16921
16922 * Makefile.in: Remove redundant HAVE_XFT clause.
16923
169242008-02-01 Kenichi Handa <handa@m17n.org>
16925
16926 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
16927
169282008-02-01 Kenichi Handa <handa@m17n.org>
16929
16930 * fontset.c (Finternal_char_font): Fix for the case of POSITION
16931 being nil.
16932
169332008-02-01 Kenichi Handa <handa@m17n.org>
16934
16935 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
16936
169372008-02-01 Kenichi Handa <handa@m17n.org>
16938
16939 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
16940
169412008-02-01 Kenichi Handa <handa@m17n.org>
16942
16943 * search.c (simple_search): Fix previous change.
16944
169452008-02-01 Kenichi Handa <handa@m17n.org>
16946
16947 * xftfont.c (ftfont_font_format): Extern declaration.
16948
16949 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
16950
16951 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
16952 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
16953
16954 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
16955 (ftfont_font_format): Fix previous change.
16956
16957 * font.h (Ffont_xlfd_name): EXFUN it.
16958
16959 * font.c (font_parse_xlfd): Fix the array size of `f'.
16960 (register_font_driver): Use EQ to compare driver->type.
16961
16962 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
16963 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
16964 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
16965
169662008-02-01 Kenichi Handa <handa@m17n.org>
16967
16968 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
16969 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
16970
169712008-02-01 Kenichi Handa <handa@m17n.org>
16972
16973 * xfont.c (xfont_open): Set font->format.
16974
16975 * xftfont.c (xftfont_open): Set font->format.
16976
16977 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
16978 (ftfont_list): Include FC_FONTFORMAT in FcObject.
16979 (ftfont_open): Set font->format.
16980 (ftfont_font_format): New function.
16981
16982 * font.h (struct font): New member format.
16983
16984 * font.c (Qopentype): New variable.
16985 (syms_of_font): Defsym it.
16986 (Fquery_font): Change the format of the last element of the return
16987 value.
16988
169892008-02-01 Kenichi Handa <handa@m17n.org>
16990
16991 * xfns.c (xic_create_xfontset): Try the default fontset name as a
16992 last resort.
16993
169942008-02-01 Kenichi Handa <handa@m17n.org>
16995
16996 * coding.c (detect_coding_charset): Fix detection of multi-byte
16997 charset.
16998
169992008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
17000
17001 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
17002
170032008-02-01 Kenichi Handa <handa@m17n.org>
17004
17005 * xdisp.c (get_next_display_element): Set it->face_id for the
17006 first component of a composition.
17007 (x_produce_glyphs): Check if the font is changed or not for composition.
17008
170092008-02-01 Kenichi Handa <handa@m17n.org>
17010
17011 * fontset.c (Qlatin): New variable.
17012 (syms_of_fontset): Define it as a lisp symbol.
17013 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
17014
170152008-02-01 Kenichi Handa <handa@m17n.org>
17016
17017 * font.c (font_unparse_fcname): Pay attention to the case that
17018 some of font property is a null string.
17019
170202008-02-01 Kenichi Handa <handa@m17n.org>
17021
17022 * term.c: Include "composite.h".
17023 (encode_terminal_code): Output all components of composition.
17024 Check the size of encode_terminal_src.
17025 (produce_glyphs): For composition, call produce_composite_glyph.
17026 (append_composite_glyph, produce_composite_glyph): New functions.
17027
17028 * xdisp.c (x_produce_glyphs): In handling composition, if a font
17029 is not found, get font_info from the current ascii face.
17030
170312008-02-01 Kenichi Handa <handa@m17n.org>
17032
17033 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
17034 buffer-file-name to Qnil before calling insert_from_buffer.
17035
17036 * font.c (font_unparse_fcname): Pay attention to the case that
17037 foundry is a null string.
17038
170392008-02-01 Kenichi Handa <handa@m17n.org>
17040
17041 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
17042
17043 * font.c (Qunicode_sip): New variable.
17044 (syms_of_font): Declare it as a Lisp symbol.
17045
17046 * font.h (Qunicode_sip): Extern it.
17047
170482008-02-01 Kenichi Handa <handa@m17n.org>
17049
17050 * composite.c (get_composition_id): Pay attention to TAB component.
17051
17052 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
17053 TAB. Adjust for the change of s->char2b which always points to
17054 the first element of allocated memory.
17055
17056 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
17057
17058 * xdisp.c (handle_composition_prop): Set it->c to the first
17059 non-TAB component.
17060 (fill_composite_glyph_string): Change argument.
17061 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
17062 (x_produce_glyphs): Fix handling of left/right padding.
17063
170642008-02-01 Kenichi Handa <handa@m17n.org>
17065
17066 * coding.c (detect_coding_system): Fix for handling off
17067 inhibit_iso_escape_detection. Fix for the case that no coding
17068 system is defined for a specific coding category.
17069
170702008-02-01 Kenichi Handa <handa@m17n.org>
17071
17072 * font.c (font_matching_entity): Delete unused local var.
17073
17074 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
17075 opening a font.
17076
17077 * fileio.c (Finsert_file_contents): On recovering a file, assume
17078 Unix-like eol.
17079 (choose_write_coding_system): On auto-saving a file, force
17080 Unix-like eol.
17081
17082 * coding.c (setup_coding_system): Fix setting of
17083 coding->common_flags based on eol_type.
17084 (coding_inherit_eol_type): If PARENT is not nil, be sure to
17085 inherit from it.
17086
170872008-02-01 Kenichi Handa <handa@m17n.org>
17088
17089 * alloc.c (NSTATICS): Increas to 0x600.
17090
170912008-02-01 Kenichi Handa <handa@m17n.org>
17092
17093 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
17094 (ftfont_list): Don't check :name property.
17095 (ftfont_match): New function.
17096 (ftfont_pattern_entity): If the pattern doesn't contain
17097 FC_SPACING, don't assume FC_MONO.
17098
17099 * font.h (struct font_driver): New member `match'.
17100 (font_update_drivers): Adjust prototype.
17101
17102 * font.c (font_parse_fcname, font_parse_name): Don't change :name
17103 property of FONT.
17104 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
17105 them unconditionally.
17106 (font_matching_entity): New function.
17107 (font_open_by_name): Try font_matching_entity if exact match is
17108 not found.
17109 (font_update_drivers): Delete the arg FONT. Return a list of
17110 actually used backends. Don't free faces, font caches here.
17111 Don't store data in frame parameters. Don't call x_set_font.
17112 (Ffont_spec): Store :name property as is.
17113 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
17114 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
17115 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
17116 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
17117 Call font->driver->otf_gsub instead of font_otf_gsub.
17118
17119 * frame.c (x_set_font_backend): Do more works that were done in
17120 font_update_drivers before.
17121
17122 * xfont.c (xfont_match): New function.
17123 (xfont_driver): Set xfont_driver.match to xfont_match.
17124 (xfont_draw): Set font in GC if necessary.
17125
17126 * ftxfont.c (ftxfont_match): New function.
17127 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
17128
17129 * xftfont.c (xftfont_match): New function.
17130 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
17131
171322008-02-01 Kenichi Handa <handa@m17n.org>
17133
17134 * font.h (struct font): New member scalable.
17135 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
17136 (font_otf_gsub): Adjust prototype.
17137
17138 * font.c (font_otf_capability): Fix handling of the default langsys.
17139 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
17140 Check the contents of SPEC.
17141 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
17142 (check_gstring): New function.
17143 (REPLACEMENT_CHARACTER): New macro.
17144 (font_otf_gsub): New arg alternate_subst. Be sure to set all
17145 glyph codes of GSTRING.
17146 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
17147 (font_prepare_composition): Set cmp->glyph_len.
17148 (font_open_entity): Set font->scalable.
17149 (Ffont_get): Handle :otf property.
17150 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
17151 functions.
17152 (Fquery_font): Use font->font.full_name.
17153 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
17154 Sfont_otf_alternates.
17155
17156 * ftfont.c (ftfont_open): Set font->font.full_name and
17157 font->font.name properly. Fix calculation of font->font.height
17158 and font->min_width.
17159
17160 * ftxfont.c (ftxfont_create_gcs): New function.
17161 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
17162 (ftxfont_draw_backgrond): Fix filling region.
17163 (ftxfont_default_fid): New function.
17164 (ftxfont_open): Set xfont->fid to the return value of
17165 ftxfont_default_fid.
17166 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
17167 (ftxfont_done_face): Free only GCs that are created by
17168 ftxfont_create_gcs.
17169 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
17170
17171 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
17172 Clip to src->width, etc (not src->clip_XXX).
17173
17174 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
17175 FontBackend frame parameter.
17176
171772008-02-01 Kenichi Handa <handa@m17n.org>
17178
17179 * font.h (struct font_driver_list): New member `on'.
17180 (Fclear_font_cache): EXFUN it.
17181 (font_update_drivers): Extern it.
17182
17183 * font.c (font_unparse_fcname): Fix typo (swidth->width).
17184 (font_list_entities): Check driver_list->on.
17185 (register_font_driver): Initalize `on' member to 0.
17186 (font_update_drivers): New function.
17187 (Fclear_font_cache): Check driver_list->on.
17188
17189 * frame.h (Qfont_backend): Extern it.
17190 (x_set_font_backend): Extern it.
17191
17192 * frame.c (Qfont_backend): New variable.
17193 (frame_parms): New element for font-backend.
17194 (x_set_font_backend): New function.
17195
17196 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
17197 FontBackend frame parameter.
17198 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
17199 x_set_font_backend.
17200
17201 * xfont.c (xfont_list): Don't try listing by :name property if the
17202 name is not for XLFD.
17203
172042008-02-01 Kenichi Handa <handa@m17n.org>
17205
17206 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
17207 (LGLYPH_SET_TO): New macros.
17208 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
17209 element of G is vector or not.
17210 (font_at): Extern it.
17211
17212 * font.c: Include window.h.
17213 (font_lispy_object): New function.
17214 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
17215 end of valid glyph.
17216 (font_close_object): Fix getting (struct font *).
17217 (font_at): New function.
17218 (Ffont_get): If FONT is a font-object, get entity from it.
17219 (Ffont_make_gstring): Initialize elements of glyphs with nil.
17220 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
17221 range check.
17222 (Ffont_at): New function.
17223 (syms_of_font): Defsubr Sfont_at.
17224
17225 * xdisp.c (it_props): Move the entry for Qauto_composed to just
17226 before the entry for Qcomposition.
17227 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
17228 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
17229 the font in gstring.
17230 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
17231 LGLYPH_FORM (g) to detect the end of valid glyph.
17232 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
17233 we are composing with gstring.
17234
17235 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
17236 Check if adjustment is vector or not.
17237
17238 * Makefile.in (font.o): Make it depends on window.h.
17239
172402008-02-01 Kenichi Handa <handa@m17n.org>
17241
17242 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
17243 adjustment is vector or not.
17244
172452008-02-01 Miles Bader <miles@gnu.org>
17246
17247 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
17248
172492008-02-01 Kenichi Handa <handa@m17n.org>
17250
17251 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
17252 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
17253 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
17254
17255 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
17256 (DEVICE_DELTA): Fix typo.
17257 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
17258 LGLYPH format.
17259
17260 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17261 the change of LGLYPH format.
17262
172632008-02-01 Kenichi Handa <handa@m17n.org>
17264
17265 * ftfont.c (ftfont_list): Fix typo.
17266 (ftfont_build_basic_charsets): Don't include letters with diacritics.
17267
172682008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17269
17270 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
17271
17272 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
17273 xftface_info is non-NULL.
17274
172752008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17276
17277 * ftfont.c (ftfont_list): Move misplaced #endif.
17278
172792008-02-01 Kenichi Handa <handa@m17n.org>
17280
17281 * ftfont.c (ftfont_list): Pay attention to the case that
17282 FC_CAPABILITY is not defined.
17283
172842008-02-01 Kenichi Handa <handa@m17n.org>
17285
17286 * xftfont.c (xftfont_open): Set charset related members to -1.
17287
17288 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
17289 QCname.
17290 (ftfont_open): Set charset related members to -1.
17291
17292 * fontset.c (Votf_script_alist): New variable.
17293 (syms_of_fontset): Initialize it.
17294 (fontset_font): Delete unused variable.
17295
17296 * fontset.h (Votf_script_alist): Extern it.
17297
17298 * font.c (font_find_for_lface): Optimize code.
17299
17300 * font.h (font_close_object, font_merge_old_spec): Extern them.
17301
173022008-02-01 Kenichi Handa <handa@m17n.org>
17303
17304 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
17305 (syms_of_font): Initialize them.
17306 (font_pixel_size): Allow float value in dpi.
17307 (font_prop_validate_type): Delete.
17308 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
17309 Change caller.
17310 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
17311 (font_prop_validate_extra): Delete.
17312 (font_prop_validate_spacing): New function.
17313 (font_property_table): Add elements for all known properties.
17314 (get_font_prop_index): Rename from check_font_prop_name. New
17315 argument FROM. Change caller.
17316 (font_prop_validate): Validate all known properties.
17317 (font_put_extra): Delete argument force. Change caller.
17318 (font_expand_wildcards): Make it static. Fix the way of shrinking
17319 the possible range.
17320 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
17321 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
17322 Change caller.
17323 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
17324 (font_parse_fcname): Delete argument merge. Fix parsing of point
17325 size. Don't validate properties values here. Change caller.
17326 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
17327 (font_open_by_name): Delete unused variable.
17328 (Ffont_spec): Likewise. Validate property values.
17329 (Ffont_match_p): New function.
17330
17331 * font.h (QCscalable): Extern it.
17332 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
17333
17334 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
17335
17336 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
17337 (xfont_list_pattern): New function.
17338 (xfont_list): Use xfont_list_pattern.
17339
173402008-02-01 Kenichi Handa <handa@m17n.org>
17341
17342 * font.h (Flist_fonts): EXFUN it.
17343
173442008-02-01 Jason Rumney <jasonr@gnu.org>
17345
17346 * w32term.c (w32_initialize): Add back smoothing_type and
17347 smoothing_enabled definitions.
17348
173492008-02-01 Kenichi Handa <handa@m17n.org>
17350
17351 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
17352 s->face->font on determining underline position.
17353
173542008-02-01 Kenichi Handa <handa@m17n.org>
17355
17356 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
17357 (font_has_char): Accept font-object too.
17358 (font_find_for_lface): Try at first with a size specified in face.
17359
173602008-02-01 Kenichi Handa <handa@m17n.org>
17361
17362 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
17363 font_open_by_name.
17364
173652008-02-01 Kenichi Handa <handa@m17n.org>
17366
17367 * font.h (QCspacing, QCdpi): Extern them.
17368 (enum font_spacing): New enum.
17369 (FONT_PIXEL_SIZE_QUANTUM): New macro.
17370
17371 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
17372 (QCspacing, QCdpi): New variables.
17373 (syms_of_font): Initialize them.
17374 (font_pixel_size): New function.
17375 (font_put_extra): New function.
17376 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
17377 in FONT_EXTRA.
17378 (font_parse_fcname): Handle enumerated values (e.g. bold).
17379 Fix handling font size. Add QCname property that contains only
17380 unknown properties.
17381 (font_score): Change argument. Change caller. Pay attention to
17382 FONT_PIXEL_SIZE_QUANTUM.
17383 (font_sort_entites, font_list_entities, font_find_for_lface)
17384 (font_open_for_lface, font_open_by_name): Fix handling of font size.
17385 (Ffont_spec): Add QCname property that contains only unknown properties.
17386
17387 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
17388 include weight in listing pattern, instead check weight of each
17389 listed font. Don't include scalable in pattern. Pay attention to
17390 FONT_PIXEL_SIZE_QUANTUM.
17391
173922008-02-01 Kenichi Handa <handa@m17n.org>
17393
17394 * font.c (font_parse_fcname): Fix parsing of point-size.
17395 (font_unparse_fcname): Produce symbolic names for style properties.
17396 (font_list_entities): Handle float size correctly.
17397 (font_open_by_name): Prefer `normal' property values if the name
17398 doesn't specify them.
17399
17400 * fontset.c (Finternal_char_font): Use font_get_name, not
17401 Ffont_xlfd_name.
17402
17403 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
17404 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
17405 pattern. Don't force scalable.
17406
17407 * xftfont.c (xftfont_open): For generating a name, start from
17408 96-byte buffer.
17409
174102008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17411
17412 * frame.h (x_new_fontset2): Fix prototype.
17413
174142008-02-01 Kenichi Handa <handa@m17n.org>
17415
17416 * font.h (struct font_driver): Delete member parse_name.
17417 (font_match_p, font_get_spec, font_parse_fcname)
17418 (font_unparse_fcname): Extern them.
17419 (font_get_name): Adjust prototype.
17420
17421 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
17422 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
17423 (font_expand_wildcards): Fix handling ENCODING field. Avoid
17424 unnecessary checks for weight, slant, and swidth.
17425 (font_parse_fcname): New function.
17426 (font_unparse_fcname): New function.
17427 (font_parse_name): New function.
17428 (font_match_p): New function.
17429 (font_get_name): Change return value to Lisp string.
17430 (font_get_spec): New function.
17431 (Qunspecified, Qignore_defface): Don't extern them.
17432 (font_find_for_lface): Assume that LFACE is fully specified.
17433 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
17434 object, use it for FACE.
17435 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
17436 driver->parse_name.
17437 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
17438
17439 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
17440 prototype.
17441
17442 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
17443 argument F. Don't call Fnew_fontset. Instead, directly call
17444 make_fontset.
17445
17446 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
17447
17448 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
17449 of x_new_fontset2.
17450
17451 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
17452 (Qsans__serif): New variables.
17453 (ftfont_generic_family_list): New variable.
17454 (syms_of_ftfont): Initialize the above variables.
17455 (ftfont_pattern_entity): Delete argument NAME.
17456 (ftfont_list_generic_family): New function.
17457 (ftfont_parse_name): Delete this function.
17458 (ftfont_list): Try generic family only when FcFontList found no font.
17459 (ftfont_list_family): Fix args to FcObjectSetBuild.
17460
17461 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
17462 object in attrs[LFACE_FONT_INDEX].
17463 (set_lface_from_font_name): Cancel all changes for font-backend.
17464 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
17465 function.
17466 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
17467 font object in QCfont attribute.
17468 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
17469 (realize_default_face) [USE_FONT_BACKEND]: Call
17470 set_lface_from_font_and_fontset.
17471
17472 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
17473 "fixed", and signal error here if no suitable font was found.
17474
17475 * xfont.c (xfont_parse_name): Delete this function.
17476
17477 * xftfont.c (xftfont_open): Change coding style of error
17478 handling. Generate fontconfig's fontname pattern.
17479
17480 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
17481 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
17482
17483 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
17484 Both args FONTSET and FONT_OBJECT must be existing ones.
17485
174862008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17487
17488 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
17489
174902008-02-01 Kenichi Handa <handa@m17n.org>
17491
17492 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
17493
17494 * font.h (struct font): Fix typo.
17495
17496 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
17497 XLFD_XXX_INDEX.
17498 (enum xlfd_field_mask): New enum.
17499 (intern_font_field): Changed argument. Change caller. If digits
17500 are followed by non-digits, return a symbol.
17501 (font_expand_wildcards): New function.
17502 (font_parse_xlfd): Fix wildcard handling.
17503 (Ffont_spec): If :name is specified, reflect the info in the other
17504 properties.
17505
17506 * ftfont.c (ftfont_pattern_entity): Fix typo.
17507 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
17508 locale.
17509
175102008-02-01 Kenichi Handa <handa@m17n.org>
17511
17512 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
17513
17514 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
17515 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
17516 registry doesn't specify encoding part.
17517 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
17518 (font_open_by_name): At first try parsing the name.
17519 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
17520 as Lisp symbols.
17521
17522 * fontset.c (reorder_font_vector): Pay attention to the case that
17523 the 3rd element of font_def is nil.
17524 (fontset_font): For the default fontset, append one more fontset
17525 elements for a script-based font specification. Don't add script
17526 attribute on finding a font.
17527 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
17528 font name.
17529 (fontset_ascii_font): If a font can't be opened, return nil.
17530
17531 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
17532 (ftfont_pattern_entity): New function.
17533 (ftfont_get_cache): Assume that freetype_font_cache is already
17534 initialized.
17535 (ftfont_list): Handle the case that a file is specified in font
17536 name. Use ftfont_pattern_entity to generate entities.
17537 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
17538 (syms_of_ftfont): Initialize freetype_font_cache.
17539
17540 * xftfont.c (xftfont_open): Make the font name fontconfig's
17541 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
17542 (xftfont_close): Free font->font.name if not NULL.
17543
17544 * xfont.c (xfont_list): If script is specified for a font, return
17545 null_vector.
17546 (xfont_list_family): Declare argument type.
17547
17548 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
17549 name, set LFACE_FONT (lface) to nil.
17550
17551 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
17552 return Qnil.
17553
175542008-02-01 Kenichi Handa <handa@m17n.org>
17555
17556 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
17557 (standard_args): Add "-enable-font-backend".
17558
175592008-02-01 Kenichi Handa <handa@m17n.org>
17560
17561 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
17562 (struct xftdraw_list, xftdraw_list): Delete them.
17563 (register_xftdraw, check_xftdraw): Delete them.
17564 (xftfont_prepare_face): Don't call register_xftdraw.
17565 (xftfont_done_face): Don't call check_xftdraw.
17566 (xftfont_draw): Get background color only when with_background is
17567 nonzero.
17568
17569 * xfont.c (xfont_encode_char): Fix calculation of char2b.
17570
175712008-02-01 Kenichi Handa <handa@m17n.org>
17572
17573 These changes are for the new font handling codes.
17574
17575 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
17576 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
17577 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
17578 (FONTSRC, FONTOBJ): New variables.
17579 (obj): Add $(FONTOBJ).
17580 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
17581 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
17582 @LIBOTF_LIBS@.
17583 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
17584 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
17585
17586 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
17587
17588 * character.h (Vscript_representative_chars): Extern it.
17589
17590 * character.c (Vscript_representative_chars): New variable.
17591 (syms_of_character): Declare it as a Lisp variable.
17592
17593 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
17594 enable_font_backend is nonzero, accept the composition method
17595 COMPOSITION_WITH_GLYPH_STRING.
17596
17597 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
17598 enumeration COMPOSITION_WITH_GLYPH_STRING.
17599
17600 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
17601 members clip_x, clip_y, clip_width, and clip_height.
17602 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
17603
17604 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
17605 --enable-font-backend. Call syms_of_font.
17606
17607 * fns.c (assoc_no_quit): New function.
17608
17609 * fontset.h (FONT_INFO_FROM_FACE): New macro.
17610 (face_for_font, new_fontset_from_font)
17611 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
17612
17613 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
17614 (fontset_font, fontset_ascii, face_for_char)
17615 (make_fontset_for_ascii_face, Ffont_info)
17616 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
17617 is nonzero, use font-backend mechanism.
17618 (find_font_encoding): Make it non-static.
17619 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
17620 New functions.
17621
17622 * frame.h (struct frame): New members resx and resy.
17623 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
17624 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
17625
17626 * frame.c [USE_FONT_BACKEND]: Include "font.h".
17627 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
17628
17629 * lisp.h (assoc_no_quit): Extern it.
17630
17631 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
17632 Through out the file, use FONT_INFO_FROM_FACE instead of
17633 FONT_INFO_FROM_ID, use get_per_char_metric instead of
17634 rif->per_char_metric.
17635 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
17636 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
17637 (get_glyph_face_and_encoding, fill_composite_glyph_string)
17638 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
17639 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
17640 nonzero, use font-backend mechanism.
17641 (get_per_char_metric): New function.
17642
17643 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
17644 (set_lface_from_font_name)
17645 (set_font_frame_param, free_realized_face)
17646 (prepare_face_for_display, clear_face_gcs)
17647 (Finternal_set_font_selection_order, realize_x_face)
17648 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
17649 font-backend mechanism.
17650 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
17651 (load_face_font) [USE_FONT_BACKEND]: Abort.
17652 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
17653 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
17654
17655 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
17656 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
17657 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
17658 nonzero, register all available font drivers. Call
17659 x_default_font_parameter for deciding a font.
17660 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
17661
17662 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
17663 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
17664 (x_set_glyph_string_clipping_exactly)
17665 (x_compute_glyph_string_overhangs)
17666 (x_draw_glyph_string_foreground)
17667 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
17668 (x_free_frame_resources) [USE_FONT_BACKEND]: If
17669 enable_font_backend is nonzero, use font-backend mechanism.
17670 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
17671
176722008-02-01 Kenichi Handa <handa@m17n.org>
17673
17674 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
17675 system_eol_type.
17676 (syms_of_coding): Initialize system_eol_type.
17677
17678 * process.c (Fset_process_coding_system): Inherit system's eol
17679 format if necessary.
17680
176812008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17682
17683 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
17684
176852008-02-01 Kenichi Handa <handa@m17n.org>
17686
17687 * coding.c (decode_eol): Pay attention to buffer relocation in
17688 del_range_2.
17689 (decode_coding): Call decode_eol before restoring undo_list.
17690
176912008-02-01 Kenichi Handa <handa@m17n.org>
17692
17693 * charset.c (Fdefine_charset_internal): Fix setting of
17694 emacs_mule_bytes.
17695
176962008-02-01 Kenichi Handa <handa@m17n.org>
17697
17698 * keyboard.c (read_char): Check if C is a character or not before
17699 looking up Vkeyboard_translate_table.
17700
177012008-02-01 Kenichi Handa <handa@m17n.org>
17702
17703 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
17704 condition to terminate the loop.
17705
177062008-02-01 Kenichi Handa <handa@m17n.org>
17707
17708 * coding.c (produce_composition): Compare charbuf[i] instead of
17709 args[i] against 0.
17710 (Fterminal_coding_system): Use EQ to compare Lisp objects.
17711
177122008-02-01 Kenichi Handa <handa@m17n.org>
17713
17714 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
17715 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
17716 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
17717 detect_coding.
17718 (emacs_mule_char): Handle old style (Emacs 20) component character
17719 of a composition.
17720 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
17721 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
17722 composition rule.
17723 (decode_coding_emacs_mule): Handle invalid bytes correctly.
17724
177252008-02-01 Kenichi Handa <handa@m17n.org>
17726
17727 * coding.c (encode_coding_ccl): Allocate destination dynamically
17728 when necessary.
17729
177302008-02-01 Kenichi Handa <handa@m17n.org>
17731
17732 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
17733 the loop. When quitted, show a proper error message.
17734
177352008-02-01 Kenichi Handa <handa@m17n.org>
17736
17737 * xterm.c (x_set_glyph_string_clipping_exactly): Set
17738 src->clip_head and src->clip_tail temporarily instead of src->hl.
17739
17740 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
17741 character sequence.
17742 (Fccl_execute_on_string): Use ASET, not XSET.
17743
177442008-02-01 Kenichi Handa <handa@m17n.org>
17745
17746 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
17747
177482008-02-01 Kenichi Handa <handa@m17n.org>
17749
17750 * coding.c (decode_coding): Fix the condition of terminating the
17751 decoding loop.
17752
177532008-02-01 Kenichi Handa <handa@m17n.org>
17754
17755 * data.c (Faset): On setting a character bigger than 255 in a
17756 unibyte string, signal an error instead of make the string multibyte.
17757
177582008-02-01 Kenichi Handa <handa@m17n.org>
17759
17760 * charset.c (map_charset_chars): Fix for ascii-compatible charset
17761 made by a mapping table.
17762
177632008-02-01 Kenichi Handa <handa@m17n.org>
17764
17765 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
17766 not.
17767 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
17768 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
17769
17770 * xterm.c (x_draw_composite_glyph_string_foreground): Check
17771 s->face is NULL or not.
17772
177732008-02-01 Kenichi Handa <handa@m17n.org>
17774
17775 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
17776 (x_draw_glyph_string): Fix drawing of right_overhang and
17777 left_overhang around/on cursor.
17778
17779 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
17780
177812008-02-01 Kenichi Handa <handa@m17n.org>
17782
17783 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
17784
177852008-02-01 Kenichi Handa <handa@m17n.org>
17786
17787 * coding.c (Fdefine_coding_system_internal)
17788 (Fdefine_coding_system_alias): Avoid a duplicated element in
17789 Vcoding_system_alist.
17790
177912008-02-01 Kenichi Handa <handa@m17n.org>
17792
17793 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
17794
17795 * coding.c (Qcoding_system_define_form): New variable.
17796 (syms_of_coding): Intern and staticpro it.
17797 (Fcoding_system_p): Check Qcoding_system_define_form.
17798 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
17799
17800 * coding.h (CODING_SYSTEM_P): If ID is not available, call
17801 Fcoding_system_p.
17802 (CHECK_CODING_SYSTEM): If ID is not available, call
17803 Fcheck_coding_system.
17804 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
17805 Try also Fcheck_coding_system.
17806
178072008-02-01 Kenichi Handa <handa@m17n.org>
17808
17809 * coding.c (code_conversion_restore): GCPRO arg.
17810
178112008-02-01 Kenichi Handa <handa@m17n.org>
17812
17813 * character.c (lisp_string_width): Check multibyteness of STRING.
17814
178152008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17816
17817 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
17818 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
17819 (decode_mac_font_name): Use decode_coding_c_string instead of
17820 decode_coding.
17821 (x_load_font): Initialize fontp->fontset to -1. Set
17822 fontp->encoding_type.
17823
178242008-02-01 Kenichi Handa <handa@m17n.org>
17825
17826 * search.c (search_buffer): Give up BM search on case-fold-search
17827 if one of a target character has a case-equivalence of different
17828 byte length even if that target charcter is an ASCII.
17829 (simple_search): Fix calculation of byte length of matched text.
17830 (boyer_moore): Fix handling of case-equivalent multibyte characters.
17831
178322008-02-01 Kenichi Handa <handa@m17n.org>
17833
17834 * coding.c (decode_coding): Fix handling of invalid bytes.
17835
178362008-02-01 Kenichi Handa <handa@m17n.org>
17837
17838 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
17839 Unicode characters.
17840
178412008-02-01 Kenichi Handa <handa@m17n.org>
17842
17843 * coding.c (encode_coding_object): If a pre-write-conversion
17844 function makes a new buffer, kill it.
17845
178462008-02-01 Kenichi Handa <handa@m17n.org>
17847
17848 * coding.c (QCascii_compatible_p): New variable.
17849 (syms_of_coding): Initialize it.
17850 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
17851 calling string_char.
17852 (record_conversion_result): Add `default:' case.
17853 (coding_charset_list): Delete unused variable `coding_type'.
17854 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
17855 property in the plist of the coding system.
17856 (Fcoding_system_put): Check QCascii_compatible_p.
17857
178582008-02-01 Miles Bader <miles@gnu.org>
17859
17860 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
17861 removed calculation of frame `f', as it's now used.
17862
178632008-02-01 Kenichi Handa <handa@m17n.org>
17864
17865 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
17866 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
17867 (UNIDATA): New variable.
17868 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
17869 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
17870 $(RUN_TEMACS) unconditionally.
17871
178722008-02-01 Kenichi Handa <handa@m17n.org>
17873
17874 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
17875 (admindir): New variable.
17876 ($(lispsource)international/charprop.el): New target.
17877
178782008-02-01 Miles Bader <miles@gnu.org>
17879
17880 * character.c (chars-in-region): Remove obsolete function.
17881 (syms_of_character): Remove its initialization.
17882
178832008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
17884
17885 * w32select.c (validate_coding_system)
17886 (setup_windows_coding_system): New functions.
17887 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
17888 setup_windows_coding_system.
17889 (setup_config, Fw32_get_clipboard_data): Use
17890 validate_coding_system.
17891 (Fx_selection_exists): Move call to setup_config to a place
17892 where signals are allowed.
17893
17894 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
17895 (Fcheck_coding_system): Add declarations.
17896
178972008-02-01 Kenichi Handa <handa@m17n.org>
17898
17899 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
17900
179012008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17902
17903 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
17904 string as the second argument for x_new_fontset.
17905
179062008-02-01 Kenichi Handa <handa@m17n.org>
17907
17908 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
17909 (encode_coding_object): Use safe_call instead of call2.
17910
179112008-02-01 Kenichi Handa <handa@m17n.org>
17912
17913 * fontset.c (Fset_fontset_font): Check family element of a given vector.
17914
17915 * Makefile.in (lisp): Include charprop.el.
17916
179172008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17918
17919 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
17920 Not sure if it's unnecessary.
17921
179222008-02-01 Steven Tamm <steventamm@mac.com>
17923
17924 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
17925 some possibly unnecessary fontset checking code that crashed
17926 when creating a new frame.
17927
179282008-02-01 Kenichi Handa <handa@m17n.org>
17929
17930 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
17931 lookup_face.
17932
17933 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
17934
17935 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
17936
179372008-02-01 Kenichi Handa <handa@m17n.org>
17938
17939 * coding.c: Cancel the change done in HEAD on 2008-02-01.
17940 (coding_charset_list): New function.
17941
17942 * coding.h (coding_charset_list): Extern it.
17943
179442008-02-01 Kenichi Handa <handa@m17n.org>
17945
17946 * fontset.c (Fset_fontset_font): Call find_font_encoding with
17947 concatenation of family and registry.
17948
179492008-02-01 Kenichi Handa <handa@m17n.org>
17950
17951 * character.h (BYTE8_STRING): Fix typo.
17952
17953 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
17954 string to multibyte (sync to HEAD).
17955
17956 * casefiddle.c (casify_region): Handle changes in byte-length
17957 using replace_range_2 (sync to HEAD).
17958
179592008-02-01 Andreas Schwab <schwab@suse.de>
17960
17961 * chartab.c (map_char_table): GCPRO table and arg.
17962
179632008-02-01 Kenichi Handa <handa@m17n.org>
17964
17965 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
17966 already at limit.
17967
179682008-02-01 Kenichi Handa <handa@m17n.org>
17969
17970 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
17971 instead of fast_c_string_match_ignore_case.
17972 (find_font_encoding): Change argument to Lisp_Object. Use
17973 fast_string_match_ignore_case instead of
17974 fast_c_string_match_ignore_case. Change caller.
17975
179762008-02-01 Kenichi Handa <handa@m17n.org>
17977
17978 * xdisp.c (get_next_display_element): In unibyte case, decide to
17979 display in octal form by checking a character by
17980 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
17981
17982 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
17983
17984 * character.c (unibyte_has_multibyte_table): New variable.
17985
17986 * character.h (unibyte_has_multibyte_table): Extern it.
17987 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
17988
179892008-02-01 Kenichi Handa <handa@m17n.org>
17990
17991 * coding.c (encode_coding_iso_2022): Fix handling of charset
17992 annotation.
17993
179942008-02-01 Kenichi Handa <handa@m17n.org>
17995
17996 * coding.c (setup_coding_system): If coding_system is nil, use
17997 Qundecided.
17998 (Fterminal_coding_system): Return nil if terminal coding system is
17999 `undecided'.
18000 (syms_of_coding): Define coding-system `undecided' here. Setup
18001 terminal_coding as `undecided'.
18002
180032008-02-01 Kenichi Handa <handa@m17n.org>
18004
18005 * xdisp.c (message_dolog, set_message_1): Call
18006 unibyte_char_to_multibyte with arg type int.
18007
18008 * lread.c (read1): Fix reading of a char-table.
18009
18010 * print.c (print_object): Include sub char-table in circularities
18011 detection.
18012
180132008-02-01 Kenichi Handa <handa@m17n.org>
18014
18015 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
18016 Append the found sequences in car of ARGS instead of prepending.
18017
180182008-02-01 Kenichi Handa <handa@m17n.org>
18019
18020 * fileio.c (report_file_error): Make a unibyte string from
18021 strerror (errorno).
18022 (Fsubstitute_in_file_name): Fix the arg to
18023 unibyte_char_to_multibyte. It is evaluated twice.
18024
180252008-02-01 Kenichi Handa <handa@m17n.org>
18026
18027 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
18028
180292008-02-01 Kenichi Handa <handa@m17n.org>
18030
18031 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
18032 BOM is not found.
18033 (detect_coding, detect_coding_system): Optimization for ISO-2022
18034 when no 8-bit data is found.
18035
180362008-02-01 Jason Rumney <jasonr@gnu.org>
18037
18038 * w32fns.c (x_to_w32_font): Update to use new coding struct.
18039
180402008-02-01 Kenichi Handa <handa@m17n.org>
18041
18042 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
18043 CHARS.
18044
180452008-02-01 Steven Tamm <steventamm@mac.com>
18046
18047 * macterm.c (mac_encode_char): Add charset argument and update
18048 to use encoding_type.
18049 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
18050 switch to pure fontset.
18051 (decode_mac_font_name): Temporarily remove decoding.
18052 (x_font_name_to_mac_font_name): Temporarily remove encoding.
18053 (x_load_font): Temporarily remove encoding.
18054
180552008-02-01 Kenichi Handa <handa@m17n.org>
18056
18057 * xfaces.c (Fface_font): If frame is not on a window system,
18058 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
18059 refer to face->font.
18060 (split_font_name_into_vector, build_font_name_from_vector)
18061 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
18062 when HAVE_WINDOW_SYSTEM is defined.
18063
180642008-02-01 Kenichi Handa <handa@m17n.org>
18065
18066 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
18067 (x_produce_glyphs): Fix setting of members of cmp in case
18068 cmp->glyph_len is zero.
18069
18070 * fontset.c (Fset_fontset_font): Fix docstring.
18071 (Ffontset_info): Make it backward compatible. New arg ALL.
18072
180732008-02-01 Kim F. Storm <storm@cua.dk>
18074
18075 * process.c (read_process_output): Grow decoding_buf when needed;
18076 this could cause a crash in allocate_string and compact_small_strings.
18077
180782008-02-01 Kenichi Handa <handa@m17n.org>
18079
18080 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
18081
180822008-02-01 Kenichi Handa <handa@m17n.org>
18083
18084 * coding.c (setup_coding_system): Set coding->common_flags
18085 correctly for raw-text.
18086 (consume_chars): On encoding unibyte text by raw-text, don't check
18087 multibyte form.
18088 (encode_coding): On encoding by raw-text, never use translation tables.
18089
18090 * fileio.c (e_write): Short cut for the case of no encoding.
18091
180922008-02-01 Kenichi Handa <handa@m17n.org>
18093
18094 * coding.c (detect_coding, detect_coding_system): Delete unused
18095 variables.
18096
180972008-02-01 Kenichi Handa <handa@m17n.org>
18098
18099 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
18100 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
18101
181022008-02-01 Kenichi Handa <handa@m17n.org>
18103
18104 * coding.c (Ffind_coding_systems_region_internal): Include
18105 raw-text and no-conversion in the result.
18106
181072008-02-01 Kenichi Handa <handa@m17n.org>
18108
18109 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
18110 (load_font_get_repertory): Delete unnecessary check of ENCODING of
18111 FONT_DEF.
18112 (font_def_arg, add_arg, from_arg, to_arg): New args.
18113 (set_fontset_font): Change argument.
18114 (Fset_fontset_font): Fix for the case that TARGET is a script
18115 name and charset name.
18116 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
18117
181182008-02-01 Kenichi Handa <handa@m17n.org>
18119
18120 * fontset.c (fontset_font): Rename from fontset_face. Change return
18121 value.
18122 (face_suitable_for_char_p, face_for_char): Adjust for the change
18123 of fontset_font.
18124 (make_fontset_for_ascii_face): Fix setting of the fontset element
18125 for ASCII.
18126 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
18127 to get a font name.
18128 (Ffontset_info): Adjust for the change of fontset_font.
18129
18130 * coding.c (emacs_mule_char): Check invalid code more rigidly.
18131
18132 * character.h (LEADING_CODE_LATIN_1_MIN)
18133 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
18134
181352008-02-01 Kenichi Handa <handa@m17n.org>
18136
18137 * editfns.c (check_translation): New function.
18138 (Ftranslate_region_internal): Handle M:N mapping.
18139
181402008-02-01 Kenichi Handa <handa@m17n.org>
18141
18142 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
18143
181442008-02-01 Kenichi Handa <handa@m17n.org>
18145
18146 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
18147 goto invalid_code.
18148 (decode_coding_iso_2022): Fix handling of invalid designation.
18149
18150 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
18151 after calling code_conversion_save.
18152
181532008-02-01 Kenichi Handa <handa@m17n.org>
18154
18155 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
18156
18157 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
18158
18159 * fontset.c: Include "intervals.h".
18160 (fontset_face): Fix comparing of Lisp_Objects.
18161 (free_face_fontset, new_fontset_from_font_name): Fix
18162 Lisp_Object/int mixup.
18163
18164 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
18165
18166 * coding.c: Add many prototypes for static functions.
18167 (get_translation_table): Allow max_lookup to be NULL.
18168 (decode_coding, Ffind_coding_systems_region_internal)
18169 (Funencodable_char_position, Fcheck_coding_systems_region): Call
18170 get_translation_table with max_lookup NULL.
18171
181722008-02-01 Kenichi Handa <handa@m17n.org>
18173
18174 * coding.c (get_translation_table): Declare it as Lisp_Object.
18175 (LOOKUP_TRANSLATION_TABLE): New macro.
18176 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
18177 instead of CHAR_TABLE_REF.
18178
181792008-02-01 Kenichi Handa <handa@m17n.org>
18180
18181 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
18182 annotation data format.
18183 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
18184 Change arguments FROM and TO to single argument NCHARS. Change caller.
18185 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
18186 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18187 (decode_coding_ccl, decode_coding_charset): Pay attention to
18188 coding->charbuf_used.
18189 (get_translation): New function.
18190 (produce_chars): New arguments translation_table and last_block.
18191 Translate characters here. Return number of carryover chars.
18192 Change caller.
18193 (produce_composition): New argument pos. Change caller.
18194 Adjust for the change of annotation data format.
18195 (produce_charset, produce_annotation): Likewise.
18196 (decode_coding, encode_coding): Don't call translate_chars.
18197 (consume_chars): New arg translation_table. Change caller.
18198 (translate_chars): Delete.
18199 (syms_of_coding): Make translation-table's number of extra slots 2.
18200
182012008-02-01 Kenichi Handa <handa@m17n.org>
18202
18203 * search.c (simple_search): Fix setting this_pos_byte in backward
18204 search.
18205
18206 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
18207 byte sequence.
18208 (detect_coding_ccl): Fix setting of the variable valids.
18209
182102008-02-01 Kenichi Handa <handa@m17n.org>
18211
18212 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
18213
18214 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
18215
18216 * editfns.c (Ftranslate_region_internal): Rename from
18217 Ftranslate_region. Accept a char-table in TABLE.
18218 (syms_of_editfns): Defsubr Stranslate_region_internal.
18219
18220 * xfaces.c (set_lface_from_font_name): If a font is specified for
18221 a frame, generate a fontset from the font.
18222 (build_scalable_font_name): If the scalable font is requested for
18223 a specific size, don't change that size.
18224 (try_font_list): Try a scalable font also in the case that a
18225 pattern string is specified.
18226
182272008-02-01 Kenichi Handa <handa@m17n.org>
18228
18229 * xfaces.c (Fface_font): New optional arg CHARACTER.
18230
182312008-02-01 Kenichi Handa <handa@m17n.org>
18232
18233 * charset.h (CHARSET_OFFSET): New macro.
18234
182352008-02-01 Kenichi Handa <handa@m17n.org>
18236
18237 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
18238
18239 * fontset.c (fontset_face): Handle the case that repertory is a
18240 char-table.
18241 (find_font_encoding): Return nil for unknown encoding.
18242 (Fset_fontset_font): Ignore a font of unknown encoding.
18243
182442008-02-01 Kenichi Handa <handa@m17n.org>
18245
18246 * keymap.c (describe_vector): Handle default value of a char table.
18247
18248 * fontset.c (fontset_face): Handle fallback fonts correctly.
18249 (Ffontset_info): Return infomation about fallback fonts.
18250
182512008-02-01 Kenichi Handa <handa@m17n.org>
18252
18253 * fontset.c (FONTSET_DEFAULT): New macro.
18254 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
18255 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
18256 the case that it is nil.
18257 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
18258 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
18259
18260 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
18261 subset or superset.
18262
182632008-02-01 Kenichi Handa <handa@m17n.org>
18264
18265 * emacs.c (main): Call init_charset after syms_of_XXX.
18266
18267 * charset.c (Vcharset_map_directory): Delete.
18268 (Vcharset_map_path): New variable.
18269 (load_charset_map_from_file): Use Vcharset_map_path instead.
18270 (init_charset): Initialize Vcharset_map_path.
18271 (syms_of_charset): Delete declaration of "charset-map-directory",
18272 add declaration of "charset-map-path".
18273
182742008-02-01 Kenichi Handa <handa@m17n.org>
18275
18276 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
18277 ASCII only string.
18278
18279 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
18280
18281 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
18282 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
18283
182842008-02-01 Kenichi Handa <handa@m17n.org>
18285
18286 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
18287
18288 * coding.c (QCmnemonic, QCdefalut_char)
18289 (QCdecode_translation_table, QCencode_translation_table)
18290 (QCpost_read_conversion, QCpre_write_conversion): New variables.
18291 (get_translation_table): Return a list of translation tables if
18292 necessary.
18293 (decode_coding): Call get_translation_table with ENCODEP 0.
18294 (char_encodable_p): If translation_table is non-nil, always call
18295 translate_char.
18296 (Fdefine_coding_system_internal): Accept list of translation
18297 tables as :encode-translation-table and :decode-translation-table.
18298 (Fcoding_system_put): New function.
18299 (syms_of_coding): Declare new symbols. Defsubr
18300 Scoding_system_put.
18301 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
18302 typically JISX0212.
18303
18304 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
18305 when the charset is superset type.
18306
18307 * character.c (translate_char): Accept list of translation tables.
18308
183092008-02-01 Kenichi Handa <handa@m17n.org>
18310
18311 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
18312 (CODING_ATTR_TRANS_TBL): New macro.
18313
18314 * coding.c (get_translation_table): New function.
18315 (translate_chars): Fix the bug of skipping annotation data.
18316 (decode_coding, encode_coding): Utilize get_translation_table.
18317 (char_encodable_p, Funencodable_char_position): Translate char if
18318 necessary.
18319 (Ffind_coding_systems_region_internal)
18320 (Fcheck_coding_systems_region): Setup translation table for encode
18321 in a coding system attribute vector in advance.
18322 (Fdefine_coding_system_internal): Allow a symbol as translation
18323 table. For shift-jis type coding system, allow 4th charset.
18324
183252008-02-01 Kenichi Handa <handa@m17n.org>
18326
18327 * coding.c (decode_coding_sjis): Check the first byte rigidly.
18328
18329 * xdisp.c (get_next_display_element): Pass -1 as POS to
18330 FACE_FOR_CHAR if displaying a C-string.
18331
183322008-02-01 Kenichi Handa <handa@m17n.org>
18333
18334 * composite.c (get_composition_id): Handle xoff and yoff in a
18335 composition rule.
18336
18337 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
18338 (struct composition): New member lbearing and rbearing.
18339
18340 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
18341 (x_get_glyph_overhangs): Handle a composition glyph.
18342 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
18343
18344 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
18345 composition glyph.
18346
183472008-02-01 Kenichi Handa <handa@m17n.org>
18348
18349 * print.c: Include charset.h.
18350 (Vprint_charset_text_property): New variable.
18351 (Qdefault): Extern it.
18352 (PRINT_STRING_NON_CHARSET_FOUND)
18353 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
18354 (print_check_string_result): New variable.
18355 (print_check_string_charset_prop): New function.
18356 (print_prune_charset_plist): New variable.
18357 (print_prune_string_charset): New function.
18358 (print_object): Call print_prune_string_charset if
18359 Vprint_charset_text_property is not t.
18360 (print_interval): Print nothing if interval->plist is nil.
18361 (syms_of_print): Declare Vprint_charset_text_property as a lisp
18362 variable. Init and staticpro print_prune_charset_plist.
18363
183642008-02-01 Kenichi Handa <handa@m17n.org>
18365
18366 * fontset.c (new_fontset_from_font_name): Use the specified font
18367 for all characters in the new fontset.
18368
18369 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
18370 OBJECT args.
18371
18372 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
18373 OBJECT args for composition too.
18374
18375 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
18376 OBJECT args.
18377
183782008-02-01 Kenichi Handa <handa@m17n.org>
18379
18380 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
18381
18382 * fontset.c (reorder_font_vector): Adjust for the change of
18383 FONT_DEF format.
18384 (fontset_face): New arg id. Change caller.
18385 (face_for_char): New args pos and object.
18386 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
18387 (fs_query_fontset): Check NAME by Fassoc too.
18388 (Fset_fontset_font): Allow non-XLFD font name.
18389 (Ffontset_info): Adjust for the change of FONT_DEF format.
18390
18391 * fontset.h (face_for_char): Adjust prototype.
18392
18393 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
18394 (append_space, extend_face_to_end_of_line)
18395 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
18396 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
18397
18398 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
18399 POS and OBJECT args.
18400
18401 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
18402 POS and OBJECT args.
18403
184042008-02-01 Jason Rumney <jasonr@gnu.org>
18405
18406 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
18407 of GlobalAlloc'ed memory.
18408
184092008-02-01 Kenichi Handa <handa@m17n.org>
18410
18411 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
18412
18413 * charset.h (charset_table_used): Delete extern.
18414
18415 * charset.c (charset_table_used): Make it static.
18416 (map_charset_chars): Fix args to c_function with.
18417
18418 * chartab.c (map_sub_char_table_for_charset): Fix args to
18419 c_function with.
18420
18421 * coding.h (enum coding_result_code): Delete
18422 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
18423
18424 * coding.c (Qinsufficient_source, Qinconsistent_eol)
18425 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
18426 (Vlast_code_conversion_error): New variables.
18427 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
18428 (ONE_MORE_BYTE): Record error if any instead of signaling an
18429 error. If non-ASCII multibyte char is found, return the negative
18430 value of the code. All callers changed to check it.
18431 (ONE_MORE_BYTE_NO_CHECK): Likewise.
18432 (record_conversion_result): New function. Change all codes setting
18433 coding->result to call this function.
18434 (detect_coding_utf_8, decode_coding_utf_8)
18435 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
18436 Don't use the local variable incomplete.
18437 (emacs_mule_char): Change the second arg to `const'.
18438 (decode_coding): Fix of flushing out unprocessed data.
18439 (make_conversion_work_buffer): Fix making of a work buffer.
18440 (decode_coding_object): Return coding->dst_object.
18441
18442 * fontset.c (set_fontset_font): Fix args.
18443
18444 * lisp.h (CHARACTERBITS): Define as 22.
18445
18446 * process.c (send_process): Be sure to set coding->src_multibyte.
18447
18448 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
18449
184502008-02-01 Kenichi Handa <handa@m17n.org>
18451
18452 * xdisp.c (handle_auto_composed_prop): Give limit to
18453 Fnext_single_char_property_change.
18454
184552008-02-01 Kenichi Handa <handa@m17n.org>
18456
18457 * composite.c (syms_of_composite): Don't make the composition hash
18458 table weak.
18459
18460 * fontset.c (Fset_fontset_font): Fix docstring.
18461
18462 * lisp.h (detect_coding_system): Adjust prototype.
18463
18464 * fileio.c (kill_workbuf_unwind): Delete this function.
18465 (Finsert_file_contents): Adjust the call of detect_coding_system.
18466 Get conversion_buffer by code_conversion_save. Use the macro
18467 CODING_MAY_REQUIRE_DECODING. After decoding, update
18468 coding_system.
18469
18470 * coding.h (make_conversion_work_buffer): Delete extern.
18471 (code_conversion_save): Extern it.
18472
18473 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
18474 (CODING_GET_INFO): Delete argument eol_type. Change callers.
18475 (decode_coding_utf_8): Don't do eol converion.
18476 (detect_coding_utf_16): Check coding->src_chars, not
18477 coding->src_bytes. Add heuristics for those that have no signature.
18478 (decode_coding_emacs_mule, decode_coding_iso_2022)
18479 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
18480 Don't do eol converion.
18481 (adjust_coding_eol_type): Return a new coding system.
18482 (detect_coding): Don't detect eol. Fix for utf-16 detection.
18483 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
18484 each change.
18485 (decode_coding): Pay attention to undo_list. Do eol conversion for
18486 all types of coding-systems (if necessary).
18487 (Vcode_conversion_work_buf_list): Delete it.
18488 (Vcode_conversion_reused_workbuf): Rename from
18489 Vcode_conversion_reused_work_buf.
18490 (Vcode_conversion_workbuf_name): New variable.
18491 (reused_workbuf_in_use): New variable.
18492 (make_conversion_work_buffer): Delete the arg DEPTH.
18493 (code_conversion_restore): Change argument to cons.
18494 (code_conversion_save): Delete the argument BUFFER. Change callers.
18495 (detect_coding_system): New argument src_chars. Change callers.
18496 Fix for utf-16 detection.
18497 (init_coding_once): Don't use ISO_carriage_return.
18498 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
18499 reused_workbuf_in_use.
18500
185012008-02-01 Kenichi Handa <handa@m17n.org>
18502
18503 * keymap.c (store_in_keymap): Pay attention to the case that idx
18504 is a cons specifying a character range.
18505
185062008-02-01 Kenichi Handa <handa@m17n.org>
18507
18508 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
18509 HANDLED_RECOMPUTE_PROPS.
18510
18511 * coding.c (Fdefine_coding_system_internal): Fix checking of
18512 ascii compatibility.
18513
185142008-02-01 Kenichi Handa <handa@m17n.org>
18515
18516 * charset.c (find_charsets_in_text): Delete unused locale variable.
18517 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
18518
18519 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
18520 Resync charset_list to Vemacs_mule_charset_list.
18521
18522 * keymap.c (store_in_keymap): Pay attention to the case that idx
18523 is a cons specifying a character range.
18524
185252008-02-01 Kenichi Handa <handa@m17n.org>
18526
18527 * composite.c (update_compositions): Bind inhibit-read-only, etc
18528 to t before calling remove-list-of-text-properties.
18529
18530 * print.c (print_object): Always print ASCII chars as is.
18531
185322008-02-01 Kenichi Handa <handa@m17n.org>
18533
18534 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
18535
18536 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
18537 is a char table.
18538
185392008-02-01 Kenichi Handa <handa@m17n.org>
18540
18541 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
18542
185432008-02-01 Kenichi Handa <handa@m17n.org>
18544
18545 * xfaces.c (set_lface_from_font_name): Fix for the case that
18546 FONTNAME is not fontset name.
18547
185482008-02-01 Kenichi Handa <handa@m17n.org>
18549
18550 * fns.c (base64_encode_1): Fix previous change.
18551
185522008-02-01 Kenichi Handa <handa@m17n.org>
18553
18554 * fontset.c (set_fontset_font): New function.
18555 (Fset_fontset_font): If a font is specified for a charset, use
18556 map_charset_chars to store the font spec in a fontset.
18557
185582008-02-01 Kenichi Handa <handa@m17n.org>
18559
18560 * fontset.c (fontset_face): Create a fallback fontset on demand.
18561 (make_fontset): Don't create a fallback fontset here.
18562 (free_face_fontset): Free a fallback fontset (if any) too.
18563 (n_auto_fontsets): Delete this variable.
18564 (auto_fontset_alist): New variable.
18565 (new_fontset_from_font_name): Check auto_fontset_alist.
18566 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
18567 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
18568 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
18569 Defsubr Sfontset_list_all.
18570
185712008-02-01 Kenichi Handa <handa@m17n.org>
18572
18573 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
18574
185752008-02-01 Kenichi Handa <handa@m17n.org>
18576
18577 * fontset.c (Fnew_fontset): Check NAME more rigidly.
18578
185792008-02-01 Kenichi Handa <handa@m17n.org>
18580
18581 * editfns.c (Fgoto_char): Fix docstring.
18582
185832008-02-01 Kenichi Handa <handa@m17n.org>
18584
18585 * insdel.c (insert_from_gap): Adjust intervals correctly.
18586
185872008-02-01 Jason Rumney <jasonr@gnu.org>
18588
18589 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
18590 (pfnGetFontUnicodeRanges): New dynamically loaded function.
18591 (w32_initialize): Try to load it.
18592 (x_get_font_repertory): Use it if available.
18593 (w32_encode_char): Add shortcut for unicode output.
18594
18595 * w32fns.c (w32_load_system_font): Default charset to -1.
18596 (x_to_w32_charset): Match all fonts for unicode.
18597 (w32_to_x_charset): New parameter matching. Don't return partial
18598 or wildcard charsets.
18599 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
18600 (w32_codepage_for_font): Return CP_UNICODE for unicode.
18601 (w32_to_x_font): Match charset to real charset.
18602 (enum_font_cb2): Always list unicode versions.
18603
18604 * makefile.w32-in (temacs): Increase EMHEAP.
18605
186062008-02-01 Jason Rumney <jasonr@gnu.org>
18607
18608 * w32term.c (w32_encode_char): New charset parameter.
18609 font_info.encoding becomes encoding_type.
18610 (x_get_font_repertory): New function. Warning: stub only!
18611 (x_new_font): Return quickly if font already set.
18612 (x_new_fontset): fontsetname parameter is Lisp_Object.
18613 Use new fs_query_fontset. Try new_fontset_from_font_name.
18614 Use fontset_name for return value.
18615
18616 * w32term.h: Declare x_get_font_repertory.
18617
18618 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
18619 place of find_charset_in_text. Use encode_coding_object in place
18620 of encode_coding.
18621 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
18622 decode_coding.
18623
18624 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
18625 of x_new_fontset.
18626 (w32_load_system_font): Initialize charset as unicode.
18627 font_info.encoding becomes encoding_type.
18628 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
18629 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
18630 (syms_of_w32fns): Set get_font_repertory_func.
18631
18632 * w32console.c: Include character.h. Use terminal_encode_buffer
18633 from term.c.
18634 (write_glyphs): Use new version of encode_terminal_code. Use
18635 encode_coding_object in place of encode_coding.
18636
18637 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
18638 encoding becomes encoding_type.
18639
18640 * term.c (terminal_encode_buffer): Make externally visible.
18641
18642 * makefile.w32-in: Add character.h dependancies.
18643 (character.o, chartab.o): New targets.
18644
186452008-02-01 Kenichi Handa <handa@m17n.org>
18646
18647 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
18648 CODING_ID_EOL_TYPE.
18649
186502008-02-01 Andreas Schwab <schwab@suse.de>
18651
18652 * coding.c (produce_chars): Revert last change.
18653
186542008-02-01 Kenichi Handa <handa@m17n.org>
18655
18656 * charset.h (charset_unicode): Extern it.
18657
18658 * charset.c (string_xstring_p): Check by (C >= 0x100).
18659 (find_charsets_in_text): Change format of the arc CHARSETS. New
18660 arg MULTIBYTE.
18661 (Ffind_charset_region, Ffind_charset_string): Adjust for the
18662 change of find_charsets_in_text.
18663 (Fsplit_char): Fix doc. Never return unknown.
18664
18665 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
18666
18667 * coding.c (Fdefine_coding_system_alias): Update
18668 Vcoding_system_list.
18669
18670 * fontset.c (load_font_get_repertory): Pay attention to the case
18671 that ENCODING of a font is specified by a char-table.
18672
18673 * xterm.c (x_get_font_repertory): Handle the case that the
18674 encoding of font is other than Unicode.
18675
186762008-02-01 Kenichi Handa <handa@m17n.org>
18677
18678 * term.c (encode_terminal_code): Don't handle glyph-table. Check
18679 if a character is encodable by the terminal coding system. If
18680 not, produces proper number of `?'s. Update
18681 terminal_encode_buffer and terminal_encode_buf_size if necessary.
18682 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
18683
186842008-02-01 Kenichi Handa <handa@m17n.org>
18685
18686 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
18687 variables.
18688 (encode_terminal_code): Change argument. Encode multiple
18689 characters at once. Store the result of encoding in
18690 terminal_encode_buffer.
18691 (write_glyphs, insert_glyphs): Adjust for the change of
18692 encode_terminal_code.
18693 (term_init): Initialize terminal_encode_buffer and
18694 terminal_encode_buf_size.
18695
18696 * coding.c (consume_chars): If coding->src_object is nil, don't
18697 check annotation.
18698
186992008-02-01 Kenichi Handa <handa@m17n.org>
18700
18701 * character.c (char_string): Use ASCII_CHAR_P instead of
18702 SINGLE_BYTE_CHAR_P.
18703
187042008-02-01 Kenichi Handa <handa@m17n.org>
18705
18706 * xdisp.c (handle_auto_composed_prop): Check if the last
18707 characters of auto-composed region is newly composed with the
18708 following characters.
18709 (handle_composition_prop): Fix checking of point being inside
18710 composition.
18711
187122008-02-01 Kenichi Handa <handa@m17n.org>
18713
18714 * fns.c (concat): Don't change multibyteness of the result by
18715 concatenating an 8-bit character.
18716
18717 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
18718 multibyteness of the result when newelt is an 8-bit character.
18719
187202008-02-01 Dave Love <fx@gnu.org>
18721
18722 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
18723 EMACS_INT.
18724
18725 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
18726
18727 * xfaces.c (face_numeric_value): Declare dim size_t.
18728 (Finternal_lisp_face_equal_p): Remove unused f.
18729
18730 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
18731 (MATRIX_ROW): Remove unused vars.
18732 (draw_glyphs, x_insert_glyphs, fast_find_position)
18733 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
18734 byte/char counts.
18735
18736 * regex.c (regex_compile): Remove unused var.
18737
18738 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
18739
18740 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
18741 (Faccessible_keymaps, where_is_internal): Remove unused vars.
18742
18743 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
18744
18745 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
18746
18747 * fileio.c (Fwrite_region): Remove unused var.
18748
18749 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
18750 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
18751
18752 * composite.c (Fremove_list_of_text_properties): Declare.
18753
18754 * coding.c (inhibit_pre_post_conversion): Remove (unused).
18755 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
18756 (coding_inherit_eol_type): Remove unused attrs.
18757 (detect_coding): Cast arg of detect_eol.
18758
18759 * charset.c (syms_of_charset): Remove unused var p.
18760 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
18761 byte/char counts.
18762
18763 * casetab.c (set_case_table): Remove unused var.
18764
18765 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
18766 unused vars.
18767
187682008-02-01 Dave Love <fx@gnu.org>
18769
18770 * xterm.c (x_bitmap_mask): Declare.
18771
187722008-02-01 Dave Love <fx@gnu.org>
18773
18774 * xterm.c (x_term_init): Fix type error.
18775
18776 * lisp.h: Add Funibyte_char_to_multibyte.
18777
18778 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
18779 (Fset_coding_system_priority): Doc fix.
18780
18781 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
18782
18783 * indent.c (check_composition): Make start and end EMACS_INT.
18784
18785 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
18786
18787 * xdisp.c (handle_composition_prop, check_point_in_composition):
18788 Make buffer positions EMACS_INT.
18789
18790 * composite.c (find_composition, run_composition_function)
18791 (update_compositions, Ffind_composition_internal): Make buffer
18792 positions EMACS_INT.
18793
18794 * composite.h (find_composition, update_compositions): Make
18795 position args EMACS_INT.
18796
18797 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
18798
18799 * intervals.c (get_property_and_range):
18800 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
18801
18802 * unexalpha.c: Don't include varargs.h.
18803
188042008-02-01 Dave Love <fx@gnu.org>
18805
18806 * coding.h (ENCODE_UTF_8): New.
18807
18808 * Makefile.in (gtkutil.o): Depend on coding.h.
18809
18810 * coding.c (Fset_coding_system_priority): Doc fix.
18811
188122008-02-01 Kenichi Handa <handa@m17n.org>
18813
18814 * fileio.c (Finsert_file_contents): Call setup_coding_system in
18815 the case of auto saving.
18816
188172008-02-01 Andreas Schwab <schwab@suse.de>
18818
18819 * chartab.c (map_char_table, map_char_table_for_charset): Protect
18820 `range' from GC.
18821
188222008-02-01 Kenichi Handa <handa@m17n.org>
18823
18824 * coding.c (decode_coding_sjis): Check bytes more rigidly.
18825
188262008-02-01 Kenichi Handa <handa@m17n.org>
18827
18828 * fileio.c (choose_write_coding_system): Return a decided coding system.
18829 (Fwrite_region): Set Vlast_coding_system_used to the return value
18830 of choose_write_coding_system.
18831
188322008-02-01 Kenichi Handa <handa@m17n.org>
18833
18834 * charset.c (Fset_charset_priority): Pay attention to duplicated
18835 arguments.
18836
18837 * coding.c (QCcategory): New variable.
18838 (syms_of_coding): Defsym it. Set all elements of
18839 Vcoding_category_table and their symbol values.
18840 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
18841 coding-category-XXX, and coding-category-list.
18842 (Fdefine_coding_system_internal): Add category in the plist.
18843
188442008-02-01 Kenichi Handa <handa@m17n.org>
18845
18846 * callproc.c (Fcall_process): Handle carryover correctly.
18847
18848 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
18849 (raw_text_coding_system): Check NILP (coding_system).
18850 (coding_inherit_eol_type): Check NILP (coding_system) and
18851 NILP (parent).
18852 (consume_chars): Fix for the case of raw-text.
18853
18854 * process.c (read_process_output): Handle carryover correctly.
18855
188562008-02-01 Dave Love <fx@gnu.org>
18857
18858 * regex.c (re_search_2): Fix last change.
18859
188602008-02-01 Kenichi Handa <handa@m17n.org>
18861
18862 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
18863 target_multibyte. Even in a unibyte case, return a converted
18864 multibyte char.
18865 (GET_CHAR_AFTER): New macro.
18866 (PATFETCH): Translate via multibyte char.
18867 (HANDLE_UNIBYTE_RANGE): Delete this macro.
18868 (SETUP_MULTIBYTE_RANGE): New macro.
18869 (regex_compile): Setup compiled code so that its multibyteness
18870 matches that of a target. Fix the handling of "[X-YZ]" using
18871 SETUP_MULTIBYTE_RANGE.
18872 (analyse_first) <charset>: For filling fastmap for all multibyte
18873 characters, don't check by BASE_LEADING_CODE_P.
18874 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
18875 the same as RE_MULTIBYTE_P (bufp) now.
18876 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
18877 (TARGET_CHAR_AND_LENGTH): Delete this macro.
18878 (TRANSLATE_VIA_MULTIBYTE): New macro.
18879 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
18880 It is the same as RE_MULTIBYTE_P (bufp) now.
18881 <exactn>: Translate via multibyte.
18882 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
18883 translate it.
18884 <charset, charset_not>: Fetch a character by
18885 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
18886 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
18887 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
18888 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
18889 by GET_CHAR_AFTER.
18890 (bcmp_translate): Likewise.
18891
18892 * search.c (compile_pattern): Check the member target_multibyte,
18893 not the member multibyte of buf.
18894
18895 * lread.c (read1): While reading a string, set force_singlebyte
18896 and force_multibyte correctly.
18897
18898 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
18899 up of unibyte_to_multibyte_table.
18900
189012008-02-01 Kenichi Handa <handa@m17n.org>
18902
18903 * coding.c (setup_coding_system): If coding has
18904 post-read-conversion or pre-write-conversion, set
18905 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
18906 respectively.
18907 (decode_coding_gap): Run post-read-conversion if any.
18908
18909 * fileio.c (Finsert_file_contents): Even if we read into a
18910 unibyte buffer, check if we must decode the result or not.
18911
189122008-02-01 Kenichi Handa <handa@m17n.org>
18913
18914 * coding.c (make_conversion_work_buffer): Change the work buffer
18915 name to the same one as that of Emacs 21.
18916
189172008-02-01 Kenichi Handa <handa@m17n.org>
18918
18919 * coding.h (make_conversion_work_buffer): Adjust prototype.
18920 (code_conversion_restore): Don't extern it.
18921
18922 * coding.c (detected_mask): Delete unused variable.
18923 (decode_coding_iso_2022): Pay attention to the byte sequence of
18924 CTEXT extended segment, and retain those bytes as is.
18925 (decode_coding_ccl): Delete unused variable `valids'.
18926 (setup_coding_system): Delete unused variable `category'.
18927 (consume_chars): Delete unused variable `category'. Make it work
18928 for non-multibyte case.
18929 (make_conversion_work_buffer): Change argument.
18930 (saved_coding): Delete unused variable.
18931 (code_conversion_restore): Don't check saved_coding->destination.
18932 (code_conversion_save): New function.
18933 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
18934 instead of record_unwind_protect.
18935 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
18936 (detect_coding_system): Delete unused variable `mask'.
18937 (Fdefine_coding_system_internal): Delete unused variable id.
18938
18939 * fileio.c (kill_workbuf_unwind): New function.
18940 (Finsert_file_contents): On replacing, call
18941 make_conversion_work_buffer with correct args, and call
18942 record_unwind_protect with the first arg kill_workbuf_unwind.
18943
18944 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
18945
189462008-02-01 Kenichi Handa <handa@m17n.org>
18947
18948 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
18949 (fontset_add): Fix for the case that TO is less than TO1.
18950 (Ffontset_info): Don't use fallback fontset on checking the
18951 default fontset.
18952 (dump_fontset): New function for debugging.
18953
18954 * coding.c (Fdefine_coding_system_internal): Fix for the case that
18955 coding_type is Qcharset.
18956
189572008-02-01 Kenichi Handa <handa@m17n.org>
18958
18959 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
18960 (map_char_table): Don't inherit the value from the parent on
18961 initializing VAL. Adjust for the above change.
18962
189632008-02-01 Kenichi Handa <handa@m17n.org>
18964
18965 * coding.c (Qsignature, Qendian): Delete these variables.
18966 (syms_of_coding): Don't initialize them.
18967 (CATEGORY_MASK_UTF_16_AUTO): New macro.
18968 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
18969 detect_info->found.
18970 (decode_coding_utf_16): Don't detect BOM here.
18971 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
18972 is NOT utf_16_without_bom.
18973 (setup_coding_system): For a coding system of type utf-16, check
18974 if the attribute :endian is Qbig or not (not nil or not), and set
18975 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
18976 (detect_coding): If coding type is utf-16 and BOM detection is
18977 required, detect it.
18978 (Fdefine_coding_system_internal): For a coding system of type
18979 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
18980
189812008-02-01 Kenichi Handa <handa@m17n.org>
18982
18983 * coding.c (coding_set_source): Fix for the case that the current
18984 buffer is different from coding->src_object.
18985 (decode_coding_object): Don't use the conversion work buffer if
18986 DST_OBJECT is a buffer.
18987
189882008-02-01 Dave Love <fx@gnu.org>
18989
18990 * lread.c (read_emacs_mule_char) [len==2]: Index
18991 emacs_mule_charset correctly.
18992
189932008-02-01 Dave Love <fx@gnu.org>
18994
18995 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
18996 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
18997 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
18998 treated specially.)
18999 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
19000 (detected_mask): Remove Big5 bits.
19001
190022008-02-01 Kenichi Handa <handa@m17n.org>
19003
19004 The following changes are to make the font rescaling facility
19005 compatible with Emacs 21.
19006
19007 * xfaces.c (Vface_font_rescale_alist): Rename from
19008 Vface_resizing_fonts.
19009 (struct font_name): Rename member resizing_ratio to rescale_ratio.
19010 (font_rescale_ratio): Rename from font_resizing_ratio.
19011 (split_font_name): Set font->rescale_ratio.
19012 (better_font_p): Pay attention to font->rescale_ratio.
19013 (build_scalable_font_name): Likewise. Change RESX, and RESY
19014 fields.
19015 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
19016
190172008-02-01 Kenichi Handa <handa@m17n.org>
19018
19019 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
19020 (Qutf_16_le): Remove these variables.
19021 (syms_of_coding): Don't DEFSYM them.
19022 (decode_coding_utf_16): Fix handling of BOM.
19023 (encode_coding_utf_16): Fix handling of BOM.
19024
190252008-02-01 Kenichi Handa <handa@m17n.org>
19026
19027 * fileio.c (Finsert_file_contents): On replacing, before decoding
19028 the file into the work buffer, set point of the work buffer to the end.
19029
190302008-02-01 Dave Love <fx@gnu.org>
19031
19032 * coding.c (Fcheck_coding_systems_region): Fix type errors.
19033
190342008-02-01 Dave Love <fx@gnu.org>
19035
19036 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
19037 and fix C types.
19038
190392008-02-01 Kenichi Handa <handa@m17n.org>
19040
19041 * xdisp.c (SKIP_GLYPHS): New macro.
19042 (set_cursor_from_row): Pay attention to string display properties.
19043
19044 * category.c (copy_category_entry): Fix for the case that RANGE
19045 is an integer.
19046
19047 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
19048
19049 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
19050
190512008-02-01 Kenichi Handa <handa@m17n.org>
19052
19053 * charset.c (Fcharset_id_internal): New function.
19054 (syms_of_charset): Defsubr it.
19055
19056 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
19057 with the last arg charset_list acquired from coding.
19058 (Fdefine_coding_system_internal): For ccl-based coding system, fix
19059 the attribute coding_attr_ccl_valids.
19060
19061 * coding.h (enum define_coding_ccl_arg_index): Set the first
19062 member coding_arg_ccl_decoder to coding_arg_max.
19063
19064 * ccl.h (ccl_driver): Adjust prototype.
19065
19066 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
19067 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 19068 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
19069 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
19070 last arg Qnil.
19071
190722008-02-01 Kenichi Handa <handa@m17n.org>
19073
19074 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
19075 call encode_char.
19076
19077 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
19078
190792008-02-01 Dave Love <fx@gnu.org>
19080
19081 * composite.c (syms_of_composite): Make composition_hash_table weak.
19082
190832008-02-01 Kenichi Handa <handa@m17n.org>
19084
19085 * dispextern.h (check_face_attributes, generate_ascii_font_name)
19086 (font_name_registry): Don't extern them.
19087 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
19088
19089 * fontset.h (Qfontset): Don't extern it.
19090 (new_fontset_from_font_name): Extern it.
19091
19092 * fontset.c: Give 8 extra slots to fontset objects.
19093 (Qfontset_info): New variable.
19094 (syms_of_fontset): Defsym it.
19095 (FONTSET_FALLBACK): New macro.
19096 (fontset_face): Try also the default fontset.
19097 (make_fontset): Realize a fallback fontset from the default fontset.
19098 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
19099 using split_font_name_into_vector and build_font_name_from_vector.
19100 (Fset_fontset_font): Access the elements of font_spec by enum
19101 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
19102 name by using split_font_name_into_vector.
19103 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
19104 generate a proper font name from the fontset name. Update
19105 Vfontset_alias_alist.
19106 (n_auto_fontsets): New variable.
19107 (new_fontset_from_font_name): New function.
19108 (Ffont_info): Store the information about fonts generated from the
19109 default fontset in the first extra slot of the returned char-table.
19110
19111 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
19112 (font_name_registry): Delete function.
19113 (split_font_name_into_vector): New function.
19114 (build_font_name_from_vector): New function.
19115 (font_list): The argument REGISTRY is now a list of registry names.
19116 (choose_face_font): If we are choosing an ASCII font, and ATTRS
19117 specifies an explicit font name, return the name as is. Make a
19118 list of registy names.
19119
19120 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
19121 of x_new_fontset.
19122 (Fx_create_frame): Don't call x_new_fontset here. Just use
19123 x_list_fonts to check the existence of fonts.
19124
19125 * xterm.h (x_new_fontset): Adjust prototype.
19126
19127 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
19128 string. Use new_fontset_from_font_name to create a fontset from a
19129 font name.
19130
191312008-02-01 Kenichi Handa <handa@m17n.org>
19132
19133 * syntax.c (Vfind_word_boundary_function_table): New name for
19134 Vnext_word_boundary_function_table.
19135 (find-word-boundary-function-table): New name for
19136 next-word-boundary-function-table.
19137
191382008-02-01 Dave Love <fx@gnu.org>
19139
19140 * Makefile.in: Fix some dependencies.
19141
19142 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
19143 set it to nil before returning.
19144
19145 * composite.c (update_compositions): Fix type error.
19146
19147 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
19148
191492008-02-01 Kenichi Handa <handa@m17n.org>
19150
19151 * xterm.c (x_new_font): Optimize for the case that the font is
19152 already set for the frame.
19153
191542008-02-01 Kenichi Handa <handa@m17n.org>
19155
19156 * chartab.c (char_table_ascii): Check if the char table contents
19157 is sub-char-table or not.
19158 (char_table_set, char_table_set_range): Fix argument to
19159 char_table_ascii.
19160
19161 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
19162 (detect_coding_utf_8, detect_coding_utf_16)
19163 (detect_coding_emacs_mule, detect_coding_iso_2022)
19164 (detect_coding_sjis, detect_coding_big5)
19165 (detect_coding_ccl, detect_coding_charset): Change argument MASK
19166 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
19167 sequence is valid in this coding system. Change callers.
19168 (MAX_ANNOTATION_LENGTH): New macro.
19169 (ADD_ANNOTATION_DATA): New macro.
19170 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
19171 ADD_ANNOTATION_DATA. Change the format of annotation data.
19172 (ADD_CHARSET_DATA): New macro.
19173 (emacs_mule_char): New argument ID. Change callers.
19174 (decode_coding_emacs_mule, decode_coding_iso_2022)
19175 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
19176 Produce charset annotation data in coding->charbuf.
19177 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
19178 to charset annotation data in coding->charbuf.
19179 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
19180 coding->common_flags if the coding system is iso-2022 based and
19181 uses designation.
19182 (produce_composition): Adjust for the new annotation data format.
19183 (produce_charset): New function.
19184 (produce_annotation): Handle charset annotation.
19185 (handle_composition_annotation, handle_charset_annotation): New
19186 functions.
19187 (consume_chars): Handle charset annotation. Utilize the above two
19188 functions.
19189 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
19190 buffer, get the deleted text as a string and set
19191 coding->src_object to that string.
19192 (detect_coding, detect_coding_system): Use the new struct
19193 coding_detection_info.
19194
19195 * coding.h (struct coding_detection_info): New structure.
19196 (struct coding_system): Adjust prototype of the member `detector'.
19197 (CODING_ANNOTATE_CHARSET_MASK): New macro.
19198
191992008-02-01 Kenichi Handa <handa@m17n.org>
19200
19201 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
19202
192032008-02-01 Dave Love <fx@gnu.org>
19204
19205 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
19206 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
19207 to new local and nullify apropos_accumulate before returning.
19208 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
19209
192102008-02-01 Kenichi Handa <handa@m17n.org>
19211
19212 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
19213 correctly.
e3eea1fc 19214
aac0c6e3
MR
192152008-02-01 Dave Love <fx@gnu.org>
19216
19217 * fns.c (Flanginfo): Call synchronize_system_time_locale.
19218
192192008-02-01 Kenichi Handa <handa@m17n.org>
19220
19221 The following changes are to make character composition happen
19222 automatically on displaying.
19223
19224 * Makefile.in (lisp, shortlisp): Add composite.elc.
19225
19226 * composite.h (Qauto_composed, Vauto_composition_function)
19227 (Qauto_composition_function): Extern them.
19228
19229 * composite.c (Vcomposition_function_table)
19230 (Qcomposition_function_table): Delete variables.
19231 (Qauto_composed, Vauto_composition_function)
19232 (Qauto_composition_function): New variables.
19233 (run_composition_function): Don't call
19234 compose-chars-after-function.
19235 (update_compositions): Clear `auto-composed' text property.
19236 (compose_chars_in_text): Delete this function.
19237 (syms_of_composite): Staticpro Qauto_composed and
19238 Qauto_composition_function. Declare Vauto_composition_function as
19239 a Lisp variable.
19240
19241 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
19242
19243 * xdisp.c (it_props): Add an entry for Qauto_composed.
19244 (handle_auto_composed_prop): New function.
19245
19246 * xselect.c (selection_data_to_lisp_data): Don't call
19247 compose_chars_in_text.
19248
192492008-02-01 Dave Love <fx@gnu.org>
19250
19251 * keyboard.c (read_char): Modify checking around use of
19252 Vkeyboard_translate_table.
19253
19254 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
19255 and fix C types.
19256
192572008-02-01 Kenichi Handa <handa@m17n.org>
19258
19259 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
19260 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19261 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
19262 the case that the last byte is '\r' correctly.
19263 (decode_coding): Flush out the unprocessed data correctly.
19264 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
19265
192662008-02-01 Dave Love <fx@gnu.org>
19267
19268 * xterm.c (XTread_socket): Fix changes for defined keysyms.
19269 Add XK_ISO... case.
19270 (xaw_scroll_callback): Revert last change.
19271
192722008-02-01 Kenichi Handa <handa@m17n.org>
19273
19274 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
19275
192762008-02-01 Kenichi Handa <handa@m17n.org>
19277
19278 * xfaces.c (Vface_resizing_fonts): New variable.
19279 (struct font_name): New member `resizing_ratio'.
19280 (font_resizing_ratio): New function.
19281 (split_font_name): Set font->resizing_ratio.
19282 (better_font_p): Pay attention to font->resizing_ratio.
19283 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
19284 RESX, and RESY fields.
19285 (try_alternative_families): Try scalable fonts if
19286 Vscalable_fonts_allowed is not Qt.
19287 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
19288
192892008-02-01 Dave Love <fx@gnu.org>
19290
19291 * xterm.c (xaw_scroll_callback): Cast correctly.
19292
192932008-02-01 Dave Love <fx@gnu.org>
19294
19295 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
19296 (lispy_kana_keys): Comment out.
19297 (make_lispy_event) [XK_kana_A]: Comment out.
19298
19299 * xterm.c (xaw_scroll_callback): Cast call_data.
19300 (XTread_socket): Deal with ASCII keysyms.
19301 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
19302
193032008-02-01 Dave Love <fx@gnu.org>
19304
19305 * xterm.c (Vx_keysym_table): New.
19306 (syms_of_xterm): Initialize it.
19307 (XTread_socket): Use it.
19308 From head: Eliminate incorrect optimization that tried to avoid
19309 decoding the output of X*LookupString.
19310 (x_get_font_repertory): Delete charset declaration.
19311
193122008-02-01 Kenichi Handa <handa@m17n.org>
19313
19314 * coding.c (detect_coding_charset): If only ASCII bytes are found,
19315 return 0.
19316 (Fdefine_coding_system_internal): Setup
19317 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
19318
193192008-02-01 Dave Love <fx@gnu.org>
19320
19321 * coding.c (Fcheck_coding_system): Doc fix.
19322
19323 * editfns.c (Finsert_byte): Return a proper value.
19324
193252008-02-01 Kenichi Handa <handa@m17n.org>
19326
19327 * coding.c (decode_coding): Fix args to translate_chars. Pay
19328 attention to Vstandard_translation_table_for_decode.
19329 (encode_coding): Fix args to translate_chars. Pay attention to
19330 Vstandard_translation_table_for_encode.
19331
19332 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
19333 SINGLE_BYTE_CHAR_P.
19334
19335 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
19336 not by SINGLE_BYTE_CHAR_P.
19337
19338 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
19339 SINGLE_BYTE_CHAR_P.
19340
19341 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
19342 SINGLE_BYTE_CHAR_P.
19343
19344 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
19345 by SINGLE_BYTE_CHAR_P.
19346
19347 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
19348 SINGLE_BYTE_CHAR_P.
19349
193502008-02-01 Dave Love <fx@gnu.org>
19351
19352 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
19353
193542008-02-01 Dave Love <fx@gnu.org>
19355
19356 * fns.c (Flanginfo): Fix typo.
19357
19358 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
19359
193602008-02-01 Kenichi Handa <handa@m17n.org>
19361
19362 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
19363 (detect_coding_emacs_mule, detect_coding_iso_2022)
19364 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
19365 incomplete byte sequence. Don't update *mask when correctly detected.
19366 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
19367 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
19368 (detect_coding, detect_coding_system): Adjust for the changes above.
19369
193702008-02-01 Kenichi Handa <handa@m17n.org>
19371
19372 * character.c (char_string): Rename from
19373 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
19374 (string_char): Rename from string_char.
19375
19376 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
19377 if C is greater than MAX_3_BYTE_CHAR.
19378 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
19379 string_char instead of string_char_with_unification.
19380
193812008-02-01 Dave Love <fx@gnu.org>
19382
19383 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
19384
193852008-02-01 Kenichi Handa <handa@m17n.org>
19386
19387 * keymap.c (push_key_description): Pay attention to force_multibyte.
19388
19389 * regex.c (re_search_2): Fix for the case of unibyte buffer.
19390
193912008-02-01 Dave Love <fx@gnu.org>
19392
19393 * charset.c (define_charset_internal): Rename `supprementary'.
19394
19395 * Makefile.in (lisp, shortlisp): Remove latin-N.
19396
193972008-02-01 Dave Love <fx@gnu.org>
19398
19399 * xfns.c (x_window, x_window): Use use_xim.
19400
19401 * xterm.c (use_xim): Initialize.
19402 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
19403 (x_term_init): Maybe set use_xim.
19404
19405 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
19406
194072008-02-01 Kenichi Handa <handa@m17n.org>
19408
19409 * search.c (search_buffer): Fix case-fold-search of multibyte
19410 characters.
19411 (boyer_moore): Rename the last argument to char_high_bits.
19412
194132008-02-01 Kenichi Handa <handa@m17n.org>
19414
19415 * xdisp.c (display_string): Fix for the case of zero width glyph.
19416
19417 * xfns.c (x_set_font): Change the error message of the case that
19418 x_new_fontset returns Qt.
19419
19420 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
19421 (Finternal_set_lisp_face_attribute): Use signal_error for the
19422 error of invalid fontset.
19423
19424 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
19425 fontset, return Qt.
19426
194272008-02-01 Dave Love <fx@gnu.org>
19428
19429 * unexelf.c (unexec): Make .got handling not SGI-specific.
19430
19431 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
19432
19433 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
19434
19435 * keyboard.c (read_key_sequence): Fix type error.
19436
19437 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
19438 type error.
19439
19440 * fontset.c (fontset_add): Return Lisp_Object.
19441
194422008-02-01 Dave Love <fx@gnu.org>
19443
19444 * charset.h (charset_ordered_list_tick): Declare extern.
19445
194462008-02-01 Kenichi Handa <handa@m17n.org>
19447
19448 The following changes (and some of 2008-02-01 changes of mine) are
19449 for handling syntax, category, and case conversion for unibyte
19450 characters by converting them to multibyte on the fly. With these
19451 changes, we don't have to setup syntax and case tables for unibyte
19452 characters in each language environment.
19453
19454 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
19455 multibyte if necessary.
19456
19457 * bytecode.c (Fbyte_code): Likewise.
19458
19459 * character.h (LEADING_CODE_LATIN_1_MIN)
19460 (LEADING_CODE_LATIN_1_MAX): New macros.
19461 (unibyte_to_multibyte_table): Extern it.
19462 (unibyte_char_to_multibyte): New macro.
19463 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
19464 (CHAR_LEADING_CODE): New macro.
19465 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
19466
19467 * character.c (unibyte_to_multibyte_table): New variable.
19468 (unibyte_char_to_multibyte): Move to character.h and define as macro.
19469 (multibyte_char_to_unibyte): If C is an eight-bit character,
19470 convert it to the corresponding byte value.
19471
19472 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
19473 not 1, signals an error. Update the elements of
19474 unibyte_to_multibyte_table.
19475 (init_charset_once): Initialize unibyte_to_multibyte_table.
19476 (syms_of_charset): Define the charset `iso-8859-1'.
19477
19478 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
19479 as is without converting it to unibyte. In a unibyte buffer,
19480 convert C to multibyte before checking the syntax.
19481
19482 * lisp.h (unibyte_char_to_multibyte): Delete extern.
19483
19484 * minibuf.c (Fminibuffer_complete_word): Use the macro
19485 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
19486
19487 * regex.h (struct re_pattern_buffer): New member target_multibyte.
19488
19489 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
19490 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
19491 that is zero, convert an eight-bit char to multibyte.
19492 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
19493 non-emacs case.
19494 (PATFETCH): Convert an eight-bit char to multibyte.
19495 (HANDLE_UNIBYTE_RANGE): New macro.
19496 (regex_compile): Setup the compiled pattern for multibyte chars
19497 even if the given regex string is unibyte. Use PATFETCH_RAW
19498 instead of PATFETCH in many places. To handle `charset'
19499 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
19500 only for ASCII chars.
19501 (analyse_first) <exactn>: Simplify because the compiled pattern
19502 is multibyte.
19503 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
19504 <charset>: Use CHAR_LEADING_CODE to get leading codes.
19505 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
19506 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
19507 multibyte always 1.
19508 (re_search_2): In emacs, set the locale variable multibyte to 1,
19509 otherwise to 0. New local variable target_multibyte. Check it
19510 to decide the multibyteness of STR1 and STR2. If
19511 target_multibyte is zero, convert unibyte chars to multibyte
19512 before translating and checking fastmap.
19513 (TARGET_CHAR_AND_LENGTH): New macro.
19514 (re_match_2_internal): In emacs, set the locale variable multibyte
19515 to 1, otherwise to 0. New local variable target_multibyte. Check
19516 it to decide the multibyteness of STR1 and STR2. Use
19517 TARGET_CHAR_AND_LENGTH to fetch a character from D.
19518 <charset, charset_not>: If multibyte is nonzero, check fastmap
19519 only for ASCII chars. Call bcmp_translate with
19520 target_multibyte, not with multibyte.
19521 <begline>: Declare the local variable C as `unsigned'.
19522 (bcmp_translate): Change the last arg name to target_multibyte.
19523
19524 * search.c (compile_pattern_1): Don't adjust the multibyteness of
19525 the regexp pattern and the matching target. Set cp->buf.multibyte
19526 to the multibyteness of the regexp pattern. Set
19527 cp->but.target_multibyte to the multibyteness of the matching target.
19528 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
19529 FETCH_STRING_CHAR_ADVANCE.
19530 (Freplace_match): Convert unibyte chars to multibyte.
19531
19532 * syntax.c (char_quoted, back_comment, scan_words)
19533 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
19534 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
19535 unibyte chars to multibyte.
19536 (skip_chars): Delete the arg syntaxp, and move the code for
19537 handling syntaxes to skip_syntaxes. Change callers.
19538 Fix the case that the multibyteness of STRING and the current
19539 buffer doesn't match.
19540 (skip_syntaxes): New function.
19541 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
19542 SINGLE_BYTE_CHAR_P.
19543
195442008-02-01 Kenichi Handa <handa@m17n.org>
19545
19546 * xfaces.c (QCfontset): New variable.
19547 (LFACE_FONTSET): New macro.
19548 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
19549 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
19550 (Finternal_set_lisp_face_attribute)
19551 (Finternal_get_lisp_face_attribute): Handle QCfontset.
19552 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
19553 check also LFACE_FONTSET_INDEX.
19554 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
19555 attrs[LFACE_FONT_INDEX].
19556 (syms_of_xfaces): Intern and staticpro QCfontset.
19557
19558 * dispextern.h (enum lface_attribute_index): New member
19559 LFACE_FONTSET_INDEX.
19560
19561 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
19562
195632008-02-01 Kenichi Handa <handa@m17n.org>
19564
19565 * coding.c (coding_set_destination): Fix coding->destination for
19566 the case converting a region.
19567 (encode_coding_utf_8): Encode eight-bit chars as single byte.
19568 (encode_coding_object): Fix coding->dst_pos and
19569 coding->dst_pos_byte for the case converting a region.
19570
19571 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
19572
19573 * character.h (BYTE8_STRING): New macro.
19574
19575 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
19576
195772008-02-01 Kenichi Handa <handa@m17n.org>
19578
19579 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
19580 characters by octal form.
19581
19582 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
19583
19584 * buffer.h (_fetch_multibyte_char_len): Delete extern.
19585 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
19586 _fetch_multibyte_char_len.
19587 (FETCH_CHAR_AS_MULTIBYTE): New macro.
19588
19589 * casetab.c (set_canon, set_identity, shuffle): Simplify.
19590
19591 * casefiddle.c (casify_object): Simplify. Handle the case that
19592 the case conversion change the byte length.
19593 (casify_region): Likewise.
19594
19595 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
19596
19597 * character.c (_fetch_multibyte_char_len): Delete this variable.
19598 (syms_of_character): Setup Vprintable_chars.
19599
19600 * editfns.c (Fchar_equal): Fix for the unibyte case.
19601 (Finsert_byte): New function.
19602 (syms_of_editfns): Defsubr it.
19603
19604 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
19605 of direct code 0x3ffff.
19606
19607 * search.c (Freplace_match): Fix for the unibyte case.
19608
196092008-02-01 Kenichi Handa <handa@m17n.org>
19610
19611 * lread.c (safe_to_load_p): Fix the logic.
19612
19613 * syntax.c (scan_words): Don't treat characters belonging to
19614 different scripts as constituting a word.
19615
19616 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19617
19618 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
19619
19620 * emacs.c (main): In the case of --unibyte, instead of aborting on
19621 finding non-empty buffer, make it unibyte.
19622
196232008-02-01 Kenichi Handa <handa@m17n.org>
19624
19625 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
19626 to create a fontset.
19627
196282008-02-01 Dave Love <fx@gnu.org>
19629
19630 * character.c (Funibyte_char_to_multibyte): Doc fix.
19631
19632 * xfns.c [HAVE_STDLIB_H]: Fix last change.
19633
196342008-02-01 Kenichi Handa <handa@m17n.org>
19635
19636 * fontset.c (fontset_add): Make the type `int'.
19637 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
19638
19639 * character.c (unibyte_char_to_multibyte)
19640 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
19641 charset_unibyte, not charset_primary.
19642
19643 * charset.h (charset_unibyte): Extern it instead of charset_primary.
19644
19645 * charset.c (charset_unibyte): Rename from charset_primary.
19646 (Funibyte_charset): Rename from Fprimary_charset.
19647 (Fset_unibyte_charset): Rename from Fset_primary_charset.
19648 (syms_of_charset): Adjust for the above changes.
19649
19650 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
19651 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
19652 it->multibyte_p is zero.
19653
19654 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
19655 Delete extern.
19656
196572008-02-01 Kenichi Handa <handa@m17n.org>
19658
19659 * coding.c (Fdefine_coding_system_internal): Fix category setting
19660 for a coding system of type iso-2022.
19661
196622008-02-01 Kenichi Handa <handa@m17n.org>
19663
19664 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
19665
196662008-02-01 Kenichi Handa <handa@m17n.org>
19667
19668 * syntax.c (Vnext_word_boundary_function_table): New variable.
19669 (next-word-boundary-function-table): Declare it as a Lisp variable
19670 in syms_of_syntax.
19671 (scan_words): Call functions in Vnext_word_boundary_function_table
19672 if any.
19673
19674 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
19675
19676 * fontset.c (fs_load_font): If fontp->charset is not negative,
19677 return fontp without setting its members.
19678
196792008-02-01 Dave Love <fx@gnu.org>
19680
19681 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
19682
19683 * m/sparc.h (HAVE_ALLOCA): Delete.
19684
19685 * s/irix6-5.h: Don't include strings.h.
19686 (bcopy, bzero, bcmp): Don't undef.
19687
19688 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
19689
19690 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
19691 (TIOCSIGSEND): Don't test IRIX6.
19692 (bcopy, bzero, bcmp): Define conditionally.
19693
196942008-02-01 Kenichi Handa <handa@m17n.org>
19695
19696 * buffer.c (Qas, Qmake, Qto): New variables.
19697 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
19698 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
19699
19700 * callproc.c (Fcall_process): Don't call insert_1_both directly if
19701 we are inserting a process output into a multibyte buffer.
19702
19703 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
19704 multibyte_char_to_unibyte.
19705
19706 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
19707 by the primary charset, make it eight-bit char.
19708 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
19709
19710 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
19711 (charset_8_bit__control, charset_8_bit_graphic)
19712 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
19713 (define_charset_internal): New function.
19714 (syms_of_charset): Call define_charset_internal for pre-defined
19715 charsets.
19716
19717 * charset.h (charset_8_bit): Extern it.
19718
19719 * coding.c (make_conversion_work_buffer): Adjust for the change
19720 of Fset_buffer_multibyte.
19721 (encode_coding_raw_text): Increment p0 in the loop.
19722
19723 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
19724
19725 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
19726 for the change of Fset_buffer_multibyte.
19727
19728 * fns.c (Fstring_to_multibyte): New function.
19729 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
19730
197312008-02-01 Dave Love <fx@gnu.org>
19732
19733 * xfns.c (x_put_x_image): Declare args.
19734
19735 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
19736 (try_font_list): Declare an arg.
19737
19738 * xdisp.c (message2_nolog, set_message): Declare an arg.
19739
19740 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
19741
19742 * syntax.c (scan_sexps_forward): Declare an arg.
19743
19744 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
19745 Declare an arg.
19746
19747 * lisp.h (Fnew_fontset): Declare.
19748
19749 * keymap.c (push_key_description): Call CHARACTERP correctly.
19750
19751 * fontset.c (fontset_add): Declare args. Call make_number correctly.
19752 (face_for_char): Delete unused vars.
19753 (Fset_fontset_font): Doc fix. Delete unused vars.
19754
19755 * doc.c (Fsubstitute_command_keys): Delete unused vars.
19756
19757 * composite.c (update_compositions): Declare arg.
19758
19759 * cm.c (calccost, cmgoto): Declare args.
19760
19761 * charset.c: Remove `emacs' conditional. Doc fixes.
19762 (map_char_table_for_charset): Declare.
19763
19764 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
19765
19766 * ccl.c: Remove `emacs' conditional.
19767
197682008-02-01 Kenichi Handa <handa@m17n.org>
19769
19770 The following changes are to allow specifying multiple font
19771 patterns for a character range (specified by script or charset).
19772
19773 * Makefile.in (abbrev.o): Depend on syntax.h.
19774 (xfaces.o): Depend on charset.h.
19775
19776 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
19777 SINGLE_BYTE_CHAR_P.
19778
19779 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
19780
19781 * character.h (Vchar_script_table): Extern it.
19782
19783 * character.c (Vscript_alist): Delete.
19784 (Vchar_script_table, Qchar_script_table): New variable.
19785 (syms_of_character): Declare Vchar_script_table as a lisp variable
19786 and initialize it.
19787
19788 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
19789 have property char-table-extra-slots, make no extra slot.
19790
19791 * dispextern.h (struct face): Delete member `charset'.
19792 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
19793 SINGLE_BYTE_CHAR_P.
19794 (choose_face_font, lookup_non_ascii_face, font_name_registry):
19795 Add prototypes.
19796 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
19797 (generate_ascii_font_name): Rename from generate_ascii_font.
19798
19799 * fontset.h (get_font_repertory_func): New prototype.
19800 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
19801 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
19802
19803 * fontset.c (Qprepend, Qappend): New variables.
19804 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
19805 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
19806 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
19807 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
19808 (fontset_ref_and_range, fontset_add, reorder_font_vector)
19809 (load_font_get_repertory): New functions.
19810 (fontset_set): Delete.
19811 (fontset_face): New arg FACE. Return face ID, not face.
19812 Complete re-write to handle new fontset structure. Change caller.
19813 (free_face_fontset): Use ASET istead of AREF (X) = Y.
19814 (face_for_char): Don't call lookup_face.
19815 (make_fontset_for_ascii_face): New arg FACE.
19816 (fs_load_font): New arg CHARSET_ID. Don't check
19817 Vfont_encoding_alist here.
19818 (find_font_encoding): New function.
19819 (list_fontsets): Use STRINGP, not ! NILP.
19820 (accumulate_script_ranges): New function.
19821 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
19822 re-written to handle new fontset structure.
19823 (Ffontset_font): Return a copy of element.
19824 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
19825 docstring of font-encoding-alist.
19826
19827 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
19828 (Fset_fotset_font): Fix arguments to 5.
19829
19830 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
19831
19832 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
19833 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19834 (highlight_trailing_whitespace): Adjust for the change of
19835 lookup_named_face.
19836
19837 * xfaces.c: Include charset.h.
19838 (load_face_font): Delete argument C. Change caller.
19839 (generate_ascii_font_name): Rename from generate_ascii_font.
19840 (font_name_registry): New function.
19841 (cache_face): Store ascii faces before non-ascii faces in buckets.
19842 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
19843 Lookup only ascii faces.
19844 (lookup_non_ascii_face): New function.
19845 (lookup_named_face): Delete argument C. Change caller.
19846 (lookup_derived_face): Delete argument C. Change caller.
19847 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
19848 a string, just call font_list with it.
19849 (choose_face_font): Delete arguments FACE and C. New arg
19850 FONT_SPEC. Change caller.
19851 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
19852 Change caller.
19853 (realize_non_ascii_face): New function.
19854 (realize_x_face): Call load_face_font here.
19855 (realize_tty_face): Delete argument C. Change caller.
19856 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
19857 get a face ID.
19858 (dump_realized_face): Don't print charset of FACE.
19859
19860 * xfns.c (x_set_font): Always call x_new_fontset and
19861 store_frame_parameter.
19862 (Fx_create_frame): Call x_new_fontset, not x_new_font.
19863 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
19864
19865 * xterm.h (x_get_font_repertory): Extern it.
19866
19867 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
19868 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
19869 it->multibyte_p is zero.
19870 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19871 (x_new_fontset): If FONTSETNAME doesn't match any existing
19872 fontsets, create a new one.
19873 (x_get_font_repertory): New function.
19874
198752008-02-01 Kenichi Handa <handa@m17n.org>
19876
19877 * coding.c (Ffind_coding_systems_region_internal): Detect an
19878 ASCII only string correctly.
19879
19880 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
19881 version is 0.
19882
198832008-02-01 Kenichi Handa <handa@m17n.org>
19884
19885 * lread.c: Include "coding.h".
19886 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
19887 (load_each_byte, unread_char): New variables.
19888 (readchar_backlog): Delete.
19889 (readchar): Return a character unless load_each_byte is nonzero.
19890 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
19891 cons. If unread_char is not -1, simply return it.
19892 (unreadchar): Handle the case that readcharfun is
19893 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
19894 (read_multibyte): Delete.
19895 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
19896 (read_emacs_mule_char): New functions.
19897 (Fload): Even if the file doesn't have the extension ".elc", if
19898 safe_to_load_p returns a positive version number, assume that the
19899 file contains bytecompiled code. If the version is less than 22,
19900 load the file while decoding multibyte sequences by emacs-mule.
19901 (readevalloop): Don't use readchar_backlog.
19902 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
19903 (Fread_from_string): Pay attention to the case that STREAM is a cons.
19904 (read_escape): Delete the arg BYTEREP.
19905 (read1): Set load_each_byte to 1 temporarily while handling
19906 #@NUMBER. Don't call read_multibyte.
19907 (read_vector): Call Fread with a cons. If readcharfun is
19908 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
19909 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
19910 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
19911 and Qload_force_doc_strings.
19912
199132008-02-01 Kenichi Handa <handa@m17n.org>
19914
19915 * xdisp.c (face_before_or_after_it_pos): Call
19916 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
19917
199182008-02-01 Kenichi Handa <handa@m17n.org>
19919
19920 * character.h (TRAILING_CODE_P): New macro.
19921 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
19922 (string_char_with_unification): Fix prototype.
19923 (Vscript_alist): Extern it.
19924
19925 * character.c (Vscript_alist): New variable.
19926 (string_char_with_unification, str_as_unibyte)
19927 (string_escape_byte8): Add `const' to local variables.
19928 (syms_of_character): Declare script-alist as a Lisp variable.
19929
19930 * charset.h (Vcharset_ordered_list): Extern it.
19931 (charset_ordered_list_tick): Extern it.
19932 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
19933 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
19934 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
19935 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
19936 (Funify_charset): Adjust for the change of Funify_charset.
19937
19938 * charset.c (charset_ordered_list_tick): New variable.
19939 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
19940 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
19941 deunify intead of unify a charset.
19942 (string_xstring_p): Add `const' to local variables.
19943 (find_charsets_in_text): Add `const' to arguments and local variables.
19944 (encode_char): Adjust for the change of Funify_charset. Fix
19945 detecting of invalid code.
19946 (Fset_charset_priority): Increment charset_ordered_list_tick.
19947 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
19948 and TO_CODE.
19949
19950 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
19951 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
19952 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
19953 (decode_coding_ccl, consume_chars)
19954 (Ffind_coding_systems_region_internal)
19955 (Fcheck_coding_systems_region): Add `const' to local variables.
19956
19957 * print.c (print_object): Use octal form for printing the
19958 contents of a bool vector.
19959
199602008-02-01 Dave Love <fx@gnu.org>
19961
19962 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
19963 <version == 20>: Refuse to load.
19964
199652008-02-01 Dave Love <fx@gnu.org>
19966
19967 * fns.c: Move coding.h.
19968 (Qcodeset, Qdays, Qmonths): New.
19969 (concat): Use CHARACTERP instead of INTEGERP.
19970 (Flocale_codeset): Delete.
19971 (Flanginfo): New function.
19972 (syms_of_fns): Change accordingly.
19973
19974 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
19975
199762008-02-01 Dave Love <fx@gnu.org>
19977
19978 * casetab.c (init_casetab_once, init_casetab_once): Fix
19979 CHAR_TABLE_SET call.
19980
19981 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
19982
19983 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
19984
19985 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
19986 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
19987 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
19988
19989 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
19990
19991 * coding.c (ENCODE_DESIGNATION, decode_eol)
19992 (make_conversion_work_buffer, code_conversion_restore)
19993 (Fdefine_coding_system_internal): Convert Lisp types.
19994 (code_conversion_restore): Use EQ, not ==.
19995 (Fencode_coding_string): Fix code_convert_string call.
19996
19997 * coding.h (code_convert_region): Fix prototype.
19998
19999 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
20000
20001 * fontset.c (fontset_ref, fontset_set, fs_load_font)
20002 (Ffontset_info): Convert Lisp types.
20003
20004 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
20005
20006 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
20007
20008 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
20009
20010 * chartab.c: Include "...h", not <...h> in some cases.
20011
20012 * callproc.c (Fcall_process): Remove unused variables.
20013
200142008-02-01 Dave Love <fx@gnu.org>
20015
20016 * coding.c (Fset_coding_system_priority): Allow null arg list.
20017
200182008-02-01 Dave Love <fx@gnu.org>
20019
20020 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
20021 (Fself_insert_and_exit): Use CHARACTERP.
20022
20023 * callproc.c (Fcall_process): Remove unused vars.
20024
20025 * xterm.c (XTread_socket): Add extra dead keysyms.
20026
20027 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
20028
20029 * dispextern.h: Remove prototypes for redraw_frame,
20030 redraw_garbaged_frames.
20031
20032 * cmds.c (Fself_insert_command): Use CHARACTERP.
20033
20034 * chartab.c (make_sub_char_table): Remove unused var.
20035 (Fset_char_table_default, Fmap_char_table): Doc fix.
20036
20037 * keymap.c (access_keymap): Remove generic char code.
20038 (push_key_description): Use CHARACTERP.
20039
200402008-02-01 Dave Love <fx@gnu.org>
20041
20042 * charset.c: Doc fixes.
20043 (Funify_charset): Extra checking.
20044
200452008-02-01 Dave Love <fx@gnu.org>
20046
20047 * lread.c: Remove some unused variables.
20048 (safe_to_load_p): If safe, return the magic number version byte.
20049 (Fload): Maybe use load-with-code-conversion.
20050
200512008-02-01 Kenichi Handa <handa@m17n.org>
20052
20053 * category.c (Fmodify_category_entry): Don't modify the contents
20054 of category_set for characters out of the range. Avoid
20055 unnecessary modification.
20056
20057 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
20058 Vchar_unify_table. The default value of the table is now nil.
20059
20060 * character.c (syms_of_character): Setup Vchar_width_table for
20061 eight-bit-control and raw-byte chars.
20062
20063 * charset.h (enum define_charset_arg_index): Delete
20064 charset_arg_parents and add charset_arg_subset and
20065 charset_arg_superset.
20066 (enum charset_attr_index): Delete charset_parents and add
20067 charset_subset and charset_superset.
20068 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
20069 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
20070 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
20071 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
20072 (CHARSET_SUPERSET): New macros.
20073 (charset_work): Extern it.
20074 (ENCODE_CHAR): Use charset_work.
20075 (CHAR_CHARSET_P): Adjust for the change of encoder format.
20076 (map_charset_chars): Extern it.
20077
20078 * charset.c (load_charset_map): Set the default value of encoder
20079 and deunifier char-tables to nil.
20080 (map_charset_chars): Change argument. Change callers. Use
20081 map_char_table_for_charset instead of map_char_table.
20082 (Fmap_charset_chars): New optional args from_code and to_code.
20083 (Fdefine_charset_internal): Adjust for the change of
20084 `define-charset' (:parents -> :subset or :superset).
20085 (charset_work): New variable.
20086 (encode_char, syms_of_charset): Adjust for the change of
20087 Fdefine_charset_internal.
20088 (Ffind_charset_string): Setup the vector `charsets' correctly.
20089
20090 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
20091 the previous change.
20092 (char_table_ref_and_range): Adjust for the above change.
20093 (map_sub_char_table_for_charset): New function.
20094 (map_char_table_for_charset): New function.
20095
20096 * keymap.c (describe_vector): Handle a char-table directly here.
20097 (describe_char_table): Delete.
20098
20099 * lisp.h (map_charset_chars): Delete.
20100
201012008-02-01 Dave Love <fx@gnu.org>
20102
20103 * fns.c (count_combining): Comment out (unused).
20104 (Flocale_codeset): New.
20105 (syms_of_fns): Defsubr it.
20106
20107 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
20108 (size_t): Remove.
20109
201102008-02-01 Dave Love <fx@gnu.org>
20111
20112 * Makefile.in (chartab.o): Depend on charset.h.
20113
201142008-02-01 Kenichi Handa <handa@m17n.org>
20115
20116 * character.c (syms_of_character): Set the default value of
20117 Vprintable_chars to Qnil.
20118
201192008-02-01 Dave Love <fx@gnu.org>
20120
20121 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
20122
201232008-02-01 Kenichi Handa <handa@m17n.org>
20124
20125 * charset.c (load_charset_map): Handle the case that from < to
20126 correctly.
20127
20128 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
20129 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
20130 Pay attention to raw-8-bit chars.
20131
201322008-02-01 Kenichi Handa <handa@m17n.org>
20133
20134 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
20135 It is not bytecompiled now.
20136
20137 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
20138 (charset_jisx0208): New variables.
20139 (Fdefine_charset_internal): Setup them if appropriate.
20140 (init_charset_once): Initialize them to -1.
20141
20142 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
20143 (charset_jisx0208): Extern them.
20144
20145 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
20146 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
20147 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
20148 (setup_iso_safe_charsets): Fix arguments to Fassq.
20149 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
20150 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
20151 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
20152 (encode_coding_iso_2022): Change the 1st arg to
20153 ENCODE_ISO_CHARACTER to a variable.
20154
201552008-02-01 Kenichi Handa <handa@m17n.org>
20156
20157 * charset.h (enum define_charset_arg_index): New enums
20158 charset_arg_min_code and charset_arg_max_code.
20159 (struct charset): New member char_index_offset.
20160
20161 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
20162 Take charset->char_index_offset into account.
20163 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
20164 args[charset_arg_max_code]. Setup charset.char_index_offset.
20165 (syms_of_charset): Fix args to Fdefine_charset_internal.
20166
201672008-02-01 Dave Love <fx@gnu.org>
20168
20169 * coding.c (decode_coding_utf_8): Reject overlong sequences.
20170
201712008-02-01 Dave Love <fx@gnu.org>
20172
20173 * coding.c: Doc fixes.
20174 (Fcoding_system_aliases): Fix return value.
20175 (Qmac): Remove (duplicated) definition.
20176
201772008-02-01 Dave Love <fx@gnu.org>
20178
362654a6
JB
20179 * charset.c (Fcharset_priority_list, Fset_charset_priority):
20180 New functions.
aac0c6e3
MR
20181
20182 * character.c (Fstring): Doc fix.
20183
20184 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
20185
362654a6 20186 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
20187 (font-encoding-alist): Doc fix.
20188
201892008-02-01 Dave Love <fx@gnu.org>
20190
20191 * term.c (costs_set): Declare static, non-initialized for pcc.
20192 (encode_terminal_code): Remove unused var.
20193
20194 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
20195 for K&R.
20196
20197 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
20198
20199 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
20200 (suffixes): Move out of make_subsidiaries for K&R.
20201
20202 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
20203
20204 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
20205
202062008-02-01 Dave Love <fx@gnu.org>
20207
20208 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
20209
20210 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
20211
202122008-02-01 Yong Lu <lyongu@asia-infonet.com>
20213
20214 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
20215
20216 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
20217
202182008-02-01 Kenichi Handa <handa@m17n.org>
20219
20220 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
20221 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
20222
202232008-02-01 Kenichi Handa <handa@m17n.org>
20224
20225 * coding.c (decode_coding_charset): Adjust for the change of
20226 Fdefine_coding_system_internal.
20227 (Fdefine_coding_system_internal): For a coding system of
20228 `charset' type, store a list of charset IDs in
20229 `charset_attr_charset_valids' element of coding attributes.
20230
202312008-02-01 Kenichi Handa <handa@m17n.org>
20232
20233 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
20234 (emacs_mule_char): New arg src. Delete arg `composition'. Change
20235 caller. Handle 2-byte and 3-byte charsets correctly.
20236 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
20237 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
20238 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
20239 (DECODE_EMACS_MULE_21_COMPOSITION): Call
20240 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
20241 sequence.
20242 (decode_coding_emacs_mule): Handle composition correctly. Rewind
20243 `src' and `consumed_chars' correctly before calling emacs_mule_char.
20244 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
20245 and alt&rule composition.
20246 (decode_coding_iso_2022): Handle composition correctly.
20247 (init_coding_once): Setup emacs_mule_bytes for private charsets.
20248
20249 * charset.c (Fdefine_charset_internal): Fix bug for the case of
20250 re-defining a charset. If the charset has :emacs-mule-id, setup
20251 emacs_mule_bytes.
20252 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
20253
202542008-02-01 Kenichi Handa <handa@m17n.org>
20255
20256 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
20257 (encode_coding_big5, encode_coding_charset): If coding requires safe
20258 encoding, produce a character specified by
20259 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
20260
202612008-02-01 Dave Love <fx@gnu.org>
20262
20263 * xterm.c (XSetIMValues): Declare.
20264
20265 * process.c: Conditionally include sys/wait.h, pty.h.
20266
20267 * print.c (print_object): Fix print format for 64-bit systems.
20268
20269 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
20270
20271 * buffer.c (emacs_strerror): Declare.
20272
20273 * fontset.c (Fclear_face_cache): Declare.
20274 (accumulate_font_info): Comment-out (unused).
20275 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
20276 variables.
20277
20278 * character.h (string_escape_byte8): Declare.
20279
20280 * charset.c (load_charset_map, load_charset_map_from_file): Remove
20281 unused vars.
20282 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
20283 (Fmap_charset_chars): Doc fix.
20284
20285 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
20286 (Fset_coding_system_priority, Fset_coding_system_priority)
20287 (Fdefine_coding_system_internal): Doc fix.
20288
202892008-02-01 Dave Love <fx@gnu.org>
20290
20291 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
20292
202932008-02-01 Kenichi Handa <handa@m17n.org>
20294
20295 * character.c (string_escape_byte8): Make multibyte string with
20296 correct size.
20297
20298 * charset.c (Fmake_char): Delete unnecessary code.
20299
203002008-02-01 Kenichi Handa <handa@m17n.org>
20301
20302 * xfns.c (x_encode_text): Allocate coding.destination here, and
20303 call encode_coding_object with dst_object Qnil.
20304
20305 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
20306 multibyte form correctly.
20307
20308 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
20309 against Vfont_encoding_alist.
20310
20311 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
20312 handling of charset list.
20313 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
20314 (decode_coding_object): Move point to coding->dst_pos before
20315 calling post-read-conversion function.
20316 (encode_coding_object): Give correct arguments to
20317 pre-write-conversion. Ignore the return value of
20318 pre-write-conversion function. Pay attention to the case that
20319 pre-write-conversion changes the current buffer. If dst_object is
20320 Qt, even if coding->src_bytes is zero, allocate at least one byte
20321 to coding->destination.
20322
20323 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
20324
20325 * charset.c (Fmake_char): Make it more backward compatible.
20326 (Fmap_charset_chars): Fix docstring.
20327
203282008-02-01 Dave Love <fx@gnu.org>
20329
20330 * coding.c: Doc fixes.
20331 (Fdefine_coding_system_alias): Use names, not symbols, in
20332 coding-system-alist.
20333
203342008-02-01 Kenichi Handa <handa@m17n.org>
20335
20336 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
20337 of calling free_realized_face.
20338
203392008-02-01 Yong Lu <lyongu@asia-infonet.com>
20340
20341 * charset.c (read_hex): Don't treat SPC as a comment starter.
20342 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
20343 (Fdecode_char): Fix typo.
20344
203452008-02-01 Kenichi Handa <handa@m17n.org>
20346
20347 * charset.h (struct charset): New member `code_space_mask'.
20348
20349 * coding.c (coding_set_source): Delete the local variable beg_byte.
20350 (encode_coding_charset, Fdefine_coding_system_internal):
20351 Delete the local variable charset.
20352 (Fdefine_coding_system_internal): Setup
20353 attrs[coding_attr_charset_valids] correctly.
20354
20355 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
20356 member to check if CODE is valid or not.
20357 (Fdefine_charset_internal): Initialize `code_space_mask' member.
20358 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
20359 is within the range of charset->min_code and carset->max_code.
20360
203612008-02-01 Dave Love <fx@gnu.org>
20362
20363 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
20364
20365 * dispextern.h (generate_ascii_font): Fix return type.
20366
20367 * xfaces.c (generate_ascii_font): Fix arg declaration.
20368
20369 * coding.c (coding_inherit_eol_type)
20370 (Fset_terminal_coding_system_internal)
20371 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
20372
203732008-02-01 Kenichi Handa <handa@m17n.org>
20374
20375 * coding.c (decode_coding_charset, encode_coding_charset): Handle
20376 multiple charsets correctly.
20377
203782008-02-01 Kenichi Handa <handa@m17n.org>
20379
20380 * search.c (boyer_moore): Fix handling of multibyte character
20381 translation.
20382
20383 * xdisp.c (display_mode_element): When the variable `elt' is
20384 changed, update `this' and `lisp_string'.
20385
203862008-02-01 Kenichi Handa <handa@m17n.org>
20387
20388 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
20389
20390 * callproc.c (Fcall_process): Be sure to give the current buffer
20391 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
20392
20393 * charset.c (struct charset_map_entries): New struct.
20394 (load_charset_map): Rename from parse_charset_map. New args
20395 entries and n_entries. Change caller.
20396 (load_charset_map_from_file): Rename from load_charset_map.
20397 Change caller. New arg control_flag. Call load_charset_map at
20398 the tail.
20399 (load_charset_map_from_vector): New function.
20400 (Fdefine_charset_internal): Setup charset.compact_codes_p.
20401 (encode_char): If the charset is compact, change a character index
20402 to a code point.
20403
20404 * coding.c (coding_alloc_by_making_gap): Check the case that the
20405 source and destination are the same correctly.
20406 (decode_coding_raw_text): Set coding->consumed_char and
20407 coding->consumed to 0.
20408 (produce_chars): If coding->chars_at_source is nonzero, update
20409 coding->consumed_char and coding->consumed before calling
20410 alloc_destination.
20411 (Fdefine_coding_system_alias): Register ALIAS in
20412 Vcoding_system_alist.
20413 (syms_of_coding): Define `no-conversion' coding system at the tail.
20414
20415 * fileio.c (Finsert_file_contents): Set coding_system instead of
20416 val. If the current buffer is multibyte, always call
20417 decode_coding_gap.
20418
20419 * xfaces.c (try_font_list): Give higher priority to fontset's
20420 family than face's family.
20421
204222008-02-01 Kenichi Handa <handa@m17n.org>
20423
20424 * callproc.c (Fcall_process): Be sure to give the current buffer
20425 to decode_coding_c_string.
20426
20427 * xfaces.c (try_font_list): Give a family specified in a fontset
20428 higher priority than a family specified in a face.
20429
204302008-02-01 Kenichi Handa <handa@m17n.org>
20431
20432 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
20433 Fix arguments to insert_from_buffer.
20434
20435 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
20436
204372008-02-01 Kenichi Handa <handa@m17n.org>
20438
20439 * coding.c (produce_chars): Set the variable `multibytep' correctly.
20440 (decode_coding_gap): Set coding->dst_multibyte correctly.
20441
204422008-02-01 Kenichi Handa <handa@m17n.org>
20443
20444 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
20445 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
20446 (encode_coding_utf_16): Substitute coding->default_char for
20447 non-Unicode characters.
20448 (decode_coding): Don't call record_insert here.
20449 (setup_coding_system): Initialize `surrogate' of
20450 coding->spec.utf_16 to 0.
20451 (EMIT_ONE_BYTE): Fix for multibyte case.
20452
20453 * insdel.c (insert_from_gap): Call record_insert.
20454
204552008-02-01 Kenichi Handa <handa@m17n.org>
20456
20457 * casefiddle.c (casify_region): Fix multibyte case.
20458
20459 * character.c (c_string_width): Add return type `int'.
20460 (char_string_with_unification): Delete arg ADVANCED.
20461
20462 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
20463 (CHAR_STRING): Adjust for the change of char_string_with_unification.
20464 (CHAR_STRING_ADVANCE): Make it do-while statement.
20465
20466 * chartab.c (sub_char_table_set_range): Optimize for the case
20467 DEPTH == 3. Add workaround code for a GCC optimization bug.
20468
20469 * charset.c (parse_charset_map): Remove an unused variable.
20470
20471 * coding.c: Delete unused variables.
20472
20473 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
20474 earlier. If inserted is zero and the coding system doesn't
20475 require flushing, don't call decode_coding_gap.
20476
20477 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
20478
204792008-02-01 Kenichi Handa <handa@m17n.org>
20480
20481 The following changes are for using Unicode as an internal
20482 character model, and use UTF-8 format for buffer/string
20483 representation.
20484
20485 * .gdbinit (xchartable): Adjust for the change of char table structure.
20486 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
20487
20488 * Makefile.in (obj): Add character.o and chartab.o.
20489 (lisp, shortlisp): Remove utf-8.elc.
20490 (*.o): For many files, change dependency on charset.h to
20491 character.h, and add dependency on character.h.
20492 (character.o, chartab.o): New targets.
20493
20494 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
20495 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
20496 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
20497 of "charset.h".
20498
20499 * dired.c, filelock.c: Include "character.h".
20500
20501 * alloc.c: Include "character.h" instead of "charset.h".
20502 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
20503 (syms_of_alloc): Remove defsubr for Smake_char_table.
20504
20505 * buffer.c: Include "character.h" instead of "charset.h", don't
20506 include "coding.h".
20507 (Fset_buffer_multibyte): Adjust for UTF-8.
20508
20509 * buffer.h: EXFUN Fbuffer_live_p.
20510
20511 * callproc.c: Include "character.h" instead of "charset.h".
20512 (Fcall_process): Big change for the new code-conversion APIs.
20513
20514 * casetab.c: Include "character.h" instead of "charset.h".
20515 (set_canon, set_identity, shuffle): Adjust for the new
20516 map_char_table spec.
20517 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
20518 accessing the char table structure.
20519
20520 * chartab.c: New file that implements char table.
20521
20522 * category.c: Include "character.h".
20523 (copy_category_entry): New function.
20524 (copy_category_table): Call map_char_table and copy_category_entry.
20525 (Fmake_category_table): Initialize all top-level slots.
20526 (char_category_set): New function.
20527 (modify_lower_category_set): Delete.
20528 (Fmodify_category_entry): Call char_table_ref_and_range.
20529
20530 * category.h (CATEGORY_SET): Just call char_category_set.
20531
20532 * ccl.c: Include "character.h".
20533 (Qccl, Qcclp): New variables.
20534 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
20535 it's less than 256.
20536 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
20537 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
20538 and DST type.
20539 (ccl_driver): Change types of argument, adjust code accordingly.
20540 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
20541 ccl_driver.
20542 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
20543
20544 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
20545 New members src_multibyte, dst_multibyte, consumed, and produced.
20546 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
20547 (CODING_SPEC_CCL_PROGRAM): New macro.
20548 (ccl_driver): Update prototype.
20549 (Qccl, Qcclp, Fccl_program_p): Extern them.
20550 (CHECK_CCL_PROGRAM): New macro.
20551
20552 * character.c, character.h, chartab.c: New files.
20553
20554 * charset.c: Mostly re-written. Move character and multibyte sequence
20555 handling codes to character.c.
20556
20557 * charset.h: Mostly re-written. Move character and multibyte sequence
20558 handling codes to character.h.
20559
20560 * coding.c, coding.h: Mostly re-written.
20561
20562 * composite.c: Include "character.h" instead of "charset.h".
20563 (CHAR_WIDTH): Move to character.h.
20564 (HASH_KEY, HASH_VALUE): Delete.
20565
20566 * composite.h (enum composition_method): Change order of enumeration
20567 symbols.
20568
20569 * data.c: Include "character.h" instead of "charset.h".
20570 (Faref): Call CHAR_TABLE_REF for a char table.
20571 (Faset): Call CHAR_TABLE_SET for a char table.
20572
20573 * dispextern.h (free_realized_face, check_face_attribytes)
20574 (generate_ascii_font): Extern them.
20575 (free_realized_multibyte_face): Delete extern.
20576
20577 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
20578 table structure.
20579
20580 * editfns.c: Include "character.h" instead of "charset.h".
20581 (Fchar_to_string): Always call CHAR_STRING.
20582
20583 * emacs.c (main): Call init_charset_once, init_charset,
20584 syms_of_chartab, and syms_of_character.
20585
20586 * fileio.c: Include "character.h" instead of "charset.h".
20587 (Finsert_file_contents): Big change for the new code-conversion API.
20588 (choose_write_coding_system, Fwrite_region): Likewise.
20589 (build_annotations_2): Delete.
20590 (e_write): Big change for the new code-conversion API.
20591
20592 * fns.c: Include "character.h" instead of "charset.h".
20593 (copy_sub_char_table): Move to chartab.c.
20594 (Fcopy_sequence): Call copy_char_table for a char table.
20595 (concat): Delete codes calling count_multibyte.
20596 (string_char_to_byte, string_byte_to_char): Adjust for the new
20597 multibyte form.
20598 (internal_equal): Adjust for the change of char table structure.
20599 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
20600 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
20601 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
20602 (char_table_translate, optimize_sub_char_table)
20603 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
20604 chartab.c.
20605 (char_table_ref_and_index): Delete.
20606 (HASH_KEY, HASH_VALUE): Move to lisp.h.
20607 (Fmd5): Call preferred_coding_system instead of accessing
20608 Vcoding_category_list. Adjust for the new code-conversion API.
20609 (syms_of_fns): Move defsubr for char table related functions to
20610 chartab.c.
20611
20612 * fontset.c: Mostly re-written.
20613
20614 * fontset.h (struct font_info): Change type of the member encoding_type.
20615 (enum FONT_SPEC_INDEX): New enum.
20616 (fontset_font_pattern, fs_load_font): Update prototype.
20617 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
20618
20619 * indent.c: Include "character.h" instead of "charset.h".
20620 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
20621
20622 * insdel.c: Include "character.h" instead of "charset.h".
20623 (copy_text): Don't refer to Vnonascii_translation_table.
20624 (insert_from_gap): New function.
20625
20626 * keyboard.c: Include "character.h" instead of "charset.h".
20627 (command_loop_1): Never call direct_output_forward_char before
20628 a non-ASCII character.
20629 (read_char): If Vkeyboard_translate_table is a char table, always
20630 translate a character.
20631
20632 * keymap.c: Include "character.h".
20633 (store_in_keymap): Handle the case that IDX is a cons.
20634 (Fdefine_key): Handle the case that KEY is a cons and the car part
20635 is also a cons (range).
20636 (push_key_description): Adjust for the new character code.
20637 (describe_vector): Call describe_char_table for a char table.
20638 (describe_char_table): New function.
20639
20640 * keymap.h (describe_char_table): Extern it.
20641
20642 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
20643 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
20644 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
20645 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
20646 Delete.
20647 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
20648 structure.
20649 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
20650 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
20651 (CHARTAB_SIZE_BITS_3): New macros.
20652 (chartab_size): Extern it.
20653 (struct Lisp_Char_Table): Re-design.
20654 (struct Lisp_Sub_Char_Table): New structure.
20655 (HASH_KEY, HASH_VALUE): Move from fns.c.
20656 (CHARACTERBITS): Define as 22.
20657 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
20658 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
20659 (GC_SUB_CHAR_TABLE_P): New macro.
20660 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
20661 (code_convert_string_norecord): Deleted extern.
20662 (init_character_once, syms_of_character, init_charset)
20663 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
20664
20665 * lread.c: Include "character.h".
20666 (read_multibyte): New arg NBYTES.
20667 (read_escape): Change the meaning of returned *BYTEREP.
20668 (to_multibyte): Delete.
20669 (read1): Adjust the handling of char table and string.
20670
20671 * print.c: Include "character.h" instead of "charset.h".
20672 (print_string): Convert 8-bit raw bytes to octal form by
20673 string_escape_byte8.
20674 (print_object): Adjust for the new multibyte form. Print 8-bit
20675 raw bytes always in octal form. Handle sub char table correctly.
20676
20677 * process.c: Include "character.h" instead of "charset.h".
20678 (read_process_output, send_process): Adjust for the new
20679 code-conversion API.
20680
20681 * puresize.h (BASE_PURESIZE): Increase.
20682
20683 * regex.c: Include "character.h" instead of "charset.h".
20684 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
20685 (regex_compile): Accept a range whose starting and ending
20686 character have different leading bytes.
20687 (analyse_first): Adjust for the above change.
20688
20689 * search.c: Include "character.h" instead of "charset.h".
20690 (search_buffer, boyer_moore): Adjust for the new multibyte form.
20691 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
20692
20693 * syntax.c: Include "character.h" instead of "charset.h".
20694 (syntax_parent_lookup): Delete.
20695 (Fmodify_syntax_entry): Accept a cons as CHAR.
20696 (skip_chars): Adjust for the new multibyte form.
20697 (init_syntax_once): Call char_table_set_range instead of directly
20698 accessing the structure of a char table.
20699
20700 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
20701 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
20702 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
20703 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
20704
20705 * term.c: Include "buffer.h" and "character.h".
20706 (encode_terminal_code, write_glyphs): Adjust for the new
20707 code-conversion API.
20708 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
20709
20710 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
20711
20712 * xdisp.c: Include "character.h".
20713 (get_next_display_element): Adjust for the new multibyte form.
20714 (disp_char_vector): Adjust for the new char table structure.
20715 (decode_mode_spec_coding): Adjust for the new structure of
20716 coding system.
20717 (decode_mode_spec): Adjust for the new code-conversion API.
20718
20719 * xfaces.c: Include "character.h" instead of "charset.h".
20720 (load_face_font): Adjust for the change of choose_face_font and
20721 FS_LOAD_FONT.
20722 (generate_ascii_font): New function.
20723 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
20724 (set_font_frame_param): Adjust for the change of choose_face_font.
20725 (free_realized_face): Make it public.
20726 (free_realized_faces_for_fontset): Rename from
20727 free_realized_multibyte_face. Free also faces realized for ASCII.
20728 (choose_face_font): Change arguments. Adjust for the change of
20729 fontset_font_pattern and FS_LOAD_FONT.
20730
20731 * xfns.c: Include "character.h".
20732 (x_encode_text): Adjust for the new code-conversion API.
20733
20734 * xselect.c: Don't include "charset.h".
20735 (selection_data_to_lisp_data): Adjust for the new code conversion API.
20736
20737 * xterm.c: Include "character.h".
20738 (x_encode_char): New argument CHARSET. Change caller.
20739 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
20740 Call ENCODE_CHAR instead of SPLIT_CHAR.
20741 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
20742 CHAR_WIDTH instead of CHARSET_WIDTH.
20743 (XTread_socket): Adjust for the new code-conversion API.
20744 (x_new_font): Adjust for the change of FS_LOAD_FONT.
20745 (x_load_font): Adjust for the change of struct font.
20746
207472008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
20748
20749 * xfaces.c (face_at_buffer_position): Remove unused vars.
20750
207512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20752
20753 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
20754 Fix overflow checking.
20755
207562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20757
20758 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
20759 Cancel previous change.
20760
207612008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
20762
20763 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
20764 ccl->eight_bit_control. Fix check for buffer overflow.
20765 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
20766 (ccl_driver): Initialize extra_bytes to 0.
20767
207682008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
20769
20770 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
20771 return it ORed with ctrl_modifier.
20772
207732008-01-29 Miles Bader <miles@gnu.org>
20774
20775 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
20776
207772008-01-28 Jason Rumney <jasonr@gnu.org>
20778
20779 * w32.c (stat): Don't double check for networked drive.
20780
207812008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
20782
20783 * window.c (run_window_configuration_change_hook): New function.
20784 Code extracted from set_window_buffer. Set the selected frame.
20785 (set_window_buffer): Use it.
20786 * window.h (run_window_configuration_change_hook): Declare.
20787 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
20788
20789 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
20790
207912008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
20792
20793 * Makefile.in: Remove references to unused macros.
20794
207952008-01-26 Eli Zaretskii <eliz@gnu.org>
20796
20797 * w32.c (g_b_init_get_sid_sub_authority)
20798 (g_b_init_get_sid_sub_authority_count): New static variables.
20799 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
20800 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
20801 (init_user_info): Use them to retrieve uid and gid.
20802 Use 500/513, the Windows defaults, as Administrator's uid/gid.
20803 (fstat): Use pw_uid and pw_gid from the_passwd structure for
20804 st_uid and st_gid of the file.
20805
208062008-01-26 Jason Rumney <jasonr@gnu.org>
20807
20808 * w32.c (logon_network_drive): New function.
20809 (stat): Use it.
20810
208112008-01-26 Chong Yidong <cyd@stupidchicken.com>
20812
20813 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
20814 invisible text covered with an ellipsis.
20815
208162008-01-25 Richard Stallman <rms@gnu.org>
20817
20818 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
20819 jump back to beginning. Move some other initializations after that.
20820 (Qwindow_text_change_functions, Vwindow_text_change_functions):
20821 New variables.
20822 (syms_of_xdisp): Init them.
20823
20824 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
20825
20826 * buffer.c (reset_buffer_local_variables):
20827 Implement `permanent-local-hook'.
20828 (Qpermanent_local_hook): New variable.
20829 (syms_of_buffer): Init and staticpro it.
20830
208312008-01-25 Michael Albinus <michael.albinus@gmx.de>
20832
20833 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
20834
208352008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
20836
20837 * fns.c (Fclrhash): Return TABLE.
20838
208392008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20840
20841 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
20842 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
20843 is set even without positional changes.
20844 (x_scroll_bar_clear): Set bar->redraw_needed_p.
20845
20846 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
20847
208482008-01-23 Jason Rumney <jasonr@gnu.org>
20849
20850 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
20851
20852 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
20853 the unicode range available in MULE by locale-coding-system.
20854 Improve dbcs lead byte detection. Set event timestamp and modifiers
20855 earlier.
20856
208572008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20858
20859 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
20860 [MAC_OSX] (init_mac_osx_environment): Initialize it.
20861 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
20862 when used on child processes.
20863
208642008-01-21 Michael Albinus <michael.albinus@gmx.de>
20865
20866 * dbusbind.c (Fdbus_method_return_internal): Rename from
20867 Fdbus_method_return.
20868 (Fdbus_unregister_object): Move to dbus.el.
20869 (Fdbus_call_method, Fdbus_method_return_internal)
20870 (Fdbus_send_signal): Improve debug messages.
20871
208722008-01-20 Martin Rudalics <rudalics@gmx.at>
20873
20874 * undo.c (undo_inhibit_record_point): New variable.
20875 (syms_of_undo): Initialize it.
20876 (record_point): Don't record point when undo_inhibit_record_point
20877 is set.
20878
208792008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
20880
20881 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
20882
20883 * xdisp.c (Qauto_hscroll_mode): New var.
20884 (syms_of_xdisp): Initialize it.
20885 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
20886 window's buffer.
20887 (hscroll_windows): Don't check automatic_hscrolling_p here.
20888
20889 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
20890 vscroll if we're setting window-buffer to the value it already has.
20891
208922008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
20893
20894 * m/intel386.h: Remove references to XENIX.
20895
208962008-01-17 Andreas Schwab <schwab@suse.de>
20897
20898 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
20899 instead of HAVE_X86_64_LIB64_DIR.
20900 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
20901
209022008-01-17 Glenn Morris <rgm@gnu.org>
20903
20904 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
20905 to HAVE_X86_64_LIB64_DIR.
20906
209072008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
20908
20909 * s/irix3-3.h:
20910 * s/irix4-0.h:
20911 * s/386-ix.h:
20912 * s/domain.h:
20913 * s/hpux9-x11r4.h:
20914 * s/hpux9shxr4.h: Remove files for systems no longer supported.
20915
20916 * sysdep.c: Remove code containing references to symbols defined
20917 by unsupported systems.
20918
209192008-01-16 Glenn Morris <rgm@gnu.org>
20920
20921 * coding.c (select-safe-coding-system-function): Doc fix.
20922
209232008-01-15 Glenn Morris <rgm@gnu.org>
20924
20925 * config.in: Revert 2008-01-13 change: this is a generated file.
20926
209272008-01-13 Tom Tromey <tromey@redhat.com>
20928
20929 * lisp.h: Fix typo.
20930
209312008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
20932
20933 * m/sequent-ptx.h:
20934 * m/sequent.h:
20935 * s/ptx.h:
20936 * s/ptx4-2.h:
20937 * s/ptx4.h: Remove files for systems no longer supported.
20938
20939 * callproc.c (Fcall_process): Fix previous change.
20940
209412008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
20942
20943 * unexsunos4.c: Remove file, system not supported anymore.
20944
20945 * m/mips.h:
20946 * m/intel386.h:
20947 * callproc.c:
20948 * config.in:
20949 * ecrt0.c:
20950 * emacs.c:
20951 * fileio.c:
20952 * frame.c:
20953 * getpagesize.h:
20954 * keyboard.c:
20955 * lread.c:
20956 * process.c:
20957 * puresize.h:
20958 * sysdep.c:
20959 * systty.h:
20960 * syswait.h:
20961 * unexec.c:
20962 * xdisp.c:
20963 * alloc.c: Remove code containing references to symbols defined by
20964 unsupported systems.
20965
209662008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
20967
20968 * coding.c (detect_coding_mask): Fix previous change.
20969
209702008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
20971
20972 * coding.c (detect_coding_iso2022): New arg
20973 latin_extra_code_state. Allow Latin extra codes only
20974 when *latin_extra_code_state is nonzero.
20975 (detect_coding_mask): If there is a NULL byte, detect the encoding
20976 as UTF-16 or binary. If Latin extra codes exist, detect the
20977 encoding as ISO-2022 only when there's no other proper encoding is
20978 found.
20979
209802008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20981
20982 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
20983 #ifdef MAC_OS.
20984
209852008-01-08 Richard Stallman <rms@gnu.org>
20986
20987 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
20988
209892008-01-06 Nick Roberts <nickrob@snap.net.nz>
20990
20991 * keyboard.c (parse_menu_item): Don't enclose key bindings on
20992 menu bar in parentheses.
20993
209942008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
20995
20996 * m/7300.h:
20997 * m/acorn.h:
20998 * m/alliant-2800.h:
20999 * m/alliant.h:
21000 * m/alliant1.h:
21001 * m/alliant4.h:
21002 * m/altos.h:
21003 * m/amdahl.h:
21004 * m/apollo.h:
21005 * m/att3b.h:
21006 * m/aviion-intel.h:
21007 * m/aviion.h:
21008 * m/celerity.h:
21009 * m/clipper.h:
21010 * m/cnvrgnt.h:
21011 * m/convex.h:
21012 * m/cydra5.h:
21013 * m/delta88k.h:
21014 * m/dpx2.h:
21015 * m/dual.h:
21016 * m/elxsi.h:
21017 * m/f301.h:
21018 * m/gould-np1.h:
21019 * m/gould.h:
21020 * m/i860.h:
21021 * m/ibmps2-aix.h:
21022 * m/ibmrt-aix.h:
21023 * m/ibmrt.h:
21024 * m/irist.h:
21025 * m/is386.h:
21026 * m/isi-ov.h:
21027 * m/mega68.h:
21028 * m/mg1.h:
21029 * m/news-r6.h:
21030 * m/news-risc.h:
21031 * m/news.h:
21032 * m/nh3000.h:
21033 * m/nh4000.h:
21034 * m/ns16000.h:
21035 * m/ns32000.h:
21036 * m/nu.h:
21037 * m/orion.h:
21038 * m/orion105.h:
21039 * m/paragon.h:
21040 * m/pfa50.h:
21041 * m/plexus.h:
21042 * m/pyramid.h:
21043 * m/pyrmips.h:
21044 * m/sh3el.h:
21045 * m/sps7.h:
21046 * m/sr2k.h:
21047 * m/stride.h:
21048 * m/sun1.h:
21049 * m/sun2.h:
21050 * m/sun3-68881.h:
21051 * m/sun3-fpa.h:
21052 * m/sun3-soft.h:
21053 * m/sun3.h:
21054 * m/sun386.h:
21055 * m/symmetry.h:
21056 * m/tad68k.h:
21057 * m/tahoe.h:
21058 * m/targon31.h:
21059 * m/tek4300.h:
21060 * m/tekxd88.h:
21061 * m/tower32.h:
21062 * m/tower32v3.h:
21063 * m/ustation.h:
21064 * m/wicat.h:
21065 * m/xps100.h:
21066 * s/cxux.h:
21067 * s/cxux7.h:
21068 * s/dgux.h:
21069 * s/dgux4.h:
21070 * s/dgux5-4-3.h:
21071 * s/dgux5-4r2.h:
21072 * s/esix.h:
21073 * s/esix5r4.h:
21074 * s/hiuxmpp.h:
21075 * s/hiuxwe2.h:
21076 * s/iris3-5.h:
21077 * s/iris3-6.h:
21078 * s/isc2-2.h:
21079 * s/isc3-0.h:
21080 * s/isc4-0.h:
21081 * s/isc4-1.h:
21082 * s/newsos5.h:
21083 * s/newsos6.h:
21084 * s/osf1.h:
21085 * s/osf5-0.h:
21086 * s/riscix1-1.h:
21087 * s/riscix12.h:
21088 * s/sco4.h:
21089 * s/sco5.h:
21090 * s/sunos4-0.h:
21091 * s/sunos4-1.h:
21092 * s/sunos413.h:
21093 * s/sunos4shr.h:
21094 * s/umax.h:
21095 * s/unipl5-2.h:
21096 * s/xenix.h:
21097 * cxux-crt0.s:
21098 * unexapollo.c:
21099 * unexconvex.c:
21100 * unexenix.c:
21101 * unexsni.c: Remove files for systems no longer supported.
21102
21103 * m/intel386.h: Remove references to unsupported systems.
21104
21105 * w32.c (get_emacs_configuration): Remove reference to i860.
21106
21107 * sysdep.c: Remove dead code.
21108
211092008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
21110
21111 * s/rtu.h:
21112 * m/masscomp.h: Remove files. Platform is obsolete.
21113
211142008-01-04 Michael Albinus <michael.albinus@gmx.de>
21115
21116 * dbusbind.c (Fdbus_method_return): New function.
21117 (xd_read_message): Add the serial number to the event.
21118 (Fdbus_register_method): Activate the function.
21119
211202008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
21121
21122 * keyboard.c (read_key_sequence): Fix typo.
21123
211242008-01-03 Michael Albinus <michael.albinus@gmx.de>
21125
21126 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
21127 (xd_signature, xd_append_arg): Handle element type detection for
21128 empty arrays.
21129 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
21130 SDATA () calls; this must be solved more general.
21131 (Fdbus_register_signal): Use SBYTES instead of strlen.
21132
211332008-01-03 Magnus Henoch <magnus@zemdatav>
21134
21135 * dbusbind.c (xd_append_arg): Use unsigned char instead of
21136 unsigned int for byte values (necessary for big-endian platform).
21137 (Fdbus_call_method): Handle the case of no returned arguments.
21138
211392007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
21140
21141 * dbusbind.c (xd_read_message): Use non-static input_event struct.
21142
211432007-12-31 Magnus Henoch <mange@freemail.hu>
21144
21145 * dbusbind.c (xd_signature): Signature of variant is just "v".
21146
211472007-12-30 Michael Albinus <michael.albinus@gmx.de>
21148
21149 * dbusbind.c: Fix several errors and compiler warnings.
21150 Reported by Tom Tromey <tromey@redhat.com>.
21151 (XD_ERROR, XD_DEBUG_MESSAGE)
21152 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
21153 (xd_append_arg): Part for basic D-Bus types rewritten.
21154 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
21155 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
21156 appropriate.
21157 (xd_read_message): Return Qnil. Don't signal an error; it is not
21158 useful during event reading.
21159 (Fdbus_register_signal): Signal an error if the check for
21160 FUNCTIONP fails.
21161 (Fdbus_register_method): New function. The implementation is not
21162 complete, the call of the function signals an error therefore.
21163 (Fdbus_unregister_object): New function, renamed from
21164 Fdbus_unregister_signal. The initial check signals an error, if
21165 the object is not well formed.
21166
211672007-12-30 Richard Stallman <rms@gnu.org>
21168
21169 * textprop.c (get_char_property_and_overlay):
21170 Signal error if POSITION is out of range in a buffer.
21171
211722007-12-29 Martin Rudalics <rudalics@gmx.at>
21173
21174 * w32fns.c (Fx_create_frame): Make copy of frame parameters
21175 because the original parameters are in pure storage now.
21176
211772007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21178
21179 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
21180
211812007-12-22 Eli Zaretskii <eliz@gnu.org>
21182
21183 * callint.c (syms_of_callint) <command-history>: Add reference to
21184 history-length in the doc string.
21185
211862007-12-17 Jason Rumney <jasonr@gnu.org>
21187
21188 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
21189 before passing as wParam.
21190
211912007-12-22 Michael Albinus <michael.albinus@gmx.de>
21192
21193 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
21194 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
21195 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
21196 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
21197 as number.
21198 (Fdbus_call_method): Fix docstring.
21199
212002007-12-21 Michael Albinus <michael.albinus@gmx.de>
21201
21202 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
21203 New macros.
21204 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
21205 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
21206 Simplify.
21207 (xd_signature): New function.
21208 (xd_append_arg): Compute also signatures. Major rewrite.
21209 (xd_retrieve_arg): Make debug messages friendly.
21210 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
21211 Check for signatures of arguments.
21212
212132007-12-19 Michael Albinus <michael.albinus@gmx.de>
21214
21215 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
21216 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
21217 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
21218 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
21219 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
21220 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
21221 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
21222 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
21223 (xd_retrieve_value): Remove. Functionality included in ...
21224 (xd_append_arg): New function.
21225 (Fdbus_call_method, Fdbus_send_signal): Apply it.
21226
212272007-12-16 Michael Albinus <michael.albinus@gmx.de>
21228
21229 * dbusbind.c (top): Include <stdio.h>.
21230 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
21231 dbus_message_new_method_call and dbus_message_new_signal.
21232 (Fdbus_register_signal): Rename unique_name to uname.
21233 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
21234 non-existing unique name. Fix typos in matching rule. Return an
21235 object which is useful in Fdbus_unregister_signal.
21236 (Fdbus_unregister_signal): Reimplementation, in order to remove
21237 only the corresponding entry.
21238 (Vdbus_registered_functions_table): Change the order of entries.
21239 Apply these changes in xd_read_message and Fdbus_register_signal.
21240
212412007-12-16 Andreas Schwab <schwab@suse.de>
21242
21243 * fileio.c (Finsert_file_contents): Fix overflow check to not
21244 depend on undefined integer overflow.
21245
212462007-12-14 Jason Rumney <jasonr@gnu.org>
21247
21248 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
21249 for characters above 127.
21250
212512007-12-13 Jason Rumney <jasonr@gnu.org>
21252
21253 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
21254 before dereferencing array.
21255 (lookup_vk_code): Remove zero comparison.
21256
212572007-12-14 Michael Albinus <michael.albinus@gmx.de>
21258
21259 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
21260 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
21261 Use `unsigned int' instead of `uint'.
21262 (xd_read_message, Fdbus_register_signal): Split expressions into
21263 multiple lines before operators "&&" and "||", according to the
21264 GNU Coding Standards.
21265
212662007-12-14 Eli Zaretskii <eliz@gnu.org>
21267
21268 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
21269
212702007-12-12 Juri Linkov <juri@jurta.org>
21271
21272 * buffer.c (Frename_buffer): In interactive spec replace
21273 `read-buffer' with `read-string' that uses `buffer-name-history'
21274 as history, and the current buffer's name as default.
21275
212762007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
21277
21278 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
21279 manipulating the backtrace manually.
21280 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
21281 (struct backtrace, backtrace_list): Remove.
21282 (command_loop_1): Remove dead var `no_direct'.
21283
21284 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
21285 preserve non-built-in buffer-local variables.
21286 (Fkill_all_local_variables): Don't re-create&re-set permanent
21287 buffer-local variables.
21288
212892007-12-09 Juri Linkov <juri@jurta.org>
21290
21291 * buffer.c (Frename_buffer): Change interactive spec from "s" to
21292 Lisp code that uses `read-buffer' with current buffer as default.
21293
212942007-12-08 Michael Albinus <michael.albinus@gmx.de>
21295
21296 * dbusbind.c (xd_read_message): Generate an event for every
21297 registered handler. There might be several handlers registered
21298 for the same signal.
21299 (Fdbus_register_signal): Don't overwrite a registration for the
21300 same signal. Add a new registration if handlers are different.
21301 (Vdbus_registered_functions_table): Rework doc string.
21302
213032007-12-07 Michael Albinus <michael.albinus@gmx.de>
21304
21305 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
21306 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
21307 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
21308 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
21309 Unify argument lists.
21310 (xd_read_message, Fdbus_register_signal): Reorder and extend event
21311 arguments and hash table keys. Use unique name for service.
21312 (Fdbus_unregister_signal): Remove checks.
21313 (Vdbus_registered_functions_table): Fix doc string.
21314
213152007-12-05 Magnus Henoch <mange@freemail.hu>
21316
21317 * process.c (make_process): Initialize pty_flag to 0.
21318
213192007-12-05 Jason Rumney <jasonr@gnu.org>
21320
21321 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
21322 specified XBMs.
21323
213242007-12-05 Richard Stallman <rms@gnu.org>
21325
21326 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
21327
213282007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21329
21330 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
21331 New variable.
21332 (mac_try_close_socket) [MAC_OSX]: New function.
21333 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
21334 Update cfsockets_for_select. Replace invalid CFRunLoop source.
21335
21336 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
21337 Use mac_try_close_socket.
21338
213392007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21340
21341 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
21342 reloc_base.
21343 (copy_dysymtab): Compute relocation base here.
21344 (rebase_reloc_address) [__ppc64__]: New function.
21345 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
21346 changed.
21347
213482007-12-05 Jason Rumney <jasonr@gnu.org>
21349
21350 * w32proc.c (sys_spawnve): Quote args with wildcards.
21351
213522007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21353
21354 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
21355 __objc_* sections.
21356 (unrelocate) [_LP64]: Set relocation base to address of data segment.
21357
213582007-12-05 Michael Albinus <michael.albinus@gmx.de>
21359
21360 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
21361 Move check for Vdbus_registered_functions_table to
21362 xd_read_queued_messages.
21363 (xd_read_queued_messages): Protect xd_read_message calls by
21364 internal_condition_case_1.
21365
213662007-12-04 Michael Albinus <michael.albinus@gmx.de>
21367
21368 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
21369 Qdbus_system_bus and Qdbus_session_bus, respectively.
21370 (Vdbus_intern_symbols): Remove.
21371 (Vdbus_registered_functions_table): New hash table.
21372 (XD_SYMBOL_INTERN_SYMBOL): Remove.
21373 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
21374 Rewrite in order to manage registered functions by hash table
21375 Vdbus_registered_functions_table.
21376
213772007-12-03 Jan Djärv <jan.h.d@swipnet.se>
21378
21379 * xterm.c: Update URL to Window Manager Specification in comment.
21380
213812007-12-02 Michael Albinus <michael.albinus@gmx.de>
21382
21383 * config.in (HAVE_DBUS): Add.
21384
21385 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
21386 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
21387 (obj): Add $(DBUS_OBJ).
21388 (LIBES): Add $(DBUS_LIBS).
21389 (dbusbind.o): New target.
21390
21391 * dbusbind.c: New file.
21392
21393 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
21394
21395 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
21396 (Qdbus_event): New Lisp symbol.
21397 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
21398 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 21399 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
21400
21401 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
21402
214032007-12-01 Richard Stallman <rms@gnu.org>
21404
21405 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
21406
214072007-11-30 Jason Rumney <jasonr@gnu.org>
21408
21409 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
21410 (w32con_reset_terminal_modes): Clear screen buffer.
21411 (w32_face_attributes): Don't use color indexes that are out of range.
21412 Only reverse the default colors.
21413
21414 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
21415 WINDOWSNT.
21416
21417 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
21418
214192007-11-29 Jason Rumney <jasonr@gnu.org>
21420
21421 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
21422 (w32_face_attributes): Use Vtty_defined_color_alist to determine
21423 if the terminal colors are initialized.
21424 (unspecified_fg, unspecified_bg): Remove unused declarations.
21425
214262007-11-29 Andreas Schwab <schwab@suse.de>
21427
21428 * keyboard.c (apply_modifiers): Fix typo.
21429
214302007-11-29 Richard Stallman <rms@gnu.org>
21431
21432 * keymap.c (Fcurrent_local_map): Doc fix.
21433
214342007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
21435
21436 * s/gnu-kfreebsd.h: New file.
21437
214382007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
21439
21440 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
21441 Don't cast redundantly.
21442
21443 * keyboard.c (KEY_TO_CHAR): New macro.
21444 (parse_modifiers, apply_modifiers): Accept integer arguments.
21445 (read_key_sequence): Use them to unify the "shift->unshift" mapping
21446 for chars and symbol keys.
21447 After doing such remapping, apply function-key-map again.
21448
214492007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
21450
21451 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
21452 compiled anymore.
21453
214542007-11-26 Andreas Schwab <schwab@suse.de>
21455
21456 * process.c (list_processes_1): Fix indentation level of the
21457 command column.
21458
214592007-11-23 Andreas Schwab <schwab@suse.de>
21460
21461 * editfns.c (Fformat): Handle %c specially since it requires the
21462 argument to be of type int.
21463
214642007-11-23 Markus Triska <markus.triska@gmx.at>
21465
21466 * emacs.c (main): Call init_editfns before init_process, since
21467 init_process sets Vprocess_connection_type depending on OS release.
21468
214692007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
21470
21471 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
21472 (find_symbol_value): Use do_symval_forwarding.
21473
21474 * data.c (set_internal): Set the value in the `cons-cell' (for
21475 Buffer_Local_values) not only for frame-local variables.
21476
214772007-11-22 Andreas Schwab <schwab@suse.de>
21478
21479 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
21480 values to sprintf.
21481 * keymap.c (Fsingle_key_description): Likewise.
21482 * print.c (print_object): Likewise.
21483
214842007-11-22 Jan Djärv <jan.h.d@swipnet.se>
21485
21486 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
21487 file for image is nil.
21488
214892007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
21490
21491 * term.c: Include stdarg.h.
21492 (fatal): Implement using varargs.
21493 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
21494
214952007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
21496
21497 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
21498 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
21499 Update call to buffer_slot_type_mismatch.
21500 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
21501 (buffer_slot_type_mismatch): Update.
21502 * buffer.c (buffer_local_types): Remove.
21503 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
21504 (defvar_per_buffer): Set the type in the buffer_objfwd.
21505
215062007-11-21 Jason Rumney <jasonr@gnu.org>
21507
21508 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
21509 CreateFileMapping returns NULL on failure.
21510
215112007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
21512
21513 * search.c (Fset_match_data): Remove the `evaporate' feature.
21514 (unwind_set_match_data): Don't use the `evaporate' feature.
21515
215162007-11-21 Jason Rumney <jasonr@gnu.org>
21517
21518 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
21519
21520 * w32console.c (w32con_write_glyphs): Remove unused variables.
21521
215222007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
21523
21524 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
21525
21526 * s/darwin.h (MULTI_KBOARD): Remove.
21527
21528 * macfns.c (x_create_tip_frame, Fx_create_frame)
21529 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
21530
215312007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
21532
21533 * buffer.c (Fbuffer_local_value): Remove redundant test.
21534 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
21535 than in `current-buffer' to match the comment.
21536 Do the swap using swap_in_global_binding.
21537
21538 * data.c (store_symval_forwarding, set_internal):
21539 * eval.c (specbind): Remove dead code.
21540
21541 * coding.c (detect_coding, Fupdate_coding_systems_internal):
21542 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
21543 Since we do not want to see internal Lisp_*fwd objects here.
21544
215452007-11-18 Jan Djärv <jan.h.d@swipnet.se>
21546
21547 * sysdep.c (init_system_name): Use getaddrinfo if available.
21548
21549 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
21550 (x_scroll_bar_note_movement): start, end, with, height in struct
21551 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
21552
215532007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
21554
21555 * puresize.h (BASE_PURESIZE): Increase to 1190000.
21556
215572007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
21558
21559 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
21560 This undoes Richard's change of 14-Oct-2002.
21561
21562 * alloc.c (allocate_other_vector):
21563 * lisp.h (allocate_other_vector): Remove.
21564
21565 * window.c (struct save_window_data): Move non-lisp data to the end
21566 and make it `int' rather than Lisp_Object.
21567 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
21568 Done wrap/unwrap integer values.
21569 (Fset_window_configuration, compare_window_configurations):
21570 Update use of fields to their new types.
21571
21572 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
21573 Turn integer fields into `int'. Merge x_window_low and x_window_high.
21574 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
21575 (SET_SCROLL_BAR_X_WINDOW): Remove.
21576 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
21577 Access the new x_window field directly.
21578 * xterm.c (x_scroll_bar_create): Use a pseudovector.
21579 Don't wrap/unwrap integers into Lisp_Objects.
21580 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
21581 (x_scroll_bar_report_motion):
21582 Don't wrap/unwrap integers into Lisp_Objects.
21583 (x_term_init): Use SDATA.
21584 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
21585 (x_scroll_bar_set_handle, x_scroll_bar_remove)
21586 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
21587 (x_scroll_bar_report_motion, x_scroll_bar_clear):
21588 * xfns.c (x_set_background_color):
21589 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
21590 Access the new x_window field directly.
21591
21592 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
21593 (allocate_pseudovector): Make non-static.
21594
21595 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
21596 (allocate_pseudovector): Declare.
21597 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
21598
215992007-11-15 Andreas Schwab <schwab@suse.de>
21600
21601 * editfns.c (Fformat): Correctly format EMACS_INT values.
21602 Also take precision into account when formatting an integer.
21603
21604 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
21605
216062007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
21607
21608 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
21609 (syms_of_keyboard): Defsubr it.
21610
21611 * data.c (swap_in_global_binding): Fix longstanding bug where
21612 store_symval_forwarding was not called with the right second argument,
21613 thus causing objfwd-ing from being dropped.
21614
216152007-11-14 Juanma Barranquero <lekktu@gmail.com>
21616
21617 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
21618 (Fx_display_pixel_height, Fx_display_planes)
21619 (Fx_display_color_cells, Fx_server_max_request_size)
21620 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
21621 (Fx_display_visual_class, Fx_display_save_under):
21622 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
21623 (Fx_display_pixel_height, Fx_display_planes)
21624 (Fx_display_color_cells, Fx_server_max_request_size)
21625 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
21626 (Fx_display_mm_height, Fx_display_mm_width)
21627 (Fx_display_backing_store, Fx_display_visual_class)
21628 (Fw32_select_font, Fx_display_save_under):
21629 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
21630 (Fx_display_pixel_height, Fx_display_planes)
21631 (Fx_display_color_cells, Fx_server_max_request_size)
21632 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
21633 (Fx_display_save_under): Fix typos in docstrings.
21634
216352007-11-14 Juanma Barranquero <lekktu@gmail.com>
21636
21637 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
21638 corresponding to deleted entries; they are an implementation detail.
21639 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
21640 Remove variables.
21641 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
21642 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
21643 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
21644 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
21645 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
21646 (Fw32_define_rgb_color, Fw32_load_color_file)
21647 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
21648 Fix typos in docstrings.
21649 (Fx_server_version): Reflow docstring.
21650 (Fw32_shell_execute): Doc fixes.
21651
216522007-11-13 Juanma Barranquero <lekktu@gmail.com>
21653
21654 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
21655 if w32_parse_hot_key returned nil.
21656
216572007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
21658
21659 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
21660
216612007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 21662
aac0c6e3
MR
21663 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
21664
21665 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
21666
21667 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
21668 Remove W32_SCROLL_BAR_CLICK_EVENT.
21669
21670 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
21671 Add MULTIMEDIA_KEY_EVENT.
21672
21673 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
21674 (lispy_multimedia_keys) [WINDOWSNT]: New array.
21675 (make_lispy_event) [WINDOWSNT]: Use it to translate
21676 MULTIMEDIA_KEY_EVENT.
21677
21678 * w32term.h (WM_APPCOMMAND): Define if not already.
21679 (GET_APPCOMMAND_LPARAM): Likewise.
21680
21681 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
21682 WM_APPCOMMAND.
21683
21684 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
21685 (syms_of_w32fns): Export and initialize it.
21686 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
21687
216882007-11-09 Chong Yidong <cyd@stupidchicken.com>
21689
21690 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
21691 twice.
21692
21693 * xdisp.c (handle_face_prop): Fix last change.
21694
216952007-11-09 Richard Stallman <rms@gnu.org>
21696
21697 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
21698 not just for after-strings and before-strings.
21699 Call face_for_overlay_string and pass the overlay to it.
21700 (handle_display_prop): Determine whether property came from an overlay.
21701 Pass OVERLAY arg to handle_single_display_spec.
21702 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
21703 (load_overlay_strings): Fill in it->string_overlays.
21704 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
21705
21706 * xfaces.c (face_for_overlay_string): Function renamed from
21707 face_at_buffer_position_no_overlays, and add arg OVERLAY.
21708
21709 * dispextern.h (struct it): New elt string_overlays.
21710 New elt from_overlay, also in stack.
21711 Rearrange a few elements.
21712 (face_for_overlay_string): Decl renamed from
21713 face_at_buffer_position_no_overlays, and add argument.
21714
217152007-11-09 Richard Stallman <rms@gnu.org>
21716
21717 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
21718 to get the base face for an overlay string.
21719
21720 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
21721
21722 * xfaces.c (face_at_buffer_position_no_overlays): New function.
21723
21724 * xdisp.c (handle_stop): Move some code out of loop.
21725
217262007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21727
21728 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
21729 Fix conversion from Lisp object to ATSUFontID.
21730
217312007-11-09 Jason Rumney <jasonr@gnu.org>
21732
21733 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
21734
217352007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21736
21737 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
21738 Don't assume regions are aligned to page boundary.
21739 (print_load_command_name): Add LC_UUID if defined.
21740
217412007-11-09 Richard Stallman <rms@gnu.org>
21742
21743 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
21744
217452007-11-07 Jason Rumney <jasonr@gnu.org>
21746
21747 * s/windows95.h: Remove.
21748
217492007-11-06 Jan Djärv <jan.h.d@swipnet.se>
21750
21751 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
21752 abort with a message on unhandled store_type values.
21753
217542007-11-01 Jan Djärv <jan.h.d@swipnet.se>
21755
21756 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
21757 Remove HAVE_X11R5 and HAVE_X11R4.
21758
217592007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
21760
21761 * Makefile.in: Remove references to sunfns.c and sunfns.o.
21762
217632007-11-01 Johan Bockgård <bojohan@gnu.org>
21764
21765 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
21766 Don't set s->stippled_p here, since it has already been set by
21767 x_set_glyph_string_gc from x_draw_glyph_string.
21768
217692007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
21770
21771 * sunfns.c: Remove file.
21772
21773 * m/sun386.h:
21774 * m/sun2.h:
21775 * m/sparc.h: Remove Sun windows code.
21776
217772007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
21778
21779 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
21780 (init_keyboard): Set current_kboard's window-system to nil.
21781 (tty_read_avail_input): Typo.
21782 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
21783
217842007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
21785
21786 * s/usg5-4.h:
21787 * s/usg5-3.h:
21788 * s/ptx.h:
21789 * m/is386.h:
21790 * m/ibmps2-aix.h:
21791 * Makefile.in: Remove all mentions of X10.
21792
21793 * dispnew.c (syms_of_display): Don't mention version 10.
21794
217952007-10-28 Juanma Barranquero <lekktu@gmail.com>
21796
21797 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
21798 ($(BLD)/abbrev.$(O)): Remove.
21799
218002007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
21801
21802 Rewrite abbrev.c in Elisp.
21803 * image.c (Qcount): Don't declare as extern.
21804 (syms_of_image): Initialize and staticpro `Qcount'.
21805 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
21806 * emacs.c (main): Don't call syms_of_abbrev.
21807 * Makefile.in (obj): Remove abbrev.o.
21808 (abbrev.o): Remove.
21809 * abbrev.c: Remove.
21810
218112007-10-26 Martin Rudalics <rudalics@gmx.at>
21812
21813 * window.c (window_min_size_2): Don't count header-line.
21814
218152007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
21816
21817 * frame.h (struct frame): Move all bit fields after the first bit
21818 field to take advantage of the available space. Group all the
21819 chars together to reduce wasted space due to padding.
21820
218212007-10-26 Juanma Barranquero <lekktu@gmail.com>
21822
21823 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
21824
21825 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
21826 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
21827 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
21828 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
21829 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
21830 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
21831 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
21832 (last_marked, mark_object_loop_halt): Make static.
21833
21834 * frame.c (syms_of_frame) <delete-frame-functions>:
21835 Fix typo in docstring.
21836
218372007-10-25 Juanma Barranquero <lekktu@gmail.com>
21838
21839 * w32.c (init_environment): Fix tiny memory leak.
21840 (w32_get_resource): Remove unused variable `ok'.
21841
218422007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
21843
21844 Make `window-system' into a keyboard-local variable (rather than
21845 frame-local as done originally by multi-tty).
21846
21847 * keyboard.h (struct kboard): Add Vwindow_system.
21848 * keyboard.c (init_kboard): Set a default for Vwindow_system.
21849 (mark_kboards): Mark Vwindow_system.
21850
21851 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
21852 (init_display): Don't set the obsolete `window-system' frame-param.
21853
21854 * xterm.c (x_term_init):
21855 * w32term.c (w32_create_terminal):
21856 * term.c (init_tty): Set Vwindow_system.
21857 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
21858 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
21859
21860 * xfns.c (Fx_create_frame, x_create_tip_frame):
21861 * w32fns.c (Fx_create_frame, x_create_tip_frame):
21862 * macfns.c (Fx_create_frame):
21863 Don't set the obsolete `window-system' frame-param.
21864
21865 * frame.h (Qwindow_system): Remove.
21866 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
21867 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
21868
218692007-10-24 Richard Stallman <rms@gnu.org>
21870
21871 * frame.c (x_figure_window_size): For fullscreen case,
21872 set USPosition | PPosition without clobbering rest of window_prompting.
21873
21874 * keyboard.c (Fcurrent_idle_time): Doc fix.
21875
21876 * print.c (Fwith_output_to_temp_buffer): Doc fix.
21877
218782007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
21879
21880 * process.c (unwind_request_sigio): Only define if __ultrix__.
21881
21882 * callproc.c (child_setup): Remove spurious *.
21883
21884 * lisp.h (Fget_text_property): Declare.
21885 (have_menus_p): Declare it here rather than in sys-dep header files.
21886 * macterm.h (have_menus_p):
21887 * msdos.h (have_menus_p):
21888 * xterm.h (have_menus_p): Remove.
21889
21890 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
21891 (Fmake_variable_frame_local): Just check the variable's const-ness
21892 rather than checking nil or t.
21893
218942007-10-22 Jason Rumney <jasonr@gnu.org>
21895
21896 * w32fns.c: Include math.h.
21897 (w32_abort): Declaration moved to nt/config.nt.
21898
21899 * s/ms-w32.h (HAVE_STDLIB_H): Define.
21900 (abort): Redefinition moved to nt/config.nt.
21901
21902 * m/windowsnt.h: Remove.
21903
219042007-10-22 Juanma Barranquero <lekktu@gmail.com>
21905
21906 * emacs.c (Fdump_emacs): Fix typo in message.
21907 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
21908 <installation-directory>: Reflow docstring.
21909
219102007-10-22 Juri Linkov <juri@jurta.org>
21911
21912 * minibuf.c: Allow minibuffer default to be a list of default values.
21913 With empty input use the first element of this list as returned default.
21914 (string_to_object)
21915 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
21916 (read_minibuf): If defalt is cons, set histstring to its car.
21917 (Fread_string): If default_value is cons, set val to its car.
21918 (Fread_buffer): If def is cons, use its car.
21919 (Fcompleting_read): If defalt is cons, set val to its car.
21920
219212007-10-21 Michael Albinus <michael.albinus@gmx.de>
21922
21923 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
21924
219252007-10-20 Juanma Barranquero <lekktu@gmail.com>
21926
21927 * doc.c (Fdocumentation): Check for advice in all cases.
21928
219292007-10-19 Chong Yidong <cyd@stupidchicken.com>
21930
21931 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
21932
219332007-10-19 Richard Stallman <rms@gnu.org>
21934
21935 * doc.c (Fdocumentation): Check for and handle an advised function.
21936
219372007-10-19 Juanma Barranquero <lekktu@gmail.com>
21938
21939 * process.c (Fset_process_filter): Doc fix.
21940
219412007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
21942
21943 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
21944 which caused key-translation-map to applied repeatedly (thus breaking
21945 double-mode).
21946
219472007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21948
21949 * xselect.c (x_own_selection, x_handle_selection_clear)
21950 (x_clear_frame_selections):
21951 * w32menu.c (list_of_panes, list_of_items):
21952 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
21953 * textprop.c (validate_plist, interval_has_all_properties)
21954 (interval_has_some_properties, interval_has_some_properties_list)
21955 (add_properties, text_property_list):
21956 * process.c (Fget_buffer_process, list_processes_1, status_notify):
21957 * minibuf.c (Fassoc_string):
21958 * macselect.c (x_own_selection, x_clear_frame_selections)
21959 (Fx_disown_selection_internal):
21960 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
21961 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
21962
219632007-10-17 Chong Yidong <cyd@stupidchicken.com>
21964
21965 * process.c: Link to libs for calling res_init() if available.
21966 (Fmake_network_process): Call res_init() before getaddrinfo or
21967 gethostbyname, if possible.
21968
219692007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21970
21971 * lread.c (read1): Set pvectype for char_tables.
21972
21973 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
21974 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
21975 Add type checks.
21976 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
21977
21978 * alloc.c (free_misc): Use XMISCTYPE.
21979 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
21980
219812007-10-17 Glenn Morris <rgm@gnu.org>
21982
21983 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
21984 (syms_of_minibuf): Add Qcompletion_ignore_case.
21985 * dired.c (Qcompletion_ignore_case): Change to external.
21986 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
21987 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
21988 (Fread_file_name): Use it rather than intern'ing.
21989
21990 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
21991 (Fread_coding_system): Ignore case of user input.
21992
219932007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21994
21995 * xdisp.c (handle_display_prop): Ignore display specs after
21996 replacing one when string text is being replaced.
21997 (handle_single_display_spec): Pretend as if characters with display
21998 property haven't been consumed only when buffer text is being replaced.
21999
220002007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
22001
22002 * xfns.c (Fx_create_frame, Fx_display_list):
22003 * window.c (window_fixed_size_p, enlarge_window)
22004 (shrink_window_lowest_first):
22005 * macterm.c (init_font_name_table):
22006 * macfns.c (Fx_create_frame, Fx_display_list):
22007 * lread.c (close_load_descs):
22008 * keyboard.c (read_char_x_menu_prompt):
22009 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
22010 * coding.c (code_convert_region_unwind): Test the type of an object
22011 rather than just !NILP before extracting data from it.
22012
22013 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
22014
22015 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
22016 (XMISCANY): New macro.
22017 (XMISCTYPE): Use it.
22018 (struct Lisp_Misc_Any): New type.
22019 (union Lisp_Misc): Use it.
22020 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
22021 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
22022 (find_symbol_value, set_internal, default_value, Fset_default)
22023 (Fmake_variable_buffer_local, Fmake_local_variable)
22024 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
22025 (Flocal_variable_if_set_p, Fvariable_binding_locus):
22026 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
22027 * alloc.c (allocate_buffer): Set the size and tag.
22028 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
22029 Use XMISCANY.
22030 (die): Follow the GNU convention for error messages.
22031 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
22032 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
22033 tag any more.
22034 (set_buffer_internal_1):
22035 * frame.c (store_frame_param):
22036 * eval.c (specbind):
22037 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
22038
22039 * doc.c (Fsnarf_documentation): Simplify.
22040
220412007-10-14 Juanma Barranquero <lekktu@gmail.com>
22042
22043 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
22044 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
22045
220462007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
22047
22048 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
22049
220502007-10-14 Juanma Barranquero <lekktu@gmail.com>
22051
22052 * eval.c (do_autoload): Don't save autoloads.
22053
22054 * data.c (Ffset): Save autoload of the function being set.
22055
220562007-10-07 John Paul Wallington <jpw@pobox.com>
22057
22058 * xfns.c (x_create_tip_frame): Set the `display-type' frame
22059 parameter before setting up faces.
22060
220612007-10-13 Eli Zaretskii <eliz@gnu.org>
22062
22063 * ccl.c (Fregister_code_conversion_map):
22064 * keyboard.c (append_tool_bar_item): Reformat last change.
22065
22066 * lisp.h (eabs): Rename from `abs'. All callers changed.
22067
220682007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
22069
22070 * buffer.c (add_overlay_mod_hooklist):
22071 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
22072 * fontset.c (make_fontset):
22073 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
22074 (append_tool_bar_item):
22075 * macmenu.c (grow_menu_items):
22076 * w32menu.c (grow_menu_items):
22077 * xmenu.c (grow_menu_items): Use larger_vector.
22078
220792007-10-13 Eli Zaretskii <eliz@gnu.org>
22080
22081 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
22082 selected frame'' on MSDOS).
22083
220842007-10-12 Martin Rudalics <rudalics@gmx.at>
22085
22086 * frame.c (Qexplicit_name): New variable.
22087 (x_report_frame_params): Report it in parameter alist.
22088 (syms_of_frame): Intern and staticpro it.
22089
220902007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
22091
22092 * macfns.c (x_create_tip_frame): Set terminal for frame.
22093
220942007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
22095
22096 * frame.c (Qenvironment): Remove.
22097 (syms_of_frame) <Qenvironment>: Don't initialize.
22098 (Fdelete_frame): Don't treat the `environment' param specially.
22099 * frame.h (Qenvironment): Don't declare.
22100 * callproc.c (set_initial_environment): Don't set unused frame param.
22101
22102 * frame.c (Fframe_with_environment): Remove.
22103 (syms_of_frame) <Sframe_with_environment>: Don't declare.
22104
22105 * lisp.h (Fframe_with_environment): Don't declare.
22106
221072007-10-10 Juanma Barranquero <lekktu@gmail.com>
22108
22109 * indent.c (indent_tabs_mode, last_known_column)
22110 (last_known_column_modified): Make static.
22111 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
22112
221132007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
22114
22115 * puresize.h (BASE_PURESIZE): Increase to 1170000.
22116
221172007-10-09 Jason Rumney <jasonr@gnu.org>
22118
22119 * w32term.c (x_set_window_size): Disable code that attempts to tell
22120 Lisp code about a size change before it actually happens.
22121
221222007-10-09 Richard Stallman <rms@gnu.org>
22123
22124 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
22125 return HANDLED_RETURN.
22126
221272007-10-08 Martin Rudalics <rudalics@gmx.at>
22128
22129 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
22130 when there's an unread command event.
22131
22132 * frame.c (focus_follows_mouse): Move here from frame.el to allow
22133 window autoselection act appropriately when leaving selected frame.
22134 (syms_of_frame): Initialize focus_follows_mouse.
22135 * frame.h (focus_follows_mouse): Extern it.
22136 * macterm.c (XTread_socket): When focus_follows_mouse is nil
22137 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
22138 * msdos.c (dos_rawgetc): Likewise.
22139 * w32term.c (w32_read_socket): Likewise.
22140 * xterm.c (handle_one_xevent): Likewise.
22141 * xdisp.c (syms_of_xdisp): In doc-string of
22142 mouse-autoselect-window mention focus-follows-mouse.
22143
221442007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22145
22146 * macterm.c (mac_load_query_font): Fix missing return value.
22147 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
22148 Add BLOCK_INPUT.
22149
221502007-10-08 Richard Stallman <rms@gnu.org>
22151
22152 * xdisp.c (get_window_cursor_type): Implement documented behavior
22153 for cursor-in-non-selected-windows = t.
22154
221552007-10-08 Jason Rumney <jasonr@gnu.org>
22156
22157 * w32.c (w32_get_resource): Always close registry keys.
22158
221592007-10-08 Jason Rumney <jasonr@gnu.org>
22160
22161 * makefile.w32-in (LIBS): Add COMCTL32.
22162
22163 * w32fns.c (globals_of_w32fns): Init common controls.
22164
221652007-10-08 Richard Stallman <rms@gnu.org>
22166
22167 * image.c (our_memory_buffer): Rename from omfib_buffer.
22168
221692007-10-08 Richard Stallman <rms@gnu.org>
22170
22171 * buffer.c (Foverlays_at): Doc fix.
22172
221732007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
22174
22175 * fns.c (Fplist_put): Preserve uneven tail data.
22176
221772007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
22178
22179 * termhooks.h (enum event_kind): Remove trailing comma.
22180
22181 * frame.h (enum): Remove trailing comma.
22182
221832007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
22184
22185 * w32proc.c (delete_child): Don't terminate threads of zombies.
22186
221872007-10-08 Martin Rudalics <rudalics@gmx.at>
22188
22189 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
22190
22191 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
22192 last-repeatable-command.
22193 (init_kboard): Initialize Vlast_repeatable_command.
22194 (command_loop_1): Set it to real_this_command unless that was
22195 bound to an input event.
22196 (mark_kboards): Mark it.
22197
221982007-10-08 Richard Stallman <rms@gnu.org>
22199
22200 * eval.c (condition-case): Doc fix.
22201
222022007-10-08 Masatake YAMATO <jet@gyve.org>
22203
22204 * xfaces.c (tty_supports_face_attributes_p): Fix code
22205 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
22206 was copied and not edited.
22207
222082007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
22209
22210 Add new `input-decode-map' keymap and use it for terminal
22211 escape sequences.
22212 * keyboard.h (struct kboard): Add Vinput_decode_map.
22213 Remove Vlocal_key_translation_map.
22214 * keyboard.c (read_key_sequence): Add support for input-decode-map.
22215 (init_kboard): Init input-decode-map.
22216 Replace local-key-translation-map back with key-translation-map.
22217 (syms_of_keyboard): Declare input-decode-map.
22218 Remove local-key-translation-map. Update docstrings.
22219 (mark_kboards): Mark Vinput_decode_map.
22220 Don't mark Vlocal_key_translation_map.
22221 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
22222 Replace local-key-translation-map back with key-translation-map.
22223 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
22224 Bind in input-decode-map rather than function-key-map.
22225
22226 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
22227 This was made redundant by the previous introduction of XSETPVECTYPE.
22228
222292007-10-09 Richard Stallman <rms@gnu.org>
22230
22231 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
22232
222332007-09-29 Richard Stallman <rms@gnu.org>
22234
22235 * eval.c (internal_condition_case_2, internal_condition_case_1)
22236 (internal_condition_case): Reenable abort if x_catching_errors ()
22237 to see if that really happens and why.
22238
222392007-10-06 Andreas Schwab <schwab@suse.de>
22240
22241 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
22242
222432007-10-04 Juanma Barranquero <lekktu@gmail.com>
22244
22245 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
22246
222472007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
22248
22249 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
22250
222512007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
22252
22253 * window.h (struct window):
22254 * window.c (struct save_window_data, struct saved_window):
22255 * termhooks.h (struct terminal):
22256 * process.h (struct Lisp_Process):
22257 * frame.h (struct frame):
22258 * buffer.h (struct buffer):
22259 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
22260 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
22261 The size field of (pseudo)vectors is now unsigned.
22262 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
22263
22264 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
22265 Turn `count' into an integer.
22266
22267 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
22268 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
22269 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
22270 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
22271 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
22272
22273 * alloc.c (allocate_pseudovector): New fun.
22274 (ALLOCATE_PSEUDOVECTOR): New macro.
22275 (allocate_window, allocate_terminal, allocate_frame)
22276 (allocate_process): Use it.
22277 (mark_vectorlike): New function.
22278 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
22279 (mark_terminals): Use it.
22280 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
22281 (Fmake_byte_code): Use XSETPVECTYPE.
22282
22283 * frame.c (Fframe_parameters): Minor simplification.
22284
22285 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
22286
22287 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
22288
22289 * buffer.c (Fget_buffer_create, init_buffer_once):
22290 * lread.c (defsubr):
22291 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
22292
22293 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
22294 defined differently in the m/*.h files.
22295 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
22296 (XSETPVECTYPE): New macro.
22297 (XSETPSEUDOVECTOR): Use it.
22298
22299 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
22300 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
22301
22302 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
22303 * lread.c (defvar_per_buffer):
22304 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
22305
22306 * window.c (candidate_window_p): Only consider as visible frames that
22307 are on the same terminal.
22308
22309 * m/ibms390x.h (MARKBIT): Remove unused macro.
22310
223112007-10-01 Juanma Barranquero <lekktu@gmail.com>
22312
22313 * lread.c (Fload): Fix typo in docstring.
22314
223152007-10-01 Michaël Cadilhac <michael@cadilhac.name>
22316
22317 * floatfns.c (Fexpt): Manually check for overflows, so that a power
22318 of a non-zero value can't yield zero.
22319
223202007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
22321
22322 * term.c (term_clear_mouse_face, term_mouse_highlight)
22323 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
22324
22325 * print.c (safe_debug_print): Use XHASH.
22326
22327 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
22328 Lisp elements such as tags.
22329 (XHASH): New macro.
22330 (EQ): Use it.
22331 (SREF, SSET, STRING_COPYIN): Use SDATA.
22332 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
22333
22334 * alloc.c (mark_terminal): Remove left-over declaration.
22335 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
22336 (allocate_vectorlike): Remove type argument. Adjust callers.
22337 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
22338 Only handle the one remaining MEM_TYPE_VECTORLIKE.
22339
22340 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
22341 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
22342 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
22343 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
22344 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
22345 Use them.
22346
22347 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
22348 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
22349 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
22350
223512007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
22352
22353 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
22354 loaded by default.
22355
223562007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
22357
22358 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
22359 on this tty.
22360 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
22361
22362 * term.c (mouse_face_window): Rename from Qmouse_face_window.
22363 Update all users.
22364 (handle_one_term_event): Use Gpm_DrawPointer.
22365 (Fgpm_mouse_start): Rename from Fterm_open_connection.
22366 Signal errors instead of returning nil. Always return nil.
22367 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
22368 Make it a noop if gpm-mouse was not activated.
22369 (syms_of_term): Update names.
22370
223712007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
22372
22373 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
22374 (init_sys_modes): Check that gpm_tty is the current tty.
22375
22376 * alloc.c (allocate_terminal): Set the vector size to only count the
22377 lisp fields. Initialize those to nil.
22378 (mark_object): Don't treat terminals specially.
22379 (mark_terminal): Remove.
22380 (mark_terminals): Use mark_object instead.
22381
22382 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
22383 the GC to the beginning.
22384
22385 * indent.h:
22386 * indent.c: Use EMACS_INT for ints coming from Elisp data.
22387
22388 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
22389
223902007-09-25 Jason Rumney <jasonr@gnu.org>
22391
22392 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
22393
22394 * w32console.c (create_w32cons_output): Remove.
22395
22396 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
22397
22398 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
22399 (reset_sys_modes): Use reset_terminal_modes_hook.
22400
224012007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
22402
22403 * eval.c (do_autoload): Don't output any message.
22404
224052007-09-24 Juri Linkov <juri@jurta.org>
22406
22407 * emacs.c (standard_args): Change priority of "--no-splash"
22408 from 40 to 3. Add "--no-desktop" with the same priority.
22409
224102007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
22411
22412 * alloc.c (gc_sweep): Check cons cell mark bits word by word
22413 and optimize the case where they are all 1.
22414
224152007-09-23 Johannes Weiner <hannes@saeurebad.de>
22416
22417 * lisp.h (abs): Define if not defined.
22418 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
22419 Don't define `abs', since it's defined in lisp.h.
22420
224212007-09-22 Eli Zaretskii <eliz@gnu.org>
22422
22423 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
22424 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
22425 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
22426 (init_tty): Use DEV_TTY instead of "/dev/tty".
22427 [WINDOWSNT]: No need to protect from NAME arg being null.
22428
224292007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
22430
22431 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
22432 up the tty state.
22433
224342007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
22435
22436 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
22437 (gpm_tty): Change its type.
22438 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
22439 (gpm_tty): Change its type and initialize it.
22440 (Fterm_open_connection): Check the frame is indeed a tty.
22441 Use the new gpm_tty.
22442 (Fterm_close_connection): Use the new gpm_tty.
22443 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
22444 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
22445
224462007-09-21 Juanma Barranquero <lekktu@gmail.com>
22447
22448 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
22449 underline_color, to draw strike-through.
22450
224512007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
22452
22453 * lisp.h (allocate_terminal): Declare.
22454
22455 * window.c (candidate_window_p): Consider frames that are being placed
22456 by the user as somewhere between visible and iconified.
22457 (window_loop): Prefer windows on the current frame.
22458 (Fselect_window): Move the use of select-frame to the beginning so we
22459 can just delegate all the work (it'll call us back anyway).
22460
22461 * frame.c (Qdisplay_environment_variable):
22462 * frame.h (Qdisplay_environment_variable): Delete.
22463
22464 * .gdbinit (xbacktrace): Print the arg's address rather than the value
22465 of the first arg, since that value may be a union.
22466
22467 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
22468 parameter rather than Qdisplay_environment_variable. If all else
22469 fails, look for DISPLAY in initial-environment.
22470
224712007-09-21 Glenn Morris <rgm@gnu.org>
22472
22473 * Makefile.in (emacstool): Remove target.
22474 (lisp, shortlisp): Remove termdev.elc.
22475
224762007-09-21 Markus Triska <markus.triska@gmx.at>
22477
22478 * xterm.c (x_delete_display): Compile session management conditionally.
22479
224802007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
22481
22482 * callproc.c (getenv_internal_1): New function.
22483 (getenv_internal): Use it.
22484 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
22485
22486 * terminal.c (get_terminal): Don't accept ints to represent terminals.
22487 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
22488 (Fset_terminal_parameter): Work with dead terminals as well.
22489 (Fmodify_terminal_parameters): Remove.
22490
22491 * terminal.c (get_terminal): Handle terminals.
22492 Make sure the terminal returned is live.
22493 (create_terminal): Use allocate_terminal.
22494 (mark_terminals): Move to alloc.c.
22495 (delete_terminal): Use terminal->name as liveness status.
22496 NULL out fields after freeing their contents.
22497 Don't deallocate the object.
22498 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
22499 rather than an int.
22500 (Fterminal_live_p): Accept non-integer arguments.
22501 (Fterminal_list): Return terminal objects rather than an ints.
22502
22503 * alloc.c (enum mem_type): New member for `terminal' objects.
22504 (allocate_terminal): New function.
22505 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
22506 Handle terminals.
22507 (mark_terminal): New fun.
22508 (mark_terminals): Move from terminal.c.
22509
22510 * term.c (get_tty_terminal): Don't treat output_initial specially.
22511 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
22512 (delete_tty): Use terminal->name as liveness status.
22513
22514 * termhooks.h (struct terminal): Make it into a pseudovector.
22515 Remove `deleted' replaced by checking `name's nullness.
22516
22517 * print.c (print_object): Handle terminals.
22518
22519 * lisp.h (enum pvec_type): New `terminal' pseudovector.
22520 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
22521
22522 * frame.c (make_terminal_frame):
22523 * keyboard.c (tty_read_avail_input):
22524 * w32term.c (x_delete_terminal):
22525 * xfns.c (Fx_create_frame, x_create_tip_frame):
22526 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
22527
225282007-09-20 Glenn Morris <rgm@gnu.org>
22529
22530 * process.c (Fmake_network_process): Doc fix.
22531
225322007-09-19 Jason Rumney <jasonr@gnu.org>
22533
22534 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
22535
225362007-09-19 Michaël Cadilhac <michael@cadilhac.name>
22537
22538 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
22539 Fix a C warning regarding variable constness.
22540
22541 * xterm.c (handle_one_xevent): Fix a C warning.
22542
225432007-09-18 Jason Rumney <jasonr@gnu.org>
22544
22545 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
22546
225472007-09-17 Jan Djärv <jan.h.d@swipnet.se>
22548
22549 * gtkutil.c (gdpy_def): New variable.
22550 (xg_initialize): Initialize gdpy_def.
22551 (xg_display_close): If no other display exists, set gdpy_def to a
22552 new connection.
22553
225542007-09-16 Jan Djärv <jan.h.d@swipnet.se>
22555
22556 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
22557 when we have no file name for the icon.
22558 (xg_tool_bar_expose_callback): Remove.
22559 (xg_create_tool_bar): Don't connect expose signal to
22560 xg_tool_bar_expose_callback.
22561 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
22562
225632007-09-16 Andreas Schwab <schwab@suse.de>
22564
22565 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
22566 values instead of zapping them.
22567
225682007-09-14 Glenn Morris <rgm@gnu.org>
22569
22570 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
22571 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
22572 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
22573 scope and rename to omfib_buffer for clarity.
22574 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
22575
225762007-09-14 Kenichi Handa <handa@m17n.org>
22577
22578 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
22579
225802007-09-13 Jason Rumney <jasonr@gnu.org>
22581
22582 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
22583
22584 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
22585
22586 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
22587 (mac_term_init): Call here instead, passing rif.
22588
225892007-09-13 Glenn Morris <rgm@gnu.org>
22590
22591 * s/hpux.h: No longer define `static' as nothing.
22592
225932007-09-13 Johan Bockgård <bojohan@gnu.org>
22594
22595 * callint.c (Fcall_interactively): Remove unused var `fun'.
22596
225972007-09-12 Romain Francoise <romain@orebokech.com>
22598
22599 * window.c (prefer_window_split_horizontally, display_buffer):
22600 Revert 2007-09-08 change.
22601
226022007-09-12 Glenn Morris <rgm@gnu.org>
22603
22604 * alloca.c: Remove file.
22605 * Makefile.in (alloca): Do not undef.
22606 (allocaobj, alloca.o): Remove.
22607 (otherobj): Remove allocaobj.
22608 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
22609 * regex.c (C_ALLOCA): Remove all references and code that was only
22610 used when this was defined.
22611 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
22612 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
22613 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
22614
22615 * Makefile.in (SOURCES, unlock, relock): Delete.
22616
22617 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
22618 (menu_grab_callback): All uses changed.
22619
22620 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
22621 (x_reply_selection_request): All uses changed.
22622
226232007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
22624
22625 * lread.c (load_warn_old_style_backquotes): Change message to look
22626 better when it appears in the middle of byte-compiler messages.
22627
226282007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
22629
22630 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
22631
22632 * xterm.c (x_create_terminal): Add comment.
22633
22634 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
22635
226362007-09-10 Richard Stallman <rms@gnu.org>
22637
22638 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
22639
226402007-09-10 Michaël Cadilhac <michael@cadilhac.name>
22641
22642 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
22643 (DEFUN): Document `intspec', use it instead of `prompt'.
22644
22645 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
22646
22647 * data.c (Finteractive_form): If the interactive specification starts
22648 with a `(', use it as a Lisp form.
22649
22650 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
22651 name and file modes.
22652
22653 * callint.c (Fcall_interactively): Comment fixes.
22654
226552007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
22656
22657 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
22658 and compiled functions.
22659
226602007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
22661
22662 * window.c (prefer_window_split_horizontally): New variable.
22663 (display_buffer): Consider splitting window horizontally depending
22664 on prefer_window_split_horizontally.
22665
226662007-09-08 Eli Zaretskii <eliz@gnu.org>
22667
22668 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
22669
226702007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
22671
22672 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
22673
22674 * frame.c (x_set_frame_parameters): Check number is positive before
22675 using XFASTINT.
22676
22677 * window.c (freeze_window_start): Don't presume selected_window holds
22678 a window object.
22679 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
22680
226812007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
22682
22683 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
22684
226852007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
22686
22687 * window.c (Vsplit_window_preferred_function): New var.
22688 (Fdisplay_buffer): Use it.
22689 (syms_of_window): Export, and initialize it.
22690
226912007-09-06 Pixel <pixel@mandriva.com> (tiny change)
22692
22693 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
22694
226952007-09-06 Glenn Morris <rgm@gnu.org>
22696
22697 * gtkutil.c (menu_grab_callback) <cnt>:
22698 * xselect.c (x_reply_selection_request) <cnt>: Move static
22699 variable to file scope.
22700
227012007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
22702
22703 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
22704 consistent values of selected_frame and selected_window.
22705
227062007-09-04 Jason Rumney <jasonr@gnu.org>
22707
22708 * w32console.c (initialize_w32_display): Zero unused hooks.
22709
227102007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
22711
22712 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
22713 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
22714
227152007-09-04 Jason Rumney <jasonr@gnu.org>
22716
22717 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
22718 in w32console.c. Set up input. Remove XXX comments that have been
22719 confirmed as correct.
22720
22721 * s/ms-w32.h (MULTI_KBOARD): Define.
22722
22723 * w32console.c (one_and_only_w32cons): Remove.
22724 (initialize_w32_display): Take terminal argument.
22725
22726 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
22727 initialize_w32_display.
22728 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
22729
22730 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
22731
22732 * keyboard.c (discard_mouse_events): Discard it.
22733 (make_lispy_event): Translate it to a lisp event.
22734 (lispy_wheel_names): Add wheel-left and right events.
22735 (syms_of_keyboard): Enlarge wheel_syms.
22736
22737 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
22738 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
22739
22740 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
22741
22742 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
22743 from WM_MOUSEHWHEEL.
22744 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
22745
22746 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
22747 terminal.
22748
22749 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
22750 keyboard for the terminal.
22751
227522007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
22753
22754 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
22755 (Vresume_tty_hook): Rename from Vresume_tty_functions.
22756 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
22757 and resume-tty-function to resume-tty-hook.
22758 (Fsuspend_tty, Fresume_tty): Use new names.
22759
227602007-09-02 Jan Djärv <jan.h.d@swipnet.se>
22761
22762 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
22763 if it starts with "n:".
22764
227652007-08-31 Jan Djärv <jan.h.d@swipnet.se>
22766
22767 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
22768
227692007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
22770
22771 * frame.h:
22772 * frame.c (Qterm_environment_variable): Remove.
22773 (syms_of_frame): Don't init and staticpro it.
22774
22775 * callproc.c (getenv_internal): Remove special case for $TERM.
22776
22777 * callproc.c (Vinitial_environment): New variable.
22778 (set_initial_environment): Initialize it.
22779 (syms_of_callproc): Declare it.
22780 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
22781 TERM under which a process runs is never related to the TERM in which
22782 Emacs is running.
22783
227842007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
22785
22786 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
22787 * s/darwin.h: ... do it here.
22788
227892007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
22790
22791 * lisp.h (set_initial_environment): Rename from set_global_environment.
22792
22793 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
22794 removed by mistake on the multi-tty branch.
22795
22796 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
22797 (Fmodify_frame_parameters): Return a value.
22798
22799 * image.c (png_load): Comment-out var only used in commented-out code.
22800
22801 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
22802 before passing it to mark_object.
22803
22804 * xfaces.c (internal_resolve_face_name): Return a value.
22805 (internal_resolve_face_name, resolve_face_name_error): Comment out.
22806
22807 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
22808 (x_icon): Comment-out var only used in commented-out code.
22809
228102007-08-29 Romain Francoise <romain@orebokech.com>
22811
22812 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
22813 QUIT hasn't been provided.
22814
228152007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
22816
22817 * callproc.c (child_setup, getenv_internal): Use the
22818 display-environment-variable and term-environment-variable frame params.
22819 (set_initial_environment): Initialise Vprocess_environment.
22820
22821 * config.in: Disable multi-keyboard support on a mac.
22822
22823 * frame.c (Qterm_environment_variable)
22824 (Qdisplay_environment_variable): New variables.
22825 (syms_of_frame): Intern and staticpro them.
22826 (Fmake_terminal_frame): Disable output method test.
22827
22828 * frame.h: Declare them here.
22829
22830 * macfns.c (x_set_mouse_color): Get rif from the frame.
22831 (x_set_tool_bar_lines): Don't use updating_frame.
22832 (mac_window): Add 2 new parameters for consistency with other systems.
22833 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
22834 frame parameters following what is done in X11 and w32. Don't use
22835 FRAME_MAC_DISPLAY_INFO.
22836 (Fx_open_connection, start_hourglass): Remove window-system check.
22837 (x_create_tip_frame): Get the keyboard from the terminal.
22838
22839 * macmenu.c: Reorder includes.
22840 (Fx_popup_menu): Use terminal specific mouse_position_hook.
22841
22842 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
22843 terminal parameter.
22844 (x_clear_frame): Add a frame parameter.
22845 (note_mouse_movement): Get rif from the frame.
22846 (mac_term_init): Initialize the terminal.
22847 (mac_initialize): Make static and move terminal initialization ...
22848 (mac_create_terminal): ... to this new function.
22849
22850 * macterm.h (struct mac_display_info): Add terminal.
22851 (mac_initialize): Delete declaration.
22852
22853 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
22854
22855 * sysdep.c: Comment out text after #endif.
22856
22857 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
22858 is defined. Better initialize ttys in windows. Use terminal
22859 specific mouse_position_hook.
22860
22861 * termhooks.h (union display_info): Add mac_display_info.
22862
22863 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
22864 Set the default minibuffer frame, window_system and the rest of the
22865 frame parameters following what is done in X11.
22866
22867 * w32term.c (w32_initialize): Make static.
22868
22869 * xselect.c (x_handle_selection_clear): Only access
22870 terminal->kboard when MULTI_KBOARD is defined.
22871
22872 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
22873 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
22874
228752007-08-29 Jason Rumney <jasonr@gnu.org>
22876
22877 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
22878 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
22879
22880 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
22881 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
22882
22883 * keyboard.c (restore_kboard_configuration): Only define when
22884 MULTI_KBOARD defined.
22885
22886 * makefile.w32-in: Update dependancies from Makefile.in.
22887 (OBJ1): Add terminal.$(O)
22888
22889 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
22890 Don't define function body.
22891 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
22892
22893 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
22894
22895 * w32.c (request_sigio, unrequest_sigio): Remove.
22896
22897 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
22898 (w32con_clear_frame, w32con_clear_end_of_line)
22899 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
22900 (w32con_delete_glyphs, w32con_set_terminal_window)
22901 (scroll_line, w32_sys_ring_bell): Add frame arg.
22902 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
22903 Add terminal arg.
22904 (PICK_FRAME): Remove.
22905 (w32con_write_glyphs): Use frame specific terminal coding.
22906 (one_and_only_w32cons): New global variable.
22907 (initialize_w32_display): Use it for storing hooks.
22908 (create_w32cons_output): New function.
22909
22910 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
22911 arg a frame.
22912
22913 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
22914 Set window_system.
22915 (x_set_tool_bar_lines): Don't use updating_frame.
22916 (Fx_create_frame): Set terminal and ref count.
22917 (Fx_open_connection): Remove window-system check.
22918
22919 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
22920
22921 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
22922 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
22923 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
22924 Add frame arg.
22925 (x_delete_terminal, w32_create_terminal): New functions.
22926 (w32_term_init): Create a terminal.
22927 (w32_initialize): Move terminal specific initialization to
22928 w32_create_terminal.
22929
22930 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
22931 (w32_clear_rect, w32_clear_area): Use background from frame.
22932 (w32_display_info): Add terminal.
22933 (w32_sys_ring_bell, x_delete_display): Declare here.
22934
22935 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
22936
22937 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
22938
229392007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
22940
22941 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
22942 Fix get_named_tty calls for the controlling tty.
22943
229442007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
22945
194d44e7 22946 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
22947
229482007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
22949
22950 * term.c (tty_insert_glyphs): Add missing first parameter.
22951
229522007-08-29 Károly Lőrentey <karoly@lorentey.hu>
22953
22954 * buffer.c (Fbuffer_list, Fbury_buffer):
22955 Take frame->buried_buffer_list into account.
22956
22957 * cm.c (current_tty): New variable, for cmputc().
22958 (cmputc): Use it.
22959 (cmcheckmagic): Add tty parameter, look up terminal streams there.
22960 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
22961 (cmgoto): Add tty parameter. Pass it on to calccost().
22962 Use emacs_tputs() instead of tputs().
22963
22964 * cm.h (emacs_tputs): New macro to set current_tty, and then call
22965 tputs().
22966 (current_tty): New variable, for cmputc().
22967 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
22968
22969 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
22970 (internal_condition_case, internal_condition_case_1)
22971 (internal_condition_case_2): Don't abort when x_catching_errors.
22972
22973 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
22974 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
22975 prevent crashes caused by bogus longjmps in read_char.
22976
22977 * keymap.h (Fset_keymap_parent): Add EXFUN.
22978
22979 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
22980 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
22981 Remove redundant definition.
22982
22983 * macfns.c (x_set_mouse_color, x_make_gc):
22984 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22985
22986 * w32term.c (x_free_frame_resources):
22987 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22988 (w32_initialize): Use the accessor macros for terminal characteristics.
22989
22990 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
22991 Use the accessor macros for terminal characteristics.
22992 * msdos.c (internal_terminal_init): Use the accessor macros for
22993 terminal characteristics.
22994 (ScreenVisualBell, internal_terminal_init):
22995 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22996
22997 * termopts.h (no_redraw_on_reenter): Declare.
22998
22999 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
23000 (mark_terminals, mark_ttys): Declare.
23001 (Fgarbage_collect): Call them.
23002 (mark_object): Mark buried_buffer_list.
23003
23004 * prefix-args.c: Include stdlib.h for exit.
23005
23006 * syssignal.h: Add comment.
23007
23008 * indent.c: Include stdio.h.
23009
23010 * window.h (Vinitial_window_system): Declare.
23011 (Vwindow_system): Delete declaration.
23012
23013 * fontset.c (Finternal_char_font): Use FRAME_RIF.
23014
23015 * image.c (lookup_image): Don't initialize `c' until the xasserts
23016 have been run.
23017
23018 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
23019 FRAME_FOREGROUND_PIXEL.
23020
23021 * print.c (print_preprocess): Don't lose print_depth levels while
23022 iterating.
23023
23024 * widget.c (update_from_various_frame_slots):
23025 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23026
23027 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
23028 frames.
23029 (window_internal_height): Remove bogus make_number call.
23030 (init_window_once): Call make_terminal_frame with two zero parameters.
23031
23032 * fileio.c (Fread_file_name): Update comment.
23033
23034 * callint.c (Fcall_interactively):
23035 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
23036 Make sure it is correctly unwound.
23037
23038 * xsmfns.c (x_session_close): New function.
23039
23040 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
23041 Delete declarations.
23042
23043 * xterm.h: Remove declaration for x_fully_uncatch_errors.
23044 (x_output): Remove background_pixel and foreground_pixel fields.
23045 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
23046 (x_delete_device, x_session_close): Declare.
23047
23048 * lread.c: Include setjmp.h. Update declaration of `read_char'.
23049 (read_filtered_event): Call `read_char' with a local
23050 `wrong_kboard_jmpbuf'.
23051
23052 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
23053 Don't call single_kboard_state. Use FRAME_RIF.
23054
23055 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
23056 systems.
23057
23058 * lisp.h (set_process_environment): Rename to `set_global_environment'.
23059 (Fframe_with_environment, Fset_input_meta_mode)
23060 (Fset_quit_char): EXFUN.
23061 (x_create_device, tty_output, terminal, tty_display_info): Declare.
23062 (init_sys_modes, reset_sys_modes): Update prototypes.
23063 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
23064
23065 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
23066 Vlocal_key_translation_map, and Vkeyboard_translate_table.
23067 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
23068 Delete declarations.
23069 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
23070 (temporarily_switch_to_single_kboard, tty_read_avail_input):
23071 New declarations.
23072
23073 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
23074 already does that during init_display(). Call syms_of_keymap
23075 before syms_of_keyboard. Call `syms_of_terminal'.
23076 Call set_initial_environment, not set_process_environment.
23077 (shut_down_emacs): Call reset_all_sys_modes() instead of
23078 reset_sys_modes().
23079
23080 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
23081 (internal_resolve_face_name, resolve_face_name_error): New functions.
23082 (resolve_face_name): Protect against loops and errors thrown by Fget.
23083 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
23084 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
23085
23086 * scroll.c: Replace CURTTY() with local variables throughout the
23087 file (where applicable).
23088 (calculate_scrolling, calculate_direct_scrolling)
23089 (scrolling_1, scroll_cost): Use the accessor macros for terminal
23090 characteristics.
23091
23092 * keymap.c (Vfunction_key_map): Remove.
23093 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
23094 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
23095 (Vkey_translation_map): Remove.
23096 (syms_of_keymap): Remove DEFVAR for key-translation-map.
23097 (Fdescribe_buffer_bindings)
23098 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
23099 Update for terminal-local key-translation-map.
23100
23101 * Makefile.in (callproc.o): Update dependencies.
23102 (lisp, shortlisp): Add termdev.elc.
23103 (obj): Add terminal.o.
23104 (terminal.o): Add dependencies.
23105 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
23106 (data.o, fns.o): Add termhooks.h dependency.
23107 (SOME_MACHINE_LISP): Add dnd.elc.
23108 (minibuf.o): Fix typo.
23109 Update dependencies.
23110
23111 * data.c (do_symval_forwarding, store_symval_forwarding)
23112 (find_symbol_value): Use the selected frame's keyboard, not
23113 current_kboard.
23114
23115 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
23116 Vwindow_system.
23117
23118 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
23119 Fmenu_bar_open.
23120 (syms_of_xmenu): Update defsubr.
23121 (mouse_position_for_popup, Fx_popup_menu)
23122 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
23123 (set_frame_menubar, free_frame_menubar)
b97439ce 23124 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
23125 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
23126 an X frame.
23127
23128 * xselect.c (x_own_selection): Abort if not an X frame.
23129 (some_frame_on_display): Check if it is an X frame.
23130 (x_handle_selection_clear): Deal with MULTI_KBOARD.
23131
23132 * coding.c: Include frame.h and termhooks.h.
23133 (terminal_coding, keyboard_coding): Delete.
23134 (Fset_terminal_coding_system_internal)
23135 (Fset_keyboard_coding_system_internal)
23136 (Fkeyboard_coding_system)
23137 (Fterminal_coding_system): Add a terminal parameter.
23138 Get terminal_coding from the terminal.
23139 (init_coding_once): Don't call setup_coding_system here.
23140
23141 * dispextern.h (set_scroll_region, turn_off_insert)
23142 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
23143 (tty_clear_end_of_line, tty_setup_colors)
23144 (delete_tty, updating_frame)
23145 (produce_special_glyphs, produce_glyphs, write_glyphs)
23146 (insert_glyphs): Remove.
23147 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
23148 (tty_turn_off_highlight, get_tty_size): Add declaration.
23149 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
23150
23151 * frame.h (enum output_method): Add output_initial.
23152 (struct x_output): Delete.
23153 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
23154 Access foreground_pixel and background_pixel directly from the frame.
23155 (tty_display): Delete.
23156 (struct frame): Add buried_buffer_list, foreground_pixel,
23157 background_pixel and terminal. Delete kboard.
23158 (union output_data): Add tty.
23159 (FRAME_KBOARD): Get the kboard from the terminal.
23160 (FRAME_INITIAL_P): New macro.
23161 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
23162 (Qterm_environment_variable, Qdisplay_environment_variable)
23163 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
23164 New declarations.
23165
23166 * termchar.h (tty_output, tty_display_info): New structures.
23167 (tty_list): Declare.
23168 (FRAME_TTY, CURTTY): New macros.
23169 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
23170 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
23171 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
23172 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
23173
23174 * callproc.c: Include frame.h and termhooks.h, for terminal
23175 parameters.
23176 (add_env): New function.
23177 (child_setup): Use it.
23178 (child_setup, getenv_internal): Handle the new Vprocess_environment.
23179 (getenv_internal): Fix get_terminal_param call.
23180 (Fgetenv_internal, egetenv): Update doc.
23181 (syms_of_callproc): Initialize Vprocess_environment to nil.
23182 Register and initialize them. Remove obsolete defvars. Update doc
23183 strings.
23184 (child_setup): Handle Vlocal_environment_variables.
23185 (getenv_internal): Add terminal parameter.
23186 Handle Vlocal_environment_variables.
23187 (Fgetenv_internal): Add terminal parameter.
23188 (child_setup, getenv_internal, Fgetenv_internal): Store the local
23189 environment in a frame (not terminal) parameter. Update doc strings.
23190 (set_initial_environment): Rename from set_global_environment.
23191 Store Emacs environment in initial frame parameter.
23192
23193 * xdisp.c (redisplay_internal): Update references to
23194 `previous_terminal_frame'.
23195 (display_mode_line, Fformat_mode_line): Replace calls to
23196 `push_frame_kboard' with `push_kboard'.
23197 (get_glyph_string_clip_rects): Add extra parentheses and
23198 braces to prevent compiler warnings.
23199 (calc_pixel_width_or_height): Add xassert to check that the
23200 frame is alive. Don't call `lookup_image' on a termcap frame.
23201 (message2_nolog, message3_nolog, redisplay_internal)
23202 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
23203 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
23204 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
23205 (Fx_display_pixel_width, Fx_display_pixel_height)
23206 (Fx_display_planes, Fx_display_color_cells)
23207 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
23208 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
23209 (Fx_display_backing_store, Fx_display_visual_class)
23210 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
23211 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
23212
23213 * xfns.c (x_set_foreground_color x_set_background_color)
23214 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
23215 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23216 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
23217 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
23218 terminal that is being deleted.
23219 (Fx_create_frame): Use `store_frame_param' to set `window-system'
23220 frame parameter, and make sure it overrides any user-supplied setting.
23221 (Fx_close_connection, Fx_synchronize): Unify argument names with
23222 the rest of the DEFUNs.
23223
23224 * dispnew.c (Fsend_string_to_terminal): Update call to
23225 `get_tty_terminal'.
23226 (Fredraw_frame, Fsend_string_to_terminal)
23227 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
23228 FRAME_TERMCAP_P and FRAME_TTY.
23229 (window_change_signal): Don't believe width/height values that are
23230 impossibly small.
23231 (Vinitial_window_system): Rename from Vwindow_system.
23232 (termscript, Wcm, rif): Delete.
23233
23234 * termhooks.h (struct terminal): New struct containing the
23235 previously global text display hooks and new members NAME,
23236 DELETED and PARAM_ALIST.
23237 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
23238 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
23239 (FRAME_RIF): New macros.
23240 (get_terminal_param, get_device): New declarations.
23241 (termscript): Delete declaration.
23242
23243 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
23244 (XTflash, x_free_frame_resources, x_scroll_bar_create)
23245 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
23246 FRAME_FOREGROUND_PIXEL.
23247 (x_fully_uncatch_errors): Disable definition.
23248 (x_scroll_bar_expose): Fix reference to foreground pixel.
23249 (XTread_socket): Disable loop on all X displays.
23250 (x_delete_terminal): Don't set terminal->deleted and let
23251 delete_terminal delete the frames on the terminal.
23252 (x_delete_display): Doc update to reflect changes in
23253 delete_terminal.
23254 (x_display_info) <terminal>: Move member earlier in the struct.
23255 (deleting_tty): Remove old variable.
23256 (Fsuspend_tty): Call clear_tty_hooks.
23257 (Fresume_tty, init_tty): Call set_tty_hooks.
23258 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
23259 errors on X frames.
23260 (x_catch_errors_unwind): Abort if x_error_message is NULL.
23261 (handle_one_xevent): Initialize `f' to NULL.
23262 (x_delete_terminal, x_create_terminal): New functions.
23263 (XTset_terminal_modes, XTreset_terminal_modes)
23264 (XTread_socket, x_connection_closed, x_term_init)
23265 (x_term_init, x_delete_display): Add terminal parameter.
23266 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
23267 X connections.
23268
23269 * frame.c: Include termchar.h.
23270 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
23271 (Qwindow_system, Qenvironment, Qterm_environment_variable)
23272 (Qdisplay_environment_variable): New vars.
23273 (Fframep): Deal with output_initial.
23274 (Fframe-live-p): Doc fix.
23275 (Fwindow-system): New function.
23276 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
23277 (make_terminal_frame): Don't create frames on a terminal that is
23278 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23279 (store_frame_param): Check for found_for_frame before calling XFRAME.
23280 (Fmake_terminal_frame): Handle NULL tty names correctly.
23281 (syms_of_frame): Enhance doc string of `default-frame-alist'.
23282 (Fdelete_frame): Remove unused variable `count'. Don't allow other
23283 frames to refer to a deleted frame in their 'environment parameter.
23284 (Fframe_with_environment): New function.
23285 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
23286 (get_future_frame_param): New function.
23287 (Fmake_terminal_frame): Use it.
23288 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
23289
23290 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
23291 * sysdep.c (reset_sys_modes): Update for renames.
23292
23293 * keyboard.c (tty_read_avail_input): New function.
23294 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
23295 (syms_of_keyboard): Defsubr them.
23296 (Fset_input_meta_mode, Fset_quit_char): New functions.
23297 (Fset_input_mode): Split to above functions.
23298 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
23299 parameter. Use it in call to `read_char'.
23300 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
23301 Set wrong_kboard_jmpbuf correctly in recursive calls.
23302 Use current_kboard to access Vkeyboard_translate_table.
23303 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
23304 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
23305 Update longjmp invocations. Remember the original current_kboard,
23306 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
23307 changes it. Comment out unnecessary calls to
23308 `record_single_kboard_state' and `any_kboard_state'.
23309 Update recursive calls.
23310 (wrong_kboard_jmpbuf): Remove global variable.
23311 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
23312 Handle deleted interrupted_kboards correctly; that is a legal
23313 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
23314 and read_char calls. Abort if interrupted_kboard died in read_char.
23315 (any_kboard_state, single_kboard_state)
23316 (push_frame_kboard): Remove function.
23317 (pop_kboard): Switch out of single_kboard mode if the kboard has
23318 been deleted. Remove unused variable. Help debugging by not
23319 changing current_kboard unnecessarily. Set current_kboard to the
23320 kboard of the selected frame when the stored kboard object has
23321 been deleted before pop_kboard.
23322 (temporarily_switch_to_single_kboard): Change first parameter to a
23323 frame pointer. Throw an error when caller wants to change kboards
23324 while in single_kboard mode. Don't push_kboard if we weren't in
23325 single kboard state. Don't pop_kboard if we popped into any
23326 kboard state.
23327 (restore_kboard_configuration): Abort if pop_kboard changed the
23328 kboard in single_kboard mode. Call pop_kboard only after setting
23329 up single_kboard mode.
23330 (Frecursive_edit): Switch to single_kboard mode only in nested
23331 command loops.
23332 (cmd_error, command_loop, command_loop_1, timer_check):
23333 Comment out unnecessary call to `any_kboard_state' and
23334 `record_single_kboard_state'.
23335 (delete_kboard): Exit single_kboard mode if we have just deleted
23336 that kboard. Use FRAME_KBOARD.
23337 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
23338 `fatal_error_signal'.
23339 (record_single_kboard_state): Don't push_kboard if we weren't in
23340 single kboard state. Don't pop_kboard if we popped into any
23341 kboard state.
23342 (push_frame_kboard): Rename to push_kboard.
23343 (kbd_buffer_get_event): Use FRAME_TERMINAL.
23344 (read_avail_input): Read input from all terminals.
23345 (mark_kboards): Also mark Vkeyboard_translate_table.
23346 (kbd_buffer_store_event_hold): Simplify condition.
23347 (read_key_sequence): Reinitialize fkey and keytran at each replay.
23348 (Vkeyboard_translate_table): Move to struct kboard.
23349 (init_kboard): Initialize Vkeyboard_translate_table.
23350 (syms_of_keyboard): Use DEFVAR_KBOARD to define
23351 Vkeyboard_translate_table. Update doc strings. Update docs of
23352 local-function-key-map and function-key-map.
23353
23354 * terminal.c: New file.
23355
23356 * term.c: Include errno.h.
23357 (Vring_bell_function, device_list, initial_device)
23358 (next_device_id, ring_bell, update_begin, update_end)
23359 (set_terminal_window, cursor_to, raw_cursor_to)
23360 (clear_to_end, clear_frame, clear_end_of_line)
23361 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
23362 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
23363 (syms_of_term): Move their initialization to terminal.c.
23364 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
23365 (Ftty_display_color_cells)
23366 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
23367 (clear_tty_hooks, set_tty_hooks)
23368 (init_tty, maybe_fatal): New functions.
23369 (Ftty_type): Return nil if terminal is not on a tty instead of
23370 throwing an error. Doc update.
23371 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
23372 Doc update. Initialize new subrs and variables.
23373 (delete_tty): Use terminal->deleted.
23374 (tty_set_terminal_modes): Rename from set_terminal_modes.
23375 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
23376 (set_scroll_region): Rename to `tty_set_scroll_region'.
23377 (turn_on_insert): Rename to `tty_turn_on_insert'.
23378 (turn_off_insert): Rename to `tty_turn_off_insert'.
23379 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
23380 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
23381 (toggle_highligh): Rename to `tty_toggle_highlight'.
23382 (background_highlight): Rename to `tty_background_highlight'.
23383 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
23384 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
23385 (tty_set_scroll_region, tty_background_highlight)
23386 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
23387 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
23388 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
23389 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
23390 Add static modifier.
23391 (tty_reset_terminal_modes, tty_set_terminal_window)
23392 (tty_set_scroll_region, tty_background_highlight)
23393 (tty_highlight_if_desired, tty_cursor_to)
23394 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
23395 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
23396 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
23397 renames.
23398
233992007-08-28 Jan Djärv <jan.h.d@swipnet.se>
23400
23401 * keyboard.c: Qrtl is new.
23402 (parse_tool_bar_item): Handle :rtl keyword.
23403 (syms_of_keyboard): Intern :rtl keyword.
23404
23405 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
23406
23407 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
23408 so no Lisp code is executed.
23409 (file_for_image, find_rtl_image): New functions.
23410 (xg_get_image_for_pixmap): Use file_for_image.
23411 (update_frame_tool_bar): If direction is RTL, use RTL image if
23412 defined. Use Gtk stock images if defined.
23413
234142007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23415
23416 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
23417 for nonexistent or zero-width glyph in composition glyph.
23418
234192007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
23420
23421 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
23422
23423 * xdisp.c (Finvisible_p): New function.
23424 (syms_of_xdisp): defsubr it.
23425
234262007-08-24 Juanma Barranquero <lekktu@gmail.com>
23427
23428 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
23429 Doc fixes.
23430
234312007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23432
23433 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
23434
234352007-08-24 Martin Rudalics <rudalics@gmx.at>
23436
23437 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
23438 whether decoding has modified buffer contents.
23439
234402007-08-24 Jason Rumney <jasonr@gnu.org>
23441
23442 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
23443 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
23444 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
23445 (init_svg_functions) [HAVE_NTGUI]: New function.
23446 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
23447 (svg_load_image): Use them.
23448 (svg_load_image) [HAVE_NTGUI]: Implement background.
23449
234502007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23451
23452 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
23453 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
23454 (LIBX): Remove @RSVG_LIBS@.
23455 (LIBES): Add $(RSVG_LIBS).
23456
23457 * image.c (svg_load_image): Blend with specified background if exists.
23458 Use IMAGE_BACKGROUND. Add Mac OS Support.
23459
23460 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
23461 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
23462 Remove macros.
23463 [MAC_OSX] (socket_callback): Do nothing.
23464 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
23465 ReceiveNextEvent.
23466 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
23467 socket_callback.
23468 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
23469
234702007-08-22 Glenn Morris <rgm@gnu.org>
23471
23472 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
23473
234742007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
23475
23476 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
23477
23478 * image.c: Add support for SVG images. Some additional comments
23479 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
23480 (svg_image_p): New function to test for SVG image.
23481 (svg_load): New function to load SVG image.
23482 (svg_load_image): New function, helper for svg_load.
23483 (Qsvg): New Lisp_object.
23484 (svg_keyword_index): New enum.
23485 (svg_format): New static `image_keyword' struct.
23486 (svg_type): New static `image_type' struct.
23487 (librsvg/rsvg.h): Include it.
23488
234892007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
23490
23491 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
23492
234932007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
23494
23495 * lread.c (Qold_style_backquotes): New var.
23496 (syms_of_lread): Init and staticpro it.
23497 (load_warn_old_style_backquotes): New fun.
23498 (Fload): Use them to warn about old style backquotes.
23499 (end_of_file_error, Fload): Remove unused vars.
23500
23501 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
23502
23503 * lread.c (Vold_style_backquotes): New var.
23504 (syms_of_lread): Init and export it to Elisp.
23505 (read1): Set it when we find an old-style (back)quote.
23506
235072007-08-22 Jason Rumney <jasonr@gnu.org>
23508
23509 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
23510
235112007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
23512
23513 * puresize.h (BASE_PURESIZE): Increase to 1140000.
23514
235152007-08-19 Richard Stallman <rms@gnu.org>
23516
23517 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
23518
235192007-08-19 Andreas Schwab <schwab@suse.de>
23520
23521 * alloc.c (pure): Round PURESIZE up.
23522
235232007-08-17 Jan Djärv <jan.h.d@swipnet.se>
23524
23525 * xterm.c (handle_one_xevent): Remove check that mouse click is in
23526 active frame.
23527
235282007-08-16 Richard Stallman <rms@gnu.org>
23529
23530 * eval.c (Fcommandp): Add parens to clarify.
23531
23532 * minibuf.c (Fall_completions): Use enum for type of table.
23533
23534 * emacs.c (USAGE2): Improve text.
23535
235362007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
23537
23538 * term.c (tty_default_color_capabilities): Declare static
23539 variables in file scope, to avoid HPUX compiler problem.
23540
235412007-08-13 Jan Djärv <jan.h.d@swipnet.se>
23542
23543 * gtkutil.c (update_frame_tool_bar): Use -1 as index
23544 to gtk_toolbar_insert.
23545
235462007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
23547
23548 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
23549
23550 * insdel.c (reset_var_on_error): New fun.
23551 (signal_before_change, signal_after_change):
23552 Use it to reset (after|before)-change-functions to nil in case of error.
23553 Bind inhibit-modification-hooks to t.
23554 Don't bind (after|before)-change-functions to nil while they run.
23555
235562007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23557
23558 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
23559 filling pixmap with stippled background.
23560
235612007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23562
23563 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
23564 Don't use invisible frame as parent window for repositioning.
23565
235662007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
23567
23568 * print.c (new_backquote_output): Rename from old_backquote_output.
23569 (print): Inverse its logic (according to its name) so as to match the
23570 behavior of new_backquote_flag in lread.c.
23571
235722007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23573
23574 * gmalloc.c (posix_memalign): New function.
23575
23576 * macterm.c (frame_highlight, frame_unhighlight): Don't call
23577 ActivateControl/DeactivateControl here.
23578 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
23579 frame-notice-user-settings is non-nil.
23580 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
23581 for kEventParamFMFontStyle.
23582 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
23583 mac_pass_command_to_system and mac_pass_control_to_system here.
23584 (XTread_socket): Call ActivateControl/DeactivateControl here.
23585 (XTread_socket) [TARGET_API_MAC_CARBON]:
23586 Check mac_pass_command_to_system and mac_pass_control_to_system here.
23587 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
23588 for window repositioning.
23589
235902007-08-08 Glenn Morris <rgm@gnu.org>
23591
23592 * Replace `iff' in doc-strings and comments.
23593
235942007-08-07 Chong Yidong <cyd@stupidchicken.com>
23595
23596 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
23597
235982007-08-07 Martin Rudalics <rudalics@gmx.at>
23599
23600 * fileio.c (Finsert_file_contents): Run format-decode and
23601 after_insert_file_functions on entire buffer when REPLACE is
23602 non-nil and inhibit modification_hooks and point_motion_hooks.
23603 For consistency, run after_insert_file_functions iff something
23604 got inserted. Move signal_after_change and update_compositions
23605 after code running after_insert_file_functions. Make sure that
23606 undo_list doesn't record intermediate steps of the decoding process.
23607
236082007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23609
23610 * emacs.c (main)
23611 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
23612 Call malloc_enable_thread on interactive startup.
23613
23614 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
23615 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
23616 [USE_PTHREAD]: Conditionalize with it.
23617 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
23618 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
23619 New functions.
23620
236212007-08-06 Chong Yidong <cyd@stupidchicken.com>
23622
23623 * xdisp.c (redisplay_window): When restoring original buffer
23624 position, make sure it is still valid.
23625
23626 * image.c (png_load): Ignore png-supplied background color.
23627
236282007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23629
23630 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
23631 Use kCFAbsoluteTimeIntervalSince1970.
23632
23633 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
23634 New variable.
23635 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
23636 event loop should be quit.
23637 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
23638 Quit dialog event loop if quit_dialog_event_loop is set.
23639
23640 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
23641 (Selection): New typedef. Use instead of ScrapRef.
23642 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
23643 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
23644 (mac_clear_selection): Rename from clear_scrap.
23645 (get_flavor_type_from_symbol): New argument SEL and subsume function of
23646 scrap_has_target_type. All uses changed.
23647 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
23648 (mac_selection_has_target_p): New functions.
23649 (mac_put_selection_value): Rename from put_scrap_string.
23650 (mac_get_selection_value): Rename from get_scrap_string.
23651 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
23652 (put_scrap_private_timestamp, scrap_has_target_type)
23653 (get_scrap_private_timestamp): Remove functions.
23654 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
23655 (x_own_selection, x_get_local_selection):
23656 Use mac_valid_selection_value_p.
23657 (x_own_selection): Don't use put_scrap_private_timestamp.
23658 Record OWNERSHIP-INFO into Vselection_alist instead.
23659 (x_get_local_selection): Don't check type if request is local.
23660 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
23661 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
23662
236632007-08-04 Jan Djärv <jan.h.d@swipnet.se>
23664
23665 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
23666 add comment explaining why.
23667
236682007-08-03 Richard Stallman <rms@gnu.org>
23669
23670 * fileio.c (Fvisited_file_modtime): Use make_time.
23671
236722007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
23673
23674 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
23675 build.
23676
236772007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
23678
23679 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
23680
236812007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
23682
23683 * puresize.h (BASE_PURESIZE): Increase to 1130000.
23684
236852007-07-30 Richard Stallman <rms@gnu.org>
23686
23687 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
23688
236892007-07-29 Jan Djärv <jan.h.d@swipnet.se>
23690
23691 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
23692
236932007-07-28 Nick Roberts <nickrob@snap.net.nz>
23694
23695 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
23696 remote default-directory.
23697
23698 * buffer.c (mode-line-format): Update doc string.
23699
237002007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23701
23702 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
23703 scroll bar gap.
23704 (x_scroll_bar_create): Set bar->fringe_extended_p.
23705 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
23706 on frame edge. Check fringe background extension. Don't clear
23707 extended fringe background area.
23708
23709 * w32term.h (struct scroll_bar): New member fringe_extended_p.
23710 (w32_fill_area): Enclose multiple statements with do ... while (0).
23711
23712 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
23713 Extend fringe background to scroll bar gap.
23714 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
23715 Set bar->fringe_extended_p.
23716 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
23717 Put leftmost/rightmost scroll bars on frame edge. Check fringe
23718 background extension. Don't clear extended fringe background area.
23719
23720 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
23721 New member fringe_extended_p.
23722
237232007-07-25 Glenn Morris <rgm@gnu.org>
23724
23725 * Relicense all FSF files to GPLv3 or later.
23726
23727 * COPYING: Switch to GPLv3.
23728
237292007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
23730
23731 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
23732
23733 * data.c (Finteractive_form): Check for the presence of an
23734 `interactive-form' symbol property more thoroughly.
23735
23736 * data.c (Finteractive_form): Use an `interactive-form' property if
23737 present, analogous to the function-documentation property.
23738
237392007-07-24 Jason Rumney <jasonr@gnu.org>
23740
23741 * w32fns.c (x_real_positions): Get real position from OS instead of
23742 calculating it.
23743
237442007-07-23 Jason Rumney <jasonr@gnu.org>
23745
23746 * filelock.c (current_lock_owner): Allow for @ sign in username.
23747
237482007-07-22 Nick Roberts <nickrob@snap.net.nz>
23749
23750 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
23751 remote default-directory.
23752
23753 * buffer.c (mode-line-format): Describe above case in doc string.
23754
237552007-07-20 Eli Zaretskii <eliz@gnu.org>
23756
23757 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
23758 Define if not defined.
23759
237602007-07-18 Jason Rumney <jasonr@gnu.org>
23761
23762 * w32proc.c (w32_executable_type): Handle 64 bit executables.
23763
237642007-07-18 Richard Stallman <rms@gnu.org>
23765
23766 * data.c (Fsetq_default): Doc fix.
23767
23768 * eval.c (Fsetq): Doc fix.
23769
237702007-07-18 Juanma Barranquero <lekktu@gmail.com>
23771
23772 * coding.c (Ffind_operation_coding_system):
23773 * eval.c (For, Fand): Doc fixes.
23774 Reported by Johan Bockgård.
23775
237762007-07-18 Jan Djärv <jan.h.d@swipnet.se>
23777
23778 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
23779
23780 * xterm.h: Declare x_ewmh_activate_frame.
23781
23782 * xterm.c (x_ewmh_activate_frame): New function.
23783 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
23784
237852007-07-17 Martin Rudalics <rudalics@gmx.at>
23786
23787 * window.c (Fdisplay_buffer): If largest or LRU window is the
23788 only window, split it even if it is not eligible for splitting.
23789 This restores the original behavior broken by the 2007-07-15
23790 change.
23791
237922007-07-17 Glenn Morris <rgm@gnu.org>
23793
23794 * abbrev.c (abbrev_check_chars): New function.
23795 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
23796 Call abbrev_check_chars to check abbrev characters are word
23797 constituents. Doc fix.
23798
237992007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
23800
23801 * process.c (Fstart_process, Fmake_network_process)
23802 (read_process_output): Fix up last changes.
23803
238042007-07-16 Eli Zaretskii <eliz@gnu.org>
23805
23806 * makefile.w32-in (clean): Don't delete *~.
23807
238082007-07-16 Andreas Schwab <schwab@suse.de>
23809
23810 * window.c (Fdisplay_buffer): Use NILP.
23811 (Fset_window_scroll_bars): Likewise.
23812
238132007-07-15 Martin Rudalics <rudalics@gmx.at>
23814
23815 * window.c (window_min_size_2): New function.
23816 (window_min_size_1, size_window, Fdisplay_buffer)
23817 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
23818 windows without mode- or header-lines when window-min-height is
23819 too small.
23820 (size_window): Reset nodelete_p after testing it, following an
23821 earlier note by Kim F. Storm.
23822 (display_buffer): Do not set split_height_threshold to twice the
23823 value of window_min_height to avoid changing the value of a
23824 customizable variable. Rather explicitly check whether the
23825 height of the window that shall be splitted is at least as large
23826 as split_height_threshold.
23827 (Fwindow_full_width_p): New defun.
23828 (syms_of_window): Defsubr it.
23829
23830 * window.h: Add EXFUN for Fwindow_full_width_p.
23831
238322007-07-14 Jason Rumney <jasonr@gnu.org>
23833
23834 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
23835
238362007-07-14 Richard Stallman <rms@gnu.org>
23837
23838 * eval.c (maybe_call_debugger): New function.
23839 (find_handler_clause): Use maybe_call_debugger.
23840 Call it when the handler says `debug'.
23841 Eliminate DEBUGGER_VALUE_PTR.
23842 (Fsignal): Eliminate debugger_value.
23843 (Qdebug): New variable.
23844 (syms_of_eval): Initialize it.
23845
238462007-07-14 Juanma Barranquero <lekktu@gmail.com>
23847
23848 * eval.c (Fprogn):
23849 * keyboard.c (Ftrack_mouse):
23850 * print.c (Fwith_output_to_temp_buffer):
23851 * window.c (Fsave_window_excursion): Doc fix.
23852
238532007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
23854
23855 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
23856
238572007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
23858
23859 * process.h (struct Lisp_Process): Turn slots infd, outfd,
23860 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
23861 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
23862 read_output_delay, and read_output_skip from Lisp_Objects to ints.
23863 Remove unused encoding_carryover.
23864 * process.c: Adjust all functions accordingly.
23865
238662007-07-12 Richard Stallman <rms@gnu.org>
23867
23868 * term.c: Include unistd.h only if HAVE_UNISTD_H.
23869
238702007-07-11 Jason Rumney <jasonr@gnu.org>
23871
23872 * makefile.w32-in (LIBS): Include OLE32.
23873
23874 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
23875 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
23876
238772007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
23878
23879 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
23880 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
23881 from a Lisp_Object into a bare pointer.
23882 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
23883 Adjust the code correspondingly.
23884
23885 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
23886
23887 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
23888 (term_show_mouse_face): Remove unused var `j'.
23889 (handle_one_term_event): Remove unused vars `i' and `j'.
23890 Don't cast return value of ttyname since it's not necessary.
23891
238922007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
23893
23894 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
23895 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
23896
23897 * fns.c (map_char_table): Use an array of int for `indices' rather than
23898 an array of Lisp_Objects (which are only ever integers anyway).
23899 (Fmap_char_table): Update caller.
23900 * lisp.h: Update prototype.
23901 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
23902 * fontset.c (Ffontset_info):
23903 * casetab.c (set_case_table): Update callers.
23904
23905 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
23906
23907 * keymap.c (struct accessible_keymaps_data)
23908 (struct where_is_internal_data): New structures.
23909 (accessible_keymaps_1, where_is_internal_1): Use them to change
23910 interface to adhere to the one used by map_keymap.
23911 (Faccessible_keymaps, where_is_internal): Use map_keymap.
23912 (accessible_keymaps_char_table, where_is_internal_2): Remove.
23913
23914 * keymap.h (map_keymap_function_t): More informative prototype.
23915
239162007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
23917
23918 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
23919 (looking_at_1): Don't change search_regs and last_thing_searched
23920 if `inhibit-changing-match-data' is non-nil.
23921 (string_match_1, search_buffer, set_search_regs): Likewise.
23922 (syms_of_search): Add Lisp level definition for
23923 `inhibit-changing-match-data' and set it to nil.
23924 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
23925 start and end of the match, instead of using values in search_regs.
23926
239272007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
23928
23929 * minibuf.c (Fcompleting_read): New value `confirm-only'
23930 for `require-match'.
23931
239322007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
23933
23934 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
23935 part of the 2007-06-27 change to syms_of_fileio.
23936
239372007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23938
23939 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
23940 Check WINDOWP before using XWINDOW. Consolidate return statements.
23941
239422007-06-27 Richard Stallman <rms@gnu.org>
23943
23944 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
23945
239462007-06-27 Juanma Barranquero <lekktu@gmail.com>
23947
23948 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
23949
239502007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23951
23952 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
23953 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
23954 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
23955 (_free_internal, memalign): Use them.
23956 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
23957 Initialize to PTHREAD_MUTEX_INITIALIZER.
23958 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
23959 (morecore_nolock): Rename from morecore. All uses changed.
23960 Use only nolock versions of internal allocation functions.
23961 (_malloc_internal_nolock, _realloc_internal_nolock)
23962 (_free_internal_nolock): New functions created from
23963 _malloc_internal, _realloc_internal, and _free_internal.
23964 (_malloc_internal, _realloc_internal, _free_internal): Use them.
23965 Copy hook value to automatic variable before its use.
23966 (memalign): Copy hook value to automatic variable before its use.
23967
239682007-06-26 Kenichi Handa <handa@m17n.org>
23969
23970 * coding.c (Ffind_operation_coding_system): Docstring improved.
23971 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
23972
239732007-06-25 David Kastrup <dak@gnu.org>
23974
23975 * keymap.c (Fcurrent_active_maps): Add `position' argument.
23976 (Fwhere_is_internal): Adjust call to `current-active-maps' to
23977 cater for additional parameter.
23978
23979 * keymap.h: Adjust number of parameters to `current-active-maps'.
23980
23981 * doc.c (Fsubstitute_command_keys): Adjust call of
23982 `current-active-maps'.
23983
239842007-06-25 David Kastrup <dak@gnu.org>
23985
23986 * callint.c (Fcall_interactively): Make the parsing of interactive
23987 specs somewhat more readable.
23988
239892007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23990
23991 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
23992 to scroll bar gap also when bitmap fills fringe. Draw only foreground
23993 if extended background has already been filled.
23994
239952007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23996
23997 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
23998 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
23999
24000 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
24001 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
24002 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
24003 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
24004 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
24005 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
24006 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
24007 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
24008 Run timers during dialog popup.
24009 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
24010
240112007-06-21 Jason Rumney <jasonr@gnu.org>
24012
24013 * image.c (convert_mono_to_color_image): Swap fore and background.
24014
240152007-06-20 Jason Rumney <jasonr@gnu.org>
24016
24017 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
24018 (w32_free_bdf_font): Unmap memory not handle.
24019
240202007-06-20 Sam Steingold <sds@gnu.org>
24021
24022 * gmalloc.c (__morecore): Fix the declaration to comply with the
24023 definition.
24024
240252007-06-20 Juanma Barranquero <lekktu@gmail.com>
24026
24027 * w32term.c (w32_delete_display): Remove leftover declaration.
24028 (w32_define_cursor, w32_initialize): Make static.
24029
24030 * w32.c (_wsa_errlist): Fix typo in error message.
24031 (init_environment): Ignore any environment variable from the
24032 registry having a null value.
24033
240342007-06-20 Glenn Morris <rgm@gnu.org>
24035
24036 * Makefile.in (LIBGIF): Default to -lgif.
24037
240382007-06-17 Jason Rumney <jasonr@gnu.org>
24039
24040 * w32menu.c (add_menu_item): Don't use multibyte string functions on
24041 unicode strings.
24042
240432007-06-16 Juanma Barranquero <lekktu@gmail.com>
24044
24045 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
24046 Fix typo in docstring.
24047
240482007-06-16 Eli Zaretskii <eliz@gnu.org>
24049
24050 * w32menu.c (add_menu_item): Escape `&' characters in menu items
24051 and their keybindings.
24052
240532007-06-15 Chong Yidong <cyd@stupidchicken.com>
24054
24055 * composite.c (update_compositions): Fix last fix.
24056
240572007-06-14 Jason Rumney <jasonr@gnu.org>
24058
24059 * w32.c (get_process_times_fn): New function pointer.
24060 (globals_of_w32): Intialize it if present in kernel32.dll.
24061 (w32_get_internal_run_time): New function.
24062
24063 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
24064
240652007-06-14 Kenichi Handa <handa@etlken.m17n.org>
24066
24067 * composite.c (update_compositions): Check the validness of
24068 compositions.
24069
240702007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24071
24072 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
24073 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
24074
24075 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
24076 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
24077
24078 * macgui.h (USE_MAC_TOOLBAR): New define.
24079
24080 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
24081 Return immediately unless popup is activated.
24082
24083 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
24084 background to scroll bar gap.
24085 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
24086 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
24087 scroll bars on frame edge. Check fringe background extension.
24088 Don't clear extended fringe background area.
24089 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
24090 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
24091 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
24092 [USE_MAC_TOOLBAR]: New macros.
24093 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
24094 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
24095 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
24096 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
24097 [USE_MAC_TOOLBAR]: New functions.
24098 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
24099 manually if previous repositioning has failed.
24100 (mac_handle_keyboard_event): Use precomputed event kind.
24101 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
24102 as tool bar item click. Handle mouse movement over tool bar items.
24103
24104 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
24105 toolbar_win_gravity.
24106 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
24107 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
24108 Add externs.
24109
24110 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
24111 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
24112
241132007-06-14 Chong Yidong <cyd@stupidchicken.com>
24114
24115 * image.c (search_image_cache): Remove unused variable.
24116
241172007-06-13 Chong Yidong <cyd@stupidchicken.com>
24118
24119 * xfns.c, xmenu.c: Link to xaw3d if available.
24120
241212007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24122
24123 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
24124 frame_foreground and frame_background.
24125
24126 * image.c (lookup_image): Save frame foreground and background colors.
24127 (search_image_cache): Check if saved and current frame colors match.
24128
241292007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
24130
24131 * regex.c (regex_compile): Remove the `regnum' counter.
24132 Use bufp->re_nsub instead. Add support for \(?N:RE\).
24133
241342007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
24135
24136 * term.c: Include intervals.h to declare Fget_text_property.
24137
241382007-06-10 Jason Rumney <jasonr@gnu.org>
24139
24140 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
24141
241422007-06-08 Juanma Barranquero <lekktu@gmail.com>
24143
24144 * callint.c (Fcall_interactively):
24145 * editfns.c (Fdelete_and_extract_region):
24146 * fileio.c (Fread_file_name):
24147 * fns.c (Fmapconcat):
24148 * keyboard.c (cmd_error_internal):
24149 * keymap.c (Fkey_description):
24150 * lread.c (openp):
24151 * minibuf.c (read_minibuf):
24152 * search.c (wordify):
24153 * sunfns.c (sel_read):
24154 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
24155 * xfns.c (x_default_scroll_bar_color_parameter):
24156 * xmenu.c (menu_help_callback):
24157 * xselect.c (Fx_get_atom_name):
24158 * xterm.c (x_term_init): Use empty_unibyte_string.
24159
241602007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
24161
24162 * alloc.c (init_strings): Initialize canonical empty strings.
24163 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
24164 canonical empty string when the requested size is 0.
24165
24166 * emacs.c (empty_unibyte_string): Rename from empty_string.
24167 (empty_multibyte_string): New canonical empty string.
24168 (syms_of_emacs): Don't initialize empty_string.
24169
24170 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
24171 string, if appropriate.
24172 (empty_unibyte_string, empty_multibyte_string): New externs.
24173 (empty_string): Remove extern.
24174
24175 * lread.c (syms_of_lread): Use empty_unibyte_string.
24176
241772007-06-07 Jason Rumney <jasonr@gnu.org>
24178
24179 * s/ms-w32.h: Don't define HAVE_TZNAME.
24180
24181 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
24182
241832007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24184
24185 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
24186
24187 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
24188 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
24189
24190 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
24191 Don't call next handler.
24192 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
24193 Remove argument. Install handler to application.
24194 (set_frame_menubar): Don't change deep_p.
24195 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
24196 FRAME_OUTER_TO_INNER_DIFF_Y.
24197 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
24198 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
24199 [HAVE_DIALOGS]: New macros.
24200 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
24201 Use them.
24202 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
24203
24204 * macselect.c [MAC_OSX] (install_service_handler): Rename from
24205 init_service_handler. All callers changed. Return OSStatus value.
24206
24207 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
24208 All callers changed so as not to call SetPortWindowPort.
24209 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
24210 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
24211 mac_draw_string_common.
24212 (mac_draw_image_string_qd): Likewise.
24213 (mac_draw_string_common): Use them. Add INLINE.
24214 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
24215 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
24216 GetGlobalMouse.
24217 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
24218 and FRAME_OUTER_TO_INNER_DIFF_Y.
24219 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
24220 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
24221 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
24222 repositioning window to mac_handle_window_event.
24223 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
24224 saving window location to mac_handle_window_event
24225 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
24226 (install_menu_target_item_handler): Remove argument in extern.
24227 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
24228 Also accept command events.
24229 (do_keystroke): New function created from XTread_socket.
24230 (init_command_handler): Remove functions.
24231 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
24232 and save window location by kEventWindowShowing and kEventWindowHiding
24233 handlers here. Don't call next handler for window state change and
24234 focus events.
24235 (mac_handle_application_event, mac_handle_keyboard_event)
24236 [TARGET_API_MAC_CARBON]: New functions.
24237 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
24238 kEventWindowShowing and kEventWindowHiding events. Move installation
24239 of mouse, font, text input and menu target item handlers to
24240 install_application_handler.
24241 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
24242 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
24243 New function.
24244 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
24245 Register it.
24246 (XTread_socket) [TARGET_API_MAC_CARBON]:
24247 Consolidate SendEventToEventTarget calls.
24248 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
24249 Move application activation handler to mac_handle_application_event.
24250 Move keyboard handler to mac_handle_keyboard_event.
24251 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
24252 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
24253 init_command_handler. Call install_application_handler.
24254
24255 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
24256 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
24257
242582007-06-07 Glenn Morris <rgm@gnu.org>
24259
24260 * emacs.c (main): Use `emacs-copyright' in --version output.
24261
242622007-06-06 Chong Yidong <cyd@stupidchicken.com>
24263
24264 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
24265
242662007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24267
24268 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
24269
24270 * macgui.h: Replace WindowPtr with WindowRef.
24271
24272 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
24273 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
24274 Replace ControlHandle with ControlRef.
24275 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
24276
24277 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
24278 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
24279 Replace ControlHandle with ControlRef.
24280 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
24281 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
24282
24283 * macterm.h (struct scroll_bar): Rename member control_handle_low
24284 and control_handle_high to control_ref_low and control_ref_high.
24285 All uses changed.
24286 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
24287 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
24288 respectively. All uses changed.
24289 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
24290 (install_window_handler, remove_window_handler): Replace WindowPtr
24291 with WindowRef in externs.
24292
242932007-06-05 Juanma Barranquero <lekktu@gmail.com>
24294
24295 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
24296
242972007-06-03 Nick Roberts <nickrob@snap.net.nz>
24298
24299 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
24300
24301 * frame.c (Fmouse_position, Fmouse_pixel_position):
24302 Condition on HAVE_GPM too.
24303
24304 * term.c (term_mouse_highlight): Remove unused variables.
24305 (Fterm_open_connection): Set gpm_zerobased to 1.
24306 (term_mouse_movement, term_mouse_click, handle_one_term_event):
24307 Use zero based co-ordinates.
24308 (handle_one_term_event): Report a drag as mouse movement too.
24309
24310 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
24311
243122007-06-03 Chong Yidong <cyd@stupidchicken.com>
24313
24314 * image.c (search_image_cache): New function. Require background
24315 color match if background color is unspecified in the image spec.
24316 (uncache_image, lookup_image): Use it.
24317
243182007-06-01 Juanma Barranquero <lekktu@gmail.com>
24319
24320 * window.c (Fshrink_window): Reflow docstring.
24321
243222007-06-02 Chong Yidong <cyd@stupidchicken.com>
24323
24324 * Version 22.1 released.
24325
243262007-06-01 Richard Stallman <rms@gnu.org>
24327
24328 * xfns.c (x_encode_text): Add GCPRO.
24329
243302007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24331
24332 * xfns.c (x_set_name_internal): Save encoded name before
24333 x_encode_text in case string data is relocated.
24334
243352007-05-31 Richard Stallman <rms@gnu.org>
24336
24337 * buffer.c (syms_of_buffer): Doc fix.
24338
243392007-05-30 Nick Roberts <nickrob@snap.net.nz>
24340
24341 * sysdep.c (init_sys_modes): Add rather than replace with
24342 O_NONBLOCK.
24343
24344 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
24345 term_mouse_moveto.
24346
24347 * termhooks.h (term_mouse_moveto): New extern.
24348
24349 * term.c (mouse_face_window): Rename...
24350 (Qmouse_face_window): ...to this.
24351 (term_show_mouse_face, term_clear_mouse_face)
24352 (term_mouse_highlight): Use Qmouse_face_window.
24353 (term_mouse_moveto): New function.
24354 (term_mouse_position): Make it work.
24355 (syms_of_term): Uncomment assignment to mouse_position_hook.
24356 Staticpro Qmouse_face_window.
24357
243582007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24359
24360 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
24361 around current_column call.
24362
243632007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
24364
24365 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
24366 * xdisp.c (next_element_from_buffer):
24367 * window.c (delete_window):
24368 * term.c (term_mouse_highlight):
24369 * msdos.c (getdefdir):
24370 * macterm.c (mac_create_bitmap_from_bitmap_data)
24371 (init_font_name_table):
24372 * fns.c (Fsxhash):
24373 * data.c (Fmake_local_variable):
24374 * ccl.c (ccl_driver): Likewise.
24375
243762007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24377
24378 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
24379 Call mac_wakeup_from_rne on window size change.
24380
243812007-05-25 Chong Yidong <cyd@stupidchicken.com>
24382
24383 * image.c (uncache_image): Fix typo.
24384
243852007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
24386
24387 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
24388
243892007-05-22 Richard Stallman <rms@gnu.org>
24390
24391 * xterm.c (x_connection_closed): Remove NO_RETURN.
24392
243932007-05-22 Martin Rudalics <rudalics@gmx.at>
24394
24395 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
24396
243972007-05-21 Chong Yidong <cyd@stupidchicken.com>
24398
24399 * image.c (uncache_image): New function.
24400 (Fimage_refresh): New function.
24401
244022007-05-20 Jan Djärv <jan.h.d@swipnet.se>
24403
24404 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
24405
244062007-05-20 Nick Roberts <nickrob@snap.net.nz>
24407
24408 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
24409 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
24410
244112007-05-20 Nick Roberts <nickrob@snap.net.nz>
24412
24413 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
24414 conditional on [HAVE_GPM_H].
24415
244162007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
24417
24418 * syntax.c (skip_chars): Update syntax-table only after we checked that
24419 the new location is valid.
24420
244212007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24422
24423 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
24424 mac_get_window_bounds.
24425
244262007-05-20 Nick Roberts <nickrob@snap.net.nz>
24427
24428 * Makefile.in (LIBGPM): Allow it to be set from configure.
24429 If set then link Emacs with it.
24430
24431 * config.in: Regenerate.
24432
24433 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
24434 New externs.
24435
24436 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
24437 Include gpm.h.
24438 (handle_one_term_event, term_gpm): New externs.
24439
24440 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
24441 and allow it to be interrupted by SIGIO.
24442
24443 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
24444 (wait_reading_process_output): Wait on gpm_fd too.
24445 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
24446 (add_gpm_wait_descriptor_called_flag): New variable.
24447 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
24448
24449 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
24450 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
24451 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
24452 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
24453 (make_lispy_event): Add case GPM_CLICK_EVENT.
24454 (read_avail_input): Handle mouse input.
24455
24456 * term.c (write_glyphs_with_face): New function.
24457 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
24458 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
24459 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
24460 (mouse_face_face_id, term_gpm, pos_x, pos_y)
24461 (last_mouse_x, last_mouse_y): New variables.
24462 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
24463 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
24464 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
24465 (Fterm_close_connection): New functions.
24466 (term_init): Initialise mouse_face_window.
24467
244682007-05-19 Chong Yidong <cyd@stupidchicken.com>
24469
24470 * xdisp.c (redisplay_window): If first window line is a
24471 continuation line, recompute the new window start instead of
24472 recentering.
24473
244742007-05-18 Glenn Morris <rgm@gnu.org>
24475
24476 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
24477 Suggested by Alfred M. Szmidt <ams@gnu.org>.
24478
244792007-05-17 Glenn Morris <rgm@gnu.org>
24480
24481 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
24482
244832007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24484
24485 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
24486 dead key repeat and up events.
24487
244882007-05-14 Chong Yidong <cyd@stupidchicken.com>
24489
24490 * image.c (pbm_load): Check image size for monochrome pbm.
24491
244922007-05-13 Chong Yidong <cyd@stupidchicken.com>
24493
24494 * xterm.c (XTread_socket): Revert last change.
24495
244962007-05-12 Chong Yidong <cyd@stupidchicken.com>
24497
24498 * image.c (pbm_load): Correctly check image size for greyscale pbm.
24499
24500 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
24501
245022007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
24503
24504 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
24505 mixup (YAILOM).
24506
245072007-05-07 Andreas Schwab <schwab@suse.de>
24508
24509 * keymap.c (Flookup_key): Fix typo in last change.
24510
245112007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
24512
24513 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
24514 mapping for unibyte strings.
24515
245162007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24517
24518 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
24519 (Fx_popup_dialog) [MAC_OSX]: Likewise.
24520
245212007-04-29 Richard Stallman <rms@gnu.org>
24522
24523 * insdel.c (replace_range): For undo, record insertion first.
24524
245252007-04-29 Andreas Schwab <schwab@suse.de>
24526
24527 * lisp.h (VECSIZE): Use OFFSETOF.
24528
245292007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24530
24531 * xdisp.c (try_window_reusing_current_matrix): Fix number of
24532 disabled lines.
24533
245342007-04-28 Richard Stallman <rms@gnu.org>
24535
24536 * lread.c (read_escape): In a string, \s is always space.
24537
245382007-04-27 Jan Djärv <jan.h.d@swipnet.se>
24539
24540 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
24541
24542 * gtkutil.c (xg_update_menubar, create_menus): Create empty
24543 submenu for menu bar items.
24544
24545See ChangeLog.10 for earlier changes.
24546
24547;; Local Variables:
24548;; coding: utf-8
24549;; add-log-time-zone-rule: t
aac0c6e3
MR
24550;; End:
24551
e3eb1dae 24552 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
24553
24554 This file is part of GNU Emacs.
24555
24556 GNU Emacs is free software: you can redistribute it and/or modify
24557 it under the terms of the GNU General Public License as published by
24558 the Free Software Foundation, either version 3 of the License, or
24559 (at your option) any later version.
24560
24561 GNU Emacs is distributed in the hope that it will be useful,
24562 but WITHOUT ANY WARRANTY; without even the implied warranty of
24563 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24564 GNU General Public License for more details.
24565
24566 You should have received a copy of the GNU General Public License
24567 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
24568
24569;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40