(Fsystem_processes_list, Fsystem_process_attributes): New functions.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
934e2a68
EZ
12008-08-02 Eli Zaretskii <eliz@gnu.org>
2
3 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
4
5 * lisp.h: Add prototype for directory_files_internal.
6
7 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
8 New functions.
9 (syms_of_process): Defsubr them. Add initializations for various
10 Q* symbols used in procfs_system_process_attributes.
11 (procfs_list_system_processes, procfs_system_process_attributes)
12 [HAVE_PROCFS]: New functions.
13 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
14 (procfs_get_total_memory): New functions.
15
dee8cd43
JB
162008-08-01 Juanma Barranquero <lekktu@gmail.com>
17
18 * xfaces.c (Fx_load_color_file): Fix previous change;
19 it is #ifdef WINDOWSNT, not WINDOWS_NT.
20
367ea173
MA
212008-08-01 Michael Albinus <michael.albinus@gmx.de>
22
23 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
24
04f33e11
AR
252008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
26
27 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
28
73592876
CY
292008-08-01 Chong Yidong <cyd@stupidchicken.com>
30
dee8cd43 31 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
6fcb12fd
CY
32
33 * nsterm.m (EmacsApp -application:openFiles:): GNUStep does not
34 define NSApplicationDelegateReplySuccess.
35 (EmacsView -converstationIdentifier): Use long instead of
36 NSInteger for GNUStep, since it doesn't have NSInteger.
37
61bf63e2
CY
38 * xmenu.c: Revert last change.
39
73592876
CY
40 * keyboard.h: Fix last change.
41
ebadbfa6
AR
422008-08-01 Juanma Barranquero <lekktu@gmail.com>
43
44 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
45 on Windows.
46
15034960 472008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
f78c2c97 48
15034960 49 Warning clearing and clean-up in NS port.
dee8cd43
JB
50 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
51 Add prototypes.
15034960
AR
52 * nsgui.h (FACE_DEFAULT): Remove, unused.
53 (XGCValues): Change colors to unsigned long.
54 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
55 nsterm.m.
56 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
57 (ns_list_fonts): Remove, unused.
58 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
59 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
60 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
61 (nsfont_draw): Compare face colors to 0, not nil.
62 * nsmenu.m (struct widget_value): Drop unneeded declaration.
63 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
64 (-addSubmenuWithTitle:): Use NSMenuItem class.
65 (ns_popup_menu): Use NO, not NULL, for enabled setting.
66 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
67 (ns_clip_to_row): Make gc arg a BOOL.
68 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
69 ns_clip_to_row() call.
70 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
71 used). Cast FRAME_FONT assignments.
72 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
73 (ns_string_to_lispmod): Change arg to const char.
74 (ns_term_init): Use NSMenuItem class.
75 (EmacsApp -openFile:): Move to different section of file.
76 (EmacsApp -application:openFiles:): Don't return a value, call
77 -replyToOpenOrPrint:.
78 (EmacsView -keyDown:): Fix up cast.
79 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
80 (EmacsView -menuDown:): Cast tag in call to
81 find_and_call_menu_selection().
82 (ns_list_fonts): Remove, unused.
83 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
84 (ns_fontname_to_xlfd): Make static.
dee8cd43
JB
85 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
86 Remove prototypes (now in keyboard.h).
15034960 87 (next_menubar_widget_id): Remove, unused.
dee8cd43
JB
88 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
89 Remove prototypes (now in keyboard.h).
15034960
AR
90 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
91
27ec92c9
DN
922008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
93
f78c2c97
DN
94 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
95 (floatfns.o): Depend on syssignal.h.
96 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
97
dee8cd43
JB
98 * systty.h: Fix previous change that removed BSD_TERMIOS.
99 Add comments to #ifdefs.
27ec92c9 100
7ded3383
AR
1012008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
102
103 * w32fns.c (w32-load-color-file): Remove.
104 (x-open-connection): Use renamed Fx_load_color_file.
105 * xfaces.c (x-load-color-file): Add.
106 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
107 Emacs.clr.
108 (ns_draw_window_cursor): Change PENDING to TODO or FIXME.
109 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
110
13ecc6dc
MA
1112008-07-31 Michael Albinus <michael.albinus@gmx.de>
112
113 * dbusbind.c (Fdbus_call_method_asynchronously)
114 (Fdbus_method_error_internal): New defuns.
115 (xd_read_message): Handle also reply messages.
116 (Vdbus_registered_functions_table): Extend docstring.
117
12063bc5
JB
1182008-07-31 Juanma Barranquero <lekktu@gmail.com>
119
120 * keyboard.c (gobble_input): Fix previous change.
121
7c2fb837
DN
1222008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
123
124 * bitmaps/README:
125 * xfns.c:
126 * termcap.c:
127 * term.c:
128 * syswait.h:
129 * systty.h:
130 * systime.h:
131 * syssignal.h:
132 * sysdep.c:
133 * process.h:
134 * process.c:
135 * print.c:
136 * ndir.h:
137 * lread.c:
138 * keyboard.c:
139 * getpagesize.h:
140 * floatfns.c:
141 * fileio.c:
142 * emacs.c:
143 * doc.c:
144 * dispnew.c:
145 * dired.c:
146 * data.c:
147 * callproc.c:
148 * buffer.c:
149 * README:
150 * Makefile.in:
151 * s/template.h:
152 * s/msdos.h:
153 * m/vax.h: Remove VMS support.
154 * s/vms.h:
155 * vlimit.h:
156 * uaf.h:
157 * temacs.opt:
158 * param.h:
159 * ioctl.h: Remove file.
160
69ab3201
DN
1612008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
162
163 * s/ms-w32.h (MULTI_KBOARD): Remove.
164 * xterm.c:
165 * xselect.c:
166 * xfns.c:
167 * window.c:
168 * w32term.c:
169 * w32fns.c:
170 * terminal.c:
171 * termhooks.h:
172 * term.c:
173 * sysdep.c:
174 * keyboard.h:
175 * keyboard.c:
176 * frame.h:
177 * frame.c:
178 * frame.c: Remove references to MULTI_KBOARD, it is now the
179 default.
180 * config.in: Regenerate.
181
bd187c49
JR
1822008-07-30 Jason Rumney <jasonr@gnu.org>
183
12063bc5 184 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
bd187c49 185
12063bc5
JB
186 * w32font.c (w32font_encode_char): Leave as unicode if in range.
187 (w32font_open_internal): Get unicode version of textmetrics.
188 Don't enable or disable glyph indices here.
189 (w32font_open): Disable use of glyph indices.
bd187c49 190
12063bc5 191 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
bd187c49 192
e3072df2
CY
1932008-07-30 Chong Yidong <cyd@stupidchicken.com>
194
39dde873 195 * minibuf.c (Vread_buffer_function): Doc fix.
e3072df2 196
bc850333
CY
1972008-07-30 John Paul Wallington <jpw@pobox.com>
198
199 * minibuf.c (read_buffer_completion_ignore_case): New var.
200 (Fread_buffer): Use it.
201
9d9a7716
DN
2022008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
203
204 * systty.h (sensemode): Remove empty #if. Remove reference to
205 BSD_TERMIOS, unused.
206
207 * sysdep.c: Remove reference to DGUX.
208 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
209
210 * config.in: Regenerate.
211
0c34f98e
JR
2122008-07-30 Jason Rumney <jasonr@gnu.org>
213
12063bc5 214 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
0c34f98e 215
c320e90a
JR
2162008-07-29 Jason Rumney <jasonr@gnu.org>
217
12063bc5
JB
218 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
219 is populated.
220 (uniscribe_encode_char): Always use uniscribe.
221 Avoid using context if cache is populated.
c320e90a 222
3f7ead30
JD
2232008-07-29 Jan Djärv <jan.h.d@swipnet.se>
224
225 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
226 open menu.
227
228 * gtkutil.c (menu_nav_ended): Remove.
229 (create_menus): Remove signal connect for menu_nav_ended.
230
639eebe2
CY
2312008-07-28 Chong Yidong <cyd@stupidchicken.com>
232
233 * xdisp.c (redisplay_window): Check return value of
234 compute_window_start_on_continuation_line before forcing a window
235 start.
236
d1f535d2
JR
2372008-07-28 Jason Rumney <jasonr@gnu.org>
238
0e134ea0 239 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
9cac6313 240
0e134ea0
JB
241 * w32term.c (w32_enable_unicode_output, cleartype_active):
242 Remove obsolete display options.
243 (x_draw_glyph_string_background): Don't use old cleartype_active
244 workaround.
245 (w32_initialize): Remove cleartype_active initialization.
246 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
d1f535d2 247
ddaa36e1
AS
2482008-07-28 Andreas Schwab <schwab@suse.de>
249
250 * lisp.h (init_weak_hash_tables, syms_of_font)
251 (xd_read_queued_messages, syms_of_dbusbind): Declare.
252 (remove_hash_entry): Don't declare.
253 * eval.c (maybe_call_debugger): Make static and move before use.
254 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
255 * xdisp.c: Include "gtkutil.h" if USE_GTK.
256 * xterm.h (x_set_frame_alpha): Declare.
257
42ffd097
JD
2582008-07-28 Jan Djärv <jan.h.d@swipnet.se>
259
260 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
261 (create_menus): Connect selection-done to menu_nav_ended.
262
bd6ce2ba
AR
2632008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
264
265 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
266 Set Vx_resource_name to a fallback. Replace read of 'buffered'
267 parameter with read of 'alpha' one.
268 (Qns_frame_parameter): Remove.
269 * nsselection.m (selection-coding-system)
270 (next-selection-coding-system, Vselection_coding_system)
271 (Vnext_selection_coding_system): Drop.
272
583ff3c3
AR
2732008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
274
275 * nsfns.m (do-applescript, do_applescript): Rename to
276 ns-do-applescript, ns_do_applescript, and move within file.
277
9e2a2647
DN
2782008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
279
280 Remove support for Mac Carbon.
281 * mactoolbox.c:
282 * macterm.h:
283 * macterm.c:
284 * macselect.c:
285 * macmenu.c:
286 * macgui.h:
287 * macfns.c:
288 * mac.c: Remove file.
289 * s/darwin.h:
290 * m/intel386.h:
291 * xfaces.c:
292 * xdisp.c:
293 * window.c:
294 * tparam.c:
295 * termhooks.h:
296 * termcap.c:
297 * term.c:
298 * syssignal.h:
299 * sysselect.h:
300 * sysdep.c:
301 * process.c:
302 * lread.c:
303 * lisp.h:
304 * keyboard.c:
305 * image.c:
306 * fringe.c:
307 * frame.h:
308 * frame.c:
309 * fontset.c:
310 * font.h:
311 * font.c:
312 * fns.c:
313 * fileio.c:
314 * emacs.c:
315 * dispnew.c:
316 * dispextern.h:
317 * config.in:
318 * atimer.c:
319 * Makefile.in: Remove code for Carbon
320
7ad8fe5e 3212008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4874e088 322
7ad8fe5e 323 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
69eff41f 324
7ad8fe5e 3252008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
69eff41f 326
7ad8fe5e
MB
327 * macterm.h (kCGBitmapByteOrder32Host): New define for
328 non-universal SDKs.
69eff41f 329
7ad8fe5e
MB
330 * image.c (mac_create_cg_image_from_image, image_load_image_io)
331 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
dcdbbb5d 332
7ad8fe5e
MB
333 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
334 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
dcdbbb5d 335
7ad8fe5e 3362008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
09721b31 337
0e134ea0 338 * w32inevt.c: Include dispextern.h.
09721b31 339
51dc79f8
AS
3402008-07-26 Andreas Schwab <schwab@suse.de>
341
342 * print.c (print_object): Fix off-by-one in last change.
343
dea101f6
JB
3442008-07-25 Juanma Barranquero <lekktu@gmail.com>
345
346 * term.c (syms_of_term): Don't initialize default_orig_pair,
347 default_set_foreground and default_set_background on Windows.
348
11856d4d
JR
3492008-07-25 Jason Rumney <jasonr@gnu.org>
350
0e134ea0
JB
351 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
352 ScriptItemize. Clean up return value checking. Remove unused
353 variables.
354 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
355 shaping engine.
11856d4d 356
0e134ea0
JB
357 * w32font.c (w32font_has_char): Handle the case where we can't
358 determine the script for a character.
11856d4d 359
7bfc0e9e
CY
3602008-07-25 Chong Yidong <cyd@stupidchicken.com>
361
acdadb15
CY
362 * term.c (syms_of_term): Initialize default_orig_pair,
363 default_set_foreground, and default_set_background.
364
5efc6200
CY
365 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
366 clash (bug#86).
367 (getloadavg): Callers changed.
368
7bfc0e9e 369 * image.c (svg_load_image): Fix last change.
c01c4e35
CY
370 (svg_load_image): Use rsvg_handle_get_dimensions to check that
371 image size is valid. Use g_object_unref instead of deprecated
372 rsvg_handle_free to free rsvg handle.
9d7112ed 373 (x_from_xcolors): Don't initialize pixmap (silence compiler).
7bfc0e9e 374
f31cf550
JR
3752008-07-25 Jason Rumney <jasonr@gnu.org>
376
0e134ea0
JB
377 * w32font.c (w32font_encode_char): Encode characters outside BMP as
378 surrogates before looking up glyph index.
379 (w32font_text_extents): Encode as surrogates if falling back to
380 functions that need UTF-16 wide chars.
f31cf550 381
0e134ea0
JB
382 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
383 BMP as surrogates before looking up glyph index.
f31cf550 384
b293d659
CY
3852008-07-25 Chong Yidong <cyd@stupidchicken.com>
386
387 * image.c (svg_load_image): Check for failure in return value of
388 rsvg_handle_get_pixbuf. Free rsvg handle when done.
389
1ada3dab
JR
3902008-07-25 Jason Rumney <jasonr@gnu.org>
391
0e134ea0 392 * w32font.c (Fx_select_font): Reverse sense of second arg.
1ada3dab 393
dbc812e0
SM
3942008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
395
6449674e
SM
396 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
397 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
398
dbc812e0
SM
399 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
400 (PURESIZE): Use it.
401
67725bd8
DN
4022008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
403
340074e9
DN
404 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
405 * m/alpha.h (TEXT_END):
406 * m/ibmrs6000.h (TEXT_END):
407 * m/macppc.h (TEXT_END):
408 * s/darwin.h (TEXT_END):
409 * s/msdos.h (TEXT_END): Remove, unused.
410 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
411 * s/cygwin.h: Remove comment.
412
a11af7f8
DN
413 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
414 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
415 * m/intel386.h (DOT_GLOBAL_START):
416 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
417 (USG): Remove, file not used on USG platforms.
418
67725bd8
DN
419 * Makefile.in (HAVE_X11): Remove empty #else.
420
6420e80c
AS
4212008-07-24 Andreas Schwab <schwab@suse.de>
422
423 * fileio.c (Finsert_file_contents): Properly adjust undo list
424 after format conversion.
425
d1c38b57
JD
4262008-07-24 Jan Djärv <jan.h.d@swipnet.se>
427
428 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
429 (menu_nav_ended): Remove.
430 (create_menus): Remove signal connect for menu_nav_ended.
431 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
432 create_menus.
433 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
434
597634cb
JR
4352008-07-23 Jason Rumney <jasonr@gnu.org>
436
dbc812e0
SM
437 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
438 with opened font.
439 (w32font_open): Set font type to gdi.
4b135503 440
dbc812e0 441 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
597634cb 442
7c799cf5
DN
4432008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
444
7a14f2a0
DN
445 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
446 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
447 defines it.
448 * unexec.c (ADDR_CORRECT): Define unconditionally.
449
450 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
451
f914a6bf
DN
452 * unexec.c: Remove code depending on !COFF and USG, the file is
453 not used for such systems.
454
268b24ee
DN
455 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
456 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
457 (LD_SWITCH_SYSTEM_1): Remove, update users.
458
911109b1
DN
459 * s/darwin.h (DATA_END):
460 * m/intel386.h (DATA_END):
461 * m/ibmrs6000.h (DATA_END):
462 * m/alpha.h (DATA_END): Remove, unused.
911109b1 463
77ccee09
DN
464 * config.in: Regenerate.
465 * s/ms-w32.h (subprocesses): Define unconditionally.
466 * s/template.h (subprocesses): Update comment.
467 * s/vms.h (subprocesses):
468 * s/usg5-4.h (subprocesses):
469 * s/hpux10-20.h (subprocesses):
470 * s/gnu-linux.h (subprocesses):
471 * s/cygwin.h (subprocesses):
472 * s/bsd-common.h (subprocesses):
473 * s/aix4-2.h (subprocesses):
474 * s/darwin.h (subprocesses): Do not define, defined by default now.
475
476 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
477 Remove all references.
478 (temacs): Add GNUStep specific ld flags.
479
7c799cf5
DN
480 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
481 similarly to what X does.
482
712b2de1
AR
4832008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
484
485 * nsfns.m (x-list-fonts): Remove.
486 (syms_of_nsfns): Drop the x-list-fonts declaration.
487 * nsterm.m: Get rid of remaining "//" comments.
488
0d4e1b5f
CY
4892008-07-22 Chong Yidong <cyd@stupidchicken.com>
490
491 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
492
493 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
494 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
495 (Fns_own_selection_internal, Fx_disown_selection_internal)
496 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
497
498 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
499 ... */' style of docstrings. Doc fixes.
500
952913d4
DN
5012008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
502
0ecc3474 503 * terminfo.c (UP, BC, PC): Undo previous change.
0d4e1b5f 504
952913d4
DN
505 * nsfns.m: Rename ns prefixed functions/variables to the
506 corresponding x versions. Update references.
507
02d8b017
SM
5082008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
509
510 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
511
11b8fe14
DN
5122008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
513
02d8b017
SM
514 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
515 Remove forwarding functions.
cc98b6a0
DN
516 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
517 non-static.
518 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
519 non-static.
520 (ns_frame_parm_handlers): Use the new names.
521 (syms_of_nsfns): Move to the end of file.
522
1baa6236
DN
523 * nsterm.m (syms_of_nsterm): Move to the end of file.
524
11b8fe14
DN
525 * dispnew.c (init_display): Remove code for X10.
526
8dcaeba2
JR
5272008-07-22 Jason Rumney <jasonr@gnu.org>
528
02d8b017
SM
529 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
530 bare drive.
8dcaeba2 531
df2142db
AR
5322008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
533
534 * nsgui.h:
535 * nsfont.m:
536 * nsmenu.m:
537 * nsterm.m: Change PENDINGS to FIXME / TODO / XXX.
538
365bac35
AR
5392008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
540
541 * nsterm.m (syms_of_nsterm): Remove debugging println.
542
6a0f0f86
DR
5432008-07-22 David Reitter <david.reitter@gmail.com>
544
a3c83618 545 * nsfns.m (do_applescript, F_do_applescript): NS version of the
6a0f0f86
DR
546 Carbon implementation of the same functionality: execute arbitrary
547 AppleScript code.
548
51d5ef9f
AR
5492008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
550
a3c83618 551 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
51d5ef9f
AR
552 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
553 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
554 (Fx_display_mm_height, Fx_display_mm_width)
555 (Fx_display_backing_store, Fx_display_visual_class)
556 (Fx_display_save_under, Fx_open_connection)
557 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
558 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
559 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
560 (Fx_display_pixel_width, Fx_display_pixel_height)
561 (Fx_display_usable_bounds, Fx_display_planes)
562 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
563 ... */' style of docstrings.
564
6efac844
DN
5652008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
566
b8ff87cc
DN
567 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
568 on this platform.
569 (mips):
570 * m/iris4d.h (mips): Do not define.
571 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
572
92d1a7a3
DN
573 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
574
de08d1be
CY
575 * image.c:
576 * nsfns.m:
577 * nsselect.m:
578 * nsterm.h:
9e50ff0c
DN
579 * nsterm.m: Rename ns prefixed functions/variables to the
580 corresponding x versions. Update references.
581
ff486501
DN
582 * m/ibms390x.h (NO_REMAP): Do not undefine.
583
6efac844
DN
584 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
585
ea9de876
CY
5862008-07-21 Chong Yidong <cyd@stupidchicken.com>
587
588 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
589 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
590 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
591 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
592 (Fns_display_mm_height, Fns_display_mm_width)
593 (Fns_display_backing_store, Fns_display_visual_class)
594 (Fns_display_save_under, Fns_open_connection)
595 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
596 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
597 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
598 (Fns_display_pixel_width, Fns_display_pixel_height)
599 (Fns_display_usable_bounds, Fx_display_planes)
600 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
601
b42f4115 6022008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
3965adab
CY
603
604 * print.c (print_object): Check print_depth before searching for
605 circularities.
606
c0894fb9
MA
6072008-07-21 Michael Albinus <michael.albinus@gmx.de>
608
609 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
610 only sprintf.
611
d90bfd1c
KH
6122008-07-21 Kenichi Handa <handa@m17n.org>
613
614 * ftfont.c (adjust_anchor): Check if DetalValue is not NULL.
615
8e2911c2
AS
6162008-07-20 Andreas Schwab <schwab@suse.de>
617
618 * syntax.c (find_start_pos, find_start_value)
619 (find_start_value_byte, find_start_begv, find_defun_start)
dbc812e0 620 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
8e2911c2 621
98a01702
DN
6222008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
623
624 * s/sol2-3.h: Insert contents of s/sol2.h.
625 (LD_SWITCH_SYSTEM): Remove redundant definition.
626 * s/sol2.h: Remove, unused.
627
704a3a2d
AR
6282008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
629
dbc812e0 630 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
704a3a2d
AR
631
6322008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
e5e2baab
AR
633
634 * Makefile.in (ns_appdir): Fix typo in find command.
635
89f1e540
DN
6362008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
637
c788afce
DN
638 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
639
89f1e540
DN
640 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
641 added not supported anymore.
642
e5e2baab 643 * s/usg5-4-2.h (LIBS_SYSTEM):
89f1e540
DN
644 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
645
646 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
647 * s/lynxos.h (GETPGRP_NO_ARG):
648 * s/hpux10-20.h (NO_SIOCTL_H):
649 * s/gnu.h (GETPGRP_NO_ARG):
650 * s/gnu-linux.h (NO_SIOCTL_H):
651 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
652 * s/cygwin.h (GETPGRP_NO_ARG):
653 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
654 (C_DEBUG_SWITCH): Remove duplicate definition.
655
656 * m/ibms390.h: Remove boilerplate comments.
657
658 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
659
660 * process.c (HAVE_SERIAL): Consolidate ifdefs.
661 (wait_reading_process_output): Remove code for SunOS, platform not
662 supported anymore. Use SOLARIS2 instead of sun.
663
ed96cde8
AR
6642008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
665
666 * font.c (font_open_by_name): Under NS, default lface height to zero.
667 (font_open_for_lface): Under NS, set size based on frame fontsize.
668 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
669 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
670
6712008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
672
673 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
674 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
675 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
676 YES/NO.
677 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
678 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
679 * Makefile.in (clean): Clear out build destination dir.
680
5a2d7ab6
AR
6812008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
682
683 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
684 xterm, xselect.
685 * lisp.h: Remove declaration of hash_remove.
686 * nsgui.h: Remove redefinitions of hash_remove.
687 * fns.c (hash_remove): Rename to hash_remove_from_table.
688
c0230162
AR
6892008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
690
691 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
692 strdup() the family UTF8String before modifying it. Patch due to
693 Seiji Zenitani.
694
45d325c4
AR
6952008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
696
697 * nsfns.m (ns_set_background_color): Apply patch from Chong Yidong to
698 fix crash.
699 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
700 NS_FACE_BACKGROUND with 0 instead of nil.
701 * nsfont.m (nsfont_draw): Same.
702
b83f1cd0
CY
7032008-07-18 Chong Yidong <cyd@stupidchicken.com>
704
705 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
706
add4eecc
DN
7072008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
708
709 * puresize.h (BASE_PURESIZE): Increase to 1240000.
710
69955d31
YM
7112008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
712
713 * gtkutil.c: Include <config.h> instead of "config.h".
714
715 * lisp.h (Foverlay_buffer): Add EXFUN.
716
717 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
718 child process to complete child_setup. Undo 2005-09-21 change.
719
720 * s/darwin.h: Mention setsid after vfork.
721
08b3caa9 7222008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2d64e9bb
YM
723
724 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
725 Depend on macgui.h.
726
727 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
728 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
729
730 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
731 and f19.
732 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
733
734 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
735 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
736 Remove enumerators.
737
738 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
739 Check if FACE_FROM_ID returns NULL.
740
8d59c5ed
JR
7412008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
742
ba60bd44
JB
743 * w32inevt.c (change_frame_size): Remove extern declaration.
744 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
745 change_frame_size.
8d59c5ed 746
ba60bd44 7472008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
db94bf9c
AR
748
749 * getloadavg.c: Revert last change (2008-07-15).
750
ba60bd44 7512008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
06b62770
AR
752
753 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
754 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc) set
755 from configure.
756
2749d28e
DN
7572008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
758
35ad0545
DN
759 * s/sol2.h:
760 * s/sol2-4.h: Reorganize conditionals.
761
2749d28e
DN
762 * ecrt0.c: Remove code depending on m68000, not used anymore.
763
764 * fns.c (hash_remove): Make static.
765 * lisp.h (hash_remove): Don't prototype.
766
767 * m/ibmrs6000.h:
768 * m/ibms390x.h:
769 * m/macppc.h: Remove boilerplate comments.
770
771 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
772 Solaris, which does not need them.
773
774 * m/vax.h: Remove comments about unsupported systems.
775
776 * s/darwin.h: Reorganize ifdefs.
777
ba60bd44
JB
7782008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
779
780 * config.in:
781 * dispextern.h:
782 * frame.c:
783 * image.c:
784 * nsfns.m:
785 * nsfont.m:
786 * nsgui.h:
787 * nsmenu.m:
788 * nsterm.h:
789 * nsterm.m:
790 * s/darwin.h:
791 * xdisp.c: Change most cases of PENDING to TODO, some to FIXME or XXX.
6fb5f7da 792
32cc3925
AS
7932008-07-17 Andreas Schwab <schwab@suse.de>
794
795 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
796
facfbbbd
SM
7972008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
798
799 Use SDATA. Follow coding convention of placing operators at
800 beginning of next line rather than end of previous line, and placing
801 spaces around infix operators.
802
803 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
804 in case it was defined already.
805 USE @GNUSTEP_MAKEFILES@ rather than envvars.
806 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
807 ns_default.
808 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
809 Lisp_Objects.
810 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
811 (ns_defined_color, ns_color_to_lisp): Declare.
812 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
813 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
814 it's accepted even with USE_LISP_UNION_TYPE.
815 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
816 (update_frame_tool_bar): Remove apparently obsolete tests for
817 non-integerness of f->tool_bar_lines.
818 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
819 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
820 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
821 (nsfont_open): Don't confuse NULL for Qnil.
822 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
823 * menu.h (find_and_call_menu_selection):
824 * menu.c (find_and_call_menu_selection): Use just int for vector size.
825 (find_and_return_menu_selection): Always return something.
826 * frame.h: Include dispextern.h for Display_Info.
827 (display_x_get_resource): Declare.
828
ba60bd44 8292008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
122e9f8f
AR
830
831 * syntax.c: Remove stdio.h include accidentally introduced in
832 Emacs.app commit.
833 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
834 NS_IMPL_COCOA.
835 * keyboard.c (handle_async_input, input_available_signal): Remove
836 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
837
0bcfd7d7
SM
8382008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
839
6882361b
SM
840 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
841 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
842 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
843 Use SDATA.
844
0bcfd7d7
SM
845 * keymap.c: Remove all NS-specific code.
846 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
847 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
848 where_is_preferred_modifier, return a different value depending on how
849 preferred is the binding.
850 (where_is_internal): Adjust accordingly.
851 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
852 Adjust to new preferred_sequence_p.
853 (syms_of_keymap): Declare `where-is-preferred-modifier'.
854 * keyboard.c (parse_solitary_modifier): Not static any more.
855 * keyboard.h (parse_solitary_modifier): Declare.
856
720f3147
AS
8572008-07-16 Andreas Schwab <schwab@suse.de>
858
859 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
860 of easymenu.
861
01e19fea
CY
8622008-07-16 Chong Yidong <cyd@stupidchicken.com>
863
864 * xdisp.c (move_it_in_display_line): Account for word wrap, so
865 that we don't move off the line.
866
4c89a3e0
SM
8672008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
868
869 * keyboard.c (Qsuper): Remove.
870 (parse_menu_item): Don't call where_is_internal specially for NS.
871
586b975c
DN
8722008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
873
3ec8ef33
DN
874 * s/gnu-linux.h: Remove boilerplate comments.
875
d4d080b6
DN
876 * m/alpha.h (__ELF__): Consolidate conditions.
877
7ab56cc4
DN
878 * m/m68k.h (linux): Use GNU_LINUX instead.
879 Remove boilerplate comments.
880
586b975c 881 * m/intel386.h: Undo reactoring from previous change.
7ab56cc4
DN
882 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
883 too, remove dead code.
884 (linux): Use GNU_LINUX instead.
586b975c 885
5cc9d48a
JR
8862008-07-16 Jason Rumney <jasonr@gnu.org>
887
4c89a3e0 888 * w32gui.h: Repeat 26 June changes lost by last change.
5cc9d48a 889
6b0273cd
DN
8902008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
891
132d0475
DN
892 * systty.h: Remove code for Aix on 386, unsupported platform.
893
894 * s/ms-w32.h: Remove boilerplate comments.
895 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
896
897 * s/gnu-linux.h (TERM): Remove support.
898 (HAVE_SYSVIPC): Remove, unused.
899 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
900 for this system.
901
902 * process.c: Remove support for IRIS, unused.
903 Remove support for TERM, not relevant anymore.
904
905 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
906 used with the definition.
907
908 * s/aix4-2.h (static): Do not undef.
909
910 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
911 only used on Aix.
912 (HAVE_SYSVIPC): Remove, unused.
913
914 * m/hp800.h (CANNOT_DUMP): Do not undef.
915
916 * m/alpha.h: Fix comment.
917
8111c2d8
DN
918 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
919 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
920 used by this configuration.
921 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
922 * unexec.c: Remove code depending on HPUX and
923 USG_SHARED_LIBRARIES, not used with this file. Remove code
924 depending on IRIS, unused. Remove if 0-ed code.
925
e9a57a88
DN
926 * s/template.h: Remove comments about static.
927
4c89a3e0
SM
928 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
929 Remove if 0-ed code.
c7607b94
DN
930 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
931 were the same as the default.
932 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
933 Remove boilerplate comments.
934 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
935 (HAVE_SYSVIPC): Remove, unused.
936 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
937
ff841b30
DN
938 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
939 Remove boilerplate comments.
940 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
941 Remove boilerplate comments.
942 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
943 Remove boilerplate comments.
944 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
945
586b975c
DN
946 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
947 USG systems which do not use DATA_SEG_BITS.
948 Refactor code. Remove boilerplate comments.
949
dc89925b 950 * m/ibms390.h:
dc89925b
DN
951 * m/m68k.h:
952 * s/bsd-common.h:
953 * s/cygwin.h:
954 * s/darwin.h:
955 * s/freebsd.h:
956 * s/gnu.h:
957 * s/msdos.h: Remove boilerplate comments.
958
96b72211
DN
959 * m/iris4d.h: Remove boilerplate comments and code for systems that
960 do not use this file.
961 (IRIS_4D): Remove, unused.
962
c3b5f109
DN
963 * m/mips.h: Remove boilerplate comments and code for systems that
964 do not use this file.
96b72211 965 (SIGN_EXTEND_CHAR):
c3b5f109
DN
966 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
967 * unexmips.c: Remove file, unused.
968
6b0273cd
DN
969 * editfns.c (Fuser_full_name): Replace the only use of
970 USER_FULL_NAME with its value.
971 * config.in: Regenerate.
972
ba60bd44 9732008-07-16 David Reitter <david.reitter@gmail.com>
6fbcfb6f 974
ba60bd44
JB
975 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
976 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
6fbcfb6f 977
44ac2d3e
GM
9782008-07-16 Glenn Morris <rgm@gnu.org>
979
980 * emacs.c (system-type): Doc fix.
981
0a170079
SM
9822008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
983
984 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
985 If the cache doesn't work, let's fix it, rather than work around it.
986
ba60bd44 9872008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
a68fda4a
AR
988
989 * Makefile.in: Correct additions for nsfont.o in last commit.
990 * nsfont.m: New file (forgot last commit).
991
ba60bd44 9922008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
edfda783
AR
993
994 Changes and additions for NeXTstep windowing system (Cocoa and
995 GNUstep) support.
996
ba60bd44 997 * Makefile.in:
edfda783
AR
998 * config.in: Support defines and build commands for NS port.
999 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
1000 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
1001 * callproc.c (set_initial_environment): Initialize
1002 Vprocess_environment under CANNOT_DUMP (fixes crash when
1003 batch-compiling for bootstrap, due to Chris Hall).
1004 * dispextern.h: Include nsgui.h and add needed typedefs under NS
1005 windowing.
1006 (struct face): Add synth_ital field.
1007 * dispnew.c: Include nsterm.h when compiling under NS windowing.
1008 (init_display): Initialize Vinitial_window_system to "ns" when so
1009 compiled.
1010 * emacs.c: Include GSConfig.h when compiling under GNUstep.
1011 (display_arg): Use under NS.
1012 (main): Under NS, allocate autorelease pool and handle command line
1013 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
1014 (standard_args): Add NS-specific args.
1015 (shut_down_emacs): Shut down NS terminal if compiled under NS.
1016 * font.c (DEFAULT_ENCODING): New variable.
1017 (font_find_for_lface): Use it.
1018 (syms_of_font): Load syms_of_nsfont under NS.
1019 * font.h: Declare nsfont_driver when compiled under NS.
1020 * fontset.c: When compiling under NS, include nsterm.h.
1021 (fontset_from_font): Autoconstruct fontset under NS.
1022 * frame.c (various): Under NS, include nsterm.h, add Qns window system
1023 symbol, document and use it.
1024 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
1025 patch to fix crash due to different init order, due to Chris Hall and
1026 Yamamoto Mitsuharu.
1027 (do_switch_frame): When for_deletion under Cocoa, add
1028 Fraise_frame(Qnil).
1029 (x_set_frame_parameters): Ensure font attribute changes are picked up.
1030 (x_get_arg): Allow "yes" and "no" as boolean values.
1031 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
1032 Qright under Cocoa.
1033 (focus-follows-mouse): Default to 0 under NS.
1034 * frame.h (enum output_method): Add output_ns.
1035 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
1036 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
1037 (FRAME_WINDOW_P): NS-specific definition.
1038 * fringe.c (max_used_fringe_bitmap): Make public.
1039 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
1040 (getloadavg): Use NeXT code under descendant OS's.
1041 * image.c (includes and header section, x_create_bitmap_from_data)
1042 (x_create_bitmap_from_file, free_bitmap_record, image_background)
1043 (image_background_transparent, x_clear_image_1)
1044 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
1045 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
1046 (x_to_xcolors, x_from_xcolors, x_disable_image)
1047 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
1048 other GUIs, including XPM support using code originally written for
1049 Carbon GUI.
0a170079 1050 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
edfda783
AR
1051 using NS API.
1052 (image_ascent): Use font metrics macros instead of direct struct field
1053 access.
1054 * keyboard.c (includes): Add nsterm.h when compiling under NS.
1055 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
1056 Also, handle NS as GTK for menu bar purposes.
1057 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
1058 toolkit where they differ.
1059 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
1060 use cachelist, still needed under NS.
6ddc6cca 1061 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
edfda783
AR
1062 (struct widget_value): Define it here for menu.c.
1063 * keymap.c (includes): Include modifier internals.
1064 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
1065 NS.
1066 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
1067 support for preferring sequences using certain modifiers, specified by
1068 the FIRSTONLY argument.
1069 * lisp.h (hash_remove): Rename to avoid name clash when compiling
1070 under NS GNUstep implementation.
1071 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
1072 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
1073 * menu.c: Include nsterm.h under NS.
1074 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
1075 (free_menubar_widget_tree_value, update_submenu_strings)
1076 (find_and_call_menu_selection): Treat NS as X and NT.
1077 (find_and_return_menu_selection): New function, used for popup menus.
ba60bd44
JB
1078 * nsgui.h:
1079 * nsterm.h:
1080 * nsfns.m:
1081 * nsimage.m:
1082 * nsmenu.m:
1083 * nsselect.m:
edfda783
AR
1084 * nsterm.m: New files.
1085 * process.c (wait_reading_process_output): Under NS, call ns_select()
1086 instead of plain select().
1087 * syntax.c (char_quoted): Under NS, avoid a crash when called near
1088 beginning of buffer.
1089 * sysselect.h (init_process): Rename when compiling under Cocoa to
1090 avoid name conflict.
1091 * termhooks.h (display_info): Add ns_display_info to union.
1092 * terminal.c (Fterminal_live_p): Add ns to terminal types.
1093 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
1094 COCOA environment.
1095 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
1096 unexec() signature. (Note, this will dump, but the resulting file
1097 crashes; unexosx is used instead; keeping around for reference and
1098 possible aid in getting dump working under GNUstep.)
1099 * w32gui.h (button_type, widget_value): Remove definitions (now in
1100 keyboard.h).
1101 * window.c: Include nsterm.h when compiling under NS.
1102 * xdisp.c (includes): Include nsterm.h when compiling under NS.
1103 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
1104 other GUI windowing systems.
1105 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
1106 GTK.
1107 (x_consider_frame_title): Under NS, set icon type and frame
1108 modified-state indicator; use ns_set_name_as_filename() when using
1109 formatted title.
1110 (update_window_cursor): Make public when compiling under NS.
1111 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
1112 (hourglass_atimer, Vhourglass_delay
1113 * xfaces.c (header section, init_frame_faces, clear_font_table)
1114 (defined_color, unload_color, x_face_list_fonts)
6ddc6cca
SM
1115 (prepare_face_for_display): Add NS support parallel to other GUIs.
1116 Emulate GCs like other non-X GUIs.
edfda783
AR
1117 (split_font_name): Don't lowercase font name under NS.
1118 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
1119 under NS.
1120 * s/darwin.h: Add support for compilation under NS.
1121
1391cd54
JR
11222008-07-15 Jason Rumney <jasonr@gnu.org>
1123
6ddc6cca
SM
1124 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
1125 (w32_show_hourglass): Rename from show_hourglass.
1126 (w32_hide_hourglass): Rename from hide_hourglass.
1127 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
1128 (Vhourglass_delay): Declare extern.
1129 (hourglass_started): Remove.
1391cd54 1130
6ddc6cca
SM
1131 * xdisp.c (Vhourglass_delay): Remove static.
1132 (hourglass_started, start_hourglass, cancel_hourglass):
1133 Don't include these versions on WINDOWSNT.
1391cd54 1134
1885ab29
AR
11352008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
1136
6ddc6cca 1137 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
20d6dc02 1138 variables (formerly in xfns.c).
1885ab29
AR
1139 (show_hourglass, hide_hourglass): New prototypes (same).
1140 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
1141 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
20d6dc02 1142 in xfns.c).
1885ab29
AR
1143 (syms_of_xdisp): Declare/initialize display-hourglass,
1144 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
1145 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
20d6dc02 1146 formerly in xfns.c.
1885ab29
AR
1147 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
1148 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
1149 (start_hourglass, cancel_hourglass): Remove.
1150 (show_hourglass, hide_hourglass): Remove prototypes and static
1151 modifiers.
1152 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
1153 hourglass_atimer, hourglass_shown_p declaration/initialization.
1154 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
1155 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
1156 (start_hourglass, cancel_hourglass): Remove.
1157 (show_hourglass, hide_hourglass): Remove prototypes and static
1158 modifiers.
1159 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
1160 hourglass_atimer, hourglass_shown_p declaration/initialization.
1161 * w32fns.c (display_hourglass_p, Vhourglass_delay)
1162 (DEFAULT_HOURGLASS_DELAY): Remove.
1163 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
1164 hourglass_shown_p declaration/initialization.
1165
3faa984f
JR
11662008-07-14 Jason Rumney <jasonr@gnu.org>
1167
6ddc6cca
SM
1168 * w32fns.c (w32_get_arg): Remove wrapper function.
1169 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
1170 directly.
1171 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
3faa984f 1172
2f73901f
KH
11732008-07-14 Kenichi Handa <handa@m17n.org>
1174
1175 * xfont.c (xfont_open): Add workaround for X's bug.
1176
11da284d
KH
11772008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
1178
1179 * fontset.c: Include <stdio.h> unconditionally.
1180
944cc4a8
MA
11812008-07-13 Michael Albinus <michael.albinus@gmx.de>
1182
1183 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
1184 for filtering.
1185
bdee2ef3
DN
11862008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
1187
1188 * s/vms.h: Use __GNUC__ instead of _GNUC_.
1189
1190 * m/macppc.h:
1191 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
1192
1193 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
944cc4a8
MA
1194 (SPECIAL_EMACS_INT):
1195 * m/ia64.h (SPECIAL_EMACS_INT):
bdee2ef3
DN
1196 * m/amdx86-64.h (SPECIAL_EMACS_INT):
1197 * s/gnu.h (NLIST_STRUCT):
1198 * aix4-2.h (X11R5_INHIBIT_I18N):
1199 * s/gnu-linux.h (LINUX):
1200 * s/msdos.h (HAVE_FACES):
1201 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
1202
944cc4a8 1203 * systty.h:
bdee2ef3
DN
1204 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
1205 anymore.
1206
bba104c1
DN
12072008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1208
1209 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
1210 always defined as int.
1211
1212 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
1213 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
1214 * s/gnu-linux.h (HAVE_WAIT_HEADER):
1215 * s/freebsd.h (HAVE_WAIT_HEADER):
1216 * s/bsd-common.h (HAVE_UNION_WAIT):
1217 * s/aix4-2.h (HAVE_WAIT_HEADER):
1218 * m/mips.h (HAVE_UNION_WAIT):
1219 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
1220 (COFF, static): Do not define, they are undefined later in the file.
1221
1222 * process.c (update_status): Don't use a union.
1223 (status_convert):
1224 (sigchld_handler): Use int instead of WAITTYPE.
1225
e433031a
CY
12262008-07-12 Chong Yidong <cyd@stupidchicken.com>
1227
1228 * indent.c (Fvertical_motion): Restore hscroll before moving to
1229 goal column.
1230
3bfb4d48
DN
12312008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
1232
1233 * lisp.h: Remove left over code.
1234
e7c9048f
AS
12352008-07-11 Andreas Schwab <schwab@suse.de>
1236
7e770c85
AS
1237 * lisp.h: Fix logic in last change.
1238
e7c9048f
AS
1239 * menu.h: New file.
1240 * menu.c: Include it.
1241 * xmenu.c: Likewise.
1242 * Makefile.in: Update dependencies.
1243
38aaf336
KH
12442008-07-11 Kenichi Handa <handa@m17n.org>
1245
1246 * fontset.c (fontset_from_font): Cancel the previous change.
1247
6e5cb96f
DN
12482008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
1249
1250 * lisp.h:
1251 * w32heap.c:
1252 * emacs.c:
1253 * alloc.c: Replace all references of NO_UNION_TYPE with
1254 USE_LISP_UNION_TYPE.
1255
1256 * m/xtensa.h (NO_UNION_TYPE):
1257 * m/vax.h (NO_UNION_TYPE):
1258 * m/template.h (NO_UNION_TYPE):
1259 * m/sparc.h (NO_UNION_TYPE):
1260 * m/mips.h (NO_UNION_TYPE):
1261 * m/macppc.h (NO_UNION_TYPE):
1262 * m/m68k.h (NO_UNION_TYPE):
1263 * m/iris4d.h (NO_UNION_TYPE):
1264 * m/intel386.h (NO_UNION_TYPE):
1265 * m/ibms390x.h (NO_UNION_TYPE):
1266 * m/ibms390.h (NO_UNION_TYPE):
1267 * m/ibmrs6000.h (NO_UNION_TYPE):
1268 * m/ia64.h (NO_UNION_TYPE):
1269 * m/hp800.h (NO_UNION_TYPE):
1270 * m/arm.h (NO_UNION_TYPE):
1271 * m/amdx86-64.h (NO_UNION_TYPE):
1272 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
1273 defining it the same.
1274
e0f47a68
CY
12752008-07-10 Chong Yidong <cyd@stupidchicken.com>
1276
ba60bd44 1277 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
e0f47a68 1278
c5e7567d
DN
12792008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
1280
1281 * src/fileio.c:
1282 * src/sysdep.c
1283 * src/systty.h:
1284 * src/m/ibmrs6000.h:
1285 * src/m/iris4d.h:
1286 * src/s/aix4-2.h:
1287 * src/s/freebsd.h:
1288 * src/s/gnu-linux.h:
1289 * src/s/hpux10-20.h:
1290 * src/s/hpux11.h:
1291 * src/s/netbsd.h:
1292 * src/s/sol2-3.h:
1293 * src/s/sol2-4.h:
1294 * src/s/sol2.h:
1295 * src/s/usg5-4.h:
1296 * src/s/vms.h: Remove references to unused variables.
1297
bb658864
AS
12982008-07-10 Andreas Schwab <schwab@suse.de>
1299
1300 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
1301 pattern before matching the generic family.
1302
3d3db608
DN
13032008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
1304
a0ce9ab7 1305 * unexec.c:
3460e0b9
DN
1306 * s/vms.h:
1307 * s/usg5-4-2.h:
1308 * s/sol2-5.h:
1309 * s/freebsd.h:
1310 * s/darwin.h: Remove dead code.
1311
ad76189a
DN
1312 * m/template.h:
1313 * m/sparc.h:
1314 * m/mips.h:
1315 * m/m68k.h:
1316 * m/iris4d.h:
1317 * m/intel386.h:
1318 * m/ibms390x.h:
1319 * m/ibms390.h:
1320 * m/ia64.h:
1321 * m/hp800.h:
1322 * m/arm.h:
1323 * m/amdx86-64.h: Remove dead code and references to unused
1324 and compiler defined symbols.
1325
d2b5bbda
DN
1326 * unexmips.c:
1327 * unexelf.c: Remove references to desupported systems.
1328
40dde9d1
DN
1329 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
1330
21133394
DN
1331 * m/powermac.h: Remove boilerplate comments.
1332 (NO_REMAP): Remove unused definition.
1333
3d3db608
DN
1334 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
1335 define them.
1336
c8e0e16d
KH
13372008-07-10 Kenichi Handa <handa@m17n.org>
1338
1339 * xfont.c (xfont_open): Log the reason of failure.
1340
3cba9369
SM
13412008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
1342
1343 * fontset.c (fontset_get_font_group):
1344 * font.c (font_check_otf): Specify argument types.
1345
73353585
KH
13462008-07-09 Kenichi Handa <handa@m17n.org>
1347
0e17387a
KH
1348 * coding.c (detect_coding_utf_8): Set detect_info->found only when
1349 non-ASCII char is found.
1350
73353585
KH
1351 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
1352 (reorder_font_vector): Change the arg preferred_family to font.
1353 Prefer the spec matching with font.
1354 (fontset_get_font_group): New function.
1355 (fontset_find_font): Change the format of an element of a realized
1356 fontset. Use fontset_get_font_group.
1357 (fontset_font): Try the current fontset, the default fontset, the
1358 fallbacks of the current fonset, and the fallbacks of the default
1359 fontset in this order.
1360 (face_for_char): Delete the shortcut to use the current font.
1361 (fontset_from_font): Don't set fonts for Latin in the fontset.
1362
1363 * font.h (font_make_object, font_match_p): Adjust prototypes.
1364
1365 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
1366
1367 * font.c (font_make_object): New arg entity and pixelsize.
1368 (font_check_otf_features, font_check_otf): New functions.
1369 (font_match_p): Check :lang, :script, and :otf properties.
1370
1371 * xfont.c (xfont_open): Adjust it for the change of
1372 font_make_object.
e5d05978 1373 (xfont_text_extents): Fix initial setting of metrics.
73353585
KH
1374
1375 * ftfont.c (struct ftfont_info): New member index, delete member
1376 fc_charset_idx. Make the member order compatible with struct
1377 xftfont_info.
1378 (fc_charset_table): Change charset names to registry names.
1379 (ftfont_pattern_entity): Delete the args registry and
1380 fc_charset_idx. Change the value of :font-entity property
1381 to (FONTNAME . INDEX). Always set :registry property to
1382 `iso10646-1'.
1383 (struct ftfont_cache_data): New struct.
1384 (ftfont_lookup_cache): New arg for_face.
1385 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
1386 (ftfont_driver): Set the member otf_capability.
1387 (ftfont_get_charset): Adjust it for the change of
1388 fc_charset_table.
1389 (OTF_TAG_SYM): New macro.
1390 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
1391 for the change of fc_charset_table.
1392 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
1393 ftfont_pattern_entity. Add FC_INDEX to objset.
1394 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
1395 and ftfont_pattern_entity.
1396 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
1397 font_make_object, struct ftfont_info.
1398 (ftfont_has_char): Use ftfont_get_fc_charset.
1399 (ftfont_otf_features, ftfont_otf_capability): New functions.
1400 (ftfont_shape): Use ftfont_get_otf.
e5d05978 1401 (ftfont_text_extents): Fix initial setting of metrics.
73353585
KH
1402
1403 * xftfont.c (struct xftfont_info): New member ft_size. Make the
1404 member order compatible with struct ftfont_info.
1405 (xftfont_open): Add FC_CHARSET to the pattern. Set
1406 xftfont_info->ft_size. Don't unlock the face. Check BDF
1407 properties if appropriate.
1408 (xftfont_close): Unlock the face.
1409 (xftfont_anchor_point, xftfont_shape): Deleted.
1410 (syms_of_xftfont): Don't set members anchor_point and shape of
1411 xftfont_driver.
1412
1413 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
1414 font_make_object.
1415
1416 * w32font.c (w32font_open): Adjust it for the change of
1417 font_make_object.
1418 (w32font_open_internal): Don't set properties of font_object here.
1419
7f000038
CY
14202008-07-08 Chong Yidong <cyd@stupidchicken.com>
1421
830aab93
CY
1422 * macfns.c (x_create_tip_frame):
1423 * w32fns.c (x_create_tip_frame):
1424 * xfns.c (x_create_tip_frame): Pass parameter argument to
1425 face-set-after-frame-default.
1426
7f000038
CY
1427 * xfaces.c (Finternal_merge_in_global_face): Save merged
1428 attributes for the default face back into the face vector.
1429
85cf8992
AS
14302008-07-08 Andreas Schwab <schwab@suse.de>
1431
1432 * fontset.h: Declare fontset_from_font. Don't declare
1433 new_fontset_from_font and fontset_from_font_name.
1434 * xterm.c: Include "fontset.h".
1435 * Makefile.in (xterm.o): Update dependencies.
1436
4a00783e
GM
14372008-07-08 Glenn Morris <rgm@gnu.org>
1438
1439 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
1440 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
1441
4d2d5f5f
CY
14422008-07-07 Chong Yidong <cyd@stupidchicken.com>
1443
1444 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
1445 (x_set_frame_parameters): Don't bind it.
1446
dfe66c5b
JB
14472008-07-07 Juanma Barranquero <lekktu@gmail.com>
1448
1449 * w32fns.c (map_w32_filename): Declare extern.
1450
ec7e221c
JR
14512008-07-07 Jason Rumney <jasonr@gnu.org>
1452
dfe66c5b 1453 * w32term.c (WS_EX_LAYERED): Define if not already.
ec7e221c 1454
fe5d61c4
CY
14552008-07-06 Chong Yidong <cyd@stupidchicken.com>
1456
1457 * xfaces.c (set_font_frame_param): Don't try to set the font
1458 parameter if it is still unspecified in the lface.
1459
9204cb8b
CY
14602008-07-05 Chong Yidong <cyd@stupidchicken.com>
1461
0a143d3a
CY
1462 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
1463 face if it didn't already exist.
1464
9204cb8b
CY
1465 * xdisp.c (try_window_id): Give up if word-wrapping is on.
1466
6c95e70d
AS
14672008-07-05 Andreas Schwab <schwab@suse.de>
1468
dfe66c5b 1469 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
6c95e70d 1470
59230395
CY
14712008-07-05 Chong Yidong <cyd@stupidchicken.com>
1472
1473 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
1474 word-wrapping.
1475 (IT_DISPLAYING_WHITESPACE): New macro.
1476 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
1477 when word-wrapping. Simplify word-wrapping logic. Use correct
1478 pixel positions when saving copies of the iterator.
1479 (display_line): Use proper wrap point if the last character on a
1480 line was preceded by whitespace.
1481
d7c664f3
SM
14822008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
1483
1484 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
1485
9ffc8a3a
KH
14862008-07-04 Kenichi Handa <handa@m17n.org>
1487
1488 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
1489
1490 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
1491
946598bf
JR
14922008-07-02 Jason Rumney <jasonr@gnu.org>
1493
d7c664f3
SM
1494 * xfns.c (syms_of_xfns): Only define x-select-font when both
1495 HAVE_FREETYPE and USE_GTK
946598bf 1496
d7c664f3
SM
1497 * xdisp.c (next_element_from_display_vector): Move assignment out
1498 of if statement.
946598bf 1499
6cf29fe8
JR
15002008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
1501
d7c664f3 1502 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
6cf29fe8 1503
d7c664f3
SM
1504 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
1505 (syms_of_fileio): Initialize and export them.
1506 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
6cf29fe8 1507
d7c664f3
SM
1508 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
1509 (Fsystem_move_file_to_trash): New function.
1510 (syms_of_w32fns): Export it to lisp.
6cf29fe8 1511
79ca7db1
JR
15122008-07-01 Jason Rumney <jasonr@gnu.org>
1513
d7c664f3
SM
1514 * w32font.c (w32font_text_extents): Don't count overhang as part
1515 of width.
79ca7db1 1516
c2786a3d 15172008-06-30 Miles Bader <miles@gnu.org>
c4f4682b
MB
1518
1519 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
1520 Add `avoid_cursor_p' field.
1521
1522 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
1523 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
1524 (append_glyph, append_composite_glyph, produce_image_glyph)
c2786a3d
JB
1525 (append_stretch_glyph): Initialize avoid_cursor_p.
1526 (get_it_property): Rename from `get_line_height_property'.
c4f4682b
MB
1527 (x_produce_glyphs): Use get_it_property.
1528 (handle_line_prefix, push_display_prop): New functions.
1529 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
c2786a3d
JB
1530 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
1531 New variables.
c4f4682b
MB
1532 (syms_of_xdisp): Initialize them.
1533
7d7ad10e
KH
15342008-06-30 Kenichi Handa <handa@m17n.org>
1535
1536 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
1537 XftDefaultSubstitute (they are called in XftFontMatch).
1538 (xftfont_open): Fix args to ftfont_font_format.
1539
1540 * ftfont.c (fc_charset_table): New member lang.
1541 (ftfont_resolve_generic_family): New arg pattern.
1542 (ftfont_spec_pattern): Check fc_cahrset_table[]->lang.
1543 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
1544 (ftfont_open): Fix args to ftfont_font_format.
1545 (ftfont_font_format): New arg filename.
1546
44b754c7
CY
15472008-06-30 Chong Yidong <cyd@stupidchicken.com>
1548
1549 * xfaces.c (Finternal_merge_in_global_face): If default face was
1550 modified, realize it again. Update the font face attribute.
1551
a4521b03
JR
15522008-06-29 Jason Rumney <jasonr@gnu.org>
1553
c2786a3d 1554 * w32term.c (x_set_frame_alpha): Fix logic.
a4521b03 1555
fe44f009
KH
15562008-06-29 Kenichi Handa <handa@m17n.org>
1557
1558 * fontset.c (Finternal_char_font): Return font-object instead of
1559 font-name.
1560
c2786a3d 1561 * composite.c (get_composition_id): Fix the width calculation for TAB.
fe44f009 1562
baed8445
SM
15632008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
1564
1565 * indent.c (Fvertical_motion): Properly handle float column arg.
1566
8b61a891
JR
15672008-06-28 Jason Rumney <jasonr@gnu.org>
1568
baed8445
SM
1569 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
1570 (pfnSetLayeredWindowAttributes): New function pointer.
1571 (w32_initialize): Initialize it when supported.
1572 (x_set_frame_alpha): New function.
8b61a891 1573
baed8445
SM
1574 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
1575 (w32_frame_parm_handlers): Set alpha handler.
8b61a891 1576
baed8445 1577 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
8b61a891 1578
57016d37
JR
15792008-06-27 Jason Rumney <jasonr@gnu.org>
1580
baed8445
SM
1581 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
1582 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
1583 (w32_to_x_charset, x_to_w32_charset)
1584 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
1585 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
1586 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
1587 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
1588 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
1589 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
1590 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
1591 (Qw32_charset_unicode): Remove.
1592 (syms_of_w32fns): Update for above changes.
1593
1594 * w32font.c (w32_to_x_charset, x_to_w32_charset)
1595 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
1596 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
1597 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
1598 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
1599 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
1600 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
1601 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
1602 (syms_of_w32font): Update for above changes.
57016d37 1603
d6bf1bdb
DN
16042008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
1605
1606 * s/usg5-4.h: Fix previous change: keep the correct branch of a
1607 removed #if.
9fa1c445 1608 (USG_SHARED_LIBRARIES): Remove duplicate definition.
d6bf1bdb 1609
43db14bb
JB
16102008-06-26 Juanma Barranquero <lekktu@gmail.com>
1611 Eli Zaretskii <eliz@gnu.org>
1612
1613 * makefile.w32-in (LOCAL_FLAGS):
1614 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
1615
1616 * sysdep.c (_spawnlp, _getpid):
1617 Declare with explicit _cdecl instead of _CRTAPI1.
1618
1619 * editfns.c (Fget_internal_run_time):
1620 Check for WINDOWSNT with #ifdef, not #if.
1621
c35f9821
JR
16222008-06-26 Jason Rumney <jasonr@gnu.org>
1623
43db14bb 1624 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
c35f9821 1625
57016d37 1626 * w32term.c (x_draw_glyph_string_foreground)
43db14bb
JB
1627 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
1628 Use FONT_HANDLE macro.
1629 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
c35f9821 1630
57016d37 1631 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
43db14bb 1632 (uniscribe_encode_char): Use FONT_HANDLE macro.
c35f9821 1633
43db14bb
JB
1634 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
1635 (w32font_text_extents): Use precast w32_font.
1636 (w32font_close): Free cached metrics.
1637 (w32font_open_internal): Allocate space for name on stack.
c35f9821 1638
1f8ad719
CY
16392008-06-26 Chong Yidong <cyd@stupidchicken.com>
1640
1641 * xdisp.c (extend_face_to_end_of_line): Fix last change.
1642
97e71655
JR
16432008-06-26 Jason Rumney <jasonr@gnu.org>
1644
43db14bb
JB
1645 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
1646 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
97e71655 1647
c9fc02c7
JB
16482008-06-26 Juanma Barranquero <lekktu@gmail.com>
1649
1650 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
1651
1b5defe6
JR
16522008-06-26 Jason Rumney <jasonr@gnu.org>
1653
c9fc02c7 1654 * w32bdf.c, w32bdf.h: Remove obsolete files.
1b5defe6 1655
c9fc02c7 1656 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
1b5defe6 1657
c9fc02c7
JB
1658 * w32gui.h: Don't include w32bdf.h.
1659 (XCharStruct, enum w32_char_font_type, W32FontStruct):
1660 Remove obsolete font support.
1b5defe6 1661
c9fc02c7
JB
1662 * w32font.h (struct w32font_info): Remove compat_w32_font.
1663 Add hfont member.
1664 (FONT_COMPAT): Remove obsolete macro.
1b5defe6 1665
ba60bd44 1666 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
c9fc02c7 1667 (w32font_encode_char, w32font_text_extents): Use new hfont member.
ba60bd44 1668 (w32font_open_internal): Remove compat code. Set new hfont member.
c9fc02c7 1669 (Fx_select_font): Use new hfont member.
1b5defe6 1670
57016d37 1671 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
c9fc02c7 1672 (uniscribe_encode_char): Use new hfont member.
1b5defe6 1673
57016d37 1674 * w32term.c (x_draw_glyph_string_foreground)
c9fc02c7
JB
1675 (x_draw_composite_glyph_string_foreground): Use new hfont member.
1676 (x_draw_glyph_string): Use metrics in w32font_info.
1b5defe6 1677
1fc66bca
KH
16782008-06-26 Kenichi Handa <handa@m17n.org>
1679
1680 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
1681
f2a77c3a
DN
16822008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
1683
1684 * unexnext.c:
1685 * m/ews4800.h:
1686 * m/hp9000s300.h:
1687 * m/ibm370aix.h:
1688 * m/mips-siemens.h:
1689 * m/ncr386.h:
1690 * m/next.h:
1691 * m/pmax.h:
1692 * m/powerpcle.h:
1693 * m/tandem-s2.h:
1694 * s/386bsd.h:
1695 * s/bsd386.h:
1696 * s/bsd4-1.h:
1697 * s/bsd4-2.h:
1698 * s/bsdos2-1.h:
1699 * s/bsdos2.h:
1700 * s/bsdos3.h:
1701 * s/bsdos4.h:
1702 * s/nextstep.h:
1703 * s/ultrix4-3.h:
1704 * s/usg5-0.h:
1705 * s/usg5-2-2.h:
1706 * s/usg5-2.h:
1707 * s/usg5-4-3.h:
1708 * s/ux4800.h:
1709 * s/uxpds.h:
1710 * s/uxpv.h: Remove support for obsolete systems.
1711 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
1712 Remove, insert contents in s/hpux-10.20.h
1713 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
1714 Remove, insert contents in s/aix-4.2.h
1715 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
1716 * s/bsd4-3.h: Rename to ..
1717 * s/bsd-common.h: ... this.
1718 * src/data.c:
1719 * src/doc.c:
1720 * src/ecrt0.c:
1721 * src/emacs.c:
1722 * src/fileio.c:
1723 * src/floatfns.c:
1724 * src/keyboard.c:
1725 * src/mem-limits.h:
1726 * src/print.c:
1727 * src/process.c:
1728 * src/sysdep.c:
1729 * src/syssignal.h:
1730 * src/systty.h:
1731 * src/syswait.h:
1732 * src/term.c:
1733 * src/unexec.c:
1734 * src/unexelf.c:
1735 * src/unexhp9k800.c:
1736 * src/m/hp800.h:
1737 * src/m/ibmrs6000.h:
1738 * src/m/mips.h:
1739 * src/m/vax.h:
1740 * src/s/darwin.h:
1741 * src/s/freebsd.h:
1742 * src/s/gnu.h:
1743 * src/s/ms-w32.h:
1744 * src/s/msdos.h:
1745 * src/s/netbsd.h:
1746 * src/s/template.h: Remove references to obsolete variables.
1747
1748 * Makefile.in: Add dependencies for all unexec files.
1749 (admindir): Remove unused variable.
1750 (UNEXEC_SRC): Remove references.
1751
bd02793a
CY
17522008-06-25 Chong Yidong <cyd@stupidchicken.com>
1753
1754 * xfns.c (x_default_font_parameter): If Xft is available, first
1755 try Monospace-12 for the default font.
1756
ccedd259
JR
17572008-06-25 Jason Rumney <jasonr@gnu.org>
1758
c9fc02c7 1759 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
ccedd259 1760
fbe062b7
SM
17612008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
1762
603a0937
SM
1763 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
1764
fbe062b7
SM
1765 * buffer.c (syms_of_buffer): Remove default-word-wrap.
1766
69785ad0
JB
17672008-06-25 Juanma Barranquero <lekktu@gmail.com>
1768
1769 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
1770 <scroll-conservatively>: Fix typo in docstring.
1771
1772 * xselect.c (Fx_send_client_event): Doc fix.
1773
249e6f76
KH
17742008-06-25 Kenichi Handa <handa@m17n.org>
1775
34e97272
KH
1776 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
1777
1778 * font.c (font_parse_fcname): Remove unused variables.
69785ad0
JB
1779 (font_sort_entites): Delete the arg SPEC. Caller changed.
1780 Fix for the case of ! best_only.
34e97272
KH
1781 (font_delete_unmatched): Check DPI and AVGWIDTH too.
1782
249e6f76
KH
1783 * lisp.h (Fstring_to_unibyte): EXFUN it.
1784
69785ad0 1785 * character.h (str_to_unibyte): Extern it.
249e6f76
KH
1786
1787 * character.c (str_to_unibyte): New function.
1788
1789 * fns.c (Fstring_to_unibyte): New function.
1790 (syms_of_fns): Defsubr it.
1791
65c108e4
KH
17922008-06-24 Kenichi Handa <handa@m17n.org>
1793
1794 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
1795 DPI too.
1796 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
1797
4c3f18fe
AS
17982008-06-24 Andreas Schwab <schwab@suse.de>
1799
69785ad0 1800 * Makefile.in (${lispsource}loaddefs.el): Rename from
4c3f18fe 1801 ../lisp/loaddefs.el.
fd13748d
AS
1802 (bootstrap-clean): Do what distclean does but don't remove
1803 Makefile.
1804 (distclean): Depend on bootstrap-clean and remove Makefile.
4c3f18fe 1805
faa6190f
CY
18062008-06-24 Chong Yidong <cyd@stupidchicken.com>
1807
1808 * buffer.h (struct buffer): New member word_wrap.
1809
1810 * buffer.c (syms_of_buffer): New variables default-word-wrap and
1811 word-wrap.
1812 (init_buffer_once): Initialize them.
1813
1814 * dispextern.h (struct it): Replace bool truncate_lines_p with a
1815 line_wrap enum possessing three possible values.
1816
1817 * termopts.h: Replace truncate_partial_width_windows with
1818 Vtruncate_partial_width_windows.
1819
1820 * dispnew.c (direct_output_for_insert): Avoid direct output when
1821 inserting a space with word wrap on.
1822
1823 * indent.c (compute_motion): Obey integer values of
1824 truncate-partial-width-windows.
1825
1826 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
1827 replacing truncate_partial_width_windows.
1828 (init_iterator): If Vtruncate_partial_width_windows is an integer,
1829 truncate only if the window width is below that integer.
ba60bd44 1830 (start_display, resize_mini_window, produce_stretch_glyph)
faa6190f
CY
1831 (display_string, move_it_in_display_line_to): Use line_wrap.
1832 (back_to_previous_visible_line_start, reseat_1): Reset
1833 string_from_display_prop_p.
1834 (display_line): Extend default face to end of line when wrapping.
1835
18362008-06-24 Kim F. Storm <storm@cua.dk>
1837
1838 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
1839 to wrap continued lines at word boundaries.
1840
c3bb5465
JR
18412008-06-24 Jason Rumney <jasonr@gnu.org>
1842
69785ad0
JB
1843 * font.c (Ffont_face_attributes): Multiply pixel size before point
1844 conversion to avoid multiplying rounding error.
c3bb5465 1845
0b07ad98
JR
18462008-06-23 Jason Rumney <jasonr@gnu.org>
1847
f245f2c6
JB
1848 * w32term.c (x_draw_glyph_string_background)
1849 (x_draw_glyph_string): Remove old bdf font code.
0b07ad98 1850
69785ad0 1851 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
0b07ad98 1852
22459668
KH
18532008-06-22 Kenichi Handa <handa@m17n.org>
1854
1855 * font.c (font_find_for_lface): Try the adstyle specified in
1856 the property of LFACE_FONT of LFACE (if any).
1857
d925a426 18582008-06-21 Seiji Zenitani <zenitani@mac.com>
f245f2c6 1859 Ryo Yoshitake <ryo@shiftmode.net>
d925a426
SM
1860
1861 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
1862
b4945b95
SM
18632008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
1864
1865 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
1866 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
1867 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
1868 (witness-emacs): Remove.
1869 (lisp, shortlisp): Move loaddefs.el earlier.
1870 (mostlyclean): Forget about witness-emacs.
1871
64124279
GM
18722008-06-22 Glenn Morris <rgm@gnu.org>
1873
1874 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
36565815 1875 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
64124279 1876
768efd84
SM
18772008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
1878
1879 * Makefile.in (PRECOMP): Remove.
1880 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
1881 (witness-emacs): Run `compile-first'.
1882 (.el.elc): Use the new compile-onefile target.
1883
808dd567
KH
18842008-06-21 Kenichi Handa <handa@m17n.org>
1885
1886 * xftfont.c (xftfont_open): Handle QCembolden only when
1887 FC_EMBOLDEN is defined.
1888
0de59eae
AS
18892008-06-21 Andreas Schwab <schwab@suse.de>
1890
1891 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
58e8833b 1892 (.el.elc): Likewise.
0de59eae 1893
fb38e9c9
MB
18942008-06-21 Miles Bader <miles@gnu.org>
1895
1896 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
1897 build dir, not the lisp source dir.
1898
fc46d219
SM
18992008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
1900
1901 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
1902 (bootstrapclean): Remove.
1903 (.el.elc): New rule.
1904 (PRECOMP): New var.
1905 (../lisp/subdirs.el): Remove.
1906 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
1907 (witness-emacs): New target.
1908 (mostlyclean): Remove witness-emacs as well.
1909 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
1910 Add witness-emacs dependency.
1911
eaf1f6e7
CY
19122008-06-20 Chong Yidong <cyd@stupidchicken.com>
1913
1914 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
1915 defined by the font.
1916
49f6eb95
SM
19172008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
1918
1919 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
1920 (bootstrap-clean): New target that keeps TAGS around.
1921 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
1922 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
1923
4c100a01
JR
19242008-06-20 Jason Rumney <jasonr@gnu.org>
1925
49f6eb95
SM
1926 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
1927 Remove obsolete font code.
db61a7f8 1928
49f6eb95
SM
1929 * w32font.c (font_matches_spec): Use csb bitfield from font signature
1930 to determine language support.
4c100a01 1931
759d3f32
SM
19322008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
1933
1934 * sysdep.c (cfsetspeed): New fun extracted from the code.
1935 (cfmakeraw): Move before first use.
1936
25241b4d
SM
19372008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
1938
1939 * sysdep.c (cfmakeraw): Provide fallback implementation.
1940 (serial_configure): Provide fallback implementation of cfsetspeed.
1941
d7afccca
KH
19422008-06-20 Kenichi Handa <handa@m17n.org>
1943
dc2226d0
KH
1944 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
1945 the pattern.
1946
9b9cd864
KH
1947 * fontset.c (fontset_from_font): Copy font_spec before changing
1948 the elements.
1949
d7afccca
KH
1950 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
1951
770e2e6e
SM
19522008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
1953
1954 * w32fns.c, xfnc.c (x_default_font_parameter): Only set `font-param'
1955 for explicit `font' parameters.
1956
1957 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
1958
22e64f7c
KH
19592008-06-19 Kenichi Handa <handa@m17n.org>
1960
1961 * frame.c: Include <ctype.h>.
1962 (x_set_font_backend): Allow spacing characters in the X resource
1963 for FontBackend.
1964
27129af9
SM
19652008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
1966
1967 * w32fns.c, xfns.c (Qfont_param): New var.
1968 (syms_of_w32fns): Initialize it.
22e64f7c
KH
1969 (x_default_font_parameter): Record explicit `font' into
1970 `font-parameter'.
27129af9 1971
d26424c5
KH
19722008-06-18 Kenichi Handa <handa@m17n.org>
1973
1974 * font.c (font_parse_xlfd): Fix previous change.
1975 (font_parse_fcname): Don't use :fc-unknown-spec.
1976 (FRAME_X_DISPLAY_INFO): Besure to have at least 1 pixel height.
1977 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
1978 (font_add_log): Prepend the driver name to the resulting fonts.
1979
1980 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
1981 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
1982 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
1983
1984 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
1985 (QCembolden): New variables.
1986 (syms_of_xftfont): DEFSYM them.
1987 (xftfont_open): Call XftFontMatch. Don't trust the result of
1988 XftTextExtents8 if the pixel_size is less than 5.
1989
51cf11be
AS
19902008-06-18 Andreas Schwab <schwab@suse.de>
1991
f245f2c6 1992 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
51cf11be
AS
1993 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
1994
07d9ba9b
JR
19952008-06-18 Jason Rumney <jasonr@gnu.org>
1996
27129af9 1997 * w32font.c (w32font_list, w32font_match): Add logging.
07d9ba9b 1998
27129af9 1999 * w32uniscribe (uniscribe_list, uniscribe_match): Add logging.
07d9ba9b 2000
0c36bc4e
CY
20012008-06-17 Chong Yidong <cyd@stupidchicken.com>
2002
2003 * font.c (font_parse_fcname): Store divider characters for
1578da31
CY
2004 unknown-spec list. For known key symbols, intern using correct
2005 symbol name.
0c36bc4e 2006
70d6ecc6
KH
20072008-06-17 Kenichi Handa <handa@m17n.org>
2008
2009 * xfaces.c (realize_default_face): If the frame is not on window
2010 system, set the fontset of face to nil.
2011
821bc4db
KH
20122008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
2013
f245f2c6 2014 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
821bc4db 2015
3554e566
JB
20162008-06-16 Juanma Barranquero <lekktu@gmail.com>
2017
2018 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
2019 (build_font_name_from_vector): Delete externs.
2020
2021 * xfaces.c (struct font_name): Don't declare.
2022
93eed26b
SM
20232008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
2024
2025 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
2026
d756bcd0
CY
20272008-06-16 Chong Yidong <cyd@stupidchicken.com>
2028
2029 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
2030
7a18a178
JB
20312008-06-16 Juanma Barranquero <lekktu@gmail.com>
2032
2033 * font.c (Ffont_spec): Fix usage in docstring.
48105a6a 2034 (Ffont_face_attributes): Doc fix.
7a18a178 2035
6f568955
AS
20362008-06-16 Andreas Schwab <schwab@suse.de>
2037
2038 * font.c (Ffont_face_attributes): Fix definition.
2039
3ef8c1b4
JR
20402008-06-16 Jason Rumney <jasonr@gnu.org>
2041
93eed26b 2042 * font.h (font_style_symbolic_from_value): Remove.
3ef8c1b4 2043
93eed26b
SM
2044 * font.c (font_style_symbolic_from_value): Remove.
2045 (font_style_symbolic): Revert to pre 2008-06-13 version.
3ef8c1b4 2046
93eed26b
SM
2047 * w32font.c (w32_to_fc_weight): New function.
2048 (w32font_full_name, logfont_to_fcname): Use it.
3ef8c1b4 2049
5e634ec9
KH
20502008-06-16 Kenichi Handa <handa@m17n.org>
2051
2052 * font.c (font_check_object): Delete it.
2053 (font_clear_cache): Check if a font-object is alive.
2054 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
2055 font-object to nil.
2056 (font_close_object): Don't check FONT_CLOSE_OBJECT.
2057 (font_at): Don't call font_check_object.
2babb359 2058 (Ffont_get): Return a symbol for :weight, :slant, and :width.
5e634ec9 2059
6409a955
KY
20602008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
2061
2062 * puresize.h (BASE_PURESIZE): Increase to 1230000.
2063
ce4eaddb
CY
20642008-06-16 Chong Yidong <cyd@stupidchicken.com>
2065
2066 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
2067
523dbe64
CY
20682008-06-15 Chong Yidong <cyd@stupidchicken.com>
2069
54b2ab27 2070 * font.c (font_parse_fcname): Only one decimal point.
523dbe64
CY
2071 (font_unparse_fcname): Handle data in family and foundry indices
2072 as symbols, not strings.
2073 (font_unparse_gtkname, Ffont_face_attributes): New functions.
2074
54b2ab27 2075 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
523dbe64
CY
2076
2077 * font.h (font_unparse_gtkname): Add prototype.
2078
9f296082
KH
20792008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
2080
54b2ab27 2081 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
9f296082 2082
3306c6dc
AS
20832008-06-15 Andreas Schwab <schwab@suse.de>
2084
2085 * font.c (font_update_drivers): Fix crash when no drivers match.
2086
a099c27a
SM
20872008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
2088
2089 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
2090 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
2091
a8aa344d
SM
20922008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
2093
2094 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
2095
a879ee6f
SM
20962008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
2097
2098 * process.c (Fserial_process_configure, Fprocess_send_eof):
2099 Use EQ to compare Lisp_Objects.
2100
6fe9826d
JR
21012008-06-13 Jason Rumney <jasonr@gnu.org>
2102
a879ee6f 2103 * w32fns.c (Fw32_select_font): Remove old font API function.
6fe9826d 2104
a879ee6f
SM
2105 * w32font.c (logfont_to_fcname): New function.
2106 (Fx_select_font): New font dialog function compatible with
2107 GTK/fontconfig version.
6fe9826d 2108
a879ee6f
SM
2109 * font.c (font_style_symbolic_from_value): New function.
2110 (font_style_symbolic): Use it.
6fe9826d 2111
a879ee6f 2112 * font.h (font_style_symbolic_from_value): Declare new function.
6fe9826d 2113
17ab8f5d
JB
21142008-06-13 Juanma Barranquero <lekktu@gmail.com>
2115
2116 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
2117 <font-width-table>: Fix typos in docstrings.
2118
d888760c
GM
21192008-06-13 Daniel Engeler <engeler@gmail.com>
2120
2121 These changes add serial port access.
2122 * process.c: Add HAVE_SERIAL.
2123 (Fdelete_process, Fprocess_status, Fset_process_buffer)
2124 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
2125 (list_processes_1, select_wrapper, Fstop_process)
2126 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
2127 (status_notify): Modify to handle serial processes.
2128 [HAVE_SERIAL] (Fserial_process_configure)
2129 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
2130 New functions.
2131 * process.h (struct Lisp_Process): Add `type'.
2132 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
2133 New functions.
2134 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
2135 serial ports.
2136 (serial_open, serial_configure) New functions.
2137 * w32.h: Add FILE_SERIAL.
2138 (struct _child_process): Add ovl_read, ovl_write.
2139
f4cc0153
KH
21402008-06-13 Kenichi Handa <handa@m17n.org>
2141
2142 * dispextern.h (enum lface_attribute_index): New member
2143 LFACE_FOUNDRY_INDEX.
2144
2145 * font.c (font_score): Delete arg alternate_families. Check only
7a18e381 2146 weight, slant, width, and size. Ignore the difference of alias
f4cc0153 2147 style symbols.
7a18e381 2148 (font_sort_entites): Adjust for the above change. Reflect the
f4cc0153
KH
2149 order of font-driver to scores.
2150 (font_list_entities): Don't check alternate_familes here.
2151 (font_clear_prop): Handle foundry.
2152 (font_update_lface): Don't parse "foundry-family" form here.
2153 Handle FONT_FOUNDRY_INDEX.
2154 (font_find_for_lface): Likewise. Handle alternate families here.
a879ee6f 2155 If registry is nil, try iso8859-1 and ascii-0.
f4cc0153 2156 (font_open_for_lface): Pay attention to size in ENTITY.
7a18e381 2157 (font_open_by_name): Simplify by calling font_load_for_lface.
f4cc0153
KH
2158 (free_font_driver_list): Delete it.
2159 (font_update_drivers): Preserve the order of backends.
2160 (syms_of_font): Setting of sort_shift_bits adjusted for the change
2161 of font_score and font_sort_entites.
2162 (font_update_sort_order): Likewise.
2163
2164 * xfaces.c (LFACE_FOUNDRY): New macro.
2165 (check_lface_attrs): Check foundry.
7a18e381 2166 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
f4cc0153
KH
2167 (merge_face_vectors): Check foundry.
2168 (merge_face_ref): Likewise.
2169 (Finternal_set_lisp_face_attribute): Likewise.
2170 (x_update_menu_appearance): Likewise.
2171 (Finternal_get_lisp_face_attribute): Likewise.
2172 (lface_hash): Likewise.
2173 (lface_same_font_attributes_p): Likewise.
2174 (x_supports_face_attributes_p): Likewise.
2175 (tty_supports_face_attributes_p): Likewise.
2176 (Finternal_set_alternative_font_family_alist): Intern strings.
2177 (Finternal_set_alternative_font_registry_alist): Downcase strings.
2178 (realize_default_face): Set LFACE_FOUNDRY (lface).
2179
2180 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
2181 font-driver at first.
2182
2183 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
2184
d434fef5 21852008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
97dead2d
JM
2186
2187 * lread.c (Fload): Use xfree, not free on saved_doc_string.
2188
9c5e177e
JM
21892008-06-12 Jim Meyering <meyering@redhat.com>
2190
d434fef5 2191 Make unexec_free handle NULL the same way free does.
9c5e177e
JM
2192 * unexmacosx.c (unexec_free): Ignore a NULL argument.
2193
2afc21f5
SM
21942008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
2195
2196 * character.h (CHAR_TO_BYTE_SAFE): New macro.
2197 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
2198 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
2199 (WEAK_ALIAS): Simplify.
2200 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
2201 when searching a unibyte buffer.
2202
76c0de62
CY
22032008-06-12 Chong Yidong <cyd@stupidchicken.com>
2204
2205 * xfns.c (Fx_select_font): Rename from x-font-dialog.
2206
0500dcc9
JB
22072008-06-12 Juanma Barranquero <lekktu@gmail.com>
2208
2209 * w32font.c: Include ctype.h.
2210
f42adef6
JR
22112008-06-11 Jason Rumney <jasonr@gnu.org>
2212
2afc21f5
SM
2213 * w32font.c (w32font_encode_char): Detect missing glyphs that are
2214 misreported as space.
2215 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
2216 as aliases for registry iso10646-1.
f42adef6 2217
4b7cdc0e
SM
22182008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
2219
2220 * buffer.c (clone_per_buffer_values): Skip `name'.
2221
cc02ebe1
CY
22222008-06-11 Chong Yidong <cyd@stupidchicken.com>
2223
2224 * font.c (font_parse_fcname): Fix last change; accept decimal
2225 points in font size.
2226
351ccb76
JR
22272008-06-10 Jason Rumney <jasonr@gnu.org>
2228
0500dcc9
JB
2229 * w32uniscribe.c (add_opentype_font_name_to_list):
2230 Skip non unicode fonts.
351ccb76 2231
f473ed6f
CY
22322008-06-10 Chong Yidong <cyd@stupidchicken.com>
2233
2234 * xfns.c (Fx_font_dialog): New function.
2235
5d6333d5 2236 * gtkutil.c (xg_dialog_response_cb): Rename from
f473ed6f
CY
2237 xg_file_response_callback.
2238 (pop_down_dialog): Rename from pop_down_file_dialog.
2239 (xg_get_file_name): Callers changed.
2240 (xg_get_font_name): New function.
2241
5d6333d5 2242 * gtkutil.h (xg_get_font_name): Insert prototype.
f473ed6f 2243
2a3bd2e1
SM
22442008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
2245
2246 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
2247 x_underline_minimum_display_offset.
2248 (syms_of_xdisp): Declare it here rather than in xterm.c.
2249 * dispextern.h (underline_minimum_offset): Declare it.
2250 * w32term.c (x_draw_glyph_string): Use it.
2251 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
2252 (syms_of_xterm): Don't declare it any more.
2253 (x_draw_glyph_string): Adjust to the new name.
2254
d5dc6163
SM
22552008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
2256
2257 * xterm.c (x_underline_minimum_display_offset): New var.
2258 (x_draw_glyph_string): Use it.
2259 (syms_of_xterm): Declare it.
2260
0abdd197
CY
22612008-06-10 Chong Yidong <cyd@stupidchicken.com>
2262
2263 * font.c (font_parse_fcname): Accept GTK-style font names too.
2264
a1562258
SM
22652008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
2266
928b5acc
SM
2267 * dired.c (file_name_completion): Don't return t if the match is exact
2268 but with different capitalization.
2269 * minibuf.c (Ftry_completion): Simplify.
2270
a1562258
SM
2271 * window.c (Vwindow_point_insertion_type): New var.
2272 (set_window_buffer): Use it.
2273 (syms_of_window): Init and export it to Lisp.
2274
9552dbd1
KH
22752008-06-10 Kenichi Handa <handa@m17n.org>
2276
2277 * font.h (font_intern_prop): Prototype adjusted.
2278
2279 * font.c (font_intern_prop): New arg force_symbol.
a1562258
SM
2280 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
2281 Adjust for the change of font_intern_prop.
9552dbd1 2282
a1562258
SM
2283 * ftfont.c (ftfont_pattern_entity):
2284 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
2285 (w32_registry):
2286 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
9552dbd1
KH
2287 the change of font_intern_prop.
2288
8993ad2e
JB
22892008-06-09 Juanma Barranquero <lekktu@gmail.com>
2290
2291 * w32menu.c (digest_single_submenu): Declare extern.
2292
0c2258fc
JR
22932008-06-09 Jason Rumney <jasonr@gnu.org>
2294
a1562258 2295 * w32term.c (x_make_frame_visible): Use alternate restore flags.
12f71857 2296
a1562258
SM
2297 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
2298 (parse_single_submenu): Remove.
2299 (digest_single_submenu): Remove.
2300 (syms_of_w32menu): Don't initialise variables that have moved
2301 to menu.c.
2302 (set_frame_menubar): Sync with version in xmenu.c.
2303 (w32_menu_show): Sync with xmenu_show in xmenu.c.
593c843c 2304
8993ad2e
JB
2305 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
2306 Make static again.
0c2258fc 2307
02246cb8
JR
23082008-06-09 Jason Rumney <jasonr@gnu.org>
2309
8993ad2e
JB
2310 Changes to w32 files related to the move of common menu code
2311 to menu.c on 2008-06-08 by Chong Yidong.
2312
2313 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
2314 defs to w32gui.h.
2315 (single_keymap_panes, push_menu_item, push_menu_pane):
2316 Make globally visible.
2317
d434fef5
JB
2318 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
2319 (local_free, malloc_widget_value, free_widget_value)
2320 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
2321 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
2322 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
8993ad2e 2323 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
d434fef5 2324 (menu_items, menu_items_allocated, menu_items_used)
8993ad2e
JB
2325 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
2326 (init_menu_items, finish_menu_items, discard_menu_items)
2327 (grow_menu_items, push_submenu_start, push_submenu_end)
2328 (push_left_right_boundary, push_menu_pane, push_menu_item)
2329 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
d434fef5 2330 (free_menubar_widget_tree_value, parse_single_submenu)
8993ad2e
JB
2331 (update_submenu_strings): Remove functions.
2332 (xmalloc_widget_value): Remove and declare extern.
2333
2334 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
2335 (OBJ1): Build it.
2336
2337 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
2338 (local_heap, local_alloc, local_free, malloc_widget_value)
2339 (free_widget_value): Define here.
02246cb8 2340
9e1bb909
KH
23412008-06-09 Kenichi Handa <handa@m17n.org>
2342
366664ad
KH
2343 * font.h (Qascii_0): Extern it.
2344
9e1bb909
KH
2345 * font.c (Qascii_0): New variable.
2346 (syms_of_font): DEFSYM it.
2347 (font_open_by_name): If the registry "iso8859-1" fails, try also
2348 "ascii-0".
2349
2350 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
2351
b2ee479e
KH
23522008-06-08 Kenichi Handa <handa@m17n.org>
2353
8f440b79 2354 * .gdbinit (xfont): New command.
b2ee479e 2355
01ef9d36
AS
23562008-06-08 Andreas Schwab <schwab@suse.de>
2357
a4240420
AS
2358 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
2359 * Makefile.in (menu.o): Update dependencies.
2360
0181bf66 2361 * Makefile.in (obj): Always add menu.o.
01ef9d36
AS
2362 * emacs.c (main): Always call syms_of_menu.
2363 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
2364
c07cbae6
CY
23652008-06-08 Chong Yidong <cyd@stupidchicken.com>
2366
2367 * Makefile.in: Compile menu.c.
2368
2369 * lisp.h: Declare syms_of_menu.
2370
2371 * emacs.c (main): Call syms_of_menu.
2372
2373 * keyboard.h: Relocate platform-independent menu definitions from
2374 xmenu.c.
2375
2376 * menu.c: New file. Relocate platform-independent menu
904d8c69 2377 definitions from xmenu.c. Suggested by Adrian Robert.
c07cbae6
CY
2378
2379 * xmenu.c: Remove platform-independent menu definitions.
2380 (menu_items menu_items_inuse, menu_items_allocated)
2381 (menu_items_used, menu_items_n_panes)
2382 (menu_items_submenu_depth): Move to keyboard.h.
2383 (init_menu_items, finish_menu_items, unuse_menu_items)
2384 (discard_menu_items, restore_menu_items, save_menu_items)
2385 (grow_menu_items, push_submenu_start, push_submenu_end)
2386 (push_left_right_boundary, push_menu_pane, push_menu_item)
2387 (keymap_panes, single_keymap_panes, single_menu_item)
2388 (list_of_panes, list_of_items, find_and_call_menu_selection)
2389 (xmalloc_widget_value, free_menubar_widget_value_tree)
2390 (parse_single_submenu, digest_single_submenu)
2391 (update_submenu_strings): Move to menu.c.
2392
4958ed94
SM
23932008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
2394
2395 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
2396
408b8ab4
MB
23972008-06-06 Miles Bader <miles@gnu.org>
2398
2399 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
2400 face, not frame default.
2401
87478b52
SM
24022008-06-05 Martin Rudalics <rudalics@gmx.at>
2403
2404 * window.c (pop_up_windows, pop_up_frames)
2405 (display_buffer_reuse_frames, Vpop_up_frame_function)
2406 (Vdisplay_buffer_function, Veven_window_heights)
2407 (Vspecial_display_buffer_names, Vspecial_display_regexps)
2408 (Vspecial_display_function, Vsame_window_buffer_names)
2409 (Vsame_window_regexps, split_height_threshold)
2410 (Vsplit_window_preferred_function): Move those vars to window.el.
2411 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
2412 (Fdisplay_buffer): Move those functions to window.el.
2413 (syms_of_window): Remove corresponding declarations.
2414 (display_buffer): New function.
2415 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
2416 * dispnew.c (Flast_nonminibuf_frame): New function.
2417 * buffer.c (Fpop_to_buffer): Move to window.el.
2418
9e0e0d77
SM
24192008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
2420
2421 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
2422
4a485df8
KH
24232008-06-05 Kenichi Handa <handa@m17n.org>
2424
2425 * coding.c (detect_coding): Fix previous change.
2426 (detect_coding_system): Likewise.
2427
8ba31f36
SM
24282008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
2429
c0dc8f64
SM
2430 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
2431
8ba31f36
SM
2432 * keymap.c (Vminibuffer_local_filename_must_match_map):
2433 Rename from Vminibuffer_local_must_match_filename_map.
2434 (syms_of_keymap):
2435 * minibuf.c (Fcompleting_read): Adjust accordingly.
2436 * commands.h: Rename declaration as well.
2437
7740d2c7
KH
24382008-06-05 Kenichi Handa <handa@m17n.org>
2439
e7438ece
KH
2440 * font.c (Ffont_spec): Don't use font_parse_family_registry for
2441 family name.
2442 (Ffont_put): Likewise.
2443
2444 * fontset.c (fontset_find_font): Call font_open_for_lface with the
2445 current font-spec.
2446
7740d2c7
KH
2447 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
2448 is unspecified.
2449
2450 * xfaces.c (realize_x_face): If the font-related face attributes
e7438ece
KH
2451 are the same as those of default face, realize a new fontset from
2452 default->fontset.
9e0e0d77 2453 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
7740d2c7 2454
c876b227
SM
24552008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
2456
2457 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
2458 (move_it_in_display_line): New wrapper.
2459
2460 * window.c (window_scroll_pixel_based_preserve_x)
2461 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
2462 (window_scroll_pixel_based, window_scroll_line_based):
2463 Use them to preserve column positions.
2464 (syms_of_window): Initialize them.
2465
2466 * indent.c (Fvertical_motion): Extend first arg to allow passing an
2467 (HPOS . VPOS) pair.
2468
2469 * dispextern.h (move_it_in_display_line): Declare.
2470
927abf37
JB
24712008-06-05 Juanma Barranquero <lekktu@gmail.com>
2472
2473 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
2474 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
2475 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
2476
9d14503e
JB
24772008-06-04 Juanma Barranquero <lekktu@gmail.com>
2478
2479 * window.c (Fset_window_parameter): Doc fix.
2480 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
2481
e6841c3b
JB
24822008-06-04 Joakim Verona <joakim@verona.se>
2483
2484 * window.h (struct window): Add new member window_parameters.
2485
2486 * window.c (Fwindow_parameters, Fwindow_parameter)
2487 (Fset_window_parameter): New defuns.
2488 (syms_of_window): Defsubr the new defuns.
2489 (make_window): Initialize window_parameters to nil.
2490
4ba50634
JPW
24912008-06-04 John Paul Wallington <jpw@pobox.com>
2492
2493 * eval.c (Fdefmacro): Doc fix.
2494
c0e16b14
KH
24952008-06-04 Kenichi Handa <handa@m17n.org>
2496
2497 * coding.c (detect_coding): Fix handling of coding->head_ascii.
9e0e0d77 2498 Be sure to call setup_coding_system when we find a proper coding system.
c0e16b14
KH
2499 (detect_coding_system): Fix handling of coding->head_ascii.
2500
0615d903
AS
25012008-06-03 Andreas Schwab <schwab@suse.de>
2502
2503 * font.c (font_prop_validate_spacing): Fix last change.
2504
8a1816bb
KH
25052008-06-03 Kenichi Handa <handa@m17n.org>
2506
eea9c5c4
KH
2507 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
2508 (font_parse_fcname): Fix handling of unknown key.
2509
2510 * xfont.c (xfont_list): Try an alias.
2511
8a1816bb
KH
2512 * charset.c (char_charset): Return NULL if the arg charset_list is
2513 specified and C doesn't belong to any of them.
2514
2f593f4c 25152008-06-02 Chip Coldwell <coldwell@redhat.com>
6c5e8775
CY
2516
2517 * font.c (font_pixel_size): Don't take cdr of an integer.
2518
c2cd06e6
JM
25192008-06-02 Jim Meyering <meyering@redhat.com>
2520
70fdbb46
JM
2521 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
2522 * alloc.c (xfree): Return right away for a NULL arg.
2523 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
2524 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
2525 * mac.c (create_apple_event_from_event_ref): Likewise.
2f593f4c
JB
2526 (create_apple_event_from_drag_ref, cfstring_create_normalized):
2527 Likewise.
70fdbb46
JM
2528 * doprnt.c (doprnt1): Likewise.
2529 * frame.c (frame): Likewise.
2530 * keyboard.c (wipe_kboard): Likewise.
1f204af3 2531 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
70fdbb46
JM
2532 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
2533 * term.c (tty_default_color_capabilities, maybe_fatal)
2534 (delete_tty): Likewise.
2535 * w16select.c (string): Likewise.
2536 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
2537 * w32bdf.c (w32_free_bdf_font): Likewise.
2538 * w32fns.c (w32_unload_font): Likewise.
2539 * w32font.c (w32font_close): Likewise.
2540 * window.c (size_window): Likewise.
2541 * xselect.c (receive_incremental_selection): Likewise.
2542 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
2543 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
2544 * w32.c (stat): Likewise.
2545
2f593f4c 2546 Remove useless if-before-free tests.
70fdbb46
JM
2547 * editfns.c (Fset_time_zone_rule): Likewise.
2548 * lread.c (nosuffix): Likewise.
2549 * ralloc.c (get_bloc): Likewise.
2550 * regex.c (reg_free): Likewise.
2551 * xftfont.c (xftfont_open, xftfont_close): Likewise.
2552 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
2553 * xsmfns.c (smc_save_yourself_CB): Likewise.
c2cd06e6 2554
4fc1984a
KH
25552008-06-02 Kenichi Handa <handa@m17n.org>
2556
1d1e1245
KH
2557 * font.c (font_find_for_lface): Handle float font size.
2558 (font_open_for_lface): Likewise.
2559
4fc1984a
KH
2560 * xfaces.c (x_supports_face_attributes_p): Check face->font before
2561 comparing the properties.
2562
aee986fd
JR
25632008-06-01 Jason Rumney <jasonr@gnu.org>
2564
e6841c3b
JB
2565 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
2566 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
2567 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
2568 Don't add empty script list.
2569 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
aee986fd 2570
60a3d7ee
DN
25712008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
2572
aee986fd 2573 * Makefile.in (dot, dotdot): Remove, update users.
60a3d7ee
DN
2574 ".." has been used elsewhere in the file for a long time.
2575 (LIBXT_STATIC): Remove conditional based on unused variable.
2576
f2cec7a9
MB
25772008-06-01 Miles Bader <miles@gnu.org>
2578
2579 * xfaces.c (Vface_remapping_alist): New variable.
2580 (syms_of_xfaces): Initialize it.
2581 (enum named_merge_point_kind): New type.
2582 (struct named_merge_point): Add `named_merge_point_kind' field.
2583 (push_named_merge_point): Make cycle detection respect different
2584 named-merge-point kinds.
c876b227 2585 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
f2cec7a9
MB
2586 Remove face-name alias resolution.
2587 (lface_from_face_name): New definition using
2588 `lface_from_face_name_no_resolve'.
c876b227 2589 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
f2cec7a9
MB
2590 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
2591 (get_lface_attributes): New definition that layers face-remapping on
2592 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
2593 (lookup_basic_face): New function.
2594 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
2595 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
2596 `get_lface_attributes'.
2597 (face_at_buffer_position): Use `lookup_basic_face' to lookup
2598 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
2599 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
2600
2601 * xdisp.c (init_iterator): Pass base_face_id through
2602 `lookup_basic_face' when we actually use it as a face-id.
2603 (handle_single_display_prop): Use `lookup_basic_face' to lookup
2604 DEFAULT_FACE_ID.
2605
2606 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
2607 lookup the initial face-id.
2608
2609 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
2610
518c0b83
JB
26112008-06-01 Juanma Barranquero <lekktu@gmail.com>
2612
2613 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
2614 (Fremove_text_properties): Fix typos in docstrings.
2615
719b3d63
KH
26162008-05-31 Kenichi Handa <handa@m17n.org>
2617
e4c93315
KH
2618 * font.c (font_list_entities): Fix the car part of data to be
2619 stored in the cache.
2620
719b3d63
KH
2621 * ftfont.c (ftfont_font_format): Don't use strcasestr.
2622
d0827857
SM
26232008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
2624
2625 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
2626 Add a `test' argument so another predicate than `equal' can be used.
2627 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
2628 (map_char_table): Remove unused vars `c' and `i'.
2629 * lisp.h (Foptimize_char_table): Adjust declaration.
2630 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
2631
a266686a
KH
26322008-05-30 Kenichi Handa <handa@m17n.org>
2633
d0827857 2634 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
a266686a
KH
2635 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
2636 defined.
2637
fd9440c5
SM
26382008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
2639
2640 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
2641 (Fmake_variable_frame_local): Disallow mixing buffer-local and
2642 frame-local settings for the same variable.
2643
fd2ae9b2
KH
26442008-05-30 Kenichi Handa <handa@m17n.org>
2645
9e0e0d77 2646 * fontset.c (Ffont_info): Move to font.c.
fd2ae9b2
KH
2647 (syms_of_fontset): Delete defsubr of Sfont_info.
2648
2649 * font.c (font_style_to_value, font_score): Delete casting of the
2650 args to xstcasecmp.
2651 (register_font_driver): Increment num_font_drivers only when
2652 registering the driver globally.
9e0e0d77 2653 (Ffont_info): Move from fontset.c. Handle a font object too.
fd2ae9b2
KH
2654 (syms_of_font): Defsubr Sfont_info.
2655
eaf11618
KH
26562008-05-29 Kenichi Handa <handa@m17n.org>
2657
2658 * coding.h (enum define_coding_utf8_arg_index): New enum.
2659 (enum coding_attr_index): Change coding_attr_utf_16_bom to
2660 coding_attr_utf_bom.
fd9440c5
SM
2661 (enum utf_bom_type): Rename from utf_16_bom_type.
2662 (struct utf_16_spec): Adjust for the above change.
eaf11618
KH
2663 (struct coding_system): Add utf_8_bom in `spec' union.
2664
2665 * coding.c (CODING_UTF_8_BOM): New macro.
2666 (enum coding_category): Delete coding_category_utf_8, add
2667 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
2668 coding_category_utf_8_sig.
2669 (CATEGORY_MASK_UTF_8): Delete it.
2670 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
2671 (CATEGORY_MASK_UTF_8_SIG): New macros.
2672 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
2673 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
2674 CATEGORY_MASK_UTF_8_SIG.
2675 (CATEGORY_MASK_UTF_8): New macro.
2676 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
2677 (detect_coding_utf_8): Check BOM.
2678 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
fd9440c5 2679 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
eaf11618
KH
2680 (encode_coding_utf_16): Likewise.
2681 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
2682 (detect_coding, detect_coding_system): Handle utf-8-auto.
2683 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
2684 (syms_of_coding): Fix setting up of Vcoding_category_table.
2685
891bd142
SM
26862008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
2687
2688 * process.c (Faccept_process_output): If `millisec' is non-nil,
2689 `seconds' default to 0.
2690 (wait_reading_process_output): Also return non-nil if we read output
2691 from a non-running process.
2692
1519d52e
JR
26932008-05-29 Jason Rumney <jasonr@gnu.org>
2694
fd9440c5
SM
2695 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
2696 `raster' specified.
2697 (add_font_entity_to_list): Allow non-opentype truetype fonts back
2698 in the uniscribe backend, but disallow any font that has no
2699 unicode subrange support.
1519d52e 2700
d5ab09cd
JB
27012008-05-29 Juanma Barranquero <lekktu@gmail.com>
2702
2703 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
2704 Fix typos in docstrings.
2705
a4eec626
KH
27062008-05-29 Kenichi Handa <handa@m17n.org>
2707
2708 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
e887f2ac 2709 (Fx_family_fonts): Set frame correctly.
a4eec626 2710
a6e0b7e5
JR
27112008-05-28 Jason Rumney <jasonr@gnu.org>
2712
d5ab09cd 2713 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
a6e0b7e5 2714
6b3d752c
SM
27152008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
2716
2717 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
2718 calling build_annotations.
2719
c3f9fba8
JB
27202008-05-28 Juanma Barranquero <lekktu@gmail.com>
2721
2722 * coding.c (Fdecode_coding_region, Fencode_coding_region)
2723 (Fencode_coding_string):
2724 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
2725 <latin-extra-code-table>: Fix typos in docstrings.
2726 (syms_of_coding) <coding-system-alist>: Doc fix.
2727 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
2728
00c670e1
KH
27292008-05-28 Kenichi Handa <handa@m17n.org>
2730
b75d7f28
KH
2731 * fontset.c (Ffont_info): Don't call font_close_object.
2732
2733 * font.c (font_parse_family_registry): Use Ffont_put to validate
2734 foundry and family.
2735 (font_delete_unmatched): Don't check spacing.
2736 (font_list_entities): Add spacing to the spec to list fonts.
2737
2738 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
d5ab09cd 2739 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
b75d7f28 2740
00c670e1
KH
2741 * coding.c (encode_coding_raw_text): Fix previous change.
2742 (encode_coding_object): When the dst_object is a buffer and is
2743 different from src_object, move gap to PT.
2744
45feca91
CY
27452008-05-27 Chong Yidong <cyd@stupidchicken.com>
2746
c3f9fba8 2747 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
45feca91 2748
5dd5d9eb
SM
27492008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
2750
01d45367
SM
2751 * coding.c (encode_coding_raw_text): Set coding->produced_char for
2752 all branches. Compute it differently.
2753
5dd5d9eb
SM
2754 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
2755
9c623c85
JB
27562008-05-27 Juanma Barranquero <lekktu@gmail.com>
2757
2758 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
2759 into "else if () ... else ...".
2760
943f2093
JR
27612008-05-27 Jason Rumney <jasonr@gnu.org>
2762
5dd5d9eb
SM
2763 * w32font.c (w32font_open_internal): Determine if glyph indices
2764 are likely to work here.
943f2093 2765
7385fe74
CY
27662008-05-27 Chong Yidong <cyd@stupidchicken.com>
2767
2768 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
2769 draw overlap glyphs with appropriate highlighting.
2770
4f64a164
KH
27712008-05-27 Kenichi Handa <handa@m17n.org>
2772
2773 * xfont.c (xfont_open): Fix calculation of font->average_width.
2774
1fb5aad7
SM
27752008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
2776
2777 * casefiddle.c (casify_object): Try to guess better whether the
2778 argument is a byte or a char.
2779
f8eb1603
AS
27802008-05-26 Andreas Schwab <schwab@suse.de>
2781
1fb5aad7
SM
2782 * xselect.c (x_reply_selection_request): Properly handle format == 32.
2783 Always send multiples of format size.
5a9c35e5 2784
f8eb1603
AS
2785 * xterm.c (x_set_frame_alpha): Fix type mismatch.
2786
ba93d684
JR
27872008-05-26 Jason Rumney <jasonr@gnu.org>
2788
1fb5aad7
SM
2789 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
2790 (compute_metrics): Don't set failure if we just cleared the cache.
2791 (w32_weight_table): Remove unused variable.
2792 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
2793 backwards compatibility.
ba93d684 2794
505ecc49
KH
27952008-05-25 Kenichi Handa <handa@m17n.org>
2796
1fb5aad7
SM
2797 * w32term.c (x_draw_glyph_string):
2798 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
505ecc49
KH
2799
2800 * xfaces.c: Delete unused function prototypes.
2801 (xstrlwr, font_frame): Delete them.
2802 (clear_face_cache): Delete unused variable.
2803
1fb5aad7
SM
2804 * xftfont.c (xftfont_open): Delete unused variable.
2805 If underline_thickness is not 1, adjust underline_position.
505ecc49
KH
2806
2807 * ftxfont.c (ftxfont_open): Delete unused variable.
2808
2809 * fontset.c (face_for_char): Optimize for the case of no charset
2810 property.
2811
2812 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
2813 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
2814 (otf_open, font_otf_capability, generate_otf_features)
2815 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
1fb5aad7 2816 Comment out by surrounding "#if 0" and "#endif" for the moment.
505ecc49
KH
2817 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
2818 (syms_of_font): Codes for accessing above commented out.
2819
f481eb31
EZ
28202008-05-24 Eli Zaretskii <eliz@gnu.org>
2821
2822 * w32proc.c: Include dispextern.h.
2823
2824 * w32.c: Include dispextern.h.
2825
20746fe4
JB
28262008-05-23 Juanma Barranquero <lekktu@gmail.com>
2827
2828 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
2829 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
2830 Fix typos in docstrings.
2831
e7150846
JR
28322008-05-23 Jason Rumney <jasonr@gnu.org>
2833
20746fe4 2834 * xsmfns.c: Remove includes that are already included by config.h.
e7150846 2835
dbf46ba6
KH
28362008-05-23 Kenichi Handa <handa@m17n.org>
2837
6c652beb
KH
2838 * charset.c (Qemacs, charset_emacs): New variables.
2839 (char_charset): Fix for non-Unicode characters.
2840 (syms_of_charset): Define charset_emacs.
2841
baf4d3b3 2842 * w32term.c (x_draw_glyph_string): Be sure to update
328fab2a
KH
2843 s->underline_thickness and s->underline_position. Be sure to draw
2844 underline within the current line area.
baf4d3b3
KH
2845
2846 * xterm.c (x_draw_glyph_string): Be sure to update
328fab2a 2847 s->underline_thickness and s->underline_position. Be sure to draw
90dc78a3 2848 underline within the current line area.
baf4d3b3 2849
dbf46ba6
KH
2850 * fontset.c: Delete unused variables and add casting for char *
2851 throughout the file.
2852 (fontset_font): Try the fallback fonts of the current fontset
2853 before consulting the default fontset.
2854
2855 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
2856
9e0e0d77 2857 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
dbf46ba6 2858
3b780338
JR
28592008-05-22 Jason Rumney <jasonr@gnu.org>
2860
20746fe4 2861 * font.c: Don't include strings.h.
577eba22 2862
9e0e0d77 2863 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
05131107 2864
20746fe4
JB
2865 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
2866 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
b1722a46
EZ
2867 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
2868 to call xstrcasecmp.
05131107 2869
b1722a46 2870 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
3b780338 2871
b1722a46 2872 * fontset.c (fs_query_fontset): Use xstrcasecmp.
3b780338 2873
b1722a46 2874 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
3b780338 2875
b1722a46 2876 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
3b780338 2877
a30e1957
KH
28782008-05-22 Kenichi Handa <handa@m17n.org>
2879
20746fe4 2880 * puresize.h (BASE_PURESIZE): Increase to 1220000.
955b979c 2881
20746fe4 2882 * font.c (font_prop_validate_style): Adjust for the format
64b900e3
KH
2883 change of font_style_table.
2884
a30e1957
KH
2885 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
2886 two args.
2887
2888 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
2889 two args.
2890
631248e5
SM
28912008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
2892
2893 * minibuf.c (keys_of_minibuf): Delete.
2894 * lisp.h (keys_of_minibuf): Delete.
2895 * emacs.c (main): Don't call keys_of_minibuf.
2896
318548be
KH
28972008-05-22 Kenichi Handa <handa@m17n.org>
2898
631248e5 2899 * ftfont.c (ftfont_resolve_generic_family): Rename from
318548be
KH
2900 ftfont_list_generic_family. Return a single family for each
2901 generic family.
2902 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
20746fe4
JB
2903 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
2904 Call font_add_log.
318548be
KH
2905 (ftfont_match): Call font_add_log.
2906
2907 * font.h (Ffont_xlfd_name): EXFUN adjusted.
2908 (FONT_DEBUG): Define it.
2909 (font_add_log): Extern it.
631248e5 2910 (font_assert): Rename from xassert.
318548be
KH
2911
2912 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
2913 (xfont_list_family): Call font_add_log.
2914 (xfont_match): Likewise.
631248e5 2915 (memq_no_quit): Delete.
318548be
KH
2916
2917 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
2918 call of Ffont_xlfd_name.
2919
2920 * xfaces.c (struct table_entry, slant_table, weight_table)
631248e5 2921 (swidth_table): Move to font.c.
318548be
KH
2922
2923 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
631248e5 2924 xassert are changed to font_assert. Delete many unused variables.
20746fe4
JB
2925 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
2926 New variables.
631248e5
SM
2927 (struct table_entry): Move from xfaces.c and modified.
2928 (weight_table, slant_table, width_table): Move from xfaces.c and
318548be 2929 contents adjusted for the change of struct table_entry.
20746fe4 2930 (font_style_to_value, font_style_symbolic): Adjust for the
64b900e3 2931 format change of font_style_table.
318548be
KH
2932 (font_parse_family_registry): Don't overwrite existing foundry and
2933 family of font_spec.
2934 (font_score): Fix calculation of diff for sizes.
2935 (font_sort_entites): Call font_add_log.
2936 (font_delete_unmatched): Return a newly created list.
2937 (font_list_entities): Fix previous change. Call font_add_log.
20746fe4
JB
2938 (font_matching_entity, font_open_entity, font_close_entity):
2939 Call font_add_log.
318548be 2940 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
631248e5 2941 (Finternal_set_font_style_table): Delete.
318548be
KH
2942 (BUILD_STYLE_TABLE): New macro.
2943 (build_style_table): New function.
2944 (Vfont_log, font_log_env_checked): New variables.
2945 (font_add_log): New function.
2946 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
2947 Declare Lisp variables "font-weight-table", "font-slant-table",
2948 "font-width-table", and "font-log". Initialize font_style_table.
2949
6aac1c03
DN
29502008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
2951
bcc850aa 2952 * xterm.c (x_set_frame_alpha): Move declarations before statements.
6aac1c03 2953
7950790f
GM
29542008-05-21 Seiji Zenitani <zenitani@mac.com>
2955 Ryo Yoshitake <ryo@shiftmode.net>
a2979e8e 2956
7950790f 2957 * frame.c (Qalpha): Add a new frame parameter `alpha'.
bcc850aa 2958 (Vframe_alpha_lower_limit): New variable.
b9fb2c45 2959 (x_set_alpha): New function.
a2979e8e 2960
7950790f 2961 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
a2979e8e 2962
7950790f
GM
2963 * xfns.c (x-create-frame, Qalpha):
2964 Initialize the frame parameter `alpha'.
b9fb2c45
GM
2965 * xterm.c (OPAQUE, OPACITY): New.
2966 (x_set_frame_alpha): New function.
2967 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
a2979e8e 2968
7950790f
GM
2969 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
2970 * w32fns.c (w32_frame_parm_handlers): Likewise.
a2979e8e 2971
5c2a72d9
JR
29722008-05-20 Jason Rumney <jasonr@gnu.org>
2973
20746fe4
JB
2974 * w32font.c (add_font_entity_to_list): Don't add non-opentype
2975 truetype fonts to opentype list.
5c2a72d9 2976
eb152aa9
JB
29772008-05-20 Juanma Barranquero <lekktu@gmail.com>
2978
2979 * fontset.c (Ffontset_info): Doc fix.
2980 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
2981 <ignore-relative-composition>: Fix typos in docstrings.
2982
2983 * font.c (syms-of-font) <font-encoding-alist>:
2984 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
2985 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
2986 (Ffont_otf_alternates): Doc fixes.
2987
ad00e1a3
KH
29882008-05-20 Kenichi Handa <handa@m17n.org>
2989
2990 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
2991 font.h through out the file.
9e0e0d77 2992 (FONT_DRIVERS): Rename from FONTOBJ.
12855572 2993 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
ad00e1a3
KH
2994 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
2995
2996 * emacs.c (main): Call syms_of_font unconditionally.
2997
2998 * font.h (find_font_encoding): Extern it.
2999
9e0e0d77 3000 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
ad00e1a3
KH
3001 fontset.c.
3002 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
3003 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
3004 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
3005 only when HAVE_WINDOW_SYSTEM is defined.
3006 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
3007 when HAVE_WINDOW_SYSTEM is defined.
3008
9e0e0d77
SM
3009 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
3010 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
ad00e1a3
KH
3011
3012 * xfaces.c: Include font.h unconditionally.
3013 (merge_face_ref, merge_face_vectors)
3014 (Finternal_set_lisp_face_attribute): Cancel the previous change.
3015
40a69fac
SM
30162008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
3017
3018 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
3019 indirect_variable.
3020 * eval.c (lisp_indirect_variable): New fun.
3021 (Fuser_variable_p): Use it.
3022
8c2dccbf
SM
30232008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
3024
ad97b375
SM
3025 * lisp.h (indirect_variable):
3026 * data.c (indirect_variable, let_shadows_buffer_binding_p):
3027 Use Lisp_Symbol pointers rather than Lisp_Object.
3028 Adjust callers.
3029 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
3030 To this end, change calling-convention.
3031
8c2dccbf
SM
3032 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
3033 if some non-hidden buffers are selected by string&pred.
3034
ad97b375
SM
30352008-05-19 Chong Yidong <cyd@stupidchicken.com>
3036
3037 * process.c (wait_reading_process_output): Always check status
3038 when in batch mode.
3039
25b81df4
KH
30402008-05-19 Kenichi Handa <handa@m17n.org>
3041
3042 * font.c (font_list_entities): Fix handling of cache.
3043 (font_matching_entity): Likewise.
3044
8c2dccbf 3045 * ftfont.c (cs_iso8859_1): Delete.
25b81df4 3046 (ft_face_cache): New variable.
1f204af3 3047 (struct ftfont_info): New member fc_charset_idx.
8c2dccbf 3048 (ftfont_build_basic_charsets): Delete.
25b81df4
KH
3049 (fc_charset_table): New variable.
3050 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
3051 . FC_CHARSET_IDX) as :font-entity property in the font entity.
3052 Callers changed.
dde8403f 3053 (ftfont_lookup_cache, ftfont_get_charset): New functions.
8c2dccbf
SM
3054 (ftfont_spec_pattern): New argument fc_charset_idx.
3055 Check registry more rigidly. Change callers.
a2979e8e 3056 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
25b81df4
KH
3057 change of :font-entity property of the font.
3058
a2979e8e 3059 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
25b81df4
KH
3060 property of the font.
3061
d4a1d553
JB
30622008-05-18 Juanma Barranquero <lekktu@gmail.com>
3063
3064 * coding.c (Fcoding_system_p): Rename argument to match docstring.
3065 (Funencodable_char_position, Fcheck_coding_systems_region)
3066 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
3067 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
3068 (Ffind_operation_coding_system, Fset_coding_system_priority)
3069 (Fcoding_system_eol_type): Doc fixes.
3070
07cfc4e7
GM
30712008-05-17 Glenn Morris <rgm@gnu.org>
3072
3073 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
3074
1cab27d2
EZ
30752008-05-16 Eli Zaretskii <eliz@gnu.org>
3076
3077 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
3078 and st_gid.
3079
dde8403f 3080 * frame.c (Fdelete_frame): Don't call font_update_drivers if
1cab27d2
EZ
3081 HAVE_WINDOW_SYSTEM is not defined.
3082
3083 * xfaces.c (merge_face_ref, merge_face_vectors)
3084 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
3085 HAVE_WINDOW_SYSTEM is defined.
3086 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
3087
86b89713
SM
30882008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
3089
3090 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
3091
6750bd93
YM
30922008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3093
62867b11 3094 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
6750bd93 3095
79f105c9
KH
30962008-05-15 Kenichi Handa <handa@m17n.org>
3097
3098 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
3099 preference.
3100
6b33da9f
GM
31012008-05-15 Glenn Morris <rgm@gnu.org>
3102
3103 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
3104
d0e4433b
CY
31052008-05-15 Chong Yidong <cyd@stupidchicken.com>
3106
3107 * fns.c (init_fns): Don't initialize weak_hash_tables here.
3108 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
3109
3110 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
3111
5f2d79e0
KH
31122008-05-15 Kenichi Handa <handa@m17n.org>
3113
fd8a1cae
KH
3114 * ftfont.c (ftfont_list): Downcase family name to check generic
3115 families.
3116
3117 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
3118 font-spec for QCfont value.
3119
5f2d79e0
KH
3120 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
3121 buffer. Check the return value of it.
3122
e5e29349
JR
31232008-05-14 Jason Rumney <jasonr@gnu.org>
3124
3125 * w32term.c (w32_get_glyph_overhangs): Remove.
3126 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
3127
1f09f444
KH
31282008-05-14 Kenichi Handa <handa@m17n.org>
3129
3130 * font.c (font_prop_validate): Make nil a valid value.
be9442ad
KH
3131 (font_clear_cache): Check if the cached vector of entities is nil
3132 or not.
1f09f444 3133
ecae6af9 31342008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
f8240abd
YM
3135
3136 * emacs.c (main_thread): Conditionalize on
3137 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
3138 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
3139
3140 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
3141 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
3142 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
3143
c6b278e7
KH
31442008-05-14 Kenichi Handa <handa@m17n.org>
3145
3146 * coding.c (detect_coding_iso_2022): Ignore a coding category that
3147 has no corresponding coding system.
3148
31492008-05-14 Jason Rumney <jasonr@gnu.org>
3150
3151 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
3152
3153 * w32font.h (w32font_open_internal): Update declaration.
3154
3155 * w32font.c (w32font_open_internal): Change last argument from
3156 w32font_info struct to font object. Fill in font object from
3157 font_entity. Get Outline metrics if possible. Use them to
3158 calculate underline position and thickness. Use xlfd name as name
3159 property. Don't set codepage.
3160 (w32font_open): Pass font_object to w32font_open_internal. Don't
a879ee6f 3161 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
c6b278e7
KH
3162 (w32font_draw): Use s->font.
3163 (clear_cached_metrics): Don't clear non-existent blocks.
3164
3165 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
3166 font was not found.
a879ee6f 3167 (x_draw_glyph_string): Use underline position and thickness from font.
c6b278e7
KH
3168
3169 * w32uniscribe.c (uniscribe_open): Pass font_object to
3170 w32font_open_internal.
3171
31722008-05-14 Kenichi Handa <handa@m17n.org>
3173
3174 These changes are to delete all legacy font-handling codes, and
3175 make Emacs use only font-backends.
3176
3177 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
3178 (frame.o, image.o, print.o): Depend on $(FONTSRC).
3179
3180 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
3181
3182 * charset.h (Vcharset_non_preferred_head)
3183 (Vcurrent_iso639_language): Extern them.
3184
3185 * charset.c (Vcharset_non_preferred_head): New variable.
3186 (Vcurrent_iso639_language): New variable.
3187 (syms_of_charset): Declare it as a Lisp variable.
3188 (char_charset): Don't check non preferred charsets. As a last
3189 resort, return charset_unicode.
3190 (Fset_charset_priority): Update Vcharset_non_preferred_head.
3191
3192 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
3193 conditionals. Don't check enable_font_backend. Delete all codes
3194 used only when USE_FONT_BACKEND is not defined.
3195
3196 * dispextern.h (struct glyph_string): Change type of `font' to
3197 `struct font *'.
3198 (struct glyph_string): New member underline_position and
3199 underline_thickness.
3200 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
3201 (struct face): Change type of `font' to `struct font *'. Remove
3202 members `font_name', `font_info_id'.
3203 (per_char_metric, encode_char): Delete externs.
3204 (calc_pixel_width_or_height): Adjust the prototype.
3205
3206 * emacs.c (enable_font_backend): Delete extern.
3207 (main): Don't set enable_font_backend. Don't check the command
3208 line argument "-disable-font-backend".
3209
3210 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
3211 (enum font_property_index): New members FONT_DPI_INDEX,
3212 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
3213 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
3214 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
3215 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
3216 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
3217 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
3218 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
3219 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
3220 (struct font_spec, struct font_entity): New structs.
3221 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
3222 (struct font): Many members from old "struct font_info" moved to
3223 here. Members font and entity deleted.
3224 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
3225 the new font-related objects.
3226 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
3227 (CHECK_FONT_GET_OBJECT): Likewise.
3228 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
3229 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
3230 (struct font_driver): New members case_sensitive anc check. Type
3231 of the member list and open changed.
3232 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
3233 (font_symbolic_width, font_find_object, font_get_spec)
3234 (font_set_lface_from_name): Delete extern.
20746fe4 3235 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
c6b278e7
KH
3236
3237 * font.c: Include <strings.h>.
3238 (enable_font_backend): Delete it.
3239 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
3240 (CHECK_VALIDATE_FONT_SPEC): Delete it.
3241 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
3242 (null_string): Delete it.
3243 (null_vector): Make it static.
3244 (font_family_alist): Delete it.
3245 (Qnormal): Extern it.
3246 (QCextra, QClanguage): Delete it.
1f204af3 3247 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
c6b278e7
KH
3248 (font_make_spec, font_make_entity, font_make_object)
3249 (font_intern_prop): Renamed from intern_downcase. Don't downcase
3250 the string. Callers changed.
3251 (font_pixel_size): Adjusted for the format change of font-related
3252 objects.
3253 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
3254 (font_style_to_value, font_style_symbolic): New function.
3255 (build_font_family_alist): Delete it.
3256 (font_registry_charsets): Use Fassoc_string instead of
3257 assq_no_quit.
3258 (font_prop_validate_symbol): Don't return null_string.
3259 (font_prop_validate_style): Adjusted for the change of
3260 style-related values in a font vector.
20746fe4 3261 (font_property_table): Delete entries for QClanguage and
c6b278e7
KH
3262 QCantialias, add entries for QCavgwidth.
3263 (get_font_prop_index): Delete the 2nd argument FROM.
3264 (font_prop_validate): Arguments changed.
3265 (font_put_extra): Adjusted for the change of font-related objects.
3266 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
3267 (font_parse_fcname, font_unparse_fcname)
3268 (font_prepare_composition): Likewise.
3269 (font_parse_family_registry): Renamed from font_merge_old_spec.
3270 (otf_open): Delete the 1st arg entity.
3271 (font_otf_capability): Adjusted for the above change.
3272 (font_score): New arg alternate_families. Adjusted for the change
3273 of font-related objects.
3274 (font_sort_entites): New arg best_only.
3275 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
3276 Delete them.
3277 (font_match_p): Check alternate families.
3278 (font_find_object): Delete it.
3279 (font_check_object): New function.
c3f9fba8 3280 (font_clear_cache): Adjusted for the change of font-related objects.
c6b278e7
KH
3281 (font_delete_unmatched): New arg.
3282 (font_list_entities): Call font_driver->list with a spec that
3283 doesn't specify style-related properties.
3284 (font_matching_entity): Arguments changed. Caller changed.
c3f9fba8 3285 (font_open_entity): Adjusted for the change of font-related objects.
c6b278e7
KH
3286 (font_close_object, font_has_char, font_encode_char)
3287 (font_get_name, font_get_spec): Likewise.
c3f9fba8
JB
3288 (font_spec_from_name, font_clear_prop, font_update_lface):
3289 New functions.
3290 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
c6b278e7
KH
3291 (font_prepare_for_face, font_done_for_face, font_open_by_name)
3292 (font_at): Adjusted for the change of font-related objects.
3293 (font_range): New function.
3294 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
c3f9fba8 3295 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
c6b278e7
KH
3296 (Fcopy_font_spec, Fmerge_font_spec): New function.
3297 (Ffont_family_list): Renamed from list-families.
3298 (Finternal_set_font_style_table): Arguments changed.
3299 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
3300 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
3301 change of font-related objects.
c3f9fba8 3302 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
c6b278e7 3303
3554e566 3304 * fontset.h (struct font_info): Delete it. Most members go to
c6b278e7
KH
3305 struct font.
3306 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
3307 (enum FONT_SPEC_INDEX): Delete it.
3308 (font_info, list_fonts_func, load_font_func, query_font_func)
3309 (set_frame_fontset_func, find_ccl_program_func)
3310 (get_font_repertory_func, new_fontset_from_font_name): Delete
3311 externs.
3312 (fontset_from_font_name): Extern it.
3313 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
3314 (FONT_INFO_FROM_FACE): Deleted.
3315 (face_for_font): Adjust prototype.
3316
3317 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
3318 conditionals. Don't check enable_font_backend. Delete all codes
3319 used only when USE_FONT_BACKEND is not defined.
3320 (get_font_info_func, list_font_func, load_font_func)
3321 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
3322 (get_font_repertory_func): Delete them.
3323 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
3324 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
3325 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
3326 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
3327 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
3328 (fontset_compare_rfontdef): New function.
3329 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
3330 ront-defs by qsort. Adjusted for the change of font-group vector.
3331 (load_font_get_repertory): Deleted.
3332 (fontset_find_font): Use new macros to ref/set elements of
3333 font-def and rfont-def.
3334 (fontset_font): Fix the timing of remembering that no font for C.
3335 (free_face_fontset): Do nothing if the face has no fontset.
3336 (face_suitable_for_char_p): Use new macros to ref/set elements of
3337 rfont-def.
3338 (face_for_char): Likewise. Call face_for_char with font_object.
3339 (fs_load_font): Delete. Delete #pragma surrounding it.
3340 (fs_query_fontset): Use strcasecmp instead of strcmp.
3341 (generate_ascii_font_name): Adjusted for the format change of
3342 font-spec.
3343 (Fset_fontset_font): Likewise. Use new macros to set elements of
3344 font-def.
3345 (Fnew_fontset): Use font_unparse_xlfd to generate
3346 FONTSET_ASCII (fontset).
3347 (new_fontset_from_font_name): Deleted.
3348 (fontset_from_font): Renamed from new_fontset_from_font. Check if
3349 a fontset is already created for the font. FIx updating of
3350 Vfontset_alias_alist.
3351 (fontset_ascii_font): Deleted.
3352 (Ffont_info): Adjusted for the format change of font-spec.
3353 (Finternal_char_font): Likewise.
3354 (Ffontset_info): Likewise.
3355 (syms_of_fontset): Don't check load_font_func.
3356
3357 * fns.c (internal_equal): Handle PREV_FONT.
3358
3359 * frame.h: Delete USE_FONT_BACKEND conditional.
3360
3361 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
3362 conditionals. Don't check enable_font_backend. Delete all codes
3363 used only when USE_FONT_BACKEND is not defined.
3364 (x_set_font): Call x_new_font, not x_new_fontset2.
3365 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
3366 already set for the frame.
3367
3368 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
3369 a font-entity by font_make_entity. Use font_intern_prop instead
3370 of intern_downcase. Use FONT_SET_STYLE to set a style-related
3371 font property. If a font is scalable, set avgwidth property to 0.
3372 Set font-entity property by font_put_extra.
3373 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
3374 (ffont_driver): Adjusted for the change of struct font_driver.
3375 (ftfont_spec_pattern): New function.
3376 (ftfont_list): Return a list, not vector.
3377 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
3378 (ftfont_list_family): Don't downcase names.
3379 (ftfont_free_entity): Deleted.
3380 (ftfont_open): Return a font-ojbect. Adjusted for the change of
3381 struct font. Get underline_thickness and underline_position from
3382 font property. Don't update dpyinfo->smallest_font_height and
3383 dpyinfo->smallest_char_width.
3384 (ftfont_close): Don't free `struct font'.
3385 (ftfont_has_char): Adjusted for the format change of font-entity.
3386 (ftfont_encode_char, ftfont_text_extents): Likewise.
3387
3388 * ftxfont.c (ftxfont_list): Return a list, not vector.
3389 (ftxfont_open): Return a font-ojbect. Adjusted for the change of
3390 struct font. Get underline_thickness and underline_position from
3391 font property. Don't update dpyinfo->smallest_font_height and
3392 dpyinfo->smallest_char_width.
3393 (ftxfont_close): Don't decrese FRAME_X_DISPLAY_INFO (f)->n_fonts.
3394 (ftxfont_draw): Adjusted for the change of struct font.
3395
3396 * image.c (image_ascent): Don't include "charset.h". Include
3397 "character.h" and "font.h".
3398
3399 * lisp.h (enum pvec_type): New member PREV_FONT.
3400 (Fassoc_string): EXFUN it.
3401
3402 * print.c: Include font.h.
3403 (print_object): Handle font-related objects.
3404
3405 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
3406 conditionals. Don't check enable_font_backend. Delete all codes
3407 used only when USE_FONT_BACKEND is not defined.
3408 (handle_auto_composed_prop): Do nothing if it->f is not on a
3409 window system. Check how many following characters can be
3410 displayed by the same font.
3411 (calc_pixel_width_or_height): Type of the 4th arg is changed to
3412 'struct font *'.
3413 (get_char_face_and_encoding): Assign the whole encoding task to
3414 the `encode-char' method of a font driver.
3415 (fill_composite_glyph_string): Adjusted for the change of `struct
3416 face' and `struct glyph_string'.
3417 (fill_glyph_string): Likewise.
3418 (get_per_char_metric): Arguments changed.
3419 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
3420 and `struct glyph_string'.
3421 (produce_stretch_glyph, calc_line_height_property)
3422 (x_produce_glyphs): Likewise.
3423
3424 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
3425 conditionals. Don't check enable_font_backend. Delete all codes
3426 used only when USE_FONT_BACKEND is not defined. Use
3427 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
3428 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
3429 (Qp): Extern them.
3430 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
3431 Deleted.
3432 (struct font_name): Deleted.
3433 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
3434 (compare_fonts_by_sort_order): New function.
3435 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
3436 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
3437 Deleted.
3438 (Fx_family_fonts): Use font_list_entities, and sort fonts by
3439 compare_fonts_by_sort_order.
3440 (Fx_font_family_list): Call Ffont_family_list.
3441 (face_numeric_value, face_numeric_weight, face_numeric_slant)
3442 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
3443 (face_symbolic_slant, face_symbolic_swidth)
3444 (split_font_name_into_vector, build_font_name_from_vector)
3445 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
3446 (font_rescale_ratio, split_font_name, build_font_name)
3447 (free_font_names, sort_fonts, x_face_list_fonts)
3448 (face_font_available_p, sorted_font_list, cmp_font_names)
3449 (font_list_1, concat_font_list, font_list, remove_duplicates):
3450 Deleted.
3451 (Fx_list_fonts): Use Ffont_list.
3452 (LFACE_AVGWIDTH): Deleted.
3453 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
3454 by FONTP.
3455 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
3456 (set_lface_from_font_name): Delete it.
3457 (set_lface_from_font): Renamed from
3458 set_lface_from_font_and_fontset. Caller changed. Don't set
3459 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
3460 for face.
c3f9fba8
JB
3461 (merge_face_vectors): Copy font-spec if necessary.
3462 Clear properties of the font-spec if necessary.
c6b278e7
KH
3463 (merge_face_ref): Clear properties of the font-spec if necessary.
3464 (Finternal_set_lisp_face_attribute): Likewise.
3465 (set_font_frame_param): Use font_load_for_lface to load a
3466 font-object, and call Fmodify_frame_parameters with it.
3467 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
3468 font name by Ffont_xlfd_name.
3469 (Finternal_lisp_face_attribute_values): Don't check QCweight,
3470 QCslant, and QCwidth.
3471 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
3472 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
3473 Compare fonts by EQ.
3474 (lookup_non_ascii_face): Deleted.
3475 (face_for_font): The 2nd argument changed.
c3f9fba8
JB
3476 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
3477 Check atomic font properties by case insensitive.
c6b278e7
KH
3478 (realize_non_ascii_face): Set face->overstrike correctly.
3479 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
3480 (dump_realized_face): Get font name from
3481 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
3482
3483 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
3484 conditionals. Don't check enable_font_backend. Delete all codes
3485 used only when USE_FONT_BACKEND is not defined.
3486 (xic_create_xfontset): Original code deleted and renamed from
3487 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
3488 (x_make_gc): Don't set GCFont in GCs.
3489 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
3490 opened by "fixed".
3491 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
3492 find_ccl_program_func, query_font_func, set_frame_fontset_func,
3493 get_font_repertory_func.
3494
3495 * xfont.c: Include <stdlib.h> and "ccl.h".
3496 (struct xfont_info): New structure.
3497 (xfont_query_font): Deleted.
3498 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
3499 moved from xterm.c.
3500 (xfont_driver): Adjusted for the change of struct font_driver.
3501 (compare_font_names): New function.
3502 (xfont_list_pattern): Sort font names case insensitively. Make
3503 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
3504 (xfont_list): Return a list, not vector.
3505 (xfont_match): If the font doesn't have QCname property, generate
3506 a name from the other font properties.
3507 (xfont_open): Return a font-ojbect. Adjusted for the change of
3508 struct font. Get underline_thickness and underline_position from
3509 font property. Don't update dpyinfo->smallest_font_height and
3510 dpyinfo->smallest_char_width.
3511 (xfont_close): Don't free struct font.
3512 (xfont_prepare_face): Adjusted for the change of struct font.
3513 (xfont_done_face): Deleted.
3514 (xfont_has_char): Adjusted for the change of struct font.
3515 (xfont_encode_char, xfont_draw): Likewise.
3516 (xfont_check): New function.
3517
3518 * xftfont.c (xftfont_list): Adjusted for the change of `list'
3519 callback function.
3520 (xftfont_match): Adjusted for the fontmat change of font-entity.
3521 (xftfont_open): Adjusted for the format change of font-entity and
3522 font-object. Adjusted for the change of struct font. Return a
3523 font-object. Don't update dpyinfo->smallest_font_height and
3524 dpyinfo->smallest_char_width.
3525 (xftfont_close): Block input while calling XftFontClose.
3526 (xftfont_prepare_face): Don't block input while calling
3527 xftfont_get_colors. Adjusted for the change of struct font.
3528 (xftfont_shape): Return value of error case fixed.
3529
3530 * xrdb.c (x_load_resources): Don't setup a fontset resource.
3531
3532 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
3533 conditionals.
3534 (FONT_WIDTH): Return (f)->max_width.
3535 (struct x_display_info): Delete member `font'.
3536 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
3537 (x_find_ccl_program, x_get_font_repertory): Delete externs.
3538 (struct x_output): Change type of `font' to `struct font *'.
3539
3540 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
3541 conditionals. Don't check enable_font_backend. Delete all codes
c3f9fba8 3542 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
c6b278e7
KH
3543 (x_per_char_metric, x_encode_char): Deleted.
3544 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
3545 (x_compute_glyph_string_overhangs): Adjusted for the change of
c3f9fba8 3546 `struct face'.
c6b278e7
KH
3547 (x_draw_glyph_string_foreground)
3548 (x_draw_composite_glyph_string_foreground): Likewise.
3549 (x_draw_glyph_string): Likewise. Use font->underline_position and
3550 font->underline_thickness.
3551 (x_new_font): Renamed from x_new_fontset2.
3552 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
3553 (x_check_font): Call `check' method of a font driver.
3554 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
3555 (x_query_font, x_get_font_repertory): Deleted.
3556 (x_find_ccl_program): Renamed and moved to xfont.c.
3557 (x_redisplay_interface): Adjusted for the change of `struct
3558 redisplay_interface'.
3559
3560 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
3561 conditionals. Don't check enable_font_backend. Delete all codes
3562 used only when USE_FONT_BACKEND is not defined. Surround non-used
3563 code by "#ifdef OLD_FONT" and "endif".
3564 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
3565
3566 * w32font.h (struct w32font_info): New member.
3567 (FONT_COMPAT): New macro.
3568 (w32font_open_internal): Prototype adjusted.
3569
3570 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
3571 OLD_FONT" and "endif".
3572
3573 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
3574 conditionals. Don't check enable_font_backend. Delete all codes
3575 used only when USE_FONT_BACKEND is not defined.
3576 (w32font_open): Return a font-object. Make a font-object by
3577 font_make_object. Adjusted for the change of struct w32font_info.
3578 (w32font_close): Don't free struct font. Adjusted for the change
3579 of struct w32font_info.
3580 (w32font_encode_char, w32font_text_extents, w32font_draw):
3581 Adjusted for the change of struct w32font_info.
3582 (w32font_draw): Likewise.
3583 (w32font_list_internal): Return a list, not vector.
3584 (w32font_open_internal): Change the 4th arg to font-object.
c3f9fba8 3585 Adjusted for the change of struct w32font_info and font-object format.
c6b278e7
KH
3586 (add_font_name_to_list): Don't downcase names.
3587 (w32_enumfont_pattern_entity): Make a font-entity by
3588 font_make_entity. Adjusted for the format change of font-entity.
3589 Use FONT_SET_STYLE to set a style-related font property. If a
3590 font is scalable, set avgwidth property to 0. Set font-entity
3591 property by font_put_extra.
c3f9fba8 3592 (font_matches_spec): Adjusted for the format change of font-entity.
c6b278e7
KH
3593 (w32_weight_table, w32_decode_weight): New variables.
3594 (w32_encode_weight): New function.
3595 (fill_in_logfont): Adjusted for the format change of font-spec.
3596 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
3597 weight value.
3598 (w32font_driver): Adjusted for the change of struct font_driver.
3599
3600 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
f245f2c6 3601 conditionals. Don't check enable_font_backend. Surround non-used
c6b278e7
KH
3602 code by "#ifdef OLD_FONT" and "endif".
3603 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
3604 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
3605
3606 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
3607 conditionals. Don't check enable_font_backend. Delete all codes
3608 used only when USE_FONT_BACKEND is not defined. Surround non-used
3609 code by "#ifdef OLD_FONT" and "endif".
3610
3611 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
c3f9fba8
JB
3612 (uniscribe_open): Return value changed to font-object.
3613 Adjusted for the format change of font-object.
3614 (uniscribe_otf_capability): Adjusted for the change of struct font.
c6b278e7
KH
3615 (add_opentype_font_name_to_list): Don't downcase names.
3616 (uniscribe_font_driver): Adjusted for the change of struct
3617 font_driver.
3618
f9d4c199
CY
36192008-05-13 Chong Yidong <cyd@stupidchicken.com>
3620
3621 * dispnew.c (update_frame_1): Check if tty output is still valid
3622 before flushing it.
3623
44f249c0
JD
36242008-05-13 Jan Djärv <jan.h.d@swipnet.se>
3625
3626 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
3627 to Gtk+ menus.
3628
01bb4018
SM
36292008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
3630
3271a8f5
SM
3631 * dired.c (file_name_completion): Tweak the code so as to always do it
3632 in a single pass. Tighten the scope of some variables.
3633
01bb4018
SM
3634 * dired.c (Qdefault_directory): New var.
3635 (file_name_completion): Use it instead of Fexpand_file_name.
3636 (syms_of_dired): Initialize it.
3637
728bb8e0
SM
36382008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
3639
3640 * fileio.c (double_dollars): Remove dead code.
3641
ed4c17bb
EZ
36422008-05-10 Eli Zaretskii <eliz@gnu.org>
3643
6c5665e9
EZ
3644 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
3645 Mention w32-get-true-file-attributes in doc string.
3646
ed4c17bb
EZ
3647 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
3648
71e1f69d
GM
36492008-05-09 Glenn Morris <rgm@gnu.org>
3650
3651 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
3652 2008-04-23.
3653
ee7a2e7a
EZ
36542008-05-09 Eli Zaretskii <eliz@gnu.org>
3655
8aaaec6b
EZ
3656 Support for reporting owner and group of each file on MS-Windows:
3657 * dired.c (stat_uname, stat_gname): New functions, with special
3658 implementation for w32.
3659 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
3660
ee7a2e7a
EZ
3661 * w32.c: Rename the_passwd_* to dflt_passwd_*.
3662 (dflt_group_name): New static variable.
728bb8e0 3663 (dflt_group): Rename from the_group.
ee7a2e7a
EZ
3664 (init_user_info): Init dflt_group fields. Get user's group name
3665 from LookupAccountSid.
8aaaec6b
EZ
3666 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
3667 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
3668 New initialization states.
3669 (globals_of_w32): Initialize them to zero. Initialize the default
3670 group name to "None".
3671 (GetFileSecurity_Name): New global var, the name of the function
3672 to call for GetFileSecurity.
3673 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
3674 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
3675 (get_file_security, get_security_descriptor_owner)
3676 (get_security_descriptor_group, is_valid_sid)
3677 (get_file_security_desc, get_rid, get_name_and_id)
3678 (get_file_owner_and_group): New functions.
3679 (stat): Use get_file_security_desc and get_file_owner_and_group to
3680 report the owner and primary group of each file. Don't ignore the
728bb8e0
SM
3681 high 32 bits of file's size, now that st_size is 64-bit wide.
3682 Fix test when to get true file attributes.
8aaaec6b
EZ
3683 (init_user_info): Use get_rid instead of equivalent inline code.
3684 (fstat): Don't ignore the high 32 bits of file's size.
ee7a2e7a 3685
b199c436
CY
36862008-05-09 Chong Yidong <cyd@stupidchicken.com>
3687
3688 * image.c (png_load): Use correct bit-depth for setting background
3689 color.
3690
86914123
EZ
36912008-05-08 Eli Zaretskii <eliz@gnu.org>
3692
3693 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
3694 epa-hook.elc.
3695
67b5d7de
JB
36962008-05-08 Juanma Barranquero <lekktu@gmail.com>
3697
3698 * font.c (Ffont_match_p): Don't use `iff' in docstring.
3699
1a111394
DN
37002008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
3701
3702 * macfns.c (Fx_create_frame): Make a copy of frame parameters
3703 because the original parameters are in pure storage now.
3704 (mac_window): Remove unused params. Update callers.
3705
6d77fa95
SM
37062008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3707
7a3d90dc
SM
3708 * lread.c (substitute_object_recurse): Use lower-level primitives.
3709 Don't signal errors when traversing sub-char-tables.
3710 Don't loop over all the possible characters when traversing char-tables.
3711
6d77fa95
SM
3712 * print.c (print_preprocess): Add sub-char-tables to the print-table,
3713 just like we do in print.c.
3714
140eb764
SM
37152008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
3716
3717 * minibuf.c (Ftry_completion): Remove code left over from when we used
3718 scmp instead of Fcompare_strings.
3719
e9184ccb
JB
37202008-05-04 Juanma Barranquero <lekktu@gmail.com>
3721
3722 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
3723
0e9378b3
YM
37242008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3725
3726 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
3727 Create bitmap context in native byte order.
3728
f67e15be
MB
3729 * macterm.c (XDrawLine)
3730 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
3731 context in native byte order.
064032d0 3732
f67e15be 37332008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
50eff40f
YM
3734
3735 * config.in: Regenerate.
3736
3737 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
3738 New definitions for Image I/O support.
3739 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
3740 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
3741 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
3742 (mac_data_provider_release_data, image_load_image_io)
3743 [USE_MAC_IMAGE_IO]: New functions.
3744 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
3745 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
3746 (init_image_func_pointer) [MAC_OSX]: Remove function.
3747 (image_load_quartz2d) [MAC_OSX]: Check availability of
3748 CGImageCreateWithPNGDataProvider at compile time.
3749 Use lowercase `false' for boolean constant.
3750 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
3751 Use image_load_image_io.
3752 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
3753 Don't check MyCGImageCreateWithPNGDataProvider.
3754 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
3755 Don't call init_image_func_pointer.
3756
3757 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
3758
3759 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
3760 Make variable non-static.
3761 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
3762 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
3763
3764 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
3765 (RED_FROM_ULONG): Mask off higher bits.
3766 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
3767
3768 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
3769 Include AvailabilityMacros.h.
3770 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
3771 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
3772
c6bff69e
SM
37732008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
3774
3775 * chartab.c (Fset_char_table_range): If range is t, really set all
3776 chars to that value.
3777
7412d429
EZ
37782008-05-03 Eli Zaretskii <eliz@gnu.org>
3779
3780 * dired.c (Ffile_attributes): Don't allow the device number become
3781 negative.
3782
f83bbfac
DU
37832008-05-02 Daiki Ueno <ueno@unixuser.org>
3784
5a81d3d7 3785 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
f83bbfac 3786
2e3148e2
JL
37872008-05-02 Juri Linkov <juri@jurta.org>
3788
3789 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
728bb8e0
SM
3790 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
3791 DEFAULT argument as a list of default values in docstrings.
2e3148e2 3792
923fb88c
CY
37932008-05-01 Chong Yidong <cyd@stupidchicken.com>
3794
3795 * puresize.h (BASE_PURESIZE): Increase to 1210000.
3796
047aaeb9
MR
37972008-05-01 Martin Rudalics <rudalics@gmx.at>
3798
3799 * dispnew.c (change_frame_size_1): Preserve small windows when
3800 shrinking frames by calling set_window_height|width with third
3801 arg 2.
3802
3803 * window.h (struct window): Replace field too_small_ok by field
3804 resize_proportionally.
3805
3806 * window.c (make_window): Initialize resize_proportionally.
3807 (enlarge_window): Temporarily set resize_proportionally to make
3808 sure that shrink_windows does scale the window proportionally.
3809 (shrink_windows): When window has resize_proportionally set try
3810 to shrink it proportionally by stealing from other windows.
3811 (struct saved_window, Fset_window_configuration)
3812 (compare_window_configurations): Handle resize_proportionally.
3813 (WINDOW_TOTAL_SIZE): New macro.
3814 (window_min_size, shrink_windows, size_window): Use it.
c6bff69e 3815 (check_min_window_sizes): Remove. Invalid values of
047aaeb9
MR
3816 window-min-height|width are handled by window_min_size_2 now.
3817 (size_window, Fsplit_window, enlarge_window)
3818 (adjust_window_trailing_edge, grow_mini_window): Don't call
3819 check_min_window_sizes.
c6bff69e
SM
3820 (window_min_size_2, window_min_size_1, window_min_size):
3821 New argument safe_p for retrieving "safe" minimum sizes.
c3f9fba8 3822 (Fdisplay_buffer, Fsplit_window, enlarge_window)
c6bff69e
SM
3823 (adjust_window_trailing_edge, grow_mini_window):
3824 Adjust arguments of window_min_size... functions.
047aaeb9
MR
3825 (shrink_windows): Argument min_size removed. New argument
3826 safe_p allows shrinking windows to their safe minimum sizes.
3827 Calculate minimum size and decide whether a window shall be
3828 deleted for each window individually.
3829 (size_window): When nodelete_p equals 2, tell shrink_windows to
3830 delete windows only if their new minimum size is no more safe.
3831 (shrink_window_lowest_first): Call window_min_size_1 to make
3832 sure to preserve modeline of bottom-most window when resizing
3833 the minibuffer.
3834 (Fset_window_configuration, Fcurrent_window_configuration)
3835 (compare_window_configurations): Do not handle
3836 window-min-height|width any more.
3837 (syms_of_window): Clarify window-min-height|width doc-strings.
3838
2a54a229
SM
38392008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
3840
3841 * dired.c (file_name_completion): Fix up the encoding/decoding issue
3842 some more. Copy some of the code from Ftry_completions.
3843 Remove special case code that dates back to initial revision when the
3844 slash was only added when necessary and that can't trigger nowadays.
3845
384bc634
KH
38462008-04-27 Kenichi Handa <handa@m17n.org>
3847
3848 * font.c (font_prop_validate): Signal `error' instead of `font'.
3849
2c2279c6
JR
38502008-04-29 Jason Rumney <jasonr@gnu.org>
3851
3852 * w32fns.c (Fw32_battery_status): New defun.
3853 (syms_of_w32fns): Defsubr it.
3854
fb4a622a
AS
38552008-04-28 Andreas Schwab <schwab@suse.de>
3856
3857 * dired.c (file_name_completion): Fix another mixing of encoded
3858 and decoded names.
3859
23f250f4
JB
38602008-04-28 Juanma Barranquero <lekktu@gmail.com>
3861
3862 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
3863
d8d30dff
JB
38642008-04-27 Juanma Barranquero <lekktu@gmail.com>
3865
3866 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
3867
ea6104a8
AS
38682008-04-27 Andreas Schwab <schwab@suse.de>
3869
9c691c00
AS
3870 * dired.c (file_name_completion): Fix inappropriate mixing of
3871 encoded and decoded names.
3872
ec1bf773
AS
3873 * xterm.c (XTread_socket): Fix use of uninitialized variable.
3874
ea6104a8
AS
3875 * puresize.h (BASE_PURESIZE): Increase to 1200000.
3876
01388a3d
EZ
38772008-04-26 Eli Zaretskii <eliz@gnu.org>
3878
3879 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
3880 2008-03-31, it's not needed anymore with `struct stat' definition
3881 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
3882 for the same reasons.
3883
175aea10 38842008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
27af566c
CY
3885
3886 * m/sparc.h: Additional redefinitions for GNU/Linux.
3887
1289aeb8
YM
38882008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3889
3890 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
3891 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
3892 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
3893 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
3894 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
3895 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
3896 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
3897 Likewise.
3898
3899 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
c3f9fba8 3900 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
1289aeb8
YM
3901 (mac_ax_number_of_characters): Add externs.
3902 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
3903 [USE_MAC_TSM]: Likewise.
3904 (mac_handle_text_input_event) [MAC_OSX]:
3905 Handle kEventTextInputOffsetToPos for no active input area case.
3906 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
3907 (mac_handle_document_access_event)
3908 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
3909 (install_application_handler) [MAC_OSX]: Register handlers for
3910 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
3911 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
3912 Register mac_handle_document_access_event.
3913
3914 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
3915 Make functions non-static.
3916
dbd50d4b
SM
39172008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
3918
3919 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
3920 (read_file_name_completion_ignore_case, insert_default_directory)
3921 (Qdefault_directory): Move to minibuffer.el.
3922 (Fread_file_name): Call the new `read-file-name' instead.
3923
9ea37b9d 39242008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
81fe843b
YM
3925
3926 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
3927 Make function non-static.
3928 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
3929 Remove function.
3930 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
3931 Move to mactoolbox.c.
3932 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
3933
3934 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
3935 (mac_rect_make): New macro.
3936
3937 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
3938 instead of float.
3939 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
3940 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
3941 (XSetBackground) [USE_CG_DRAWING]: Likewise.
3942 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
3943 CGRectMake.
3944 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
3945 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
3946 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
3947 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
3948 instead of WindowRef in argument type.
3949 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
3950 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
3951 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
3952 instead of DISPLAY. All uses changed.
3953 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
3954 (x_calc_absolute_position): Simplify so as not to use
3955 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
81fe843b
YM
3956
3957 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
3958 instead of WindowRef in argument type.
3959 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
3960 [TARGET_API_MAC_CARBON]: Remove externs.
3961 (create_apple_event, mac_event_parameters_to_lisp)
3962 [TARGET_API_MAC_CARBON]: Add externs.
3963
d8d30dff 3964 * mactoolbox.c (Vmac_ts_script_language_on_focus)
81fe843b
YM
3965 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
3966 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
3967 is clicked.
3968 (x_activate_menubar): Remove extern for saved_menu_event_location.
3969 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
3970 Move from mac.c.
3971
9ea37b9d 39722008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a1b41389
YM
3973
3974 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
3975 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
3976
9ea37b9d 39772008-04-23 Jason Rumney <jasonr@gnu.org>
bd735631
JR
3978
3979 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
3980 attributes only for local files.
3981
3982 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
e9184ccb 3983 default to Qlocal.
bd735631 3984
88970542
JL
39852008-04-22 Juri Linkov <juri@jurta.org>
3986
3987 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
3988 read-buffer-to-switch instead of using the letter "B".
3989
92ec67e3
SM
39902008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
3991
3992 * fileio.c (Qdefault_directory): New variable.
3993 (Fread_file_name): Use it to pass `dir' to the completion functions.
3994
a32b2382
CY
39952008-04-20 Chong Yidong <cyd@stupidchicken.com>
3996
2a2e8de7 3997 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
a32b2382 3998
6c8b4f07
SM
39992008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
4000
ece5f847
SM
4001 * keyboard.c (Vpre_help_message): Remove.
4002 (show_help_echo): Remove default C code.
4003
6c8b4f07
SM
4004 * dired.c (directory_files_internal, file_name_completion):
4005 Only call ENCODE_FILE if the string is indeed decoded.
4006
73d798d5
SM
40072008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
4008
4009 * Makefile.in (TOOLKIT_DEFINES): Remove.
4010 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
4011
d8d30dff 40122008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9e13f0c3
YM
4013
4014 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
4015 (mactoolbox.o): New target.
4016
4017 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
4018 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
4019
4020 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
4021 Use mac_set_frame_window_background instead of XSetWindowBackground.
4022 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
4023 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
4024 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
4025 instead of SetWindowTitleWithCFString.
4026 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
4027 Move function to mactoolbox.c.
4028 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
4029 Use mac_set_window_modified instead of SetWindowModified.
4030 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
4031 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
4032 (Fx_focus_frame): Use mac_front_non_floating_window instead of
4033 FrontNonFloatingWindow. Use mac_activate_window instead of
4034 ActivateWindow. Use mac_active_non_floating_window instead of
4035 ActiveNonFloatingWindow.
4036 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
4037 Use mac_show_hourglass and mac_hide_hourglass.
4038 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
4039 instead of GetGlobalMouse.
4040 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
4041 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
4042 Use mac_bring_window_to_front instead of BringToFront.
4043 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
4044 mactoolbox.c.
4045 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
4046 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
4047 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
4048 mactoolbox.c.
4049
4050 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
4051 (XtPointer): Move typedef from macmenu.c.
4052 (enum button_type): Move enum from macmenu.c.
4053 (widget_value): Move typedef from macmenu.c.
4054 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
4055 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
4056 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
4057 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
4058 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
4059 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
4060 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
4061 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
4062 (Selection): Move typedef from macselect.c.
4063 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
4064 macterm.c.
4065 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
4066 (mac_is_window_collapsed, mac_bring_window_to_front)
4067 (mac_send_window_behind, mac_hide_window, mac_show_window)
4068 (mac_collapse_window, mac_front_non_floating_window)
4069 (mac_active_non_floating_window, mac_activate_window)
4070 (mac_move_window_structure, mac_move_window, mac_size_window)
4071 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
4072
4073 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
4074 (enum mac_menu_kind): Move enum to mactoolbox.c.
4075 (min_menu_id): Move variable to mactoolbox.c.
4076 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
4077 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
4078 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
4079 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
4080 [TARGET_API_MAC_CARBON]: Likewise.
4081 (XtPointer): Move typedef to macgui.h.
4082 (enum button_type): Move enum to macgui.h.
d02fe47d
MB
4083 (widget_value): Move typedef to macgui.h.
4084 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
4085 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
4086 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
4087 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
4088 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
4089 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
4090 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
4091 (popup_activated_flag): Make variable non-static.
4092 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
4093 (add_menu_item, fill_menu, dispose_menus):
4094 Move functions to mactoolbox.c.
4095 (restore_show_help_function, menu_target_item_handler)
4096 (install_menu_target_item_handler, mac_handle_dialog_event)
4097 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
4098 [TARGET_API_MAC_CARBON]: Likewise.
4099 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
4100 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
4101 (find_and_call_menu_selection, name_is_separator): Make function
4102 non-static.
4103 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
4104 to mactoolbox.c.
4105 (set_frame_menubar): Don't call install_menu_quit_handler.
4106 (menu_item_selection): New variable.
4107 (mac_menu_show): Use create_and_show_popup_menu.
4108 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
4109 selection but set variable menu_item_selection. All uses changed.
4110 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
4111 Call install_menu_quit_handler. Move to mactoolbox.c.
edd3ff1d 4112
d02fe47d
MB
4113 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
4114 (Selection): Move typedef to macgui.h.
4115 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
4116 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
4117 Make variables non-static.
4118 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
4119 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
4120 Make functions non-static.
4121 (Vmac_service_selection) [MAC_OSX]: Likewise.
4122 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
4123 (mac_valid_selection_target_p, mac_clear_selection)
4124 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
4125 (mac_put_selection_value, mac_selection_has_target_p)
4126 (mac_get_selection_value, mac_get_selection_target_list)
4127 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
4128 Move functions to mactoolbox.c.
4129 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
4130 Likewise.
4131 (copy_scrap_flavor_data, mac_handle_service_event)
4132 (install_service_handler) [MAC_OSX]: Likewise.
4133 (syms_of_macselect) <Vmac_dnd_known_types>:
4134 Use mac_dnd_default_known_types.
463f55ee 4135
d02fe47d
MB
4136 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
4137 Move to mactoolbox.c.
4138 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
4139 (Fx_selection_owner_p): Add EXFUN.
4140 (install_window_handler, remove_window_handler, XSetWindowBackground):
4141 Remove externs.
4142 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
4143 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
4144 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
4145 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
4146 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
4147 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
4148 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
4149 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
4150 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
4151 (create_and_show_popup_menu, mac_get_selection_from_symbol)
4152 (mac_valid_selection_target_p, mac_clear_selection)
4153 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
4154 (mac_put_selection_value, mac_selection_has_target_p)
4155 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
4156 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
4157 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
4158 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
4159 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
4160 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
4161 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
4162 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
4163 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
463f55ee 4164
d02fe47d 4165 * mactoolbox.c: New file.
af253914 4166
d8d30dff 41672008-04-18 Jason Rumney <jasonr@gnu.org>
af253914 4168
d02fe47d 4169 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
af253914 4170
8ee085a4
SM
41712008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
4172
73d798d5
SM
4173 * character.c (Fmultibyte_char_to_unibyte):
4174 Return latin1 chars unchanged.
5556875b 4175
8ee085a4
SM
4176 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
4177 relocated if it points to `name'.
4178
5dff5999
KH
41792008-04-17 Kenichi Handa <handa@m17n.org>
4180
4181 * data.c (Faset): Allow setting a multibyte character in an
4182 ASCII-only unibyte string.
4183
4184 * lisp.h (STRING_SET_MULTIBYTE): New macro.
4185
a51f4969
SM
41862008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
4187
4188 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
4189 done in config.h.
4190
add553ac
JB
41912008-04-16 Juanma Barranquero <lekktu@gmail.com>
4192
4193 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
4194 (Fchar_direction): Add usage in the docstring.
4195
8ad7b280
CY
41962008-04-15 Chong Yidong <cyd@stupidchicken.com>
4197
4198 * keyboard.c (read_key_sequence): Remove always-true checks.
4199
e157d7ba
JR
42002008-04-14 Jason Rumney <jasonr@gnu.org>
4201
4202 * w32font.c (w32font_open_internal): Set max_bounds.descent in
4203 compatibility struct, for better underline positioning.
4204
9ec3aaef 42052008-04-13 David Hansen <david.hansen@gmx.net>
48f7d213
MA
4206
4207 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
4208 string.
4209
36c08864
DN
42102008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
4211
4212 * m/hp800.h (XUINT, XSET): Remove.
4213
f5acc071
JB
42142008-04-12 Juanma Barranquero <lekktu@gmail.com>
4215
4216 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
4217 previous change.
4218
5b5a2ea1
SM
42192008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
4220
4221 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
4222 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
4223
492d9fd6
SM
42242008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
4225
4226 * keymap.h (map_keymap_canonical): Declare.
4227 * xmenu.c (single_keymap_panes): Use it.
4228
dd60787c
GM
42292008-04-11 Glenn Morris <rgm@gnu.org>
4230
4231 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
4232 set the target's value to that of the alias.
4233
c23b5410
SM
42342008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
4235
4236 * term.c (set_tty_color_mode): Left over typo.
4237
e89b536d
MA
42382008-04-10 Michael Albinus <michael.albinus@gmx.de>
4239
4240 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
f5acc071 4241 only after check for file name handler functions. Signal, when
e89b536d
MA
4242 native functionality is not supported.
4243 (syms_of_fileio): Declare it unconditionally.
4244
40a339c8
JR
42452008-04-10 Jason Rumney <jasonr@gnu.org>
4246
31403b24
JR
4247 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
4248 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
4249
40a339c8
JR
4250 * w32.c (logon_network_drive): Also logon to remote drives that
4251 are mapped to drive letters.
4252
96a7394f
GM
42532008-04-10 Glenn Morris <rgm@gnu.org>
4254
4255 * xdisp.c (truncate-partial-width-windows): Doc fix.
4256
34b67b0f
SM
42572008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
4258
4259 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
4260 Move functions to minibuffer.el.
4261 (syms_of_fileio): Don't declare them.
4262
c025fb0a
SM
42632008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
4264
ba5ff07b
SM
4265 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
4266 (syms_of_minibuf): Remove its initialization.
4267
c025fb0a
SM
4268 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
4269
7a6a86ad
JB
42702008-04-09 Juanma Barranquero <lekktu@gmail.com>
4271
4272 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
4273
cf907d69
JR
42742008-04-09 Jason Rumney <jasonr@gnu.org>
4275
3dc94c30
JR
4276 * makefile.w32-in (distclean): Delete makefile too.
4277 (maintainer-clean): New target.
4278
8d28646b
JR
4279 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
4280
cf907d69
JR
4281 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
4282 for new font backend and composite cases.
4283
ef5eb925
JD
42842008-04-09 Jan Djärv <jan.h.d@swipnet.se>
4285
4286 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
4287 Most of the code moved to run_timers.
4288 (do_pending_atimers): Call run_timers.
4289 (run_timers): New function.
4290
cf907d69
JR
4291 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
4292 run atimers.
ef5eb925
JD
4293
4294 * process.c (wait_reading_process_output): The same as above.
4295
9b2cd403
SM
42962008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
4297
32bae13c
SM
4298 * minibuf.c (last_exact_completion): Remove variable.
4299 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
4300 (complete_and_exit_1, complete_and_exit_2)
4301 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
4302 (Fdisplay_completion_list, display_completion_list_1)
4303 (Fminibuffer_completion_help, Fself_insert_and_exit)
8d28646b
JR
4304 (Fexit_minibuffer, Fminibuffer_message): Move functions to
4305 minibuffer.el.
32bae13c
SM
4306 (syms_of_minibuf): Remove corresponding initializations.
4307
5c4cc82a
SM
4308 * keyboard.c (Qdeactivate_mark): New var.
4309 (command_loop_1): Use it to call `deactivate-mark'.
4310 (syms_of_keyboard): Initialize it.
4311
9b2cd403
SM
4312 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
4313 to another frame.
4314 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
4315 Don't call set_tty_color_mode.
4316 (store_frame_param): Reset previous_frame rather than call
4317 set_tty_color_mode.
4318 * term.c (set_tty_color_mode): Rewrite.
4319 * dispextern.h (set_tty_color_mode): New type.
4320 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
4321
84cb7b45
SM
43222008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
4323
4324 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
4325 for generic chars, which do not exist any more in emacs-unicode.
4326
3ed051d4
MA
43272008-04-08 Michael Albinus <michael.albinus@gmx.de>
4328
4329 * coding.c (detect_coding_emacs_mule)
4330 (Ffind_operation_coding_system): Fix typo.
4331
58c3ea42
JR
43322008-04-08 Jason Rumney <jasonr@gnu.org>
4333
3bf8d230
JR
4334 * w32uniscribe.c (SNAME): Extract only symbol name.
4335
56a70cca
JR
4336 * w32font.h (struct w32_metric_cache): New struct.
4337 (w32font_info): Use it.
4338 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
4339 (CACHE_BLOCKSIZE): New constants.
3ed051d4 4340
58c3ea42
JR
4341 * w32font.c (Qja, Qko, Qzh): New symbols.
4342 (syms_of_w32font): Initialise them.
4343 (font_matches_spec): Use them to filter by language.
4344 (recompute_cached_metrics): Remove function.
4345 (compute_metrics, clear_cached_metrics): New functions.
4346 (w32font_encode_char): Use them to manage metric cache.
4347 (w32font_text_extents): Cache metrics for all glyphs on demand.
4348 Delay converting glyph indices to WORD until needed.
4349 (w32font_open_internal): Initialize metric cache to empty.
4350 (registry_to_w32_charset): Charset should always be a symbol.
4351 (fill_in_logfont, list_all_matching_fonts): Family should
4352 always be a symbol.
4353
0ce24b2d
JR
43542008-04-06 Jason Rumney <jasonr@gnu.org>
4355
4356 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
4357 Give up if glyph indices not supported. Use uniscribe obtained
4358 ABC widths for individual metrics. Map glyph clusters back to
4359 characters using fClusterStart flag. Return number of glyphs
4360 produced, not chars processed.
b7655e0c 4361 (uniscribe_shape): Map char at FROM to current glyph.
0ce24b2d 4362
5bc6ddff 43632008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
56613f06 4364
fbf57abb
JB
4365 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
4366 Use SetMenuItemHierarchicalMenu.
56613f06 4367
5bc6ddff 43682008-04-05 Jason Rumney <jasonr@gnu.org>
93421a1f 4369
5bc6ddff
MB
4370 * image.c (pbm_load): Allow color values up to 65535.
4371 Throw an error if max_color_idx is outside the supported range.
4372 Report an error when image size is invalid.
4373 Read two bytes at a time when raw images have max_color_idx above 255.
1f816871 4374
5bc6ddff 43752008-04-05 Eli Zaretskii <eliz@gnu.org>
5ed6ba5b 4376
5bc6ddff
MB
4377 * w32.c (readdir): If FindFirstFile/FindNextFile return in
4378 cFileName a file name that includes `?' characters, use the 8+3
4379 alias in cAlternateFileName instead.
5ed6ba5b 4380
5bc6ddff 43812008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
32c06229 4382
5bc6ddff
MB
4383 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
4384 append "CCL: Quitted" when the CCL program is quitted.
4385 (setup_ccl_program): Initialize ccl->quit_silently to zero.
32c06229 4386
5bc6ddff 4387 * ccl.h (struct ccl_program): New member quit_silently.
32c06229 4388
c36e15db
CY
43892008-04-05 Chong Yidong <cyd@stupidchicken.com>
4390
9605d567
CY
4391 * search.c (compile_pattern_1): Treat non-nil and non-string of
4392 search-spaces-regexp as nil.
4393
c36e15db
CY
4394 * minibuf.c (Fassoc_string): Tweak docstring.
4395
40beb147
EZ
43962008-04-05 Eli Zaretskii <eliz@gnu.org>
4397
4398 * dired.c (Ffile_attributes): Support inode numbers wider than 32
4399 bits. Remove ugly WINDOWSNT-specific kludge introduced on
4400 2008-03-14 to force inode be positive.
4401
4402 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
4403 _S_* ones, since we now use our own sys/stat.h.
4404 (stat, fstat): Don't mangle the inode number.
aa08d1ff 4405 (init_user_info): Don't restrict UID and GID to 0-60000 range.
40beb147 4406
4591d6cb
SM
44072008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
4408
d4417eb0
SM
4409 * frame.h (struct frame): Give one more bit to `visible' since we use
4410 values larger than 1 to indicate obscured frames on ttys.
4411
00f7c5ed
SM
4412 * keymap.c (Qkeymap_canonicalize): New var.
4413 (Fmap_keymap_internal): New fun.
4414 (describe_map): Use keymap-canonicalize.
4415
4591d6cb
SM
4416 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
4417 (Fundo_boundary): Set them.
4418 (syms_of_undo): Initialize them.
4419 (record_point): Use them instead of last_point_position*.
4420 (last_undo_buffer): Change type.
4421
3187540e
JR
44222008-04-04 Jason Rumney <jasonr@gnu.org>
4423
0ce24b2d
JR
4424 * w32font.c (w32font_text_extents): Use font's ascent and descent.
4425 (recompute_cached_metrics): Don't set ascent and descent per char.
4426
3187540e 4427 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
4591d6cb 4428 (uniscribe_check_otf): Add GC protection before consing.
d0bfec76 4429 Rearrange loop for counting features.
3187540e 4430
f1a6b216
SM
44312008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
4432
4433 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
4434 buffer with byte-size of source buffer.
4435
1d8dcf63
CY
44362008-04-03 Chong Yidong <cyd@stupidchicken.com>
4437
4438 * callint.c (Fcall_interactively): Handle temporary region even
4439 when shift-select-mode is off.
4440
6b8aa22a
JR
44412008-04-03 Jason Rumney <jasonr@gnu.org>
4442
4443 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
4444
2f3cbb32
KH
44452008-04-03 Kenichi Handa <handa@m17n.org>
4446
4447 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
4448 (CATEGORY_MASK_UTF_16): Likewise.
4449 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
4450 binary file.
4451 (detect_coding): Add null-byte detection for a binary file.
4452 (detect_coding_system): Likewise.
4453
43f4f91c
JR
44542008-04-03 Jason Rumney <jasonr@gnu.org>
4455
0c1b4ae2
JR
4456 * w32uniscribe.c: New file.
4457
4458 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
4459
4460 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
4461
4462 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
4463 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
4464 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
4465 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
4466 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
4467 (Qphonetic): New symbols.
4468 (syms_of_w32font): Initialize them.
4469 (font_supported_scripts): Use them.
4470 (w32font_list_family): List all charsets.
4471 (w32font_text_extents, recompute_cached_metrics): Fix metric
4472 calculations.
4473 (w32_enumfont_pattern_entity): Make full_type a DWORD.
4474 Give opentype fonts their own format.
4475 (font_matches_spec): New arguments backend and logfont.
4476 Handle :otf spec for uniscribe backend.
4477 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
4478 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
4591d6cb 4479
0c1b4ae2
JR
4480 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
4481 font backend.
4482 (globals_of_w32fns): Initialize uniscribe font backend.
4483
fbf57abb 4484 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
0c1b4ae2
JR
4485 dependencies.
4486 (w32uniscribe.$(O)): New file to build.
4487 (FONT_OBJ): Include w32uniscribe.$(O).
4488 (LIBS): Add uniscribe libraries.
4489
43f4f91c
JR
4490 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
4491
75043a7d
CY
44922008-04-02 Chong Yidong <cyd@stupidchicken.com>
4493
4494 * callint.c (Vshift_select_mode): New var.
4495 (Finteractive): Document new ^ spec.
4496 (Fcall_interactively): Call handle-shift-selection if the ^ spec
4497 is present.
4498
4499 * keyboard.c (Vthis_command_keys_shift_translated): New var.
4500 (command_loop_1): Avoid running the direct display versions of
4501 forward-char and backward-char if shift-selection may occur.
75043a7d
CY
4502 (read_key_sequence): Set Vthis_command_keys_shift_translated if
4503 shift-translation takes place.
4504
4505 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
4506 avoid clobbering by define-minor-mode.
4507
4508 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
4509 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
4510
4511 * syntax.c (Fforward_word): Add ^ interactive spec.
4512
4513 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
4514 (Fscroll_right): Add ^ interactive spec.
4515
b2b7f29e
SM
45162008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
4517
a432c0a6
SM
4518 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
4519
994b75e0
SM
4520 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
4521
b2b7f29e
SM
4522 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
4523
e99c7806
JL
45242008-03-31 Juri Linkov <juri@jurta.org>
4525
4526 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
4527
1c9c1270
JD
45282008-03-30 Jan Djärv <jan.h.d@swipnet.se>
4529
4530 * gtkutil.c (xg_set_geometry): Fix indentation.
994b75e0 4531 (xg_resize_outer_widget): Remove.
1c9c1270
JD
4532 (x_wm_size_hint_off): Fix indentation.
4533 (xg_frame_set_char_size): Call flush_and_sync after
4534 gtk_window_resize.
4535 (x_wm_set_size_hint): Pass NULL as geometry window to
4536 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
4537 Add menu bar and tool bar height to base height.
4538 (xg_update_frame_menubar, free_frame_menubar)
4539 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
994b75e0
SM
4540 (update_frame_tool_bar, free_frame_tool_bar):
4541 Change xg_resize_outer_widget to xg_frame_set_char_size.
1c9c1270 4542
90b3fc84
MA
45432008-03-30 Michael Albinus <michael.albinus@gmx.de>
4544
4545 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
4546 (Fdbus_call_method): New parameter TIMEOUT.
4547 (dbus-send-signal): Optimize UNGCPRO call.
4548
7ae6d1d1
JL
45492008-03-29 Juri Linkov <juri@jurta.org>
4550
4551 * window.c (Fdisplay_buffer): Move call to
4552 Vsplit_window_preferred_function out of conditions that check
4553 if window is eligible for vertical splitting.
4554 When Vsplit_window_preferred_function is non-nil, call it and use
4555 its non-nil return value as window. Otherwise, continue doing
4556 vertical splitting using Fsplit_window with arg horflag=nil.
4557 (syms_of_window) <Vsplit_window_preferred_function>: Change the
4558 default value from `split-window' to nil.
4559
f03f8f2c
JL
45602008-03-29 Juri Linkov <juri@jurta.org>
4561
4562 * callint.c (Fcall_interactively): Revert 2008-03-16 change
4563 for interactive code letters 'b' and 'B'.
4564
6d557778
EZ
45652008-03-29 Eli Zaretskii <eliz@gnu.org>
4566
4567 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
4568 multibyte string.
4569
58555d81
SM
45702008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
4571
4572 * keyboard.c (pending_funcalls): New var.
4573 (timer_check): Run it.
4574 (syms_of_keyboard): Initialize it.
4575 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
4576 (Vdelete_terminal_functions): New vars.
4577 (syms_of_terminal): Initialize them.
4578 (Fdelete_terminal): Run delete-terminal-functions.
4579 * xdisp.c (safe_eval): Rewrite.
4580 (safe_call2): New fun.
4581 * frame.c (Qdelete_frame_functions): New var.
4582 (syms_of_frame): Initialize it.
4583 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
4584 * lisp.h (safe_call2, pending_funcalls): Declare.
4585
4c92f429
AS
45862008-03-28 Andreas Schwab <schwab@suse.de>
4587
4588 * indent.c (Fmove_to_column): Move declaration before statements.
4589
a1567c45
SM
45902008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
4591
2806a183
SM
4592 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
4593 (struct frame): Use bit fields for boolean vars.
4594
eef60308
SM
4595 * process.c (server_accept_connection): Simplify naming.
4596 (emacs_get_tty_pgrp): Use SDATA.
4597
a1567c45
SM
4598 * coding.c (decode_coding_object): Fix last change.
4599
30076589
JR
46002008-03-27 Jason Rumney <jasonr@gnu.org>
4601
4602 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
4603
880820fe
KH
46042008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
4605
4606 * charset.c (Fdefine_charset_internal): Change the way of
4607 registering charsets in Vcharset_order_list.
4608 (syms_of_charset): Make the charset `eight-bit' supplementary.
4609
3cf8cdfb
CY
46102008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
4611
4612 * regex.c (EXTEND_BUFFER): Change order of pointer addition
4613 operations, to avoid having the difference between pointers
4614 overflow.
4615
ef6f5c0e
SM
46162008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
4617
80e3db56
SM
4618 * indent.c (check_display_width): New fun.
4619 (scan_for_column): Use it.
4620
c397dc7a
SM
4621 * data.c (syms_of_data): Mark most-positive-fixnum and
4622 most-negative-fixnum as constants.
4623
bf6b4d58
SM
4624 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
4625
ef6f5c0e
SM
4626 * indent.c (scan_for_column): Extract from current_column_1.
4627 Merge with the same code from Fmove_to_column.
4628 (current_column_1, Fmove_to_column): Use it.
4629
72d5003d
SM
46302008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
4631
12270607
SM
4632 * keymap.c (map_keymap_internal): New fun.
4633 (map_keymap): Use it.
4634 (Fmap_keymap_internal): New fun.
4635 (Fmap_keymap): Remove left-out test from before make_save_value.
4636
a10cca6c
SM
4637 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
4638
d7b10f4c
SM
4639 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
4640 Use XCAR/XCDR.
4641
5431bd6a
SM
4642 * process.h (struct Lisp_Process): Remove filter_multibyte.
4643 * process.c (QCfilter_multibyte): Remove.
4644 (setup_process_coding_systems): Don't use filter_multibyte.
4645 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
4646 (read_process_output): Don't adjust multibyteness to filter_multibyte.
4647 (Fset_process_filter_multibyte): Change the coding-system to
4648 approximate the previous behavior.
4649 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
4650 coding-system.
4651
72d5003d
SM
4652 * coding.c (decode_coding_object): When not decoding into a buffer,
4653 obey the coding system's preference of (uni|multi)byte.
4654
438eba3c
SM
46552008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
4656
4657 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
4658 every char is changed and has a different byte-length.
4659 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
4660 Fix int -> EMACS_INT.
4661
9ec3aaef 46622008-03-23 David Hansen <david.hansen@gmx.net>
a8e72f4f 4663
438eba3c 4664 * dbusbind.c (xd_read_message): Remove extra copying of message
a8e72f4f
MA
4665 strings. Check for NULL `interface' or `member'.
4666
b07103dc
EZ
46672008-03-22 Eli Zaretskii <eliz@gnu.org>
4668
4669 * w32.c (readdir): If FindFirstFile/FindNextFile return in
4670 cFileName a file name that includes `?' characters, use the 8+3
4671 alias in cAlternateFileName instead.
4672
5371d722
SM
46732008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
4674
4675 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
4676
6ba7f443
SM
46772008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
4678
4679 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
4680 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
4681 work on current_buffer only instead (that was already the case
4682 for some of the code anyway).
4683 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
4684 (temp_set_point, temp_set_point_both): Use EMACS_INT.
4685 (SET_PT, SET_PT_BOTH): Adjust.
4686 * intervals.h (set_point, temp_set_point, set_point_both)
4687 (temp_set_point_both): Remove redundant declarations.
4688
bf1c0f27
SM
46892008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
4690
4691 * fileio.c (Finsert_file_contents):
4692 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
4693 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
4694 when buffer != current_buffer anyway.
4695
acab783e
AS
46962008-03-20 Andreas Schwab <schwab@suse.de>
4697
4698 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
4699 as default.
4700
d148e14d
JR
47012008-03-19 Jason Rumney <jasonr@gnu.org>
4702
4703 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
4704 (syms_of_w32fns): Initialize them.
4705 (HOURGLASS_ID): New constant.
4706 (x_window_to_frame): Don't check hourglass_window.
4707 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
4708 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
4709 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
4710 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
4711 Only change the cursor if hourglass is not active.
4712 (Fx_create_frame): Initialize frame's current_cursor.
4713 (hourglass_atimer): Remove.
4714 (hourglass_started): New function.
4715 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
4716 (show_hourglass): Adapt to w32, changing argument to frame.
4717
4718 * w32term.h (struct w32_output): Remove hourglass_window.
4719 Add current_cursor.
4720
4721 * eval.c (call_debugger, Fsignal):
4722 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
4723 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
4724 (Fexecute_extended_command, cancel_hourglass_unwind):
4725 * minibuf.c (read_minibuf):
4726 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
63558020 4727
a5c54077
JB
47282008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
4729
4730 * window.c (run_funs): New fun.
4731 (run_window_configuration_change_hook): Use it to run the buffer-local
4732 and the global part of the hook.
4733
4734 * xdisp.c (format_mode_line_unwind_data): Add window argument.
4735 (unwind_format_mode_line): Restore selected window.
4736 (x_consider_frame_title, Fformat_mode_line): Set selected window.
4737
f9f3238f
SM
47382008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4739
253c3c82
SM
4740 * editfns.c (Fchar_equal): Check they are valid characters.
4741
f9f3238f
SM
4742 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
4743
065a118d
AS
47442008-03-17 Andreas Schwab <schwab@suse.de>
4745
0b8be006
AS
4746 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
4747 against a charset.
4748
065a118d
AS
4749 * lisp.h (Fbuffer_list): Declare.
4750
880820fe 47512008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d3b2a6da
JD
4752
4753 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
4754 handlebox_widget is != 0.
4755
6206d6c2
JL
47562008-03-16 Juri Linkov <juri@jurta.org>
4757
4758 * callint.c (Fcall_interactively): For interactive code letters
4759 'b' and 'B' put the buffer list into the list of default "future"
4760 values of the minibuffer.
4761
f5020181
AS
47622008-03-16 Andreas Schwab <schwab@suse.de>
4763
a864f6d6
AS
4764 * keyboard.c (read_key_sequence): Fix downcasing of letters with
4765 modifiers.
4766
f5020181
AS
4767 * regex.c (re_match_2_internal): Correct matching of a charset
4768 against latin-1 characters.
4769
03f244e2
KH
47702008-03-16 Kenichi Handa <handa@m17n.org>
4771
4772 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
4773 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
f9f3238f
SM
4774 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
4775 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
03f244e2
KH
4776 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
4777 CHAR_STRING_ADVANCE.
4778 (produce_chars): Fix for the case that the source and the
4779 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
4780 instead of CHAR_STRING_ADVANCE.
4781 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
4782 STRING_CHAR_ADVANCE.
4783
0e2501ed
AS
47842008-03-15 Andreas Schwab <schwab@suse.de>
4785
4786 * regex.c (re_match_2_internal): Correct matching of eight bit
4787 characters in unibyte strings.
4788
7723e095
MR
47892008-03-15 Martin Rudalics <rudalics@gmx.at>
4790
4791 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
4792 at end of range when it coincides with the end of the buffer.
4793
f507f365
EZ
47942008-03-14 Eli Zaretskii <eliz@gnu.org>
4795
294f1153
EZ
4796 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
4797
f507f365
EZ
4798 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
4799
64f0809d
JR
48002008-03-14 Jason Rumney <jasonr@gnu.org>
4801
956ae531
JR
4802 * editfns.c (initial_tz): New variable.
4803 (syms_of_editfns): Initialize it.
4804 (Fset_time_zone_rule): Set it when first called.
4805 Use it when TZSTRING is nil.
4806
64f0809d
JR
4807 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
4808 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
4809 (monitor_from_point_fn, get_monitor_info_fn): New globals.
4810 (globals_of_w32fns): Initialize them.
4811 (compute_tip_xy): Use them to position tooltips.
4812
21a4ff8e
GM
48132008-03-14 Glenn Morris <rgm@gnu.org>
4814
4815 * emacs.c (main): Revert previous change.
4816 (standard_args): Revert -internal-script back to -scriptload,
4817 and remove the long-option form.
4818
a09a5b5b
GM
48192008-03-13 Glenn Morris <rgm@gnu.org>
4820
4821 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
4822 Remove option -enable-font-backend.
4823
1c55ebd1
SM
48242008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
4825
4826 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
4827
880820fe 48282008-03-11 Jan Djärv <jan.h.d@swipnet.se>
c523e161
JD
4829
4830 * xterm.c (x_connection_closed): For GTK: If this is the last
4831 terminal just exit without closing the display.
4832
7145be81
JR
48332008-03-11 Jason Rumney <jasonr@gnu.org>
4834
4835 * w32font.c (w32font_full_name): Use floor to round.
4836
e6201af3 48372008-03-10 dhruva <dhruvakm@gmail.com> (tiny change)
ce9033f8
JD
4838
4839 * sound.c (alsa_configure): Declare vol at beginning of block.
4840
e6201af3 4841 * fontset.c (Ffontset_info): Remove extra semicolon.
ce9033f8 4842
390b81fa 48432008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
acd37560 4844
56388398
MB
4845 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
4846 size of resulting string.
af0ad939 4847
390b81fa 48482008-03-10 Jason Rumney <jasonr@gnu.org>
acd37560 4849
56388398 4850 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
acd37560 4851
390b81fa 48522008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
acd37560 4853
56388398
MB
4854 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
4855 Don't pretend as if characters with display property haven't been
4856 consumed for string-replacing-string case.
acd37560 4857
223ed6db
KS
48582008-03-08 Kim F. Storm <storm@cua.dk>
4859
4860 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
4861 (get_next_display_element, next_element_from_string)
4862 (next_element_from_ellipsis, next_element_from_buffer): Use it.
4863
28545f7c
AS
48642008-03-08 Andreas Schwab <schwab@suse.de>
4865
4866 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
4867
c960bff8
JR
48682008-03-06 Jason Rumney <jasonr@gnu.org>
4869
290afd83
JB
4870 * w32font.c (w32_registry): Take font_type argument. Use ANSI
4871 when charset not specified. Only translate ANSI to unicode when
c960bff8
JR
4872 font_type is truetype.
4873 (w32font_coverage_ok): New function.
4874 (add_font_entity_to_list): Use it to filter unsuitable fonts.
4875
87b8ce92
KH
48762008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
4877
4878 * lread.c (Fread_char): Resolve modifiers.
4879 (Fread_char_exclusive): Likewise.
4880
4881 * character.c (char_resolve_modifier_mask): New function.
4882 (char_string): Use char_resolve_modifier_mask.
4883 (Fchar_resolve_modifiers): New function.
4884 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
4885 function.
4886
cefd56f6
JR
48872008-03-04 Jason Rumney <jasonr@gnu.org>
4888
4889 * makefile.w32-in: Always include w32font.c in the build.
4890 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
4891
03bd3c1f
AS
48922008-03-04 Andreas Schwab <schwab@suse.de>
4893
4894 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
4895 (versionclean): Likewise.
4896
6f69e89b
JB
48972008-03-04 Juanma Barranquero <lekktu@gmail.com>
4898
4899 * .cvsignore: Add oo.
4900
f4a3cc44
AS
49012008-03-03 Andreas Schwab <schwab@suse.de>
4902
4903 * coding.c (decode_coding_object): Inhibit gap shrinking while
4904 decoding in place.
4905
73f838ad
DN
49062008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
4907
4908 * w32term.c: Remove unused include "gnu.h".
6f69e89b 4909 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
73f838ad
DN
4910
4911 * gnu.h: Rename to ...
4912 * emacs-icon.h: ... this.
4913 * xterm.c: Use emacs-icon.h instead of gnu.h.
4914 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
4915
ce9c1f06
JB
49162008-03-03 Juanma Barranquero <lekktu@gmail.com>
4917
4918 * w32font.c: Include math.h.
4919
34fd2d28
JR
49202008-03-03 Jason Rumney <jasonr@gnu.org>
4921
54efdcd1
JR
4922 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
4923 Compute options separately.
4924 (w32font_open_internal): Set glyph_idx before caching metrics.
4925
ce9c1f06
JB
4926 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
4927 Define if system headers don't.
4928 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
34fd2d28
JR
4929 (w32font_encode_char): Don't declare here.
4930
4931 * w32font.c (Quniscribe, QCformat): New symbols.
4932 (syms_of_w32font): Define them.
4933 (w32font_has_char): Indicate uncertainty.
ce9c1f06 4934 (w32font_encode_char): Encode as glyph point. Make static.
34fd2d28 4935 (recompute_cached_metrics): New function.
ce9c1f06
JB
4936 (w32font_open_internal): Use it. Set font to use glyph points
4937 initially. Set format based on type of font.
34fd2d28 4938 (w32font_text_extents, w32font_draw): Optionally use glyph points.
ce9c1f06
JB
4939 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
4940 on it. Set format based on information available here.
34fd2d28
JR
4941 (add_font_entity_to_list): Identify backend based on opentype_only.
4942
14daee73
AS
49432008-03-02 Andreas Schwab <schwab@suse.de>
4944
f907fb2e
AS
4945 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
4946
ce9c1f06
JB
4947 * coding.c (decode_coding_big5, produce_chars):
4948 Fix typos in last change.
14daee73 4949
c9cc6462
DN
49502008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
4951
4952 * gnu.h: New icon.
4953
119852e7
KH
49542008-03-02 Kenichi Handa <handa@m17n.org>
4955
4956 * coding.c (decode_coding_utf_8): When eol-type of CODING is
4957 `dos', don't decode '\r' if that is the last in the source.
4958 (decode_coding_utf_16, decode_coding_emacs_mule)
4959 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4960 (decode_coding_raw_text, decode_coding_charset): Likewise.
4961 (produce_chars): Don't decode EOL here. Use EMACS_INT.
4962
a823468b
JR
49632008-03-01 Jason Rumney <jasonr@gnu.org>
4964
4965 * w32font.c (w32font_full_name): Report point size for scalable fonts.
4966
4ddc7e30
KS
49672008-03-01 Kim F. Storm <storm@cua.dk>
4968
4969 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
4970
67997c79
JR
49712008-03-01 Jason Rumney <jasonr@gnu.org>
4972
4973 * w32font.c (w32font_full_name): New function.
4974 (w32font_open_internal): Use it.
4975
3f4e9c35
KS
49762008-03-01 Kim F. Storm <storm@cua.dk>
4977
4978 * dispnew.c (line_draw_cost): Fix invalid glyph check.
4979
f3b9e479
JR
49802008-03-01 Jason Rumney <jasonr@gnu.org>
4981
4982 * font.c (font_unparse_fcname): Increase len when style is a symbol.
4983
880820fe 49842008-03-01 Jan Djärv <jan.h.d@swipnet.se>
7ee480ce
JD
4985
4986 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
4987 xg_frame_resized when the event is for the edit widget.
4988
4989 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
4990
4991 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
4992 set_char_size.
4993 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
4994 operations on widgets here. Just set frame size if needed.
4995 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
4996 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
4997 (x_wm_set_size_hint): Set size hints on the edit widget only, not
4998 the whole frame.
4999 (xg_create_tool_bar): Move attachement of the tool bar to
5000 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
5001 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
5002
6c8acaa1
JR
50032008-03-01 Jason Rumney <jasonr@gnu.org>
5004
5005 * w32fns.c (w32_msg_pump): Disable debug code.
5006
51fb064b 50072008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
03eb5fab 5008
51fb064b 5009 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
cb681b34 5010
60221a33
CY
50112008-02-29 Chong Yidong <cyd@stupidchicken.com>
5012
5013 * xdisp.c (next_overlay_string): Don't set
5014 overlay_strings_at_end_processed_p if we're currently reading from
5015 a display string.
5016
10cbc34f
SM
50172008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
5018
5019 * xdisp.c (get_overlay_strings_1): Fix typo.
5020
73c0054e
CY
50212008-02-29 Chong Yidong <cyd@stupidchicken.com>
5022
5023 * xdisp.c (get_overlay_strings_1): Add missing argument type.
5024
ec1c4354
KH
50252008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
5026
55082642
KH
5027 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
5028
ec1c4354
KH
5029 * xdisp.c (display_mode_element): Cancel the previous change.
5030 (decode_mode_spec): Likewise.
ee548a94
KH
5031 (handle_auto_composed_prop): Don't make composition if it->string
5032 is a string.
ec1c4354 5033
b6d898a2
KS
50342008-02-27 Kim F. Storm <storm@cua.dk>
5035
5036 * lisp.h (GLYPH): Change type from int to struct with separate char
5037 and face_id members.
5038 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
5039 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
5040 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
5041 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
5042 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
5043 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
5044 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
5045 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
5046 handle new Lisp glyph code encoding, either an integer or a cons.
5047
5048 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
5049 (GLYPH_ALIAS): Delete.
5050 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
5051 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
5052 (GLYPH_FROM_CHAR): Replace macro by ...
5053 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
5054
5055 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
5056 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
5057 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
5058 (GLYPH_INVALID_P): New macro.
5059 (spec_glyph_lookup_face): Update prototype.
5060
5061 * dispnew.c (line_draw_cost): Adapt to new glyph type.
5062 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
5063 new glyph code encoding.
5064 (spec_glyph_lookup_face): No return value; update passed glyph instead.
5065 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
5066
5067 * xdisp.c (get_next_display_element, next_element_from_display_vector):
5068 Adapt to new glyph type and new glyph code encoding.
5069
5070 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
5071
5072 * indent.c (current_column, current_column_1, Fmove_to_column)
5073 (compute_motion): Adapt to new glyph code encoding.
5074
5075 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
5076
af2080a2
CY
50772008-02-27 Chong Yidong <cyd@stupidchicken.com>
5078
5079 * process.c (wait_reading_process_output): Check for window
5080 changes caused by timers.
880820fe 5081 Suggested by Johan Bockgård.
af2080a2 5082
253ed25e
GM
50832008-02-27 Glenn Morris <rgm@gnu.org>
5084
5085 * emacs.c (USAGE1): Add `--disable-font-backend'.
5086
18a9f8d9
SM
50872008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
5088
5089 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
5090 is made to the buffer.
5091
0f8b27ea
SM
50922008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
5093
5094 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
5095 (face_at_string_position):
5096 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
5097 (face_at_string_position):
5098 * xdisp.c (display_string, next_overlay_change):
5099 * buffer.h (overlays_at):
5100 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
5101 Update callers.
5102
4e7c53ca
CY
51032008-02-26 Chong Yidong <cyd@stupidchicken.com>
5104
5105 * editfns.c (Fformat): Doc fix.
5106
51c01100
JB
51072008-02-26 Juanma Barranquero <lekktu@gmail.com>
5108
5109 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
5110 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
5111 (Ffont_otf_alternates, Fquery_font): Doc fixes.
5112
13cda5f9
SM
51132008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
5114
5115 * buffer.c (Fbuffer_swap_text): New function.
5116 (syms_of_buffer): Defsubr it.
5117
8018d430
CY
51182008-02-25 Chong Yidong <cyd@stupidchicken.com>
5119
5120 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
5121
9bde1a21
JR
51222008-02-25 Jason Rumney <jasonr@gnu.org>
5123
5124 * w32font.c (w32font_draw): Draw one character at a time when padding.
5125
eeca6f6f
SM
51262008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
5127
5128 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
5129 Handle a nil arg. Use run_window_configuration_change_hook.
5130 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
5131 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
5132 Use run_window_configuration_change_hook.
5133
ec1c4354
KH
51342008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
5135
5136 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
5137 1-pixel width.
5138
ae185452
KH
51392008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
5140
5141 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
5142 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
5143 if the glyph in the font is zero pixel with.
5144
5145 * dispextern.h (struct glyph_string): New member padding_p.
5146
5147 * w32font.c (w32font_draw): Pay attention to s->padding_p.
5148
5149 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
5150
5151 * xfont.c (xfont_draw): Pay attention to s->padding_p.
5152
5153 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
5154
eeca6f6f 5155 * font.c: If the font driver doesn't have `shape' function, return Qnil.
ae185452 5156
ffe832ea 51572008-02-25 Jason Rumney <jasonr@gnu.org>
c9029fe5 5158
ffe832ea 5159 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
16782258 5160
06045130
SM
51612008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
5162
5163 Allow fine-grained image-cache flushing.
5164 * dispextern.h (struct image): Add `dependencies' field.
5165 (clear_image_caches): Change arg to Lisp_Object.
5166 * image.c (make_image): Initialize `dependencies' field.
5167 (clear_image_cache): Change arg to allow fine-grained flushing.
5168 Perform the flush even if image-cache-eviction-delay is nil.
5169 (clear_image_caches): Change arg to Lisp_Object.
5170 (Fclear_image_cache): Expand meaning of the argument.
5171 (mark_image): Mark `dependencies' field.
5172 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
5173 (lface_hash): Use XHASH rather than XFASTINT.
5174 (face_at_buffer_position): Fix int -> EMACS_INT position.
5175 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
5176 (select_frame_for_redisplay): Remove code duplication.
5177 (redisplay_internal): Adapt arg to call to clear_image_caches.
5178
9d2818d6
DN
51792008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
5180
5181 * s/vms4-0.h:
5182 * s/vms4-2.h:
5183 * s/vms4-4.h:
5184 * s/vms5-5.h: Remove, unused.
5185
5186 * s/irix5-2.h:
5187 * s/irix6-0.h:
5188 * s/riscos5.h:
5189 * s/mach-bsd4-3.h:
2a2e8de7 5190 * m/mips4.h: Remove files for obsolete systems.
9d2818d6
DN
5191
5192 * Makefile.in:
5193 * filelock.c:
5194 * unexmips.c:
5195 * m/hp9000s300.h:
5196 * m/iris4d.h:
5197 * s/aix3-1.h:
5198 * s/hpux.h:
5199 * s/msdos.h:
5200 * s/usg5-0.h:
5201 * s/usg5-2-2.h:
5202 * s/usg5-2.h:
5203 * s/usg5-3.h: Remove references to obsolete variables.
5204
5205 * s/irix5-0.h: Remove, move all the contents ...
5206 * s/irix6-5.h: ... here. Simplify.
5207 * config.in: Regenerate.
5208
2a36efcf
JR
52092008-02-24 Jason Rumney <jasonr@gnu.org>
5210
c5ad7a3d 5211 * w32term.c (x_draw_glyph_string_background): Clear the background
2face669
JR
5212 manually when cleartype is in use.
5213 (x_draw_glyph_string_foreground): Draw text transparently when
5214 cleartype is in use.
5215
2a36efcf
JR
5216 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
5217 a font into it unless we have to.
5218
b03f96dc 52192008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
92a8ce63 5220
b03f96dc
MB
5221 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
5222 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
92a8ce63 5223
b03f96dc 52242008-02-18 Jason Rumney <jasonr@gnu.org>
92a8ce63 5225
b03f96dc 5226 * w32fns.c (Fw32_shell_execute): Encode parameters.
92a8ce63 5227
b03f96dc 52282008-02-09 Eli Zaretskii <eliz@gnu.org>
20f1ef2e 5229
b03f96dc 5230 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
32d0a9dc 5231
b03f96dc 52322008-02-05 Juanma Barranquero <lekktu@gmail.com>
20f1ef2e 5233
b03f96dc 5234 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
77d1daf2 5235
d5958163
CY
52362008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
5237
5238 * xterm.c (x_set_offset): Don't change the gravity if
5239 CHANGE_GRAVITY is -1.
5240
9997701e
CY
52412008-02-23 Chong Yidong <cyd@stupidchicken.com>
5242
5243 * fileio.c (auto_save_error_occurred): New var.
5244 (auto_save_error): Set it.
5245 (Fdo_auto_save): Don't overwrite the error message if an auto-save
5246 error occurred.
5247
9d95a291
EZ
52482008-02-23 Eli Zaretskii <eliz@gnu.org>
5249
5250 * w32.c (globals_of_w32): Add initializations for
5251 g_b_init_get_sid_sub_authority and
5252 g_b_init_get_sid_sub_authority_count.
5253
43d1af23
SM
52542008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
5255
43a1d19b
SM
5256 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
5257 (font_parse_xlfd): Use them for sanity check.
608c3307 5258 (Finternal_set_font_style_table): Make sure the table is bijective.
43a1d19b 5259
354884c4
SM
5260 Consolidate the image_cache to the terminal struct.
5261 * termhooks.h (P_): Remove redundant def.
5262 (struct terminal): New field `image_cache'.
5263 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
5264 of FRAME_X_IMAGE_CACHE.
5265 * xterm.h (struct x_display_info): Remove image_cache field.
5266 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
5267 * w32term.h (struct w32_display_info): Remove image_cache field.
5268 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
5269 * macterm.h (struct mac_display_info): Remove image_cache field.
5270 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
5271 * xterm.c (x_term_init):
5272 * w32term.c (w32_term_init):
5273 * macterm.c (mac_term_init): Set the image_cache in the terminal.
5274 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
5275 Remove declarations.
5276 (clear_image_caches, mark_image_cache): New declarations.
5277 * xfaces.c (clear_face_cache):
5278 * xdisp.c (redisplay_internal): Use clear_image_caches.
5279 * image.c (clear_image_cache): Don't check that a frame is on
5280 a window-system before checking if it shares the same cache.
5281 (clear_image_caches): New function.
5282 (Fclear_image_cache): Use it.
5283 (mark_image): Move from allo.c.
5284 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
5285 * alloc.c (mark_image, mark_image_cache): Move to image.c.
5286 (mark_object): Don't call mark_image_cache for frames.
5287 (mark_terminals): Call mark_image_cache.
5288
c2e42690
SM
5289 * lisp.h (Fdelete_terminal): Declare.
5290
43d1af23
SM
5291 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
5292 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
5293 wrong_type_argument.
5294
cc8d1311
KH
52952008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
5296
5297 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
4a4bdfc7 5298 malayalam.el, and tamil.el. Add sinhala.el.
cc8d1311 5299
6bd92640
SM
53002008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
5301
5302 * xterm.c (x_connection_closed): Consolidate identical tests.
5303 (x_delete_terminal): Don't crash if called via x_connection_closed.
5304
a73b5627
KH
53052008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
5306
5307 * xdisp.c (decode_mode_spec): New arg string.
6bd92640 5308 (display_mode_element): Adjust for the above change.
a73b5627 5309
1b511542
SM
53102008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
5311
5312 * callint.c (Fcall_interactively): Use AREF.
5313
81aefea4
SM
53142008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
5315
5316 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
5317
880820fe 53182008-02-18 Jan Djärv <jan.h.d@swipnet.se>
2d7117fe
JD
5319
5320 * xfns.c (Fx_show_tip): Set string to " " if empty.
5321
a2b84f35
DN
53222008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
5323
5324 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
5325 with Qt.
5326
43c0454d
KH
53272008-02-17 Kenichi Handa <handa@m17n.org>
5328
5329 * ftfont.c (ftfont_shape): Return Lispy number.
5330
5331 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
5332 for GCs.
5333 (Finternal_set_font_selection_order): Call font_update_sort_order
5334 only when enable_font_backend is set.
5335 (realize_x_face): Set face->font_info to that of default face only
5336 when enable_font_backend is set.
5337
5338 * xdisp.c (handle_composition_prop): Set it->c to the fist
5339 characte of the composed region.
5340 (fill_composite_glyph_string): Set base_face->font_info to
5341 s->font_info. Get a face for ascii from base_face->ascii_face.
5342 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
5343 with a face already decided.
5344 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
5345 non-negative.
978bef9a
JB
5346 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
5347 call font_prepare_composition unconditionally.
43c0454d 5348
978bef9a 5349 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
43c0454d
KH
5350
5351 * xterm.h (struct x_display_info): New member font.
5352
5353 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
5354 (x_set_mouse_face_gc, x_new_font): Likewise.
5355 (x_term_init): Setup display_info->font.
5356 (x_delete_terminal): Free display_info->font.
5357
5358 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
5359
5360 * ftxfont.c (ftxfont_default_fid): Delete it.
5361 (ftxfont_open): Set xfont->fid to 0.
978bef9a 5362 (ftxfont_end_for_frame): Clear data specific to the frame and the
43c0454d
KH
5363 font-driver.
5364
5365 * xftfont.c (xftfont_default_fid): Delete it.
5366 (xftfont_open): Set xfont->fid to 0.
5367
5368 * fontset.c (FONTSET_OBJLIST): New macro.
5369 (fontset_find_font): Update font-object list of the fontset.
5370 (free_realized_fontset): New function.
5371 (free_face_fontset): Call free_realized_fontset.
5372 (Ffont_info): Call font_close_object only when enable_font_backend
5373 is set.
5374
5375 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
5376 [HAVE_NTGUI]: Include w32term.h.
5377 [MAC_OS]: Include macterm.ch.
5378 (font_otf_ValueRecord): Use make_number.
5379 (font_finish_cache): Fix handling of reference count.
5380 (font_clear_cache): Update num_fonts.
5381 (font_open_entity): Update smallest_char_width and
5382 smallest_font_height of the frame.
5383 (font_close_object): Update num_fonts.
5384 (Fclear_font_cache): Fix finding the target cache data.
5385
be617367
GM
53862008-02-16 Glenn Morris <rgm@gnu.org>
5387
5388 * fontset.c (Finternal_char_font): Fix compilation warning.
5389
2930d117
EZ
53902008-02-16 Eli Zaretskii <eliz@gnu.org>
5391
634d3003
EZ
5392 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
5393 instead of char arrays. Enlarge the size of array passed to
5394 get_token_information.
5395
2930d117
EZ
5396 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
5397 warnings.
5398
79214046
DN
53992008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
5400
5401 * .gdbinit: Don't set `args', it breaks gdb --args.
5402
7f5d2c72
SM
54032008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
5404
5405 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
5406 within a narrowed buffer.
5407
6edacc43
KH
54082008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
5409
b270d6af
JB
5410 * coding.c (decode_coding_object, encode_coding_object):
5411 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
6edacc43 5412
174105f7
SM
54132008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
5414
b270d6af
JB
5415 * coding.c (coding_set_destination): Use BEG_BYTE rather than
5416 hardcoding 1.
13818c30
SM
5417 (detect_coding_system):
5418 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
5419 (string_char_to_byte, string_byte_to_char, insert_from_gap):
5420 * insdel.c (insert_from_gap):
5421 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
5422 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
5423 (string_to_multibyte):
5424 * character.c (chars_in_text, multibyte_chars_in_text):
5425 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
5426
f1c99628
SM
5427 * character.h (FETCH_STRING_CHAR_ADVANCE)
5428 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
5429 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
5430 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
5431
7927d8e3
SM
5432 * casefiddle.c (casify_region): Only call after-change and composition
5433 functions on the part of the region that was changed.
5434
adf6a429 5435 * keyboard.c (read_avail_input):
174105f7
SM
5436 * frame.c (Fdelete_frame): Call Fdelete_terminal.
5437
3ee24aec
SM
54382008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
5439
5440 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
5441 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
5442
4ed4b975
JB
54432008-02-11 Juanma Barranquero <lekktu@gmail.com>
5444
5445 * w32menu.c (push_submenu_start, push_submenu_end)
5446 (push_left_right_boundary, push_menu_pane, push_menu_item):
5447 * keyboard.c (read_key_sequence): Don't pass args with side effects
5448 to AREF, it fails when compiling with -DENABLE_CHECKING.
5449
79e3bfb8
KH
54502008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
5451
4ed4b975
JB
5452 * Makefile.in (${lispsource}international/charprop.el):
5453 Delete this target.
6e76043f 5454
79e3bfb8
KH
5455 * search.c (boyer_moore): Fix incorrect synching of the trunk and
5456 emacs-unicode-2.
5457
5b8de9c5
SM
54582008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
5459
5460 * terminal.c (Fdelete_terminal): Clean up the `force' path.
5461
eac1939a
SM
54622008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
5463
c53956fe
SM
5464 * frame.c (Qnoelisp): New symbol.
5465 (syms_of_frame): Initialize it.
5466 (Fdelete_frame): Use it to distinguish a mere `force' passed from
5467 someharmles Elisp code, from a strong `force' from x_connection_closed.
5468 * frame.h (Qnoelisp): Declare.
5469 * xterm.c (x_connection_closed): Pass `noelisp'.
5470
eac1939a
SM
5471 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
5472 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
5473 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
5474 rather than `int' for the type of `type'.
5475
13f6772b
DN
54762008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
5477
5478 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
5479
5480 * Makefile.in (GNUC): Remove support for gcc-1.x.
5481
e8455367
RS
54822008-02-10 Richard Stallman <rms@gnu.org>
5483
5484 * lisp.h (ASET): Use AREF, not ASLOT.
5485
4b75ffab
SM
54862008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
5487
5488 * lisp.h (ASET): Check bounds.
5489
d224e8c2
GM
54902008-02-10 Glenn Morris <rgm@gnu.org>
5491
5492 * buffer.c (mode-name): Doc fix.
5493
4624371d
DN
54942008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
5495
290afd83
JB
5496 * Makefile.in:
5497 * emacs.c:
5498 * gmalloc.c:
5499 * keyboard.c:
5500 * lisp.h:
5501 * m/ibm370aix.h:
5502 * process.c:
5503 * regex.c:
5504 * s/hpux.h:
5505 * sysdep.c:
5506 * sysselect.h:
5507 * systty.h:
5508 * unexec.c:
5509 * w32term.c:
5510 * xsmfns.c:
5511 * xterm.c: Remove code that deals with obsolete variables.
4624371d
DN
5512
5513 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
5514
5515 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
5516 nothing else needs it anymore.
5517
274ec34b
EZ
55182008-02-09 Eli Zaretskii <eliz@gnu.org>
5519
5520 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
5521 instead of unibyte_char_to_multibyte.
5522
deeaffe1
DN
55232008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
5524
5525 * s/gnu-linux.h: Remove commented out code.
5526
4ed4b975 5527 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
deeaffe1
DN
5528
5529 * Makefile.in: Update what RMS says about using autoconf.
4ed4b975 5530 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
c3f9fba8 5531 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
deeaffe1
DN
5532 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
5533 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
5534
68b587a6
SM
55352008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
5536
9141ca5e
SM
5537 * keymap.c (Fkey_description): Move side effect outside of macro call.
5538
dfae5f9a 5539 * xfaces.c (Finternal_make_lisp_face):
b1ebcadb
SM
5540 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
5541
ff7a2223
SM
5542 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
5543 (syms_of_fontset): Use ASET.
5544
68b587a6
SM
5545 * fns.c (concat): Move side effect outside of macro call.
5546 (hash_clear): Use ASET.
5547
a31787b1
RS
55482008-02-08 Richard Stallman <rms@gnu.org>
5549
5550 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
5551 If FORCE, and frame has a surrogate minibuffer for another frame,
5552 delete the other frame first.
5553
987be29b 55542008-02-07 Timo Savola <timo.savola@iki.fi>
1540a61a
JD
5555
5556 * xterm.c (x_detect_focus_change): Handle embed client message.
5557 (handle_one_xevent): Ditto.
5558 (handle_one_xevent): If embedded and we get a button press/release,
5559 request focus.
5560 (xembed_set_info, xembed_send_message): New functions.
5561 (x_make_frame_visible): Call xembed_set_info if embedded.
5562 (x_make_frame_invisible): Call xembed_set_info if embedded.
5563 (x_term_init): Initialize Xatom_XEMBED.
5564 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
5565 (x_iconify_frame): Ditto.
5566
5567 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
5568 (enum xembed_info, enum xerm srmbed_message, enum xembed_focus)
5569 (enum xembed_modifier, enum xembed_accelerator): New.
5570 (xembed_set_info, xembed_send_message): Declare.
5571 (FRAME_X_EMBEDDED_P): New.
5572
5573 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
5574 gtk_plug_new.
5575
5576 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
5577 window ID of a frame.
5578 (x_window): Reparent frame if embedded.
5579 (Fx_create_frame): Don't set border width if embedded.
5580
1f204af3 5581 * emacs.c (USAGE3): Add --parent-id.
1540a61a
JD
5582 (standard_args): Ditto.
5583
880820fe 55842008-02-07 Jan Djärv <jan.h.d@swipnet.se>
f937a7db
JD
5585
5586 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
5587
92413ef3
JD
55882008-02-07 Jim Meyering <meyering@redhat.com>
5589
6f69e89b 5590 Use "do...while (0)", not "if (1)...else" in macro definitions.
987be29b
RF
5591 The latter provokes a warning from gcc about the empty else, when
5592 followed by ";". Also, without that trailing semicolon, it would
5593 silently swallow up any following statement.
c3f9fba8 5594 * syntax.h (SETUP_SYNTAX_TABLE)
987be29b
RF
5595 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
5596 * buffer.h (DECODE_POSITION): Likewise.
5597 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
5598 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
5599 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
5600 (FETCH_CHAR_ADVANCE): Likewise.
5601 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
92413ef3 5602
03fa5713
GM
56032008-02-07 Jim Meyering <meyering@redhat.com>
5604
5605 * lread.c [lint]: Don't include <sys/inode.h>.
5606
3ae565b3
SM
56072008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
5608
5609 * xselect.c (x_handle_dnd_message):
5610 * xmenu.c (digest_single_submenu, xmenu_show):
5611 * xdisp.c (with_echo_area_buffer_unwind_data)
5612 (format_mode_line_unwind_data, unwind_format_mode_line)
5613 (display_menu_bar):
5614 * eval.c (Ffetch_bytecode):
5615 * doc.c (store_function_docstring):
5616 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
5617 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
5618 * buffer.c (add_overlay_mod_hooklist): Use ASET.
5619
146b6e55
KH
56202008-02-07 Kenichi Handa <handa@m17n.org>
5621
5622 * ftxfont.c (ftxfont_open): Don't set
5623 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
5624
5625 * ftfont.c (ftfont_open): Fix previous change.
5626
46a923ac
JR
56272008-02-06 Jason Rumney <jasonr@gnu.org>
5628
5629 * w32font.c (w32font_text_extents): Fill in lbearing metric.
5630 Use cached metrics for ASCII characters.
3ae565b3
SM
5631 (w32font_open_internal): Don't set font's owning_frame.
5632 Cache metrics for ASCII characters.
46a923ac
JR
5633
5634 * w32font.h (struct w32font_info): Add ascii_metrics.
5635 Remove owning_frame.
5636
da7d7c21
KH
56372008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
5638
5639 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
5640 to negative value.
5641
5642 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
5643
3ae565b3 5644 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
da7d7c21
KH
5645
5646 * charset.c (syms_of_charset): Set QCtest and Qeq.
5647
c62c8ddb
SM
56482008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
5649
ca319910
SM
5650 * process.c (Fstart_process):
5651 * callproc.c (Fcall_process): Handle the case where
5652 Funhandled_file_name_directory returns nil.
5653
76860cbb
SM
5654 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
5655 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
f9ffa1ea
SM
5656 * font.c (check_gstring): Use them and AREF to access the vector before
5657 we know it's really a gstring.
5658 (Ffont_shape_text): Fix typo.
5659 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Oject mixups.
76860cbb 5660
15139d67
SM
5661 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
5662 Declare.
5663
c62c8ddb
SM
5664 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
5665
04b65d2b
JR
56662008-02-05 Jason Rumney <jasonr@gnu.org>
5667
5668 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
5669 Set smallest_font_height and smallest_char_width in display info.
5670
fccaebfd
KH
56712008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
5672
5673 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
5674
e7d7fd8c
MB
56752008-02-05 Miles Bader <miles@gnu.org>
5676
5677 * xfaces.c (get_lface_attributes, merge_named_face)
5678 (lookup_named_face, lookup_derived_face, realize_named_face):
5679 Revert 2008-02-01 change by cyd@stupidchicken.com.
5680
3d4448a8
KH
56812008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
5682
5683 * fontset.c (Ffontset_info): Handle the case of inhibitting the
5684 fallback fonts.
15139d67 5685 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
3d4448a8 5686
5ace1ec1
JR
56872008-02-04 Jason Rumney <jasonr@gnu.org>
5688
5689 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
5690 set full_name.
e3a77b22 5691 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
5ace1ec1 5692
ffe42183
JR
56932008-02-03 Jason Rumney <jasonr@gnu.org>
5694
5695 * makefile.w32-in (OBJ1): Include font.o here.
5696 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
5697
526dc3b3
JR
56982008-02-02 Jason Rumney <jasonr@gnu.org>
5699
a0fece35 5700 * makefile.w32-in (temacs): Bump EMHEAP to 21.
526dc3b3 5701
af805c82
JR
57022008-02-01 Jason Rumney <jasonr@gnu.org>
5703
5704 * s/cygwin.h: Define VIRT_ADDR_VARIES.
5705
5706 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
5707
7f6519c5
AS
57082008-02-01 Andreas Schwab <schwab@suse.de>
5709
1f45f627 5710 * Makefile.in (shortlisp, lisp): Update for rename of
7f6519c5 5711 ../lisp/language/myanmar.el.
7f6519c5 5712
26f8aa27
CY
57132008-02-01 Chong Yidong <cyd@stupidchicken.com>
5714
1f45f627 5715 * xfaces.c (get_lface_attributes): Delete function.
26f8aa27
CY
5716 (merge_named_face, lookup_named_face, lookup_derived_face)
5717 (realize_named_face): Call lface_from_face_name directly, and use
5718 the fact that merge_face_vectors does not alter its FROM argument.
5719
73acf815 57202008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5721
5722 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
1f45f627 5723 input in the default locale. Handle non-Unicode multibyte input.
aca7a3d2 5724
73acf815 57252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5726
5727 * fontset.c (reorder_font_vector): Exclude nil elements from the
5728 font group. Don't try multiple fonts.
15139d67 5729 (fontset_font): Adjust for the above change.
aca7a3d2
MB
5730 (Finternal_char_font): Return nil if the found font doesn't
5731 contain the character ch.
5732
4c4475a8 5733 * Makefile.in (lisp, shortlisp): Add cham.el.
aca7a3d2 5734
73acf815 57352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5736
5737 * font.h (FONTP): Make it return 1 also for a font-object.
5738
5739 * .gdbinit (xfontset): New function.
5740
5741 * font.c (font_find_for_lface): Check if the character C is
5742 supported or not only for the first font.
5743
5744 * fontset.c (reorder_font_vector): Fix typo.
5745 (fontset_find_font): Don't add a font-spec specifying a script.
5746 Use 0 (not Qt) for the indication of empty font-group. Change the
5747 format of RFONT-DEF. Return Qt if no font in the font-group
5748 support the character.
15139d67 5749 (fontset_font): Adjust for the above change. If no font was
aca7a3d2 5750 found the character, remember that.
15139d67 5751 (face_for_char): Adjust for the change of RFONT-DEF.
aca7a3d2
MB
5752 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
5753 no font for the target.
15139d67 5754 (Finternal_char_font): Adjust for the change of RFONT-DEF.
aca7a3d2 5755
73acf815 57562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5757
5758 * font.c (font_load_for_face): Handle the case that the font in
5759 face->lface is a string.
5760
73acf815 57612008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 5762
1f45f627 5763 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
aca7a3d2 5764
73acf815 57652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5766
5767 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
5768 Fix previous change. If the frame is not on a window system,
5769 signal an error.
5770
73acf815 57712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 5772
4c4475a8
GM
5773 * coding.c (decode_coding_object, encode_coding_object): Adjust
5774 marker positions after conversion.
aca7a3d2
MB
5775
5776 * lisp.h (struct Lisp_Marker): New member need_adjustment.
5777
73acf815 57782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5779
5780 * font.c (font_find_for_lface): Fix the handling of the return
5781 value of font_has_char.
5782 (Ffont_shape_text): Fix previous change.
5783
5784 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
5785 (fontset_ref_and_range): Delete it.
5786 (fontset_find_font): Call char_table_ref_and_range instead of
5787 FONTSET_REF_AND_RANGE.
5788 (make_fontset): Don't setup font groups of Latin here.
5789 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
5790 (new_fontset_from_font): Make the specified font the default for
5791 all Latin characters.
5792
73acf815 57932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5794
5795 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
5796 is on a window system before accessing the fontset of the frame.
5797
73acf815 57982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 5799
1f45f627 5800 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
aca7a3d2
MB
5801
5802 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
5803 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
5804
5805 * font.c (Ffont_shape_text): If the font driver doesn't have a
5806 shaper function, make zero-width glyphs to have at least one-pixel
5807 width. Fix setting of `to' field of glyphs.
5808
73acf815 58092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5810
5811 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
5812 glyphs.
5813
1f45f627 5814 * font.h (struct font_driver): Improve docstring of member `shape'.
aca7a3d2 5815
73acf815 58162008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5817
5818 * composite.c (syms_of_composite): Fix docstring of
5819 auto-composition-function.
5820
5821 * font.h (LGLYPH_SIZE): New macro.
5822
5823 * font.c (Ffont_fill_gstring): Stop filling when a character not
5824 supported by the font is found.
5825 (Ffont_shape_text): When a shape callback function returns nil,
5826 try at most two more times with larger gstring.
15139d67 5827 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
aca7a3d2
MB
5828
5829 * xdisp.c (handle_auto_composed_prop): Change the argument to
5830 auto-composition-function.
5831
5832 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
5833 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
5834 Lispy glyph and store it in the lgstring.
5835
5836 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
5837
5838 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
5839
73acf815 58402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5841
5842 * font.c (Ffont_shape_text): Avoid unnecessary composition.
5843
5844 * fontset.c (Vfont_encoding_charset_alist): New variable.
5845 (syms_of_fontset): DEFVAR it.
4c4475a8
GM
5846 (reorder_font_vector, fontset_find_font): Optimize for the case of
5847 no need of reordering.
aca7a3d2
MB
5848 (face_for_char): Map the charset property by
5849 Vfont_encoding_charset_alist.
5850
73acf815 58512008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5852
5853 * w32font.c (logfonts_match): Don't check adstyle here.
5854 (font_matches_spec): Check here against physical font instead.
5855 (add_font_entity_to_list): Avoid some substitutions.
5856
5857 * font.c (font_parse_fcname): Default weight and slant to normal.
5858 (font_score): Prefer normal fonts if weight or slant unspecified.
5859 (font_score) [WINDOWSNT]: Scale weight difference down to closer
5860 match freetype scores.
5861
73acf815 58622008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5863
5864 * w32font.c (w32font_text_extents): Don't use the frame stored in the
5865 font, as it may have been deleted.
5866 (w32_enumfont_pattern_entity): Map generic family to adstyle using
5867 most common hyphenless variation.
5868 (logfonts_match): Check generic family.
5869 (font_matches_spec): Don't check generic family here.
5870 (fill_in_logfont): Set generic family based on adstyle.
5871
5872 * w32font.h (w32font_get_cache): Update declaration.
5873
73acf815 58742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5875
5876 * ftfont.c (ftfont_get_cache): Adjust the argument type.
5877
15139d67 5878 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
dde8403f 5879 If none of the new drivers are available, call font_update_drivers
aca7a3d2
MB
5880 with the old drivers.
5881
5882 * w32font.c (w32font_get_cache): Adjust the argument type.
5883
5884 * xfont.c (xfont_get_cache): Adjust the argument type.
5885
5886 * font.h (struct font_driver): Change argument type of get_cache.
5887
5888 * xftfont.c (xftfont_start_for_frame): Delete prototype.
5889
5890 * font.c (Ffont_get): Fix arguments to Fassoc.
15139d67 5891 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
aca7a3d2 5892 (font_clear_cache): New function.
4c4475a8 5893 (font_list_entities, font_matching_entity): Use font_get_cache.
15139d67 5894 (font_update_drivers): Call font_clear_cache when finishing a driver.
aca7a3d2
MB
5895
5896 * fontset.c (fontset_find_font): Fix previous change.
5897
73acf815 58982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5899
5900 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
5901 dpyinfo->font_table.
5902 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
15139d67 5903 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
aca7a3d2
MB
5904
5905 * font.c (font_at): Handle the case that the arg C is negative.
5906 Handle the unibyte case.
5907 (Ffont_at): Call font_at with the arg C -1.
5908
5909 * xdisp.c (handle_auto_composed_prop): Don't get a character at
15139d67
SM
5910 the position here, and call font_at with the arg C -1.
5911 Don't check the range of the existing composition at the point.
aca7a3d2 5912
73acf815 59132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 5914
15139d67 5915 * fontset.c (fontset_add): New args charset_id and family.
1f45f627 5916 Change caller.
4c4475a8
GM
5917 (load_font_get_repertory, fontset_find_font): Assume that
5918 font_spec is always a font-spec object.
aca7a3d2
MB
5919 (Fset_fontset_font): Always store a font-spec object in a fontset.
5920
5921 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
5922 instead of get_property_and_range.
5923
73acf815 59242008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5925
5926 * xftfont.c (struct xftfont_info): Delete the member ft_face.
5927 (xftfont_open): Don't keep locking face.
5928 (xftfont_close): Don't unlock face.
4c4475a8 5929 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
aca7a3d2
MB
5930
5931 * fontset.c (fontset_find_font): Don't prefer a font of
5932 supplementary charset.
5933
73acf815 59342008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5935
1f45f627
GM
5936 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
5937 script, langsys_tag to langsys, new member script.
aca7a3d2
MB
5938 (OTF_TAG_STR): Terminate by '\0'.
5939 (ftfont_get_open_type_spec): If :otf prop is is spec, Limit the
5940 listing to the script specified in that property. Fix arg to
5941 OTF_check_features.
5942
73acf815 59432008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5944
5945 * w32font.h: New file.
5946
5947 * w32font.c: Include it.
5948 (struct w32font_info): Add owning_frame field. Move to w32font.h.
5949 (w32font_open): Set owning_frame.
5950 (w32font_text_extents): Use owning_frame.
5951 (struct font_callback_data): Add opentype_only field.
5952 (add_font_entity_to_list): Use it to filter fonts.
5953 Don't check against full name.
5954 (w32font_list_internal): New function.
5955 (w32font_list): Use it.
5956 (w32font_match_internal): New function.
5957 (w32font_match): Use it.
5958 (w32font_open_internal): New function.
5959 (w32font_open): Use it.
5960 (w32font_get_cache, w32font_close, w32font_has_char)
5961 (w32font_encode_char, w32font_text_extents, w32font_draw):
5962 Make non-static.
5963
5964 * makefile.w32-in (w32font.o): Depend on w32font.h.
5965
73acf815 59662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5967
5968 * charset.c (Fdefine_charset_internal): Record a supplementary
5969 charset at the tail of Vcharset_order_list.
5970
5971 * font.c (Ffont_shape_text): Fix the return value.
5972
5973 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
5974
5975 * xdisp.c (handle_auto_composed_prop): Fix previous change.
5976
73acf815 59772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5978
5979 * ftfont.c (struct OpenTypeSpec): New struct.
5980 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
5981 (ftfont_get_open_type_spec): New function.
5982 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
5983
15139d67 5984 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
aca7a3d2 5985
73acf815 59862008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5987
5988 * w32font.c (add_font_entity_to_list): Compare only the beginning
5989 of full name.
5990
73acf815 59912008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5992
15139d67
SM
5993 * xdisp.c (handle_auto_composed_prop): Simplify the code.
5994 Never return HANDLED_RECOMPUTE_PROPS.
aca7a3d2 5995
73acf815 59962008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5997
5998 * font.c (font_gstring_produce): Delete it.
5999
15139d67
SM
6000 * composite.h (COMPOSITION_METHOD):
6001 Handle COMPOSITION_WITH_GLYPH_STRING.
aca7a3d2 6002
73acf815 60032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 6004
15139d67 6005 * xfont.c (Qx): Delete.
aca7a3d2
MB
6006 (syms_of_xfont): Don't initialize Qx.
6007
15139d67
SM
6008 * composite.h (enum composition_method):
6009 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
aca7a3d2 6010
73acf815 60112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6012
6013 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
6014 (choose_face_font): Accept new form of font-spec.
6015
6016 * frame.h (font_driver_list): Declare it unconditionally.
6017 (struct frame): Define members font_driver_list and font_data_list
6018 unconditionally.
6019
6020 * fontset.c: Include "font.h" unconditionally.
15139d67 6021 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
aca7a3d2
MB
6022 (Fset_fontset_font): Accept a font-spec object.
6023
6024 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
6025 PIXEL_SIZE part a wild card.
6026
6027 * dispextern.h (struct glyph_string): Define members clip and
6028 num_clips unconditionally.
6029 (struct face): Define members font_info and extra unconditionally.
6030
6031 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
6032 ftfont_info only when HAVE_LIBOTF is defined.
6033
73acf815 60342008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
6035
6036 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
6037 and end.
6038
73acf815 60392008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6040
6041 * w32font.c (w32font_driver): Add new fields.
6042
73acf815 60432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 6044
aca7a3d2
MB
6045 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
6046 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
6047 (LIBES): Add @M17N_FLT_CFLAGS@.
6048
6049 * composite.c (compose_text): Don't treat the new style
6050 composition specially.
6051
6052 * emacs.c (main): Call syms_of_font unconditionally.
6053
6054 * font.h (FONT_ENTITY_NOT_LOADABLE)
6055 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
15139d67 6056 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
aca7a3d2 6057 (struct font_driver): New member shape.
1f45f627 6058 (font_registry_charsets): Extern it.
4c4475a8 6059 (font_find_for_lface, font_prepare_composition): Adjust prototype.
aca7a3d2
MB
6060 (font_otf_capability, font_drive_otf): Delete their externs.
6061
6062 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
4c4475a8
GM
6063 (font_charset_alist, font_registry_charsets): Move from xfont.c
6064 and rename.
aca7a3d2
MB
6065 (font_prop_validate_otf): New function.
6066 (font_property_table): Register it for QCotf.
6067 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
15139d67 6068 (font_drive_otf): Delete.
1f45f627 6069 (font_prepare_composition): New arg F. Adjust for the change of
aca7a3d2
MB
6070 lispy gstring.
6071 (font_find_for_lface): New arg C.
15139d67 6072 (font_load_for_face): Adjust for the change of font_find_for_lface.
4c4475a8
GM
6073 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
6074 lispy gstring.
aca7a3d2
MB
6075 (Ffont_shape_text): New function.
6076 (Fopen_font): If the font size is not given, use 12-pixel.
6077 (Ffont_at): New arg STRING.
15139d67
SM
6078 (syms_of_font): Initalize font_charset_alist.
6079 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
aca7a3d2
MB
6080 conditionally.
6081
6082 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
6083 fonts of the same font-spec. Change the format of RFONT-DEF.
4c4475a8
GM
6084 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
6085 Adjust for the change of RFONT-DEF.
15139d67 6086 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
aca7a3d2
MB
6087
6088 * ftfont.h: New file.
6089
6090 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
6091 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
6092 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
6093 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
6094 font_otf_capability and font_drive_otf, set ftfont_shape.
15139d67 6095 (ftfont_list): Adjust for the change of :otf property value.
aca7a3d2
MB
6096 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
6097 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
6098 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
1f204af3 6099 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
aca7a3d2
MB
6100 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
6101 (otf_gstring, gstring, m17n_flt_initialized): New variables.
6102
15139d67
SM
6103 * w32term.c (x_draw_composite_glyph_string_foreground):
6104 Adjust for the change of lispy gstring.
aca7a3d2 6105
15139d67 6106 * xdisp.c (handle_composition_prop): Adjust for the change of
aca7a3d2 6107 lispy gstring. Call a function for auto-composition with the
15139d67
SM
6108 third arg it->window.
6109 (fill_composite_glyph_string): Adjust for the change of lispy string.
6110 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
aca7a3d2 6111
15139d67 6112 * xfaces.c (set_font_frame_param): Adjust for the change of
aca7a3d2
MB
6113 font_find_for_lface.
6114
1f45f627
GM
6115 * xfont.c (x_font_charset_alist): Move to font.c and rename.
6116 (xfont_registry_charsets): Likewise. Change caller.
aca7a3d2
MB
6117 (syms_of_xfont): Don't handle x_font_charset_alist.
6118
6119 * xftfont.c: Include "ftfont.h".
15139d67 6120 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
aca7a3d2
MB
6121 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
6122 (xftfont_close) [HAVE_LIBOTF]: Close otf.
6123 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15139d67
SM
6124 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
6125 Set xftfont_driver.shape to xftfont_shape.
aca7a3d2 6126
15139d67 6127 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aca7a3d2
MB
6128 the change of lispy gstring.
6129
73acf815 61302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6131
6132 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
6133
73acf815 61342008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6135
6136 * w32font.c (w32font_draw): Fill background manually.
6137
73acf815 61382008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6139
6140 * font.c (Qfontp): Remove unused symbol.
6141 (QCantialias): New symbol.
6142 (syms_of_font): Define it.
6143 (font_property_table): Set a validator for QCantialias.
6144
15139d67
SM
6145 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
6146 Define if not already.
aca7a3d2
MB
6147 (QCfamily): Share with xfaces.c.
6148 (Qstandard, Qsubpixel, Qnatural): New symbols.
1f45f627 6149 (syms_of_w32font): Define them. Don't define QCfamily here.
aca7a3d2
MB
6150 (w32_antialias_type, lispy_antialias_type): New functions.
6151 (w32_enumfont_pattern_entity): New arg requested_font.
6152 Set antialias parameter if non-default was requested.
6153 (fill_in_logfont): Fill in lfQuality if :antialias specified.
6154
73acf815 61552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6156
6157 * lread.c (read1): Undo the previous change.
6158
73acf815 61592008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
aca7a3d2
MB
6160
6161 * frame.c (Fdelete_frame): Call font_update_drivers only when
6f69e89b 6162 USE_FONT_BACKEND is defined.
aca7a3d2 6163
73acf815 61642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6165
6166 * font.h (struct font_bitmap): New member bits_per_pixel.
6167 (struct font_driver): New members start_for_frame and end_for_frame.
6168 (struct font_data_list): New struct.
6169 (font_put_frame_data, font_get_frame_data): Extern them.
6170
6171 * frame.h (struct frame): New member font_data_list.
6172
6173 * font.c (font_update_drivers): Call driver->start_for_frame and
6174 driver->end_for_frame at proper timings.
6175 (font_put_frame_data, font_get_frame_data): New functions.
6176 (Ffont_spec): Add usage in the docstring.
6177
6178 * frame.c (make_frame): Initialize f->font_data_list to NULL.
6179 (Fdelete_frame): Call font_update_drivers.
6180
6181 * xftfont.c (struct xftface_info): Delete the member xft_draw.
4c4475a8 6182 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
aca7a3d2
MB
6183 (xftfont_get_xft_draw): New function.
6184 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
6185 (xftfont_end_for_frame): New function.
6186 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
6187
15139d67 6188 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
1f45f627 6189 Change argument. Cache GCs in the per-frame data.
aca7a3d2
MB
6190 (struct ftxfont_frame_data): New struct.
6191 (ftxfont_draw_bitmap): New arg gc_fore and flush.
6192 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
15139d67 6193 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
aca7a3d2
MB
6194 (ftxfont_end_for_frame): New function.
6195 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
6196
6197 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
6198
73acf815 61992008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6200
6201 * xselect.c (Vselection_coding_system)
6202 (Vnext_selection_coding_system): Delete them.
6203 (syms_of_xselect): Don't declare selection-coding-system and
6204 next-selection-coding-system. They are declared in select.el.
6205
73acf815 62062008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6207
6208 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
6209
6210 * w32fns.c: Include imm.h.
6211 (get_composition_string_fn, get_ime_context_fn): New optional
6212 system functions.
6213 (globals_of_w32fns): Load them from imm32.dll.
6214 (ignore_ime_char): New flag.
6215 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
6216 WM_IME_ENDCOMPOSITION messages.
6217
6218 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
6219 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
6220
73acf815 62212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6222
6223 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
6224 (READCHAR_REPORT_MULTIBYTE): New macro.
6225 (readchar): New 2nd arg MULTIBYTE.
15139d67
SM
6226 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
6227 Make symbol's name multibyte according to the multibyteness of the
aca7a3d2
MB
6228 source.
6229
73acf815 62302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6231
6232 * xfaces.c (face_for_overlay_string): Call lookup_face with
6233 correct arguments (fix of synching with the trunk).
6234
73acf815 62352008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6236
4c4475a8
GM
6237 * font.c (font_prop_validate_symbol, font_prop_validate_style)
6238 (font_prop_validate_non_neg, font_prop_validate_spacing):
6239 Delete argument prop_index.
15139d67
SM
6240 (font_property_table): Change arguments to validater. Change Callers.
6241 (font_lispy_object): Delete.
aca7a3d2
MB
6242 (font_at): Use font_find_object instead fo font_lispy_object.
6243
73acf815 62442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6245
6246 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
6247 and file names.
6248
73acf815 62492008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6250
6251 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
6252 (font_matches_spec): Remove debug output.
6253 (add_font_entity_to_list): Avoid using substituted fonts.
6254
73acf815 62552008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6256
6257 * doc.c (Fsnarf_documentation):
6258 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
6259
73acf815 62602008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2 6261
290afd83 6262 * dispextern.h (struct glyph_row): Only define "clip" field if
aca7a3d2
MB
6263 HAVE_WINDOW_SYSTEM is defined.
6264
73acf815 62652008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
aca7a3d2
MB
6266
6267 Fix up multi-tty merge.
6268
6269 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
6270 and indentation.
6271
6272 * xfaces.c (free_realized_face, clear_face_gcs):
6273 Include font_done_for_face in the input_blocked section, just in case.
6274
6275 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
6276 (get_char_face_and_encoding): Undo last change and remove the *other*
6277 duplicate definition (i.e. keep the one that's better scoped and that
6278 includes code for the font-backend).
6279
6280 * terminal.c (create_terminal): Default keyboard_coding to
6281 `no-conversion' and terminal_coding to `undecided'.
6282
6283 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
6284
6285 * fontset.c (free_realized_fontsets): Check that the table entry does
6286 contain a fontset before trying to compare it to `base'.
6287
6288 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
6289 syms_of_charset, and syms_of_coding earlier because init_window_once
6290 now needs Vcoding_system_hash_table to be setup.
6291
6292 * coding.h (default_buffer_file_coding): Remove.
6293
6294 * coding.c (default_buffer_file_coding): Remove.
6295 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
6296 than ->symbol, and use the terminal-local coding system.
6297 (syms_of_coding): Don't setup the coding-systems that are not
6298 terminal-local.
6299 (Fdefine_coding_system_internal): Use XCAR/XCDR.
6300
6301 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
6302 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
6303
6304 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
6305 in chartab.c and were re-added here by mistake.
6306 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
6307
6308 * doc.c (Fsnarf_documentation):
6309 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
6310 src to etc.
6311
6312 * ChangeLog.10: Add mistakenly removed entry.
6313
73acf815 63142008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
aca7a3d2
MB
6315
6316 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
6317
73acf815 63182008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
6319
6320 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
6321 Add extra args to FACE_FOR_CHAR.
6322
73acf815 63232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6324
6325 * keymap.c (where_is_internal_1): If key is a cons, store the copy
6326 in sequence.
6327
4c4475a8
GM
6328 * chartab.c (map_sub_char_table, map_char_table): If the range
6329 contains just one character, call the function with that character
6330 even if the depth is not 3.
aca7a3d2 6331
73acf815 63322008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6333
6334 * w32font.c (w32font_text_extents): Calculate metrics for the
6335 whole string.
6336
73acf815 63372008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6338
6339 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
6340
73acf815 63412008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6342
6343 * w32term.c (x_set_glyph_string_clipping): Use
6344 get_glyph_string_clip_rects.
4c4475a8
GM
6345 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
6346 Adjust for the change of struct glyph_string.
aca7a3d2
MB
6347
6348 * w32font.c (w32font_draw): Do clipping here.
6349
73acf815 63502008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6351
1f45f627 6352 * xftfont.c (xftfont_draw): Adjust for the change of struct
aca7a3d2
MB
6353 glyph_string.
6354
6355 * xterm.c (x_set_glyph_string_clipping): Use
6356 get_glyph_string_clip_rects.
4c4475a8
GM
6357 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
6358 Adjust for the change of struct glyph_string.
aca7a3d2
MB
6359
6360 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
6361 the resulting clip(s}.
1f45f627 6362 (expose_overlaps): Add arg r. Change callers. Set it to
aca7a3d2
MB
6363 row->clip temporarily.
6364 (expose_window): Redraw rows overlapping the exposed area.
6365
6366 * dispextern.h (struct glyph_row): New member clip.
6367 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
6368 clip_height, new member clip, and num_clips.
6369
73acf815 63702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6371
6372 * data.c (Fchar_or_string_p): Fix docstring.
6373
73acf815 63742008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6375
6376 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
6377 create a temporal XftDraw object.
6378
73acf815 63792008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6380
6381 * font.c (Ffontp): Fix docstring.
6382
6383 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
6384 strong evidence of ISO-2022.
6385
73acf815 63862008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6387
6388 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
6389 SYNTAX_ENTRY_FOLLOW_PARENT.
6390
73acf815 63912008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
aca7a3d2
MB
6392
6393 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
6394 its type.
6395 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
6396 Update to the new type of weak_hash_tables and next_weak.
6397
6398 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
6399 a plain C pointer to Lisp_Hash_Table.
6400
6401 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
6402 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
6403 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
6404 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
6405 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
6406 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
6407 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
6408 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
6409 (GC_EQ): Remove since they've been identical to their non-GC_
6410 alter-egos ever since the markbit was eradicated.
6411
290afd83
JB
6412 * alloc.c:
6413 * buffer.c:
6414 * buffer.h:
6415 * data.c:
6416 * fileio.c:
6417 * filelock.c:
6418 * fns.c:
6419 * frame.h:
6420 * lisp.h:
6421 * macterm.c:
6422 * print.c:
6423 * process.c:
6424 * w32fns.c:
6425 * w32menu.c:
6426 * w32term.c:
6427 * xfns.c:
6428 * xmenu.c:
6429 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
aca7a3d2 6430
73acf815 64312008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6432
6433 * chartab.c (map_sub_char_table): Make it work for the top-level
6434 char-table. Fix handling of parent char-table.
c5ad7a3d 6435 (map_char_table): Adjust for the above change.
aca7a3d2 6436
73acf815 64372008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6438
6439 * w32font.c (Qgdi): Rename from Qw32.
6440
73acf815 64412008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6442
6443 * w32bdf.c (get_quoted_string): Make function static.
6444
73acf815 64452008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6446
6447 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
6448 bigger ascent and descent than those of the font, use them as
6449 font's ascent and descent.
6450
73acf815 64512008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6452
6453 * Makefile.in (${lispsource}international/charprop.el): Move this
6454 target within "#ifdef HAVE_UNIDATA" and "#endif".
6455
73acf815 64562008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6457
6458 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
6459 (shortlisp): Add ../lisp/language/tai-viet.el.
6460
1f45f627 64612008-02-01 Ulrich Mueller <ulm@gentoo.org>
aca7a3d2
MB
6462
6463 * Makefile.in (${lispsource}international/charprop.el): Depend on
6464 temacs${EXEEXT}.
6465
73acf815 64662008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6467
6468 * w32font.c (w32font_close): Delete the GDI font object.
6469
6f69e89b 6470 * w32menu.c: Include character.h.
aca7a3d2
MB
6471
6472 * w32proc.c: Likewise.
6473
6474 * w32select.c: Likewise.
6475
6f69e89b 6476 * makefile.w32-in (w32proc.o): Depend on character.h.
aca7a3d2 6477
73acf815 64782008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6479
6480 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
6481
6482 * w32menu.c (syms_of_w32menu): Likewise.
6483
6484 * w32proc.c (syms_of_ntproc): Likewise.
6485
6486 * w32select.c (syms_of_w32select): Likewise.
6487
6488 * w32term.c (syms_of_w32term): Likewise.
6489
73acf815 64902008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6491
6492 * w32font.c (w32font_draw): Delete brush after using it.
6493
73acf815 64942008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6495
6496 * w32font.c (w32font_open): Don't set font_idx.
6497 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
6498 to font settings.
6499 (w32font_draw): Fill background explicitly.
6500
73acf815 65012008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6502
6503 * w32term.c (w32_initialize): Don't call w32font_initialize.
6504
6505 * w32font.c (w32font_info): Remove subranges.
6506 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
6507 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
6508 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
6509 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
6510 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
6511 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
6512 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
6513 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
6514 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
6515 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
6516 New symbols.
6517 (font_callback_data): New struct.
6518 (w32font_list, w32font_match): Use it.
6519 (w32font_open): Don't populate subranges.
6520 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
6521 (w32font_encode_char): Always return unicode code-point as-is.
6522 (w32font_text_extents): Supply a tranformation matrix to
1f45f627
GM
6523 GetGlyphOutline. Never look up by glyph index. Avoid looping
6524 twice. Use unicode version of GetTexExtentPoint32 instead of
aca7a3d2 6525 glyph index version.
1f204af3 6526 (set_fonts_frame): Remove.
aca7a3d2 6527 (w32_enumfont_pattern_entity): Add frame parameter, use it to
1f45f627
GM
6528 set frame parameter. Use backward compatible fake foundries.
6529 Save generic family in extra slot under QCfamily. Make width slot
6530 constant. Save QCspacing value. Save list of scripts instead of
aca7a3d2
MB
6531 binary subranges.
6532 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
1f45f627 6533 (add_font_entity_to_list): Use font_callback_data struct. Filter
aca7a3d2
MB
6534 unwanted fonts.
6535 (add_one_font_entity_to_list): Use font_callback_data struct.
1f45f627
GM
6536 (w32_registry): Default to iso10646_1.
6537 (fill_in_logfont): Use dpi from extra slot. Don't bother with
6538 string font registries. Don't fill in font name if it is a generic
6539 family name, fill family instead. Use spacing, family and script
aca7a3d2
MB
6540 extra info to fill pitch, family and charset fields.
6541 (list_all_matching_fonts): Use font_callback_data struct.
6542 (unicode_range_for_char): Remove.
6543 (font_supported_scripts): New function.
6544 (w32font_initialize): Remove.
6545 (syms_of_w32font): Update which symbols are defined.
6546
73acf815 65472008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6548
6549 * font.c (font_pixel_size): Reverse assq_no_quit args.
6550
6551 * w32term.h (FONT_WIDTH): Report max width, not average.
6552 (FONT_MAX_WIDTH): Remove.
6553 (FONT_AVG_WIDTH): New macro.
6554
6555 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
6556 redefinition of FONT_WIDTH.
6557
6558 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
6559 (w32_cache_char_metrics): Use FONT_WIDTH.
6560
6561 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
6562
73acf815 65632008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6564
6565 * w32font.c (w32font_open): Make lfHeight negative.
6566
6567 * w32fns.c (x_default_font_parameter): Use new style font name.
6568 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
6569
73acf815 65702008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6571
6572 * w32font.c (QCsubranges): New symbol.
6573 (w32font_open, w32font_has_char): Get subranges from subproperty
6574 of extra.
6575 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
6576 (syms_of_w32font): Define :subranges symbol.
6577
6578 * font.c (font_put_extra): Expose externally.
6579
1f45f627 6580 * font.h (font_put_extra): Move declaration from font.c.
aca7a3d2
MB
6581
6582 * font.c (Ffont_get): Use font driver to determine otf capability.
6583 (adjust_anchor): Check if driver defines anchor_point before using.
6584
6585 * w32font.c (w32font_open): Handle size, height and pixel_size better.
6586 (w32font_draw): Use options.
6587 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
6588 Fix detection of truetype fonts.
6589 (registry_to_w32_charset): Handle charsets other than iso8859-1
6590 expressed as lisp symbols.
6591 (w32_registry): Express charset as lisp symbol.
6592 (fill_in_logfont): Reverse pixel and point height logic.
1f45f627 6593 Don't set width here. Set quality to default.
aca7a3d2
MB
6594
6595 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
6596 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
6597
6598 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
6599 Remove redundant loop and allocation.
6600
6601 * makefile.w32-in (font.o, w32font.o): New objects.
6f69e89b 6602 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
aca7a3d2
MB
6603 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
6604
6605 * xdisp.c (fill_composite_glyph_string): Make the first arg to
6606 STORE_XCHARB a valid l-value.
6607
6608 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
6609 calculations for non-Truetype fonts.
6610 (x_draw_glyph_string): Sync with xterm.c.
c3f9fba8
JB
6611 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
6612 Remove redundant code.
aca7a3d2
MB
6613 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
6614
6615 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
6616 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
6617
6618 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
6619 (x_to_w32_charset, w32_to_x_charset): Expose externally.
6620
6621 * w32font.c: New file for w32 font backend.
6622
73acf815 66232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6624
6625 * term.c: Don't include "buffer.h" twice.
6626
73acf815 66272008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6628
6629 * character.c (Funibyte_string): New function.
6630 (syms_of_character): Defsubr it.
6631
73acf815 66322008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6633
6634 * w32term.c [USE_FONT_BACKEND]:
c3f9fba8
JB
6635 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
6636 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
6637 (x_draw_glyph_string, x_draw_glyph_string_foreground)
6638 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
aca7a3d2
MB
6639 (x_free_frame_resources): Sync with xterm.c.
6640
73acf815 66412008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
6642
6643 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
6644 char-table size.
6645
73acf815 66462008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6647
c3f9fba8 6648 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
aca7a3d2 6649
73acf815 66502008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6651
6652 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
6653 font_otf_gpos, add font_drive_otf.
6654
6655 * fontset.c (fontset_find_font): Pay attention to font size
6656 specified for a font.
6657 (reorder_font_vector): Check contents of font_def.
6658
6659 * font.c (struct otf_list): Delete it.
6f69e89b 6660 (otf_list): Make it a lisp variable.
aca7a3d2 6661 (otf_open): Use lispy otf_list.
1f45f627 6662 (generate_otf_features): Rename from parse_gsub_gpos_spec.
aca7a3d2 6663 (check_otf_features): New function.
c3f9fba8
JB
6664 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
6665 New functions.
aca7a3d2
MB
6666 (font_drive_otf): New function merging font_otf_gsub and
6667 font_otf_gpos.
6668 (font_open_for_lface): New arg spec. Change argument order.
1f45f627 6669 (font_load_for_face): Adjust for the change of font_open_for_lface.
aca7a3d2
MB
6670 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
6671 Ffont_otf_gpos.
6672 (syms_of_font): Staticpro otf_list. Delete defsubr of
6673 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
6674
1f45f627 6675 * xfaces.c (set_font_frame_param): Adjust for the change of
aca7a3d2
MB
6676 font_open_for_lface.
6677
6678 * font.h (font_open_for_lface): Adjust prototype.
6679 (struct font_driver): Delete members otf_gsub and otf_gpos, add
6680 member otf_drive.
6681 (font_otf_gsub, font_otf_gpos): Delete externs.
6682 (font_drive_otf): Extern it.
6683
73acf815 66842008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6685
6686 * font.c (font_at): If the window W is not on a window system,
6687 return Qnil.
6688
4c4475a8
GM
6689 * coding.c (produce_chars, encode_coding): Don't call
6690 insert_from_gap if no characters to produce.
aca7a3d2 6691
73acf815 66922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6693
6694 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
6695 Fclear_face_cache.
6696
6697 * xfaces.c (face_for_font): Check also face->font==font->font.font.
6698
73acf815 66992008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
6700
6701 * emacs.c (main): Change default value of `enable_font_backend' to 1.
6702 Parse "--disable-font-backend" option.
6703 (standard_args): Add "--disable-font-backend" option.
6704
73acf815 67052008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6706
6707 * fontset.c (fontset_find_font): New function.
6708 (fontset_font): Use fontset_find_font.
6709 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
6710 Register the specified font for all Latin characters.
6711 (new_fontset_from_font): Register the specified font for all Latin
6712 characters.
6713 (dump_fontset): For a realized fontset, include the base fontset
6714 name in the returned vector.
6715
73acf815 67162008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6717
6718 * character.h (CHAR_STRING): Cast C to unsigned on calling
6719 char_string.
6720
6721 * character.c (char_string): Type of arg C changed to unsigned.
6722 Signal an error if C is an invalid character code.
6723
4c4475a8
GM
6724 * editfns.c (general_insert_function, Fchar_to_string):
6725 Use CHARACTERP, not INTEGERP.
aca7a3d2 6726
73acf815 67272008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6728
6729 * character.h (MIN_MULTIBYTE_LEADING_CODE)
6730 (MAX_MULTIBYTE_LEADING_CODE): New macros.
6731
6732 * regex.c (analyse_first): Fix for multibyte characters in "case
6733 charset:" and "case categoryspec:".
6734
73acf815 67352008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
6736
6737 * Makefile.in (LIBES): Move standard libraries to the end.
6738
73acf815 67392008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6740
6741 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
6742 nonzero, don't shrink the buffer nextb.
6743
6744 * buffer.h (struct buffer_text): New member inhibit_shrinking.
6745
6746 * coding.c (coding_alloc_by_making_gap): New arg offset.
6747 (alloc_destination): Call coding_alloc_by_making_gap with the arg
6748 offset.
6749 (decode_coding_iso_2022): Update coding->safe_charsets.
6750 (decode_coding_gap): Temporarily set
6751 current_buffer->text->inhibit_shrinking to 1.
6752
73acf815 67532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6754
6755 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
6756 indexing into elements of s->cmp and s->char2b.
6757
73acf815 67582008-02-01 Juanma Barranquero <lekktu@gmail.com>
aca7a3d2
MB
6759
6760 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
6761
73acf815 67622008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6763
6764 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
6765 target_multibyte instead of multibyte.
6766 (re_match_2_internal): Call bcmp_translate with target_multibyte.
6767 (bcmp_translate): Change the argument name from multibyte to
6768 target_multibyte.
6769
73acf815 67702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6771
6772 These changes are to compile a regexp into a pattern that can be
6773 used both for multibyte and unibyte targets.
6774
6775 * Makefile.in (search.o): Depend on charset.h.
6776
6777 * character.c (multibyte_char_to_unibyte_safe): New function.
6778
6779 * search.c: Include "charset.h".
6780 (compile_pattern_1): Delete argument multibyte. Don't set
6781 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
6782 (compile_pattern): Don't compare cp->buf.target_multibyte.
6783 Compare cp->buf.charset_unibyte.
6784 (compile_pattern): Set cp->buf.target_multibyte.
6785
6786 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
6787
6788 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
6789
6790 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
1f45f627 6791 multibyte. Change callers.
aca7a3d2 6792 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
1f45f627
GM
6793 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
6794 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
aca7a3d2
MB
6795 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
6796 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
6797 (regex_compile): Make the compiled pattern usable both for
6798 multibyte and unibyte targets.
6799 (analyse_first): Make the fastmap usable both for multibyte and
6800 unibyte targets.
1f45f627 6801 (TRANSLATE_VIA_MULTIBYTE): Delete.
aca7a3d2
MB
6802 (re_match_2_internal): Pay attention to the case that the
6803 multibyteness of bufp and target may be different.
6804
73acf815 68052008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6806
6807 * xdisp.c (x_produce_glyphs): When a font is not found, make the
6808 empty box occupy at least one column width.
6809
73acf815 68102008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
6811
6812 * Makefile.in: Remove redundant HAVE_XFT clause.
6813
73acf815 68142008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6815
6816 * xrdb.c (x_load_resources): Setup the default fontSet X reource.
6817
73acf815 68182008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6819
6820 * fontset.c (Finternal_char_font): Fix for the case of POSITION
6821 being nil.
6822
73acf815 68232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6824
6825 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
6826
73acf815 68272008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6828
6829 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
6830
73acf815 68312008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6832
6833 * search.c (simple_search): Fix previous change.
6834
73acf815 68352008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6836
6837 * xftfont.c (ftfont_font_format): Extern declaration.
6838
6839 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
6840
6841 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
6842 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
6843
6844 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
6845 (ftfont_font_format): Fix previous change.
6846
6847 * font.h (Ffont_xlfd_name): EXFUN it.
6848
6849 * font.c (font_parse_xlfd): Fix the array size of `f'.
6850 (register_font_driver): Use EQ to compare driver->type.
6851
6852 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
6853 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
6854 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
6855
73acf815 68562008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6857
4c4475a8
GM
6858 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
6859 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
aca7a3d2 6860
73acf815 68612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6862
6863 * xfont.c (xfont_open): Set font->format.
6864
6865 * xftfont.c (xftfont_open): Set font->format.
6866
6867 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
6868 (ftfont_list): Include FC_FONTFORMAT in FcObject.
6869 (ftfont_open): Set font->format.
6870 (ftfont_font_format): New function.
6871
6872 * font.h (struct font): New memeber format.
6873
6874 * font.c (Qopentype): New variable.
6875 (syms_of_font): Defsym it.
6876 (Fquery_font): Change the format of the last element of the return
6877 value.
6878
73acf815 68792008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6880
6881 * xfns.c (xic_create_xfontset): Try the default fontset name as a
6882 last resort.
6883
73acf815 68842008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6885
6886 * coding.c (detect_coding_charset): Fix detection of multi-byte
6887 charset.
6888
73acf815 68892008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
aca7a3d2
MB
6890
6891 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
6892
73acf815 68932008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6894
6895 * xdisp.c (get_next_display_element): Set it->face_id for the
6896 first component of a composition.
1f45f627 6897 (x_produce_glyphs): Check if the font is changed or not for composition.
aca7a3d2 6898
73acf815 68992008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6900
6901 * fontset.c (Qlatin): New variable.
6902 (syms_of_fontset): Define it as a lisp symbol.
1f45f627 6903 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
aca7a3d2 6904
73acf815 69052008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6906
6907 * font.c (font_unparse_fcname): Pay attention to the case that
6908 some of font property is a null string.
6909
73acf815 69102008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6911
6912 * term.c: Include "composite.h".
6913 (encode_terminal_code): Output all components of composition.
6914 Check the size of encode_terminal_src.
424c157f 6915 (produce_glyphs): For composition, call produce_composite_glyph.
aca7a3d2
MB
6916 (append_composite_glyph, produce_composite_glyph): New functions.
6917
6918 * xdisp.c (x_produce_glyphs): In handling composition, if a font
6919 is not found, get font_info from the current ascii face.
6920
73acf815 69212008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6922
6923 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
6924 buffer-file-name to Qnil before calling insert_from_buffer.
6925
6926 * font.c (font_unparse_fcname): Pay attention to the case that
6927 foundry is a null string.
6928
73acf815 69292008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6930
6931 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
6932
6933 * font.c (Qunicode_sip): New variable.
6934 (syms_of_font): Declare it as a Lisp symbol.
6935
6936 * font.h (Qunicode_sip): Extern it.
6937
73acf815 69382008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6939
1f45f627 6940 * composite.c (get_composition_id): Pay attention to TAB component.
aca7a3d2
MB
6941
6942 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
1f45f627 6943 TAB. Adjust for the change of s->char2b which always points to
aca7a3d2
MB
6944 the first elememnt of allocated memory.
6945
1f45f627 6946 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
aca7a3d2
MB
6947
6948 * xdisp.c (handle_composition_prop): Set it->c to the first
6949 non-TAB component.
1f45f627
GM
6950 (fill_composite_glyph_string): Change argument.
6951 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
aca7a3d2
MB
6952 (x_produce_glyphs): Fix handling of left/right padding.
6953
73acf815 69542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6955
6956 * coding.c (detect_coding_system): Fix for handling off
6957 inhibit_iso_escape_detection. Fix for the case that no coding
6958 system is defined for a specific coding category.
6959
73acf815 69602008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6961
1f45f627 6962 * font.c (font_matching_entity): Delete unused local var.
aca7a3d2
MB
6963
6964 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
6965 opening a font.
6966
6967 * fileio.c (Finsert_file_contents): On recovering a file, assume
6968 Unix-like eol.
6969 (choose_write_coding_system): On auto-saving a file, force
6970 Unix-like eol.
6971
6972 * coding.c (setup_coding_system): Fix setting of
6973 coding->common_flags based on eol_type.
6974 (coding_inherit_eol_type): If PARENT is not nil, be sure to
6975 inherit from it.
6976
73acf815 69772008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6978
1f45f627 6979 * alloc.c (NSTATICS): Increas to 0x600.
aca7a3d2 6980
73acf815 69812008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6982
1f45f627 6983 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
aca7a3d2
MB
6984 (ftfont_list): Don't check :name property.
6985 (ftfont_match): New function.
6986 (ftfont_pattern_entity): If the pattern doesn't contain
6987 FC_SPACING, don't assuce FC_MONO.
6988
6989 * font.h (struct font_driver): New member `match'.
1f45f627 6990 (font_update_drivers): Adjust prototype.
aca7a3d2 6991
4c4475a8
GM
6992 * font.c (font_parse_fcname, font_parse_name): Don't change :name
6993 property of FONT.
aca7a3d2
MB
6994 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
6995 them unconditionally.
6996 (font_matching_entity): New function.
6997 (font_open_by_name): Try font_matching_entity if exact match is
6998 not found.
6999 (font_update_drivers): Delete the arg FONT. Return a list of
7000 actually used backends. Don't free faces, font caches here.
7001 Don't store data in frame parameters. Don't call x_set_font.
7002 (Ffont_spec): Store :name property as is.
7003 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
1f45f627
GM
7004 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
7005 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
aca7a3d2
MB
7006 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
7007 Call font->driver->otf_gsub instead of font_otf_gsub.
7008
7009 * frame.c (x_set_font_backend): Do more works that were done in
7010 font_update_drivers before.
7011
7012 * xfont.c (xfont_match): New function.
7013 (xfont_driver): Set xfont_driver.match to xfont_match.
7014 (xfont_draw): Set font in GC if necessary.
7015
7016 * ftxfont.c (ftxfont_match): New function.
7017 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
7018
7019 * xftfont.c (xftfont_match): New function.
7020 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
7021
73acf815 70222008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7023
7024 * font.h (struct font): New member scalable.
7025 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
1f45f627 7026 (font_otf_gsub): Adjust prototype.
aca7a3d2 7027
1f45f627
GM
7028 * font.c (font_otf_capability): Fix handling of the default langsys.
7029 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
aca7a3d2
MB
7030 Check the contents of SPEC.
7031 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
7032 (check_gstring): New function.
7033 (REPLACEMENT_CHARACTER): New macro.
7034 (font_otf_gsub): New arg alternate_subst. Be sure to set all
7035 glyph codes of GSTRING.
7036 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
7037 (font_prepare_composition): Set cmp->glyph_len.
7038 (font_open_entity): Set font->scalable.
7039 (Ffont_get): Handle :otf property.
7040 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
7041 functions.
7042 (Fquery_font): Use font->font.full_name.
7043 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
7044 Sfont_otf_alternates.
7045
7046 * ftfont.c (ftfont_open): Set font->font.full_name and
7047 font->font.name properly. Fix calculation of font->font.height
7048 and font->min_width.
7049
7050 * ftxfont.c (ftxfont_create_gcs): New function.
7051 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
7052 (ftxfont_draw_backgrond): Fix filling region.
7053 (ftxfont_default_fid): New function.
7054 (ftxfont_open): Set xfotn->fid to the return value of
7055 ftxfont_default_fid.
7056 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
7057 (ftxfont_done_face): Free only GCs that are created by
7058 ftxfont_create_gcs.
7059 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
7060
7061 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
7062 Clip to src->width, etc (not src->clip_XXX).
7063
7064 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
7065 FontBackend frame parameter.
7066
73acf815 70672008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7068
7069 * font.h (struct font_driver_list): New member `on'.
7070 (Fclear_font_cache): EXFUN it.
7071 (font_update_drivers): Extern it.
7072
7073 * font.c (font_unparse_fcname): Fix typo (swidth->width).
7074 (font_list_entities): Check driver_list->on.
7075 (register_font_driver): Initalize `on' member to 0.
7076 (font_update_drivers): New function.
7077 (Fclear_font_cache): Check driver_list->on.
7078
7079 * frame.h (Qfont_backend): Extern it.
7080 (x_set_font_backend): Extern it.
7081
7082 * frame.c (Qfont_backend): New variable.
7083 (frame_parms): New element for font-backend.
7084 (x_set_font_backend): New function.
7085
7086 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
7087 FontBackend frame parameter.
7088 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
7089 x_set_font_backend.
7090
7091 * xfont.c (xfont_list): Don't try listing by :name property if the
7092 name is not for XLFD.
7093
73acf815 70942008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7095
7096 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
7097 (LGLYPH_SET_TO): New macros.
7098 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
7099 element of G is vector or not.
7100 (font_at): Extern it.
7101
7102 * font.c: Include window.h.
7103 (font_lispy_object): New function.
7104 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
7105 end of valid glyph.
7106 (font_close_object): Fix getting (struct font *).
7107 (font_at): New function.
7108 (Ffont_get): If FONT is a font-object, get entity from it.
7109 (Ffont_make_gstring): Initialize elements of glyphs with nil.
7110 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
7111 range check.
7112 (Ffont_at): New function.
7113 (syms_of_font): Defsubr Sfont_at.
7114
7115 * xdisp.c (it_props): Move the entry for Qauto_composed to just
424c157f 7116 before the entry for Qcomposition.
1f45f627 7117 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
aca7a3d2
MB
7118 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
7119 the font in gstring.
7120 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
7121 LGLYPH_FORM (g) to detect the end of valid glyph.
7122 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
7123 we are composing with gstring.
7124
7125 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
7126 Check if adjustment is vector or not.
7127
7128 * Makefile.in (font.o): Make it depends on window.h.
7129
73acf815 71302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7131
7132 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
7133 adjustment is vector or not.
7134
73acf815 71352008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
7136
7137 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
7138
73acf815 71392008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7140
7141 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
7142 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
7143 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
7144
1f45f627 7145 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
aca7a3d2 7146 (DEVICE_DELTA): Fix typo.
4c4475a8
GM
7147 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
7148 LGLYPH format.
aca7a3d2 7149
1f45f627 7150 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aca7a3d2
MB
7151 the change of LGLYPH format.
7152
73acf815 71532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7154
7155 * ftfont.c (ftfont_list): Fix typo.
1f45f627 7156 (ftfont_build_basic_charsets): Don't include letters with diacritics.
aca7a3d2 7157
880820fe 71582008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2
MB
7159
7160 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
7161
7162 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
7163 xftface_info is non-NULL.
7164
880820fe 71652008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2 7166
1f45f627 7167 * ftfont.c (ftfont_list): Move misplaced #endif.
aca7a3d2 7168
73acf815 71692008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7170
7171 * ftfont.c (ftfont_list): Pay attention to the case that
7172 FC_CAPABILITY is not defined.
7173
73acf815 71742008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7175
7176 * xftfont.c (xftfont_open): Set charset related members to -1.
7177
1f45f627
GM
7178 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
7179 QCname.
aca7a3d2
MB
7180 (ftfont_open): Set charset related members to -1.
7181
7182 * fontset.c (Votf_script_alist): New variable.
7183 (syms_of_fontset): Initialize it.
7184 (fontset_font): Delete unused variable.
7185
7186 * fontset.h (Votf_script_alist): Extern it.
7187
1f45f627 7188 * font.c (font_find_for_lface): Optimize code.
aca7a3d2
MB
7189
7190 * font.h (font_close_object, font_merge_old_spec): Extern them.
7191
73acf815 71922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7193
7194 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
7195 (syms_of_font): Initialize them.
7196 (font_pixel_size): Allow float value in dpi.
1f45f627
GM
7197 (font_prop_validate_type): Delete.
7198 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
7199 Change caller.
7200 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
7201 (font_prop_validate_extra): Delete.
aca7a3d2
MB
7202 (font_prop_validate_spacing): New function.
7203 (font_property_table): Add elements for all known properties.
1f45f627
GM
7204 (get_font_prop_index): Rename from check_font_prop_name. New
7205 argument FROM. Change caller.
aca7a3d2 7206 (font_prop_validate): Validate all known properties.
1f45f627 7207 (font_put_extra): Delete argument force. Change caller.
aca7a3d2
MB
7208 (font_expand_wildcards): Make it static. Fix the way of shrinking
7209 the possible range.
1f45f627 7210 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
aca7a3d2 7211 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
1f45f627 7212 Change caller.
aca7a3d2 7213 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
1f45f627
GM
7214 (font_parse_fcname): Delete argument merge. Fix parsing of point
7215 size. Don't validate properties values here. Change caller.
7216 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
aca7a3d2
MB
7217 (font_open_by_name): Delete unused variable.
7218 (Ffont_spec): Likewise. Validate property values.
7219 (Ffont_match_p): New function.
7220
7221 * font.h (QCscalable): Extern it.
1f45f627 7222 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
aca7a3d2 7223
1f45f627 7224 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
aca7a3d2 7225
1f45f627 7226 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
aca7a3d2
MB
7227 (xfont_list_pattern): New function.
7228 (xfont_list): Use xfont_list_pattern.
7229
73acf815 72302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7231
7232 * font.h (Flist_fonts): EXFUN it.
7233
73acf815 72342008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7235
7236 * w32term.c (w32_initialize): Add back smoothing_type and
7237 smoothing_enabled definitions.
7238
73acf815 72392008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7240
7241 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
7242 s->face->font on determining underline position.
7243
73acf815 72442008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7245
7246 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
7247 (font_has_char): Accept font-object too.
7248 (font_find_for_lface): Try at first with a size specified in face.
7249
73acf815 72502008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7251
7252 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
7253 font_open_by_name.
7254
73acf815 72552008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7256
7257 * font.h (QCspacing, QCdpi): Extern them.
7258 (enum font_spacing): New enum.
7259 (FONT_PIXEL_SIZE_QUANTUM): New macro.
7260
7261 * font.c (POINT_TO_PIXEL): Don't divice POINT by 10.
7262 (QCspacing, QCdpi): New variables.
7263 (syms_of_font): Initialize them.
7264 (font_pixel_size): New function.
7265 (font_put_extra): New function.
7266 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
7267 in FONT_EXTRA.
e9184ccb
JB
7268 (font_parse_fcname): Handle enumenrated values (e.g. bold).
7269 Fix handling font size. Add QCname property that contains only
aca7a3d2 7270 unknown properties.
1f45f627 7271 (font_score): Change argument. Change caller. Pay attention to
aca7a3d2 7272 FONT_PIXEL_SIZE_QUANTUM.
4c4475a8
GM
7273 (font_sort_entites, font_list_entities, font_find_for_lface)
7274 (font_open_for_lface, font_open_by_name): Fix handling of font size.
1f45f627 7275 (Ffont_spec): Add QCname property that contains only unknown properties.
aca7a3d2
MB
7276
7277 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
7278 include weight in listing pattern, instead check weight of each
7279 listed font. Don't include scalable in pattern. Pay attention to
7280 FONT_PIXEL_SIZE_QUANTUM.
7281
73acf815 72822008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7283
aca7a3d2 7284 * font.c (font_parse_fcname): Fix parsing of point-size.
1f45f627 7285 (font_unparse_fcname): Produce symbolic names for style properties.
aca7a3d2
MB
7286 (font_list_entities): Handle float size correctly.
7287 (font_open_by_name): Prefer `normal' property values if the name
7288 doesn't specify them.
7289
7290 * fontset.c (Finternal_char_font): Use font_get_name, not
7291 Ffont_xlfd_name.
7292
7293 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
7294 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
7295 pattern. Don't force scalable.
7296
7297 * xftfont.c (xftfont_open): For generating a name, start from
7298 96-byte buffer.
7299
880820fe 73002008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2
MB
7301
7302 * frame.h (x_new_fontset2): Fix prototype.
7303
73acf815 73042008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7305
1f45f627 7306 * font.h (struct font_driver): Delete member parse_name.
aca7a3d2
MB
7307 (font_match_p, font_get_spec, font_parse_fcname)
7308 (font_unparse_fcname): Extern them.
1f45f627 7309 (font_get_name): Adjust prototype.
aca7a3d2
MB
7310
7311 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
7312 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
7313 (font_expand_wildcards): Fix handling ENCODING field. Avoid
7314 unnecessary checks for weight, slant, and swidth.
7315 (font_parse_fcname): New function.
7316 (font_unparse_fcname): New function.
7317 (font_parse_name): New function.
7318 (font_match_p): New function.
1f45f627 7319 (font_get_name): Change return value to Lisp string.
aca7a3d2
MB
7320 (font_get_spec): New function.
7321 (Qunspecified, Qignore_defface): Don't extern them.
7322 (font_find_for_lface): Assume that LFACE is fully specified.
7323 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
7324 object, use it for FACE.
7325 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
7326 driver->parse_name.
7327 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
7328
1f45f627
GM
7329 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
7330 prototype.
aca7a3d2 7331
1f45f627
GM
7332 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
7333 argument F. Don't call Fnew_fontset. Instead, directly call
aca7a3d2
MB
7334 make_fontset.
7335
1f45f627 7336 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
aca7a3d2 7337
1f45f627 7338 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
aca7a3d2
MB
7339 of x_new_fontset2.
7340
7341 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
7342 (Qsans__serif): New variables.
7343 (ftfont_generic_family_list): New variable.
7344 (syms_of_ftfont): Initialize the above variables.
1f45f627 7345 (ftfont_pattern_entity): Delete argument NAME.
aca7a3d2
MB
7346 (ftfont_list_generic_family): New function.
7347 (ftfont_parse_name): Delete this function.
1f45f627 7348 (ftfont_list): Try generic family only when FcFontList found no font.
aca7a3d2
MB
7349 (ftfont_list_family): Fix args to FcObjectSetBuild.
7350
7351 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
7352 object in attrs[LFACE_FONT_INDEX].
7353 (set_lface_from_font_name): Cancel all changes for font-backend.
7354 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
7355 function.
7356 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
7357 font object in QCfont attribute.
7358 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
7359 (realize_default_face) [USE_FONT_BACKEND]: Call
7360 set_lface_from_font_and_fontset.
7361
7362 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
7363 "fixed", and signal error here if no suitable font was found.
7364
7365 * xfont.c (xfont_parse_name): Delete this function.
7366
7367 * xftfont.c (xftfont_open): Change coding style of error
7368 handling. Generate fontconfig's fontname pattern.
7369
7370 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
7371 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
7372
7373 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
7374 Both args FONTSET and FONT_OBJECT must be existing ones.
7375
73acf815 73762008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
7377
7378 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
7379
73acf815 73802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7381
7382 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
7383
7384 * font.h (struct font): Fix typo.
7385
7386 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
7387 XLFD_XXX_INDEX.
7388 (enum xlfd_field_mask): New enum.
1f45f627 7389 (intern_font_field): Changed argument. Change caller. If digits
aca7a3d2
MB
7390 are followed by non-digits, return a symbol.
7391 (font_expand_wildcards): New function.
7392 (font_parse_xlfd): Fix wildcard handling.
7393 (Ffont_spec): If :name is specified, reflect the info in the other
7394 properties.
7395
7396 * ftfont.c (ftfont_pattern_entity): Fix typo.
7397 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
7398 locale.
7399
73acf815 74002008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7401
7402 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
7403
1f45f627 7404 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
aca7a3d2
MB
7405 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
7406 registry doesn't specify encoding part.
7407 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
7408 (font_open_by_name): At first try parsing the name.
7409 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
7410 as Lisp symbols.
7411
7412 * fontset.c (reorder_font_vector): Pay attention to the case that
7413 the 3rd element of font_def is nil.
7414 (fontset_font): For the default fontset, append one more fontset
7415 elements for a script-based font specification. Don't add script
7416 attribute on finding a font.
7417 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
7418 font name.
7419 (fontset_ascii_font): If a font can't be opened, return nil.
7420
1f45f627 7421 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
aca7a3d2
MB
7422 (ftfont_pattern_entity): New function.
7423 (ftfont_get_cache): Assume that freetype_font_cache is already
7424 initialized.
7425 (ftfont_list): Handle the case that a file is specified in font
7426 name. Use ftfont_pattern_entity to generate entities.
7427 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
7428 (syms_of_ftfont): Initialize freetype_font_cache.
7429
7430 * xftfont.c (xftfont_open): Make the font name fontconfig's
7431 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
7432 (xftfont_close): Free font->font.name if not NULL.
7433
7434 * xfont.c (xfont_list): If script is specified for a font, return
7435 null_vector.
7436 (xfont_list_family): Declare argument type.
7437
7438 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
7439 name, set LFACE_FONT (lface) to nil.
7440
7441 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
7442 return Qnil.
7443
73acf815 74442008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7445
1f45f627 7446 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
aca7a3d2
MB
7447 (standard_args): Add "-enable-font-backend".
7448
73acf815 74492008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7450
7451 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
7452 (struct xftdraw_list, xftdraw_list): Delete them.
7453 (register_xftdraw, check_xftdraw): Delete them.
7454 (xftfont_prepare_face): Don't call register_xftdraw.
7455 (xftfont_done_face): Don't call check_xftdraw.
7456 (xftfont_draw): Get backroudn color only when with_background is
7457 nonzero.
7458
7459 * xfont.c (xfont_encode_char): Fix calculation of char2b.
7460
73acf815 74612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7462
7463 These changes are for the new font handling codes.
7464
7465 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
7466 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
7467 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
7468 (FONTSRC, FONTOBJ): New variables.
7469 (obj): Add $(FONTOBJ).
7470 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
7471 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
7472 @LIBOTF_LIBS@.
7473 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
1f45f627 7474 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
aca7a3d2 7475
1f45f627 7476 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
aca7a3d2
MB
7477
7478 * character.h (Vscript_representative_chars): Extern it.
7479
7480 * character.c (Vscript_representative_chars): New variable.
7481 (syms_of_character): Declare it as a Lisp variable.
7482
7483 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
7484 enable_font_backend is nonzero, accept the composition method
7485 COMPOSITION_WITH_GLYPH_STRING.
7486
7487 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
7488 enumeration COMPOSITION_WITH_GLYPH_STRING.
7489
aca7a3d2
MB
7490 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
7491 members clip_x, clip_y, clip_width, and clip_height.
7492 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
7493
7494 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
7495 --enable-font-backend. Call syms_of_font.
7496
7497 * fns.c (assoc_no_quit): New function.
7498
7499 * fontset.h (FONT_INFO_FROM_FACE): New macro.
7500 (face_for_font, new_fontset_from_font)
7501 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
7502
7503 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
7504 (fontset_font, fontset_ascii, face_for_char)
7505 (make_fontset_for_ascii_face, Ffont_info)
7506 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
7507 is nonzero, use font-backend mechanism.
7508 (find_font_encoding): Make it non-static.
7509 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
7510 New functions.
7511
7512 * frame.h (struct frame): New members resx and resy.
7513 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
7514 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
7515
7516 * frame.c [USE_FONT_BACKEND]: Include "font.h".
1f45f627 7517 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
aca7a3d2
MB
7518
7519 * lisp.h (assoc_no_quit): Extern it.
7520
7521 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
7522 Through out the file, use FONT_INFO_FROM_FACE instead of
7523 FONT_INFO_FROM_ID, use get_per_char_metric instead of
7524 rif->per_char_metric.
7525 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
7526 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
7527 (get_glyph_face_and_encoding, fill_composite_glyph_string)
7528 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
7529 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
7530 nonzero, use font-backend mechanism.
7531 (get_per_char_metric): New function.
7532
7533 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
7534 (set_lface_from_font_name)
7535 (set_font_frame_param, free_realized_face)
7536 (prepare_face_for_display, clear_face_gcs)
7537 (Finternal_set_font_selection_order, realize_x_face)
7538 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
7539 font-backend mechanism.
1f45f627 7540 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
aca7a3d2
MB
7541 (load_face_font) [USE_FONT_BACKEND]: Abort.
7542 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
1f45f627 7543 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
aca7a3d2
MB
7544
7545 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
7546 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
7547 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
7548 nonzero, register all available font drivers. Call
7549 x_default_font_parameter for deciding a font.
7550 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
7551
7552 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
7553 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
7554 (x_set_glyph_string_clipping_exactly)
7555 (x_compute_glyph_string_overhangs)
7556 (x_draw_glyph_string_foreground)
7557 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
7558 (x_free_frame_resources) [USE_FONT_BACKEND]: If
7559 enable_font_backend is nonzero, use font-backend mechanism.
7560 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
7561
73acf815 75622008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7563
fcb314b2 7564 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
aca7a3d2
MB
7565 system_eol_type.
7566 (syms_of_coding): Initialize system_eol_type.
7567
fcb314b2
GM
7568 * process.c (Fset_process_coding_system): Inherit system's eol
7569 format if necessary.
aca7a3d2 7570
73acf815 75712008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
7572
7573 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
7574
73acf815 75752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7576
7577 * coding.c (decode_eol): Pay attention to buffer relocation in
7578 del_range_2.
7579 (decode_coding): Call decode_eol before restoring undo_list.
7580
73acf815 75812008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7582
7583 * charset.c (Fdefine_charset_internal): Fix setting of
7584 emacs_mule_bytes.
7585
73acf815 75862008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7587
7588 * keyboard.c (read_char): Check if C is a character or not before
7589 looking up Vkeyboard_translate_table.
7590
73acf815 75912008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7592
7593 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
7594 condition to terminate the loop.
7595
73acf815 75962008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7597
7598 * coding.c (produce_composition): Compare charbuf[i] instead of
7599 args[i] against 0.
7600 (Fterminal_coding_system): Use EQ to compare Lisp objects.
7601
73acf815 76022008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7603
7604 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
7605 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
7606 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
7607 detect_coding.
7608 (emacs_mule_char): Handle old style (Emacs 20) component character
7609 of a composition.
4c4475a8
GM
7610 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
7611 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
7612 composition rule.
aca7a3d2
MB
7613 (decode_coding_emacs_mule): Handle invalid bytes correctly.
7614
73acf815 76152008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7616
7617 * coding.c (encode_coding_ccl): Allocate destination dynamically
7618 when necessary.
7619
73acf815 76202008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7621
7622 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
7623 the loop. When quitted, show a proper error message.
7624
73acf815 76252008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7626
aca7a3d2
MB
7627 * xterm.c (x_set_glyph_string_clipping_exactly): Set
7628 src->clip_head and src->clip_tail temporarily instead of src->hl.
7629
7630 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
7631 character sequence.
7632 (Fccl_execute_on_string): Use ASET, not XSET.
7633
73acf815 76342008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7635
1f45f627 7636 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
aca7a3d2 7637
73acf815 76382008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7639
7640 * coding.c (decode_coding): Fix the condition of terminating the
7641 decoding loop.
7642
73acf815 76432008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7644
7645 * data.c (Faset): On setting a character bigger than 255 in a
1f45f627 7646 unibyte string, signal an error instead of make the string multibyte.
aca7a3d2 7647
73acf815 76482008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7649
7650 * charset.c (map_charset_chars): Fix for ascii-compatible charset
7651 made by a mapping table.
7652
73acf815 76532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7654
7655 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
7656 not.
7657 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
7658 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
7659
7660 * xterm.c (x_draw_composite_glyph_string_foreground): Check
7661 s->face is NULL or not.
7662
73acf815 76632008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7664
7665 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
7666 (x_draw_glyph_string): Fix drawing of right_overhang and
7667 left_overhang around/on cursor.
7668
1f45f627 7669 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
aca7a3d2 7670
73acf815 76712008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7672
7673 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
7674
73acf815 76752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7676
4c4475a8
GM
7677 * coding.c (Fdefine_coding_system_internal)
7678 (Fdefine_coding_system_alias): Avoid a duplicated element in
7679 Vcoding_system_alist.
aca7a3d2 7680
73acf815 76812008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7682
7683 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
7684
fcb314b2 7685 * coding.c (Qcoding_system_define_form): New variable.
aca7a3d2
MB
7686 (syms_of_coding): Intern and staticpro it.
7687 (Fcoding_system_p): Check Qcoding_system_define_form.
1f45f627 7688 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
aca7a3d2
MB
7689
7690 * coding.h (CODING_SYSTEM_P): If ID is not available, call
7691 Fcoding_system_p.
7692 (CHECK_CODING_SYSTEM): If ID is not available, call
7693 Fcheck_coding_system.
4c4475a8
GM
7694 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
7695 Try also Fcheck_coding_system.
aca7a3d2 7696
73acf815 76972008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7698
aca7a3d2
MB
7699 * coding.c (code_conversion_restore): GCPRO arg.
7700
73acf815 77012008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7702
7703 * character.c (lisp_string_width): Check multibyteness of STRING.
7704
73acf815 77052008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
7706
7707 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
7708 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
7709 (decode_mac_font_name): Use decode_coding_c_string instead of
7710 decode_coding.
7711 (x_load_font): Initialize fontp->fontset to -1. Set
7712 fontp->encoding_type.
7713
73acf815 77142008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7715
7716 * search.c (search_buffer): Give up BM search on case-fold-search
7717 if one of a target character has a case-equivalence of different
7718 byte length even if that target charcter is an ASCII.
1f45f627
GM
7719 (simple_search): Fix calculation of byte length of matched text.
7720 (boyer_moore): Fix handling of case-equivalent multibyte characters.
aca7a3d2 7721
73acf815 77222008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7723
7724 * coding.c (decode_coding): Fix handling of invalid bytes.
7725
73acf815 77262008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7727
7728 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
7729 Unicode characters.
7730
73acf815 77312008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7732
7733 * coding.c (encode_coding_object): If a pre-write-conversion
7734 function makes a new buffer, kill it.
7735
73acf815 77362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7737
7738 * coding.c (QCascii_compatible_p): New variable.
7739 (syms_of_coding): Initialize it.
4c4475a8
GM
7740 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
7741 calling string_char.
aca7a3d2
MB
7742 (record_conversion_result): Add `default:' case.
7743 (coding_charset_list): Delete unused variable `coding_type'.
7744 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
7745 property in the plist of the coding system.
7746 (Fcoding_system_put): Check QCascii_compatible_p.
7747
73acf815 77482008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
7749
7750 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
7751 removed calculation of frame `f', as it's now used.
7752
73acf815 77532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7754
1f45f627 7755 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
aca7a3d2
MB
7756 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
7757 (UNIDATA): New variable.
7758 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
7759 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
7760 $(RUN_TEMACS) unconditionally.
7761
73acf815 77622008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7763
1f45f627 7764 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
aca7a3d2
MB
7765 (admindir): New variable.
7766 ($(lispsource)international/charprop.el): New target.
7767
73acf815 77682008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2 7769
1f45f627 7770 * character.c (chars-in-region): Remove obsolete function.
aca7a3d2
MB
7771 (syms_of_character): Remove its initialization.
7772
73acf815 77732008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
aca7a3d2
MB
7774
7775 * w32select.c (validate_coding_system)
7776 (setup_windows_coding_system): New functions.
7777 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
7778 setup_windows_coding_system.
7779 (setup_config, Fw32_get_clipboard_data): Use
7780 validate_coding_system.
7781 (Fx_selection_exists): Move call to setup_config to a place
1f45f627 7782 where signals are allowed.
aca7a3d2
MB
7783
7784 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
7785 (Fcheck_coding_system): Add declarations.
7786
73acf815 77872008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7788
1f45f627 7789 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
aca7a3d2 7790
73acf815 77912008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
7792
7793 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
7794 string as the second argument for x_new_fontset.
7795
73acf815 77962008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7797
7798 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
7799 (encode_coding_object): Use safe_call instead of call2.
7800
73acf815 78012008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7802
1f45f627 7803 * fontset.c (Fset_fontset_font): Check family element of a given vector.
aca7a3d2
MB
7804
7805 * Makefile.in (lisp): Include charprop.el.
7806
73acf815 78072008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
7808
7809 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
7810 Not sure if it's unnecessary.
7811
73acf815 78122008-02-01 Steven Tamm <steventamm@mac.com>
aca7a3d2
MB
7813
7814 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
7815 some possibly unnecessary fontset checking code that crashed
1f45f627 7816 when creating a new frame.
aca7a3d2 7817
73acf815 78182008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7819
7820 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
7821 lookup_face.
7822
7823 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
7824
1f45f627 7825 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
aca7a3d2 7826
73acf815 78272008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7828
73acf815 7829 * coding.c: Cancel the change done in HEAD on 2008-02-01.
aca7a3d2
MB
7830 (coding_charset_list): New function.
7831
7832 * coding.h (coding_charset_list): Extern it.
7833
73acf815 78342008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7835
7836 * fontset.c (Fset_fontset_font): Call find_font_encoding with
7837 concatenation of family and registry.
7838
73acf815 78392008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7840
7841 * character.h (BYTE8_STRING): Fix typo.
7842
7843 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
7844 string to multibyte (sync to HEAD).
7845
7846 * casefiddle.c (casify_region): Handle changes in byte-length
7847 using replace_range_2 (sync to HEAD).
7848
73acf815 78492008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
7850
7851 * chartab.c (map_char_table): GCPRO table and arg.
7852
73acf815 78532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7854
7855 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
7856 already at limit.
7857
73acf815 78582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7859
7860 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
7861 instead of fast_c_string_match_ignore_case.
1f45f627 7862 (find_font_encoding): Change argument to Lisp_Object. Use
aca7a3d2 7863 fast_string_match_ignore_case instead of
1f45f627 7864 fast_c_string_match_ignore_case. Change caller.
aca7a3d2 7865
73acf815 78662008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7867
7868 * xdisp.c (get_next_display_element): In unibyte case, decide to
7869 display in octal form by checking a chacter by
7870 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
7871
1f45f627 7872 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
aca7a3d2
MB
7873
7874 * character.c (unibyte_has_multibyte_table): New variable.
7875
7876 * character.h (unibyte_has_multibyte_table): Extern it.
7877 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
7878
73acf815 78792008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7880
7881 * coding.c (encode_coding_iso_2022): Fix handling of charset
7882 annotation.
7883
73acf815 78842008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7885
7886 * coding.c (setup_coding_system): If coding_system is nil, use
7887 Qundecided.
7888 (Fterminal_coding_system): Return nil if terminal coding system is
7889 `undecided'.
7890 (syms_of_coding): Define coding-system `undecided' here. Setup
7891 terminal_coding as `undecided'.
7892
73acf815 78932008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7894
7895 * xdisp.c (message_dolog, set_message_1): Call
7896 unibyte_char_to_multibyte with arg type int.
7897
aca7a3d2
MB
7898 * lread.c (read1): Fix reading of a char-table.
7899
7900 * print.c (print_object): Include sub char-table in cicularities
7901 detection.
7902
73acf815 79032008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7904
7905 * keymap.c (where_is_internal_2): Fix for the case that KEY is a
1f45f627 7906 cons. Append the found sequences in car of ARGS instead of prepending.
aca7a3d2 7907
73acf815 79082008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7909
7910 * fileio.c (report_file_error): Make a unibyte string from
7911 strerror (errorno).
7912 (Fsubstitute_in_file_name): Fix the arg to
7913 unibyte_char_to_multibyte. It is evaluated twice.
7914
73acf815 79152008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7916
7917 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
7918
73acf815 79192008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7920
7921 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
7922 BOM is not found.
4c4475a8
GM
7923 (detect_coding, detect_coding_system): Optimization for ISO-2022
7924 when no 8-bit data is found.
aca7a3d2 7925
73acf815 79262008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7927
7928 * w32fns.c (x_to_w32_font): Update to use new coding struct.
7929
73acf815 79302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7931
4c4475a8
GM
7932 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
7933 CHARS.
aca7a3d2 7934
73acf815 79352008-02-01 Steven Tamm <steventamm@mac.com>
aca7a3d2
MB
7936
7937 * macterm.c (mac_encode_char): Add charset argument and update
7938 to use encoding_type.
2a2e8de7 7939 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
1f45f627
GM
7940 switch to pure fontset.
7941 (decode_mac_font_name): Temporarily remove decoding.
7942 (x_font_name_to_mac_font_name): Temporarily remove encoding.
7943 (x_load_font): Temporarily remove encoding.
aca7a3d2 7944
73acf815 79452008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7946
7947 * xfaces.c (Fface_font): If frame is not on a window system,
7948 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
7949 refer to face->font.
7950 (split_font_name_into_vector, build_font_name_from_vector)
7951 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
7952 whne HAVE_WINDOW_SYSTEM is defined.
7953
73acf815 79542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7955
7956 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
7957 (x_produce_glyphs): Fix setting of members of cmp in case
1f45f627 7958 cmp->glyph_len is zero.
aca7a3d2 7959
1f45f627 7960 * fontset.c (Fset_fontset_font): Fix docstring.
aca7a3d2
MB
7961 (Ffontset_info): Make it backward compatible. New arg ALL.
7962
73acf815 79632008-02-01 Kim F. Storm <storm@cua.dk>
aca7a3d2
MB
7964
7965 * process.c (read_process_output): Grow decoding_buf when needed;
7966 this could cause a crash in allocate_string and compact_small_strings.
7967
73acf815 79682008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7969
1f45f627 7970 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
aca7a3d2 7971
73acf815 79722008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7973
7974 * coding.c (setup_coding_system): Set coding->common_flags
7975 correctly for raw-text.
7976 (consume_chars): On encoding unibyte text by raw-text, don't check
7977 multibyte form.
1f45f627 7978 (encode_coding): On encoding by raw-text, never use translation tables.
aca7a3d2
MB
7979
7980 * fileio.c (e_write): Short cut for the case of no encoding.
7981
73acf815 79822008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7983
4c4475a8
GM
7984 * coding.c (detect_coding, detect_coding_system): Delete unused
7985 variables.
aca7a3d2 7986
73acf815 79872008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7988
7989 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
7990 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
7991
73acf815 79922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7993
7994 * coding.c (Ffind_coding_systems_region_internal): Include
7995 raw-text and no-conversion in the result.
7996
73acf815 79972008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7998
1f45f627 7999 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
aca7a3d2
MB
8000 (load_font_get_repertory): Delete unnecessary check of ENCODING of
8001 FONT_DEF.
8002 (font_def_arg, add_arg, from_arg, to_arg): New args.
1f45f627 8003 (set_fontset_font): Change argument.
aca7a3d2
MB
8004 (Fset_fontset_font): Fix for the case that TARGET is a script
8005 name and charset name.
8006 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
8007
73acf815 80082008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8009
1f45f627
GM
8010 * fontset.c (fontset_font): Rename from fontset_face. Change return
8011 value.
4c4475a8
GM
8012 (face_suitable_for_char_p, face_for_char): Adjust for the change
8013 of fontset_font.
aca7a3d2
MB
8014 (make_fontset_for_ascii_face): Fix setting of the fontset element
8015 for ASCII.
8016 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
8017 to get a font name.
1f45f627 8018 (Ffontset_info): Adjust for the change of fontset_font.
aca7a3d2 8019
fcb314b2 8020 * coding.c (emacs_mule_char): Check invalid code more regidly.
aca7a3d2
MB
8021
8022 * character.h (LEADING_CODE_LATIN_1_MIN)
8023 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
8024
73acf815 80252008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8026
fcb314b2 8027 * editfns.c (check_translation): New function.
aca7a3d2
MB
8028 (Ftranslate_region_internal): Handle M:N mapping.
8029
73acf815 80302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8031
8032 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
8033
73acf815 80342008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8035
8036 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
8037 goto invalid_code.
8038 (decode_coding_iso_2022): Fix handling of invalid designation.
8039
8040 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
8041 after calling code_conversion_save.
8042
73acf815 80432008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8044
8045 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
8046
8047 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
8048
8049 * fontset.c: Include "intervals.h".
8050 (fontset_face): Fix comparing of Lisp_Objects.
4c4475a8
GM
8051 (free_face_fontset, new_fontset_from_font_name): Fix
8052 Lisp_Object/int mixup.
aca7a3d2
MB
8053
8054 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
8055
8056 * coding.c: Add many prototypes for static functions.
8057 (get_translation_table): Allow max_lookup to be NULL.
2a2e8de7 8058 (decode_coding, Ffind_coding_systems_region_internal)
4c4475a8
GM
8059 (Funencodable_char_position, Fcheck_coding_systems_region): Call
8060 get_translation_table with max_lookup NULL.
aca7a3d2 8061
73acf815 80622008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8063
8064 * coding.c (get_translation_table): Declare it as Lisp_Object.
8065 (LOOKUP_TRANSLATION_TABLE): New macro.
4c4475a8
GM
8066 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
8067 instead of CHAR_TABLE_REF.
aca7a3d2 8068
73acf815 80692008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8070
1f45f627 8071 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
aca7a3d2
MB
8072 annotation data format.
8073 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
1f45f627 8074 Change arguments FROM and TO to single argument NCHARS. Change caller.
4c4475a8 8075 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
aca7a3d2 8076 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4c4475a8
GM
8077 (decode_coding_ccl, decode_coding_charset): Pay attention to
8078 coding->charbuf_used.
aca7a3d2
MB
8079 (get_translation): New function.
8080 (produce_chars): New arguments translation_table and last_block.
8081 Translate characters here. Return number of carryover chars.
1f45f627
GM
8082 Change caller.
8083 (produce_composition): New argument pos. Change caller.
8084 Adjust for the change of annotation data format.
aca7a3d2
MB
8085 (produce_charset, produce_annotation): Likewise.
8086 (decode_coding, encode_coding): Don't call translate_chars.
1f45f627
GM
8087 (consume_chars): New arg translation_table. Change caller.
8088 (translate_chars): Delete.
8089 (syms_of_coding): Make translation-table's number of extra slots 2.
aca7a3d2 8090
73acf815 80912008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8092
8093 * search.c (simple_search): Fix setting this_pos_byte in backward
8094 search.
8095
8096 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
8097 byte sequence.
8098 (detect_coding_ccl): Fix setting of the variable valids.
8099
73acf815 81002008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8101
8102 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
8103
8104 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
8105
1f45f627 8106 * editfns.c (Ftranslate_region_internal): Rename from
aca7a3d2
MB
8107 Ftranslate_region. Accept a char-table in TABLE.
8108 (syms_of_editfns): Defsubr Stranslate_region_internal.
8109
8110 * xfaces.c (set_lface_from_font_name): If a font is specified for
8111 a frame, generate a fontset from the font.
8112 (build_scalable_font_name): If the scalable font is requested for
8113 a specific size, don't change that size.
8114 (try_font_list): Try a scalable font also in the case that a
1f45f627 8115 pattern string is specified.
aca7a3d2 8116
73acf815 81172008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8118
8119 * xfaces.c (Fface_font): New optional arg CHARACTER.
8120
73acf815 81212008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8122
8123 * charset.h (CHARSET_OFFSET): New macro.
8124
73acf815 81252008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8126
8127 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
8128
8129 * fontset.c (fontset_face): Handle the case that repertory is a
8130 char-table.
8131 (find_font_encoding): Return nil for unknown encoding.
8132 (Fset_fontset_font): Ignore a font of unknown encoding.
8133
73acf815 81342008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8135
1f45f627 8136 * keymap.c (describe_vector): Handle default value of a char table.
aca7a3d2
MB
8137
8138 * fontset.c (fontset_face): Handle fallback fonts correctly.
8139 (Ffontset_info): Return infomation about fallback fonts.
8140
73acf815 81412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8142
8143 * fontset.c (FONTSET_DEFAULT): New macro.
4c4475a8 8144 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
aca7a3d2
MB
8145 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
8146 the case that it is nil.
8147 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
1f45f627 8148 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
aca7a3d2
MB
8149
8150 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
8151 subset or superset.
8152
73acf815 81532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8154
8155 * emacs.c (main): Call init_charset after syms_of_XXX.
8156
1f45f627 8157 * charset.c (Vcharset_map_directory): Delete.
1f204af3 8158 (Vcharset_map_path): New variable.
aca7a3d2
MB
8159 (load_charset_map_from_file): Use Vcharset_map_path instead.
8160 (init_charset): Initialize Vcharset_map_path.
8161 (syms_of_charset): Delete declaration of "charset-map-directory",
8162 add declaration of "charset-map-path".
8163
73acf815 81642008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8165
4c4475a8
GM
8166 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
8167 ASCII only string.
aca7a3d2
MB
8168
8169 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
8170
8171 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
6f69e89b 8172 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
aca7a3d2 8173
73acf815 81742008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8175
8176 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
8177
8178 * coding.c (QCmnemonic, QCdefalut_char)
8179 (QCdecode_translation_table, QCencode_translation_table)
8180 (QCpost_read_conversion, QCpre_write_conversion): New variables.
8181 (get_translation_table): Return a list of translation tables if
8182 necessary.
8183 (decode_coding): Call get_translation_table with ENCODEP 0.
8184 (char_encodable_p): If translation_table is non-nil, always call
8185 translate_char.
8186 (Fdefine_coding_system_internal): Accept list of translation
8187 tables as :encode-translation-table and :decode-translation-table.
8188 (Fcoding_system_put): New function.
8189 (syms_of_coding): Declare new symbols. Defsubr
8190 Scoding_system_put.
4c4475a8
GM
8191 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
8192 typically JISX0212.
aca7a3d2
MB
8193
8194 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
8195 when the charset is superset type.
8196
8197 * character.c (translate_char): Accept list of translation tables.
8198
73acf815 81992008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8200
1f45f627 8201 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
aca7a3d2
MB
8202 (CODING_ATTR_TRANS_TBL): New macro.
8203
8204 * coding.c (get_translation_table): New function.
8205 (translate_chars): Fix the bug of skipping annotation data.
4c4475a8
GM
8206 (decode_coding, encode_coding): Utilize get_translation_table.
8207 (char_encodable_p, Funencodable_char_position): Translate char if
8208 necessary.
8209 (Ffind_coding_systems_region_internal)
8210 (Fcheck_coding_systems_region): Setup translation table for encode
8211 in a coding system attribute vector in advance.
aca7a3d2
MB
8212 (Fdefine_coding_system_internal): Allow a symbol as translation
8213 table. For shift-jis type coding system, allow 4th charset.
8214
73acf815 82152008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8216
8217 * coding.c (decode_coding_sjis): Check the first byte rigidly.
8218
8219 * xdisp.c (get_next_display_element): Pass -1 as POS to
8220 FACE_FOR_CHAR if displaying a C-string.
8221
73acf815 82222008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8223
8224 * composite.c (get_composition_id): Handle xoff and yoff in a
8225 composition rule.
8226
8227 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
8228 (struct composition): New member lbearing and rbearing.
8229
8230 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
8231 (x_get_glyph_overhangs): Handle a composition glyph.
1f45f627 8232 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
aca7a3d2
MB
8233
8234 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
8235 composition glyph.
8236
73acf815 82372008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8238
8239 * print.c: Include charset.h.
8240 (Vprint_charset_text_property): New variable.
8241 (Qdefault): Extern it.
8242 (PRINT_STRING_NON_CHARSET_FOUND)
8243 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
8244 (print_check_string_result): New variable.
8245 (print_check_string_charset_prop): New function.
8246 (print_prune_charset_plist): New variable.
8247 (print_prune_string_charset): New function.
8248 (print_object): Call print_prune_string_charset if
8249 Vprint_charset_text_property is not t.
8250 (print_interval): Print nothing if itnerval->plist is nil.
8251 (syms_of_print): Declare Vprint_charset_text_property as a lisp
8252 variable. Init and staticpro print_prune_charset_plist.
8253
73acf815 82542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8255
8256 * fontset.c (new_fontset_from_font_name): Use the specified font
8257 for all characters in the new fontset.
8258
8259 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
8260 OBJECT args.
8261
8262 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
8263 OBJECT args for composition too.
8264
8265 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
8266 OBJECT args.
8267
73acf815 82682008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8269
8270 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
8271
1f45f627 8272 * fontset.c (reorder_font_vector): Adjust for the change of
aca7a3d2 8273 FONT_DEF format.
1f45f627 8274 (fontset_face): New arg id. Change caller.
aca7a3d2 8275 (face_for_char): New args pos and object.
1f204af3 8276 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
aca7a3d2
MB
8277 (fs_query_fontset): Check NAME by Fassoc too.
8278 (Fset_fontset_font): Allow non-XLFD font name.
1f45f627 8279 (Ffontset_info): Adjust for the change of FONT_DEF format.
aca7a3d2 8280
1f45f627 8281 * fontset.h (face_for_char): Adjust prototype.
aca7a3d2 8282
4c4475a8
GM
8283 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
8284 (append_space, extend_face_to_end_of_line)
8285 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
8286 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
aca7a3d2
MB
8287
8288 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
8289 POS and OBJECT args.
8290
8291 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
8292 POS and OBJECT args.
8293
73acf815 82942008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
8295
8296 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
8297 of GlobalAlloc'ed memory.
8298
73acf815 82992008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8300
8301 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
8302
8303 * charset.h (charset_table_used): Delete extern.
8304
8305 * charset.c (charset_table_used): Make it static.
8306 (map_charset_chars): Fix args to c_function with.
8307
8308 * chartab.c (map_sub_char_table_for_charset): Fix args to
8309 c_function with.
8310
8311 * coding.h (enum coding_result_code): Delete
8312 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
8313
8314 * coding.c (Qinsufficient_source, Qinconsistent_eol)
1f45f627 8315 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
aca7a3d2
MB
8316 (Vlast_code_conversion_error): New variables.
8317 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
8318 (ONE_MORE_BYTE): Record error if any instead of signaling an
8319 error. If non-ASCII multibyte char is found, return the negative
8320 value of the code. All callers changed to check it.
8321 (ONE_MORE_BYTE_NO_CHECK): Likewise.
1f45f627
GM
8322 (record_conversion_result): New function. Change all codes setting
8323 coding->result to call this function.
4c4475a8
GM
8324 (detect_coding_utf_8, decode_coding_utf_8)
8325 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
8326 Don't use the local variable incomplete.
aca7a3d2 8327 (emacs_mule_char): Change the second arg to `const'.
aca7a3d2
MB
8328 (decode_coding): Fix of flushing out unprocessed data.
8329 (make_conversion_work_buffer): Fix making of a work buffer.
2a2e8de7 8330 (decode_coding_object): Return coding->dst_object.
aca7a3d2
MB
8331
8332 * fontset.c (set_fontset_font): Fix args.
8333
8334 * lisp.h (CHARACTERBITS): Define as 22.
8335
8336 * process.c (send_process): Be sure to set coding->src_multibyte.
8337
8338 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
8339
73acf815 83402008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8341
8342 * xdisp.c (handle_auto_composed_prop): Give limit to
8343 Fnext_single_char_property_change.
8344
73acf815 83452008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8346
424c157f 8347 * composite.c (syms_of_composite): Don't make the composition hash
1f45f627 8348 table weak.
aca7a3d2
MB
8349
8350 * fontset.c (Fset_fontset_font): Fix docstring.
8351
8352 * lisp.h (detect_coding_system): Adjust prototype.
8353
8354 * fileio.c (kill_workbuf_unwind): Delete this function.
8355 (Finsert_file_contents): Adjust the call of detect_coding_system.
8356 Get conversion_buffer by code_conversion_save. Use the macor
8357 CODING_MAY_REQUIRE_DECODING. After decoding, update
8358 coding_system.
8359
8360 * coding.h (make_conversion_work_buffer): Delete extern.
8361 (code_conversion_save): Extern it.
8362
8363 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
1f45f627 8364 (CODING_GET_INFO): Delete argument eol_type. Change callers.
aca7a3d2
MB
8365 (decode_coding_utf_8): Don't do eol converion.
8366 (detect_coding_utf_16): Check coding->src_chars, not
1f45f627 8367 coding->src_bytes. Add heuristics for those that have no signature.
4c4475a8
GM
8368 (decode_coding_emacs_mule, decode_coding_iso_2022)
8369 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
8370 Don't do eol converion.
aca7a3d2
MB
8371 (adjust_coding_eol_type): Return a new coding system.
8372 (detect_coding): Don't detect eol. Fix for utf-16 detection.
8373 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
8374 each change.
8375 (decode_coding): Pay attention to undo_list. Do eol convesion for
8376 all types of coding-systems (if necessary).
8377 (Vcode_conversion_work_buf_list): Delete it.
1f45f627 8378 (Vcode_conversion_reused_workbuf): Rename from
aca7a3d2
MB
8379 Vcode_conversion_reused_work_buf.
8380 (Vcode_conversion_workbuf_name): New variable.
8381 (reused_workbuf_in_use): New variable.
8382 (make_conversion_work_buffer): Delete the arg DEPTH.
4c4475a8 8383 (code_conversion_restore): Change argument to cons.
1f45f627
GM
8384 (code_conversion_save): Delete the argument BUFFER. Change callers.
8385 (detect_coding_system): New argument src_chars. Change callers.
aca7a3d2
MB
8386 Fix for utf-16 detection.
8387 (init_coding_once): Don't use ISO_carriage_return.
1f45f627 8388 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
aca7a3d2
MB
8389 reused_workbuf_in_use.
8390
73acf815 83912008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8392
8393 * keymap.c (store_in_keymap): Pay attention to the case that idx
8394 is a cons specifying a character range.
8395
73acf815 83962008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8397
8398 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
8399 HANDLED_RECOMPUTE_PROPS.
8400
8401 * coding.c (Fdefine_coding_system_internal): Fix checking of
8402 ascii compatibility.
8403
73acf815 84042008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8405
1f45f627 8406 * charset.c (find_charsets_in_text): Delete unused locale variable.
aca7a3d2
MB
8407 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
8408
8409 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
8410 Resync charset_list to Vemacs_mule_charset_list.
8411
8412 * keymap.c (store_in_keymap): Pay attention to the case that idx
8413 is a cons specifying a character range.
8414
73acf815 84152008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8416
8417 * composite.c (update_compositions): Bind inhibit-read-only, etc
8418 to t before calling remove-list-of-text-properties.
8419
8420 * print.c (print_object): Always print ASCII chars as is.
8421
73acf815 84222008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8423
1f45f627 8424 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
aca7a3d2 8425
4c4475a8
GM
8426 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
8427 is a char table.
aca7a3d2 8428
73acf815 84292008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8430
1f45f627 8431 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
aca7a3d2 8432
73acf815 84332008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8434
8435 * xfaces.c (set_lface_from_font_name): Fix for the case that
8436 FONTNAME is not fontset name.
8437
73acf815 84382008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8439
8440 * fns.c (base64_encode_1): Fix previous change.
8441
73acf815 84422008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8443
8444 * fontset.c (set_fontset_font): New function.
8445 (Fset_fontset_font): If a font is specified for a charset, use
8446 map_charset_chars to store the font spec in a fontset.
8447
73acf815 84482008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8449
1f204af3 8450 * fontset.c (fontset_face): Create a fallback fontset on demand.
aca7a3d2
MB
8451 (make_fontset): Don't create a fallback fontset here.
8452 (free_face_fontset): Free a fallback fontset (if any) too.
8453 (n_auto_fontsets): Delete this variable.
8454 (auto_fontset_alist): New variable.
8455 (new_fontset_from_font_name): Check auto_fontset_alist.
8456 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
8457 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
8458 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
8459 Defsubr Sfontset_list_all.
8460
73acf815 84612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8462
8463 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
8464
73acf815 84652008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8466
8467 * fontset.c (Fnew_fontset): Check NAME more rigidly.
8468
73acf815 84692008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8470
8471 * editfns.c (Fgoto_char): Fix docstring.
8472
73acf815 84732008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8474
8475 * insdel.c (insert_from_gap): Adjust intervals correctly.
8476
73acf815 84772008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
8478
8479 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
8480 (pfnGetFontUnicodeRanges): New dynamically loaded function.
8481 (w32_initialize): Try to load it.
8482 (x_get_font_repertory): Use it if available.
8483 (w32_encode_char): Add shortcut for unicode output.
8484
8485 * w32fns.c (w32_load_system_font): Default charset to -1.
8486 (x_to_w32_charset): Match all fonts for unicode.
1f45f627 8487 (w32_to_x_charset): New parameter matching. Don't return partial
aca7a3d2
MB
8488 or wildcard charsets.
8489 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
8490 (w32_codepage_for_font): Return CP_UNICODE for unicode.
8491 (w32_to_x_font): Match charset to real charset.
8492 (enum_font_cb2): Always list unicode versions.
8493
8494 * makefile.w32-in (temacs): Increase EMHEAP.
8495
73acf815 84962008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
8497
8498 * w32term.c (w32_encode_char): New charset parameter.
8499 font_info.encoding becomes encoding_type.
1f45f627 8500 (x_get_font_repertory): New function. Warning: stub only!
aca7a3d2
MB
8501 (x_new_font): Return quickly if font already set.
8502 (x_new_fontset): fontsetname parameter is Lisp_Object.
2a2e8de7
JB
8503 Use new fs_query_fontset. Try new_fontset_from_font_name.
8504 Use fontset_name for return value.
aca7a3d2
MB
8505
8506 * w32term.h: Declare x_get_font_repertory.
8507
8508 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
1f45f627 8509 place of find_charset_in_text. Use encode_coding_object in place
aca7a3d2
MB
8510 of encode_coding.
8511 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
8512 decode_coding.
8513
8514 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
8515 of x_new_fontset.
8516 (w32_load_system_font): Initialize charset as unicode.
8517 font_info.encoding becomes encoding_type.
1f45f627
GM
8518 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
8519 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
aca7a3d2
MB
8520 (syms_of_w32fns): Set get_font_repertory_func.
8521
1f45f627 8522 * w32console.c: Include character.h. Use terminal_encode_buffer
aca7a3d2 8523 from term.c.
1f45f627 8524 (write_glyphs): Use new version of encode_terminal_code. Use
aca7a3d2
MB
8525 encode_coding_object in place of encode_coding.
8526
8527 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
8528 encoding becomes encoding_type.
8529
8530 * term.c (terminal_encode_buffer): Make externally visible.
8531
8532 * makefile.w32-in: Add character.h dependancies.
8533 (character.o, chartab.o): New targets.
8534
73acf815 85352008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8536
8537 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
1f45f627 8538 CODING_ID_EOL_TYPE.
aca7a3d2 8539
73acf815 85402008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
8541
8542 * coding.c (produce_chars): Revert last change.
8543
73acf815 85442008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8545
8546 * charset.h (charset_unicode): Extern it.
8547
8548 * charset.c (string_xstring_p): Check by (C >= 0x100).
1f45f627 8549 (find_charsets_in_text): Change format of the arc CHARSETS. New
aca7a3d2 8550 arg MULTIBYTE.
1f45f627 8551 (Ffind_charset_region, Ffind_charset_string): Adjust for the
aca7a3d2
MB
8552 change of find_charsets_in_text.
8553 (Fsplit_char): Fix doc. Never return unknown.
8554
8555 * chartab.c (char_table_translate): Use CHARACTERP, not INETEGERP.
8556
8557 * coding.c (Fdefine_coding_system_alias): Update
8558 Vcoding_system_list.
8559
8560 * fontset.c (load_font_get_repertory): Pay attention to the case
8561 that ENCODING of a font is specified by a char-table.
8562
8563 * xterm.c (x_get_font_repertory): Handle the case that the
8564 encoding of font is other than Unicode.
8565
73acf815 85662008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8567
8568 * term.c (encode_terminal_code): Don't handle glyph-table. Check
8569 if a character is encodable by the terminal coding system. If
8570 not, produces proper number of `?'s. Update
8571 terminal_encode_buffer and terminal_encode_buf_size if necessary.
8572 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
8573
73acf815 85742008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8575
8576 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
8577 variables.
1f45f627 8578 (encode_terminal_code): Change argument. Encode multiple
aca7a3d2
MB
8579 characters at once. Store the result of encoding in
8580 terminal_encode_buffer.
4c4475a8
GM
8581 (write_glyphs, insert_glyphs): Adjust for the change of
8582 encode_terminal_code.
aca7a3d2
MB
8583 (term_init): Initialize terminal_encode_buffer and
8584 terminal_encode_buf_size.
8585
8586 * coding.c (consume_chars): If coding->src_object is nil, don't
8587 check annotation.
8588
73acf815 85892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8590
8591 * character.c (char_string): Use ASCII_CHAR_P instead of
8592 SINGLE_BYTE_CHAR_P.
8593
73acf815 85942008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8595
8596 * xdisp.c (handle_auto_composed_prop): Check if the last
8597 characters of auto-composed region is newly composed with the
8598 following characters.
8599 (handle_composition_prop): Fix checking of point being inside
8600 composition.
8601
73acf815 86022008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8603
8604 * fns.c (concat): Don't change multibyteness of the result by
8605 concatenating an 8-bit character.
8606
8607 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
8608 multibyteness of the result when newelt is an 8-bit character.
8609
73acf815 86102008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8611
8612 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
8613 EMACS_INT.
8614
8615 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
8616
8617 * xfaces.c (face_numeric_value): Declare dim size_t.
8618 (Finternal_lisp_face_equal_p): Remove unused f.
8619
8620 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
8621 (MATRIX_ROW): Remove unused vars.
8622 (draw_glyphs, x_insert_glyphs, fast_find_position)
8623 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
8624 byte/char counts.
8625
8626 * regex.c (regex_compile): Remove unused var.
8627
8628 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
8629
8630 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
8631 (Faccessible_keymaps, where_is_internal): Remove unused vars.
8632
8633 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
8634
8635 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
8636
8637 * fileio.c (Fwrite_region): Remove unused var.
8638
8639 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
8640 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
8641
8642 * composite.c (Fremove_list_of_text_properties): Declare.
8643
1f45f627
GM
8644 * coding.c (inhibit_pre_post_conversion): Remove (unused).
8645 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
aca7a3d2
MB
8646 (coding_inherit_eol_type): Remove unused attrs.
8647 (detect_coding): Cast arg of detect_eol.
8648
8649 * charset.c (syms_of_charset): Remove unused var p.
8650 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
8651 byte/char counts.
8652
8653 * casetab.c (set_case_table): Remove unused var.
8654
8655 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
1f45f627 8656 unused vars.
aca7a3d2 8657
73acf815 86582008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8659
8660 * xterm.c (x_bitmap_mask): Declare.
8661
73acf815 86622008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8663
8664 * xterm.c (x_term_init): Fix type error.
8665
8666 * lisp.h: Add Funibyte_char_to_multibyte.
8667
8668 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
8669 (Fset_coding_system_priority): Doc fix.
8670
aca7a3d2
MB
8671 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
8672
8673 * indent.c (check_composition): Make start and end EMACS_INT.
8674
8675 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
8676
8677 * xdisp.c (handle_composition_prop, check_point_in_composition):
8678 Make buffer positions EMACS_INT.
8679
8680 * composite.c (find_composition, run_composition_function)
8681 (update_compositions, Ffind_composition_internal): Make buffer
8682 positions EMACS_INT.
8683
8684 * composite.h (find_composition, update_compositions): Make
8685 position args EMACS_INT.
8686
1f45f627 8687 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
aca7a3d2
MB
8688
8689 * intervals.c (get_property_and_range):
8690 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
8691
8692 * unexalpha.c: Don't include varargs.h.
8693
73acf815 86942008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8695
8696 * coding.h (ENCODE_UTF_8): New.
8697
8698 * Makefile.in (gtkutil.o): Depend on coding.h.
8699
8700 * coding.c (Fset_coding_system_priority): Doc fix.
8701
73acf815 87022008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8703
8704 * fileio.c (Finsert_file_contents): Call setup_coding_system in
8705 the case of auto saving.
8706
73acf815 87072008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2 8708
4c4475a8
GM
8709 * chartab.c (map_char_table, map_char_table_for_charset): Protect
8710 `range' from GC.
aca7a3d2 8711
73acf815 87122008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8713
8714 * coding.c (decode_coding_sjis): Check bytes more rigidly.
8715
73acf815 87162008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8717
1f45f627 8718 * fileio.c (choose_write_coding_system): Return a decided coding system.
aca7a3d2
MB
8719 (Fwrite_region): Set Vlast_coding_system_used to the return value
8720 of choose_write_coding_system.
8721
73acf815 87222008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8723
8724 * charset.c (Fset_charset_priority): Pay attention to duplicated
8725 arguments.
8726
8727 * coding.c (QCcategory): New variable.
8728 (syms_of_coding): Defsym it. Set all elements of
8729 Vcoding_category_table and their symbol values.
8730 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
8731 coding-category-XXX, and coding-category-list.
8732 (Fdefine_coding_system_internal): Add category in the plist.
8733
73acf815 87342008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8735
8736 * callproc.c (Fcall_process): Handle carryover correctly.
8737
1f45f627 8738 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
aca7a3d2
MB
8739 (raw_text_coding_system): Check NILP (coding_system).
8740 (coding_inherit_eol_type): Check NILP (coding_system) and
8741 NILP (parent).
8742 (consume_chars): Fix for the case of raw-text.
8743
8744 * process.c (read_process_output): Handle carryover correctly.
8745
73acf815 87462008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8747
8748 * regex.c (re_search_2): Fix last change.
8749
73acf815 87502008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8751
8752 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
8753 target_multibyte. Even in a unibyte case, return a converted
8754 multibyte char.
8755 (GET_CHAR_AFTER): New macro.
8756 (PATFETCH): Translate via multibyte char.
8757 (HANDLE_UNIBYTE_RANGE): Delete this macro.
8758 (SETUP_MULTIBYTE_RANGE): New macro.
8759 (regex_compile): Setup compiled code so that its multibyteness
8760 matches that of a target. Fix the handling of "[X-YZ]" using
8761 SETUP_MULTIBYTE_RANGE.
8762 (analyse_first) <charset>: For filling fastmap for all multibyte
8763 characters, don't check by BASE_LEADING_CODE_P.
8764 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
8765 the same as RE_MULTIBYTE_P (bufp) now.
1f45f627 8766 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
aca7a3d2
MB
8767 (TARGET_CHAR_AND_LENGTH): Delete this macro.
8768 (TRANSLATE_VIA_MULTIBYTE): New macro.
8769 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
8770 It is the same as RE_MULTIBYTE_P (bufp) now.
8771 <exactn>: Translate via multibyte.
8772 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
8773 translate it.
8774 <charset, charset_not>: Fetch a character by
8775 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
8776 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
8777 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
8778 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
8779 by GET_CHAR_AFTER.
c5ad7a3d 8780 (bcmp_translate): Likewise.
aca7a3d2
MB
8781
8782 * search.c (compile_pattern): Check the member target_multibyte,
8783 not the member multibyte of buf.
8784
8785 * lread.c (read1): While reading a string, set force_singlebyte
8786 and force_multibyte correctly.
8787
4c4475a8
GM
8788 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
8789 up of unibyte_to_multibyte_table.
aca7a3d2 8790
73acf815 87912008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8792
8793 * coding.c (setup_coding_system): If coding has
8794 post-read-conversion or pre-write-conversion, set
8795 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
8796 respectively.
8797 (decode_coding_gap): Run post-read-conversion if any.
8798
8799 * fileio.c (Finsert_file_contents): Even if we read into a
8800 unibyte buffer, check if we must decode the result or not.
8801
73acf815 88022008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8803
8804 * coding.c (make_conversion_work_buffer): Change the work buffer
8805 name to the same one as that of Emacs 21.
8806
73acf815 88072008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8808
1f45f627 8809 * coding.h (make_conversion_work_buffer): Adjust prototype.
aca7a3d2
MB
8810 (code_conversion_restore): Don't extern it.
8811
8812 * coding.c (detected_mask): Delete unused variable.
8813 (decode_coding_iso_2022): Pay attention to the byte sequence of
8814 CTEXT extended segment, and retain those bytes as is.
8815 (decode_coding_ccl): Delete unused variable `valids'.
8816 (setup_coding_system): Delete unused variable `category'.
8817 (consume_chars): Delete unused variable `category'. Make it work
8818 for non-multibyte case.
1f45f627 8819 (make_conversion_work_buffer): Change argument.
aca7a3d2
MB
8820 (saved_coding): Delete unused variable.
8821 (code_conversion_restore): Don't check saved_coding->destination.
8822 (code_conversion_save): New function.
8823 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
8824 instead of record_unwind_protect.
1f45f627 8825 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
aca7a3d2 8826 (detect_coding_system): Delete unused variable `mask'.
1f45f627 8827 (Fdefine_coding_system_internal): Delete unused vaiable id.
aca7a3d2
MB
8828
8829 * fileio.c (kill_workbuf_unwind): New function.
8830 (Finsert_file_contents): On replacing, call
8831 make_conversion_work_buffer with correct args, and call
8832 record_unwind_protect with the first arg kill_workbuf_unwind.
8833
8834 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
8835
73acf815 88362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8837
1f45f627 8838 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
aca7a3d2
MB
8839 (fontset_add): Fix for the case that TO is less than TO1.
8840 (Ffontset_info): Don't use fallback fontset on checking the
8841 default fontset.
8842 (dump_fontset): New function for debugging.
8843
8844 * coding.c (Fdefine_coding_system_internal): Fix for the case that
8845 coding_type is Qcharset.
8846
73acf815 88472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8848
8849 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
8850 (map_char_table): Don't inherit the value from the parent on
1f45f627 8851 initializing VAL. Adjust for the above change.
aca7a3d2 8852
73acf815 88532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8854
8855 * coding.c (Qsignature, Qendian): Delete these variables.
8856 (syms_of_coding): Don't initialize them.
8857 (CATEGORY_MASK_UTF_16_AUTO): New macro.
8858 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
8859 detect_info->found.
8860 (decode_coding_utf_16): Don't detect BOM here.
8861 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
8862 is NOT utf_16_without_bom.
8863 (setup_coding_system): For a coding system of type utf-16, check
8864 if the attribute :endian is Qbig or not (not nil or not), and set
8865 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
8866 (detect_coding): If coding type is utf-16 and BOM detection is
8867 required, detect it.
8868 (Fdefine_coding_system_internal): For a coding system of type
1f45f627 8869 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
aca7a3d2 8870
73acf815 88712008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8872
8873 * coding.c (coding_set_source): Fix for the case that the current
8874 buffer is different from coding->src_object.
8875 (decode_coding_object): Don't use the conversion work buffer if
8876 DST_OBJECT is a buffer.
8877
73acf815 88782008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8879
8880 * lread.c (read_emacs_mule_char) [len==2]: Index
8881 emacs_mule_charset correctly.
8882
73acf815 88832008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8884
8885 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
8886 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
1f45f627 8887 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
aca7a3d2
MB
8888 treated specially.)
8889 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
8890 (detected_mask): Remove Big5 bits.
8891
73acf815 88922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8893
8894 The following changes are to make the font rescaling facility
8895 compatible with Emacs 21.
8896
1f45f627 8897 * xfaces.c (Vface_font_rescale_alist): Rename from
aca7a3d2
MB
8898 Vface_resizing_fonts.
8899 (struct font_name): Rename member resizing_ratio to rescale_ratio.
1f45f627 8900 (font_rescale_ratio): Rename from font_resizing_ratio.
aca7a3d2
MB
8901 (split_font_name): Set font->rescale_ratio.
8902 (better_font_p): Pay attention to font->rescale_ratio.
8903 (build_scalable_font_name): Likewise. Change RESX, and RESY
8904 fields.
1f45f627 8905 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
aca7a3d2 8906
73acf815 89072008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8908
8909 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
8910 (Qutf_16_le): Remove these variables.
8911 (syms_of_coding): Don't DEFSYM them.
8912 (decode_coding_utf_16): Fix handling of BOM.
8913 (encode_coding_utf_16): Fix handling of BOM.
8914
73acf815 89152008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8916
8917 * fileio.c (Finsert_file_contents): On replacing, before decoding
1f45f627 8918 the file into the work buffer, set point of the work buffer to the end.
aca7a3d2 8919
73acf815 89202008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8921
8922 * coding.c (Fcheck_coding_systems_region): Fix type errors.
8923
73acf815 89242008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8925
8926 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
8927 and fix C types.
8928
73acf815 89292008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8930
8931 * xdisp.c (SKIP_GLYPHS): New macro.
8932 (set_cursor_from_row): Pay attention to string display properties.
8933
8934 * category.c (copy_category_entry): Fix for the case that RANGE
8935 is an integer.
8936
8937 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
8938
1f45f627 8939 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
aca7a3d2 8940
73acf815 89412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8942
8943 * charset.c (Fcharset_id_internal): New function.
8944 (syms_of_charset): Defsubr it.
8945
8946 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
8947 with the last arg charset_list acquired from coding.
8948 (Fdefine_coding_system_internal): For ccl-based coding system, fix
8949 the attribute coding_attr_ccl_valids.
8950
8951 * coding.h (enum define_coding_ccl_arg_index): Set the first
8952 member coding_arg_ccl_decoder to coding_arg_max.
8953
1f45f627 8954 * ccl.h (ccl_driver): Adjust prototype.
aca7a3d2
MB
8955
8956 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
8957 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
8958 of DECODE_CAHR, ENCODE_CHAR, CHAR_CHARSET.
4c4475a8
GM
8959 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
8960 last arg Qnil.
aca7a3d2 8961
73acf815 89622008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8963
8964 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
8965 call encode_char.
8966
1f45f627 8967 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
aca7a3d2 8968
73acf815 89692008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 8970
1f45f627 8971 * composite.c (syms_of_composite): Make composition_hash_table weak.
aca7a3d2 8972
73acf815 89732008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8974
8975 * dispextern.h (check_face_attributes, generate_ascii_font_name)
8976 (font_name_registry): Don't extern them.
1f45f627 8977 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
aca7a3d2
MB
8978
8979 * fontset.h (Qfontset): Don't extern it.
8980 (new_fontset_from_font_name): Extern it.
8981
8982 * fontset.c: Give 8 extra slots to fontset objects.
8983 (Qfontset_info): New variable.
8984 (syms_of_fontset): Defsym it.
8985 (FONTSET_FALLBACK): New macro.
8986 (fontset_face): Try also the default fontset.
1f45f627
GM
8987 (make_fontset): Realize a fallback fontset from the default fontset.
8988 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
aca7a3d2
MB
8989 using split_font_name_into_vector and build_font_name_from_vector.
8990 (Fset_fontset_font): Access the elements of font_spec by enum
8991 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
8992 name by using split_font_name_into_vector.
8993 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
8994 generate a proper font name from the fontset name. Update
8995 Vfontset_alias_alist.
8996 (n_auto_fontsets): New variable.
8997 (new_fontset_from_font_name): New function.
8998 (Ffont_info): Store the information about fonts generated from the
1f45f627 8999 default fontset in the first extra slot of the returned char-table.
aca7a3d2 9000
1f45f627
GM
9001 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
9002 (font_name_registry): Delete function.
aca7a3d2
MB
9003 (split_font_name_into_vector): New function.
9004 (build_font_name_from_vector): New function.
1f45f627 9005 (font_list): The argument REGISTRY is now a list of registry names.
aca7a3d2
MB
9006 (choose_face_font): If we are choosing an ASCII font, and ATTRS
9007 specifies an explicit font name, return the name as is. Make a
9008 list of registy names.
9009
1f45f627 9010 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
aca7a3d2
MB
9011 of x_new_fontset.
9012 (Fx_create_frame): Don't call x_new_fontset here. Just use
9013 x_list_fonts to check the existence of fonts.
9014
1f45f627 9015 * xterm.h (x_new_fontset): Adjust prototype.
aca7a3d2
MB
9016
9017 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
9018 string. Use new_fontset_from_font_name to create a fontset from a
9019 font name.
9020
1c8658b9
GM
90212008-02-01 Kenichi Handa <handa@m17n.org>
9022
9023 * syntax.c (Vfind_word_boundary_function_table): New name for
9024 Vnext_word_boundary_function_table.
9025 (find-word-boundary-function-table): New name for
9026 next-word-boundary-function-table.
9027
73acf815 90282008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9029
9030 * Makefile.in: Fix some dependencies.
9031
9032 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
9033 set it to nil before returning.
9034
9035 * composite.c (update_compositions): Fix type error.
9036
9037 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
9038
73acf815 90392008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9040
9041 * xterm.c (x_new_font): Optimize for the case that the font is
9042 already set for the frame.
9043
73acf815 90442008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9045
9046 * chartab.c (char_table_ascii): Check if the char table contents
9047 is sub-char-table or not.
4c4475a8
GM
9048 (char_table_set, char_table_set_range): Fix argument to
9049 char_table_ascii.
aca7a3d2
MB
9050
9051 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
9052 (detect_coding_utf_8, detect_coding_utf_16)
9053 (detect_coding_emacs_mule, detect_coding_iso_2022)
9054 (detect_coding_sjis, detect_coding_big5)
9055 (detect_coding_ccl, detect_coding_charset): Change argument MASK
9056 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
1f45f627 9057 sequence is valid in this coding system. Change callers.
aca7a3d2
MB
9058 (MAX_ANNOTATION_LENGTH): New macro.
9059 (ADD_ANNOTATION_DATA): New macro.
1f45f627
GM
9060 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
9061 ADD_ANNOTATION_DATA. Change the format of annotation data.
aca7a3d2 9062 (ADD_CHARSET_DATA): New macro.
1f45f627 9063 (emacs_mule_char): New argument ID. Change callers.
aca7a3d2
MB
9064 (decode_coding_emacs_mule, decode_coding_iso_2022)
9065 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
9066 Produce charset annotation data in coding->charbuf.
9067 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
9068 to charset annotation data in coding->charbuf.
9069 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
9070 coding->common_flags if the coding system is iso-2022 based and
9071 uses designation.
1f45f627 9072 (produce_composition): Adjust for the new annotation data format.
aca7a3d2
MB
9073 (produce_charset): New function.
9074 (produce_annotation): Handle charset annotation.
9075 (handle_composition_annotation, handle_charset_annotation): New
9076 functions.
9077 (consume_chars): Handle charset annotation. Utilize the above two
9078 functions.
9079 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
9080 buffer, get the deleted text as a string and set
9081 coding->src_object to that string.
9082 (detect_coding, detect_coding_system): Use the new struct
9083 coding_detection_info.
9084
9085 * coding.h (struct coding_detection_info): New structure.
1f45f627 9086 (struct coding_system): Adjust prototype of the member `detector'.
aca7a3d2
MB
9087 (CODING_ANNOTATE_CHARSET_MASK): New macro.
9088
73acf815 90892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9090
9091 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
9092
73acf815 90932008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 9094
1f45f627 9095 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
aca7a3d2
MB
9096 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
9097 to new local and nullify apropos_accumulate before returning.
9098 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
9099
73acf815 91002008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9101
9102 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
9103 correctly.
9104
73acf815 91052008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9106
9107 * fns.c (Flanginfo): Call synchronize_system_time_locale.
9108
73acf815 91092008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9110
9111 The following changes are to make character composition happen
9112 automatically on displaying.
9113
2a2e8de7 9114 * Makefile.in (lisp, shortlisp): Add composite.elc.
aca7a3d2 9115
1f45f627
GM
9116 * composite.h (Qauto_composed, Vauto_composition_function)
9117 (Qauto_composition_function): Extern them.
aca7a3d2 9118
1f45f627
GM
9119 * composite.c (Vcomposition_function_table)
9120 (Qcomposition_function_table): Delete variables.
9121 (Qauto_composed, Vauto_composition_function)
9122 (Qauto_composition_function): New variables.
aca7a3d2
MB
9123 (run_composition_function): Don't call
9124 compose-chars-after-function.
9125 (update_compositions): Clear `auto-composed' text property.
9126 (compose_chars_in_text): Delete this function.
9127 (syms_of_composite): Staticpro Qauto_composed and
9128 Qauto_composition_function. Declare Vauto_composition_function as
9129 a Lisp variable.
9130
9131 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
9132
9133 * xdisp.c (it_props): Add an entry for Qauto_composed.
9134 (handle_auto_composed_prop): New function.
9135
9136 * xselect.c (selection_data_to_lisp_data): Don't call
9137 compose_chars_in_text.
9138
73acf815 91392008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9140
9141 * keyboard.c (read_char): Modify checking around use of
9142 Vkeyboard_translate_table.
9143
9144 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
9145 and fix C types.
9146
73acf815 91472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9148
4c4475a8
GM
9149 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
9150 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9151 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
aca7a3d2 9152 the case that the last byte is '\r' correctly.
1f45f627
GM
9153 (decode_coding): Flush out the unprocessed data correctly.
9154 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
aca7a3d2 9155
73acf815 91562008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 9157
f245f2c6
JB
9158 * xterm.c (XTread_socket): Fix changes for defined keysyms.
9159 Add XK_ISO... case.
aca7a3d2
MB
9160 (xaw_scroll_callback): Revert last change.
9161
73acf815 91622008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9163
1f45f627 9164 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
aca7a3d2 9165
73acf815 91662008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9167
9168 * xfaces.c (Vface_resizing_fonts): New variable.
9169 (struct font_name): New member `resizing_ratio'.
9170 (font_resizing_ratio): New function.
9171 (split_font_name): Set font->resizing_ratio.
9172 (better_font_p): Pay attention to font->resizing_ratio.
9173 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
9174 RESX, and RESY fields.
9175 (try_alternative_families): Try scalable fonts if
9176 Vscalable_fonts_allowed is not Qt.
9177 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
9178
73acf815 91792008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9180
9181 * xterm.c (xaw_scroll_callback): Cast correctly.
9182
73acf815 91832008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9184
9185 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
9186 (lispy_kana_keys): Comment out.
9187 (make_lispy_event) [XK_kana_A]: Comment out.
9188
9189 * xterm.c (xaw_scroll_callback): Cast call_data.
9190 (XTread_socket): Deal with ASCII keysyms.
9191 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
9192
73acf815 91932008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9194
9195 * xterm.c (Vx_keysym_table): New.
9196 (syms_of_xterm): Initialize it.
9197 (XTread_socket): Use it.
9198 From head: Eliminate incorrect optimization that tried to avoid
9199 decoding the output of X*LookupString.
9200 (x_get_font_repertory): Delete charset declaration.
9201
73acf815 92022008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9203
1f45f627
GM
9204 * coding.c (detect_coding_charset): If only ASCII bytes are found,
9205 return 0.
aca7a3d2
MB
9206 (Fdefine_coding_system_internal): Setup
9207 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
9208
73acf815 92092008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9210
9211 * coding.c (Fcheck_coding_system): Doc fix.
9212
9213 * editfns.c (Finsert_byte): Return a proper value.
9214
73acf815 92152008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9216
9217 * coding.c (decode_coding): Fix args to translate_chars. Pay
9218 attention to Vstandard_translation_table_for_decode.
9219 (encode_coding): Fix args to translate_chars. Pay attention to
9220 Vstandard_translation_table_for_encode.
9221
9222 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
9223 SINGLE_BYTE_CHAR_P.
9224
9225 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
9226 not by SINGLE_BYTE_CHAR_P.
9227
9228 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
9229 SINGLE_BYTE_CHAR_P.
9230
9231 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
9232 SINGLE_BYTE_CHAR_P.
9233
9234 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
9235 by SINGLE_BYTE_CHAR_P.
9236
9237 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
9238 SINGLE_BYTE_CHAR_P.
9239
73acf815 92402008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9241
9242 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
9243
73acf815 92442008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9245
9246 * fns.c (Flanginfo): Fix typo.
9247
9248 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
9249
73acf815 92502008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9251
4c4475a8
GM
9252 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
9253 (detect_coding_emacs_mule, detect_coding_iso_2022)
9254 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
9255 incomplete byte sequence. Don't update *mask when correctly detected.
aca7a3d2 9256 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
1f45f627 9257 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
4c4475a8 9258 (detect_coding, detect_coding_system): Adjust for the changes above.
aca7a3d2 9259
73acf815 92602008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9261
1f45f627
GM
9262 * character.c (char_string): Rename from
9263 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
9264 (string_char): Rename from string_char.
aca7a3d2 9265
4c4475a8
GM
9266 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
9267 if C is greater than MAX_3_BYTE_CHAR.
9268 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
9269 string_char instead of string_char_with_unification.
aca7a3d2 9270
73acf815 92712008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9272
9273 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
9274
73acf815 92752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9276
1f45f627 9277 * keymap.c (push_key_description): Pay attention to force_multibyte.
aca7a3d2
MB
9278
9279 * regex.c (re_search_2): Fix for the case of unibyte buffer.
9280
73acf815 92812008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9282
9283 * charset.c (define_charset_internal): Rename `supprementary'.
9284
9285 * Makefile.in (lisp, shortlisp): Remove latin-N.
9286
73acf815 92872008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9288
9289 * xfns.c (x_window, x_window): Use use_xim.
9290
9291 * xterm.c (use_xim): Initialize.
9292 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
9293 (x_term_init): Maybe set use_xim.
9294
9295 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
9296
73acf815 92972008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9298
9299 * search.c (search_buffer): Fix case-fold-search of multibyte
9300 characters.
9301 (boyer_moore): Rename the last argument to char_high_bits.
9302
73acf815 93032008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9304
9305 * xdisp.c (display_string): Fix for the case of zero width glyph.
9306
9307 * xfns.c (x_set_font): Change the error message of the case that
9308 x_new_fontset returns Qt.
9309
9310 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
9311 (Finternal_set_lisp_face_attribute): Use signal_error for the
9312 error of invalid fontset.
9313
9314 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
9315 fontset, return Qt.
9316
73acf815 93172008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 9318
aca7a3d2
MB
9319 * unexelf.c (unexec): Make .got handling not SGI-specific.
9320
9321 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
9322
9323 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
9324
9325 * keyboard.c (read_key_sequence): Fix type error.
9326
9327 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
9328 type error.
9329
9330 * fontset.c (fontset_add): Return Lisp_Object.
9331
73acf815 93322008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9333
9334 * charset.h (charset_ordered_list_tick): Declare extern.
9335
73acf815 93362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9337
73acf815 9338 The following changes (and some of 2008-02-01 changes of mine) are
aca7a3d2
MB
9339 for handling syntax, category, and case conversion for unibyte
9340 characters by converting them to multibyte on the fly. With these
9341 changes, we don't have to setup syntax and case tables for unibyte
9342 characters in each language environment.
9343
9344 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
9345 multibyte if necessary.
9346
9347 * bytecode.c (Fbyte_code): Likewise.
9348
9349 * character.h (LEADING_CODE_LATIN_1_MIN)
9350 (LEADING_CODE_LATIN_1_MAX): New macros.
9351 (unibyte_to_multibyte_table): Extern it.
9352 (unibyte_char_to_multibyte): New macro.
9353 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
9354 (CHAR_LEADING_CODE): New macro.
9355 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
9356
9357 * character.c (unibyte_to_multibyte_table): New variable.
1f45f627 9358 (unibyte_char_to_multibyte): Move to character.h and define as macro.
aca7a3d2
MB
9359 (multibyte_char_to_unibyte): If C is an eight-bit character,
9360 convert it to the corresponding byte value.
9361
9362 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
9363 not 1, singals an error. Update the elements of
9364 unibyte_to_multibyte_table.
9365 (init_charset_once): Initialize unibyte_to_multibyte_table.
9366 (syms_of_charset): Define the charset `iso-8859-1'.
9367
aca7a3d2
MB
9368 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
9369 as is without converting it to unibyte. In a unibyte buffer,
9370 convert C to multibyte before checking the syntax.
9371
1f45f627 9372 * lisp.h (unibyte_char_to_multibyte): Delete extern.
aca7a3d2
MB
9373
9374 * minibuf.c (Fminibuffer_complete_word): Use the macro
9375 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
9376
9377 * regex.h (struct re_pattern_buffer): New member target_multibyte.
9378
9379 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
9380 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
9381 that is zero, convert an eight-bit char to multibyte.
9382 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
9383 non-emacs case.
9384 (PATFETCH): Convert an eight-bit char to multibyte.
9385 (HANDLE_UNIBYTE_RANGE): New macro.
9386 (regex_compile): Setup the compiled pattern for multibyte chars
9387 even if the given regex string is unibyte. Use PATFETCH_RAW
9388 instead of PATFETCH in many places. To handle `charset'
c5ad7a3d 9389 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
aca7a3d2 9390 only for ASCII chars.
1f45f627 9391 (analyse_first) <exactn>: Simplify because the compiled pattern
aca7a3d2
MB
9392 is multibyte.
9393 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
9394 <charset>: Use CHAR_LEADING_CODE to get leading codes.
1f45f627 9395 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
aca7a3d2
MB
9396 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
9397 multibyte always 1.
9398 (re_search_2): In emacs, set the locale variable multibyte to 1,
9399 otherwise to 0. New local variable target_multibyte. Check it
9400 to decide the multibyteness of STR1 and STR2. If
9401 target_multibyte is zero, convert unibyte chars to multibyte
9402 before translating and checking fastmap.
9403 (TARGET_CHAR_AND_LENGTH): New macro.
9404 (re_match_2_internal): In emacs, set the locale variable multibyte
9405 to 1, otherwise to 0. New local variable target_multibyte. Check
9406 it to decide the multibyteness of STR1 and STR2. Use
9407 TARGET_CHAR_AND_LENGTH to fetch a character from D.
9408 <charset, charset_not>: If multibyte is nonzero, check fastmap
c5ad7a3d 9409 only for ASCII chars. Call bcmp_translate with
aca7a3d2
MB
9410 target_multibyte, not with multibyte.
9411 <begline>: Declare the local variable C as `unsigned'.
9412 (bcmp_translate): Change the last arg name to target_multibyte.
9413
9414 * search.c (compile_pattern_1): Don't adjust the multibyteness of
9415 the regexp pattern and the matching target. Set cp->buf.multibyte
9416 to the multibyteness of the regexp pattern. Set
1f45f627 9417 cp->but.target_multibyte to the multibyteness of the matching target.
aca7a3d2
MB
9418 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
9419 FETCH_STRING_CHAR_ADVANCE.
9420 (Freplace_match): Convert unibyte chars to multibyte.
9421
4c4475a8
GM
9422 * syntax.c (char_quoted, back_comment, scan_words)
9423 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
9424 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
aca7a3d2 9425 unibyte chars to multibyte.
1f45f627
GM
9426 (skip_chars): Delete the arg syntaxp, and move the code for
9427 handling syntaxes to skip_syntaxes. Change callers.
aca7a3d2
MB
9428 Fix the case that the multibyteness of STRING and the current
9429 buffer doesn't match.
9430 (skip_syntaxes): New function.
9431 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
9432 SINGLE_BYTE_CHAR_P.
aca7a3d2 9433
73acf815 94342008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9435
9436 * xfaces.c (QCfontset): New variable.
9437 (LFACE_FONTSET): New macro.
9438 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
9439 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
4c4475a8
GM
9440 (Finternal_set_lisp_face_attribute)
9441 (Finternal_get_lisp_face_attribute): Handle QCfontset.
aca7a3d2
MB
9442 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
9443 check also LFACE_FONTSET_INDEX.
9444 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
9445 attrs[LFACE_FONT_INDEX].
9446 (syms_of_xfaces): Intern and staticpro QCfontset.
9447
9448 * dispextern.h (enum lface_attribute_index): New member
9449 LFACE_FONTSET_INDEX.
9450
9451 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
9452
73acf815 94532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9454
9455 * coding.c (coding_set_destination): Fix coding->destination for
9456 the case converting a region.
9457 (encode_coding_utf_8): Encode eight-bit chars as single byte.
9458 (encode_coding_object): Fix coding->dst_pos and
9459 coding->dst_pos_byte for the case converting a region.
9460
9461 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
9462
9463 * character.h (BYTE8_STRING): New macro.
9464
9465 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
9466
73acf815 94672008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9468
9469 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
9470 characters by octal form.
9471
9472 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
9473
1f45f627 9474 * buffer.h (_fetch_multibyte_char_len): Delete extern.
4c4475a8
GM
9475 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
9476 _fetch_multibyte_char_len.
aca7a3d2
MB
9477 (FETCH_CHAR_AS_MULTIBYTE): New macro.
9478
1f45f627 9479 * casetab.c (set_canon, set_identity, shuffle): Simplify.
aca7a3d2 9480
1f45f627 9481 * casefiddle.c (casify_object): Simplify. Handle the case that
aca7a3d2 9482 the case conversion change the byte length.
1f45f627 9483 (casify_region): Likewise.
aca7a3d2 9484
1f45f627 9485 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
aca7a3d2 9486
1f45f627 9487 * character.c (_fetch_multibyte_char_len): Delet this variable.
aca7a3d2
MB
9488 (syms_of_character): Setup Vprintable_chars.
9489
9490 * editfns.c (Fchar_equal): Fix for the unibyte case.
9491 (Finsert_byte): New function.
9492 (syms_of_editfns): Defsubr it.
9493
9494 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
9495 of direct code 0x3ffff.
9496
9497 * search.c (Freplace_match): Fix for the unibyte case.
9498
73acf815 94992008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9500
9501 * lread.c (safe_to_load_p): Fix the logic.
9502
9503 * syntax.c (scan_words): Don't treat characters belonging to
9504 different scripts as constituting a word.
9505
9506 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
9507
1f45f627 9508 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
aca7a3d2
MB
9509
9510 * emacs.c (main): In the case of --unibyte, instead of aborting on
9511 finding non-empty buffer, make it unibyte.
9512
73acf815 95132008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9514
9515 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
9516 to create a fontset.
9517
73acf815 95182008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9519
9520 * character.c (Funibyte_char_to_multibyte): Doc fix.
9521
9522 * xfns.c [HAVE_STDLIB_H]: Fix last change.
9523
73acf815 95242008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9525
9526 * fontset.c (fontset_add): Make the type `int'.
9527 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
9528
4c4475a8
GM
9529 * character.c (unibyte_char_to_multibyte)
9530 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
aca7a3d2 9531 charset_unibyte, not charset_primary.
aca7a3d2 9532
1f45f627 9533 * charset.h (charset_unibyte): Extern it instead of charset_primary.
aca7a3d2 9534
1f45f627
GM
9535 * charset.c (charset_unibyte): Rename from charset_primary.
9536 (Funibyte_charset): Rename from Fprimary_charset.
9537 (Fset_unibyte_charset): Rename from Fset_primary_charset.
9538 (syms_of_charset): Adjust for the above changes.
aca7a3d2
MB
9539
9540 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
9541 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
9542 it->multibyte_p is zero.
9543
9544 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
1f45f627 9545 Delete extern.
aca7a3d2 9546
73acf815 95472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9548
9549 * coding.c (Fdefine_coding_system_internal): Fix category setting
9550 for a coding system of type iso-2022.
9551
73acf815 95522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9553
1f45f627 9554 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
aca7a3d2 9555
73acf815 95562008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9557
9558 * syntax.c (Vnext_word_boundary_function_table): New variable.
1c8658b9
GM
9559 (next-word-boundary-function-table): Declare it as a Lisp variable
9560 in syms_of_syntax.
aca7a3d2
MB
9561 (scan_words): Call functions in Vnext_word_boundary_function_table
9562 if any.
9563
9564 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
9565
9566 * fontset.c (fs_load_font): If fontp->charset is not negative,
9567 return fontp without setting its members.
9568
73acf815 95692008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 9570
aca7a3d2
MB
9571 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
9572
9573 * m/sparc.h (HAVE_ALLOCA): Delete.
9574
9575 * s/irix6-5.h: Don't include strings.h.
9576 (bcopy, bzero, bcmp): Don't undef.
9577
9578 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
9579
9580 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
9581 (TIOCSIGSEND): Don't test IRIX6.
9582 (bcopy, bzero, bcmp): Define conditionally.
9583
73acf815 95842008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9585
9586 * buffer.c (Qas, Qmake, Qto): New variables.
1f45f627 9587 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
aca7a3d2
MB
9588 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
9589
9590 * callproc.c (Fcall_process): Don't call insert_1_both directly if
9591 we are inserting a process output into a multibyte buffer.
9592
9593 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
9594 multibyte_char_to_unibyte.
9595
9596 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
9597 by the primary charset, make it eight-bit char.
9598 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
9599
1f45f627
GM
9600 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
9601 (charset_8_bit__control, charset_8_bit_graphic)
9602 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
aca7a3d2
MB
9603 (define_charset_internal): New function.
9604 (syms_of_charset): Call define_charset_internal for pre-defined
9605 charsets.
9606
9607 * charset.h (charset_8_bit): Extern it.
9608
1f45f627 9609 * coding.c (make_conversion_work_buffer): Adjust for the change
aca7a3d2
MB
9610 of Fset_buffer_multibyte.
9611 (encode_coding_raw_text): Increment p0 in the loop.
9612
1f45f627 9613 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
aca7a3d2 9614
1f45f627 9615 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
aca7a3d2
MB
9616 for the change of Fset_buffer_multibyte.
9617
9618 * fns.c (Fstring_to_multibyte): New function.
9619 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
9620
73acf815 96212008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9622
9623 * xfns.c (x_put_x_image): Declare args.
9624
1f45f627 9625 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
aca7a3d2
MB
9626 (try_font_list): Declare an arg.
9627
9628 * xdisp.c (message2_nolog, set_message): Declare an arg.
9629
9630 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
9631
9632 * syntax.c (scan_sexps_forward): Declare an arg.
9633
9634 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
9635 Declare an arg.
9636
9637 * lisp.h (Fnew_fontset): Declare.
9638
9639 * keymap.c (push_key_description): Call CHARACTERP correctly.
9640
1f45f627 9641 * fontset.c (fontset_add): Declare args. Call make_number correctly.
aca7a3d2
MB
9642 (face_for_char): Delete unused vars.
9643 (Fset_fontset_font): Doc fix. Delete unused vars.
9644
9645 * doc.c (Fsubstitute_command_keys): Delete unused vars.
9646
9647 * composite.c (update_compositions): Declare arg.
9648
9649 * cm.c (calccost, cmgoto): Declare args.
9650
9651 * charset.c: Remove `emacs' conditional. Doc fixes.
9652 (map_char_table_for_charset): Declare.
9653
1f45f627 9654 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
aca7a3d2 9655
1f45f627 9656 * ccl.c: Remove `emacs' conditional.
aca7a3d2 9657
73acf815 96582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9659
9660 The following changes are to allow specifying multiple font
9661 patterns for a character range (specified by script or charset).
9662
9663 * Makefile.in (abbrev.o): Depend on syntax.h.
9664 (xfaces.o): Depend on charset.h.
9665
9666 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
9667 SINGLE_BYTE_CHAR_P.
9668
9669 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
9670
9671 * character.h (Vchar_script_table): Extern it.
9672
1f45f627 9673 * character.c (Vscript_alist): Delete.
aca7a3d2
MB
9674 (Vchar_script_table, Qchar_script_table): New variable.
9675 (syms_of_character): Declare Vchar_script_table as a lisp variable
9676 and initialize it.
9677
1f45f627 9678 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
aca7a3d2
MB
9679 have property char-table-extra-slots, make no extra slot.
9680
1f45f627 9681 * dispextern.h (struct face): Delete member `charset'.
4c4475a8
GM
9682 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
9683 SINGLE_BYTE_CHAR_P.
1f45f627
GM
9684 (choose_face_font, lookup_non_ascii_face, font_name_registry):
9685 Add prototypes.
9686 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
9687 (generate_ascii_font_name): Rename from generate_ascii_font.
aca7a3d2
MB
9688
9689 * fontset.h (get_font_repertory_func): New prototype.
1f45f627 9690 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
aca7a3d2
MB
9691 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
9692
9693 * fontset.c (Qprepend, Qappend): New variables.
1f45f627 9694 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
aca7a3d2
MB
9695 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
9696 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
9697 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
9698 (fontset_ref_and_range, fontset_add, reorder_font_vector)
9699 (load_font_get_repertory): New functions.
1f45f627 9700 (fontset_set): Delete.
aca7a3d2 9701 (fontset_face): New arg FACE. Return face ID, not face.
1f45f627 9702 Complete re-write to handle new fontset structure. Change caller.
aca7a3d2
MB
9703 (free_face_fontset): Use ASET istead of AREF (X) = Y.
9704 (face_for_char): Don't call lookup_face.
9705 (make_fontset_for_ascii_face): New arg FACE.
9706 (fs_load_font): New arg CHARSET_ID. Don't check
9707 Vfont_encoding_alist here.
9708 (find_font_encoding): New function.
9709 (list_fontsets): Use STRINGP, not ! NILP.
9710 (accumulate_script_ranges): New function.
9711 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
9712 re-written to handle new fontset structure.
9713 (Ffontset_font): Return a copy of element.
9714 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
9715 docstring of font-encoding-alist.
9716
9717 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
9718 (Fset_fotset_font): Fix arguments to 5.
9719
1f45f627 9720 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
aca7a3d2
MB
9721
9722 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
9723 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
1f45f627 9724 (highlight_trailing_whitespace): Adjust for the change of
aca7a3d2
MB
9725 lookup_named_face.
9726
9727 * xfaces.c: Include charset.h.
1f45f627
GM
9728 (load_face_font): Delete argument C. Change caller.
9729 (generate_ascii_font_name): Rename from generate_ascii_font.
aca7a3d2
MB
9730 (font_name_registry): New function.
9731 (cache_face): Store ascii faces before non-ascii faces in buckets.
1f45f627 9732 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
aca7a3d2
MB
9733 Lookup only ascii faces.
9734 (lookup_non_ascii_face): New function.
1f45f627
GM
9735 (lookup_named_face): Delete argument C. Change caller.
9736 (lookup_derived_face): Delete argument C. Change caller.
9737 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
aca7a3d2 9738 a string, just call font_list with it.
1f45f627
GM
9739 (choose_face_font): Delete arguments FACE and C. New arg
9740 FONT_SPEC. Change caller.
4c4475a8
GM
9741 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
9742 Change caller.
aca7a3d2
MB
9743 (realize_non_ascii_face): New function.
9744 (realize_x_face): Call load_face_font here.
1f45f627 9745 (realize_tty_face): Delete argument C. Change caller.
aca7a3d2
MB
9746 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
9747 get a face ID.
9748 (dump_realized_face): Don't print charset of FACE.
9749
9750 * xfns.c (x_set_font): Always call x_new_fontset and
9751 store_frame_parameter.
9752 (Fx_create_frame): Call x_new_fontset, not x_new_font.
1f45f627 9753 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
aca7a3d2
MB
9754
9755 * xterm.h (x_get_font_repertory): Extern it.
9756
9757 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
9758 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
9759 it->multibyte_p is zero.
9760 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
9761 (x_new_fontset): If FONTSETNAME doesn't match any existing
9762 fontsets, create a new one.
9763 (x_get_font_repertory): New function.
9764
73acf815 97652008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9766
9767 * coding.c (Ffind_coding_systems_region_internal): Detect an
9768 ASCII only string correctly.
9769
9770 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
9771 version is 0.
9772
73acf815 97732008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9774
9775 * lread.c: Include "coding.h".
1f45f627
GM
9776 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
9777 (load_each_byte, unread_char): New variables.
9778 (readchar_backlog): Delete.
aca7a3d2
MB
9779 (readchar): Return a character unless load_each_byte is nonzero.
9780 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
9781 cons. If unread_char is not -1, simply return it.
9782 (unreadchar): Handle the case that readcharfun is
1f45f627
GM
9783 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
9784 (read_multibyte): Delete.
aca7a3d2
MB
9785 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
9786 (read_emacs_mule_char): New functions.
9787 (Fload): Even if the file doesn't have the extention ".elc", if
9788 safe_to_load_p returns a positive version number, assume that the
9789 file contains bytecompiled code. If the version is less than 22,
9790 load the file while decoding multibyte sequences by emacs-mule.
9791 (readevalloop): Don't use readchar_backlog.
1f45f627
GM
9792 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
9793 (Fread_from_string): Pay attention to the case that STREAM is a cons.
9794 (read_escape): Delete the arg BYTEREP.
aca7a3d2
MB
9795 (read1): Set load_each_byte to 1 temporarily while handling
9796 #@NUMBER. Don't call read_multibyte.
9797 (read_vector): Call Fread with a cons. If readcharfun is
9798 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
1f45f627 9799 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
aca7a3d2
MB
9800 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
9801 and Qload_force_doc_strings.
9802
73acf815 98032008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9804
9805 * xdisp.c (face_before_or_after_it_pos): Call
9806 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
9807
73acf815 98082008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9809
9810 * character.h (TRAILING_CODE_P): New macro.
1f45f627 9811 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
aca7a3d2
MB
9812 (string_char_with_unification): Fix prototype.
9813 (Vscript_alist): Extern it.
9814
9815 * character.c (Vscript_alist): New variable.
4c4475a8
GM
9816 (string_char_with_unification, str_as_unibyte)
9817 (string_escape_byte8): Add `const' to local variables.
aca7a3d2
MB
9818 (syms_of_character): Declare script-alist as a Lisp variable.
9819
9820 * charset.h (Vcharset_ordered_list): Extern it.
9821 (charset_ordered_list_tick): Extern it.
9822 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
9823 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
9824 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
1f204af3 9825 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
1f45f627 9826 (Funify_charset): Adjust for the change of Funify_charset.
aca7a3d2
MB
9827
9828 * charset.c (charset_ordered_list_tick): New variable.
9829 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
9830 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
9831 deunify intead of unify a charset.
9832 (string_xstring_p): Add `const' to local variables.
1f45f627
GM
9833 (find_charsets_in_text): Add `const' to arguemnts and local variables.
9834 (encode_char): Adjust for the change of Funify_charset. Fix
aca7a3d2
MB
9835 detecting of invalid code.
9836 (Fset_charset_priority): Increment charset_ordered_list_tick.
9837 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
9838 and TO_CODE.
9839
9840 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
1f45f627
GM
9841 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
9842 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
4c4475a8
GM
9843 (decode_coding_ccl, consume_chars)
9844 (Ffind_coding_systems_region_internal)
9845 (Fcheck_coding_systems_region): Add `const' to local variables.
aca7a3d2
MB
9846
9847 * print.c (print_object): Use octal form for printing the
9848 contents of a bool vector.
9849
73acf815 98502008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9851
9852 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
9853 <version == 20>: Refuse to load.
9854
73acf815 98552008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9856
9857 * fns.c: Move coding.h.
9858 (Qcodeset, Qdays, Qmonths): New.
9859 (concat): Use CHARACTERP instead of INTERGERP.
1f45f627 9860 (Flocale_codeset): Delete.
aca7a3d2 9861 (Flanginfo): New function.
1f45f627 9862 (syms_of_fns): Change accordingly.
aca7a3d2
MB
9863
9864 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
9865
73acf815 98662008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9867
9868 * casetab.c (init_casetab_once, init_casetab_once): Fix
9869 CHAR_TABLE_SET call.
9870
9871 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
9872
9873 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
9874
9875 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
9876 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
9877 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
9878
9879 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
9880
9881 * coding.c (ENCODE_DESIGNATION, decode_eol)
9882 (make_conversion_work_buffer, code_conversion_restore)
9883 (Fdefine_coding_system_internal): Convert Lisp types.
9884 (code_conversion_restore): Use EQ, not ==.
9885 (Fencode_coding_string): Fix code_convert_string call.
9886
9887 * coding.h (code_convert_region): Fix prototype.
9888
1f45f627 9889 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
aca7a3d2
MB
9890
9891 * fontset.c (fontset_ref, fontset_set, fs_load_font)
9892 (Ffontset_info): Convert Lisp types.
9893
9894 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
9895
9896 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
9897
9898 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
9899
9900 * chartab.c: Include "...h", not <...h> in some cases.
9901
9902 * callproc.c (Fcall_process): Remove unused variables.
9903
73acf815 99042008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9905
9906 * coding.c (Fset_coding_system_priority): Allow null arg list.
9907
73acf815 99082008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9909
9910 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
9911 (Fself_insert_and_exit): Use CHARACTERP.
9912
9913 * callproc.c (Fcall_process): Remove unused vars.
9914
9915 * xterm.c (XTread_socket): Add extra dead keysyms.
9916
9917 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
9918
9919 * dispextern.h: Remove prototypes for redraw_frame,
9920 redraw_garbaged_frames.
9921
9922 * cmds.c (Fself_insert_command): Use CHARACTERP.
9923
9924 * chartab.c (make_sub_char_table): Remove unused var.
9925 (Fset_char_table_default, Fmap_char_table): Doc fix.
9926
9927 * keymap.c (access_keymap): Remove generic char code.
9928 (push_key_description): Use CHARACTERP.
9929
73acf815 99302008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9931
9932 * charset.c: Doc fixes.
9933 (Funify_charset): Extra checking.
9934
73acf815 99352008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9936
9937 * lread.c: Remove some unused variables.
9938 (safe_to_load_p): If safe, return the magic number version byte.
9939 (Fload): Maybe use load-with-code-conversion.
9940
73acf815 99412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9942
9943 * category.c (Fmodify_category_entry): Don't modify the contents
9944 of category_set for characters out of the range. Avoid
9945 unnecessary modification.
9946
1f45f627 9947 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
aca7a3d2
MB
9948 Vchar_unify_table. The default value of the table is now nil.
9949
9950 * character.c (syms_of_character): Setup Vchar_width_table for
9951 eight-bit-control and raw-byte chars.
9952
9953 * charset.h (enum define_charset_arg_index): Delete
9954 charset_arg_parents and add charset_arg_subset and
9955 charset_arg_superset.
9956 (enum charset_attr_index): Delete charset_parents and add
9957 charset_subset and charset_superset.
9958 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
9959 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
1f45f627 9960 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
aca7a3d2
MB
9961 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
9962 (CHARSET_SUPERSET): New macros.
9963 (charset_work): Extern it.
9964 (ENCODE_CHAR): Use charset_work.
1f45f627 9965 (CHAR_CHARSET_P): Adjust for the change of encoder format.
aca7a3d2
MB
9966 (map_charset_chars): Extern it.
9967
9968 * charset.c (load_charset_map): Set the default value of encoder
9969 and deunifier char-tables to nil.
1f45f627 9970 (map_charset_chars): Change argument. Change callers. Use
aca7a3d2
MB
9971 map_char_table_for_charset instead of map_char_table.
9972 (Fmap_charset_chars): New optional args from_code and to_code.
1f45f627 9973 (Fdefine_charset_internal): Adjust for the change of
aca7a3d2
MB
9974 `define-charset' (:parents -> :subset or :superset).
9975 (charset_work): New variable.
4c4475a8
GM
9976 (encode_char, syms_of_charset): Adjust for the change of
9977 Fdefine_charset_internal.
aca7a3d2
MB
9978 (Ffind_charset_string): Setup the vector `charsets' correctly.
9979
1f45f627 9980 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
aca7a3d2 9981 the previous change.
1f45f627 9982 (char_table_ref_and_range): Adjust for the above change.
aca7a3d2
MB
9983 (map_sub_char_table_for_charset): New function.
9984 (map_char_table_for_charset): New function.
9985
9986 * keymap.c (describe_vector): Handle a char-table directly here.
1f45f627 9987 (describe_char_table): Delete.
aca7a3d2 9988
1f45f627 9989 * lisp.h (map_charset_chars): Delete.
aca7a3d2 9990
73acf815 99912008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9992
9993 * fns.c (count_combining): Comment out (unused).
9994 (Flocale_codeset): New.
9995 (syms_of_fns): Defsubr it.
9996
9997 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
1f45f627 9998 (size_t): Remove.
aca7a3d2 9999
73acf815 100002008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 10001
6f69e89b 10002 * Makefile.in (chartab.o): Depend on charset.h.
aca7a3d2 10003
73acf815 100042008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10005
10006 * character.c (syms_of_character): Set the default value of
10007 Vprintable_chars to Qnil.
10008
73acf815 100092008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10010
10011 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
10012
73acf815 100132008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10014
10015 * charset.c (load_charset_map): Handle the case that from < to
10016 correctly.
10017
4c4475a8
GM
10018 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
10019 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
10020 Pay attention to raw-8-bit chars.
aca7a3d2 10021
73acf815 100222008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 10023
4c4475a8
GM
10024 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
10025 It is not bytecompiled now.
aca7a3d2
MB
10026
10027 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
10028 (charset_jisx0208): New variables.
10029 (Fdefine_charset_internal): Setup them if appropriate.
10030 (init_charset_once): Initialize them to -1.
10031
1f45f627
GM
10032 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
10033 (charset_jisx0208): Extern them.
aca7a3d2 10034
1f204af3 10035 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
aca7a3d2 10036 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
1f45f627
GM
10037 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
10038 (setup_iso_safe_charsets): Fix arguments to Fassq.
4c4475a8
GM
10039 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
10040 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
10041 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
aca7a3d2
MB
10042 (encode_coding_iso_2022): Change the 1st arg to
10043 ENCODE_ISO_CHARACTER to a variable.
10044
73acf815 100452008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10046
10047 * charset.h (enum define_charset_arg_index): New enums
10048 charset_arg_min_code and charset_arg_max_code.
10049 (struct charset): New member char_index_offset.
10050
4c4475a8
GM
10051 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
10052 Take charset->char_index_offset into account.
aca7a3d2
MB
10053 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
10054 args[charset_arg_max_code]. Setup charset.char_index_offset.
10055 (syms_of_charset): Fix args to Fdefine_charset_internal.
10056
73acf815 100572008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10058
10059 * coding.c (decode_coding_utf_8): Reject overlong sequences.
10060
73acf815 100612008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10062
10063 * coding.c: Doc fixes.
10064 (Fcoding_system_aliases): Fix return value.
10065 (Qmac): Remove (duplicated) definition.
10066
73acf815 100672008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10068
10069 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
10070 functions.
10071
10072 * character.c (Fstring): Doc fix.
10073
10074 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
10075
10076 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
10077 ids.
10078 (font-encoding-alist): Doc fix.
10079
73acf815 100802008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10081
10082 * term.c (costs_set): Declare static, non-initialized for pcc.
1f45f627 10083 (encode_terminal_code): Remove unused var.
aca7a3d2
MB
10084
10085 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
10086 for K&R.
10087
10088 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
10089
10090 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
1f45f627 10091 (suffixes): Move out of make_subsidiaries for K&R.
aca7a3d2 10092
1f45f627 10093 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
aca7a3d2
MB
10094
10095 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
10096
73acf815 100972008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10098
10099 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
10100
1f45f627 10101 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
aca7a3d2 10102
2a2e8de7 101032008-02-01 Yong Lu <lyongu@asia-infonet.com>
aca7a3d2
MB
10104
10105 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
10106
1f45f627 10107 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
aca7a3d2 10108
73acf815 101092008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 10110
4c4475a8 10111 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
aca7a3d2 10112 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
aca7a3d2 10113
73acf815 101142008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 10115
1f45f627 10116 * coding.c (decode_coding_charset): Adjust for the change of
aca7a3d2
MB
10117 Fdefine_coding_system_internal.
10118 (Fdefine_coding_system_internal): For a coding system of
10119 `charset' type, store a list of charset IDs in
10120 `charset_attr_charset_valids' element of coding attributes.
10121
73acf815 101222008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10123
10124 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
1f45f627
GM
10125 (emacs_mule_char): New arg src. Delete arg `composition'. Change
10126 caller. Handle 2-byte and 3-byte charsets correctly.
10127 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
10128 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
aca7a3d2
MB
10129 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
10130 (DECODE_EMACS_MULE_21_COMPOSITION): Call
10131 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
10132 sequence.
10133 (decode_coding_emacs_mule): Handle composition correctly. Rewind
1f45f627 10134 `src' and `consumed_chars' correctly before calling emacs_mule_char.
aca7a3d2
MB
10135 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
10136 and alt&rule composition.
10137 (decode_coding_iso_2022): Handle composition correctly.
10138 (init_coding_once): Setup emacs_mule_bytes for private charsets.
10139
10140 * charset.c (Fdefine_charset_internal): Fix bug for the case of
10141 re-defining a charset. If the charset has :emacs-mule-id, setup
10142 emacs_mule_bytes.
1f45f627 10143 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
aca7a3d2 10144
73acf815 101452008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 10146
4c4475a8
GM
10147 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
10148 (encode_coding_big5, encode_coding_charset): If coding requires safe
aca7a3d2
MB
10149 encoding, produce a character specified by
10150 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
aca7a3d2 10151
73acf815 101522008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10153
10154 * xterm.c (XSetIMValues): Declare.
10155
10156 * process.c: Conditionally include sys/wait.h, pty.h.
10157
1f45f627 10158 * print.c (print_object): Fix print format for 64-bit systems.
aca7a3d2 10159
1f45f627 10160 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
aca7a3d2
MB
10161
10162 * buffer.c (emacs_strerror): Declare.
aca7a3d2
MB
10163
10164 * fontset.c (Fclear_face_cache): Declare.
1f45f627 10165 (accumulate_font_info): Comment-out (unused).
aca7a3d2
MB
10166 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
10167 variables.
10168
10169 * character.h (string_escape_byte8): Declare.
10170
10171 * charset.c (load_charset_map, load_charset_map_from_file): Remove
10172 unused vars.
10173 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
10174 (Fmap_charset_chars): Doc fix.
10175
1f45f627 10176 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
aca7a3d2
MB
10177 (Fset_coding_system_priority, Fset_coding_system_priority)
10178 (Fdefine_coding_system_internal): Doc fix.
10179
73acf815 101802008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10181
10182 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
10183
73acf815 101842008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10185
10186 * character.c (string_escape_byte8): Make multibyte string with
10187 correct size.
10188
10189 * charset.c (Fmake_char): Delete unnecessary code.
10190
73acf815 101912008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10192
10193 * xfns.c (x_encode_text): Allocate coding.destination here, and
10194 call encode_coding_object with dst_object Qnil.
10195
10196 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
10197 multibyte form correctly.
10198
10199 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
10200 against Vfont_encoding_alist.
10201
10202 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
10203 handling of charset list.
10204 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
10205 (decode_coding_object): Move point to coding->dst_pos before
10206 calling post-read-conversion function.
10207 (encode_coding_object): Give correct arguments to
10208 pre-write-conversion. Ignore the return value of
10209 pre-write-conversion function. Pay attention to the case that
10210 pre-write-conversion changes the current buffer. If dst_object is
10211 Qt, even if coding->src_bytes is zero, allocate at least one byte
10212 to coding->destination.
10213
10214 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
10215
10216 * charset.c (Fmake_char): Make it more backward compatible.
10217 (Fmap_charset_chars): Fix docstring.
10218
73acf815 102192008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10220
10221 * coding.c: Doc fixes.
10222 (Fdefine_coding_system_alias): Use names, not symbols, in
10223 coding-system-alist.
10224
73acf815 102252008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10226
10227 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
10228 of calling free_realized_face.
10229
2a2e8de7 102302008-02-01 Yong Lu <lyongu@asia-infonet.com>
aca7a3d2 10231
1f45f627
GM
10232 * charset.c (read_hex): Don't treat SPC as a comment starter.
10233 (decode_char): If CODE_POINT_TO_INDEX retruns -1, always return -1.
aca7a3d2
MB
10234 (Fdecode_char): Fix typo.
10235
73acf815 102362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10237
10238 * charset.h (struct charset): New member `code_space_mask'.
10239
1f45f627 10240 * coding.c (coding_set_source): Delete the local variable beg_byte.
4c4475a8
GM
10241 (encode_coding_charset, Fdefine_coding_system_internal):
10242 Delete the local variable charset.
aca7a3d2
MB
10243 (Fdefine_coding_system_internal): Setup
10244 attrs[coding_attr_charset_valids] correctly.
10245
10246 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
10247 member to check if CODE is valid or not.
10248 (Fdefine_charset_internal): Initialize `code_space_mask' member.
10249 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
10250 is within the range of charset->min_code and carset->max_code.
10251
73acf815 102522008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10253
10254 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
10255
10256 * dispextern.h (generate_ascii_font): Fix return type.
10257
10258 * xfaces.c (generate_ascii_font): Fix arg declaration.
10259
10260 * coding.c (coding_inherit_eol_type)
10261 (Fset_terminal_coding_system_internal)
10262 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
10263
73acf815 102642008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10265
10266 * coding.c (decode_coding_charset, encode_coding_charset): Handle
10267 multiple charsets correctly.
10268
73acf815 102692008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10270
10271 * search.c (boyer_moore): Fix handling of mulitbyte character
10272 translation.
10273
10274 * xdisp.c (display_mode_element): When the variable `elt' is
10275 changed, update `this' and `lisp_string'.
10276
73acf815 102772008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10278
10279 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
10280
10281 * callproc.c (Fcall_process): Be sure to give the current buffer
1f45f627 10282 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
aca7a3d2
MB
10283
10284 * charset.c (struct charset_map_entries): New struct.
1f45f627
GM
10285 (load_charset_map): Rename from parse_charset_map. New args
10286 entries and n_entries. Change caller.
10287 (load_charset_map_from_file): Rename from load_charset_map.
10288 Change caller. New arg control_flag. Call load_charset_map at
aca7a3d2
MB
10289 the tail.
10290 (load_charset_map_from_vector): New function.
10291 (Fdefine_charset_internal): Setup charset.compact_codes_p.
10292 (encode_char): If the charset is compact, change a character index
10293 to a code point.
10294
10295 * coding.c (coding_alloc_by_making_gap): Check the case that the
10296 source and destination are the same correctly.
10297 (decode_coding_raw_text): Set coding->consumed_char and
10298 coding->consumed to 0.
10299 (produce_chars): If coding->chars_at_source is nonzero, update
10300 coding->consumed_char and coding->consumed before calling
10301 alloc_destination.
10302 (Fdefine_coding_system_alias): Register ALIAS in
10303 Vcoding_system_alist.
10304 (syms_of_coding): Define `no-convesion' coding system at the tail.
10305
10306 * fileio.c (Finsert_file_contents): Set coding_system instead of
10307 val. If the current buffer is multibyte, always call
10308 decode_coding_gap.
10309
10310 * xfaces.c (try_font_list): Give higher priority to fontset's
10311 family than face's family.
10312
73acf815 103132008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10314
10315 * callproc.c (Fcall_process): Be sure to give the current buffer
10316 to decode_coding_c_string.
10317
10318 * xfaces.c (try_font_list): Give a family specified in a fontset
10319 higher priority than a family specified in a face.
10320
73acf815 103212008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10322
10323 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
10324 Fix arguments to insert_from_buffer.
10325
10326 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
10327
73acf815 103282008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10329
10330 * coding.c (produce_chars): Set the variable `multibytep' correctly.
10331 (decode_coding_gap): Set coding->dst_multibyte correctly.
10332
73acf815 103332008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10334
10335 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
1f45f627 10336 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
aca7a3d2
MB
10337 (encode_coding_utf_16): Substitute coding->default_char for
10338 non-Unicode characters.
10339 (decode_coding): Don't call record_insert here.
10340 (setup_coding_system): Initialize `surrogate' of
10341 coding->spec.utf_16 to 0.
10342 (EMIT_ONE_BYTE): Fix for multibyte case.
10343
10344 * insdel.c (insert_from_gap): Call record_insert.
10345
73acf815 103462008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10347
10348 * casefiddle.c (casify_region): Fix multibyte case.
10349
10350 * character.c (c_string_width): Add return type `int'.
1f45f627 10351 (char_string_with_unification): Delete arg ADVANCED.
aca7a3d2
MB
10352
10353 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
1f45f627 10354 (CHAR_STRING): Adjust for the change of char_string_with_unification.
aca7a3d2
MB
10355 (CHAR_STRING_ADVANCE): Make it do-while statement.
10356
1f45f627 10357 * chartab.c (sub_char_table_set_range): Optimize for the case
aca7a3d2
MB
10358 DEPTH == 3. Add workaround code for a GCC optimization bug.
10359
10360 * charset.c (parse_charset_map): Remove an unused variable.
10361
10362 * coding.c: Delete unused variables.
10363
10364 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
10365 earlier. If inserted is zero and the coding system doesn't
10366 require flushing, don't call decode_coding_gap.
10367
10368 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
10369
73acf815 103702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10371
10372 The following changes are for using Unicode as an internal
10373 character model, and use UTF-8 format for buffer/string
10374 representation.
10375
1f45f627 10376 * .gdbinit (xchartable): Adjust for the change of char table structure.
aca7a3d2
MB
10377 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
10378
10379 * Makefile.in (obj): Add character.o and chartab.o.
c3f9fba8 10380 (lisp, shortlisp): Remove utf-8.elc.
aca7a3d2
MB
10381 (*.o): For many files, change dependency on charset.h to
10382 character.h, and add dependency on character.h.
10383 (character.o, chartab.o): New targets.
10384
1f45f627
GM
10385 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
10386 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
10387 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
aca7a3d2
MB
10388 of "charset.h".
10389
10390 * dired.c, filelock.c: Include "character.h".
10391
10392 * alloc.c: Include "character.h" instead of "charset.h".
4c4475a8 10393 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
aca7a3d2
MB
10394 (syms_of_alloc): Remove defsubr for Smake_char_table.
10395
10396 * buffer.c: Include "character.h" instead of "charset.h", don't
10397 include "coding.h".
1f45f627 10398 (Fset_buffer_multibyte): Adjust for UTF-8.
aca7a3d2
MB
10399
10400 * buffer.h: EXFUN Fbuffer_live_p.
10401
10402 * callproc.c: Include "character.h" instead of "charset.h".
10403 (Fcall_process): Big change for the new code-conversion APIs.
10404
10405 * casetab.c: Include "character.h" instead of "charset.h".
1f45f627 10406 (set_canon, set_identity, shuffle): Adjust for the new
aca7a3d2
MB
10407 map_char_table spec.
10408 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
10409 accessing the char table structure.
10410
10411 * chartab.c: New file that implements char table.
10412
10413 * category.c: Include "character.h".
10414 (copy_category_entry): New function.
10415 (copy_category_table): Call map_char_table and copy_category_entry.
10416 (Fmake_category_table): Initialize all top-vel slots.
10417 (char_category_set): New function.
1f45f627 10418 (modify_lower_category_set): Delete.
aca7a3d2
MB
10419 (Fmodify_category_entry): Call char_table_ref_and_range.
10420
10421 * category.h (CATEGORY_SET): Just call char_category_set.
10422
10423 * ccl.c: Include "character.h".
10424 (Qccl, Qcclp): New variables.
10425 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
10426 it's less than 256.
1f45f627
GM
10427 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
10428 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
aca7a3d2 10429 and DST type.
1f45f627
GM
10430 (ccl_driver): Change types of argument, adjust code accordingly.
10431 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
aca7a3d2
MB
10432 ccl_driver.
10433 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
10434
1f45f627
GM
10435 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
10436 New members src_multibyte, dst_multibyte, consumed, and produced.
10437 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
aca7a3d2 10438 (CODING_SPEC_CCL_PROGRAM): New macro.
1f45f627 10439 (ccl_driver): Update prototype.
aca7a3d2
MB
10440 (Qccl, Qcclp, Fccl_program_p): Extern them.
10441 (CHECK_CCL_PROGRAM): New macro.
10442
10443 * character.c, character.h, chartab.c: New files.
10444
1f45f627
GM
10445 * charset.c: Mostly re-written. Move character and multibyte sequence
10446 handling codes to character.c.
aca7a3d2 10447
1f45f627
GM
10448 * charset.h: Mostly re-written. Move character and multibyte sequence
10449 handling codes to character.h.
aca7a3d2
MB
10450
10451 * coding.c, coding.h: Mostly re-written.
10452
10453 * composite.c: Include "character.h" instead of "charset.h".
1f45f627
GM
10454 (CHAR_WIDTH): Move to character.h.
10455 (HASH_KEY, HASH_VALUE): Delete.
aca7a3d2 10456
1f45f627
GM
10457 * composite.h (enum composition_method): Change order of enumeration
10458 symbols.
aca7a3d2
MB
10459
10460 * data.c: Include "character.h" instead of "charset.h".
10461 (Faref): Call CHAR_TABLE_REF for a char table.
10462 (Faset): Call CHAR_TABLE_SET for a char table.
10463
1f45f627
GM
10464 * dispextern.h (free_realized_face, check_face_attribytes)
10465 (generate_ascii_font): Extern them.
10466 (free_realized_multibyte_face): Delete extern.
aca7a3d2 10467
1f45f627 10468 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
aca7a3d2
MB
10469 table structure.
10470
10471 * editfns.c: Include "character.h" instead of "charset.h".
10472 (Fchar_to_string): Always call CHAR_STRING.
10473
10474 * emacs.c (main): Call init_charset_once, init_charset,
10475 syms_of_chartab, and syms_of_character.
10476
10477 * fileio.c: Include "character.h" instead of "charset.h".
1f45f627 10478 (Finsert_file_contents): Big change for the new code-conversion API.
4c4475a8 10479 (choose_write_coding_system, Fwrite_region): Likewise.
1f45f627 10480 (build_annotations_2): Delete.
aca7a3d2
MB
10481 (e_write): Big change for the new code-conversion API.
10482
10483 * fns.c: Include "character.h" instead of "charset.h".
1f45f627 10484 (copy_sub_char_table): Move to chartab.c.
aca7a3d2
MB
10485 (Fcopy_sequence): Call copy_char_table for a char table.
10486 (concat): Delete codes calling count_multibyte.
4c4475a8
GM
10487 (string_char_to_byte, string_byte_to_char): Adjust for the new
10488 multibyte form.
1f45f627
GM
10489 (internal_equal): Adjust for the change of char table structure.
10490 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
10491 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
10492 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
10493 (char_table_translate, optimize_sub_char_table)
10494 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
aca7a3d2 10495 chartab.c.
1f45f627
GM
10496 (char_table_ref_and_index): Delete.
10497 (HASH_KEY, HASH_VALUE): Move to lisp.h.
aca7a3d2 10498 (Fmd5): Call preferred_coding_system instead of accessing
1f45f627
GM
10499 Vcoding_category_list. Adjust for the new code-conversion API.
10500 (syms_of_fns): Move defsubr for char table related functions to
aca7a3d2
MB
10501 chartab.c.
10502
10503 * fontset.c: Mostly re-written.
10504
1f45f627 10505 * fontset.h (struct font_info): Change type of the member encoding_type.
aca7a3d2 10506 (enum FONT_SPEC_INDEX): New enum.
1f45f627
GM
10507 (fontset_font_pattern, fs_load_font): Update prototype.
10508 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
aca7a3d2
MB
10509
10510 * indent.c: Include "character.h" instead of "charset.h".
1f45f627 10511 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
aca7a3d2
MB
10512
10513 * insdel.c: Include "character.h" instead of "charset.h".
10514 (copy_text): Don't refer to Vnonascii_translation_table.
10515 (insert_from_gap): New function.
10516
10517 * keyboard.c: Include "character.h" instead of "charset.h".
10518 (command_loop_1): Never call direct_output_forward_char before
10519 a non-ASCII character.
10520 (read_char): If Vkeyboard_translate_table is a char table, always
1f45f627 10521 translate a character.
aca7a3d2
MB
10522
10523 * keymap.c: Include "character.h".
10524 (store_in_keymap): Handle the case that IDX is a cons.
10525 (Fdefine_key): Handle the case that KEY is a cons and the car part
10526 is also a cons (range).
1f45f627 10527 (push_key_description): Adjust for the new character code.
aca7a3d2
MB
10528 (describe_vector): Call describe_char_table for a char table.
10529 (describe_char_table): New function.
10530
10531 * keymap.h (describe_char_table): Extern it.
10532
10533 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
10534 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
1f45f627
GM
10535 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
10536 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
10537 Delete.
10538 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
aca7a3d2
MB
10539 structure.
10540 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
1f45f627
GM
10541 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
10542 (CHARTAB_SIZE_BITS_3): New macros.
aca7a3d2 10543 (chartab_size): Extern it.
1f45f627 10544 (struct Lisp_Char_Table): Re-design.
aca7a3d2 10545 (struct Lisp_Sub_Char_Table): New structure.
1f45f627
GM
10546 (HASH_KEY, HASH_VALUE): Move from fns.c.
10547 (CHARACTERBITS): Define as 22.
10548 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
aca7a3d2
MB
10549 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
10550 (GC_SUB_CHAR_TABLE_P): New macro.
1f45f627
GM
10551 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
10552 (code_convert_string_norecord): Deleted extern.
10553 (init_character_once, syms_of_character, init_charset)
10554 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
aca7a3d2
MB
10555
10556 * lread.c: Include "character.h".
10557 (read_multibyte): New arg NBYTES.
1f45f627
GM
10558 (read_escape): Change the meaning of returned *BYTEREP.
10559 (to_multibyte): Delete.
10560 (read1): Adjust the handling of char table and string.
aca7a3d2
MB
10561
10562 * print.c: Include "character.h" instead of "charset.h".
10563 (print_string): Convert 8-bit raw bytes to octal form by
10564 string_escape_byte8.
1f45f627 10565 (print_object): Adjust for the new multibyte form. Print 8-bit
aca7a3d2
MB
10566 raw bytes always in octal form. Handle sub char table correctly.
10567
10568 * process.c: Include "character.h" instead of "charset.h".
4c4475a8
GM
10569 (read_process_output, send_process): Adjust for the new
10570 code-conversion API.
aca7a3d2 10571
1f45f627 10572 * puresize.h (BASE_PURESIZE): Increase.
aca7a3d2
MB
10573
10574 * regex.c: Include "character.h" instead of "charset.h".
10575 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
10576 (regex_compile): Accept a range whose starting and ending
10577 character have different leading bytes.
1f45f627 10578 (analyse_first): Adjust for the above change.
aca7a3d2
MB
10579
10580 * search.c: Include "character.h" instead of "charset.h".
1f45f627
GM
10581 (search_buffer, boyer_moore): Adjust for the new multibyte form.
10582 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
aca7a3d2
MB
10583
10584 * syntax.c: Include "character.h" instead of "charset.h".
1f45f627 10585 (syntax_parent_lookup): Delete.
aca7a3d2 10586 (Fmodify_syntax_entry): Accept a cons as CHAR.
1f45f627 10587 (skip_chars): Adjust for the new multibyte form.
aca7a3d2
MB
10588 (init_syntax_once): Call char_table_set_range instead of directly
10589 accessing the structure of a char table.
10590
10591 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
1f45f627 10592 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
aca7a3d2
MB
10593 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
10594 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
10595
10596 * term.c: Include "buffer.h" and "character.h".
4c4475a8
GM
10597 (encode_terminal_code, write_glyphs): Adjust for the new
10598 code-conversion API.
aca7a3d2
MB
10599 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
10600
1f45f627 10601 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
aca7a3d2
MB
10602
10603 * xdisp.c: Include "character.h".
1f45f627
GM
10604 (get_next_display_element): Adjust for the new multibyte form.
10605 (disp_char_vector): Adjust for the new char table structure.
10606 (decode_mode_spec_coding): Adjust for the new structure of
aca7a3d2 10607 coding system.
1f45f627 10608 (decode_mode_spec): Adjust for the new code-conversion API.
aca7a3d2
MB
10609
10610 * xfaces.c: Include "character.h" instead of "charset.h".
1f45f627 10611 (load_face_font): Adjust for the change of choose_face_font and
aca7a3d2
MB
10612 FS_LOAD_FONT.
10613 (generate_ascii_font): New function.
1f45f627
GM
10614 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
10615 (set_font_frame_param): Adjust for the change of choose_face_font.
aca7a3d2 10616 (free_realized_face): Make it public.
1f45f627 10617 (free_realized_faces_for_fontset): Rename from
aca7a3d2 10618 free_realized_multibyte_face. Free also faces realized for ASCII.
1f45f627 10619 (choose_face_font): Change arguments. Adjust for the change of
aca7a3d2
MB
10620 fontset_font_pattern and FS_LOAD_FONT.
10621
10622 * xfns.c: Include "character.h".
1f45f627 10623 (x_encode_text): Adjust for the new code-conversion API.
aca7a3d2
MB
10624
10625 * xselect.c: Don't include "charset.h".
1f45f627 10626 (selection_data_to_lisp_data): Adjust for the new code conversion API.
aca7a3d2
MB
10627
10628 * xterm.c: Include "character.h".
1f45f627 10629 (x_encode_char): New argument CHARSET. Change caller.
4c4475a8
GM
10630 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
10631 Call ENCODE_CHAR instead of SPLIT_CHAR.
aca7a3d2
MB
10632 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
10633 CHAR_WIDTH instead of CHARSET_WIDTH.
1f45f627
GM
10634 (XTread_socket): Adjust for the new code-conversion API.
10635 (x_new_font): Adjust for the change of FS_LOAD_FONT.
10636 (x_load_font): Adjust for the change of struct font.
aca7a3d2 10637
d6abfc14
SM
106382008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
10639
10640 * xfaces.c (face_at_buffer_position): Remove unused vars.
10641
0acdaf8d
KH
106422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10643
4c4475a8
GM
10644 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
10645 Fix overflow checking.
0acdaf8d 10646
6c8a0ebf
GM
106472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10648
10649 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
10650 Cancel previous change.
10651
106522008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
10653
10654 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
10655 ccl->eight_bit_control. Fix check for buffer overflow.
10656 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
10657 (ccl_driver): Initialize extra_bytes to 0.
10658
a32aad64
KH
106592008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
10660
10661 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
10662 return it ORed with ctrl_modifier.
10663
8b329dba
MB
106642008-01-29 Miles Bader <miles@gnu.org>
10665
10666 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
10667
548667aa
JR
106682008-01-28 Jason Rumney <jasonr@gnu.org>
10669
10670 * w32.c (stat): Don't double check for networked drive.
10671
0975aa24
SM
106722008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
10673
ef264c42
SM
10674 * window.c (run_window_configuration_change_hook): New function.
10675 Code extracted from set_window_buffer. Set the selected frame.
10676 (set_window_buffer): Use it.
10677 * window.h (run_window_configuration_change_hook): Declare.
10678 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
10679
0975aa24
SM
10680 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
10681
9c28b587
DN
106822008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
10683
10684 * Makefile.in: Remove references to unused macros.
10685
c617afce
EZ
106862008-01-26 Eli Zaretskii <eliz@gnu.org>
10687
10688 * w32.c (g_b_init_get_sid_sub_authority)
10689 (g_b_init_get_sid_sub_authority_count): New static variables.
10690 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
10691 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
0975aa24
SM
10692 (init_user_info): Use them to retrieve uid and gid.
10693 Use 500/513, the Windows defaults, as Administrator's uid/gid.
248c21c5
EZ
10694 (fstat): Use pw_uid and pw_gid from the_passwd structure for
10695 st_uid and st_gid of the file.
c617afce 10696
302d7d54
JR
106972008-01-26 Jason Rumney <jasonr@gnu.org>
10698
10699 * w32.c (logon_network_drive): New function.
10700 (stat): Use it.
10701
3ac7a21e
CY
107022008-01-26 Chong Yidong <cyd@stupidchicken.com>
10703
10704 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
10705 invisible text covered with an ellipsis.
10706
bbb9fc1f
RS
107072008-01-25 Richard Stallman <rms@gnu.org>
10708
10709 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
10710 jump back to beginning. Move some other initializations after that.
10711 (Qwindow_text_change_functions, Vwindow_text_change_functions):
10712 New variables.
10713 (syms_of_xdisp): Init them.
10714
10715 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
10716
0975aa24
SM
10717 * buffer.c (reset_buffer_local_variables):
10718 Implement `permanent-local-hook'.
bbb9fc1f 10719 (Qpermanent_local_hook): New variable.
0975aa24 10720 (syms_of_buffer): Init and staticpro it.
bbb9fc1f 10721
79235cbe
MA
107222008-01-25 Michael Albinus <michael.albinus@gmx.de>
10723
10724 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
10725
ccd8f7fe
TTN
107262008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
10727
10728 * fns.c (Fclrhash): Return TABLE.
10729
dfbe40f2 107302008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
223b3d1d
YM
10731
10732 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
10733 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
10734 is set even without positional changes.
10735 (x_scroll_bar_clear): Set bar->redraw_needed_p.
10736
10737 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
10738
dfbe40f2 107392008-01-23 Jason Rumney <jasonr@gnu.org>
602e142f 10740
d6169680
JR
10741 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
10742
602e142f
JR
10743 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
10744 the unicode range available in MULE by locale-coding-system.
c041e2d1 10745 Improve dbcs lead byte detection. Set event timestamp and modifiers
602e142f
JR
10746 earlier.
10747
dfbe40f2 107482008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5ee4de53
YM
10749
10750 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
10751 [MAC_OSX] (init_mac_osx_environment): Initialize it.
6f69e89b 10752 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
5ee4de53
YM
10753 when used on child processes.
10754
8c7a4ac5
MA
107552008-01-21 Michael Albinus <michael.albinus@gmx.de>
10756
e0df1b73 10757 * dbusbind.c (Fdbus_method_return_internal): Rename from
8c7a4ac5 10758 Fdbus_method_return.
e0df1b73 10759 (Fdbus_unregister_object): Move to dbus.el.
8c7a4ac5 10760 (Fdbus_call_method, Fdbus_method_return_internal)
e0df1b73 10761 (Fdbus_send_signal): Improve debug messages.
8c7a4ac5 10762
8abe0f97
MR
107632008-01-20 Martin Rudalics <rudalics@gmx.at>
10764
10765 * undo.c (undo_inhibit_record_point): New variable.
10766 (syms_of_undo): Initialize it.
10767 (record_point): Don't record point when undo_inhibit_record_point
10768 is set.
10769
c3b232e4
SM
107702008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
10771
e69c4cae
SM
10772 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
10773
823e0ebb
SM
10774 * xdisp.c (Qauto_hscroll_mode): New var.
10775 (syms_of_xdisp): Initialize it.
10776 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
10777 window's buffer.
10778 (hscroll_windows): Don't check automatic_hscrolling_p here.
10779
c3b232e4
SM
10780 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
10781 vscroll if we're setting window-buffer to the value it already has.
10782
76ed5e01
DN
107832008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
10784
10785 * m/intel386.h: Remove references to XENIX.
10786
55e6d9b2
AS
107872008-01-17 Andreas Schwab <schwab@suse.de>
10788
10789 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
10790 instead of HAVE_X86_64_LIB64_DIR.
10791 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
10792
b16ed52d
GM
107932008-01-17 Glenn Morris <rgm@gnu.org>
10794
10795 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
10796 to HAVE_X86_64_LIB64_DIR.
10797
6bed5c4a
DN
107982008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
10799
10800 * s/irix3-3.h:
10801 * s/irix4-0.h:
10802 * s/386-ix.h:
10803 * s/domain.h:
10804 * s/hpux9-x11r4.h:
10805 * s/hpux9shxr4.h: Remove files for systems no longer supported.
10806
10807 * sysdep.c: Remove code containing references to symbols defined
10808 by unsupported systems.
10809
fdecf907
GM
108102008-01-16 Glenn Morris <rgm@gnu.org>
10811
10812 * coding.c (select-safe-coding-system-function): Doc fix.
10813
9292328f
GM
108142008-01-15 Glenn Morris <rgm@gnu.org>
10815
10816 * config.in: Revert 2008-01-13 change: this is a generated file.
10817
944df511
MO
108182008-01-13 Tom Tromey <tromey@redhat.com>
10819
10820 * lisp.h: Fix typo.
10821
8111ec05
DN
108222008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
10823
f40f5dc3
DN
10824 * m/sequent-ptx.h:
10825 * m/sequent.h:
10826 * s/ptx.h:
10827 * s/ptx4-2.h:
10828 * s/ptx4.h: Remove files for systems no longer supported.
10829
ce20b664 10830 * callproc.c (Fcall_process): Fix previous change.
8111ec05 10831
e39a993c
DN
108322008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
10833
052e457f 10834 * unexsunos4.c: Remove file, system not supported anymore.
e39a993c 10835
290afd83
JB
10836 * m/mips.h:
10837 * m/intel386.h:
e39a993c
DN
10838 * callproc.c:
10839 * config.in:
10840 * ecrt0.c:
10841 * emacs.c:
10842 * fileio.c:
10843 * frame.c:
10844 * getpagesize.h:
10845 * keyboard.c:
10846 * lread.c:
10847 * process.c:
10848 * puresize.h:
10849 * sysdep.c:
10850 * systty.h:
10851 * syswait.h:
10852 * unexec.c:
10853 * xdisp.c:
10854 * alloc.c: Remove code containing references to symbols defined by
10855 unsupported systems.
10856
81cd7687
KH
108572008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
10858
10859 * coding.c (detect_coding_mask): Fix previous change.
10860
218b3b76
KH
108612008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
10862
10863 * coding.c (detect_coding_iso2022): New arg
10864 latin_extra_code_state. Allow Latin extra codes only
10865 when *latin_extra_code_state is nonzero.
10866 (detect_coding_mask): If there is a NULL byte, detect the encoding
10867 as UTF-16 or binary. If Latin extra codes exist, detect the
10868 encoding as ISO-2022 only when there's no other proper encoding is
10869 found.
10870
59ce725a 108712008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
081f2203 10872
59ce725a
MB
10873 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
10874 #ifdef MAC_OS.
048addec 10875
59ce725a 108762008-01-08 Richard Stallman <rms@gnu.org>
048addec 10877
59ce725a 10878 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
048addec 10879
8290574e
NR
108802008-01-06 Nick Roberts <nickrob@snap.net.nz>
10881
a0a3805c 10882 * keyboard.c (parse_menu_item): Don't enclose key bindings on
8290574e
NR
10883 menu bar in parentheses.
10884
f3041af1
DN
108852008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
10886
10887 * m/7300.h:
10888 * m/acorn.h:
10889 * m/alliant-2800.h:
10890 * m/alliant.h:
10891 * m/alliant1.h:
10892 * m/alliant4.h:
10893 * m/altos.h:
10894 * m/amdahl.h:
10895 * m/apollo.h:
10896 * m/att3b.h:
10897 * m/aviion-intel.h:
10898 * m/aviion.h:
10899 * m/celerity.h:
10900 * m/clipper.h:
10901 * m/cnvrgnt.h:
10902 * m/convex.h:
10903 * m/cydra5.h:
10904 * m/delta88k.h:
10905 * m/dpx2.h:
10906 * m/dual.h:
10907 * m/elxsi.h:
10908 * m/f301.h:
10909 * m/gould-np1.h:
10910 * m/gould.h:
10911 * m/i860.h:
10912 * m/ibmps2-aix.h:
10913 * m/ibmrt-aix.h:
10914 * m/ibmrt.h:
10915 * m/irist.h:
10916 * m/is386.h:
10917 * m/isi-ov.h:
10918 * m/mega68.h:
10919 * m/mg1.h:
10920 * m/news-r6.h:
10921 * m/news-risc.h:
10922 * m/news.h:
10923 * m/nh3000.h:
10924 * m/nh4000.h:
10925 * m/ns16000.h:
10926 * m/ns32000.h:
10927 * m/nu.h:
10928 * m/orion.h:
10929 * m/orion105.h:
10930 * m/paragon.h:
10931 * m/pfa50.h:
10932 * m/plexus.h:
10933 * m/pyramid.h:
10934 * m/pyrmips.h:
10935 * m/sh3el.h:
10936 * m/sps7.h:
10937 * m/sr2k.h:
10938 * m/stride.h:
10939 * m/sun1.h:
10940 * m/sun2.h:
10941 * m/sun3-68881.h:
10942 * m/sun3-fpa.h:
10943 * m/sun3-soft.h:
10944 * m/sun3.h:
10945 * m/sun386.h:
10946 * m/symmetry.h:
10947 * m/tad68k.h:
10948 * m/tahoe.h:
10949 * m/targon31.h:
10950 * m/tek4300.h:
10951 * m/tekxd88.h:
10952 * m/tower32.h:
10953 * m/tower32v3.h:
10954 * m/ustation.h:
10955 * m/wicat.h:
10956 * m/xps100.h:
10957 * s/cxux.h:
10958 * s/cxux7.h:
10959 * s/dgux.h:
10960 * s/dgux4.h:
10961 * s/dgux5-4-3.h:
10962 * s/dgux5-4r2.h:
10963 * s/esix.h:
10964 * s/esix5r4.h:
10965 * s/hiuxmpp.h:
10966 * s/hiuxwe2.h:
10967 * s/iris3-5.h:
10968 * s/iris3-6.h:
10969 * s/isc2-2.h:
10970 * s/isc3-0.h:
10971 * s/isc4-0.h:
10972 * s/isc4-1.h:
10973 * s/newsos5.h:
10974 * s/newsos6.h:
10975 * s/osf1.h:
10976 * s/osf5-0.h:
10977 * s/riscix1-1.h:
10978 * s/riscix12.h:
10979 * s/sco4.h:
10980 * s/sco5.h:
10981 * s/sunos4-0.h:
10982 * s/sunos4-1.h:
10983 * s/sunos413.h:
10984 * s/sunos4shr.h:
10985 * s/umax.h:
10986 * s/unipl5-2.h:
10987 * s/xenix.h:
10988 * cxux-crt0.s:
10989 * unexapollo.c:
10990 * unexconvex.c:
10991 * unexenix.c:
10992 * unexsni.c: Remove files for systems no longer supported.
10993
10994 * m/intel386.h: Remove references to unsupported systems.
10995
10996 * w32.c (get_emacs_configuration): Remove reference to i860.
10997
10998 * sysdep.c: Remove dead code.
10999
d35e1cd7
DN
110002008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
11001
11002 * s/rtu.h:
a0a3805c 11003 * m/masscomp.h: Remove files. Platform is obsolete.
d35e1cd7 11004
abe136ee
MA
110052008-01-04 Michael Albinus <michael.albinus@gmx.de>
11006
11007 * dbusbind.c (Fdbus_method_return): New function.
11008 (xd_read_message): Add the serial number to the event.
11009 (Fdbus_register_method): Activate the function.
11010
87df3c32
SM
110112008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
11012
11013 * keyboard.c (read_key_sequence): Fix typo.
11014
5125905e
MA
110152008-01-03 Michael Albinus <michael.albinus@gmx.de>
11016
11017 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
11018 (xd_signature, xd_append_arg): Handle element type detection for
11019 empty arrays.
11020 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
11021 SDATA () calls; this must be solved more general.
11022 (Fdbus_register_signal): Use SBYTES instead of strlen.
11023
8bba1b5c
MH
110242008-01-03 Magnus Henoch <magnus@zemdatav>
11025
11026 * dbusbind.c (xd_append_arg): Use unsigned char instead of
11027 unsigned int for byte values (necessary for big-endian platform).
2c3a8b27 11028 (Fdbus_call_method): Handle the case of no returned arguments.
8bba1b5c 11029
a0a3805c 110302007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
15f16c1b
MA
11031
11032 * dbusbind.c (xd_read_message): Use non-static input_event struct.
11033
a271e124
MH
110342007-12-31 Magnus Henoch <mange@freemail.hu>
11035
11036 * dbusbind.c (xd_signature): Signature of variant is just "v".
11037
17bc8f94
MA
110382007-12-30 Michael Albinus <michael.albinus@gmx.de>
11039
87df3c32 11040 * dbusbind.c: Fix several errors and compiler warnings.
1f204af3 11041 Reported by Tom Tromey <tromey@redhat.com>.
17bc8f94
MA
11042 (XD_ERROR, XD_DEBUG_MESSAGE)
11043 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
11044 (xd_append_arg): Part for basic D-Bus types rewitten.
11045 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
11046 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
11047 appropriate.
11048 (xd_read_message): Return Qnil. Don't signal an error; it is not
11049 useful during event reading.
11050 (Fdbus_register_signal): Signal an error if the check for
11051 FUNCTIONP fails.
11052 (Fdbus_register_method): New function. The implementation is not
11053 complete, the call of the function signals an error therefore.
11054 (Fdbus_unregister_object): New function, renamed from
11055 Fdbus_unregister_signal. The initial check signals an error, if
5125905e 11056 the object is not well formed.
17bc8f94 11057
dd6f2802
RS
110582007-12-30 Richard Stallman <rms@gnu.org>
11059
11060 * textprop.c (get_char_property_and_overlay):
11061 Signal error if POSITION is out of range in a buffer.
11062
1da8a031
MR
110632007-12-29 Martin Rudalics <rudalics@gmx.at>
11064
11065 * w32fns.c (Fx_create_frame): Make copy of frame parameters
11066 because the original parameters are in pure storage now.
11067
5742be86
YM
110682007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11069
11070 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
11071
b014713c
EZ
110722007-12-22 Eli Zaretskii <eliz@gnu.org>
11073
b17f53ab
MB
11074 * callint.c (syms_of_callint) <command-history>: Add reference to
11075 history-length in the doc string.
048addec 11076
b17f53ab 110772007-12-17 Jason Rumney <jasonr@gnu.org>
048addec 11078
b17f53ab
MB
11079 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
11080 before passing as wParam.
048addec 11081
9af5078b
MA
110822007-12-22 Michael Albinus <michael.albinus@gmx.de>
11083
11084 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
11085 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
11086 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
11087 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
11088 as number.
11089 (Fdbus_call_method): Fix docstring.
11090
87cf1a39
MA
110912007-12-21 Michael Albinus <michael.albinus@gmx.de>
11092
11093 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
11094 New macros.
87df3c32 11095 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
a0a3805c
JB
11096 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
11097 Simplify.
87cf1a39
MA
11098 (xd_signature): New function.
11099 (xd_append_arg): Compute also signatures. Major rewrite.
11100 (xd_retrieve_arg): Make debug messages friendly.
87df3c32
SM
11101 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
11102 Check for signatures of arguments.
87cf1a39 11103
54371585
MA
111042007-12-19 Michael Albinus <michael.albinus@gmx.de>
11105
11106 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
11107 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
11108 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
11109 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
11110 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
87df3c32 11111 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
54371585
MA
11112 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
11113 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
87df3c32 11114 (xd_retrieve_value): Remove. Functionality included in ...
54371585
MA
11115 (xd_append_arg): New function.
11116 (Fdbus_call_method, Fdbus_send_signal): Apply it.
11117
f5306ca3
MA
111182007-12-16 Michael Albinus <michael.albinus@gmx.de>
11119
11120 * dbusbind.c (top): Include <stdio.h>.
11121 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
11122 dbus_message_new_method_call and dbus_message_new_signal.
87df3c32
SM
11123 (Fdbus_register_signal): Rename unique_name to uname.
11124 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
f5306ca3
MA
11125 non-existing unique name. Fix typos in matching rule. Return an
11126 object which is useful in Fdbus_unregister_signal.
11127 (Fdbus_unregister_signal): Reimplementation, in order to remove
11128 only the corresponding entry.
11129 (Vdbus_registered_functions_table): Change the order of entries.
11130 Apply these changes in xd_read_message and Fdbus_register_signal.
11131
77a28bbf
AS
111322007-12-16 Andreas Schwab <schwab@suse.de>
11133
11134 * fileio.c (Finsert_file_contents): Fix overflow check to not
11135 depend on undefined integer overflow.
11136
2e3566d8
JR
111372007-12-14 Jason Rumney <jasonr@gnu.org>
11138
11139 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
11140 for characters above 127.
11141
bf254037
JR
111422007-12-13 Jason Rumney <jasonr@gnu.org>
11143
11144 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
11145 before dereferencing array.
11146 (lookup_vk_code): Remove zero comparison.
11147
eb7c7bf5
MA
111482007-12-14 Michael Albinus <michael.albinus@gmx.de>
11149
11150 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
87df3c32
SM
11151 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
11152 Use `unsigned int' instead of `uint'.
eb7c7bf5
MA
11153 (xd_read_message, Fdbus_register_signal): Split expressions into
11154 multiple lines before operators "&&" and "||", according to the
11155 GNU Coding Standards.
11156
34fb0fc9
EZ
111572007-12-14 Eli Zaretskii <eliz@gnu.org>
11158
11159 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
11160
c7d97628
JL
111612007-12-12 Juri Linkov <juri@jurta.org>
11162
11163 * buffer.c (Frename_buffer): In interactive spec replace
11164 `read-buffer' with `read-string' that uses `buffer-name-history'
11165 as history, and the current buffer's name as default.
11166
3709505e
SM
111672007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
11168
11169 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
11170 manipulating the backtrace manually.
11171 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
11172 (struct backtrace, backtrace_list): Remove.
11173 (command_loop_1): Remove dead var `no_direct'.
11174
11175 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
11176 preserve non-built-in buffer-local variables.
11177 (Fkill_all_local_variables): Don't re-create&re-set permanent
11178 buffer-local variables.
11179
e2bec886
JL
111802007-12-09 Juri Linkov <juri@jurta.org>
11181
11182 * buffer.c (Frename_buffer): Change interactive spec from "s" to
11183 Lisp code that uses `read-buffer' with current buffer as default.
11184
a31d47c7
MA
111852007-12-08 Michael Albinus <michael.albinus@gmx.de>
11186
11187 * dbusbind.c (xd_read_message): Generate an event for every
11188 registered handler. There might be several handlers registered
11189 for the same signal.
11190 (Fdbus_register_signal): Don't overwrite a registration for the
11191 same signal. Add a new registration if handlers are different.
11192 (Vdbus_registered_functions_table): Rework doc string.
11193
52da95fa
MA
111942007-12-07 Michael Albinus <michael.albinus@gmx.de>
11195
11196 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
11197 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
11198 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
11199 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
11200 Unify argument lists.
a0a3805c 11201 (xd_read_message, Fdbus_register_signal): Reorder and extend event
52da95fa
MA
11202 arguments and hash table keys. Use unique name for service.
11203 (Fdbus_unregister_signal): Remove checks.
11204 (Vdbus_registered_functions_table): Fix doc string.
11205
e5e76c04 112062007-12-05 Magnus Henoch <mange@freemail.hu>
0277bfa1
RS
11207
11208 * process.c (make_process): Initialize pty_flag to 0.
11209
e5e76c04 112102007-12-05 Jason Rumney <jasonr@gnu.org>
44b1dc2e
JR
11211
11212 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
11213 specified XBMs.
11214
e5e76c04 112152007-12-05 Richard Stallman <rms@gnu.org>
048addec 11216
e5e76c04 11217 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
048addec 11218
e5e76c04 112192007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 11220
e5e76c04
MB
11221 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
11222 New variable.
11223 (mac_try_close_socket) [MAC_OSX]: New function.
11224 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
11225 Update cfsockets_for_select. Replace invalid CFRunLoop source.
048addec 11226
e5e76c04
MB
11227 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
11228 Use mac_try_close_socket.
048addec 11229
e5e76c04 112302007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 11231
e5e76c04
MB
11232 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
11233 reloc_base.
11234 (copy_dysymtab): Compute relocation base here.
11235 (rebase_reloc_address) [__ppc64__]: New function.
11236 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
11237 changed.
048addec 11238
e5e76c04 112392007-12-05 Jason Rumney <jasonr@gnu.org>
048addec 11240
e5e76c04 11241 * w32proc.c (sys_spawnve): Quote args with wildcards.
048addec 11242
e5e76c04 112432007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 11244
e5e76c04
MB
11245 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
11246 __objc_* sections.
11247 (unrelocate) [_LP64]: Set relocation base to address of data segment.
048addec 11248
96faeb40
MA
112492007-12-05 Michael Albinus <michael.albinus@gmx.de>
11250
11251 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
11252 Move check for Vdbus_registered_functions_table to
11253 xd_read_queued_messages.
11254 (xd_read_queued_messages): Protect xd_read_message calls by
11255 internal_condition_case_1.
11256
39abdd4a
MA
112572007-12-04 Michael Albinus <michael.albinus@gmx.de>
11258
87df3c32 11259 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
39abdd4a 11260 Qdbus_system_bus and Qdbus_session_bus, respectively.
87df3c32 11261 (Vdbus_intern_symbols): Remove.
39abdd4a 11262 (Vdbus_registered_functions_table): New hash table.
87df3c32 11263 (XD_SYMBOL_INTERN_SYMBOL): Remove.
39abdd4a 11264 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
87df3c32 11265 Rewrite in order to manage registered functions by hash table
39abdd4a
MA
11266 Vdbus_registered_functions_table.
11267
880820fe 112682007-12-03 Jan Djärv <jan.h.d@swipnet.se>
7ba30657
JD
11269
11270 * xterm.c: Update URL to Window Manager Specification in comment.
11271
033b73e2
MA
112722007-12-02 Michael Albinus <michael.albinus@gmx.de>
11273
11274 * config.in (HAVE_DBUS): Add.
11275
a0a3805c 11276 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
033b73e2
MA
11277 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
11278 (obj): Add $(DBUS_OBJ).
11279 (LIBES): Add $(DBUS_LIBS).
11280 (dbusbind.o): New target.
11281
11282 * dbusbind.c: New file.
11283
11284 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
11285
11286 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
a0a3805c 11287 (Qdbus_event): New Lisp symbol.
033b73e2 11288 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
87df3c32 11289 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
033b73e2
MA
11290 (keys_of_keyboard ): Define dbus-event.
11291
11292 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
11293
39d0bf74
RS
112942007-12-01 Richard Stallman <rms@gnu.org>
11295
11296 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
11297
f3157c65
JR
112982007-11-30 Jason Rumney <jasonr@gnu.org>
11299
11300 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
11301 (w32con_reset_terminal_modes): Clear screen buffer.
f1e8dcf1
JR
11302 (w32_face_attributes): Don't use color indexes that are out of range.
11303 Only reverse the default colors.
f3157c65
JR
11304
11305 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
11306 WINDOWSNT.
11307
11308 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
11309
b510360c
JR
113102007-11-29 Jason Rumney <jasonr@gnu.org>
11311
11312 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
11313 (w32_face_attributes): Use Vtty_defined_color_alist to determine
11314 if the terminal colors are initialized.
11315 (unspecified_fg, unspecified_bg): Remove unused declarations.
11316
4b7ab1c4
AS
113172007-11-29 Andreas Schwab <schwab@suse.de>
11318
11319 * keyboard.c (apply_modifiers): Fix typo.
11320
4bb6c266
RS
113212007-11-29 Richard Stallman <rms@gnu.org>
11322
11323 * keymap.c (Fcurrent_local_map): Doc fix.
11324
aa44cd84
GM
113252007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
11326
11327 * s/gnu-kfreebsd.h: New file.
11328
21ec2c43
SM
113292007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
11330
cc648cef
SM
11331 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
11332 Don't cast redundantly.
11333
21ec2c43
SM
11334 * keyboard.c (KEY_TO_CHAR): New macro.
11335 (parse_modifiers, apply_modifiers): Accept integer arguments.
11336 (read_key_sequence): Use them to unify the "shift->unshift" mapping
11337 for chars and symbol keys.
11338 After doing such remapping, apply function-key-map again.
11339
73e72da4
DN
113402007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
11341
11342 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
11343 compiled anymore.
11344
254693ff
AS
113452007-11-26 Andreas Schwab <schwab@suse.de>
11346
11347 * process.c (list_processes_1): Fix indentation level of the
11348 command column.
11349
ff6e6ac8
AS
113502007-11-23 Andreas Schwab <schwab@suse.de>
11351
11352 * editfns.c (Fformat): Handle %c specially since it requires the
11353 argument to be of type int.
11354
f7cf8b20
SM
113552007-11-23 Markus Triska <markus.triska@gmx.at>
11356
11357 * emacs.c (main): Call init_editfns before init_process, since
2a2e8de7 11358 init_process sets Vprocess_connection_type depending on OS release.
f7cf8b20 11359
569c11e3
SM
113602007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
11361
8787dd73
SM
11362 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
11363 (find_symbol_value): Use do_symval_forwarding.
11364
569c11e3
SM
11365 * data.c (set_internal): Set the value in the `cons-cell' (for
11366 Buffer_Local_values) not only for frame-local variables.
11367
6af1696d
AS
113682007-11-22 Andreas Schwab <schwab@suse.de>
11369
11370 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
11371 values to sprintf.
11372 * keymap.c (Fsingle_key_description): Likewise.
11373 * print.c (print_object): Likewise.
11374
880820fe 113752007-11-22 Jan Djärv <jan.h.d@swipnet.se>
d4ad8c04
JD
11376
11377 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
11378 file for image is nil.
11379
7c401d15
DN
113802007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
11381
11382 * term.c: Include stdarg.h.
569c11e3 11383 (fatal): Implement using varargs.
a0a3805c 11384 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
7c401d15 11385
64e16c3c
SM
113862007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
11387
11388 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
11389 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
11390 Update call to buffer_slot_type_mismatch.
11391 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
11392 (buffer_slot_type_mismatch): Update.
11393 * buffer.c (buffer_local_types): Remove.
11394 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
11395 (defvar_per_buffer): Set the type in the buffer_objfwd.
11396
d4aa48db 113972007-11-21 Jason Rumney <jasonr@gnu.org>
5f42a7eb 11398
64e16c3c
SM
11399 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
11400 CreateFileMapping returns NULL on failure.
5f42a7eb 11401
d4aa48db 114022007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
048addec 11403
d4aa48db
MB
11404 * search.c (Fset_match_data): Remove the `evaporate' feature.
11405 (unwind_set_match_data): Don't use the `evaporate' feature.
437dfb9f 11406
bdae0540
JR
114072007-11-21 Jason Rumney <jasonr@gnu.org>
11408
11409 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
11410
11411 * w32console.c (w32con_write_glyphs): Remove unused variables.
11412
202c09a8
DN
114132007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
11414
b951420f
DN
11415 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
11416
202c09a8
DN
11417 * s/darwin.h (MULTI_KBOARD): Remove.
11418
11419 * macfns.c (x_create_tip_frame, Fx_create_frame)
11420 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
11421
bae72c12
SM
114222007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
11423
e7c10f83
SM
11424 * buffer.c (Fbuffer_local_value): Remove redundant test.
11425 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
11426 than in `current-buffer' to match the comment.
11427 Do the swap using swap_in_global_binding.
11428
136eb6ed
SM
11429 * data.c (store_symval_forwarding, set_internal):
11430 * eval.c (specbind): Remove dead code.
11431
bae72c12
SM
11432 * coding.c (detect_coding, Fupdate_coding_systems_internal):
11433 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
11434 Since we do not want to see internal Lisp_*fwd objects here.
11435
880820fe 114362007-11-18 Jan Djärv <jan.h.d@swipnet.se>
95fbaefc 11437
3d66b985
JD
11438 * sysdep.c (init_system_name): Use getaddrinfo if available.
11439
95fbaefc
JD
11440 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
11441 (x_scroll_bar_note_movement): start, end, with, height in struct
11442 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
11443
6c1d8cb6
DN
114442007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
11445
11446 * puresize.h (BASE_PURESIZE): Increase to 1190000.
11447
30f95089
SM
114482007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
11449
66b04bd4
SM
11450 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
11451 This undoes Richard's change of 14-Oct-2002.
11452
6d3f2bb2
SM
11453 * alloc.c (allocate_other_vector):
11454 * lisp.h (allocate_other_vector): Remove.
11455
b05b4e27
SM
11456 * window.c (struct save_window_data): Move non-lisp data to the end
11457 and make it `int' rather than Lisp_Object.
11458 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
11459 Done wrap/unwrap integer values.
11460 (Fset_window_configuration, compare_window_configurations):
11461 Update use of fields to their new types.
11462
056ce195
SM
11463 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
11464 Turn integer fields into `int'. Merge x_window_low and x_window_high.
11465 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
11466 (SET_SCROLL_BAR_X_WINDOW): Remove.
11467 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
11468 Access the new x_window field directly.
11469 * xterm.c (x_scroll_bar_create): Use a pseudovector.
11470 Don't wrap/unwrap integers into Lisp_Objects.
11471 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
11472 (x_scroll_bar_report_motion):
11473 Don't wrap/unwrap integers into Lisp_Objects.
11474 (x_term_init): Use SDATA.
11475 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
11476 (x_scroll_bar_set_handle, x_scroll_bar_remove)
11477 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
11478 (x_scroll_bar_report_motion, x_scroll_bar_clear):
11479 * xfns.c (x_set_background_color):
11480 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
11481 Access the new x_window field directly.
11482
30f95089
SM
11483 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
11484 (allocate_pseudovector): Make non-static.
6d3f2bb2 11485
30f95089
SM
11486 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
11487 (allocate_pseudovector): Declare.
6f69e89b 11488 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
30f95089 11489
9b6112e8
AS
114902007-11-15 Andreas Schwab <schwab@suse.de>
11491
30f95089
SM
11492 * editfns.c (Fformat): Correctly format EMACS_INT values.
11493 Also take precision into account when formatting an integer.
0f860bd7 11494
9b6112e8
AS
11495 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
11496
262fcd41
SM
114972007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
11498
58da34c7
SM
11499 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
11500 (syms_of_keyboard): Defsubr it.
11501
262fcd41
SM
11502 * data.c (swap_in_global_binding): Fix longstanding bug where
11503 store_symval_forwarding was not called with the right second argument,
11504 thus causing objfwd-ing from being dropped.
11505
d29a9848
JB
115062007-11-14 Juanma Barranquero <lekktu@gmail.com>
11507
11508 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
11509 (Fx_display_pixel_height, Fx_display_planes)
11510 (Fx_display_color_cells, Fx_server_max_request_size)
11511 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
11512 (Fx_display_visual_class, Fx_display_save_under):
11513 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
11514 (Fx_display_pixel_height, Fx_display_planes)
11515 (Fx_display_color_cells, Fx_server_max_request_size)
11516 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
11517 (Fx_display_mm_height, Fx_display_mm_width)
11518 (Fx_display_backing_store, Fx_display_visual_class)
11519 (Fw32_select_font, Fx_display_save_under):
11520 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
11521 (Fx_display_pixel_height, Fx_display_planes)
11522 (Fx_display_color_cells, Fx_server_max_request_size)
11523 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
11524 (Fx_display_save_under): Fix typos in docstrings.
11525
74084731
JB
115262007-11-14 Juanma Barranquero <lekktu@gmail.com>
11527
11528 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
11529 corresponding to deleted entries; they are an implementation detail.
11530 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
11531 Remove variables.
11532 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
11533 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
11534 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
11535 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
11536 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
d29a9848 11537 (Fw32_define_rgb_color, Fw32_load_color_file)
74084731 11538 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
02b39a28
JB
11539 Fix typos in docstrings.
11540 (Fx_server_version): Reflow docstring.
11541 (Fw32_shell_execute): Doc fixes.
74084731 11542
fb053a1f
JB
115432007-11-13 Juanma Barranquero <lekktu@gmail.com>
11544
11545 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
11546 if w32_parse_hot_key returned nil.
11547
a457417e 115482007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
9ec1bdb6 11549
a457417e 11550 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
9ec1bdb6 11551
4b219faa
JR
115522007-11-09 Jason Rumney <jasonr@gnu.org>
11553
11554 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
11555
11556 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
11557
11558 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
11559 Remove W32_SCROLL_BAR_CLICK_EVENT.
11560
11561 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
11562 Add MULTIMEDIA_KEY_EVENT.
11563
11564 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
11565 (lispy_multimedia_keys) [WINDOWSNT]: New array.
11566 (make_lispy_event) [WINDOWSNT]: Use it to translate
11567 MULTIMEDIA_KEY_EVENT.
11568
11569 * w32term.h (WM_APPCOMMAND): Define if not already.
11570 (GET_APPCOMMAND_LPARAM): Likewise.
11571
11572 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
11573 WM_APPCOMMAND.
11574
11575 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
11576 (syms_of_w32fns): Export and initialize it.
11577 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
11578
c12ecb0a 115792007-11-09 Chong Yidong <cyd@stupidchicken.com>
d388d2ac
CY
11580
11581 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
11582 twice.
11583
11584 * xdisp.c (handle_face_prop): Fix last change.
11585
c12ecb0a 115862007-11-09 Richard Stallman <rms@gnu.org>
048addec 11587
c12ecb0a
MB
11588 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
11589 not just for after-strings and before-strings.
11590 Call face_for_overlay_string and pass the overlay to it.
11591 (handle_display_prop): Determine whether property came from an overlay.
11592 Pass OVERLAY arg to handle_single_display_spec.
11593 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
11594 (load_overlay_strings): Fill in it->string_overlays.
11595 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
b5cb6072 11596
c12ecb0a
MB
11597 * xfaces.c (face_for_overlay_string): Function renamed from
11598 face_at_buffer_position_no_overlays, and add arg OVERLAY.
b5cb6072 11599
c12ecb0a
MB
11600 * dispextern.h (struct it): New elt string_overlays.
11601 New elt from_overlay, also in stack.
11602 Rearrange a few elements.
11603 (face_for_overlay_string): Decl renamed from
11604 face_at_buffer_position_no_overlays, and add argument.
15fff01d 11605
c12ecb0a 116062007-11-09 Richard Stallman <rms@gnu.org>
0065bb74 11607
c12ecb0a
MB
11608 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
11609 to get the base face for an overlay string.
0d8466cc 11610
c12ecb0a 11611 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
15fff01d 11612
c12ecb0a 11613 * xfaces.c (face_at_buffer_position_no_overlays): New function.
2fae9111 11614
c12ecb0a 11615 * xdisp.c (handle_stop): Move some code out of loop.
2d6c1fc0 11616
c12ecb0a 116172007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
07025a55 11618
c12ecb0a
MB
11619 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
11620 Fix conversion from Lisp object to ATSUFontID.
07025a55 11621
c12ecb0a 116222007-11-09 Jason Rumney <jasonr@gnu.org>
07025a55 11623
c12ecb0a 11624 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
3a232704 11625
c12ecb0a 116262007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
539e92ad 11627
c12ecb0a
MB
11628 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
11629 Don't assume regions are aligned to page boundary.
11630 (print_load_command_name): Add LC_UUID if defined.
3a232704 11631
c12ecb0a 116322007-11-09 Richard Stallman <rms@gnu.org>
0cb8bb48 11633
c12ecb0a 11634 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
539e92ad 11635
b8ddfbcc
JR
116362007-11-07 Jason Rumney <jasonr@gnu.org>
11637
11638 * s/windows95.h: Remove.
11639
880820fe 116402007-11-06 Jan Djärv <jan.h.d@swipnet.se>
e624c3f9
JD
11641
11642 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
11643 abort with a message on unhandled store_type values.
11644
880820fe 116452007-11-01 Jan Djärv <jan.h.d@swipnet.se>
ac1278c1
JD
11646
11647 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
11648 Remove HAVE_X11R5 and HAVE_X11R4.
11649
04a697fe
DN
116502007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
11651
11652 * Makefile.in: Remove references to sunfns.c and sunfns.o.
11653
880820fe 116542007-11-01 Johan Bockgård <bojohan@gnu.org>
56dad874
GM
11655
11656 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
fb053a1f 11657 Don't set s->stippled_p here, since it has already been set by
56dad874
GM
11658 x_set_glyph_string_gc from x_draw_glyph_string.
11659
07e5c0b0
DN
116602007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
11661
2a2e8de7 11662 * sunfns.c: Remove file.
07e5c0b0
DN
11663
11664 * m/sun386.h:
11665 * m/sun2.h:
11666 * m/sparc.h: Remove Sun windows code.
11667
1bc973c2
SM
116682007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
11669
11670 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
11671 (init_keyboard): Set current_kboard's window-system to nil.
11672 (tty_read_avail_input): Typo.
11673 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
11674
c22140f6
DN
116752007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
11676
11677 * s/usg5-4.h:
11678 * s/usg5-3.h:
11679 * s/ptx.h:
11680 * m/is386.h:
11681 * m/ibmps2-aix.h:
2a2e8de7 11682 * Makefile.in: Remove all mentions of X10.
c22140f6
DN
11683
11684 * dispnew.c (syms_of_display): Don't mention version 10.
11685
660a8219
JB
116862007-10-28 Juanma Barranquero <lekktu@gmail.com>
11687
11688 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
11689 ($(BLD)/abbrev.$(O)): Remove.
11690
e047f448
SM
116912007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
11692
11693 Rewrite abbrev.c in Elisp.
11694 * image.c (Qcount): Don't declare as extern.
11695 (syms_of_image): Initialize and staticpro `Qcount'.
11696 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
11697 * emacs.c (main): Don't call syms_of_abbrev.
11698 * Makefile.in (obj): Remove abbrev.o.
11699 (abbrev.o): Remove.
11700 * abbrev.c: Remove.
11701
67b73e3a
MR
117022007-10-26 Martin Rudalics <rudalics@gmx.at>
11703
11704 * window.c (window_min_size_2): Don't count header-line.
11705
e3d7bd83
DN
117062007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
11707
11708 * frame.h (struct frame): Move all bit fields after the first bit
660a8219 11709 field to take advantage of the available space. Group all the
e3d7bd83
DN
11710 chars together to reduce wasted space due to padding.
11711
a3547743
JB
117122007-10-26 Juanma Barranquero <lekktu@gmail.com>
11713
e298936f
JB
11714 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
11715
d3d47262
JB
11716 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
11717 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
11718 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
11719 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
11720 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
11721 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
11722 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
11723 (last_marked, mark_object_loop_halt): Make static.
11724
a3547743
JB
11725 * frame.c (syms_of_frame) <delete-frame-functions>:
11726 Fix typo in docstring.
11727
14c71d8b
JB
117282007-10-25 Juanma Barranquero <lekktu@gmail.com>
11729
11730 * w32.c (init_environment): Fix tiny memory leak.
66199f74 11731 (w32_get_resource): Remove unused variable `ok'.
14c71d8b 11732
70b8d0a4
SM
117332007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
11734
11735 Make `window-system' into a keyboard-local variable (rather than
11736 frame-local as done originally by multi-tty).
11737
11738 * keyboard.h (struct kboard): Add Vwindow_system.
11739 * keyboard.c (init_kboard): Set a default for Vwindow_system.
11740 (mark_kboards): Mark Vwindow_system.
11741
11742 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
11743 (init_display): Don't set the obsolete `window-system' frame-param.
11744
11745 * xterm.c (x_term_init):
11746 * w32term.c (w32_create_terminal):
11747 * term.c (init_tty): Set Vwindow_system.
11748 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
11749 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
11750
11751 * xfns.c (Fx_create_frame, x_create_tip_frame):
11752 * w32fns.c (Fx_create_frame, x_create_tip_frame):
11753 * macfns.c (Fx_create_frame):
11754 Don't set the obsolete `window-system' frame-param.
11755
11756 * frame.h (Qwindow_system): Remove.
11757 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
11758 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
11759
fdc90613 117602007-10-24 Richard Stallman <rms@gnu.org>
4521d1fc 11761
fdc90613
MB
11762 * frame.c (x_figure_window_size): For fullscreen case,
11763 set USPosition | PPosition without clobbering rest of window_prompting.
7c75be36 11764
fdc90613 11765 * keyboard.c (Fcurrent_idle_time): Doc fix.
4521d1fc 11766
fdc90613 11767 * print.c (Fwith_output_to_temp_buffer): Doc fix.
4521d1fc 11768
7357cb04
SM
117692007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
11770
98228e72
SM
11771 * process.c (unwind_request_sigio): Only define if __ultrix__.
11772
1baf6db9
SM
11773 * callproc.c (child_setup): Remove spurious *.
11774
4d0ac3d7
SM
11775 * lisp.h (Fget_text_property): Declare.
11776 (have_menus_p): Declare it here rather than in sys-dep header files.
11777 * macterm.h (have_menus_p):
11778 * msdos.h (have_menus_p):
11779 * xterm.h (have_menus_p): Remove.
11780
7357cb04
SM
11781 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
11782 (Fmake_variable_frame_local): Just check the variable's const-ness
11783 rather than checking nil or t.
11784
866e6dd6
JR
117852007-10-22 Jason Rumney <jasonr@gnu.org>
11786
b00afeae
JR
11787 * w32fns.c: Include math.h.
11788 (w32_abort): Declaration moved to nt/config.nt.
0f7f11b7 11789
c8f7c76b
JR
11790 * s/ms-w32.h (HAVE_STDLIB_H): Define.
11791 (abort): Redefinition moved to nt/config.nt.
11792
866e6dd6
JR
11793 * m/windowsnt.h: Remove.
11794
e79beb56
JB
117952007-10-22 Juanma Barranquero <lekktu@gmail.com>
11796
11797 * emacs.c (Fdump_emacs): Fix typo in message.
11798 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
11799 <installation-directory>: Reflow docstring.
11800
fb30dfd2
JL
118012007-10-22 Juri Linkov <juri@jurta.org>
11802
11803 * minibuf.c: Allow minibuffer default to be a list of default values.
11804 With empty input use the first element of this list as returned default.
e79beb56 11805 (string_to_object)
0f7f11b7 11806 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
fb30dfd2
JL
11807 (read_minibuf): If defalt is cons, set histstring to its car.
11808 (Fread_string): If default_value is cons, set val to its car.
11809 (Fread_buffer): If def is cons, use its car.
11810 (Fcompleting_read): If defalt is cons, set val to its car.
11811
1f163f28
MA
118122007-10-21 Michael Albinus <michael.albinus@gmx.de>
11813
11814 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
11815
db3534c3
JB
118162007-10-20 Juanma Barranquero <lekktu@gmail.com>
11817
11818 * doc.c (Fdocumentation): Check for advice in all cases.
11819
c6f18a07
CY
118202007-10-19 Chong Yidong <cyd@stupidchicken.com>
11821
11822 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
11823
2a1534d3
RS
118242007-10-19 Richard Stallman <rms@gnu.org>
11825
11826 * doc.c (Fdocumentation): Check for and handle an advised function.
11827
7b82c3b6
JB
118282007-10-19 Juanma Barranquero <lekktu@gmail.com>
11829
11830 * process.c (Fset_process_filter): Doc fix.
11831
3278f20e
SM
118322007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
11833
11834 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
11835 which caused key-translation-map to applied repeatedly (thus breaking
11836 double-mode).
11837
99784d63
SM
118382007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
11839
11840 * xselect.c (x_own_selection, x_handle_selection_clear)
11841 (x_clear_frame_selections):
11842 * w32menu.c (list_of_panes, list_of_items):
11843 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
11844 * textprop.c (validate_plist, interval_has_all_properties)
11845 (interval_has_some_properties, interval_has_some_properties_list)
11846 (add_properties, text_property_list):
11847 * process.c (Fget_buffer_process, list_processes_1, status_notify):
11848 * minibuf.c (Fassoc_string):
11849 * macselect.c (x_own_selection, x_clear_frame_selections)
11850 (Fx_disown_selection_internal):
11851 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
11852 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
11853
44bb704d
CY
118542007-10-17 Chong Yidong <cyd@stupidchicken.com>
11855
11856 * process.c: Link to libs for calling res_init() if available.
11857 (Fmake_network_process): Call res_init() before getaddrinfo or
11858 gethostbyname, if possible.
11859
d314756e
SM
118602007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
11861
2504022a
SM
11862 * lread.c (read1): Set pvectype for char_tables.
11863
19fa82b9
SM
11864 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
11865 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
11866 Add type checks.
11867 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
11868
d314756e
SM
11869 * alloc.c (free_misc): Use XMISCTYPE.
11870 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
11871
94b9aaa2
GM
118722007-10-17 Glenn Morris <rgm@gnu.org>
11873
11874 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
11875 (syms_of_minibuf): Add Qcompletion_ignore_case.
11876 * dired.c (Qcompletion_ignore_case): Change to external.
11877 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
11878 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
11879 (Fread_file_name): Use it rather than intern'ing.
11880
11881 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
11882 (Fread_coding_system): Ignore case of user input.
11883
da6658e8
YM
118842007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11885
11886 * xdisp.c (handle_display_prop): Ignore display specs after
11887 replacing one when string text is being replaced.
11888 (handle_single_display_spec): Pretend as if characters with display
11889 property haven't been consumed only when buffer text is being replaced.
11890
11fb4bdb
SM
118912007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
11892
9beb8baa
SM
11893 * xfns.c (Fx_create_frame, Fx_display_list):
11894 * window.c (window_fixed_size_p, enlarge_window)
11895 (shrink_window_lowest_first):
11896 * macterm.c (init_font_name_table):
11897 * macfns.c (Fx_create_frame, Fx_display_list):
11898 * lread.c (close_load_descs):
11899 * keyboard.c (read_char_x_menu_prompt):
11900 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
11901 * coding.c (code_convert_region_unwind): Test the type of an object
11902 rather than just !NILP before extracting data from it.
11903
d3f41ff5
SM
11904 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
11905
67ee9f6e
SM
11906 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
11907 (XMISCANY): New macro.
11908 (XMISCTYPE): Use it.
11909 (struct Lisp_Misc_Any): New type.
11910 (union Lisp_Misc): Use it.
11911 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
11912 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
11913 (find_symbol_value, set_internal, default_value, Fset_default)
11914 (Fmake_variable_buffer_local, Fmake_local_variable)
11915 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
11916 (Flocal_variable_if_set_p, Fvariable_binding_locus):
11917 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
11918 * alloc.c (allocate_buffer): Set the size and tag.
11919 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
11920 Use XMISCANY.
11921 (die): Follow the GNU convention for error messages.
11922 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
11923 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
11924 tag any more.
11925 (set_buffer_internal_1):
11926 * frame.c (store_frame_param):
11927 * eval.c (specbind):
11928 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
11929
11fb4bdb
SM
11930 * doc.c (Fsnarf_documentation): Simplify.
11931
decb374a
JB
119322007-10-14 Juanma Barranquero <lekktu@gmail.com>
11933
11934 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
11935 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
11936
b5a40ee7
SM
119372007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
11938
11939 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
11940
35277b03
JB
119412007-10-14 Juanma Barranquero <lekktu@gmail.com>
11942
11943 * eval.c (do_autoload): Don't save autoloads.
11944
11945 * data.c (Ffset): Save autoload of the function being set.
11946
35fdaa62
GM
119472007-10-07 John Paul Wallington <jpw@pobox.com>
11948
11949 * xfns.c (x_create_tip_frame): Set the `display-type' frame
11950 parameter before setting up faces.
11951
1ea40aa2
EZ
119522007-10-13 Eli Zaretskii <eliz@gnu.org>
11953
35fdaa62 11954 * ccl.c (Fregister_code_conversion_map):
96a5affb
EZ
11955 * keyboard.c (append_tool_bar_item): Reformat last change.
11956
1ea40aa2
EZ
11957 * lisp.h (eabs): Rename from `abs'. All callers changed.
11958
35277b03 119592007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
71d00ce4
EZ
11960
11961 * buffer.c (add_overlay_mod_hooklist):
11962 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
11963 * fontset.c (make_fontset):
11964 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
11965 (append_tool_bar_item):
11966 * macmenu.c (grow_menu_items):
35fdaa62 11967 * w32menu.c (grow_menu_items):
71d00ce4 11968 * xmenu.c (grow_menu_items): Use larger_vector.
35fdaa62 11969
bc82f120
EZ
119702007-10-13 Eli Zaretskii <eliz@gnu.org>
11971
11972 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
11973 selected frame'' on MSDOS).
11974
d57d5a78
MR
119752007-10-12 Martin Rudalics <rudalics@gmx.at>
11976
11977 * frame.c (Qexplicit_name): New variable.
11978 (x_report_frame_params): Report it in parameter alist.
11979 (syms_of_frame): Intern and staticpro it.
11980
35277b03 119812007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
04710ebd
JR
11982
11983 * macfns.c (x_create_tip_frame): Set terminal for frame.
11984
c7a4b95b
SM
119852007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
11986
26f9c7b7
SM
11987 * frame.c (Qenvironment): Remove.
11988 (syms_of_frame) <Qenvironment>: Don't initialize.
11989 (Fdelete_frame): Don't treat the `environment' param specially.
11990 * frame.h (Qenvironment): Don't declare.
11991 * callproc.c (set_initial_environment): Don't set unused frame param.
11992
c7a4b95b
SM
11993 * frame.c (Fframe_with_environment): Remove.
11994 (syms_of_frame) <Sframe_with_environment>: Don't declare.
26f9c7b7 11995
c7a4b95b
SM
11996 * lisp.h (Fframe_with_environment): Don't declare.
11997
c86f7377
JB
119982007-10-10 Juanma Barranquero <lekktu@gmail.com>
11999
12000 * indent.c (indent_tabs_mode, last_known_column)
12001 (last_known_column_modified): Make static.
12002 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
12003
d1b3a122
KY
120042007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
12005
12006 * puresize.h (BASE_PURESIZE): Increase to 1170000.
12007
d57d5a78
MR
120082007-10-09 Jason Rumney <jasonr@gnu.org>
12009
12010 * w32term.c (x_set_window_size): Disable code that attempts to tell
12011 Lisp code about a size change before it actually happens.
12012
81d3d428 120132007-10-09 Richard Stallman <rms@gnu.org>
91175673 12014
81d3d428
MB
12015 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
12016 return HANDLED_RETURN.
91175673 12017
1af74d06 120182007-10-08 Martin Rudalics <rudalics@gmx.at>
4f1b1854 12019
1af74d06
MB
12020 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
12021 when there's an unread command event.
e0fead5d 12022
c7a4b95b 12023 * frame.c (focus_follows_mouse): Move here from frame.el to allow
1af74d06
MB
12024 window autoselection act appropriately when leaving selected frame.
12025 (syms_of_frame): Initialize focus_follows_mouse.
12026 * frame.h (focus_follows_mouse): Extern it.
12027 * macterm.c (XTread_socket): When focus_follows_mouse is nil
c7a4b95b 12028 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
1af74d06
MB
12029 * msdos.c (dos_rawgetc): Likewise.
12030 * w32term.c (w32_read_socket): Likewise.
12031 * xterm.c (handle_one_xevent): Likewise.
12032 * xdisp.c (syms_of_xdisp): In doc-string of
12033 mouse-autoselect-window mention focus-follows-mouse.
e0fead5d 12034
1af74d06 120352007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
e0fead5d 12036
1af74d06
MB
12037 * macterm.c (mac_load_query_font): Fix missing return value.
12038 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
12039 Add BLOCK_INPUT.
c186cdb3 12040
1af74d06 120412007-10-08 Richard Stallman <rms@gnu.org>
c186cdb3 12042
1af74d06
MB
12043 * xdisp.c (get_window_cursor_type): Implement documented behavior
12044 for cursor-in-non-selected-windows = t.
c186cdb3 12045
1af74d06 120462007-10-08 Jason Rumney <jasonr@gnu.org>
c186cdb3 12047
1af74d06 12048 * w32.c (w32_get_resource): Always close registry keys.
58cfce98 12049
1af74d06 120502007-10-08 Jason Rumney <jasonr@gnu.org>
58cfce98 12051
1af74d06 12052 * makefile.w32-in (LIBS): Add COMCTL32.
62854fe2 12053
1af74d06 12054 * w32fns.c (globals_of_w32fns): Init common controls.
62854fe2 12055
1af74d06 120562007-10-08 Richard Stallman <rms@gnu.org>
a3c83618 12057
c7a4b95b 12058 * image.c (our_memory_buffer): Rename from omfib_buffer.
656f46bb 12059
1af74d06 120602007-10-08 Richard Stallman <rms@gnu.org>
656f46bb 12061
1af74d06 12062 * buffer.c (Foverlays_at): Doc fix.
036e218d 12063
1af74d06 120642007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
036e218d 12065
1af74d06 12066 * fns.c (Fplist_put): Preserve uneven tail data.
7ddb2c16 12067
1af74d06 120682007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
7ddb2c16 12069
1af74d06 12070 * termhooks.h (enum event_kind): Remove trailing comma.
ace9b298 12071
1af74d06 12072 * frame.h (enum): Remove trailing comma.
90647b07 12073
8993ad2e 120742007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
90647b07 12075
1af74d06 12076 * w32proc.c (delete_child): Don't terminate threads of zombies.
ace9b298 12077
1af74d06 120782007-10-08 Martin Rudalics <rudalics@gmx.at>
ace9b298 12079
1af74d06 12080 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
ace9b298 12081
1af74d06
MB
12082 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
12083 last-repeatable-command.
12084 (init_kboard): Initialize Vlast_repeatable_command.
12085 (command_loop_1): Set it to real_this_command unless that was
12086 bound to an input event.
12087 (mark_kboards): Mark it.
9fbc32aa 12088
1af74d06 120892007-10-08 Richard Stallman <rms@gnu.org>
036e218d 12090
1af74d06 12091 * eval.c (condition-case): Doc fix.
9fbc32aa 12092
1af74d06 120932007-10-08 Masatake YAMATO <jet@gyve.org>
9fbc32aa 12094
1af74d06
MB
12095 * xfaces.c (tty_supports_face_attributes_p): Fix code
12096 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
12097 was copied and not edited.
9fbc32aa 12098
beb9f745
SM
120992007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
12100
c86f7377 12101 Add new `input-decode-map' keymap and use it for terminal
4f4a84ec
SM
12102 escape sequences.
12103 * keyboard.h (struct kboard): Add Vinput_decode_map.
12104 Remove Vlocal_key_translation_map.
12105 * keyboard.c (read_key_sequence): Add support for input-decode-map.
12106 (init_kboard): Init input-decode-map.
12107 Replace local-key-translation-map back with key-translation-map.
12108 (syms_of_keyboard): Declare input-decode-map.
12109 Remove local-key-translation-map. Update docstrings.
12110 (mark_kboards): Mark Vinput_decode_map.
12111 Don't mark Vlocal_key_translation_map.
12112 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
12113 Replace local-key-translation-map back with key-translation-map.
12114 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
12115 Bind in input-decode-map rather than function-key-map.
12116
beb9f745
SM
12117 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
12118 This was made redundant by the previous introduction of XSETPVECTYPE.
12119
65342ae3
RS
121202007-10-09 Richard Stallman <rms@gnu.org>
12121
beb9f745 12122 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
65342ae3
RS
12123
121242007-09-29 Richard Stallman <rms@gnu.org>
12125
12126 * eval.c (internal_condition_case_2, internal_condition_case_1)
12127 (internal_condition_case): Reenable abort if x_catching_errors ()
12128 to see if that really happens and why.
12129
6cff77fd
AS
121302007-10-06 Andreas Schwab <schwab@suse.de>
12131
12132 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
12133
bbe6f2aa
JB
121342007-10-04 Juanma Barranquero <lekktu@gmail.com>
12135
12136 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
12137
a390930c
SM
121382007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
12139
12140 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
12141
d6aa1876
SM
121422007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
12143
d0fdb6da
SM
12144 * window.h (struct window):
12145 * window.c (struct save_window_data, struct saved_window):
12146 * termhooks.h (struct terminal):
12147 * process.h (struct Lisp_Process):
12148 * frame.h (struct frame):
12149 * buffer.h (struct buffer):
12150 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
12151 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
12152 The size field of (pseudo)vectors is now unsigned.
12153 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
12154
878f97ff
SM
12155 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
12156 Turn `count' into an integer.
d0fdb6da 12157
878f97ff
SM
12158 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
12159 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
12160 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
12161 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
12162 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
12163
d2029e5b
SM
12164 * alloc.c (allocate_pseudovector): New fun.
12165 (ALLOCATE_PSEUDOVECTOR): New macro.
12166 (allocate_window, allocate_terminal, allocate_frame)
12167 (allocate_process): Use it.
12168 (mark_vectorlike): New function.
12169 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
12170 (mark_terminals): Use it.
12171 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
12172 (Fmake_byte_code): Use XSETPVECTYPE.
12173
12174 * frame.c (Fframe_parameters): Minor simplification.
12175
12176 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
12177
12178 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
12179
12180 * buffer.c (Fget_buffer_create, init_buffer_once):
12181 * lread.c (defsubr):
12182 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
12183
12184 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
12185 defined differently in the m/*.h files.
12186 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
12187 (XSETPVECTYPE): New macro.
12188 (XSETPSEUDOVECTOR): Use it.
12189
d6aa1876
SM
12190 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
12191 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
d2029e5b 12192
d6aa1876
SM
12193 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
12194 * lread.c (defvar_per_buffer):
12195 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
12196
12197 * window.c (candidate_window_p): Only consider as visible frames that
12198 are on the same terminal.
12199
12200 * m/ibms390x.h (MARKBIT): Remove unused macro.
12201
88852d45
JB
122022007-10-01 Juanma Barranquero <lekktu@gmail.com>
12203
12204 * lread.c (Fload): Fix typo in docstring.
12205
880820fe 122062007-10-01 Michaël Cadilhac <michael@cadilhac.name>
2742fe30
MC
12207
12208 * floatfns.c (Fexpt): Manually check for overflows, so that a power
12209 of a non-zero value can't yield zero.
12210
ed0c79c6
SM
122112007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
12212
b870aa61
SM
12213 * term.c (term_clear_mouse_face, term_mouse_highlight)
12214 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
12215
4c37a414
SM
12216 * print.c (safe_debug_print): Use XHASH.
12217
b9466edb
SM
12218 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
12219 Lisp elements such as tags.
12220 (XHASH): New macro.
12221 (EQ): Use it.
12222 (SREF, SSET, STRING_COPYIN): Use SDATA.
12223 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
12224
9c545a55
SM
12225 * alloc.c (mark_terminal): Remove left-over declaration.
12226 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
12227 (allocate_vectorlike): Remove type argument. Adjust callers.
12228 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
12229 Only handle the one remaining MEM_TYPE_VECTORLIKE.
12230
dafc79fa
SM
12231 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
12232 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
12233 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
12234 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
12235 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
12236 Use them.
12237
ed0c79c6
SM
12238 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
12239 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
12240 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
12241
3c81afd4
DN
122422007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
12243
12244 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
12245 loaded by default.
12246
6178ce5e
SM
122472007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
12248
4ce5ab77
SM
12249 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
12250 on this tty.
12251 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
12252
6178ce5e
SM
12253 * term.c (mouse_face_window): Rename from Qmouse_face_window.
12254 Update all users.
12255 (handle_one_term_event): Use Gpm_DrawPointer.
12256 (Fgpm_mouse_start): Rename from Fterm_open_connection.
12257 Signal errors instead of returning nil. Always return nil.
12258 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
12259 Make it a noop if gpm-mouse was not activated.
12260 (syms_of_term): Update names.
12261
bdf5f8ef
SM
122622007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
12263
75a8734b
SM
12264 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
12265 (init_sys_modes): Check that gpm_tty is the current tty.
12266
13559ee0
SM
12267 * alloc.c (allocate_terminal): Set the vector size to only count the
12268 lisp fields. Initialize those to nil.
12269 (mark_object): Don't treat terminals specially.
12270 (mark_terminal): Remove.
12271 (mark_terminals): Use mark_object instead.
12272
ff16b875
SM
12273 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
12274 the GC to the beginning.
12275
83155776
SM
12276 * indent.h:
12277 * indent.c: Use EMACS_INT for ints coming from Elisp data.
12278
bdf5f8ef
SM
12279 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
12280
ec8705b6
JR
122812007-09-25 Jason Rumney <jasonr@gnu.org>
12282
12283 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
12284
12285 * w32console.c (create_w32cons_output): Remove.
12286
12287 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
12288
12289 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
12290 (reset_sys_modes): Use reset_terminal_modes_hook.
12291
7351b242
SM
122922007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
12293
12294 * eval.c (do_autoload): Don't output any message.
12295
16706228
JL
122962007-09-24 Juri Linkov <juri@jurta.org>
12297
12298 * emacs.c (standard_args): Change priority of "--no-splash"
12299 from 40 to 3. Add "--no-desktop" with the same priority.
12300
3ae2e3a3
RS
123012007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
12302
12303 * alloc.c (gc_sweep): Check cons cell mark bits word by word
12304 and optimize the case where they are all 1.
12305
7a58fb43
GM
123062007-09-23 Johannes Weiner <hannes@saeurebad.de>
12307
3ae2e3a3
RS
12308 * lisp.h (abs): Define if not defined.
12309 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
12310 Don't define `abs', since it's defined in lisp.h.
7a58fb43 12311
78048085
EZ
123122007-09-22 Eli Zaretskii <eliz@gnu.org>
12313
c7a4b95b 12314 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
78048085
EZ
12315 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
12316 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
12317 (init_tty): Use DEV_TTY instead of "/dev/tty".
12318 [WINDOWSNT]: No need to protect from NAME arg being null.
12319
23d4cba5
DN
123202007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
12321
12322 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
12323 up the tty state.
12324
71f44e7a
SM
123252007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
12326
12327 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
12328 (gpm_tty): Change its type.
12329 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
12330 (gpm_tty): Change its type and initialize it.
12331 (Fterm_open_connection): Check the frame is indeed a tty.
12332 Use the new gpm_tty.
12333 (Fterm_close_connection): Use the new gpm_tty.
12334 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
12335 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
12336
def7fa34
JB
123372007-09-21 Juanma Barranquero <lekktu@gmail.com>
12338
12339 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
12340 underline_color, to draw strike-through.
12341
d2bb6598
SM
123422007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
12343
273f164c
SM
12344 * lisp.h (allocate_terminal): Declare.
12345
ca2d5566
SM
12346 * window.c (candidate_window_p): Consider frames that are being placed
12347 by the user as somewhere between visible and iconified.
12348 (window_loop): Prefer windows on the current frame.
12349 (Fselect_window): Move the use of select-frame to the beginning so we
12350 can just delegate all the work (it'll call us back anyway).
12351
6168122d
SM
12352 * frame.c (Qdisplay_environment_variable):
12353 * frame.h (Qdisplay_environment_variable): Delete.
12354
c51842ec
SM
12355 * .gdbinit (xbacktrace): Print the arg's address rather than the value
12356 of the first arg, since that value may be a union.
12357
d2bb6598
SM
12358 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
12359 parameter rather than Qdisplay_environment_variable. If all else
12360 fails, look for DISPLAY in initial-environment.
12361
6f022c19
GM
123622007-09-21 Glenn Morris <rgm@gnu.org>
12363
12364 * Makefile.in (emacstool): Remove target.
f466320b 12365 (lisp, shortlisp): Remove termdev.elc.
6f022c19 12366
ea1bf8c7
GM
123672007-09-21 Markus Triska <markus.triska@gmx.at>
12368
d2bb6598 12369 * xterm.c (x_delete_display): Compile session management conditionally.
ea1bf8c7 12370
d30a25b3
SM
123712007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
12372
db699fc6
SM
12373 * callproc.c (getenv_internal_1): New function.
12374 (getenv_internal): Use it.
12375 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
12376
d2bb6598 12377 * terminal.c (get_terminal): Don't accept ints to represent terminals.
c5911e55
SM
12378 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
12379 (Fset_terminal_parameter): Work with dead terminals as well.
12380 (Fmodify_terminal_parameters): Remove.
12381
d30a25b3
SM
12382 * terminal.c (get_terminal): Handle terminals.
12383 Make sure the terminal returned is live.
12384 (create_terminal): Use allocate_terminal.
12385 (mark_terminals): Move to alloc.c.
12386 (delete_terminal): Use terminal->name as liveness status.
12387 NULL out fields after freeing their contents.
12388 Don't deallocate the object.
12389 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
12390 rather than an int.
12391 (Fterminal_live_p): Accept non-integer arguments.
12392 (Fterminal_list): Return terminal objects rather than an ints.
12393
12394 * alloc.c (enum mem_type): New member for `terminal' objects.
12395 (allocate_terminal): New function.
d2bb6598
SM
12396 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
12397 Handle terminals.
d30a25b3
SM
12398 (mark_terminal): New fun.
12399 (mark_terminals): Move from terminal.c.
12400
12401 * term.c (get_tty_terminal): Don't treat output_initial specially.
12402 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
12403 (delete_tty): Use terminal->name as liveness status.
12404
12405 * termhooks.h (struct terminal): Make it into a pseudovector.
12406 Remove `deleted' replaced by checking `name's nullness.
12407
12408 * print.c (print_object): Handle terminals.
12409
12410 * lisp.h (enum pvec_type): New `terminal' pseudovector.
12411 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
12412
12413 * frame.c (make_terminal_frame):
12414 * keyboard.c (tty_read_avail_input):
12415 * w32term.c (x_delete_terminal):
12416 * xfns.c (Fx_create_frame, x_create_tip_frame):
12417 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
12418
eba25e7c
GM
124192007-09-20 Glenn Morris <rgm@gnu.org>
12420
12421 * process.c (Fmake_network_process): Doc fix.
12422
2a29c3c1
JR
124232007-09-19 Jason Rumney <jasonr@gnu.org>
12424
12425 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
12426
880820fe 124272007-09-19 Michaël Cadilhac <michael@cadilhac.name>
ba1cbad7
MC
12428
12429 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
12430 Fix a C warning regarding variable constness.
12431
12432 * xterm.c (handle_one_xevent): Fix a C warning.
12433
334a1195
JR
124342007-09-18 Jason Rumney <jasonr@gnu.org>
12435
12436 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
12437
880820fe 124382007-09-17 Jan Djärv <jan.h.d@swipnet.se>
879ffad9
JD
12439
12440 * gtkutil.c (gdpy_def): New variable.
12441 (xg_initialize): Initialize gdpy_def.
12442 (xg_display_close): If no other display exists, set gdpy_def to a
12443 new connection.
12444
880820fe 124452007-09-16 Jan Djärv <jan.h.d@swipnet.se>
45c94881
JD
12446
12447 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
12448 when we have no file name for the icon.
12449 (xg_tool_bar_expose_callback): Remove.
12450 (xg_create_tool_bar): Don't connect expose signal to
12451 xg_tool_bar_expose_callback.
12452 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
12453
4d580af2
AS
124542007-09-16 Andreas Schwab <schwab@suse.de>
12455
12456 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
12457 values instead of zapping them.
12458
aca946f3
GM
124592007-09-14 Glenn Morris <rgm@gnu.org>
12460
12461 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
12462 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
12463 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
12464 scope and rename to omfib_buffer for clarity.
12465 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
12466
25c460e5
KH
124672007-09-14 Kenichi Handa <handa@m17n.org>
12468
12469 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
12470
09b69f01
JR
124712007-09-13 Jason Rumney <jasonr@gnu.org>
12472
12473 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
12474
12475 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
12476
12477 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
12478 (mac_term_init): Call here instead, passing rif.
12479
442218db
GM
124802007-09-13 Glenn Morris <rgm@gnu.org>
12481
12482 * s/hpux.h: No longer define `static' as nothing.
12483
880820fe 124842007-09-13 Johan Bockgård <bojohan@gnu.org>
4795c40f
GM
12485
12486 * callint.c (Fcall_interactively): Remove unused var `fun'.
12487
1971a872
RF
124882007-09-12 Romain Francoise <romain@orebokech.com>
12489
12490 * window.c (prefer_window_split_horizontally, display_buffer):
12491 Revert 2007-09-08 change.
12492
2d33f506
GM
124932007-09-12 Glenn Morris <rgm@gnu.org>
12494
585474ae 12495 * alloca.c: Remove file.
ca7af97a
GM
12496 * Makefile.in (alloca): Do not undef.
12497 (allocaobj, alloca.o): Remove.
12498 (otherobj): Remove allocaobj.
12499 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
12500 * regex.c (C_ALLOCA): Remove all references and code that was only
12501 used when this was defined.
12502 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
12503 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
99dfbaf1
GM
12504 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
12505
2d33f506 12506 * Makefile.in (SOURCES, unlock, relock): Delete.
ca7af97a
GM
12507
12508 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
12509 (menu_grab_callback): All uses changed.
12510
12511 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
12512 (x_reply_selection_request): All uses changed.
2d33f506 12513
18a4a65e
SM
125142007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
12515
12516 * lread.c (load_warn_old_style_backquotes): Change message to look
12517 better when it appears in the middle of byte-compiler messages.
12518
47cc8819
DN
125192007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
12520
b7ea0894
DN
12521 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
12522
47cc8819
DN
12523 * xterm.c (x_create_terminal): Add comment.
12524
12525 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
12526
5632bd0f
RS
125272007-09-10 Richard Stallman <rms@gnu.org>
12528
12529 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
12530
880820fe 125312007-09-10 Michaël Cadilhac <michael@cadilhac.name>
ccb5c14f 12532
4bca9161
MC
12533 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
12534 (DEFUN): Document `intspec', use it instead of `prompt'.
12535
04724b69
MC
12536 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
12537
8a6d230a
MC
12538 * data.c (Finteractive_form): If the interactive specification starts
12539 with a `(', use it as a Lisp form.
12540
09fbdf6c
MC
12541 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
12542 name and file modes.
12543
ccb5c14f
MC
12544 * callint.c (Fcall_interactively): Comment fixes.
12545
023accd6
SM
125462007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
12547
12548 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
12549 and compiled functions.
12550
f26b9544
EZ
125512007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
12552
12553 * window.c (prefer_window_split_horizontally): New variable.
12554 (display_buffer): Consider splitting window horizontally depending
12555 on prefer_window_split_horizontally.
12556
4d395425
EZ
125572007-09-08 Eli Zaretskii <eliz@gnu.org>
12558
97ddc760 12559 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
4d395425 12560
08c1d235
SM
125612007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
12562
179cef48
SM
12563 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
12564
08c1d235
SM
12565 * frame.c (x_set_frame_parameters): Check number is positive before
12566 using XFASTINT.
12567
12568 * window.c (freeze_window_start): Don't presume selected_window holds
12569 a window object.
92f94a12 12570 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
08c1d235 12571
97ddc760 125722007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
de52dcbb
DN
12573
12574 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
12575
90ab5c62
SM
125762007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
12577
12578 * window.c (Vsplit_window_preferred_function): New var.
12579 (Fdisplay_buffer): Use it.
12580 (syms_of_window): Export, and initialize it.
12581
1ab2cd43
TTN
125822007-09-06 Pixel <pixel@mandriva.com> (tiny change)
12583
12584 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
12585
0b0515bc
GM
125862007-09-06 Glenn Morris <rgm@gnu.org>
12587
57fd5c55 12588 * gtkutil.c (menu_grab_callback) <cnt>:
0b0515bc
GM
12589 * xselect.c (x_reply_selection_request) <cnt>: Move static
12590 variable to file scope.
12591
98594580
SM
125922007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
12593
12594 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
12595 consistent values of selected_frame and selected_window.
12596
0f4c7aef
JR
125972007-09-04 Jason Rumney <jasonr@gnu.org>
12598
12599 * w32console.c (initialize_w32_display): Zero unused hooks.
12600
e4019195
DN
126012007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
12602
12603 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
12604 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
12605
bce179b5
JR
126062007-09-04 Jason Rumney <jasonr@gnu.org>
12607
a0236551
JR
12608 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
12609 in w32console.c. Set up input. Remove XXX comments that have been
12610 confirmed as correct.
12611
a4926668
JR
12612 * s/ms-w32.h (MULTI_KBOARD): Define.
12613
953bf0dc
JR
12614 * w32console.c (one_and_only_w32cons): Remove.
12615 (initialize_w32_display): Take terminal argument.
12616
12617 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
12618 initialize_w32_display.
12619 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
12620
bce179b5
JR
12621 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
12622
12623 * keyboard.c (discard_mouse_events): Discard it.
12624 (make_lispy_event): Translate it to a lisp event.
12625 (lispy_wheel_names): Add wheel-left and right events.
12626 (syms_of_keyboard): Enlarge wheel_syms.
12627
12628 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
12629 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
12630
12631 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
12632
12633 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
12634 from WM_MOUSEHWHEEL.
12635 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
12636
12637 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
12638 terminal.
12639
12640 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
12641 keyboard for the terminal.
12642
92cd6a7c
DN
126432007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
12644
12645 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
12646 (Vresume_tty_hook): Rename from Vresume_tty_functions.
12647 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
12648 and resume-tty-function to resume-tty-hook.
12649 (Fsuspend_tty, Fresume_tty): Use new names.
12650
880820fe 126512007-09-02 Jan Djärv <jan.h.d@swipnet.se>
2154c964
JD
12652
12653 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
12654 if it starts with "n:".
12655
880820fe 126562007-08-31 Jan Djärv <jan.h.d@swipnet.se>
b42ff099
JD
12657
12658 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
12659
6b8e474c
SM
126602007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
12661
92d9c1d4
SM
12662 * frame.h:
12663 * frame.c (Qterm_environment_variable): Remove.
12664 (syms_of_frame): Don't init and staticpro it.
12665
92d9c1d4
SM
12666 * callproc.c (getenv_internal): Remove special case for $TERM.
12667
6b8e474c
SM
12668 * callproc.c (Vinitial_environment): New variable.
12669 (set_initial_environment): Initialize it.
12670 (syms_of_callproc): Declare it.
12671 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
12672 TERM under which a process runs is never related to the TERM in which
12673 Emacs is running.
12674
0f1444e1
DN
126752007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
12676
12677 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
12678 * s/darwin.h: ... do it here.
12679
b8866860
SM
126802007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
12681
12682 * lisp.h (set_initial_environment): Rename from set_global_environment.
12683
12684 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
12685 removed by mistake on the multi-tty branch.
12686
12687 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
12688 (Fmodify_frame_parameters): Return a value.
12689
12690 * image.c (png_load): Comment-out var only used in commented-out code.
12691
12692 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
12693 before passing it to mark_object.
12694
12695 * xfaces.c (internal_resolve_face_name): Return a value.
12696 (internal_resolve_face_name, resolve_face_name_error): Comment out.
12697
12698 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
12699 (x_icon): Comment-out var only used in commented-out code.
12700
0a42be6d
RF
127012007-08-29 Romain Francoise <romain@orebokech.com>
12702
12703 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
12704 QUIT hasn't been provided.
12705
8d9cc0b7
MB
127062007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
12707
12708 * callproc.c (child_setup, getenv_internal): Use the
ce20b664 12709 display-environment-variable and term-environment-variable frame params.
8d9cc0b7
MB
12710 (set_initial_environment): Initialise Vprocess_environment.
12711
12712 * config.in: Disable multi-keyboard support on a mac.
12713
12714 * frame.c (Qterm_environment_variable)
12715 (Qdisplay_environment_variable): New variables.
12716 (syms_of_frame): Intern and staticpro them.
12717 (Fmake_terminal_frame): Disable output method test.
12718
12719 * frame.h: Declare them here.
12720
12721 * macfns.c (x_set_mouse_color): Get rif from the frame.
12722 (x_set_tool_bar_lines): Don't use updating_frame.
12723 (mac_window): Add 2 new parameters for consistency with other systems.
12724 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
12725 frame parameters following what is done in X11 and w32. Don't use
12726 FRAME_MAC_DISPLAY_INFO.
12727 (Fx_open_connection, start_hourglass): Remove window-system check.
12728 (x_create_tip_frame): Get the keyboard from the terminal.
12729
12730 * macmenu.c: Reorder includes.
12731 (Fx_popup_menu): Use terminal specific mouse_position_hook.
12732
12733 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
12734 terminal parameter.
12735 (x_clear_frame): Add a frame parameter.
12736 (note_mouse_movement): Get rif from the frame.
12737 (mac_term_init): Initialize the terminal.
12738 (mac_initialize): Make static and move terminal initialization ...
12739 (mac_create_terminal): ... to this new function.
12740
12741 * macterm.h (struct mac_display_info): Add terminal.
7196c970 12742 (mac_initialize): Delete declaration.
8d9cc0b7 12743
381864b2 12744 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
8d9cc0b7
MB
12745
12746 * sysdep.c: Comment out text after #endif.
12747
12748 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
12749 is defined. Better initialize ttys in windows. Use terminal
12750 specific mouse_position_hook.
12751
12752 * termhooks.h (union display_info): Add mac_display_info.
12753
b8866860
SM
12754 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
12755 Set the default minibuffer frame, window_system and the rest of the
8d9cc0b7
MB
12756 frame parameters following what is done in X11.
12757
12758 * w32term.c (w32_initialize): Make static.
12759
12760 * xselect.c (x_handle_selection_clear): Only access
12761 terminal->kboard when MULTI_KBOARD is defined.
12762
12763 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
12764 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
12765
127662007-08-29 Jason Rumney <jasonr@gnu.org>
12767
12768 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
12769 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
12770
12771 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
12772 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
12773
12774 * keyboard.c (restore_kboard_configuration): Only define when
12775 MULTI_KBOARD defined.
12776
35277b03 12777 * makefile.w32-in: Update dependancies from Makefile.in.
8d9cc0b7
MB
12778 (OBJ1): Add terminal.$(O)
12779
b8866860
SM
12780 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
12781 Don't define function body.
8d9cc0b7
MB
12782 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
12783
12784 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
12785
12786 * w32.c (request_sigio, unrequest_sigio): Remove.
12787
12788 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
12789 (w32con_clear_frame, w32con_clear_end_of_line)
12790 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
12791 (w32con_delete_glyphs, w32con_set_terminal_window)
12792 (scroll_line, w32_sys_ring_bell): Add frame arg.
b8866860
SM
12793 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
12794 Add terminal arg.
8d9cc0b7
MB
12795 (PICK_FRAME): Remove.
12796 (w32con_write_glyphs): Use frame specific terminal coding.
12797 (one_and_only_w32cons): New global variable.
12798 (initialize_w32_display): Use it for storing hooks.
12799 (create_w32cons_output): New function.
12800
12801 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
12802 arg a frame.
12803
b8866860
SM
12804 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
12805 Set window_system.
8d9cc0b7
MB
12806 (x_set_tool_bar_lines): Don't use updating_frame.
12807 (Fx_create_frame): Set terminal and ref count.
12808 (Fx_open_connection): Remove window-system check.
12809
12810 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
12811
12812 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
12813 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
12814 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
12815 Add frame arg.
12816 (x_delete_terminal, w32_create_terminal): New functions.
12817 (w32_term_init): Create a terminal.
12818 (w32_initialize): Move terminal specific initialization to
12819 w32_create_terminal.
12820
b8866860 12821 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
8d9cc0b7
MB
12822 (w32_clear_rect, w32_clear_area): Use background from frame.
12823 (w32_display_info): Add terminal.
12824 (w32_sys_ring_bell, x_delete_display): Declare here.
12825
12826 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
12827
12828 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
12829
128302007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
12831
12832 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
12833 Fix get_named_tty calls for the controlling tty.
12834
128352007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
12836
12837 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
12838
128392007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
12840
12841 * term.c (tty_insert_glyphs): Add missing first parameter.
12842
880820fe 128432007-08-29 Károly Lőrentey <karoly@lorentey.hu>
8d9cc0b7 12844
b8866860
SM
12845 * buffer.c (Fbuffer_list, Fbury_buffer):
12846 Take frame->buried_buffer_list into account.
8d9cc0b7
MB
12847
12848 * cm.c (current_tty): New variable, for cmputc().
12849 (cmputc): Use it.
12850 (cmcheckmagic): Add tty parameter, look up terminal streams there.
12851 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
b8866860
SM
12852 (cmgoto): Add tty parameter. Pass it on to calccost().
12853 Use emacs_tputs() instead of tputs().
8d9cc0b7
MB
12854
12855 * cm.h (emacs_tputs): New macro to set current_tty, and then call
12856 tputs().
12857 (current_tty): New variable, for cmputc().
12858 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
12859
12860 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
12861 (internal_condition_case, internal_condition_case_1)
12862 (internal_condition_case_2): Don't abort when x_catching_errors.
12863
12864 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
12865 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
12866 prevent crashes caused by bogus longjmps in read_char.
12867
12868 * keymap.h (Fset_keymap_parent): Add EXFUN.
12869
12870 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
12871 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
12872 Remove redundant definition.
12873
b8866860
SM
12874 * macfns.c (x_set_mouse_color, x_make_gc):
12875 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7 12876
b8866860
SM
12877 * w32term.c (x_free_frame_resources):
12878 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
12879 (w32_initialize): Use the accessor macros for terminal characteristics.
12880
12881 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
12882 Use the accessor macros for terminal characteristics.
12883 * msdos.c (internal_terminal_init): Use the accessor macros for
12884 terminal characteristics.
b8866860
SM
12885 (ScreenVisualBell, internal_terminal_init):
12886 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
12887
12888 * termopts.h (no_redraw_on_reenter): Declare.
12889
12890 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
03f06e5c 12891 (mark_terminals, mark_ttys): Declare.
8d9cc0b7 12892 (Fgarbage_collect): Call them.
03f06e5c 12893 (mark_object): Mark buried_buffer_list.
8d9cc0b7
MB
12894
12895 * prefix-args.c: Include stdlib.h for exit.
12896
12897 * syssignal.h: Add comment.
12898
12899 * indent.c: Include stdio.h.
12900
12901 * window.h (Vinitial_window_system): Declare.
12902 (Vwindow_system): Delete declaration.
12903
12904 * fontset.c (Finternal_char_font): Use FRAME_RIF.
12905
12906 * image.c (lookup_image): Don't initialize `c' until the xasserts
12907 have been run.
12908
12909 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
12910 FRAME_FOREGROUND_PIXEL.
12911
12912 * print.c (print_preprocess): Don't lose print_depth levels while
12913 iterating.
12914
b8866860
SM
12915 * widget.c (update_from_various_frame_slots):
12916 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
12917
12918 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
12919 frames.
12920 (window_internal_height): Remove bogus make_number call.
b8866860 12921 (init_window_once): Call make_terminal_frame with two zero parameters.
8d9cc0b7
MB
12922
12923 * fileio.c (Fread_file_name): Update comment.
12924
b8866860
SM
12925 * callint.c (Fcall_interactively):
12926 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
8d9cc0b7
MB
12927 Make sure it is correctly unwound.
12928
12929 * xsmfns.c (x_session_close): New function.
12930
03f06e5c 12931 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
8d9cc0b7
MB
12932 Delete declarations.
12933
12934 * xterm.h: Remove declaration for x_fully_uncatch_errors.
12935 (x_output): Remove background_pixel and foreground_pixel fields.
03f06e5c 12936 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
c3f9fba8 12937 (x_delete_device, x_session_close): Declare.
8d9cc0b7
MB
12938
12939 * lread.c: Include setjmp.h. Update declaration of `read_char'.
12940 (read_filtered_event): Call `read_char' with a local
12941 `wrong_kboard_jmpbuf'.
12942
b8866860
SM
12943 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
12944 Don't call single_kboard_state. Use FRAME_RIF.
8d9cc0b7
MB
12945
12946 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
12947 systems.
12948
b8866860 12949 * lisp.h (set_process_environment): Rename to `set_global_environment'.
03f06e5c 12950 (Fframe_with_environment, Fset_input_meta_mode)
8d9cc0b7 12951 (Fset_quit_char): EXFUN.
03f06e5c 12952 (x_create_device, tty_output, terminal, tty_display_info): Declare.
8d9cc0b7
MB
12953 (init_sys_modes, reset_sys_modes): Update prototypes.
12954 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
12955
b8866860
SM
12956 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
12957 Vlocal_key_translation_map, and Vkeyboard_translate_table.
03f06e5c 12958 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
8d9cc0b7 12959 Delete declarations.
03f06e5c
JB
12960 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
12961 (temporarily_switch_to_single_kboard, tty_read_avail_input):
8d9cc0b7
MB
12962 New declarations.
12963
12964 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
12965 already does that during init_display(). Call syms_of_keymap
b8866860
SM
12966 before syms_of_keyboard. Call `syms_of_terminal'.
12967 Call set_initial_environment, not set_process_environment.
8d9cc0b7
MB
12968 (shut_down_emacs): Call reset_all_sys_modes() instead of
12969 reset_sys_modes().
12970
12971 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
03f06e5c
JB
12972 (internal_resolve_face_name, resolve_face_name_error): New functions.
12973 (resolve_face_name): Protect against loops and errors thrown by Fget.
12974 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
8d9cc0b7
MB
12975 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
12976
12977 * scroll.c: Replace CURTTY() with local variables throughout the
12978 file (where applicable).
12979 (calculate_scrolling, calculate_direct_scrolling)
12980 (scrolling_1, scroll_cost): Use the accessor macros for terminal
12981 characteristics.
12982
12983 * keymap.c (Vfunction_key_map): Remove.
b8866860 12984 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
8d9cc0b7
MB
12985 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
12986 (Vkey_translation_map): Remove.
12987 (syms_of_keymap): Remove DEFVAR for key-translation-map.
c3f9fba8 12988 (Fdescribe_buffer_bindings)
8d9cc0b7
MB
12989 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
12990 Update for terminal-local key-translation-map.
12991
12992 * Makefile.in (callproc.o): Update dependencies.
12993 (lisp, shortlisp): Add termdev.elc.
12994 (obj): Add terminal.o.
12995 (terminal.o): Add dependencies.
12996 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
12997 (data.o, fns.o): Add termhooks.h dependency.
12998 (SOME_MACHINE_LISP): Add dnd.elc.
12999 (minibuf.o): Fix typo.
13000 Update dependencies.
13001
13002 * data.c (do_symval_forwarding, store_symval_forwarding)
13003 (find_symbol_value): Use the selected frame's keyboard, not
13004 current_kboard.
13005
13006 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
13007 Vwindow_system.
13008
13009 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
13010 Fmenu_bar_open.
13011 (syms_of_xmenu): Update defsubr.
13012 (mouse_position_for_popup, Fx_popup_menu)
13013 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
13014 (set_frame_menubar, free_frame_menubar)
13015 (create_and_show_popup_menu, xmenu_show, )
13016 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
13017 an X frame.
13018
13019 * xselect.c (x_own_selection): Abort if not an X frame.
13020 (some_frame_on_display): Check if it is an X frame.
13021 (x_handle_selection_clear): Deal with MULTI_KBOARD.
13022
13023 * coding.c: Include frame.h and termhooks.h.
03f06e5c 13024 (terminal_coding, keyboard_coding): Delete.
c3f9fba8
JB
13025 (Fset_terminal_coding_system_internal)
13026 (Fset_keyboard_coding_system_internal)
13027 (Fkeyboard_coding_system)
03f06e5c
JB
13028 (Fterminal_coding_system): Add a terminal parameter.
13029 Get terminal_coding from the terminal.
8d9cc0b7
MB
13030 (init_coding_once): Don't call setup_coding_system here.
13031
13032 * dispextern.h (set_scroll_region, turn_off_insert)
13033 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
13034 (tty_clear_end_of_line, tty_setup_colors)
03f06e5c 13035 (delete_tty, updating_frame)
8d9cc0b7
MB
13036 (produce_special_glyphs, produce_glyphs, write_glyphs)
13037 (insert_glyphs): Remove.
13038 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
03f06e5c 13039 (tty_turn_off_highlight, get_tty_size): Add declaration.
b8866860 13040 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
8d9cc0b7
MB
13041
13042 * frame.h (enum output_method): Add output_initial.
13043 (struct x_output): Delete.
b8866860
SM
13044 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
13045 Access foreground_pixel and background_pixel directly from the frame.
8d9cc0b7
MB
13046 (tty_display): Delete.
13047 (struct frame): Add buried_buffer_list, foreground_pixel,
1f204af3 13048 background_pixel and terminal. Delete kboard.
8d9cc0b7
MB
13049 (union output_data): Add tty.
13050 (FRAME_KBOARD): Get the kboard from the terminal.
13051 (FRAME_INITIAL_P): New macro.
13052 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
13053 (Qterm_environment_variable, Qdisplay_environment_variable)
b8866860
SM
13054 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
13055 New declarations.
8d9cc0b7
MB
13056
13057 * termchar.h (tty_output, tty_display_info): New structures.
13058 (tty_list): Declare.
13059 (FRAME_TTY, CURTTY): New macros.
13060 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
13061 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
13062 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
13063 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
13064
13065 * callproc.c: Include frame.h and termhooks.h, for terminal
13066 parameters.
13067 (add_env): New function.
13068 (child_setup): Use it.
b8866860 13069 (child_setup, getenv_internal): Handle the new Vprocess_environment.
8d9cc0b7
MB
13070 (getenv_internal): Fix get_terminal_param call.
13071 (Fgetenv_internal, egetenv): Update doc.
13072 (syms_of_callproc): Initialize Vprocess_environment to nil.
03f06e5c 13073 Register and initialize them. Remove obsolete defvars. Update doc
8d9cc0b7
MB
13074 strings.
13075 (child_setup): Handle Vlocal_environment_variables.
b8866860
SM
13076 (getenv_internal): Add terminal parameter.
13077 Handle Vlocal_environment_variables.
8d9cc0b7
MB
13078 (Fgetenv_internal): Add terminal parameter.
13079 (child_setup, getenv_internal, Fgetenv_internal): Store the local
b8866860 13080 environment in a frame (not terminal) parameter. Update doc strings.
8d9cc0b7
MB
13081 (set_initial_environment): Rename from set_global_environment.
13082 Store Emacs environment in initial frame parameter.
13083
13084 * xdisp.c (redisplay_internal): Update references to
13085 `previous_terminal_frame'.
13086 (display_mode_line, Fformat_mode_line): Replace calls to
13087 `push_frame_kboard' with `push_kboard'.
13088 (get_glyph_string_clip_rects): Add extra parentheses and
13089 braces to prevent compiler warnings.
13090 (calc_pixel_width_or_height): Add xassert to check that the
13091 frame is alive. Don't call `lookup_image' on a termcap frame.
13092 (message2_nolog, message3_nolog, redisplay_internal)
13093 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
13094 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
13095 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
13096 (Fx_display_pixel_width, Fx_display_pixel_height)
13097 (Fx_display_planes, Fx_display_color_cells)
13098 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
13099 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
13100 (Fx_display_backing_store, Fx_display_visual_class)
13101 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
97ddc760 13102 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
8d9cc0b7
MB
13103
13104 * xfns.c (x_set_foreground_color x_set_background_color)
b8866860
SM
13105 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
13106 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
13107 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
13108 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
13109 terminal that is being deleted.
13110 (Fx_create_frame): Use `store_frame_param' to set `window-system'
b8866860 13111 frame parameter, and make sure it overrides any user-supplied setting.
8d9cc0b7
MB
13112 (Fx_close_connection, Fx_synchronize): Unify argument names with
13113 the rest of the DEFUNs.
13114
13115 * dispnew.c (Fsend_string_to_terminal): Update call to
13116 `get_tty_terminal'.
13117 (Fredraw_frame, Fsend_string_to_terminal)
2d33f506 13118 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
8d9cc0b7
MB
13119 FRAME_TERMCAP_P and FRAME_TTY.
13120 (window_change_signal): Don't believe width/height values that are
13121 impossibly small.
13122 (Vinitial_window_system): Rename from Vwindow_system.
13123 (termscript, Wcm, rif): Delete.
13124
13125 * termhooks.h (struct terminal): New struct containing the
13126 previously global text display hooks and new members NAME,
13127 DELETED and PARAM_ALIST.
13128 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
13129 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
13130 (FRAME_RIF): New macros.
13131 (get_terminal_param, get_device): New declarations.
13132 (termscript): Delete declaration.
13133
13134 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
13135 (XTflash, x_free_frame_resources, x_scroll_bar_create)
13136 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
13137 FRAME_FOREGROUND_PIXEL.
13138 (x_fully_uncatch_errors): Disable definition.
13139 (x_scroll_bar_expose): Fix reference to foreground pixel.
13140 (XTread_socket): Disable loop on all X displays.
13141 (x_delete_terminal): Don't set terminal->deleted and let
13142 delete_terminal delete the frames on the terminal.
13143 (x_delete_display): Doc update to reflect changes in
13144 delete_terminal.
13145 (x_display_info) <terminal>: Move member earlier in the struct.
8d9cc0b7
MB
13146 (deleting_tty): Remove old variable.
13147 (Fsuspend_tty): Call clear_tty_hooks.
13148 (Fresume_tty, init_tty): Call set_tty_hooks.
8d9cc0b7
MB
13149 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
13150 errors on X frames.
13151 (x_catch_errors_unwind): Abort if x_error_message is NULL.
13152 (handle_one_xevent): Initialize `f' to NULL.
9cab96b0 13153 (x_delete_terminal, x_create_terminal): New functions.
8d9cc0b7
MB
13154 (XTset_terminal_modes, XTreset_terminal_modes)
13155 (XTread_socket, x_connection_closed, x_term_init)
13156 (x_term_init, x_delete_display): Add terminal parameter.
13157 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
13158 X connections.
13159
bf380f53
GM
13160 * frame.c: Include termchar.h.
13161 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
13162 (Qwindow_system, Qenvironment, Qterm_environment_variable)
13163 (Qdisplay_environment_variable): New vars.
13164 (Fframep): Deal with output_initial.
13165 (Fframe-live-p): Doc fix.
13166 (Fwindow-system): New function.
8d9cc0b7
MB
13167 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
13168 (make_terminal_frame): Don't create frames on a terminal that is
bf380f53 13169 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
b8866860 13170 (store_frame_param): Check for found_for_frame before calling XFRAME.
8d9cc0b7
MB
13171 (Fmake_terminal_frame): Handle NULL tty names correctly.
13172 (syms_of_frame): Enhance doc string of `default-frame-alist'.
bf380f53
GM
13173 (Fdelete_frame): Remove unused variable `count'. Don't allow other
13174 frames to refer to a deleted frame in their 'environment parameter.
8d9cc0b7 13175 (Fframe_with_environment): New function.
b8866860 13176 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
8d9cc0b7
MB
13177 (get_future_frame_param): New function.
13178 (Fmake_terminal_frame): Use it.
2d33f506 13179 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
8d9cc0b7
MB
13180
13181 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
13182 * sysdep.c (reset_sys_modes): Update for renames.
13183
13184 * keyboard.c (tty_read_avail_input): New function.
03f06e5c 13185 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
8d9cc0b7
MB
13186 (syms_of_keyboard): Defsubr them.
13187 (Fset_input_meta_mode, Fset_quit_char): New functions.
13188 (Fset_input_mode): Split to above functions.
8d9cc0b7
MB
13189 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
13190 parameter. Use it in call to `read_char'.
b8866860
SM
13191 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
13192 Set wrong_kboard_jmpbuf correctly in recursive calls.
13193 Use current_kboard to access Vkeyboard_translate_table.
13194 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
13195 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
13196 Update longjmp invocations. Remember the original current_kboard,
13197 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
13198 changes it. Comment out unnecessary calls to
13199 `record_single_kboard_state' and `any_kboard_state'.
13200 Update recursive calls.
8d9cc0b7
MB
13201 (wrong_kboard_jmpbuf): Remove global variable.
13202 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
13203 Handle deleted interrupted_kboards correctly; that is a legal
13204 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
b8866860 13205 and read_char calls. Abort if interrupted_kboard died in read_char.
8d9cc0b7
MB
13206 (any_kboard_state, single_kboard_state)
13207 (push_frame_kboard): Remove function.
13208 (pop_kboard): Switch out of single_kboard mode if the kboard has
03f06e5c
JB
13209 been deleted. Remove unused variable. Help debugging by not
13210 changing current_kboard unnecessarily. Set current_kboard to the
8d9cc0b7
MB
13211 kboard of the selected frame when the stored kboard object has
13212 been deleted before pop_kboard.
13213 (temporarily_switch_to_single_kboard): Change first parameter to a
13214 frame pointer. Throw an error when caller wants to change kboards
13215 while in single_kboard mode. Don't push_kboard if we weren't in
13216 single kboard state. Don't pop_kboard if we popped into any
13217 kboard state.
13218 (restore_kboard_configuration): Abort if pop_kboard changed the
03f06e5c 13219 kboard in single_kboard mode. Call pop_kboard only after setting
8d9cc0b7
MB
13220 up single_kboard mode.
13221 (Frecursive_edit): Switch to single_kboard mode only in nested
13222 command loops.
b8866860
SM
13223 (cmd_error, command_loop, command_loop_1, timer_check):
13224 Comment out unnecessary call to `any_kboard_state' and
8d9cc0b7
MB
13225 `record_single_kboard_state'.
13226 (delete_kboard): Exit single_kboard mode if we have just deleted
03f06e5c 13227 that kboard. Use FRAME_KBOARD.
8d9cc0b7
MB
13228 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
13229 `fatal_error_signal'.
13230 (record_single_kboard_state): Don't push_kboard if we weren't in
13231 single kboard state. Don't pop_kboard if we popped into any
13232 kboard state.
13233 (push_frame_kboard): Rename to push_kboard.
13234 (kbd_buffer_get_event): Use FRAME_TERMINAL.
13235 (read_avail_input): Read input from all terminals.
13236 (mark_kboards): Also mark Vkeyboard_translate_table.
13237 (kbd_buffer_store_event_hold): Simplify condition.
13238 (read_key_sequence): Reinitialize fkey and keytran at each replay.
13239 (Vkeyboard_translate_table): Move to struct kboard.
13240 (init_kboard): Initialize Vkeyboard_translate_table.
13241 (syms_of_keyboard): Use DEFVAR_KBOARD to define
13242 Vkeyboard_translate_table. Update doc strings. Update docs of
13243 local-function-key-map and function-key-map.
13244
13245 * terminal.c: New file.
13246
13247 * term.c: Include errno.h.
13248 (Vring_bell_function, device_list, initial_device)
13249 (next_device_id, ring_bell, update_begin, update_end)
13250 (set_terminal_window, cursor_to, raw_cursor_to)
13251 (clear_to_end, clear_frame, clear_end_of_line)
13252 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
13253 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
13254 (syms_of_term): Move their initialization to terminal.c.
13255 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
13256 (Ftty_display_color_cells)
13257 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
9cab96b0 13258 (clear_tty_hooks, set_tty_hooks)
8d9cc0b7
MB
13259 (init_tty, maybe_fatal): New functions.
13260 (Ftty_type): Return nil if terminal is not on a tty instead of
13261 throwing an error. Doc update.
13262 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
03f06e5c 13263 Doc update. Initialize new subrs and variables.
8d9cc0b7
MB
13264 (delete_tty): Use terminal->deleted.
13265 (tty_set_terminal_modes): Rename from set_terminal_modes.
13266 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
13267 (set_scroll_region): Rename to `tty_set_scroll_region'.
13268 (turn_on_insert): Rename to `tty_turn_on_insert'.
13269 (turn_off_insert): Rename to `tty_turn_off_insert'.
13270 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
13271 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
13272 (toggle_highligh): Rename to `tty_toggle_highlight'.
13273 (background_highlight): Rename to `tty_background_highlight'.
13274 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
13275 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
13276 (tty_set_scroll_region, tty_background_highlight)
13277 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
13278 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
13279 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
13280 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
13281 Add static modifier.
13282 (tty_reset_terminal_modes, tty_set_terminal_window)
13283 (tty_set_scroll_region, tty_background_highlight)
13284 (tty_highlight_if_desired, tty_cursor_to)
13285 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
13286 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
13287 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
13288 renames.
13289
880820fe 132902007-08-28 Jan Djärv <jan.h.d@swipnet.se>
cf0590c4
JD
13291
13292 * keyboard.c: Qrtl is new.
13293 (parse_tool_bar_item): Handle :rtl keyword.
13294 (syms_of_keyboard): Intern :rtl keyword.
13295
13296 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
13297
13298 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
13299 so no Lisp code is executed.
13300 (file_for_image, find_rtl_image): New functions.
1f204af3 13301 (xg_get_image_for_pixmap): Use file_for_image.
cf0590c4
JD
13302 (update_frame_tool_bar): If direction is RTL, use RTL image if
13303 defined. Use Gtk stock images if defined.
13304
83cc8d35
YM
133052007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13306
13307 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
13308 for nonexistent or zero-width glyph in composition glyph.
13309
e60c4e15
SM
133102007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
13311
d7e2a28f
SM
13312 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
13313
e60c4e15
SM
13314 * xdisp.c (Finvisible_p): New function.
13315 (syms_of_xdisp): defsubr it.
13316
ee163e6d
JB
133172007-08-24 Juanma Barranquero <lekktu@gmail.com>
13318
13319 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
13320 Doc fixes.
13321
90fa408d
YM
133222007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13323
35277b03 13324 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
90fa408d 13325
cac4219c
MR
133262007-08-24 Martin Rudalics <rudalics@gmx.at>
13327
13328 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
13329 whether decoding has modified buffer contents.
13330
5fc9fdeb
JR
133312007-08-24 Jason Rumney <jasonr@gnu.org>
13332
13333 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
13334 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
13335 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
13336 (init_svg_functions) [HAVE_NTGUI]: New function.
13337 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
13338 (svg_load_image): Use them.
13339 (svg_load_image) [HAVE_NTGUI]: Implement background.
13340
93b23406
YM
133412007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13342
13343 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
13344 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
13345 (LIBX): Remove @RSVG_LIBS@.
13346 (LIBES): Add $(RSVG_LIBS).
13347
13348 * image.c (svg_load_image): Blend with specified background if exists.
13349 Use IMAGE_BACKGROUND. Add Mac OS Support.
13350
13351 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
13352 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
13353 Remove macros.
13354 [MAC_OSX] (socket_callback): Do nothing.
13355 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
13356 ReceiveNextEvent.
13357 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
13358 socket_callback.
13359 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
13360
2467875c
GM
133612007-08-22 Glenn Morris <rgm@gnu.org>
13362
ff8da443 13363 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
2467875c 13364
4ab27a43
GM
133652007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
13366
13367 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
ff8da443 13368
666e0eda
GM
13369 * image.c: Add support for SVG images. Some additional comments
13370 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
13371 (svg_image_p): New function to test for SVG image.
13372 (svg_load): New function to load SVG image.
13373 (svg_load_image): New function, helper for svg_load.
13374 (Qsvg): New Lisp_object.
13375 (svg_keyword_index): New enum.
13376 (svg_format): New static `image_keyword' struct.
13377 (svg_type): New static `image_type' struct.
13378 (librsvg/rsvg.h): Include it.
4ab27a43 13379
b636b4c1
SM
133802007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
13381
13382 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
13383
9ecb827b
SM
133842007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
13385
1d064697
SM
13386 * lread.c (Qold_style_backquotes): New var.
13387 (syms_of_lread): Init and staticpro it.
13388 (load_warn_old_style_backquotes): New fun.
13389 (Fload): Use them to warn about old style backquotes.
13390 (end_of_file_error, Fload): Remove unused vars.
13391
5772ed4b
SM
13392 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
13393
9ecb827b 13394 * lread.c (Vold_style_backquotes): New var.
5aa273b0 13395 (syms_of_lread): Init and export it to Elisp.
9ecb827b
SM
13396 (read1): Set it when we find an old-style (back)quote.
13397
32e1c7b1
JR
133982007-08-22 Jason Rumney <jasonr@gnu.org>
13399
13400 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
13401
b8fa755b
KY
134022007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
13403
13404 * puresize.h (BASE_PURESIZE): Increase to 1140000.
13405
1283140e
RS
134062007-08-19 Richard Stallman <rms@gnu.org>
13407
13408 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
13409
2c4685ee
AS
134102007-08-19 Andreas Schwab <schwab@suse.de>
13411
13412 * alloc.c (pure): Round PURESIZE up.
13413
880820fe 134142007-08-17 Jan Djärv <jan.h.d@swipnet.se>
e8953ebf
JD
13415
13416 * xterm.c (handle_one_xevent): Remove check that mouse click is in
13417 active frame.
13418
6e33efc4
RS
134192007-08-16 Richard Stallman <rms@gnu.org>
13420
13421 * eval.c (Fcommandp): Add parens to clarify.
13422
13423 * minibuf.c (Fall_completions): Use enum for type of table.
13424
13425 * emacs.c (USAGE2): Improve text.
13426
fcf8ff2e
GM
134272007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
13428
5205ee62
GM
13429 * term.c (tty_default_color_capabilities): Declare static
13430 variables in file scope, to avoid HPUX compiler problem.
fcf8ff2e 13431
880820fe 134322007-08-13 Jan Djärv <jan.h.d@swipnet.se>
81d13a51
JD
13433
13434 * gtkutil.c (update_frame_tool_bar): Use -1 as index
13435 to gtk_toolbar_insert.
13436
4a181359
SM
134372007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
13438
1bc99c9c
SM
13439 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
13440
4a181359
SM
13441 * insdel.c (reset_var_on_error): New fun.
13442 (signal_before_change, signal_after_change):
13443 Use it to reset (after|before)-change-functions to nil in case of error.
13444 Bind inhibit-modification-hooks to t.
13445 Don't bind (after|before)-change-functions to nil while they run.
13446
6c28435c
YM
134472007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13448
13449 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
13450 filling pixmap with stippled background.
13451
ad3b3e02
YM
134522007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13453
13454 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
13455 Don't use invisible frame as parent window for repositioning.
13456
a22dec27
SM
134572007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
13458
13459 * print.c (new_backquote_output): Rename from old_backquote_output.
13460 (print): Inverse its logic (according to its name) so as to match the
13461 behavior of new_backquote_flag in lread.c.
13462
7b7d07bb
YM
134632007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13464
13465 * gmalloc.c (posix_memalign): New function.
13466
13467 * macterm.c (frame_highlight, frame_unhighlight): Don't call
13468 ActivateControl/DeactivateControl here.
13469 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
13470 frame-notice-user-settings is non-nil.
13471 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
13472 for kEventParamFMFontStyle.
13473 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
13474 mac_pass_command_to_system and mac_pass_control_to_system here.
13475 (XTread_socket): Call ActivateControl/DeactivateControl here.
13476 (XTread_socket) [TARGET_API_MAC_CARBON]:
13477 Check mac_pass_command_to_system and mac_pass_control_to_system here.
f9426479
YM
13478 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
13479 for window repositioning.
7b7d07bb 13480
22e9fe24
GM
134812007-08-08 Glenn Morris <rgm@gnu.org>
13482
13483 * Replace `iff' in doc-strings and comments.
13484
ae494350
CY
134852007-08-07 Chong Yidong <cyd@stupidchicken.com>
13486
13487 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
13488
6f2528d8
MR
134892007-08-07 Martin Rudalics <rudalics@gmx.at>
13490
13491 * fileio.c (Finsert_file_contents): Run format-decode and
13492 after_insert_file_functions on entire buffer when REPLACE is
13493 non-nil and inhibit modification_hooks and point_motion_hooks.
13494 For consistency, run after_insert_file_functions iff something
13495 got inserted. Move signal_after_change and update_compositions
13496 after code running after_insert_file_functions. Make sure that
6b8e474c 13497 undo_list doesn't record intermediate steps of the decoding process.
6f2528d8 13498
3ceeb306
YM
134992007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13500
13501 * emacs.c (main)
13502 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
13503 Call malloc_enable_thread on interactive startup.
13504
13505 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
7b7d07bb
YM
13506 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
13507 [USE_PTHREAD]: Conditionalize with it.
3ceeb306
YM
13508 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
13509 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
13510 New functions.
13511
ca5e6fd5
CY
135122007-08-06 Chong Yidong <cyd@stupidchicken.com>
13513
32bfce5d
CY
13514 * xdisp.c (redisplay_window): When restoring original buffer
13515 position, make sure it is still valid.
13516
ca5e6fd5
CY
13517 * image.c (png_load): Ignore png-supplied background color.
13518
a5b11587
YM
135192007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13520
13521 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
13522 Use kCFAbsoluteTimeIntervalSince1970.
13523
13524 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
13525 New variable.
13526 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
13527 event loop should be quit.
13528 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
13529 Quit dialog event loop if quit_dialog_event_loop is set.
13530
13531 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
13532 (Selection): New typedef. Use instead of ScrapRef.
13533 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
13534 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
13535 (mac_clear_selection): Rename from clear_scrap.
13536 (get_flavor_type_from_symbol): New argument SEL and subsume function of
ff8da443 13537 scrap_has_target_type. All uses changed.
a5b11587
YM
13538 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
13539 (mac_selection_has_target_p): New functions.
13540 (mac_put_selection_value): Rename from put_scrap_string.
13541 (mac_get_selection_value): Rename from get_scrap_string.
13542 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
13543 (put_scrap_private_timestamp, scrap_has_target_type)
13544 (get_scrap_private_timestamp): Remove functions.
13545 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
13546 (x_own_selection, x_get_local_selection):
13547 Use mac_valid_selection_value_p.
13548 (x_own_selection): Don't use put_scrap_private_timestamp.
13549 Record OWNERSHIP-INFO into Vselection_alist instead.
13550 (x_get_local_selection): Don't check type if request is local.
13551 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
13552 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
13553
880820fe 135542007-08-04 Jan Djärv <jan.h.d@swipnet.se>
991bde0d
JD
13555
13556 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
13557 add comment explaining why.
13558
73ff9d42
RS
135592007-08-03 Richard Stallman <rms@gnu.org>
13560
13561 * fileio.c (Fvisited_file_modtime): Use make_time.
13562
54ed9a2d 135632007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
cdf5c17a
VJL
13564
13565 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
13566 build.
13567
65a9c8e2
SM
135682007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
13569
13570 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
13571
c5925799
KY
135722007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
13573
13574 * puresize.h (BASE_PURESIZE): Increase to 1130000.
13575
adef3de7
RS
135762007-07-30 Richard Stallman <rms@gnu.org>
13577
13578 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
13579
880820fe 135802007-07-29 Jan Djärv <jan.h.d@swipnet.se>
784c1472
JD
13581
13582 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
13583
a10421a1
NR
135842007-07-28 Nick Roberts <nickrob@snap.net.nz>
13585
13586 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
13587 remote default-directory.
13588
13589 * buffer.c (mode-line-format): Update doc string.
13590
0cb1ae20
YM
135912007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13592
13593 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
13594 scroll bar gap.
13595 (x_scroll_bar_create): Set bar->fringe_extended_p.
13596 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
13597 on frame edge. Check fringe background extension. Don't clear
13598 extended fringe background area.
13599
13600 * w32term.h (struct scroll_bar): New member fringe_extended_p.
13601 (w32_fill_area): Enclose multiple statements with do ... while (0).
13602
13603 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
13604 Extend fringe background to scroll bar gap.
13605 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
13606 Set bar->fringe_extended_p.
13607 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
13608 Put leftmost/rightmost scroll bars on frame edge. Check fringe
13609 background extension. Don't clear extended fringe background area.
13610
13611 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
13612 New member fringe_extended_p.
13613
cacc7b51
GM
136142007-07-25 Glenn Morris <rgm@gnu.org>
13615
13616 * Relicense all FSF files to GPLv3 or later.
13617
13618 * COPYING: Switch to GPLv3.
13619
89835619
SM
136202007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
13621
c4f46926
SM
13622 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
13623
13624 * data.c (Finteractive_form): Check for the presence of an
13625 `interactive-form' symbol property more thoroughly.
13626
13627 * data.c (Finteractive_form): Use an `interactive-form' property if
89835619
SM
13628 present, analogous to the function-documentation property.
13629
ee04257d
JR
136302007-07-24 Jason Rumney <jasonr@gnu.org>
13631
13632 * w32fns.c (x_real_positions): Get real position from OS instead of
13633 calculating it.
13634
50624218
JR
136352007-07-23 Jason Rumney <jasonr@gnu.org>
13636
13637 * filelock.c (current_lock_owner): Allow for @ sign in username.
13638
3650f60e
NR
136392007-07-22 Nick Roberts <nickrob@snap.net.nz>
13640
13641 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
13642 remote default-directory.
13643
13644 * buffer.c (mode-line-format): Describe above case in doc string.
13645
1e899515 136462007-07-20 Eli Zaretskii <eliz@gnu.org>
b395d6e1 13647
75be5258
EZ
13648 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
13649 Define if not defined.
13650
2b6e2f4d
JR
136512007-07-18 Jason Rumney <jasonr@gnu.org>
13652
13653 * w32proc.c (w32_executable_type): Handle 64 bit executables.
13654
23dacf80
JB
136552007-07-18 Richard Stallman <rms@gnu.org>
13656
13657 * data.c (Fsetq_default): Doc fix.
13658
13659 * eval.c (Fsetq): Doc fix.
13660
136612007-07-18 Juanma Barranquero <lekktu@gmail.com>
13662
13663 * coding.c (Ffind_operation_coding_system):
13664 * eval.c (For, Fand): Doc fixes.
880820fe 13665 Reported by Johan Bockgård.
23dacf80 13666
880820fe 136672007-07-18 Jan Djärv <jan.h.d@swipnet.se>
656de71a 13668
23dacf80 13669 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
656de71a 13670
23dacf80 13671 * xterm.h: Declare x_ewmh_activate_frame.
656de71a
JD
13672
13673 * xterm.c (x_ewmh_activate_frame): New function.
13674 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
13675
71ec17e6
MR
136762007-07-17 Martin Rudalics <rudalics@gmx.at>
13677
13678 * window.c (Fdisplay_buffer): If largest or LRU window is the
13679 only window, split it even if it is not eligible for splitting.
13680 This restores the original behavior broken by the 2007-07-15
13681 change.
13682
e9818042
GM
136832007-07-17 Glenn Morris <rgm@gnu.org>
13684
13685 * abbrev.c (abbrev_check_chars): New function.
6b8e474c
SM
13686 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
13687 Call abbrev_check_chars to check abbrev characters are word
e9818042
GM
13688 constituents. Doc fix.
13689
e6fca843
SM
136902007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
13691
13692 * process.c (Fstart_process, Fmake_network_process)
13693 (read_process_output): Fix up last changes.
13694
b5d2b4ab
EZ
136952007-07-16 Eli Zaretskii <eliz@gnu.org>
13696
13697 * makefile.w32-in (clean): Don't delete *~.
13698
413a79ad
AS
136992007-07-16 Andreas Schwab <schwab@suse.de>
13700
13701 * window.c (Fdisplay_buffer): Use NILP.
13702 (Fset_window_scroll_bars): Likewise.
13703
f1de8c77
MR
137042007-07-15 Martin Rudalics <rudalics@gmx.at>
13705
13706 * window.c (window_min_size_2): New function.
13707 (window_min_size_1, size_window, Fdisplay_buffer)
13708 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
13709 windows without mode- or header-lines when window-min-height is
13710 too small.
13711 (size_window): Reset nodelete_p after testing it, following an
13712 earlier note by Kim F. Storm.
13713 (display_buffer): Do not set split_height_threshold to twice the
13714 value of window_min_height to avoid changing the value of a
13715 customizable variable. Rather explicitly check whether the
13716 height of the window that shall be splitted is at least as large
13717 as split_height_threshold.
1af74d06
MB
13718 (Fwindow_full_width_p): New defun.
13719 (syms_of_window): Defsubr it.
d31053f9 13720
1af74d06 13721 * window.h: Add EXFUN for Fwindow_full_width_p.
f1de8c77 13722
5e1ab613
JR
137232007-07-14 Jason Rumney <jasonr@gnu.org>
13724
13725 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
13726
f01cbfdd
RS
137272007-07-14 Richard Stallman <rms@gnu.org>
13728
13729 * eval.c (maybe_call_debugger): New function.
13730 (find_handler_clause): Use maybe_call_debugger.
13731 Call it when the handler says `debug'.
13732 Eliminate DEBUGGER_VALUE_PTR.
13733 (Fsignal): Eliminate debugger_value.
13734 (Qdebug): New variable.
13735 (syms_of_eval): Initialize it.
13736
1bab435a
JB
137372007-07-14 Juanma Barranquero <lekktu@gmail.com>
13738
13739 * eval.c (Fprogn):
13740 * keyboard.c (Ftrack_mouse):
13741 * print.c (Fwith_output_to_temp_buffer):
13742 * window.c (Fsave_window_excursion): Doc fix.
13743
be436d23
SM
137442007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
13745
13746 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
13747
60f0fb11
SM
137482007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
13749
13750 * process.h (struct Lisp_Process): Turn slots infd, outfd,
13751 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
13752 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
13753 read_output_delay, and read_output_skip from Lisp_Objects to ints.
13754 Remove unused encoding_carryover.
13755 * process.c: Adjust all functions accordingly.
13756
d8b18043
RS
137572007-07-12 Richard Stallman <rms@gnu.org>
13758
13759 * term.c: Include unistd.h only if HAVE_UNISTD_H.
13760
d5781bb6
JR
137612007-07-11 Jason Rumney <jasonr@gnu.org>
13762
13763 * makefile.w32-in (LIBS): Include OLE32.
13764
13765 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
13766 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
13767
5bb7dfee
SM
137682007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
13769
13770 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
13771 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
13772 from a Lisp_Object into a bare pointer.
13773 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
13774 Adjust the code correspondingly.
13775
13776 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
13777
13778 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
13779 (term_show_mouse_face): Remove unused var `j'.
13780 (handle_one_term_event): Remove unused vars `i' and `j'.
13781 Don't cast return value of ttyname since it's not necessary.
13782
a1be1ce8
SM
137832007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
13784
5045e68e
SM
13785 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
13786 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
13787
8071c00f
SM
13788 * fns.c (map_char_table): Use an array of int for `indices' rather than
13789 an array of Lisp_Objects (which are only ever integers anyway).
13790 (Fmap_char_table): Update caller.
13791 * lisp.h: Update prototype.
13792 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
13793 * fontset.c (Ffontset_info):
13794 * casetab.c (set_case_table): Update callers.
13795
13796 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
13797
fab84e3c
SM
13798 * keymap.c (struct accessible_keymaps_data)
13799 (struct where_is_internal_data): New structures.
13800 (accessible_keymaps_1, where_is_internal_1): Use them to change
13801 interface to adhere to the one used by map_keymap.
13802 (Faccessible_keymaps, where_is_internal): Use map_keymap.
13803 (accessible_keymaps_char_table, where_is_internal_2): Remove.
13804
a1be1ce8
SM
13805 * keymap.h (map_keymap_function_t): More informative prototype.
13806
ef887810
RS
138072007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
13808
13809 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
13810 (looking_at_1): Don't change search_regs and last_thing_searched
13811 if `inhibit-changing-match-data' is non-nil.
13812 (string_match_1, search_buffer, set_search_regs): Likewise.
13813 (syms_of_search): Add Lisp level definition for
13814 `inhibit-changing-match-data' and set it to nil.
8071c00f
SM
13815 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
13816 start and end of the match, instead of using values in search_regs.
ef887810 13817
4d02fc25
SM
138182007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
13819
13820 * minibuf.c (Fcompleting_read): New value `confirm-only'
13821 for `require-match'.
13822
fe45b81f
SM
138232007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
13824
13825 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
13826 part of the 2007-06-27 change to syms_of_fileio.
13827
a56dd283
YM
138282007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13829
13830 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
13831 Check WINDOWP before using XWINDOW. Consolidate return statements.
13832
0cf9f5b5
RS
138332007-06-27 Richard Stallman <rms@gnu.org>
13834
13835 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
13836
a66f285a
JB
138372007-06-27 Juanma Barranquero <lekktu@gmail.com>
13838
13839 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
13840
8d0d84d2
YM
138412007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13842
13843 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
13844 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
13845 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
13846 (_free_internal, memalign): Use them.
13847 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
13848 Initialize to PTHREAD_MUTEX_INITIALIZER.
13849 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
13850 (morecore_nolock): Rename from morecore. All uses changed.
13851 Use only nolock versions of internal allocation functions.
13852 (_malloc_internal_nolock, _realloc_internal_nolock)
13853 (_free_internal_nolock): New functions created from
13854 _malloc_internal, _realloc_internal, and _free_internal.
13855 (_malloc_internal, _realloc_internal, _free_internal): Use them.
13856 Copy hook value to automatic variable before its use.
13857 (memalign): Copy hook value to automatic variable before its use.
13858
5a0bbd9a
KH
138592007-06-26 Kenichi Handa <handa@m17n.org>
13860
13861 * coding.c (Ffind_operation_coding_system): Docstring improved.
13862 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
13863
9a51747b
DK
138642007-06-25 David Kastrup <dak@gnu.org>
13865
13866 * keymap.c (Fcurrent_active_maps): Add `position' argument.
13867 (Fwhere_is_internal): Adjust call to `current-active-maps' to
13868 cater for additional parameter.
13869
13870 * keymap.h: Adjust number of parameters to `current-active-maps'.
13871
13872 * doc.c (Fsubstitute_command_keys): Adjust call of
13873 `current-active-maps'.
13874
e4305426
DK
138752007-06-25 David Kastrup <dak@gnu.org>
13876
13877 * callint.c (Fcall_interactively): Make the parsing of interactive
13878 specs somewhat more readable.
13879
511a18d9
YM
138802007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13881
13882 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
13883 to scroll bar gap also when bitmap fills fringe. Draw only foreground
13884 if extended background has already been filled.
13885
512eb161
YM
138862007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13887
13888 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
13889 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
13890
13891 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
13892 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
13893 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
13894 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
13895 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
13896 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
13897 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
13898 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
13899 Run timers during dialog popup.
13900 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
13901
2386b1f1
JR
139022007-06-21 Jason Rumney <jasonr@gnu.org>
13903
13904 * image.c (convert_mono_to_color_image): Swap fore and background.
13905
fab8b787
JR
139062007-06-20 Jason Rumney <jasonr@gnu.org>
13907
13908 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
13909 (w32_free_bdf_font): Unmap memory not handle.
13910
15bdd7a0 139112007-06-20 Sam Steingold <sds@gnu.org>
3cacba85
SS
13912
13913 * gmalloc.c (__morecore): Fix the declaration to comply with the
13914 definition.
13915
1bb8a291
JB
139162007-06-20 Juanma Barranquero <lekktu@gmail.com>
13917
13918 * w32term.c (w32_delete_display): Remove leftover declaration.
13919 (w32_define_cursor, w32_initialize): Make static.
13920
13921 * w32.c (_wsa_errlist): Fix typo in error message.
13922 (init_environment): Ignore any environment variable from the
13923 registry having a null value.
13924
92648dea
GM
139252007-06-20 Glenn Morris <rgm@gnu.org>
13926
13927 * Makefile.in (LIBGIF): Default to -lgif.
13928
ff25d115
JR
139292007-06-17 Jason Rumney <jasonr@gnu.org>
13930
13931 * w32menu.c (add_menu_item): Don't use multibyte string functions on
13932 unicode strings.
13933
a1a578a5
JB
139342007-06-16 Juanma Barranquero <lekktu@gmail.com>
13935
13936 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
13937 Fix typo in docstring.
13938
af41f8a8
EZ
139392007-06-16 Eli Zaretskii <eliz@gnu.org>
13940
13941 * w32menu.c (add_menu_item): Escape `&' characters in menu items
13942 and their keybindings.
13943
8b29cab9
CY
139442007-06-15 Chong Yidong <cyd@stupidchicken.com>
13945
13946 * composite.c (update_compositions): Fix last fix.
13947
c433c134
JR
139482007-06-14 Jason Rumney <jasonr@gnu.org>
13949
13950 * w32.c (get_process_times_fn): New function pointer.
13951 (globals_of_w32): Intialize it if present in kernel32.dll.
13952 (w32_get_internal_run_time): New function.
13953
13954 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
13955
553d3164
KH
139562007-06-14 Kenichi Handa <handa@etlken.m17n.org>
13957
13958 * composite.c (update_compositions): Check the validness of
13959 compositions.
13960
446ba96f
YM
139612007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13962
13963 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
13964 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
13965
13966 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
13967 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
13968
13969 * macgui.h (USE_MAC_TOOLBAR): New define.
13970
13971 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
13972 Return immediately unless popup is activated.
13973
13974 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
13975 background to scroll bar gap.
13976 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
13977 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
13978 scroll bars on frame edge. Check fringe background extension.
13979 Don't clear extended fringe background area.
13980 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
13981 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
13982 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
13983 [USE_MAC_TOOLBAR]: New macros.
13984 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
13985 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
13986 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
13987 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
13988 [USE_MAC_TOOLBAR]: New functions.
13989 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
13990 manually if previous repositioning has failed.
13991 (mac_handle_keyboard_event): Use precomputed event kind.
13992 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
13993 as tool bar item click. Handle mouse movement over tool bar items.
13994
13995 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
13996 toolbar_win_gravity.
13997 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
13998 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
13999 Add externs.
14000
14001 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
14002 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
14003
9720173f
CY
140042007-06-14 Chong Yidong <cyd@stupidchicken.com>
14005
14006 * image.c (search_image_cache): Remove unused variable.
14007
1217dd00
CY
140082007-06-13 Chong Yidong <cyd@stupidchicken.com>
14009
14010 * xfns.c, xmenu.c: Link to xaw3d if available.
14011
c5b8e0ea
YM
140122007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14013
14014 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
14015 frame_foreground and frame_background.
14016
14017 * image.c (lookup_image): Save frame foreground and background colors.
14018 (search_image_cache): Check if saved and current frame colors match.
14019
c69b0314
SM
140202007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
14021
14022 * regex.c (regex_compile): Remove the `regnum' counter.
14023 Use bufp->re_nsub instead. Add support for \(?N:RE\).
14024
c9612b8e
SM
140252007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
14026
14027 * term.c: Include intervals.h to declare Fget_text_property.
14028
843d2458
JR
140292007-06-10 Jason Rumney <jasonr@gnu.org>
14030
14031 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
14032
1e0d2d60 140332007-06-08 Juanma Barranquero <lekktu@gmail.com>
977f6cfb
JB
14034
14035 * callint.c (Fcall_interactively):
14036 * editfns.c (Fdelete_and_extract_region):
14037 * fileio.c (Fread_file_name):
14038 * fns.c (Fmapconcat):
14039 * keyboard.c (cmd_error_internal):
14040 * keymap.c (Fkey_description):
14041 * lread.c (openp):
14042 * minibuf.c (read_minibuf):
14043 * search.c (wordify):
14044 * sunfns.c (sel_read):
14045 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
14046 * xfns.c (x_default_scroll_bar_color_parameter):
14047 * xmenu.c (menu_help_callback):
14048 * xselect.c (Fx_get_atom_name):
14049 * xterm.c (x_term_init): Use empty_unibyte_string.
14050
15bdd7a0 140512007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
977f6cfb
JB
14052
14053 * alloc.c (init_strings): Initialize canonical empty strings.
14054 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
14055 canonical empty string when the requested size is 0.
14056
14057 * emacs.c (empty_unibyte_string): Rename from empty_string.
14058 (empty_multibyte_string): New canonical empty string.
14059 (syms_of_emacs): Don't initialize empty_string.
14060
14061 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
14062 string, if appropriate.
14063 (empty_unibyte_string, empty_multibyte_string): New externs.
14064 (empty_string): Remove extern.
14065
14066 * lread.c (syms_of_lread): Use empty_unibyte_string.
14067
42c4c67a
JR
140682007-06-07 Jason Rumney <jasonr@gnu.org>
14069
14070 * s/ms-w32.h: Don't define HAVE_TZNAME.
14071
14072 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
14073
aa8280d3
YM
140742007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14075
14076 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
14077
14078 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
14079 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
14080
14081 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
14082 Don't call next handler.
14083 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
14084 Remove argument. Install handler to application.
14085 (set_frame_menubar): Don't change deep_p.
1e0d2d60 14086 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
aa8280d3
YM
14087 FRAME_OUTER_TO_INNER_DIFF_Y.
14088 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
14089 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
14090 [HAVE_DIALOGS]: New macros.
14091 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
14092 Use them.
14093 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
14094
14095 * macselect.c [MAC_OSX] (install_service_handler): Rename from
14096 init_service_handler. All callers changed. Return OSStatus value.
14097
14098 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
14099 All callers changed so as not to call SetPortWindowPort.
14100 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
14101 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
14102 mac_draw_string_common.
14103 (mac_draw_image_string_qd): Likewise.
14104 (mac_draw_string_common): Use them. Add INLINE.
14105 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
14106 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
14107 GetGlobalMouse.
14108 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
14109 and FRAME_OUTER_TO_INNER_DIFF_Y.
14110 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
14111 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
14112 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
14113 repositioning window to mac_handle_window_event.
14114 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
14115 saving window location to mac_handle_window_event
14116 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
14117 (install_menu_target_item_handler): Remove argument in extern.
14118 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
14119 Also accept command events.
14120 (do_keystroke): New function created from XTread_socket.
14121 (init_command_handler): Remove functions.
14122 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
14123 and save window location by kEventWindowShowing and kEventWindowHiding
14124 handlers here. Don't call next handler for window state change and
14125 focus events.
14126 (mac_handle_application_event, mac_handle_keyboard_event)
14127 [TARGET_API_MAC_CARBON]: New functions.
14128 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
14129 kEventWindowShowing and kEventWindowHiding events. Move installation
14130 of mouse, font, text input and menu target item handlers to
14131 install_application_handler.
14132 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
14133 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14134 New function.
14135 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14136 Register it.
c9612b8e
SM
14137 (XTread_socket) [TARGET_API_MAC_CARBON]:
14138 Consolidate SendEventToEventTarget calls.
14139 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
14140 Move application activation handler to mac_handle_application_event.
14141 Move keyboard handler to mac_handle_keyboard_event.
aa8280d3
YM
14142 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
14143 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
14144 init_command_handler. Call install_application_handler.
14145
14146 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
14147 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
14148
6926c954
GM
141492007-06-07 Glenn Morris <rgm@gnu.org>
14150
14151 * emacs.c (main): Use `emacs-copyright' in --version output.
14152
6fe04c89
CY
141532007-06-06 Chong Yidong <cyd@stupidchicken.com>
14154
c9612b8e 14155 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
6fe04c89 14156
7eb0d727
YM
141572007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14158
14159 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
785ce0ac 14160
7eb0d727
YM
14161 * macgui.h: Replace WindowPtr with WindowRef.
14162
14163 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
14164 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
14165 Replace ControlHandle with ControlRef.
14166 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
14167
14168 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
14169 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
14170 Replace ControlHandle with ControlRef.
14171 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
14172 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
14173
14174 * macterm.h (struct scroll_bar): Rename member control_handle_low
14175 and control_handle_high to control_ref_low and control_ref_high.
14176 All uses changed.
14177 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
14178 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
14179 respectively. All uses changed.
14180 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
14181 (install_window_handler, remove_window_handler): Replace WindowPtr
14182 with WindowRef in externs.
14183
65fddb74
JB
141842007-06-05 Juanma Barranquero <lekktu@gmail.com>
14185
14186 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
14187
db1213a9
NR
141882007-06-03 Nick Roberts <nickrob@snap.net.nz>
14189
14190 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
14191
65fddb74 14192 * frame.c (Fmouse_position, Fmouse_pixel_position):
db1213a9
NR
14193 Condition on HAVE_GPM too.
14194
14195 * term.c (term_mouse_highlight): Remove unused variables.
14196 (Fterm_open_connection): Set gpm_zerobased to 1.
14197 (term_mouse_movement, term_mouse_click, handle_one_term_event):
14198 Use zero based co-ordinates.
14199 (handle_one_term_event): Report a drag as mouse movement too.
14200
14201 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
14202
d94df25b
CY
142032007-06-03 Chong Yidong <cyd@stupidchicken.com>
14204
14205 * image.c (search_image_cache): New function. Require background
14206 color match if background color is unspecified in the image spec.
14207 (uncache_image, lookup_image): Use it.
14208
4797b6d9
JB
142092007-06-01 Juanma Barranquero <lekktu@gmail.com>
14210
14211 * window.c (Fshrink_window): Reflow docstring.
14212
1ffe7343
NR
142132007-06-02 Chong Yidong <cyd@stupidchicken.com>
14214
14215 * Version 22.1 released.
14216
142172007-06-01 Richard Stallman <rms@gnu.org>
14218
14219 * xfns.c (x_encode_text): Add GCPRO.
14220
142212007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14222
14223 * xfns.c (x_set_name_internal): Save encoded name before
14224 x_encode_text in case string data is relocated.
14225
142262007-05-31 Richard Stallman <rms@gnu.org>
14227
14228 * buffer.c (syms_of_buffer): Doc fix.
14229
142302007-05-30 Nick Roberts <nickrob@snap.net.nz>
14231
14232 * sysdep.c (init_sys_modes): Add rather than replace with
14233 O_NONBLOCK.
14234
14235 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
14236 term_mouse_moveto.
14237
14238 * termhooks.h (term_mouse_moveto): New extern.
14239
14240 * term.c (mouse_face_window): Rename...
14241 (Qmouse_face_window): ...to this.
14242 (term_show_mouse_face, term_clear_mouse_face)
14243 (term_mouse_highlight): Use Qmouse_face_window.
14244 (term_mouse_moveto): New function.
14245 (term_mouse_position): Make it work.
14246 (syms_of_term): Uncomment assignment to mouse_position_hook.
14247 Staticpro Qmouse_face_window.
14248
142492007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14250
14251 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
14252 around current_column call.
14253
142542007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
14255
14256 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
14257 * xdisp.c (next_element_from_buffer):
14258 * window.c (delete_window):
14259 * term.c (term_mouse_highlight):
14260 * msdos.c (getdefdir):
14261 * macterm.c (mac_create_bitmap_from_bitmap_data)
14262 (init_font_name_table):
14263 * fns.c (Fsxhash):
14264 * data.c (Fmake_local_variable):
14265 * ccl.c (ccl_driver): Likewise.
14266
142672007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14268
14269 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
14270 Call mac_wakeup_from_rne on window size change.
14271
142722007-05-25 Chong Yidong <cyd@stupidchicken.com>
14273
14274 * image.c (uncache_image): Fix typo.
14275
142762007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
14277
14278 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
14279
142802007-05-22 Richard Stallman <rms@gnu.org>
14281
14282 * xterm.c (x_connection_closed): Remove NO_RETURN.
14283
142842007-05-22 Martin Rudalics <rudalics@gmx.at>
14285
14286 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
14287
142882007-05-21 Chong Yidong <cyd@stupidchicken.com>
14289
14290 * image.c (uncache_image): New function.
14291 (Fimage_refresh): New function.
14292
880820fe 142932007-05-20 Jan Djärv <jan.h.d@swipnet.se>
1ffe7343
NR
14294
14295 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
14296
142972007-05-20 Nick Roberts <nickrob@snap.net.nz>
14298
14299 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
14300 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
14301
143022007-05-20 Nick Roberts <nickrob@snap.net.nz>
14303
14304 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
14305 conditional on [HAVE_GPM_H].
14306
143072007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
14308
14309 * syntax.c (skip_chars): Update syntax-table only after we checked that
14310 the new location is valid.
14311
143122007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14313
14314 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
14315 mac_get_window_bounds.
14316
143172007-05-20 Nick Roberts <nickrob@snap.net.nz>
14318
14319 * Makefile.in (LIBGPM): Allow it to be set from configure.
14320 If set then link Emacs with it.
14321
14322 * config.in: Regenerate.
14323
14324 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
14325 New externs.
14326
14327 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
14328 Include gpm.h.
14329 (handle_one_term_event, term_gpm): New externs.
14330
14331 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
14332 and allow it to be interrupted by SIGIO.
14333
14334 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
14335 (wait_reading_process_output): Wait on gpm_fd too.
14336 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
14337 (add_gpm_wait_descriptor_called_flag): New variable.
14338 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
14339
14340 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
14341 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
14342 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
14343 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
14344 (make_lispy_event): Add case GPM_CLICK_EVENT.
14345 (read_avail_input): Handle mouse input.
14346
14347 * term.c (write_glyphs_with_face): New function.
14348 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
14349 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
14350 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
14351 (mouse_face_face_id, term_gpm, pos_x, pos_y)
14352 (last_mouse_x, last_mouse_y): New variables.
14353 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
14354 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
14355 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
14356 (Fterm_close_connection): New functions.
14357 (term_init): Initialise mouse_face_window.
14358
143592007-05-19 Chong Yidong <cyd@stupidchicken.com>
14360
14361 * xdisp.c (redisplay_window): If first window line is a
14362 continuation line, recompute the new window start instead of
14363 recentering.
14364
143652007-05-18 Glenn Morris <rgm@gnu.org>
14366
14367 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
14368 Suggested by Alfred M. Szmidt <ams@gnu.org>.
14369
143702007-05-17 Glenn Morris <rgm@gnu.org>
14371
14372 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
14373
143742007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14375
14376 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
14377 dead key repeat and up events.
14378
143792007-05-14 Chong Yidong <cyd@stupidchicken.com>
14380
14381 * image.c (pbm_load): Check image size for monochrome pbm.
14382
143832007-05-13 Chong Yidong <cyd@stupidchicken.com>
14384
14385 * xterm.c (XTread_socket): Revert last change.
14386
143872007-05-12 Chong Yidong <cyd@stupidchicken.com>
14388
14389 * image.c (pbm_load): Correctly check image size for greyscale pbm.
14390
14391 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
14392
143932007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
14394
14395 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
14396 mixup (YAILOM).
14397
143982007-05-07 Andreas Schwab <schwab@suse.de>
14399
14400 * keymap.c (Flookup_key): Fix typo in last change.
14401
144022007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
14403
14404 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
14405 mapping for unibyte strings.
14406
144072007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14408
14409 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
14410 (Fx_popup_dialog) [MAC_OSX]: Likewise.
14411
144122007-04-29 Richard Stallman <rms@gnu.org>
14413
14414 * insdel.c (replace_range): For undo, record insertion first.
14415
144162007-04-29 Andreas Schwab <schwab@suse.de>
14417
14418 * lisp.h (VECSIZE): Use OFFSETOF.
14419
144202007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14421
14422 * xdisp.c (try_window_reusing_current_matrix): Fix number of
14423 disabled lines.
14424
144252007-04-28 Richard Stallman <rms@gnu.org>
14426
14427 * lread.c (read_escape): In a string, \s is always space.
14428
880820fe 144292007-04-27 Jan Djärv <jan.h.d@swipnet.se>
1ffe7343
NR
14430
14431 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
14432
14433 * gtkutil.c (xg_update_menubar, create_menus): Create empty
14434 submenu for menu bar items.
14435
382c648d 14436See ChangeLog.10 for earlier changes.
6922b018
KH
14437
14438;; Local Variables:
880820fe 14439;; coding: utf-8
33462dfa 14440;; add-log-time-zone-rule: t
67e8d28a 14441;; bug-reference-url-format: "http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=%s"
6922b018 14442;; End:
2a34a036 14443
59ce725a 14444 Copyright (C) 2007, 2008 Free Software Foundation, Inc.
7f6d64f8
GM
14445
14446 This file is part of GNU Emacs.
14447
5a1dde61 14448 GNU Emacs is free software: you can redistribute it and/or modify
7f6d64f8 14449 it under the terms of the GNU General Public License as published by
5a1dde61
GM
14450 the Free Software Foundation, either version 3 of the License, or
14451 (at your option) any later version.
7f6d64f8
GM
14452
14453 GNU Emacs is distributed in the hope that it will be useful,
14454 but WITHOUT ANY WARRANTY; without even the implied warranty of
14455 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14456 GNU General Public License for more details.
14457
14458 You should have received a copy of the GNU General Public License
5a1dde61 14459 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
ab5796a9 14460
28f60c3d 14461;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40