[_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
b8526f6e
EZ
12008-08-15 Eli Zaretskii <eliz@gnu.org>
2
8e764ce0
EZ
3 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
4
b8526f6e
EZ
5 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
6 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
7 All users changed.
a644b2e4
EZ
8 (stat): Only root directory passed to GetDriveType. Allow RAM
9 disk as well as local fixed disk when w32-get-true-file-attributes
10 is set to `local'.
f8b35b24
EZ
11 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
12 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
13 (w32_cached_id, w32_add_to_cache): New functions.
14 (get_name_and_id): Look account names in the cache before calling
15 lookup_account_sid.
16 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
17 New initialization flags.
18 (globals_of_w32): Initialize them to zero.
19 (w32_system_process_attributes): Use w32_cached_id and
20 w32_add_to_cache.
b8526f6e 21
f581fad6
CY
222008-08-14 Lawrence Mitchell <wence@gmx.li>
23
24 * lread.c (Fread_char, Fread_char_exclusive): If no character
25 event is read before timeout is reached, return nil, rather than
26 converting to a number.
27
23c6bdbe
CY
282008-08-14 Chong Yidong <cyd@stupidchicken.com>
29
6988207c 30 * fns.c (use_dialog_box): Doc fix.
97aec90a 31
23c6bdbe
CY
32 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
33 on OS X.
34
01623ee7
CY
352008-08-13 Chong Yidong <cyd@stupidchicken.com>
36
37 * frame.c (Qns_parse_geometry): New var.
38 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
39
f00f8cb7
CY
402008-08-11 Chong Yidong <cyd@stupidchicken.com>
41
42 * xdisp.c (x_produce_glyphs): Handle the case when font has no
43 space character in calculating tabs.
44
11d8ec4a
DN
452008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
46
47 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
48
27bef0c8
GM
492008-08-10 Glenn Morris <rgm@gnu.org>
50
51 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
52 silence gcc "limited range of data type" warnings in some
53 make_fixnum_or_float calls.
54
8f8b082a
EZ
552008-08-09 Eli Zaretskii <eliz@gnu.org>
56
754a2d13
EZ
57 * w32.c (w32_system_process_attributes): If the process does not
58 exist, return nil.
59
8f8b082a
EZ
60 * w32.c: Include thelp32.h, psapi.h and coding.h.
61 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
62 declarations.
63 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
64 (Process32Next_Proc): New typedefs.
65 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
66 (g_b_init_process32_next, g_b_init_open_thread_token)
67 (g_b_init_impersonate_self, g_b_init_revert_to_self)
68 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
69 (g_b_init_get_process_working_set_size)
70 (g_b_init_global_memory_status_ex): New static variables.
71 (globals_of_w32): Initialize them.
72 (create_toolhelp32_snapshot, process32_first, process32_next)
73 (open_thread_token, impersonate_self, revert_to_self)
74 (get_process_memory_info, get_process_working_set_size)
75 (global_memory_status, global_memory_status_ex): New wrapper
76 functions.
77 (w32_list_system_processes, w32_system_process_attributes)
78 (enable_privilege, restore_privilege, ltime, process_times): New
79 functions.
80 (convert_time_raw): New function.
81 (convert_time): Remove conversion of FILETIME into time in 100
82 nsec units, call convert_time_raw instead.
83
84 * process.h (w32_list_system_processes, w32_system_process_attributes):
85 Add prototypes.
86 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
87 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
88 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
89 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
90
91 * process.c (Fsystem_process_attributes): Doc fix.
92
97c98587
CY
932008-08-08 Chong Yidong <cyd@stupidchicken.com>
94
95 * xdisp.c (move_it_to): When stopping at a charpos, check if
96 that's a continued multi-char glyph; if so, advance to the actual
97 glyph.
98
48fad8e8
DN
992008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
100
101 * s/darwin.h (OTHER_FILES): Do not define here, defined in
102 config.in.
103
104 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
105 (.m.o): Use it.
106 * config.in: Regenerate.
107
709fc721
CY
1082008-08-07 Chong Yidong <cyd@stupidchicken.com>
109
110 * xdisp.c (redisplay_window): Revert last change.
111 (try_window): Check bottom scroll margin too.
112
b330336c
AR
1132008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
114
115 * config.in: Regenerate.
116
117 * Makefile.in (emacs): Remove ndef NS conditional for 'emacs
118 -list-load-path-shadows'.
119 (nsgui.h): Reduce number of things depending on it.
120
b2c5015c
CY
1212008-08-06 Chong Yidong <cyd@stupidchicken.com>
122
123 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
124 instead of window-end which does the wrong thing at eob.
125 (try_cursor_movement): Minor optimization.
126 (redisplay_window): If scroll margin is defined, don't assume
127 window doesn't need scrolling.
128
55737942
AR
1292008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
130
131 * config.in: Regenerate.
132
133 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
134 (mostlyclean): Don't delete *.d under NS.
135
136 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
137
29428bb8
KH
1382008-08-06 Kenichi Handa <handa@m17n.org>
139
140 * xfont.c (xfont_list_family): Return a list of symbols, not
141 strings.
142
5c17fc1d
AS
1432008-08-06 Andreas Schwab <schwab@suse.de>
144
145 * config.in: Regenerate.
146
cd7f53ca
CY
1472008-08-05 Chong Yidong <cyd@stupidchicken.com>
148
012fd6f4
CY
149 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
150 forcing a window start.
151
cd7f53ca
CY
152 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
153 (auto_save_1): Update modtime when auto-save-list-file-name is on.
154
3d0a4431
AR
1552008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
156
95889848 157 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
3d0a4431
AR
158 argument.
159
d765e3a3
JB
1602008-08-05 Juanma Barranquero <lekktu@gmail.com>
161
162 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
163 <scroll-down-aggressively, before-change-functions>:
164 <after-change-functions>: Reflow docstrings.
165
4e622592 1662008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8df8bcc9 167 Ken Raeburn <raeburn@gnu.org>
4e622592
AR
168
169 Dock menu customization, based on a patch by Ken Raeburn, plus some
170 other fixes.
171 * nsmenu.m (dockMenu): New variable.
172 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
173
174 * nsterm.h (dockMenu): Declare.
175
176 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
177 (ns_term_init): Initialize dockMenu.
178 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
179 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
180 left.
181
182 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
183
108a6883
CY
1842008-08-04 Chong Yidong <cyd@stupidchicken.com>
185
186 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
187
188 * config.in: Regenerate.
189
ae10f60c
SZ
1902008-08-04 Seiji Zenitani <zenitani@mac.com>
191
d765e3a3 192 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
ae10f60c 193
b537b75b
CY
1942008-08-04 Chong Yidong <cyd@stupidchicken.com>
195
196 * nsterm.h (find_and_call_menu_selection): Fix prototype.
197
14145fa3
AR
1982008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
199
200 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
201
202 * keyboard.h: Comment an #endif.
203
07b87a10
AR
204 * lisp.h (have_menus_p): Adjust comment.
205
206 * menu.c (find_and_return_menu_selection): Fix comparison with
207 client_data.
208
209 * nsmenu.m (popup_activated_flag): New variable.
210 (popup_activated): New function.
211 (menu-or-popup-active-p): New exported lisp definition.
212 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
213 when popup done.
214 (ns_popup_dialog): Set popup_activated_flag.
215
4e622592 216 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
14145fa3
AR
217 version for GNUstep (handled by conditional typedef in nsterm.m).
218 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
219 in rgb.txt).
220
221 * process.c (init_process): Use DARWIN_OS, not DARWIN.
222
223 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
224
07b87a10
AR
225 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
226
227 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
228 shortcircuit if popup_activated like GTK and X toolkit.
229
14145fa3
AR
230 * m/inter386.h: Change DARWIN to DARWIN_OS.
231
232 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
233 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
07b87a10
AR
234 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
235 comment on NO_SOCK_SIGIO.
14145fa3 236
6e09bde1
CY
2372008-08-03 Chong Yidong <cyd@stupidchicken.com>
238
14145fa3 239 * nsterm.m (windowDidResize): Remove stopModal call.
6e09bde1 240
a023b559
AS
2412008-08-03 Andreas Schwab <schwab@suse.de>
242
51757187
AS
243 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
244 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
a023b559 245
a2dec0e5
CY
2462008-08-02 Chong Yidong <cyd@stupidchicken.com>
247
248 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
249 Don't use uninitialized pointer variable when using getrlimit.
250
4ff1bf17
JR
2512008-08-02 Jason Rumney <jasonr@gnu.org>
252
4342f814 253 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
4ff1bf17 254
934e2a68
EZ
2552008-08-02 Eli Zaretskii <eliz@gnu.org>
256
0078170f
EZ
257 * alloc.c (NSTATICS): Bump to 0x640.
258
934e2a68
EZ
259 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
260
261 * lisp.h: Add prototype for directory_files_internal.
262
263 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
264 New functions.
265 (syms_of_process): Defsubr them. Add initializations for various
266 Q* symbols used in procfs_system_process_attributes.
267 (procfs_list_system_processes, procfs_system_process_attributes)
268 [HAVE_PROCFS]: New functions.
269 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
270 (procfs_get_total_memory): New functions.
271
dee8cd43
JB
2722008-08-01 Juanma Barranquero <lekktu@gmail.com>
273
274 * xfaces.c (Fx_load_color_file): Fix previous change;
275 it is #ifdef WINDOWSNT, not WINDOWS_NT.
276
367ea173
MA
2772008-08-01 Michael Albinus <michael.albinus@gmx.de>
278
279 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
280
04f33e11
AR
2812008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
282
283 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
284
73592876
CY
2852008-08-01 Chong Yidong <cyd@stupidchicken.com>
286
dee8cd43 287 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
6fcb12fd
CY
288
289 * nsterm.m (EmacsApp -application:openFiles:): GNUStep does not
290 define NSApplicationDelegateReplySuccess.
291 (EmacsView -converstationIdentifier): Use long instead of
292 NSInteger for GNUStep, since it doesn't have NSInteger.
293
61bf63e2
CY
294 * xmenu.c: Revert last change.
295
73592876
CY
296 * keyboard.h: Fix last change.
297
ebadbfa6
AR
2982008-08-01 Juanma Barranquero <lekktu@gmail.com>
299
300 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
301 on Windows.
302
15034960 3032008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
f78c2c97 304
15034960 305 Warning clearing and clean-up in NS port.
dee8cd43
JB
306 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
307 Add prototypes.
15034960
AR
308 * nsgui.h (FACE_DEFAULT): Remove, unused.
309 (XGCValues): Change colors to unsigned long.
310 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
311 nsterm.m.
312 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
313 (ns_list_fonts): Remove, unused.
314 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
315 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
316 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
317 (nsfont_draw): Compare face colors to 0, not nil.
318 * nsmenu.m (struct widget_value): Drop unneeded declaration.
319 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
320 (-addSubmenuWithTitle:): Use NSMenuItem class.
321 (ns_popup_menu): Use NO, not NULL, for enabled setting.
322 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
323 (ns_clip_to_row): Make gc arg a BOOL.
324 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
325 ns_clip_to_row() call.
326 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
327 used). Cast FRAME_FONT assignments.
328 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
329 (ns_string_to_lispmod): Change arg to const char.
330 (ns_term_init): Use NSMenuItem class.
331 (EmacsApp -openFile:): Move to different section of file.
332 (EmacsApp -application:openFiles:): Don't return a value, call
333 -replyToOpenOrPrint:.
334 (EmacsView -keyDown:): Fix up cast.
335 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
336 (EmacsView -menuDown:): Cast tag in call to
337 find_and_call_menu_selection().
338 (ns_list_fonts): Remove, unused.
339 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
340 (ns_fontname_to_xlfd): Make static.
dee8cd43
JB
341 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
342 Remove prototypes (now in keyboard.h).
15034960 343 (next_menubar_widget_id): Remove, unused.
dee8cd43
JB
344 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
345 Remove prototypes (now in keyboard.h).
15034960
AR
346 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
347
27ec92c9
DN
3482008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
349
f78c2c97
DN
350 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
351 (floatfns.o): Depend on syssignal.h.
352 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
353
dee8cd43
JB
354 * systty.h: Fix previous change that removed BSD_TERMIOS.
355 Add comments to #ifdefs.
27ec92c9 356
7ded3383
AR
3572008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
358
359 * w32fns.c (w32-load-color-file): Remove.
360 (x-open-connection): Use renamed Fx_load_color_file.
361 * xfaces.c (x-load-color-file): Add.
362 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
363 Emacs.clr.
7ded3383
AR
364 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
365
13ecc6dc
MA
3662008-07-31 Michael Albinus <michael.albinus@gmx.de>
367
368 * dbusbind.c (Fdbus_call_method_asynchronously)
369 (Fdbus_method_error_internal): New defuns.
370 (xd_read_message): Handle also reply messages.
371 (Vdbus_registered_functions_table): Extend docstring.
372
12063bc5
JB
3732008-07-31 Juanma Barranquero <lekktu@gmail.com>
374
375 * keyboard.c (gobble_input): Fix previous change.
376
7c2fb837
DN
3772008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
378
379 * bitmaps/README:
380 * xfns.c:
381 * termcap.c:
382 * term.c:
383 * syswait.h:
384 * systty.h:
385 * systime.h:
386 * syssignal.h:
387 * sysdep.c:
388 * process.h:
389 * process.c:
390 * print.c:
391 * ndir.h:
392 * lread.c:
393 * keyboard.c:
394 * getpagesize.h:
395 * floatfns.c:
396 * fileio.c:
397 * emacs.c:
398 * doc.c:
399 * dispnew.c:
400 * dired.c:
401 * data.c:
402 * callproc.c:
403 * buffer.c:
404 * README:
405 * Makefile.in:
406 * s/template.h:
407 * s/msdos.h:
408 * m/vax.h: Remove VMS support.
409 * s/vms.h:
410 * vlimit.h:
411 * uaf.h:
412 * temacs.opt:
413 * param.h:
414 * ioctl.h: Remove file.
415
69ab3201
DN
4162008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
417
418 * s/ms-w32.h (MULTI_KBOARD): Remove.
419 * xterm.c:
420 * xselect.c:
421 * xfns.c:
422 * window.c:
423 * w32term.c:
424 * w32fns.c:
425 * terminal.c:
426 * termhooks.h:
427 * term.c:
428 * sysdep.c:
429 * keyboard.h:
430 * keyboard.c:
431 * frame.h:
432 * frame.c:
d765e3a3 433 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
69ab3201
DN
434 * config.in: Regenerate.
435
bd187c49
JR
4362008-07-30 Jason Rumney <jasonr@gnu.org>
437
12063bc5 438 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
bd187c49 439
12063bc5
JB
440 * w32font.c (w32font_encode_char): Leave as unicode if in range.
441 (w32font_open_internal): Get unicode version of textmetrics.
442 Don't enable or disable glyph indices here.
443 (w32font_open): Disable use of glyph indices.
bd187c49 444
12063bc5 445 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
bd187c49 446
e3072df2
CY
4472008-07-30 Chong Yidong <cyd@stupidchicken.com>
448
39dde873 449 * minibuf.c (Vread_buffer_function): Doc fix.
e3072df2 450
bc850333
CY
4512008-07-30 John Paul Wallington <jpw@pobox.com>
452
453 * minibuf.c (read_buffer_completion_ignore_case): New var.
454 (Fread_buffer): Use it.
455
9d9a7716
DN
4562008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
457
458 * systty.h (sensemode): Remove empty #if. Remove reference to
459 BSD_TERMIOS, unused.
460
461 * sysdep.c: Remove reference to DGUX.
462 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
463
464 * config.in: Regenerate.
465
0c34f98e
JR
4662008-07-30 Jason Rumney <jasonr@gnu.org>
467
12063bc5 468 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
0c34f98e 469
c320e90a
JR
4702008-07-29 Jason Rumney <jasonr@gnu.org>
471
12063bc5
JB
472 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
473 is populated.
474 (uniscribe_encode_char): Always use uniscribe.
475 Avoid using context if cache is populated.
c320e90a 476
3f7ead30
JD
4772008-07-29 Jan Djärv <jan.h.d@swipnet.se>
478
479 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
480 open menu.
481
482 * gtkutil.c (menu_nav_ended): Remove.
483 (create_menus): Remove signal connect for menu_nav_ended.
484
639eebe2
CY
4852008-07-28 Chong Yidong <cyd@stupidchicken.com>
486
487 * xdisp.c (redisplay_window): Check return value of
488 compute_window_start_on_continuation_line before forcing a window
489 start.
490
d1f535d2
JR
4912008-07-28 Jason Rumney <jasonr@gnu.org>
492
0e134ea0 493 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
9cac6313 494
0e134ea0
JB
495 * w32term.c (w32_enable_unicode_output, cleartype_active):
496 Remove obsolete display options.
497 (x_draw_glyph_string_background): Don't use old cleartype_active
498 workaround.
499 (w32_initialize): Remove cleartype_active initialization.
500 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
d1f535d2 501
ddaa36e1
AS
5022008-07-28 Andreas Schwab <schwab@suse.de>
503
504 * lisp.h (init_weak_hash_tables, syms_of_font)
505 (xd_read_queued_messages, syms_of_dbusbind): Declare.
506 (remove_hash_entry): Don't declare.
507 * eval.c (maybe_call_debugger): Make static and move before use.
508 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
509 * xdisp.c: Include "gtkutil.h" if USE_GTK.
510 * xterm.h (x_set_frame_alpha): Declare.
511
42ffd097
JD
5122008-07-28 Jan Djärv <jan.h.d@swipnet.se>
513
514 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
515 (create_menus): Connect selection-done to menu_nav_ended.
516
bd6ce2ba
AR
5172008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
518
519 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
520 Set Vx_resource_name to a fallback. Replace read of 'buffered'
521 parameter with read of 'alpha' one.
522 (Qns_frame_parameter): Remove.
523 * nsselection.m (selection-coding-system)
524 (next-selection-coding-system, Vselection_coding_system)
525 (Vnext_selection_coding_system): Drop.
526
583ff3c3
AR
5272008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
528
529 * nsfns.m (do-applescript, do_applescript): Rename to
530 ns-do-applescript, ns_do_applescript, and move within file.
531
9e2a2647
DN
5322008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
533
534 Remove support for Mac Carbon.
535 * mactoolbox.c:
536 * macterm.h:
537 * macterm.c:
538 * macselect.c:
539 * macmenu.c:
540 * macgui.h:
541 * macfns.c:
542 * mac.c: Remove file.
543 * s/darwin.h:
544 * m/intel386.h:
545 * xfaces.c:
546 * xdisp.c:
547 * window.c:
548 * tparam.c:
549 * termhooks.h:
550 * termcap.c:
551 * term.c:
552 * syssignal.h:
553 * sysselect.h:
554 * sysdep.c:
555 * process.c:
556 * lread.c:
557 * lisp.h:
558 * keyboard.c:
559 * image.c:
560 * fringe.c:
561 * frame.h:
562 * frame.c:
563 * fontset.c:
564 * font.h:
565 * font.c:
566 * fns.c:
567 * fileio.c:
568 * emacs.c:
569 * dispnew.c:
570 * dispextern.h:
571 * config.in:
572 * atimer.c:
573 * Makefile.in: Remove code for Carbon
574
7ad8fe5e 5752008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4874e088 576
7ad8fe5e 577 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
69eff41f 578
7ad8fe5e 5792008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
69eff41f 580
7ad8fe5e
MB
581 * macterm.h (kCGBitmapByteOrder32Host): New define for
582 non-universal SDKs.
69eff41f 583
7ad8fe5e
MB
584 * image.c (mac_create_cg_image_from_image, image_load_image_io)
585 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
dcdbbb5d 586
7ad8fe5e
MB
587 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
588 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
dcdbbb5d 589
7ad8fe5e 5902008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
09721b31 591
0e134ea0 592 * w32inevt.c: Include dispextern.h.
09721b31 593
51dc79f8
AS
5942008-07-26 Andreas Schwab <schwab@suse.de>
595
596 * print.c (print_object): Fix off-by-one in last change.
597
dea101f6
JB
5982008-07-25 Juanma Barranquero <lekktu@gmail.com>
599
600 * term.c (syms_of_term): Don't initialize default_orig_pair,
601 default_set_foreground and default_set_background on Windows.
602
11856d4d
JR
6032008-07-25 Jason Rumney <jasonr@gnu.org>
604
0e134ea0
JB
605 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
606 ScriptItemize. Clean up return value checking. Remove unused
607 variables.
608 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
609 shaping engine.
11856d4d 610
0e134ea0
JB
611 * w32font.c (w32font_has_char): Handle the case where we can't
612 determine the script for a character.
11856d4d 613
7bfc0e9e
CY
6142008-07-25 Chong Yidong <cyd@stupidchicken.com>
615
acdadb15
CY
616 * term.c (syms_of_term): Initialize default_orig_pair,
617 default_set_foreground, and default_set_background.
618
5efc6200
CY
619 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
620 clash (bug#86).
621 (getloadavg): Callers changed.
622
7bfc0e9e 623 * image.c (svg_load_image): Fix last change.
c01c4e35
CY
624 (svg_load_image): Use rsvg_handle_get_dimensions to check that
625 image size is valid. Use g_object_unref instead of deprecated
626 rsvg_handle_free to free rsvg handle.
9d7112ed 627 (x_from_xcolors): Don't initialize pixmap (silence compiler).
7bfc0e9e 628
f31cf550
JR
6292008-07-25 Jason Rumney <jasonr@gnu.org>
630
0e134ea0
JB
631 * w32font.c (w32font_encode_char): Encode characters outside BMP as
632 surrogates before looking up glyph index.
633 (w32font_text_extents): Encode as surrogates if falling back to
634 functions that need UTF-16 wide chars.
f31cf550 635
0e134ea0
JB
636 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
637 BMP as surrogates before looking up glyph index.
f31cf550 638
b293d659
CY
6392008-07-25 Chong Yidong <cyd@stupidchicken.com>
640
641 * image.c (svg_load_image): Check for failure in return value of
642 rsvg_handle_get_pixbuf. Free rsvg handle when done.
643
1ada3dab
JR
6442008-07-25 Jason Rumney <jasonr@gnu.org>
645
0e134ea0 646 * w32font.c (Fx_select_font): Reverse sense of second arg.
1ada3dab 647
dbc812e0
SM
6482008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
649
6449674e
SM
650 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
651 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
652
dbc812e0
SM
653 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
654 (PURESIZE): Use it.
655
67725bd8
DN
6562008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
657
340074e9
DN
658 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
659 * m/alpha.h (TEXT_END):
660 * m/ibmrs6000.h (TEXT_END):
661 * m/macppc.h (TEXT_END):
662 * s/darwin.h (TEXT_END):
663 * s/msdos.h (TEXT_END): Remove, unused.
664 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
665 * s/cygwin.h: Remove comment.
666
a11af7f8
DN
667 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
668 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
669 * m/intel386.h (DOT_GLOBAL_START):
670 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
671 (USG): Remove, file not used on USG platforms.
672
67725bd8
DN
673 * Makefile.in (HAVE_X11): Remove empty #else.
674
6420e80c
AS
6752008-07-24 Andreas Schwab <schwab@suse.de>
676
677 * fileio.c (Finsert_file_contents): Properly adjust undo list
678 after format conversion.
679
d1c38b57
JD
6802008-07-24 Jan Djärv <jan.h.d@swipnet.se>
681
682 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
683 (menu_nav_ended): Remove.
684 (create_menus): Remove signal connect for menu_nav_ended.
685 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
686 create_menus.
687 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
688
597634cb
JR
6892008-07-23 Jason Rumney <jasonr@gnu.org>
690
dbc812e0
SM
691 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
692 with opened font.
693 (w32font_open): Set font type to gdi.
4b135503 694
dbc812e0 695 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
597634cb 696
7c799cf5
DN
6972008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
698
7a14f2a0
DN
699 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
700 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
701 defines it.
702 * unexec.c (ADDR_CORRECT): Define unconditionally.
703
704 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
705
f914a6bf
DN
706 * unexec.c: Remove code depending on !COFF and USG, the file is
707 not used for such systems.
708
268b24ee
DN
709 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
710 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
711 (LD_SWITCH_SYSTEM_1): Remove, update users.
712
911109b1
DN
713 * s/darwin.h (DATA_END):
714 * m/intel386.h (DATA_END):
715 * m/ibmrs6000.h (DATA_END):
716 * m/alpha.h (DATA_END): Remove, unused.
911109b1 717
77ccee09
DN
718 * config.in: Regenerate.
719 * s/ms-w32.h (subprocesses): Define unconditionally.
720 * s/template.h (subprocesses): Update comment.
721 * s/vms.h (subprocesses):
722 * s/usg5-4.h (subprocesses):
723 * s/hpux10-20.h (subprocesses):
724 * s/gnu-linux.h (subprocesses):
725 * s/cygwin.h (subprocesses):
726 * s/bsd-common.h (subprocesses):
727 * s/aix4-2.h (subprocesses):
728 * s/darwin.h (subprocesses): Do not define, defined by default now.
729
730 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
731 Remove all references.
732 (temacs): Add GNUStep specific ld flags.
733
7c799cf5
DN
734 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
735 similarly to what X does.
736
712b2de1
AR
7372008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
738
739 * nsfns.m (x-list-fonts): Remove.
740 (syms_of_nsfns): Drop the x-list-fonts declaration.
741 * nsterm.m: Get rid of remaining "//" comments.
742
0d4e1b5f
CY
7432008-07-22 Chong Yidong <cyd@stupidchicken.com>
744
745 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
746
747 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
748 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
749 (Fns_own_selection_internal, Fx_disown_selection_internal)
750 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
751
752 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
753 ... */' style of docstrings. Doc fixes.
754
952913d4
DN
7552008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
756
0ecc3474 757 * terminfo.c (UP, BC, PC): Undo previous change.
0d4e1b5f 758
952913d4
DN
759 * nsfns.m: Rename ns prefixed functions/variables to the
760 corresponding x versions. Update references.
761
02d8b017
SM
7622008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
763
764 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
765
11b8fe14
DN
7662008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
767
02d8b017
SM
768 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
769 Remove forwarding functions.
cc98b6a0
DN
770 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
771 non-static.
772 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
773 non-static.
774 (ns_frame_parm_handlers): Use the new names.
775 (syms_of_nsfns): Move to the end of file.
776
1baa6236
DN
777 * nsterm.m (syms_of_nsterm): Move to the end of file.
778
11b8fe14
DN
779 * dispnew.c (init_display): Remove code for X10.
780
8dcaeba2
JR
7812008-07-22 Jason Rumney <jasonr@gnu.org>
782
02d8b017
SM
783 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
784 bare drive.
8dcaeba2 785
365bac35
AR
7862008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
787
788 * nsterm.m (syms_of_nsterm): Remove debugging println.
789
6a0f0f86
DR
7902008-07-22 David Reitter <david.reitter@gmail.com>
791
a3c83618 792 * nsfns.m (do_applescript, F_do_applescript): NS version of the
6a0f0f86
DR
793 Carbon implementation of the same functionality: execute arbitrary
794 AppleScript code.
795
51d5ef9f
AR
7962008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
797
a3c83618 798 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
51d5ef9f
AR
799 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
800 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
801 (Fx_display_mm_height, Fx_display_mm_width)
802 (Fx_display_backing_store, Fx_display_visual_class)
803 (Fx_display_save_under, Fx_open_connection)
804 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
805 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
806 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
807 (Fx_display_pixel_width, Fx_display_pixel_height)
808 (Fx_display_usable_bounds, Fx_display_planes)
809 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
810 ... */' style of docstrings.
811
6efac844
DN
8122008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
813
b8ff87cc
DN
814 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
815 on this platform.
816 (mips):
817 * m/iris4d.h (mips): Do not define.
818 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
819
92d1a7a3
DN
820 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
821
de08d1be
CY
822 * image.c:
823 * nsfns.m:
824 * nsselect.m:
825 * nsterm.h:
9e50ff0c
DN
826 * nsterm.m: Rename ns prefixed functions/variables to the
827 corresponding x versions. Update references.
828
ff486501
DN
829 * m/ibms390x.h (NO_REMAP): Do not undefine.
830
6efac844
DN
831 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
832
ea9de876
CY
8332008-07-21 Chong Yidong <cyd@stupidchicken.com>
834
835 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
836 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
837 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
838 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
839 (Fns_display_mm_height, Fns_display_mm_width)
840 (Fns_display_backing_store, Fns_display_visual_class)
841 (Fns_display_save_under, Fns_open_connection)
842 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
843 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
844 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
845 (Fns_display_pixel_width, Fns_display_pixel_height)
846 (Fns_display_usable_bounds, Fx_display_planes)
847 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
848
b42f4115 8492008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
3965adab
CY
850
851 * print.c (print_object): Check print_depth before searching for
852 circularities.
853
c0894fb9
MA
8542008-07-21 Michael Albinus <michael.albinus@gmx.de>
855
856 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
857 only sprintf.
858
d90bfd1c
KH
8592008-07-21 Kenichi Handa <handa@m17n.org>
860
861 * ftfont.c (adjust_anchor): Check if DetalValue is not NULL.
862
8e2911c2
AS
8632008-07-20 Andreas Schwab <schwab@suse.de>
864
865 * syntax.c (find_start_pos, find_start_value)
866 (find_start_value_byte, find_start_begv, find_defun_start)
dbc812e0 867 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
8e2911c2 868
98a01702
DN
8692008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
870
871 * s/sol2-3.h: Insert contents of s/sol2.h.
872 (LD_SWITCH_SYSTEM): Remove redundant definition.
873 * s/sol2.h: Remove, unused.
874
704a3a2d
AR
8752008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
876
dbc812e0 877 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
704a3a2d
AR
878
8792008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
e5e2baab
AR
880
881 * Makefile.in (ns_appdir): Fix typo in find command.
882
89f1e540
DN
8832008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
884
c788afce
DN
885 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
886
89f1e540
DN
887 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
888 added not supported anymore.
889
e5e2baab 890 * s/usg5-4-2.h (LIBS_SYSTEM):
89f1e540
DN
891 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
892
893 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
894 * s/lynxos.h (GETPGRP_NO_ARG):
895 * s/hpux10-20.h (NO_SIOCTL_H):
896 * s/gnu.h (GETPGRP_NO_ARG):
897 * s/gnu-linux.h (NO_SIOCTL_H):
898 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
899 * s/cygwin.h (GETPGRP_NO_ARG):
900 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
901 (C_DEBUG_SWITCH): Remove duplicate definition.
902
903 * m/ibms390.h: Remove boilerplate comments.
904
905 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
906
907 * process.c (HAVE_SERIAL): Consolidate ifdefs.
908 (wait_reading_process_output): Remove code for SunOS, platform not
909 supported anymore. Use SOLARIS2 instead of sun.
910
ed96cde8
AR
9112008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
912
913 * font.c (font_open_by_name): Under NS, default lface height to zero.
914 (font_open_for_lface): Under NS, set size based on frame fontsize.
915 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
916 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
917
9182008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
919
920 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
921 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
922 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
923 YES/NO.
924 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
925 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
926 * Makefile.in (clean): Clear out build destination dir.
927
5a2d7ab6
AR
9282008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
929
930 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
931 xterm, xselect.
932 * lisp.h: Remove declaration of hash_remove.
933 * nsgui.h: Remove redefinitions of hash_remove.
934 * fns.c (hash_remove): Rename to hash_remove_from_table.
935
8df8bcc9 9362008-07-19 Seiji Zenitani <zenitani@mac.com>
c0230162
AR
937
938 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
8df8bcc9 939 strdup() the family UTF8String before modifying it.
c0230162 940
45d325c4
AR
9412008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
942
45d325c4
AR
943 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
944 NS_FACE_BACKGROUND with 0 instead of nil.
945 * nsfont.m (nsfont_draw): Same.
946
8df8bcc9
GM
9472008-07-19 Chong Yidong <cyd@stupidchicken.com>
948
949 * nsfns.m (ns_set_background_color): Fix crash.
950
b83f1cd0
CY
9512008-07-18 Chong Yidong <cyd@stupidchicken.com>
952
953 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
954
add4eecc
DN
9552008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
956
957 * puresize.h (BASE_PURESIZE): Increase to 1240000.
958
69955d31
YM
9592008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
960
961 * gtkutil.c: Include <config.h> instead of "config.h".
962
963 * lisp.h (Foverlay_buffer): Add EXFUN.
964
965 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
966 child process to complete child_setup. Undo 2005-09-21 change.
967
968 * s/darwin.h: Mention setsid after vfork.
969
08b3caa9 9702008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2d64e9bb
YM
971
972 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
973 Depend on macgui.h.
974
975 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
976 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
977
978 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
979 and f19.
980 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
981
982 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
983 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
984 Remove enumerators.
985
986 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
987 Check if FACE_FROM_ID returns NULL.
988
8d59c5ed
JR
9892008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
990
ba60bd44
JB
991 * w32inevt.c (change_frame_size): Remove extern declaration.
992 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
993 change_frame_size.
8d59c5ed 994
ba60bd44 9952008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
db94bf9c
AR
996
997 * getloadavg.c: Revert last change (2008-07-15).
998
ba60bd44 9992008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
06b62770
AR
1000
1001 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
1002 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc) set
1003 from configure.
1004
2749d28e
DN
10052008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
1006
35ad0545
DN
1007 * s/sol2.h:
1008 * s/sol2-4.h: Reorganize conditionals.
1009
2749d28e
DN
1010 * ecrt0.c: Remove code depending on m68000, not used anymore.
1011
1012 * fns.c (hash_remove): Make static.
1013 * lisp.h (hash_remove): Don't prototype.
1014
1015 * m/ibmrs6000.h:
1016 * m/ibms390x.h:
1017 * m/macppc.h: Remove boilerplate comments.
1018
1019 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
1020 Solaris, which does not need them.
1021
1022 * m/vax.h: Remove comments about unsupported systems.
1023
1024 * s/darwin.h: Reorganize ifdefs.
1025
32cc3925
AS
10262008-07-17 Andreas Schwab <schwab@suse.de>
1027
1028 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
1029
facfbbbd
SM
10302008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
1031
1032 Use SDATA. Follow coding convention of placing operators at
1033 beginning of next line rather than end of previous line, and placing
1034 spaces around infix operators.
1035
1036 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
1037 in case it was defined already.
1038 USE @GNUSTEP_MAKEFILES@ rather than envvars.
1039 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
1040 ns_default.
1041 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
1042 Lisp_Objects.
1043 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
1044 (ns_defined_color, ns_color_to_lisp): Declare.
1045 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
1046 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
1047 it's accepted even with USE_LISP_UNION_TYPE.
1048 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
1049 (update_frame_tool_bar): Remove apparently obsolete tests for
1050 non-integerness of f->tool_bar_lines.
1051 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
1052 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
1053 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
1054 (nsfont_open): Don't confuse NULL for Qnil.
1055 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
1056 * menu.h (find_and_call_menu_selection):
1057 * menu.c (find_and_call_menu_selection): Use just int for vector size.
1058 (find_and_return_menu_selection): Always return something.
1059 * frame.h: Include dispextern.h for Display_Info.
1060 (display_x_get_resource): Declare.
1061
ba60bd44 10622008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
122e9f8f
AR
1063
1064 * syntax.c: Remove stdio.h include accidentally introduced in
1065 Emacs.app commit.
1066 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
1067 NS_IMPL_COCOA.
1068 * keyboard.c (handle_async_input, input_available_signal): Remove
1069 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
1070
0bcfd7d7
SM
10712008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
1072
6882361b
SM
1073 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
1074 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
1075 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
1076 Use SDATA.
1077
0bcfd7d7
SM
1078 * keymap.c: Remove all NS-specific code.
1079 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
1080 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
1081 where_is_preferred_modifier, return a different value depending on how
1082 preferred is the binding.
1083 (where_is_internal): Adjust accordingly.
1084 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
1085 Adjust to new preferred_sequence_p.
1086 (syms_of_keymap): Declare `where-is-preferred-modifier'.
1087 * keyboard.c (parse_solitary_modifier): Not static any more.
1088 * keyboard.h (parse_solitary_modifier): Declare.
1089
720f3147
AS
10902008-07-16 Andreas Schwab <schwab@suse.de>
1091
1092 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
1093 of easymenu.
1094
01e19fea
CY
10952008-07-16 Chong Yidong <cyd@stupidchicken.com>
1096
1097 * xdisp.c (move_it_in_display_line): Account for word wrap, so
1098 that we don't move off the line.
1099
4c89a3e0
SM
11002008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
1101
1102 * keyboard.c (Qsuper): Remove.
1103 (parse_menu_item): Don't call where_is_internal specially for NS.
1104
586b975c
DN
11052008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
1106
3ec8ef33
DN
1107 * s/gnu-linux.h: Remove boilerplate comments.
1108
d4d080b6
DN
1109 * m/alpha.h (__ELF__): Consolidate conditions.
1110
7ab56cc4
DN
1111 * m/m68k.h (linux): Use GNU_LINUX instead.
1112 Remove boilerplate comments.
1113
586b975c 1114 * m/intel386.h: Undo reactoring from previous change.
7ab56cc4
DN
1115 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
1116 too, remove dead code.
1117 (linux): Use GNU_LINUX instead.
586b975c 1118
5cc9d48a
JR
11192008-07-16 Jason Rumney <jasonr@gnu.org>
1120
4c89a3e0 1121 * w32gui.h: Repeat 26 June changes lost by last change.
5cc9d48a 1122
6b0273cd
DN
11232008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
1124
132d0475
DN
1125 * systty.h: Remove code for Aix on 386, unsupported platform.
1126
1127 * s/ms-w32.h: Remove boilerplate comments.
1128 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
1129
1130 * s/gnu-linux.h (TERM): Remove support.
1131 (HAVE_SYSVIPC): Remove, unused.
1132 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
1133 for this system.
1134
1135 * process.c: Remove support for IRIS, unused.
1136 Remove support for TERM, not relevant anymore.
1137
1138 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
1139 used with the definition.
1140
1141 * s/aix4-2.h (static): Do not undef.
1142
1143 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
1144 only used on Aix.
1145 (HAVE_SYSVIPC): Remove, unused.
1146
1147 * m/hp800.h (CANNOT_DUMP): Do not undef.
1148
1149 * m/alpha.h: Fix comment.
1150
8111c2d8
DN
1151 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
1152 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
1153 used by this configuration.
1154 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
1155 * unexec.c: Remove code depending on HPUX and
1156 USG_SHARED_LIBRARIES, not used with this file. Remove code
1157 depending on IRIS, unused. Remove if 0-ed code.
1158
e9a57a88
DN
1159 * s/template.h: Remove comments about static.
1160
4c89a3e0
SM
1161 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
1162 Remove if 0-ed code.
c7607b94
DN
1163 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
1164 were the same as the default.
1165 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
1166 Remove boilerplate comments.
1167 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
1168 (HAVE_SYSVIPC): Remove, unused.
1169 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
1170
ff841b30
DN
1171 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
1172 Remove boilerplate comments.
1173 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
1174 Remove boilerplate comments.
1175 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
1176 Remove boilerplate comments.
1177 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
1178
586b975c
DN
1179 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
1180 USG systems which do not use DATA_SEG_BITS.
1181 Refactor code. Remove boilerplate comments.
1182
dc89925b 1183 * m/ibms390.h:
dc89925b
DN
1184 * m/m68k.h:
1185 * s/bsd-common.h:
1186 * s/cygwin.h:
1187 * s/darwin.h:
1188 * s/freebsd.h:
1189 * s/gnu.h:
1190 * s/msdos.h: Remove boilerplate comments.
1191
96b72211
DN
1192 * m/iris4d.h: Remove boilerplate comments and code for systems that
1193 do not use this file.
1194 (IRIS_4D): Remove, unused.
1195
c3b5f109
DN
1196 * m/mips.h: Remove boilerplate comments and code for systems that
1197 do not use this file.
96b72211 1198 (SIGN_EXTEND_CHAR):
c3b5f109
DN
1199 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
1200 * unexmips.c: Remove file, unused.
1201
6b0273cd
DN
1202 * editfns.c (Fuser_full_name): Replace the only use of
1203 USER_FULL_NAME with its value.
1204 * config.in: Regenerate.
1205
ba60bd44 12062008-07-16 David Reitter <david.reitter@gmail.com>
6fbcfb6f 1207
ba60bd44
JB
1208 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
1209 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
6fbcfb6f 1210
44ac2d3e
GM
12112008-07-16 Glenn Morris <rgm@gnu.org>
1212
1213 * emacs.c (system-type): Doc fix.
1214
0a170079
SM
12152008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
1216
1217 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
1218 If the cache doesn't work, let's fix it, rather than work around it.
1219
ba60bd44 12202008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
a68fda4a
AR
1221
1222 * Makefile.in: Correct additions for nsfont.o in last commit.
1223 * nsfont.m: New file (forgot last commit).
1224
8df8bcc9
GM
12252008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
1226
1227 * callproc.c (set_initial_environment): Initialize
1228 Vprocess_environment under CANNOT_DUMP (fixes crash when
1229 batch-compiling for bootstrap).
1230
12312008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
1232 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1233
1234 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
1235 fix crash due to different init order.
1236
ba60bd44 12372008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
edfda783
AR
1238
1239 Changes and additions for NeXTstep windowing system (Cocoa and
1240 GNUstep) support.
1241
ba60bd44 1242 * Makefile.in:
edfda783
AR
1243 * config.in: Support defines and build commands for NS port.
1244 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
1245 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
edfda783
AR
1246 * dispextern.h: Include nsgui.h and add needed typedefs under NS
1247 windowing.
1248 (struct face): Add synth_ital field.
1249 * dispnew.c: Include nsterm.h when compiling under NS windowing.
1250 (init_display): Initialize Vinitial_window_system to "ns" when so
1251 compiled.
1252 * emacs.c: Include GSConfig.h when compiling under GNUstep.
1253 (display_arg): Use under NS.
1254 (main): Under NS, allocate autorelease pool and handle command line
1255 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
1256 (standard_args): Add NS-specific args.
1257 (shut_down_emacs): Shut down NS terminal if compiled under NS.
1258 * font.c (DEFAULT_ENCODING): New variable.
1259 (font_find_for_lface): Use it.
1260 (syms_of_font): Load syms_of_nsfont under NS.
1261 * font.h: Declare nsfont_driver when compiled under NS.
1262 * fontset.c: When compiling under NS, include nsterm.h.
1263 (fontset_from_font): Autoconstruct fontset under NS.
1264 * frame.c (various): Under NS, include nsterm.h, add Qns window system
1265 symbol, document and use it.
edfda783
AR
1266 (do_switch_frame): When for_deletion under Cocoa, add
1267 Fraise_frame(Qnil).
1268 (x_set_frame_parameters): Ensure font attribute changes are picked up.
1269 (x_get_arg): Allow "yes" and "no" as boolean values.
1270 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
1271 Qright under Cocoa.
1272 (focus-follows-mouse): Default to 0 under NS.
1273 * frame.h (enum output_method): Add output_ns.
1274 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
1275 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
1276 (FRAME_WINDOW_P): NS-specific definition.
1277 * fringe.c (max_used_fringe_bitmap): Make public.
1278 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
1279 (getloadavg): Use NeXT code under descendant OS's.
1280 * image.c (includes and header section, x_create_bitmap_from_data)
1281 (x_create_bitmap_from_file, free_bitmap_record, image_background)
1282 (image_background_transparent, x_clear_image_1)
1283 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
1284 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
1285 (x_to_xcolors, x_from_xcolors, x_disable_image)
1286 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
1287 other GUIs, including XPM support using code originally written for
1288 Carbon GUI.
0a170079 1289 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
edfda783
AR
1290 using NS API.
1291 (image_ascent): Use font metrics macros instead of direct struct field
1292 access.
1293 * keyboard.c (includes): Add nsterm.h when compiling under NS.
1294 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
1295 Also, handle NS as GTK for menu bar purposes.
1296 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
1297 toolkit where they differ.
1298 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
1299 use cachelist, still needed under NS.
6ddc6cca 1300 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
edfda783
AR
1301 (struct widget_value): Define it here for menu.c.
1302 * keymap.c (includes): Include modifier internals.
1303 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
1304 NS.
1305 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
1306 support for preferring sequences using certain modifiers, specified by
1307 the FIRSTONLY argument.
1308 * lisp.h (hash_remove): Rename to avoid name clash when compiling
1309 under NS GNUstep implementation.
1310 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
1311 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
1312 * menu.c: Include nsterm.h under NS.
1313 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
1314 (free_menubar_widget_tree_value, update_submenu_strings)
1315 (find_and_call_menu_selection): Treat NS as X and NT.
1316 (find_and_return_menu_selection): New function, used for popup menus.
ba60bd44
JB
1317 * nsgui.h:
1318 * nsterm.h:
1319 * nsfns.m:
1320 * nsimage.m:
1321 * nsmenu.m:
1322 * nsselect.m:
edfda783
AR
1323 * nsterm.m: New files.
1324 * process.c (wait_reading_process_output): Under NS, call ns_select()
1325 instead of plain select().
1326 * syntax.c (char_quoted): Under NS, avoid a crash when called near
1327 beginning of buffer.
1328 * sysselect.h (init_process): Rename when compiling under Cocoa to
1329 avoid name conflict.
1330 * termhooks.h (display_info): Add ns_display_info to union.
1331 * terminal.c (Fterminal_live_p): Add ns to terminal types.
1332 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
1333 COCOA environment.
1334 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
1335 unexec() signature. (Note, this will dump, but the resulting file
1336 crashes; unexosx is used instead; keeping around for reference and
1337 possible aid in getting dump working under GNUstep.)
1338 * w32gui.h (button_type, widget_value): Remove definitions (now in
1339 keyboard.h).
1340 * window.c: Include nsterm.h when compiling under NS.
1341 * xdisp.c (includes): Include nsterm.h when compiling under NS.
1342 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
1343 other GUI windowing systems.
1344 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
1345 GTK.
1346 (x_consider_frame_title): Under NS, set icon type and frame
1347 modified-state indicator; use ns_set_name_as_filename() when using
1348 formatted title.
1349 (update_window_cursor): Make public when compiling under NS.
1350 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
1351 (hourglass_atimer, Vhourglass_delay
1352 * xfaces.c (header section, init_frame_faces, clear_font_table)
1353 (defined_color, unload_color, x_face_list_fonts)
6ddc6cca
SM
1354 (prepare_face_for_display): Add NS support parallel to other GUIs.
1355 Emulate GCs like other non-X GUIs.
edfda783
AR
1356 (split_font_name): Don't lowercase font name under NS.
1357 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
1358 under NS.
1359 * s/darwin.h: Add support for compilation under NS.
1360
1391cd54
JR
13612008-07-15 Jason Rumney <jasonr@gnu.org>
1362
6ddc6cca
SM
1363 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
1364 (w32_show_hourglass): Rename from show_hourglass.
1365 (w32_hide_hourglass): Rename from hide_hourglass.
1366 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
1367 (Vhourglass_delay): Declare extern.
1368 (hourglass_started): Remove.
1391cd54 1369
6ddc6cca
SM
1370 * xdisp.c (Vhourglass_delay): Remove static.
1371 (hourglass_started, start_hourglass, cancel_hourglass):
1372 Don't include these versions on WINDOWSNT.
1391cd54 1373
1885ab29
AR
13742008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
1375
6ddc6cca 1376 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
20d6dc02 1377 variables (formerly in xfns.c).
1885ab29
AR
1378 (show_hourglass, hide_hourglass): New prototypes (same).
1379 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
1380 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
20d6dc02 1381 in xfns.c).
1885ab29
AR
1382 (syms_of_xdisp): Declare/initialize display-hourglass,
1383 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
1384 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
20d6dc02 1385 formerly in xfns.c.
1885ab29
AR
1386 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
1387 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
1388 (start_hourglass, cancel_hourglass): Remove.
1389 (show_hourglass, hide_hourglass): Remove prototypes and static
1390 modifiers.
1391 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
1392 hourglass_atimer, hourglass_shown_p declaration/initialization.
1393 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
1394 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
1395 (start_hourglass, cancel_hourglass): Remove.
1396 (show_hourglass, hide_hourglass): Remove prototypes and static
1397 modifiers.
1398 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
1399 hourglass_atimer, hourglass_shown_p declaration/initialization.
1400 * w32fns.c (display_hourglass_p, Vhourglass_delay)
1401 (DEFAULT_HOURGLASS_DELAY): Remove.
1402 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
1403 hourglass_shown_p declaration/initialization.
1404
3faa984f
JR
14052008-07-14 Jason Rumney <jasonr@gnu.org>
1406
6ddc6cca
SM
1407 * w32fns.c (w32_get_arg): Remove wrapper function.
1408 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
1409 directly.
1410 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
3faa984f 1411
2f73901f
KH
14122008-07-14 Kenichi Handa <handa@m17n.org>
1413
1414 * xfont.c (xfont_open): Add workaround for X's bug.
1415
11da284d
KH
14162008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
1417
1418 * fontset.c: Include <stdio.h> unconditionally.
1419
944cc4a8
MA
14202008-07-13 Michael Albinus <michael.albinus@gmx.de>
1421
1422 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
1423 for filtering.
1424
bdee2ef3
DN
14252008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
1426
1427 * s/vms.h: Use __GNUC__ instead of _GNUC_.
1428
1429 * m/macppc.h:
1430 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
1431
1432 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
944cc4a8
MA
1433 (SPECIAL_EMACS_INT):
1434 * m/ia64.h (SPECIAL_EMACS_INT):
bdee2ef3
DN
1435 * m/amdx86-64.h (SPECIAL_EMACS_INT):
1436 * s/gnu.h (NLIST_STRUCT):
4342f814 1437 * s/aix4-2.h (X11R5_INHIBIT_I18N):
bdee2ef3
DN
1438 * s/gnu-linux.h (LINUX):
1439 * s/msdos.h (HAVE_FACES):
1440 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
1441
944cc4a8 1442 * systty.h:
bdee2ef3
DN
1443 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
1444 anymore.
1445
bba104c1
DN
14462008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1447
1448 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
1449 always defined as int.
1450
1451 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
1452 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
1453 * s/gnu-linux.h (HAVE_WAIT_HEADER):
1454 * s/freebsd.h (HAVE_WAIT_HEADER):
1455 * s/bsd-common.h (HAVE_UNION_WAIT):
1456 * s/aix4-2.h (HAVE_WAIT_HEADER):
1457 * m/mips.h (HAVE_UNION_WAIT):
1458 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
1459 (COFF, static): Do not define, they are undefined later in the file.
1460
1461 * process.c (update_status): Don't use a union.
1462 (status_convert):
1463 (sigchld_handler): Use int instead of WAITTYPE.
1464
e433031a
CY
14652008-07-12 Chong Yidong <cyd@stupidchicken.com>
1466
1467 * indent.c (Fvertical_motion): Restore hscroll before moving to
1468 goal column.
1469
3bfb4d48
DN
14702008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
1471
1472 * lisp.h: Remove left over code.
1473
e7c9048f
AS
14742008-07-11 Andreas Schwab <schwab@suse.de>
1475
7e770c85
AS
1476 * lisp.h: Fix logic in last change.
1477
e7c9048f
AS
1478 * menu.h: New file.
1479 * menu.c: Include it.
1480 * xmenu.c: Likewise.
1481 * Makefile.in: Update dependencies.
1482
38aaf336
KH
14832008-07-11 Kenichi Handa <handa@m17n.org>
1484
1485 * fontset.c (fontset_from_font): Cancel the previous change.
1486
6e5cb96f
DN
14872008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
1488
1489 * lisp.h:
1490 * w32heap.c:
1491 * emacs.c:
1492 * alloc.c: Replace all references of NO_UNION_TYPE with
1493 USE_LISP_UNION_TYPE.
1494
1495 * m/xtensa.h (NO_UNION_TYPE):
1496 * m/vax.h (NO_UNION_TYPE):
1497 * m/template.h (NO_UNION_TYPE):
1498 * m/sparc.h (NO_UNION_TYPE):
1499 * m/mips.h (NO_UNION_TYPE):
1500 * m/macppc.h (NO_UNION_TYPE):
1501 * m/m68k.h (NO_UNION_TYPE):
1502 * m/iris4d.h (NO_UNION_TYPE):
1503 * m/intel386.h (NO_UNION_TYPE):
1504 * m/ibms390x.h (NO_UNION_TYPE):
1505 * m/ibms390.h (NO_UNION_TYPE):
1506 * m/ibmrs6000.h (NO_UNION_TYPE):
1507 * m/ia64.h (NO_UNION_TYPE):
1508 * m/hp800.h (NO_UNION_TYPE):
1509 * m/arm.h (NO_UNION_TYPE):
1510 * m/amdx86-64.h (NO_UNION_TYPE):
1511 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
1512 defining it the same.
1513
e0f47a68
CY
15142008-07-10 Chong Yidong <cyd@stupidchicken.com>
1515
ba60bd44 1516 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
e0f47a68 1517
c5e7567d
DN
15182008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
1519
4342f814
JB
1520 * fileio.c:
1521 * sysdep.c
1522 * systty.h:
1523 * m/ibmrs6000.h:
1524 * m/iris4d.h:
1525 * s/aix4-2.h:
1526 * s/freebsd.h:
1527 * s/gnu-linux.h:
1528 * s/hpux10-20.h:
1529 * s/hpux11.h:
1530 * s/netbsd.h:
1531 * s/sol2-3.h:
1532 * s/sol2-4.h:
1533 * s/sol2.h:
1534 * s/usg5-4.h:
1535 * s/vms.h: Remove references to unused variables.
c5e7567d 1536
bb658864
AS
15372008-07-10 Andreas Schwab <schwab@suse.de>
1538
1539 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
1540 pattern before matching the generic family.
1541
3d3db608
DN
15422008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
1543
a0ce9ab7 1544 * unexec.c:
3460e0b9
DN
1545 * s/vms.h:
1546 * s/usg5-4-2.h:
1547 * s/sol2-5.h:
1548 * s/freebsd.h:
1549 * s/darwin.h: Remove dead code.
1550
ad76189a
DN
1551 * m/template.h:
1552 * m/sparc.h:
1553 * m/mips.h:
1554 * m/m68k.h:
1555 * m/iris4d.h:
1556 * m/intel386.h:
1557 * m/ibms390x.h:
1558 * m/ibms390.h:
1559 * m/ia64.h:
1560 * m/hp800.h:
1561 * m/arm.h:
1562 * m/amdx86-64.h: Remove dead code and references to unused
1563 and compiler defined symbols.
1564
d2b5bbda
DN
1565 * unexmips.c:
1566 * unexelf.c: Remove references to desupported systems.
1567
40dde9d1
DN
1568 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
1569
21133394
DN
1570 * m/powermac.h: Remove boilerplate comments.
1571 (NO_REMAP): Remove unused definition.
1572
3d3db608
DN
1573 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
1574 define them.
1575
c8e0e16d
KH
15762008-07-10 Kenichi Handa <handa@m17n.org>
1577
1578 * xfont.c (xfont_open): Log the reason of failure.
1579
3cba9369
SM
15802008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
1581
1582 * fontset.c (fontset_get_font_group):
1583 * font.c (font_check_otf): Specify argument types.
1584
73353585
KH
15852008-07-09 Kenichi Handa <handa@m17n.org>
1586
0e17387a
KH
1587 * coding.c (detect_coding_utf_8): Set detect_info->found only when
1588 non-ASCII char is found.
1589
73353585
KH
1590 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
1591 (reorder_font_vector): Change the arg preferred_family to font.
1592 Prefer the spec matching with font.
1593 (fontset_get_font_group): New function.
1594 (fontset_find_font): Change the format of an element of a realized
1595 fontset. Use fontset_get_font_group.
1596 (fontset_font): Try the current fontset, the default fontset, the
1597 fallbacks of the current fonset, and the fallbacks of the default
1598 fontset in this order.
1599 (face_for_char): Delete the shortcut to use the current font.
1600 (fontset_from_font): Don't set fonts for Latin in the fontset.
1601
1602 * font.h (font_make_object, font_match_p): Adjust prototypes.
1603
1604 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
1605
1606 * font.c (font_make_object): New arg entity and pixelsize.
1607 (font_check_otf_features, font_check_otf): New functions.
1608 (font_match_p): Check :lang, :script, and :otf properties.
1609
1610 * xfont.c (xfont_open): Adjust it for the change of
1611 font_make_object.
e5d05978 1612 (xfont_text_extents): Fix initial setting of metrics.
73353585
KH
1613
1614 * ftfont.c (struct ftfont_info): New member index, delete member
1615 fc_charset_idx. Make the member order compatible with struct
1616 xftfont_info.
1617 (fc_charset_table): Change charset names to registry names.
1618 (ftfont_pattern_entity): Delete the args registry and
1619 fc_charset_idx. Change the value of :font-entity property
1620 to (FONTNAME . INDEX). Always set :registry property to
1621 `iso10646-1'.
1622 (struct ftfont_cache_data): New struct.
1623 (ftfont_lookup_cache): New arg for_face.
1624 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
1625 (ftfont_driver): Set the member otf_capability.
1626 (ftfont_get_charset): Adjust it for the change of
1627 fc_charset_table.
1628 (OTF_TAG_SYM): New macro.
1629 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
1630 for the change of fc_charset_table.
1631 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
1632 ftfont_pattern_entity. Add FC_INDEX to objset.
1633 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
1634 and ftfont_pattern_entity.
1635 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
1636 font_make_object, struct ftfont_info.
1637 (ftfont_has_char): Use ftfont_get_fc_charset.
1638 (ftfont_otf_features, ftfont_otf_capability): New functions.
1639 (ftfont_shape): Use ftfont_get_otf.
e5d05978 1640 (ftfont_text_extents): Fix initial setting of metrics.
73353585
KH
1641
1642 * xftfont.c (struct xftfont_info): New member ft_size. Make the
1643 member order compatible with struct ftfont_info.
1644 (xftfont_open): Add FC_CHARSET to the pattern. Set
1645 xftfont_info->ft_size. Don't unlock the face. Check BDF
1646 properties if appropriate.
1647 (xftfont_close): Unlock the face.
1648 (xftfont_anchor_point, xftfont_shape): Deleted.
1649 (syms_of_xftfont): Don't set members anchor_point and shape of
1650 xftfont_driver.
1651
1652 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
1653 font_make_object.
1654
1655 * w32font.c (w32font_open): Adjust it for the change of
1656 font_make_object.
1657 (w32font_open_internal): Don't set properties of font_object here.
1658
7f000038
CY
16592008-07-08 Chong Yidong <cyd@stupidchicken.com>
1660
830aab93
CY
1661 * macfns.c (x_create_tip_frame):
1662 * w32fns.c (x_create_tip_frame):
1663 * xfns.c (x_create_tip_frame): Pass parameter argument to
1664 face-set-after-frame-default.
1665
7f000038
CY
1666 * xfaces.c (Finternal_merge_in_global_face): Save merged
1667 attributes for the default face back into the face vector.
1668
85cf8992
AS
16692008-07-08 Andreas Schwab <schwab@suse.de>
1670
1671 * fontset.h: Declare fontset_from_font. Don't declare
1672 new_fontset_from_font and fontset_from_font_name.
1673 * xterm.c: Include "fontset.h".
1674 * Makefile.in (xterm.o): Update dependencies.
1675
4a00783e
GM
16762008-07-08 Glenn Morris <rgm@gnu.org>
1677
1678 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
1679 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
1680
4d2d5f5f
CY
16812008-07-07 Chong Yidong <cyd@stupidchicken.com>
1682
1683 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
1684 (x_set_frame_parameters): Don't bind it.
1685
dfe66c5b
JB
16862008-07-07 Juanma Barranquero <lekktu@gmail.com>
1687
1688 * w32fns.c (map_w32_filename): Declare extern.
1689
ec7e221c
JR
16902008-07-07 Jason Rumney <jasonr@gnu.org>
1691
dfe66c5b 1692 * w32term.c (WS_EX_LAYERED): Define if not already.
ec7e221c 1693
fe5d61c4
CY
16942008-07-06 Chong Yidong <cyd@stupidchicken.com>
1695
1696 * xfaces.c (set_font_frame_param): Don't try to set the font
1697 parameter if it is still unspecified in the lface.
1698
9204cb8b
CY
16992008-07-05 Chong Yidong <cyd@stupidchicken.com>
1700
0a143d3a
CY
1701 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
1702 face if it didn't already exist.
1703
9204cb8b
CY
1704 * xdisp.c (try_window_id): Give up if word-wrapping is on.
1705
6c95e70d
AS
17062008-07-05 Andreas Schwab <schwab@suse.de>
1707
dfe66c5b 1708 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
6c95e70d 1709
59230395
CY
17102008-07-05 Chong Yidong <cyd@stupidchicken.com>
1711
1712 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
1713 word-wrapping.
1714 (IT_DISPLAYING_WHITESPACE): New macro.
1715 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
1716 when word-wrapping. Simplify word-wrapping logic. Use correct
1717 pixel positions when saving copies of the iterator.
1718 (display_line): Use proper wrap point if the last character on a
1719 line was preceded by whitespace.
1720
d7c664f3
SM
17212008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
1722
1723 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
1724
9ffc8a3a
KH
17252008-07-04 Kenichi Handa <handa@m17n.org>
1726
1727 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
1728
1729 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
1730
946598bf
JR
17312008-07-02 Jason Rumney <jasonr@gnu.org>
1732
d7c664f3
SM
1733 * xfns.c (syms_of_xfns): Only define x-select-font when both
1734 HAVE_FREETYPE and USE_GTK
946598bf 1735
d7c664f3
SM
1736 * xdisp.c (next_element_from_display_vector): Move assignment out
1737 of if statement.
946598bf 1738
6cf29fe8
JR
17392008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
1740
d7c664f3 1741 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
6cf29fe8 1742
d7c664f3
SM
1743 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
1744 (syms_of_fileio): Initialize and export them.
1745 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
6cf29fe8 1746
d7c664f3
SM
1747 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
1748 (Fsystem_move_file_to_trash): New function.
1749 (syms_of_w32fns): Export it to lisp.
6cf29fe8 1750
79ca7db1
JR
17512008-07-01 Jason Rumney <jasonr@gnu.org>
1752
d7c664f3
SM
1753 * w32font.c (w32font_text_extents): Don't count overhang as part
1754 of width.
79ca7db1 1755
c2786a3d 17562008-06-30 Miles Bader <miles@gnu.org>
c4f4682b
MB
1757
1758 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
1759 Add `avoid_cursor_p' field.
1760
1761 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
1762 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
1763 (append_glyph, append_composite_glyph, produce_image_glyph)
c2786a3d
JB
1764 (append_stretch_glyph): Initialize avoid_cursor_p.
1765 (get_it_property): Rename from `get_line_height_property'.
c4f4682b
MB
1766 (x_produce_glyphs): Use get_it_property.
1767 (handle_line_prefix, push_display_prop): New functions.
1768 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
c2786a3d
JB
1769 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
1770 New variables.
c4f4682b
MB
1771 (syms_of_xdisp): Initialize them.
1772
7d7ad10e
KH
17732008-06-30 Kenichi Handa <handa@m17n.org>
1774
1775 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
1776 XftDefaultSubstitute (they are called in XftFontMatch).
1777 (xftfont_open): Fix args to ftfont_font_format.
1778
1779 * ftfont.c (fc_charset_table): New member lang.
1780 (ftfont_resolve_generic_family): New arg pattern.
1781 (ftfont_spec_pattern): Check fc_cahrset_table[]->lang.
1782 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
1783 (ftfont_open): Fix args to ftfont_font_format.
1784 (ftfont_font_format): New arg filename.
1785
44b754c7
CY
17862008-06-30 Chong Yidong <cyd@stupidchicken.com>
1787
1788 * xfaces.c (Finternal_merge_in_global_face): If default face was
1789 modified, realize it again. Update the font face attribute.
1790
a4521b03
JR
17912008-06-29 Jason Rumney <jasonr@gnu.org>
1792
c2786a3d 1793 * w32term.c (x_set_frame_alpha): Fix logic.
a4521b03 1794
fe44f009
KH
17952008-06-29 Kenichi Handa <handa@m17n.org>
1796
1797 * fontset.c (Finternal_char_font): Return font-object instead of
1798 font-name.
1799
c2786a3d 1800 * composite.c (get_composition_id): Fix the width calculation for TAB.
fe44f009 1801
baed8445
SM
18022008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
1803
1804 * indent.c (Fvertical_motion): Properly handle float column arg.
1805
8b61a891
JR
18062008-06-28 Jason Rumney <jasonr@gnu.org>
1807
baed8445
SM
1808 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
1809 (pfnSetLayeredWindowAttributes): New function pointer.
1810 (w32_initialize): Initialize it when supported.
1811 (x_set_frame_alpha): New function.
8b61a891 1812
baed8445
SM
1813 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
1814 (w32_frame_parm_handlers): Set alpha handler.
8b61a891 1815
baed8445 1816 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
8b61a891 1817
57016d37
JR
18182008-06-27 Jason Rumney <jasonr@gnu.org>
1819
baed8445
SM
1820 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
1821 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
1822 (w32_to_x_charset, x_to_w32_charset)
1823 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
1824 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
1825 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
1826 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
1827 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
1828 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
1829 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
1830 (Qw32_charset_unicode): Remove.
1831 (syms_of_w32fns): Update for above changes.
1832
1833 * w32font.c (w32_to_x_charset, x_to_w32_charset)
1834 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
1835 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
1836 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
1837 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
1838 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
1839 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
1840 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
1841 (syms_of_w32font): Update for above changes.
57016d37 1842
d6bf1bdb
DN
18432008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
1844
1845 * s/usg5-4.h: Fix previous change: keep the correct branch of a
1846 removed #if.
9fa1c445 1847 (USG_SHARED_LIBRARIES): Remove duplicate definition.
d6bf1bdb 1848
43db14bb
JB
18492008-06-26 Juanma Barranquero <lekktu@gmail.com>
1850 Eli Zaretskii <eliz@gnu.org>
1851
1852 * makefile.w32-in (LOCAL_FLAGS):
1853 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
1854
1855 * sysdep.c (_spawnlp, _getpid):
1856 Declare with explicit _cdecl instead of _CRTAPI1.
1857
1858 * editfns.c (Fget_internal_run_time):
1859 Check for WINDOWSNT with #ifdef, not #if.
1860
c35f9821
JR
18612008-06-26 Jason Rumney <jasonr@gnu.org>
1862
43db14bb 1863 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
c35f9821 1864
57016d37 1865 * w32term.c (x_draw_glyph_string_foreground)
43db14bb
JB
1866 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
1867 Use FONT_HANDLE macro.
1868 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
c35f9821 1869
57016d37 1870 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
43db14bb 1871 (uniscribe_encode_char): Use FONT_HANDLE macro.
c35f9821 1872
43db14bb
JB
1873 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
1874 (w32font_text_extents): Use precast w32_font.
1875 (w32font_close): Free cached metrics.
1876 (w32font_open_internal): Allocate space for name on stack.
c35f9821 1877
1f8ad719
CY
18782008-06-26 Chong Yidong <cyd@stupidchicken.com>
1879
1880 * xdisp.c (extend_face_to_end_of_line): Fix last change.
1881
97e71655
JR
18822008-06-26 Jason Rumney <jasonr@gnu.org>
1883
43db14bb
JB
1884 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
1885 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
97e71655 1886
c9fc02c7
JB
18872008-06-26 Juanma Barranquero <lekktu@gmail.com>
1888
1889 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
1890
1b5defe6
JR
18912008-06-26 Jason Rumney <jasonr@gnu.org>
1892
c9fc02c7 1893 * w32bdf.c, w32bdf.h: Remove obsolete files.
1b5defe6 1894
c9fc02c7 1895 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
1b5defe6 1896
c9fc02c7
JB
1897 * w32gui.h: Don't include w32bdf.h.
1898 (XCharStruct, enum w32_char_font_type, W32FontStruct):
1899 Remove obsolete font support.
1b5defe6 1900
c9fc02c7
JB
1901 * w32font.h (struct w32font_info): Remove compat_w32_font.
1902 Add hfont member.
1903 (FONT_COMPAT): Remove obsolete macro.
1b5defe6 1904
ba60bd44 1905 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
c9fc02c7 1906 (w32font_encode_char, w32font_text_extents): Use new hfont member.
ba60bd44 1907 (w32font_open_internal): Remove compat code. Set new hfont member.
c9fc02c7 1908 (Fx_select_font): Use new hfont member.
1b5defe6 1909
57016d37 1910 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
c9fc02c7 1911 (uniscribe_encode_char): Use new hfont member.
1b5defe6 1912
57016d37 1913 * w32term.c (x_draw_glyph_string_foreground)
c9fc02c7
JB
1914 (x_draw_composite_glyph_string_foreground): Use new hfont member.
1915 (x_draw_glyph_string): Use metrics in w32font_info.
1b5defe6 1916
1fc66bca
KH
19172008-06-26 Kenichi Handa <handa@m17n.org>
1918
1919 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
1920
f2a77c3a
DN
19212008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
1922
1923 * unexnext.c:
1924 * m/ews4800.h:
1925 * m/hp9000s300.h:
1926 * m/ibm370aix.h:
1927 * m/mips-siemens.h:
1928 * m/ncr386.h:
1929 * m/next.h:
1930 * m/pmax.h:
1931 * m/powerpcle.h:
1932 * m/tandem-s2.h:
1933 * s/386bsd.h:
1934 * s/bsd386.h:
1935 * s/bsd4-1.h:
1936 * s/bsd4-2.h:
1937 * s/bsdos2-1.h:
1938 * s/bsdos2.h:
1939 * s/bsdos3.h:
1940 * s/bsdos4.h:
1941 * s/nextstep.h:
1942 * s/ultrix4-3.h:
1943 * s/usg5-0.h:
1944 * s/usg5-2-2.h:
1945 * s/usg5-2.h:
1946 * s/usg5-4-3.h:
1947 * s/ux4800.h:
1948 * s/uxpds.h:
1949 * s/uxpv.h: Remove support for obsolete systems.
1950 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
4342f814 1951 Remove, insert contents in s/hpux-10.20.h.
f2a77c3a 1952 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
4342f814 1953 Remove, insert contents in s/aix4-2.h.
f2a77c3a 1954 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
4342f814 1955 * s/bsd4-3.h: Rename to ...
f2a77c3a 1956 * s/bsd-common.h: ... this.
4342f814
JB
1957 * data.c:
1958 * doc.c:
1959 * ecrt0.c:
1960 * emacs.c:
1961 * fileio.c:
1962 * floatfns.c:
1963 * keyboard.c:
1964 * mem-limits.h:
1965 * print.c:
1966 * process.c:
1967 * sysdep.c:
1968 * syssignal.h:
1969 * systty.h:
1970 * syswait.h:
1971 * term.c:
1972 * unexec.c:
1973 * unexelf.c:
1974 * unexhp9k800.c:
1975 * m/hp800.h:
1976 * m/ibmrs6000.h:
1977 * m/mips.h:
1978 * m/vax.h:
1979 * s/darwin.h:
1980 * s/freebsd.h:
1981 * s/gnu.h:
1982 * s/ms-w32.h:
1983 * s/msdos.h:
1984 * s/netbsd.h:
1985 * s/template.h: Remove references to obsolete variables.
f2a77c3a
DN
1986
1987 * Makefile.in: Add dependencies for all unexec files.
1988 (admindir): Remove unused variable.
1989 (UNEXEC_SRC): Remove references.
1990
bd02793a
CY
19912008-06-25 Chong Yidong <cyd@stupidchicken.com>
1992
1993 * xfns.c (x_default_font_parameter): If Xft is available, first
1994 try Monospace-12 for the default font.
1995
ccedd259
JR
19962008-06-25 Jason Rumney <jasonr@gnu.org>
1997
c9fc02c7 1998 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
ccedd259 1999
fbe062b7
SM
20002008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
2001
603a0937
SM
2002 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
2003
fbe062b7
SM
2004 * buffer.c (syms_of_buffer): Remove default-word-wrap.
2005
69785ad0
JB
20062008-06-25 Juanma Barranquero <lekktu@gmail.com>
2007
2008 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
2009 <scroll-conservatively>: Fix typo in docstring.
2010
2011 * xselect.c (Fx_send_client_event): Doc fix.
2012
249e6f76
KH
20132008-06-25 Kenichi Handa <handa@m17n.org>
2014
34e97272
KH
2015 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
2016
2017 * font.c (font_parse_fcname): Remove unused variables.
69785ad0
JB
2018 (font_sort_entites): Delete the arg SPEC. Caller changed.
2019 Fix for the case of ! best_only.
34e97272
KH
2020 (font_delete_unmatched): Check DPI and AVGWIDTH too.
2021
249e6f76
KH
2022 * lisp.h (Fstring_to_unibyte): EXFUN it.
2023
69785ad0 2024 * character.h (str_to_unibyte): Extern it.
249e6f76
KH
2025
2026 * character.c (str_to_unibyte): New function.
2027
2028 * fns.c (Fstring_to_unibyte): New function.
2029 (syms_of_fns): Defsubr it.
2030
65c108e4
KH
20312008-06-24 Kenichi Handa <handa@m17n.org>
2032
2033 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
2034 DPI too.
2035 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
2036
4c3f18fe
AS
20372008-06-24 Andreas Schwab <schwab@suse.de>
2038
69785ad0 2039 * Makefile.in (${lispsource}loaddefs.el): Rename from
4c3f18fe 2040 ../lisp/loaddefs.el.
fd13748d
AS
2041 (bootstrap-clean): Do what distclean does but don't remove
2042 Makefile.
2043 (distclean): Depend on bootstrap-clean and remove Makefile.
4c3f18fe 2044
faa6190f
CY
20452008-06-24 Chong Yidong <cyd@stupidchicken.com>
2046
2047 * buffer.h (struct buffer): New member word_wrap.
2048
2049 * buffer.c (syms_of_buffer): New variables default-word-wrap and
2050 word-wrap.
2051 (init_buffer_once): Initialize them.
2052
2053 * dispextern.h (struct it): Replace bool truncate_lines_p with a
2054 line_wrap enum possessing three possible values.
2055
2056 * termopts.h: Replace truncate_partial_width_windows with
2057 Vtruncate_partial_width_windows.
2058
2059 * dispnew.c (direct_output_for_insert): Avoid direct output when
2060 inserting a space with word wrap on.
2061
2062 * indent.c (compute_motion): Obey integer values of
2063 truncate-partial-width-windows.
2064
2065 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
2066 replacing truncate_partial_width_windows.
2067 (init_iterator): If Vtruncate_partial_width_windows is an integer,
2068 truncate only if the window width is below that integer.
ba60bd44 2069 (start_display, resize_mini_window, produce_stretch_glyph)
faa6190f
CY
2070 (display_string, move_it_in_display_line_to): Use line_wrap.
2071 (back_to_previous_visible_line_start, reseat_1): Reset
2072 string_from_display_prop_p.
2073 (display_line): Extend default face to end of line when wrapping.
2074
20752008-06-24 Kim F. Storm <storm@cua.dk>
2076
2077 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
2078 to wrap continued lines at word boundaries.
2079
c3bb5465
JR
20802008-06-24 Jason Rumney <jasonr@gnu.org>
2081
69785ad0
JB
2082 * font.c (Ffont_face_attributes): Multiply pixel size before point
2083 conversion to avoid multiplying rounding error.
c3bb5465 2084
0b07ad98
JR
20852008-06-23 Jason Rumney <jasonr@gnu.org>
2086
f245f2c6
JB
2087 * w32term.c (x_draw_glyph_string_background)
2088 (x_draw_glyph_string): Remove old bdf font code.
0b07ad98 2089
69785ad0 2090 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
0b07ad98 2091
22459668
KH
20922008-06-22 Kenichi Handa <handa@m17n.org>
2093
2094 * font.c (font_find_for_lface): Try the adstyle specified in
2095 the property of LFACE_FONT of LFACE (if any).
2096
d925a426 20972008-06-21 Seiji Zenitani <zenitani@mac.com>
f245f2c6 2098 Ryo Yoshitake <ryo@shiftmode.net>
d925a426
SM
2099
2100 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
2101
b4945b95
SM
21022008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
2103
2104 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
2105 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
2106 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
2107 (witness-emacs): Remove.
2108 (lisp, shortlisp): Move loaddefs.el earlier.
2109 (mostlyclean): Forget about witness-emacs.
2110
64124279
GM
21112008-06-22 Glenn Morris <rgm@gnu.org>
2112
2113 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
36565815 2114 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
64124279 2115
768efd84
SM
21162008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
2117
2118 * Makefile.in (PRECOMP): Remove.
2119 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
2120 (witness-emacs): Run `compile-first'.
2121 (.el.elc): Use the new compile-onefile target.
2122
808dd567
KH
21232008-06-21 Kenichi Handa <handa@m17n.org>
2124
2125 * xftfont.c (xftfont_open): Handle QCembolden only when
2126 FC_EMBOLDEN is defined.
2127
0de59eae
AS
21282008-06-21 Andreas Schwab <schwab@suse.de>
2129
2130 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
58e8833b 2131 (.el.elc): Likewise.
0de59eae 2132
fb38e9c9
MB
21332008-06-21 Miles Bader <miles@gnu.org>
2134
2135 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
2136 build dir, not the lisp source dir.
2137
fc46d219
SM
21382008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
2139
2140 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
2141 (bootstrapclean): Remove.
2142 (.el.elc): New rule.
2143 (PRECOMP): New var.
2144 (../lisp/subdirs.el): Remove.
2145 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
2146 (witness-emacs): New target.
2147 (mostlyclean): Remove witness-emacs as well.
2148 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
2149 Add witness-emacs dependency.
2150
eaf1f6e7
CY
21512008-06-20 Chong Yidong <cyd@stupidchicken.com>
2152
2153 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
2154 defined by the font.
2155
49f6eb95
SM
21562008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
2157
2158 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
2159 (bootstrap-clean): New target that keeps TAGS around.
2160 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
2161 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
2162
4c100a01
JR
21632008-06-20 Jason Rumney <jasonr@gnu.org>
2164
49f6eb95
SM
2165 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
2166 Remove obsolete font code.
db61a7f8 2167
49f6eb95
SM
2168 * w32font.c (font_matches_spec): Use csb bitfield from font signature
2169 to determine language support.
4c100a01 2170
759d3f32
SM
21712008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
2172
2173 * sysdep.c (cfsetspeed): New fun extracted from the code.
2174 (cfmakeraw): Move before first use.
2175
25241b4d
SM
21762008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
2177
2178 * sysdep.c (cfmakeraw): Provide fallback implementation.
2179 (serial_configure): Provide fallback implementation of cfsetspeed.
2180
d7afccca
KH
21812008-06-20 Kenichi Handa <handa@m17n.org>
2182
dc2226d0
KH
2183 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
2184 the pattern.
2185
9b9cd864
KH
2186 * fontset.c (fontset_from_font): Copy font_spec before changing
2187 the elements.
2188
d7afccca
KH
2189 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
2190
770e2e6e
SM
21912008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
2192
2193 * w32fns.c, xfnc.c (x_default_font_parameter): Only set `font-param'
2194 for explicit `font' parameters.
2195
2196 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
2197
22e64f7c
KH
21982008-06-19 Kenichi Handa <handa@m17n.org>
2199
2200 * frame.c: Include <ctype.h>.
2201 (x_set_font_backend): Allow spacing characters in the X resource
2202 for FontBackend.
2203
27129af9
SM
22042008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
2205
2206 * w32fns.c, xfns.c (Qfont_param): New var.
2207 (syms_of_w32fns): Initialize it.
22e64f7c
KH
2208 (x_default_font_parameter): Record explicit `font' into
2209 `font-parameter'.
27129af9 2210
d26424c5
KH
22112008-06-18 Kenichi Handa <handa@m17n.org>
2212
2213 * font.c (font_parse_xlfd): Fix previous change.
2214 (font_parse_fcname): Don't use :fc-unknown-spec.
2215 (FRAME_X_DISPLAY_INFO): Besure to have at least 1 pixel height.
2216 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
2217 (font_add_log): Prepend the driver name to the resulting fonts.
2218
2219 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
2220 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
2221 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
2222
2223 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
2224 (QCembolden): New variables.
2225 (syms_of_xftfont): DEFSYM them.
2226 (xftfont_open): Call XftFontMatch. Don't trust the result of
2227 XftTextExtents8 if the pixel_size is less than 5.
2228
51cf11be
AS
22292008-06-18 Andreas Schwab <schwab@suse.de>
2230
f245f2c6 2231 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
51cf11be
AS
2232 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
2233
07d9ba9b
JR
22342008-06-18 Jason Rumney <jasonr@gnu.org>
2235
27129af9 2236 * w32font.c (w32font_list, w32font_match): Add logging.
07d9ba9b 2237
4342f814 2238 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
07d9ba9b 2239
0c36bc4e
CY
22402008-06-17 Chong Yidong <cyd@stupidchicken.com>
2241
2242 * font.c (font_parse_fcname): Store divider characters for
1578da31
CY
2243 unknown-spec list. For known key symbols, intern using correct
2244 symbol name.
0c36bc4e 2245
70d6ecc6
KH
22462008-06-17 Kenichi Handa <handa@m17n.org>
2247
2248 * xfaces.c (realize_default_face): If the frame is not on window
2249 system, set the fontset of face to nil.
2250
821bc4db
KH
22512008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
2252
f245f2c6 2253 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
821bc4db 2254
3554e566
JB
22552008-06-16 Juanma Barranquero <lekktu@gmail.com>
2256
2257 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
2258 (build_font_name_from_vector): Delete externs.
2259
2260 * xfaces.c (struct font_name): Don't declare.
2261
93eed26b
SM
22622008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
2263
2264 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
2265
d756bcd0
CY
22662008-06-16 Chong Yidong <cyd@stupidchicken.com>
2267
2268 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
2269
7a18a178
JB
22702008-06-16 Juanma Barranquero <lekktu@gmail.com>
2271
2272 * font.c (Ffont_spec): Fix usage in docstring.
48105a6a 2273 (Ffont_face_attributes): Doc fix.
7a18a178 2274
6f568955
AS
22752008-06-16 Andreas Schwab <schwab@suse.de>
2276
2277 * font.c (Ffont_face_attributes): Fix definition.
2278
3ef8c1b4
JR
22792008-06-16 Jason Rumney <jasonr@gnu.org>
2280
93eed26b 2281 * font.h (font_style_symbolic_from_value): Remove.
3ef8c1b4 2282
93eed26b
SM
2283 * font.c (font_style_symbolic_from_value): Remove.
2284 (font_style_symbolic): Revert to pre 2008-06-13 version.
3ef8c1b4 2285
93eed26b
SM
2286 * w32font.c (w32_to_fc_weight): New function.
2287 (w32font_full_name, logfont_to_fcname): Use it.
3ef8c1b4 2288
5e634ec9
KH
22892008-06-16 Kenichi Handa <handa@m17n.org>
2290
2291 * font.c (font_check_object): Delete it.
2292 (font_clear_cache): Check if a font-object is alive.
2293 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
2294 font-object to nil.
2295 (font_close_object): Don't check FONT_CLOSE_OBJECT.
2296 (font_at): Don't call font_check_object.
2babb359 2297 (Ffont_get): Return a symbol for :weight, :slant, and :width.
5e634ec9 2298
6409a955
KY
22992008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
2300
2301 * puresize.h (BASE_PURESIZE): Increase to 1230000.
2302
ce4eaddb
CY
23032008-06-16 Chong Yidong <cyd@stupidchicken.com>
2304
2305 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
2306
523dbe64
CY
23072008-06-15 Chong Yidong <cyd@stupidchicken.com>
2308
54b2ab27 2309 * font.c (font_parse_fcname): Only one decimal point.
523dbe64
CY
2310 (font_unparse_fcname): Handle data in family and foundry indices
2311 as symbols, not strings.
2312 (font_unparse_gtkname, Ffont_face_attributes): New functions.
2313
54b2ab27 2314 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
523dbe64
CY
2315
2316 * font.h (font_unparse_gtkname): Add prototype.
2317
9f296082
KH
23182008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
2319
54b2ab27 2320 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
9f296082 2321
3306c6dc
AS
23222008-06-15 Andreas Schwab <schwab@suse.de>
2323
2324 * font.c (font_update_drivers): Fix crash when no drivers match.
2325
a099c27a
SM
23262008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
2327
2328 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
2329 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
2330
a8aa344d
SM
23312008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
2332
2333 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
2334
a879ee6f
SM
23352008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
2336
2337 * process.c (Fserial_process_configure, Fprocess_send_eof):
2338 Use EQ to compare Lisp_Objects.
2339
6fe9826d
JR
23402008-06-13 Jason Rumney <jasonr@gnu.org>
2341
a879ee6f 2342 * w32fns.c (Fw32_select_font): Remove old font API function.
6fe9826d 2343
a879ee6f
SM
2344 * w32font.c (logfont_to_fcname): New function.
2345 (Fx_select_font): New font dialog function compatible with
2346 GTK/fontconfig version.
6fe9826d 2347
a879ee6f
SM
2348 * font.c (font_style_symbolic_from_value): New function.
2349 (font_style_symbolic): Use it.
6fe9826d 2350
a879ee6f 2351 * font.h (font_style_symbolic_from_value): Declare new function.
6fe9826d 2352
17ab8f5d
JB
23532008-06-13 Juanma Barranquero <lekktu@gmail.com>
2354
2355 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
2356 <font-width-table>: Fix typos in docstrings.
2357
d888760c
GM
23582008-06-13 Daniel Engeler <engeler@gmail.com>
2359
2360 These changes add serial port access.
2361 * process.c: Add HAVE_SERIAL.
2362 (Fdelete_process, Fprocess_status, Fset_process_buffer)
2363 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
2364 (list_processes_1, select_wrapper, Fstop_process)
2365 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
2366 (status_notify): Modify to handle serial processes.
2367 [HAVE_SERIAL] (Fserial_process_configure)
2368 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
2369 New functions.
2370 * process.h (struct Lisp_Process): Add `type'.
2371 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
2372 New functions.
2373 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
2374 serial ports.
2375 (serial_open, serial_configure) New functions.
2376 * w32.h: Add FILE_SERIAL.
2377 (struct _child_process): Add ovl_read, ovl_write.
2378
f4cc0153
KH
23792008-06-13 Kenichi Handa <handa@m17n.org>
2380
2381 * dispextern.h (enum lface_attribute_index): New member
2382 LFACE_FOUNDRY_INDEX.
2383
2384 * font.c (font_score): Delete arg alternate_families. Check only
7a18e381 2385 weight, slant, width, and size. Ignore the difference of alias
f4cc0153 2386 style symbols.
7a18e381 2387 (font_sort_entites): Adjust for the above change. Reflect the
f4cc0153
KH
2388 order of font-driver to scores.
2389 (font_list_entities): Don't check alternate_familes here.
2390 (font_clear_prop): Handle foundry.
2391 (font_update_lface): Don't parse "foundry-family" form here.
2392 Handle FONT_FOUNDRY_INDEX.
2393 (font_find_for_lface): Likewise. Handle alternate families here.
a879ee6f 2394 If registry is nil, try iso8859-1 and ascii-0.
f4cc0153 2395 (font_open_for_lface): Pay attention to size in ENTITY.
7a18e381 2396 (font_open_by_name): Simplify by calling font_load_for_lface.
f4cc0153
KH
2397 (free_font_driver_list): Delete it.
2398 (font_update_drivers): Preserve the order of backends.
2399 (syms_of_font): Setting of sort_shift_bits adjusted for the change
2400 of font_score and font_sort_entites.
2401 (font_update_sort_order): Likewise.
2402
2403 * xfaces.c (LFACE_FOUNDRY): New macro.
2404 (check_lface_attrs): Check foundry.
7a18e381 2405 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
f4cc0153
KH
2406 (merge_face_vectors): Check foundry.
2407 (merge_face_ref): Likewise.
2408 (Finternal_set_lisp_face_attribute): Likewise.
2409 (x_update_menu_appearance): Likewise.
2410 (Finternal_get_lisp_face_attribute): Likewise.
2411 (lface_hash): Likewise.
2412 (lface_same_font_attributes_p): Likewise.
2413 (x_supports_face_attributes_p): Likewise.
2414 (tty_supports_face_attributes_p): Likewise.
2415 (Finternal_set_alternative_font_family_alist): Intern strings.
2416 (Finternal_set_alternative_font_registry_alist): Downcase strings.
2417 (realize_default_face): Set LFACE_FOUNDRY (lface).
2418
2419 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
2420 font-driver at first.
2421
2422 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
2423
d434fef5 24242008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
97dead2d
JM
2425
2426 * lread.c (Fload): Use xfree, not free on saved_doc_string.
2427
9c5e177e
JM
24282008-06-12 Jim Meyering <meyering@redhat.com>
2429
d434fef5 2430 Make unexec_free handle NULL the same way free does.
9c5e177e
JM
2431 * unexmacosx.c (unexec_free): Ignore a NULL argument.
2432
2afc21f5
SM
24332008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
2434
2435 * character.h (CHAR_TO_BYTE_SAFE): New macro.
2436 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
2437 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
2438 (WEAK_ALIAS): Simplify.
2439 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
2440 when searching a unibyte buffer.
2441
76c0de62
CY
24422008-06-12 Chong Yidong <cyd@stupidchicken.com>
2443
2444 * xfns.c (Fx_select_font): Rename from x-font-dialog.
2445
0500dcc9
JB
24462008-06-12 Juanma Barranquero <lekktu@gmail.com>
2447
2448 * w32font.c: Include ctype.h.
2449
f42adef6
JR
24502008-06-11 Jason Rumney <jasonr@gnu.org>
2451
2afc21f5
SM
2452 * w32font.c (w32font_encode_char): Detect missing glyphs that are
2453 misreported as space.
2454 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
2455 as aliases for registry iso10646-1.
f42adef6 2456
4b7cdc0e
SM
24572008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
2458
2459 * buffer.c (clone_per_buffer_values): Skip `name'.
2460
cc02ebe1
CY
24612008-06-11 Chong Yidong <cyd@stupidchicken.com>
2462
2463 * font.c (font_parse_fcname): Fix last change; accept decimal
2464 points in font size.
2465
351ccb76
JR
24662008-06-10 Jason Rumney <jasonr@gnu.org>
2467
0500dcc9
JB
2468 * w32uniscribe.c (add_opentype_font_name_to_list):
2469 Skip non unicode fonts.
351ccb76 2470
f473ed6f
CY
24712008-06-10 Chong Yidong <cyd@stupidchicken.com>
2472
2473 * xfns.c (Fx_font_dialog): New function.
2474
5d6333d5 2475 * gtkutil.c (xg_dialog_response_cb): Rename from
f473ed6f
CY
2476 xg_file_response_callback.
2477 (pop_down_dialog): Rename from pop_down_file_dialog.
2478 (xg_get_file_name): Callers changed.
2479 (xg_get_font_name): New function.
2480
5d6333d5 2481 * gtkutil.h (xg_get_font_name): Insert prototype.
f473ed6f 2482
2a3bd2e1
SM
24832008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
2484
2485 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
2486 x_underline_minimum_display_offset.
2487 (syms_of_xdisp): Declare it here rather than in xterm.c.
2488 * dispextern.h (underline_minimum_offset): Declare it.
2489 * w32term.c (x_draw_glyph_string): Use it.
2490 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
2491 (syms_of_xterm): Don't declare it any more.
2492 (x_draw_glyph_string): Adjust to the new name.
2493
d5dc6163
SM
24942008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
2495
2496 * xterm.c (x_underline_minimum_display_offset): New var.
2497 (x_draw_glyph_string): Use it.
2498 (syms_of_xterm): Declare it.
2499
0abdd197
CY
25002008-06-10 Chong Yidong <cyd@stupidchicken.com>
2501
2502 * font.c (font_parse_fcname): Accept GTK-style font names too.
2503
a1562258
SM
25042008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
2505
928b5acc
SM
2506 * dired.c (file_name_completion): Don't return t if the match is exact
2507 but with different capitalization.
2508 * minibuf.c (Ftry_completion): Simplify.
2509
a1562258
SM
2510 * window.c (Vwindow_point_insertion_type): New var.
2511 (set_window_buffer): Use it.
2512 (syms_of_window): Init and export it to Lisp.
2513
9552dbd1
KH
25142008-06-10 Kenichi Handa <handa@m17n.org>
2515
2516 * font.h (font_intern_prop): Prototype adjusted.
2517
2518 * font.c (font_intern_prop): New arg force_symbol.
a1562258
SM
2519 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
2520 Adjust for the change of font_intern_prop.
9552dbd1 2521
a1562258
SM
2522 * ftfont.c (ftfont_pattern_entity):
2523 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
2524 (w32_registry):
2525 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
9552dbd1
KH
2526 the change of font_intern_prop.
2527
8993ad2e
JB
25282008-06-09 Juanma Barranquero <lekktu@gmail.com>
2529
2530 * w32menu.c (digest_single_submenu): Declare extern.
2531
0c2258fc
JR
25322008-06-09 Jason Rumney <jasonr@gnu.org>
2533
a1562258 2534 * w32term.c (x_make_frame_visible): Use alternate restore flags.
12f71857 2535
a1562258
SM
2536 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
2537 (parse_single_submenu): Remove.
2538 (digest_single_submenu): Remove.
2539 (syms_of_w32menu): Don't initialise variables that have moved
2540 to menu.c.
2541 (set_frame_menubar): Sync with version in xmenu.c.
2542 (w32_menu_show): Sync with xmenu_show in xmenu.c.
593c843c 2543
8993ad2e
JB
2544 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
2545 Make static again.
0c2258fc 2546
02246cb8
JR
25472008-06-09 Jason Rumney <jasonr@gnu.org>
2548
8993ad2e
JB
2549 Changes to w32 files related to the move of common menu code
2550 to menu.c on 2008-06-08 by Chong Yidong.
2551
2552 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
2553 defs to w32gui.h.
2554 (single_keymap_panes, push_menu_item, push_menu_pane):
2555 Make globally visible.
2556
d434fef5
JB
2557 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
2558 (local_free, malloc_widget_value, free_widget_value)
2559 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
2560 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
2561 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
8993ad2e 2562 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
d434fef5 2563 (menu_items, menu_items_allocated, menu_items_used)
8993ad2e
JB
2564 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
2565 (init_menu_items, finish_menu_items, discard_menu_items)
2566 (grow_menu_items, push_submenu_start, push_submenu_end)
2567 (push_left_right_boundary, push_menu_pane, push_menu_item)
2568 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
d434fef5 2569 (free_menubar_widget_tree_value, parse_single_submenu)
8993ad2e
JB
2570 (update_submenu_strings): Remove functions.
2571 (xmalloc_widget_value): Remove and declare extern.
2572
2573 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
2574 (OBJ1): Build it.
2575
2576 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
2577 (local_heap, local_alloc, local_free, malloc_widget_value)
2578 (free_widget_value): Define here.
02246cb8 2579
9e1bb909
KH
25802008-06-09 Kenichi Handa <handa@m17n.org>
2581
366664ad
KH
2582 * font.h (Qascii_0): Extern it.
2583
9e1bb909
KH
2584 * font.c (Qascii_0): New variable.
2585 (syms_of_font): DEFSYM it.
2586 (font_open_by_name): If the registry "iso8859-1" fails, try also
2587 "ascii-0".
2588
2589 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
2590
b2ee479e
KH
25912008-06-08 Kenichi Handa <handa@m17n.org>
2592
8f440b79 2593 * .gdbinit (xfont): New command.
b2ee479e 2594
01ef9d36
AS
25952008-06-08 Andreas Schwab <schwab@suse.de>
2596
a4240420
AS
2597 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
2598 * Makefile.in (menu.o): Update dependencies.
2599
0181bf66 2600 * Makefile.in (obj): Always add menu.o.
01ef9d36
AS
2601 * emacs.c (main): Always call syms_of_menu.
2602 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
2603
c07cbae6
CY
26042008-06-08 Chong Yidong <cyd@stupidchicken.com>
2605
2606 * Makefile.in: Compile menu.c.
2607
2608 * lisp.h: Declare syms_of_menu.
2609
2610 * emacs.c (main): Call syms_of_menu.
2611
2612 * keyboard.h: Relocate platform-independent menu definitions from
2613 xmenu.c.
2614
2615 * menu.c: New file. Relocate platform-independent menu
904d8c69 2616 definitions from xmenu.c. Suggested by Adrian Robert.
c07cbae6
CY
2617
2618 * xmenu.c: Remove platform-independent menu definitions.
2619 (menu_items menu_items_inuse, menu_items_allocated)
2620 (menu_items_used, menu_items_n_panes)
2621 (menu_items_submenu_depth): Move to keyboard.h.
2622 (init_menu_items, finish_menu_items, unuse_menu_items)
2623 (discard_menu_items, restore_menu_items, save_menu_items)
2624 (grow_menu_items, push_submenu_start, push_submenu_end)
2625 (push_left_right_boundary, push_menu_pane, push_menu_item)
2626 (keymap_panes, single_keymap_panes, single_menu_item)
2627 (list_of_panes, list_of_items, find_and_call_menu_selection)
2628 (xmalloc_widget_value, free_menubar_widget_value_tree)
2629 (parse_single_submenu, digest_single_submenu)
2630 (update_submenu_strings): Move to menu.c.
2631
4958ed94
SM
26322008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
2633
2634 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
2635
408b8ab4
MB
26362008-06-06 Miles Bader <miles@gnu.org>
2637
2638 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
2639 face, not frame default.
2640
87478b52
SM
26412008-06-05 Martin Rudalics <rudalics@gmx.at>
2642
2643 * window.c (pop_up_windows, pop_up_frames)
2644 (display_buffer_reuse_frames, Vpop_up_frame_function)
2645 (Vdisplay_buffer_function, Veven_window_heights)
2646 (Vspecial_display_buffer_names, Vspecial_display_regexps)
2647 (Vspecial_display_function, Vsame_window_buffer_names)
2648 (Vsame_window_regexps, split_height_threshold)
2649 (Vsplit_window_preferred_function): Move those vars to window.el.
2650 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
2651 (Fdisplay_buffer): Move those functions to window.el.
2652 (syms_of_window): Remove corresponding declarations.
2653 (display_buffer): New function.
2654 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
2655 * dispnew.c (Flast_nonminibuf_frame): New function.
2656 * buffer.c (Fpop_to_buffer): Move to window.el.
2657
9e0e0d77
SM
26582008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
2659
2660 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
2661
4a485df8
KH
26622008-06-05 Kenichi Handa <handa@m17n.org>
2663
2664 * coding.c (detect_coding): Fix previous change.
2665 (detect_coding_system): Likewise.
2666
8ba31f36
SM
26672008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
2668
c0dc8f64
SM
2669 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
2670
8ba31f36
SM
2671 * keymap.c (Vminibuffer_local_filename_must_match_map):
2672 Rename from Vminibuffer_local_must_match_filename_map.
2673 (syms_of_keymap):
2674 * minibuf.c (Fcompleting_read): Adjust accordingly.
2675 * commands.h: Rename declaration as well.
2676
7740d2c7
KH
26772008-06-05 Kenichi Handa <handa@m17n.org>
2678
e7438ece
KH
2679 * font.c (Ffont_spec): Don't use font_parse_family_registry for
2680 family name.
2681 (Ffont_put): Likewise.
2682
2683 * fontset.c (fontset_find_font): Call font_open_for_lface with the
2684 current font-spec.
2685
7740d2c7
KH
2686 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
2687 is unspecified.
2688
2689 * xfaces.c (realize_x_face): If the font-related face attributes
e7438ece
KH
2690 are the same as those of default face, realize a new fontset from
2691 default->fontset.
9e0e0d77 2692 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
7740d2c7 2693
c876b227
SM
26942008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
2695
2696 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
2697 (move_it_in_display_line): New wrapper.
2698
2699 * window.c (window_scroll_pixel_based_preserve_x)
2700 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
2701 (window_scroll_pixel_based, window_scroll_line_based):
2702 Use them to preserve column positions.
2703 (syms_of_window): Initialize them.
2704
2705 * indent.c (Fvertical_motion): Extend first arg to allow passing an
2706 (HPOS . VPOS) pair.
2707
2708 * dispextern.h (move_it_in_display_line): Declare.
2709
927abf37
JB
27102008-06-05 Juanma Barranquero <lekktu@gmail.com>
2711
2712 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
2713 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
2714 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
2715
9d14503e
JB
27162008-06-04 Juanma Barranquero <lekktu@gmail.com>
2717
2718 * window.c (Fset_window_parameter): Doc fix.
2719 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
2720
e6841c3b
JB
27212008-06-04 Joakim Verona <joakim@verona.se>
2722
2723 * window.h (struct window): Add new member window_parameters.
2724
2725 * window.c (Fwindow_parameters, Fwindow_parameter)
2726 (Fset_window_parameter): New defuns.
2727 (syms_of_window): Defsubr the new defuns.
2728 (make_window): Initialize window_parameters to nil.
2729
4ba50634
JPW
27302008-06-04 John Paul Wallington <jpw@pobox.com>
2731
2732 * eval.c (Fdefmacro): Doc fix.
2733
c0e16b14
KH
27342008-06-04 Kenichi Handa <handa@m17n.org>
2735
2736 * coding.c (detect_coding): Fix handling of coding->head_ascii.
9e0e0d77 2737 Be sure to call setup_coding_system when we find a proper coding system.
c0e16b14
KH
2738 (detect_coding_system): Fix handling of coding->head_ascii.
2739
0615d903
AS
27402008-06-03 Andreas Schwab <schwab@suse.de>
2741
2742 * font.c (font_prop_validate_spacing): Fix last change.
2743
8a1816bb
KH
27442008-06-03 Kenichi Handa <handa@m17n.org>
2745
eea9c5c4
KH
2746 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
2747 (font_parse_fcname): Fix handling of unknown key.
2748
2749 * xfont.c (xfont_list): Try an alias.
2750
8a1816bb
KH
2751 * charset.c (char_charset): Return NULL if the arg charset_list is
2752 specified and C doesn't belong to any of them.
2753
2f593f4c 27542008-06-02 Chip Coldwell <coldwell@redhat.com>
6c5e8775
CY
2755
2756 * font.c (font_pixel_size): Don't take cdr of an integer.
2757
c2cd06e6
JM
27582008-06-02 Jim Meyering <meyering@redhat.com>
2759
70fdbb46
JM
2760 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
2761 * alloc.c (xfree): Return right away for a NULL arg.
2762 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
2763 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
2764 * mac.c (create_apple_event_from_event_ref): Likewise.
2f593f4c
JB
2765 (create_apple_event_from_drag_ref, cfstring_create_normalized):
2766 Likewise.
70fdbb46
JM
2767 * doprnt.c (doprnt1): Likewise.
2768 * frame.c (frame): Likewise.
2769 * keyboard.c (wipe_kboard): Likewise.
1f204af3 2770 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
70fdbb46
JM
2771 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
2772 * term.c (tty_default_color_capabilities, maybe_fatal)
2773 (delete_tty): Likewise.
2774 * w16select.c (string): Likewise.
2775 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
2776 * w32bdf.c (w32_free_bdf_font): Likewise.
2777 * w32fns.c (w32_unload_font): Likewise.
2778 * w32font.c (w32font_close): Likewise.
2779 * window.c (size_window): Likewise.
2780 * xselect.c (receive_incremental_selection): Likewise.
2781 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
2782 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
2783 * w32.c (stat): Likewise.
2784
2f593f4c 2785 Remove useless if-before-free tests.
70fdbb46
JM
2786 * editfns.c (Fset_time_zone_rule): Likewise.
2787 * lread.c (nosuffix): Likewise.
2788 * ralloc.c (get_bloc): Likewise.
2789 * regex.c (reg_free): Likewise.
2790 * xftfont.c (xftfont_open, xftfont_close): Likewise.
2791 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
2792 * xsmfns.c (smc_save_yourself_CB): Likewise.
c2cd06e6 2793
4fc1984a
KH
27942008-06-02 Kenichi Handa <handa@m17n.org>
2795
1d1e1245
KH
2796 * font.c (font_find_for_lface): Handle float font size.
2797 (font_open_for_lface): Likewise.
2798
4fc1984a
KH
2799 * xfaces.c (x_supports_face_attributes_p): Check face->font before
2800 comparing the properties.
2801
aee986fd
JR
28022008-06-01 Jason Rumney <jasonr@gnu.org>
2803
e6841c3b
JB
2804 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
2805 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
2806 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
2807 Don't add empty script list.
2808 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
aee986fd 2809
60a3d7ee
DN
28102008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
2811
aee986fd 2812 * Makefile.in (dot, dotdot): Remove, update users.
60a3d7ee
DN
2813 ".." has been used elsewhere in the file for a long time.
2814 (LIBXT_STATIC): Remove conditional based on unused variable.
2815
f2cec7a9
MB
28162008-06-01 Miles Bader <miles@gnu.org>
2817
2818 * xfaces.c (Vface_remapping_alist): New variable.
2819 (syms_of_xfaces): Initialize it.
2820 (enum named_merge_point_kind): New type.
2821 (struct named_merge_point): Add `named_merge_point_kind' field.
2822 (push_named_merge_point): Make cycle detection respect different
2823 named-merge-point kinds.
c876b227 2824 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
f2cec7a9
MB
2825 Remove face-name alias resolution.
2826 (lface_from_face_name): New definition using
2827 `lface_from_face_name_no_resolve'.
c876b227 2828 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
f2cec7a9
MB
2829 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
2830 (get_lface_attributes): New definition that layers face-remapping on
2831 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
2832 (lookup_basic_face): New function.
2833 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
2834 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
2835 `get_lface_attributes'.
2836 (face_at_buffer_position): Use `lookup_basic_face' to lookup
2837 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
2838 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
2839
2840 * xdisp.c (init_iterator): Pass base_face_id through
2841 `lookup_basic_face' when we actually use it as a face-id.
2842 (handle_single_display_prop): Use `lookup_basic_face' to lookup
2843 DEFAULT_FACE_ID.
2844
2845 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
2846 lookup the initial face-id.
2847
2848 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
2849
518c0b83
JB
28502008-06-01 Juanma Barranquero <lekktu@gmail.com>
2851
2852 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
2853 (Fremove_text_properties): Fix typos in docstrings.
2854
719b3d63
KH
28552008-05-31 Kenichi Handa <handa@m17n.org>
2856
e4c93315
KH
2857 * font.c (font_list_entities): Fix the car part of data to be
2858 stored in the cache.
2859
719b3d63
KH
2860 * ftfont.c (ftfont_font_format): Don't use strcasestr.
2861
d0827857
SM
28622008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
2863
2864 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
2865 Add a `test' argument so another predicate than `equal' can be used.
2866 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
2867 (map_char_table): Remove unused vars `c' and `i'.
2868 * lisp.h (Foptimize_char_table): Adjust declaration.
2869 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
2870
a266686a
KH
28712008-05-30 Kenichi Handa <handa@m17n.org>
2872
d0827857 2873 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
a266686a
KH
2874 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
2875 defined.
2876
fd9440c5
SM
28772008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
2878
2879 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
2880 (Fmake_variable_frame_local): Disallow mixing buffer-local and
2881 frame-local settings for the same variable.
2882
fd2ae9b2
KH
28832008-05-30 Kenichi Handa <handa@m17n.org>
2884
9e0e0d77 2885 * fontset.c (Ffont_info): Move to font.c.
fd2ae9b2
KH
2886 (syms_of_fontset): Delete defsubr of Sfont_info.
2887
2888 * font.c (font_style_to_value, font_score): Delete casting of the
2889 args to xstcasecmp.
2890 (register_font_driver): Increment num_font_drivers only when
2891 registering the driver globally.
9e0e0d77 2892 (Ffont_info): Move from fontset.c. Handle a font object too.
fd2ae9b2
KH
2893 (syms_of_font): Defsubr Sfont_info.
2894
eaf11618
KH
28952008-05-29 Kenichi Handa <handa@m17n.org>
2896
2897 * coding.h (enum define_coding_utf8_arg_index): New enum.
2898 (enum coding_attr_index): Change coding_attr_utf_16_bom to
2899 coding_attr_utf_bom.
fd9440c5
SM
2900 (enum utf_bom_type): Rename from utf_16_bom_type.
2901 (struct utf_16_spec): Adjust for the above change.
eaf11618
KH
2902 (struct coding_system): Add utf_8_bom in `spec' union.
2903
2904 * coding.c (CODING_UTF_8_BOM): New macro.
2905 (enum coding_category): Delete coding_category_utf_8, add
2906 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
2907 coding_category_utf_8_sig.
2908 (CATEGORY_MASK_UTF_8): Delete it.
2909 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
2910 (CATEGORY_MASK_UTF_8_SIG): New macros.
2911 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
2912 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
2913 CATEGORY_MASK_UTF_8_SIG.
2914 (CATEGORY_MASK_UTF_8): New macro.
2915 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
2916 (detect_coding_utf_8): Check BOM.
2917 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
fd9440c5 2918 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
eaf11618
KH
2919 (encode_coding_utf_16): Likewise.
2920 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
2921 (detect_coding, detect_coding_system): Handle utf-8-auto.
2922 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
2923 (syms_of_coding): Fix setting up of Vcoding_category_table.
2924
891bd142
SM
29252008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
2926
2927 * process.c (Faccept_process_output): If `millisec' is non-nil,
2928 `seconds' default to 0.
2929 (wait_reading_process_output): Also return non-nil if we read output
2930 from a non-running process.
2931
1519d52e
JR
29322008-05-29 Jason Rumney <jasonr@gnu.org>
2933
fd9440c5
SM
2934 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
2935 `raster' specified.
2936 (add_font_entity_to_list): Allow non-opentype truetype fonts back
2937 in the uniscribe backend, but disallow any font that has no
2938 unicode subrange support.
1519d52e 2939
d5ab09cd
JB
29402008-05-29 Juanma Barranquero <lekktu@gmail.com>
2941
2942 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
2943 Fix typos in docstrings.
2944
a4eec626
KH
29452008-05-29 Kenichi Handa <handa@m17n.org>
2946
2947 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
e887f2ac 2948 (Fx_family_fonts): Set frame correctly.
a4eec626 2949
a6e0b7e5
JR
29502008-05-28 Jason Rumney <jasonr@gnu.org>
2951
d5ab09cd 2952 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
a6e0b7e5 2953
6b3d752c
SM
29542008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
2955
2956 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
2957 calling build_annotations.
2958
c3f9fba8
JB
29592008-05-28 Juanma Barranquero <lekktu@gmail.com>
2960
2961 * coding.c (Fdecode_coding_region, Fencode_coding_region)
2962 (Fencode_coding_string):
2963 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
2964 <latin-extra-code-table>: Fix typos in docstrings.
2965 (syms_of_coding) <coding-system-alist>: Doc fix.
2966 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
2967
00c670e1
KH
29682008-05-28 Kenichi Handa <handa@m17n.org>
2969
b75d7f28
KH
2970 * fontset.c (Ffont_info): Don't call font_close_object.
2971
2972 * font.c (font_parse_family_registry): Use Ffont_put to validate
2973 foundry and family.
2974 (font_delete_unmatched): Don't check spacing.
2975 (font_list_entities): Add spacing to the spec to list fonts.
2976
2977 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
d5ab09cd 2978 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
b75d7f28 2979
00c670e1
KH
2980 * coding.c (encode_coding_raw_text): Fix previous change.
2981 (encode_coding_object): When the dst_object is a buffer and is
2982 different from src_object, move gap to PT.
2983
45feca91
CY
29842008-05-27 Chong Yidong <cyd@stupidchicken.com>
2985
c3f9fba8 2986 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
45feca91 2987
5dd5d9eb
SM
29882008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
2989
01d45367
SM
2990 * coding.c (encode_coding_raw_text): Set coding->produced_char for
2991 all branches. Compute it differently.
2992
5dd5d9eb
SM
2993 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
2994
9c623c85
JB
29952008-05-27 Juanma Barranquero <lekktu@gmail.com>
2996
2997 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
2998 into "else if () ... else ...".
2999
943f2093
JR
30002008-05-27 Jason Rumney <jasonr@gnu.org>
3001
5dd5d9eb
SM
3002 * w32font.c (w32font_open_internal): Determine if glyph indices
3003 are likely to work here.
943f2093 3004
7385fe74
CY
30052008-05-27 Chong Yidong <cyd@stupidchicken.com>
3006
3007 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
3008 draw overlap glyphs with appropriate highlighting.
3009
4f64a164
KH
30102008-05-27 Kenichi Handa <handa@m17n.org>
3011
3012 * xfont.c (xfont_open): Fix calculation of font->average_width.
3013
1fb5aad7
SM
30142008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
3015
3016 * casefiddle.c (casify_object): Try to guess better whether the
3017 argument is a byte or a char.
3018
f8eb1603
AS
30192008-05-26 Andreas Schwab <schwab@suse.de>
3020
1fb5aad7
SM
3021 * xselect.c (x_reply_selection_request): Properly handle format == 32.
3022 Always send multiples of format size.
5a9c35e5 3023
f8eb1603
AS
3024 * xterm.c (x_set_frame_alpha): Fix type mismatch.
3025
ba93d684
JR
30262008-05-26 Jason Rumney <jasonr@gnu.org>
3027
1fb5aad7
SM
3028 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
3029 (compute_metrics): Don't set failure if we just cleared the cache.
3030 (w32_weight_table): Remove unused variable.
3031 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
3032 backwards compatibility.
ba93d684 3033
505ecc49
KH
30342008-05-25 Kenichi Handa <handa@m17n.org>
3035
1fb5aad7
SM
3036 * w32term.c (x_draw_glyph_string):
3037 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
505ecc49
KH
3038
3039 * xfaces.c: Delete unused function prototypes.
3040 (xstrlwr, font_frame): Delete them.
3041 (clear_face_cache): Delete unused variable.
3042
1fb5aad7
SM
3043 * xftfont.c (xftfont_open): Delete unused variable.
3044 If underline_thickness is not 1, adjust underline_position.
505ecc49
KH
3045
3046 * ftxfont.c (ftxfont_open): Delete unused variable.
3047
3048 * fontset.c (face_for_char): Optimize for the case of no charset
3049 property.
3050
3051 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
3052 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
3053 (otf_open, font_otf_capability, generate_otf_features)
3054 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
1fb5aad7 3055 Comment out by surrounding "#if 0" and "#endif" for the moment.
505ecc49
KH
3056 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
3057 (syms_of_font): Codes for accessing above commented out.
3058
f481eb31
EZ
30592008-05-24 Eli Zaretskii <eliz@gnu.org>
3060
3061 * w32proc.c: Include dispextern.h.
3062
3063 * w32.c: Include dispextern.h.
3064
20746fe4
JB
30652008-05-23 Juanma Barranquero <lekktu@gmail.com>
3066
3067 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
3068 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
3069 Fix typos in docstrings.
3070
e7150846
JR
30712008-05-23 Jason Rumney <jasonr@gnu.org>
3072
20746fe4 3073 * xsmfns.c: Remove includes that are already included by config.h.
e7150846 3074
dbf46ba6
KH
30752008-05-23 Kenichi Handa <handa@m17n.org>
3076
6c652beb
KH
3077 * charset.c (Qemacs, charset_emacs): New variables.
3078 (char_charset): Fix for non-Unicode characters.
3079 (syms_of_charset): Define charset_emacs.
3080
baf4d3b3 3081 * w32term.c (x_draw_glyph_string): Be sure to update
328fab2a
KH
3082 s->underline_thickness and s->underline_position. Be sure to draw
3083 underline within the current line area.
baf4d3b3
KH
3084
3085 * xterm.c (x_draw_glyph_string): Be sure to update
328fab2a 3086 s->underline_thickness and s->underline_position. Be sure to draw
90dc78a3 3087 underline within the current line area.
baf4d3b3 3088
dbf46ba6
KH
3089 * fontset.c: Delete unused variables and add casting for char *
3090 throughout the file.
3091 (fontset_font): Try the fallback fonts of the current fontset
3092 before consulting the default fontset.
3093
3094 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
3095
9e0e0d77 3096 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
dbf46ba6 3097
3b780338
JR
30982008-05-22 Jason Rumney <jasonr@gnu.org>
3099
20746fe4 3100 * font.c: Don't include strings.h.
577eba22 3101
9e0e0d77 3102 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
05131107 3103
20746fe4
JB
3104 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
3105 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
b1722a46
EZ
3106 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
3107 to call xstrcasecmp.
05131107 3108
b1722a46 3109 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
3b780338 3110
b1722a46 3111 * fontset.c (fs_query_fontset): Use xstrcasecmp.
3b780338 3112
b1722a46 3113 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
3b780338 3114
b1722a46 3115 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
3b780338 3116
a30e1957
KH
31172008-05-22 Kenichi Handa <handa@m17n.org>
3118
20746fe4 3119 * puresize.h (BASE_PURESIZE): Increase to 1220000.
955b979c 3120
20746fe4 3121 * font.c (font_prop_validate_style): Adjust for the format
64b900e3
KH
3122 change of font_style_table.
3123
a30e1957
KH
3124 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
3125 two args.
3126
3127 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
3128 two args.
3129
631248e5
SM
31302008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
3131
3132 * minibuf.c (keys_of_minibuf): Delete.
3133 * lisp.h (keys_of_minibuf): Delete.
3134 * emacs.c (main): Don't call keys_of_minibuf.
3135
318548be
KH
31362008-05-22 Kenichi Handa <handa@m17n.org>
3137
631248e5 3138 * ftfont.c (ftfont_resolve_generic_family): Rename from
318548be
KH
3139 ftfont_list_generic_family. Return a single family for each
3140 generic family.
3141 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
20746fe4
JB
3142 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
3143 Call font_add_log.
318548be
KH
3144 (ftfont_match): Call font_add_log.
3145
3146 * font.h (Ffont_xlfd_name): EXFUN adjusted.
3147 (FONT_DEBUG): Define it.
3148 (font_add_log): Extern it.
631248e5 3149 (font_assert): Rename from xassert.
318548be
KH
3150
3151 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
3152 (xfont_list_family): Call font_add_log.
3153 (xfont_match): Likewise.
631248e5 3154 (memq_no_quit): Delete.
318548be
KH
3155
3156 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
3157 call of Ffont_xlfd_name.
3158
3159 * xfaces.c (struct table_entry, slant_table, weight_table)
631248e5 3160 (swidth_table): Move to font.c.
318548be
KH
3161
3162 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
631248e5 3163 xassert are changed to font_assert. Delete many unused variables.
20746fe4
JB
3164 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
3165 New variables.
631248e5
SM
3166 (struct table_entry): Move from xfaces.c and modified.
3167 (weight_table, slant_table, width_table): Move from xfaces.c and
318548be 3168 contents adjusted for the change of struct table_entry.
20746fe4 3169 (font_style_to_value, font_style_symbolic): Adjust for the
64b900e3 3170 format change of font_style_table.
318548be
KH
3171 (font_parse_family_registry): Don't overwrite existing foundry and
3172 family of font_spec.
3173 (font_score): Fix calculation of diff for sizes.
3174 (font_sort_entites): Call font_add_log.
3175 (font_delete_unmatched): Return a newly created list.
3176 (font_list_entities): Fix previous change. Call font_add_log.
20746fe4
JB
3177 (font_matching_entity, font_open_entity, font_close_entity):
3178 Call font_add_log.
318548be 3179 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
631248e5 3180 (Finternal_set_font_style_table): Delete.
318548be
KH
3181 (BUILD_STYLE_TABLE): New macro.
3182 (build_style_table): New function.
3183 (Vfont_log, font_log_env_checked): New variables.
3184 (font_add_log): New function.
3185 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
3186 Declare Lisp variables "font-weight-table", "font-slant-table",
3187 "font-width-table", and "font-log". Initialize font_style_table.
3188
6aac1c03
DN
31892008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
3190
bcc850aa 3191 * xterm.c (x_set_frame_alpha): Move declarations before statements.
6aac1c03 3192
7950790f
GM
31932008-05-21 Seiji Zenitani <zenitani@mac.com>
3194 Ryo Yoshitake <ryo@shiftmode.net>
a2979e8e 3195
7950790f 3196 * frame.c (Qalpha): Add a new frame parameter `alpha'.
bcc850aa 3197 (Vframe_alpha_lower_limit): New variable.
b9fb2c45 3198 (x_set_alpha): New function.
a2979e8e 3199
7950790f 3200 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
a2979e8e 3201
7950790f
GM
3202 * xfns.c (x-create-frame, Qalpha):
3203 Initialize the frame parameter `alpha'.
b9fb2c45
GM
3204 * xterm.c (OPAQUE, OPACITY): New.
3205 (x_set_frame_alpha): New function.
3206 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
a2979e8e 3207
7950790f
GM
3208 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
3209 * w32fns.c (w32_frame_parm_handlers): Likewise.
a2979e8e 3210
5c2a72d9
JR
32112008-05-20 Jason Rumney <jasonr@gnu.org>
3212
20746fe4
JB
3213 * w32font.c (add_font_entity_to_list): Don't add non-opentype
3214 truetype fonts to opentype list.
5c2a72d9 3215
eb152aa9
JB
32162008-05-20 Juanma Barranquero <lekktu@gmail.com>
3217
3218 * fontset.c (Ffontset_info): Doc fix.
3219 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
3220 <ignore-relative-composition>: Fix typos in docstrings.
3221
3222 * font.c (syms-of-font) <font-encoding-alist>:
3223 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
3224 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
3225 (Ffont_otf_alternates): Doc fixes.
3226
ad00e1a3
KH
32272008-05-20 Kenichi Handa <handa@m17n.org>
3228
3229 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
3230 font.h through out the file.
9e0e0d77 3231 (FONT_DRIVERS): Rename from FONTOBJ.
12855572 3232 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
ad00e1a3
KH
3233 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
3234
3235 * emacs.c (main): Call syms_of_font unconditionally.
3236
3237 * font.h (find_font_encoding): Extern it.
3238
9e0e0d77 3239 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
ad00e1a3
KH
3240 fontset.c.
3241 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
3242 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
3243 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
3244 only when HAVE_WINDOW_SYSTEM is defined.
3245 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
3246 when HAVE_WINDOW_SYSTEM is defined.
3247
9e0e0d77
SM
3248 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
3249 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
ad00e1a3
KH
3250
3251 * xfaces.c: Include font.h unconditionally.
3252 (merge_face_ref, merge_face_vectors)
3253 (Finternal_set_lisp_face_attribute): Cancel the previous change.
3254
40a69fac
SM
32552008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
3256
3257 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
3258 indirect_variable.
3259 * eval.c (lisp_indirect_variable): New fun.
3260 (Fuser_variable_p): Use it.
3261
8c2dccbf
SM
32622008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
3263
ad97b375
SM
3264 * lisp.h (indirect_variable):
3265 * data.c (indirect_variable, let_shadows_buffer_binding_p):
3266 Use Lisp_Symbol pointers rather than Lisp_Object.
3267 Adjust callers.
3268 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
3269 To this end, change calling-convention.
3270
8c2dccbf
SM
3271 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
3272 if some non-hidden buffers are selected by string&pred.
3273
ad97b375
SM
32742008-05-19 Chong Yidong <cyd@stupidchicken.com>
3275
3276 * process.c (wait_reading_process_output): Always check status
3277 when in batch mode.
3278
25b81df4
KH
32792008-05-19 Kenichi Handa <handa@m17n.org>
3280
3281 * font.c (font_list_entities): Fix handling of cache.
3282 (font_matching_entity): Likewise.
3283
8c2dccbf 3284 * ftfont.c (cs_iso8859_1): Delete.
25b81df4 3285 (ft_face_cache): New variable.
1f204af3 3286 (struct ftfont_info): New member fc_charset_idx.
8c2dccbf 3287 (ftfont_build_basic_charsets): Delete.
25b81df4
KH
3288 (fc_charset_table): New variable.
3289 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
3290 . FC_CHARSET_IDX) as :font-entity property in the font entity.
3291 Callers changed.
dde8403f 3292 (ftfont_lookup_cache, ftfont_get_charset): New functions.
8c2dccbf
SM
3293 (ftfont_spec_pattern): New argument fc_charset_idx.
3294 Check registry more rigidly. Change callers.
a2979e8e 3295 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
25b81df4
KH
3296 change of :font-entity property of the font.
3297
a2979e8e 3298 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
25b81df4
KH
3299 property of the font.
3300
d4a1d553
JB
33012008-05-18 Juanma Barranquero <lekktu@gmail.com>
3302
3303 * coding.c (Fcoding_system_p): Rename argument to match docstring.
3304 (Funencodable_char_position, Fcheck_coding_systems_region)
3305 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
3306 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
3307 (Ffind_operation_coding_system, Fset_coding_system_priority)
3308 (Fcoding_system_eol_type): Doc fixes.
3309
07cfc4e7
GM
33102008-05-17 Glenn Morris <rgm@gnu.org>
3311
3312 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
3313
1cab27d2
EZ
33142008-05-16 Eli Zaretskii <eliz@gnu.org>
3315
3316 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
3317 and st_gid.
3318
dde8403f 3319 * frame.c (Fdelete_frame): Don't call font_update_drivers if
1cab27d2
EZ
3320 HAVE_WINDOW_SYSTEM is not defined.
3321
3322 * xfaces.c (merge_face_ref, merge_face_vectors)
3323 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
3324 HAVE_WINDOW_SYSTEM is defined.
3325 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
3326
86b89713
SM
33272008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
3328
3329 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
3330
6750bd93
YM
33312008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3332
62867b11 3333 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
6750bd93 3334
79f105c9
KH
33352008-05-15 Kenichi Handa <handa@m17n.org>
3336
3337 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
3338 preference.
3339
6b33da9f
GM
33402008-05-15 Glenn Morris <rgm@gnu.org>
3341
3342 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
3343
d0e4433b
CY
33442008-05-15 Chong Yidong <cyd@stupidchicken.com>
3345
3346 * fns.c (init_fns): Don't initialize weak_hash_tables here.
3347 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
3348
3349 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
3350
5f2d79e0
KH
33512008-05-15 Kenichi Handa <handa@m17n.org>
3352
fd8a1cae
KH
3353 * ftfont.c (ftfont_list): Downcase family name to check generic
3354 families.
3355
3356 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
3357 font-spec for QCfont value.
3358
5f2d79e0
KH
3359 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
3360 buffer. Check the return value of it.
3361
e5e29349
JR
33622008-05-14 Jason Rumney <jasonr@gnu.org>
3363
3364 * w32term.c (w32_get_glyph_overhangs): Remove.
3365 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
3366
1f09f444
KH
33672008-05-14 Kenichi Handa <handa@m17n.org>
3368
3369 * font.c (font_prop_validate): Make nil a valid value.
be9442ad
KH
3370 (font_clear_cache): Check if the cached vector of entities is nil
3371 or not.
1f09f444 3372
ecae6af9 33732008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
f8240abd
YM
3374
3375 * emacs.c (main_thread): Conditionalize on
3376 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
3377 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
3378
3379 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
3380 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
3381 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
3382
c6b278e7
KH
33832008-05-14 Kenichi Handa <handa@m17n.org>
3384
3385 * coding.c (detect_coding_iso_2022): Ignore a coding category that
3386 has no corresponding coding system.
3387
33882008-05-14 Jason Rumney <jasonr@gnu.org>
3389
3390 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
3391
3392 * w32font.h (w32font_open_internal): Update declaration.
3393
3394 * w32font.c (w32font_open_internal): Change last argument from
3395 w32font_info struct to font object. Fill in font object from
3396 font_entity. Get Outline metrics if possible. Use them to
3397 calculate underline position and thickness. Use xlfd name as name
3398 property. Don't set codepage.
3399 (w32font_open): Pass font_object to w32font_open_internal. Don't
a879ee6f 3400 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
c6b278e7
KH
3401 (w32font_draw): Use s->font.
3402 (clear_cached_metrics): Don't clear non-existent blocks.
3403
3404 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
3405 font was not found.
a879ee6f 3406 (x_draw_glyph_string): Use underline position and thickness from font.
c6b278e7
KH
3407
3408 * w32uniscribe.c (uniscribe_open): Pass font_object to
3409 w32font_open_internal.
3410
34112008-05-14 Kenichi Handa <handa@m17n.org>
3412
3413 These changes are to delete all legacy font-handling codes, and
3414 make Emacs use only font-backends.
3415
3416 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
3417 (frame.o, image.o, print.o): Depend on $(FONTSRC).
3418
3419 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
3420
3421 * charset.h (Vcharset_non_preferred_head)
3422 (Vcurrent_iso639_language): Extern them.
3423
3424 * charset.c (Vcharset_non_preferred_head): New variable.
3425 (Vcurrent_iso639_language): New variable.
3426 (syms_of_charset): Declare it as a Lisp variable.
3427 (char_charset): Don't check non preferred charsets. As a last
3428 resort, return charset_unicode.
3429 (Fset_charset_priority): Update Vcharset_non_preferred_head.
3430
3431 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
3432 conditionals. Don't check enable_font_backend. Delete all codes
3433 used only when USE_FONT_BACKEND is not defined.
3434
3435 * dispextern.h (struct glyph_string): Change type of `font' to
3436 `struct font *'.
3437 (struct glyph_string): New member underline_position and
3438 underline_thickness.
3439 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
3440 (struct face): Change type of `font' to `struct font *'. Remove
3441 members `font_name', `font_info_id'.
3442 (per_char_metric, encode_char): Delete externs.
3443 (calc_pixel_width_or_height): Adjust the prototype.
3444
3445 * emacs.c (enable_font_backend): Delete extern.
3446 (main): Don't set enable_font_backend. Don't check the command
3447 line argument "-disable-font-backend".
3448
3449 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
3450 (enum font_property_index): New members FONT_DPI_INDEX,
3451 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
3452 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
3453 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
3454 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
3455 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
3456 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
3457 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
3458 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
3459 (struct font_spec, struct font_entity): New structs.
3460 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
3461 (struct font): Many members from old "struct font_info" moved to
3462 here. Members font and entity deleted.
3463 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
3464 the new font-related objects.
3465 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
3466 (CHECK_FONT_GET_OBJECT): Likewise.
3467 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
3468 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
3469 (struct font_driver): New members case_sensitive anc check. Type
3470 of the member list and open changed.
3471 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
3472 (font_symbolic_width, font_find_object, font_get_spec)
3473 (font_set_lface_from_name): Delete extern.
20746fe4 3474 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
c6b278e7
KH
3475
3476 * font.c: Include <strings.h>.
3477 (enable_font_backend): Delete it.
3478 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
3479 (CHECK_VALIDATE_FONT_SPEC): Delete it.
3480 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
3481 (null_string): Delete it.
3482 (null_vector): Make it static.
3483 (font_family_alist): Delete it.
3484 (Qnormal): Extern it.
3485 (QCextra, QClanguage): Delete it.
1f204af3 3486 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
c6b278e7
KH
3487 (font_make_spec, font_make_entity, font_make_object)
3488 (font_intern_prop): Renamed from intern_downcase. Don't downcase
3489 the string. Callers changed.
3490 (font_pixel_size): Adjusted for the format change of font-related
3491 objects.
3492 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
3493 (font_style_to_value, font_style_symbolic): New function.
3494 (build_font_family_alist): Delete it.
3495 (font_registry_charsets): Use Fassoc_string instead of
3496 assq_no_quit.
3497 (font_prop_validate_symbol): Don't return null_string.
3498 (font_prop_validate_style): Adjusted for the change of
3499 style-related values in a font vector.
20746fe4 3500 (font_property_table): Delete entries for QClanguage and
c6b278e7
KH
3501 QCantialias, add entries for QCavgwidth.
3502 (get_font_prop_index): Delete the 2nd argument FROM.
3503 (font_prop_validate): Arguments changed.
3504 (font_put_extra): Adjusted for the change of font-related objects.
3505 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
3506 (font_parse_fcname, font_unparse_fcname)
3507 (font_prepare_composition): Likewise.
3508 (font_parse_family_registry): Renamed from font_merge_old_spec.
3509 (otf_open): Delete the 1st arg entity.
3510 (font_otf_capability): Adjusted for the above change.
3511 (font_score): New arg alternate_families. Adjusted for the change
3512 of font-related objects.
3513 (font_sort_entites): New arg best_only.
3514 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
3515 Delete them.
3516 (font_match_p): Check alternate families.
3517 (font_find_object): Delete it.
3518 (font_check_object): New function.
c3f9fba8 3519 (font_clear_cache): Adjusted for the change of font-related objects.
c6b278e7
KH
3520 (font_delete_unmatched): New arg.
3521 (font_list_entities): Call font_driver->list with a spec that
3522 doesn't specify style-related properties.
3523 (font_matching_entity): Arguments changed. Caller changed.
c3f9fba8 3524 (font_open_entity): Adjusted for the change of font-related objects.
c6b278e7
KH
3525 (font_close_object, font_has_char, font_encode_char)
3526 (font_get_name, font_get_spec): Likewise.
c3f9fba8
JB
3527 (font_spec_from_name, font_clear_prop, font_update_lface):
3528 New functions.
3529 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
c6b278e7
KH
3530 (font_prepare_for_face, font_done_for_face, font_open_by_name)
3531 (font_at): Adjusted for the change of font-related objects.
3532 (font_range): New function.
3533 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
c3f9fba8 3534 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
c6b278e7
KH
3535 (Fcopy_font_spec, Fmerge_font_spec): New function.
3536 (Ffont_family_list): Renamed from list-families.
3537 (Finternal_set_font_style_table): Arguments changed.
3538 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
3539 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
3540 change of font-related objects.
c3f9fba8 3541 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
c6b278e7 3542
3554e566 3543 * fontset.h (struct font_info): Delete it. Most members go to
c6b278e7
KH
3544 struct font.
3545 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
3546 (enum FONT_SPEC_INDEX): Delete it.
3547 (font_info, list_fonts_func, load_font_func, query_font_func)
3548 (set_frame_fontset_func, find_ccl_program_func)
3549 (get_font_repertory_func, new_fontset_from_font_name): Delete
3550 externs.
3551 (fontset_from_font_name): Extern it.
3552 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
3553 (FONT_INFO_FROM_FACE): Deleted.
3554 (face_for_font): Adjust prototype.
3555
3556 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
3557 conditionals. Don't check enable_font_backend. Delete all codes
3558 used only when USE_FONT_BACKEND is not defined.
3559 (get_font_info_func, list_font_func, load_font_func)
3560 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
3561 (get_font_repertory_func): Delete them.
3562 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
3563 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
3564 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
3565 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
3566 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
3567 (fontset_compare_rfontdef): New function.
3568 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
3569 ront-defs by qsort. Adjusted for the change of font-group vector.
3570 (load_font_get_repertory): Deleted.
3571 (fontset_find_font): Use new macros to ref/set elements of
3572 font-def and rfont-def.
3573 (fontset_font): Fix the timing of remembering that no font for C.
3574 (free_face_fontset): Do nothing if the face has no fontset.
3575 (face_suitable_for_char_p): Use new macros to ref/set elements of
3576 rfont-def.
3577 (face_for_char): Likewise. Call face_for_char with font_object.
3578 (fs_load_font): Delete. Delete #pragma surrounding it.
3579 (fs_query_fontset): Use strcasecmp instead of strcmp.
3580 (generate_ascii_font_name): Adjusted for the format change of
3581 font-spec.
3582 (Fset_fontset_font): Likewise. Use new macros to set elements of
3583 font-def.
3584 (Fnew_fontset): Use font_unparse_xlfd to generate
3585 FONTSET_ASCII (fontset).
3586 (new_fontset_from_font_name): Deleted.
3587 (fontset_from_font): Renamed from new_fontset_from_font. Check if
3588 a fontset is already created for the font. FIx updating of
3589 Vfontset_alias_alist.
3590 (fontset_ascii_font): Deleted.
3591 (Ffont_info): Adjusted for the format change of font-spec.
3592 (Finternal_char_font): Likewise.
3593 (Ffontset_info): Likewise.
3594 (syms_of_fontset): Don't check load_font_func.
3595
3596 * fns.c (internal_equal): Handle PREV_FONT.
3597
3598 * frame.h: Delete USE_FONT_BACKEND conditional.
3599
3600 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
3601 conditionals. Don't check enable_font_backend. Delete all codes
3602 used only when USE_FONT_BACKEND is not defined.
3603 (x_set_font): Call x_new_font, not x_new_fontset2.
3604 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
3605 already set for the frame.
3606
3607 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
3608 a font-entity by font_make_entity. Use font_intern_prop instead
3609 of intern_downcase. Use FONT_SET_STYLE to set a style-related
3610 font property. If a font is scalable, set avgwidth property to 0.
3611 Set font-entity property by font_put_extra.
3612 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
3613 (ffont_driver): Adjusted for the change of struct font_driver.
3614 (ftfont_spec_pattern): New function.
3615 (ftfont_list): Return a list, not vector.
3616 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
3617 (ftfont_list_family): Don't downcase names.
3618 (ftfont_free_entity): Deleted.
3619 (ftfont_open): Return a font-ojbect. Adjusted for the change of
3620 struct font. Get underline_thickness and underline_position from
3621 font property. Don't update dpyinfo->smallest_font_height and
3622 dpyinfo->smallest_char_width.
3623 (ftfont_close): Don't free `struct font'.
3624 (ftfont_has_char): Adjusted for the format change of font-entity.
3625 (ftfont_encode_char, ftfont_text_extents): Likewise.
3626
3627 * ftxfont.c (ftxfont_list): Return a list, not vector.
3628 (ftxfont_open): Return a font-ojbect. Adjusted for the change of
3629 struct font. Get underline_thickness and underline_position from
3630 font property. Don't update dpyinfo->smallest_font_height and
3631 dpyinfo->smallest_char_width.
3632 (ftxfont_close): Don't decrese FRAME_X_DISPLAY_INFO (f)->n_fonts.
3633 (ftxfont_draw): Adjusted for the change of struct font.
3634
3635 * image.c (image_ascent): Don't include "charset.h". Include
3636 "character.h" and "font.h".
3637
3638 * lisp.h (enum pvec_type): New member PREV_FONT.
3639 (Fassoc_string): EXFUN it.
3640
3641 * print.c: Include font.h.
3642 (print_object): Handle font-related objects.
3643
3644 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
3645 conditionals. Don't check enable_font_backend. Delete all codes
3646 used only when USE_FONT_BACKEND is not defined.
3647 (handle_auto_composed_prop): Do nothing if it->f is not on a
3648 window system. Check how many following characters can be
3649 displayed by the same font.
3650 (calc_pixel_width_or_height): Type of the 4th arg is changed to
3651 'struct font *'.
3652 (get_char_face_and_encoding): Assign the whole encoding task to
3653 the `encode-char' method of a font driver.
3654 (fill_composite_glyph_string): Adjusted for the change of `struct
3655 face' and `struct glyph_string'.
3656 (fill_glyph_string): Likewise.
3657 (get_per_char_metric): Arguments changed.
3658 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
3659 and `struct glyph_string'.
3660 (produce_stretch_glyph, calc_line_height_property)
3661 (x_produce_glyphs): Likewise.
3662
3663 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
3664 conditionals. Don't check enable_font_backend. Delete all codes
3665 used only when USE_FONT_BACKEND is not defined. Use
3666 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
3667 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
3668 (Qp): Extern them.
3669 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
3670 Deleted.
3671 (struct font_name): Deleted.
3672 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
3673 (compare_fonts_by_sort_order): New function.
3674 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
3675 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
3676 Deleted.
3677 (Fx_family_fonts): Use font_list_entities, and sort fonts by
3678 compare_fonts_by_sort_order.
3679 (Fx_font_family_list): Call Ffont_family_list.
3680 (face_numeric_value, face_numeric_weight, face_numeric_slant)
3681 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
3682 (face_symbolic_slant, face_symbolic_swidth)
3683 (split_font_name_into_vector, build_font_name_from_vector)
3684 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
3685 (font_rescale_ratio, split_font_name, build_font_name)
3686 (free_font_names, sort_fonts, x_face_list_fonts)
3687 (face_font_available_p, sorted_font_list, cmp_font_names)
3688 (font_list_1, concat_font_list, font_list, remove_duplicates):
3689 Deleted.
3690 (Fx_list_fonts): Use Ffont_list.
3691 (LFACE_AVGWIDTH): Deleted.
3692 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
3693 by FONTP.
3694 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
3695 (set_lface_from_font_name): Delete it.
3696 (set_lface_from_font): Renamed from
3697 set_lface_from_font_and_fontset. Caller changed. Don't set
3698 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
3699 for face.
c3f9fba8
JB
3700 (merge_face_vectors): Copy font-spec if necessary.
3701 Clear properties of the font-spec if necessary.
c6b278e7
KH
3702 (merge_face_ref): Clear properties of the font-spec if necessary.
3703 (Finternal_set_lisp_face_attribute): Likewise.
3704 (set_font_frame_param): Use font_load_for_lface to load a
3705 font-object, and call Fmodify_frame_parameters with it.
3706 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
3707 font name by Ffont_xlfd_name.
3708 (Finternal_lisp_face_attribute_values): Don't check QCweight,
3709 QCslant, and QCwidth.
3710 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
3711 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
3712 Compare fonts by EQ.
3713 (lookup_non_ascii_face): Deleted.
3714 (face_for_font): The 2nd argument changed.
c3f9fba8
JB
3715 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
3716 Check atomic font properties by case insensitive.
c6b278e7
KH
3717 (realize_non_ascii_face): Set face->overstrike correctly.
3718 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
3719 (dump_realized_face): Get font name from
3720 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
3721
3722 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
3723 conditionals. Don't check enable_font_backend. Delete all codes
3724 used only when USE_FONT_BACKEND is not defined.
3725 (xic_create_xfontset): Original code deleted and renamed from
3726 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
3727 (x_make_gc): Don't set GCFont in GCs.
3728 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
3729 opened by "fixed".
3730 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
3731 find_ccl_program_func, query_font_func, set_frame_fontset_func,
3732 get_font_repertory_func.
3733
3734 * xfont.c: Include <stdlib.h> and "ccl.h".
3735 (struct xfont_info): New structure.
3736 (xfont_query_font): Deleted.
3737 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
3738 moved from xterm.c.
3739 (xfont_driver): Adjusted for the change of struct font_driver.
3740 (compare_font_names): New function.
3741 (xfont_list_pattern): Sort font names case insensitively. Make
3742 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
3743 (xfont_list): Return a list, not vector.
3744 (xfont_match): If the font doesn't have QCname property, generate
3745 a name from the other font properties.
3746 (xfont_open): Return a font-ojbect. Adjusted for the change of
3747 struct font. Get underline_thickness and underline_position from
3748 font property. Don't update dpyinfo->smallest_font_height and
3749 dpyinfo->smallest_char_width.
3750 (xfont_close): Don't free struct font.
3751 (xfont_prepare_face): Adjusted for the change of struct font.
3752 (xfont_done_face): Deleted.
3753 (xfont_has_char): Adjusted for the change of struct font.
3754 (xfont_encode_char, xfont_draw): Likewise.
3755 (xfont_check): New function.
3756
3757 * xftfont.c (xftfont_list): Adjusted for the change of `list'
3758 callback function.
3759 (xftfont_match): Adjusted for the fontmat change of font-entity.
3760 (xftfont_open): Adjusted for the format change of font-entity and
3761 font-object. Adjusted for the change of struct font. Return a
3762 font-object. Don't update dpyinfo->smallest_font_height and
3763 dpyinfo->smallest_char_width.
3764 (xftfont_close): Block input while calling XftFontClose.
3765 (xftfont_prepare_face): Don't block input while calling
3766 xftfont_get_colors. Adjusted for the change of struct font.
3767 (xftfont_shape): Return value of error case fixed.
3768
3769 * xrdb.c (x_load_resources): Don't setup a fontset resource.
3770
3771 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
3772 conditionals.
3773 (FONT_WIDTH): Return (f)->max_width.
3774 (struct x_display_info): Delete member `font'.
3775 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
3776 (x_find_ccl_program, x_get_font_repertory): Delete externs.
3777 (struct x_output): Change type of `font' to `struct font *'.
3778
3779 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
3780 conditionals. Don't check enable_font_backend. Delete all codes
c3f9fba8 3781 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
c6b278e7
KH
3782 (x_per_char_metric, x_encode_char): Deleted.
3783 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
3784 (x_compute_glyph_string_overhangs): Adjusted for the change of
c3f9fba8 3785 `struct face'.
c6b278e7
KH
3786 (x_draw_glyph_string_foreground)
3787 (x_draw_composite_glyph_string_foreground): Likewise.
3788 (x_draw_glyph_string): Likewise. Use font->underline_position and
3789 font->underline_thickness.
3790 (x_new_font): Renamed from x_new_fontset2.
3791 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
3792 (x_check_font): Call `check' method of a font driver.
3793 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
3794 (x_query_font, x_get_font_repertory): Deleted.
3795 (x_find_ccl_program): Renamed and moved to xfont.c.
3796 (x_redisplay_interface): Adjusted for the change of `struct
3797 redisplay_interface'.
3798
3799 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
3800 conditionals. Don't check enable_font_backend. Delete all codes
3801 used only when USE_FONT_BACKEND is not defined. Surround non-used
3802 code by "#ifdef OLD_FONT" and "endif".
3803 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
3804
3805 * w32font.h (struct w32font_info): New member.
3806 (FONT_COMPAT): New macro.
3807 (w32font_open_internal): Prototype adjusted.
3808
3809 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
3810 OLD_FONT" and "endif".
3811
3812 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
3813 conditionals. Don't check enable_font_backend. Delete all codes
3814 used only when USE_FONT_BACKEND is not defined.
3815 (w32font_open): Return a font-object. Make a font-object by
3816 font_make_object. Adjusted for the change of struct w32font_info.
3817 (w32font_close): Don't free struct font. Adjusted for the change
3818 of struct w32font_info.
3819 (w32font_encode_char, w32font_text_extents, w32font_draw):
3820 Adjusted for the change of struct w32font_info.
3821 (w32font_draw): Likewise.
3822 (w32font_list_internal): Return a list, not vector.
3823 (w32font_open_internal): Change the 4th arg to font-object.
c3f9fba8 3824 Adjusted for the change of struct w32font_info and font-object format.
c6b278e7
KH
3825 (add_font_name_to_list): Don't downcase names.
3826 (w32_enumfont_pattern_entity): Make a font-entity by
3827 font_make_entity. Adjusted for the format change of font-entity.
3828 Use FONT_SET_STYLE to set a style-related font property. If a
3829 font is scalable, set avgwidth property to 0. Set font-entity
3830 property by font_put_extra.
c3f9fba8 3831 (font_matches_spec): Adjusted for the format change of font-entity.
c6b278e7
KH
3832 (w32_weight_table, w32_decode_weight): New variables.
3833 (w32_encode_weight): New function.
3834 (fill_in_logfont): Adjusted for the format change of font-spec.
3835 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
3836 weight value.
3837 (w32font_driver): Adjusted for the change of struct font_driver.
3838
3839 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
f245f2c6 3840 conditionals. Don't check enable_font_backend. Surround non-used
c6b278e7
KH
3841 code by "#ifdef OLD_FONT" and "endif".
3842 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
3843 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
3844
3845 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
3846 conditionals. Don't check enable_font_backend. Delete all codes
3847 used only when USE_FONT_BACKEND is not defined. Surround non-used
3848 code by "#ifdef OLD_FONT" and "endif".
3849
3850 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
c3f9fba8
JB
3851 (uniscribe_open): Return value changed to font-object.
3852 Adjusted for the format change of font-object.
3853 (uniscribe_otf_capability): Adjusted for the change of struct font.
c6b278e7
KH
3854 (add_opentype_font_name_to_list): Don't downcase names.
3855 (uniscribe_font_driver): Adjusted for the change of struct
3856 font_driver.
3857
f9d4c199
CY
38582008-05-13 Chong Yidong <cyd@stupidchicken.com>
3859
3860 * dispnew.c (update_frame_1): Check if tty output is still valid
3861 before flushing it.
3862
44f249c0
JD
38632008-05-13 Jan Djärv <jan.h.d@swipnet.se>
3864
3865 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
3866 to Gtk+ menus.
3867
01bb4018
SM
38682008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
3869
3271a8f5
SM
3870 * dired.c (file_name_completion): Tweak the code so as to always do it
3871 in a single pass. Tighten the scope of some variables.
3872
01bb4018
SM
3873 * dired.c (Qdefault_directory): New var.
3874 (file_name_completion): Use it instead of Fexpand_file_name.
3875 (syms_of_dired): Initialize it.
3876
728bb8e0
SM
38772008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
3878
3879 * fileio.c (double_dollars): Remove dead code.
3880
ed4c17bb
EZ
38812008-05-10 Eli Zaretskii <eliz@gnu.org>
3882
6c5665e9
EZ
3883 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
3884 Mention w32-get-true-file-attributes in doc string.
3885
ed4c17bb
EZ
3886 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
3887
71e1f69d
GM
38882008-05-09 Glenn Morris <rgm@gnu.org>
3889
3890 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
3891 2008-04-23.
3892
ee7a2e7a
EZ
38932008-05-09 Eli Zaretskii <eliz@gnu.org>
3894
8aaaec6b
EZ
3895 Support for reporting owner and group of each file on MS-Windows:
3896 * dired.c (stat_uname, stat_gname): New functions, with special
3897 implementation for w32.
3898 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
3899
ee7a2e7a
EZ
3900 * w32.c: Rename the_passwd_* to dflt_passwd_*.
3901 (dflt_group_name): New static variable.
728bb8e0 3902 (dflt_group): Rename from the_group.
ee7a2e7a
EZ
3903 (init_user_info): Init dflt_group fields. Get user's group name
3904 from LookupAccountSid.
8aaaec6b
EZ
3905 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
3906 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
3907 New initialization states.
3908 (globals_of_w32): Initialize them to zero. Initialize the default
3909 group name to "None".
3910 (GetFileSecurity_Name): New global var, the name of the function
3911 to call for GetFileSecurity.
3912 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
3913 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
3914 (get_file_security, get_security_descriptor_owner)
3915 (get_security_descriptor_group, is_valid_sid)
3916 (get_file_security_desc, get_rid, get_name_and_id)
3917 (get_file_owner_and_group): New functions.
3918 (stat): Use get_file_security_desc and get_file_owner_and_group to
3919 report the owner and primary group of each file. Don't ignore the
728bb8e0
SM
3920 high 32 bits of file's size, now that st_size is 64-bit wide.
3921 Fix test when to get true file attributes.
8aaaec6b
EZ
3922 (init_user_info): Use get_rid instead of equivalent inline code.
3923 (fstat): Don't ignore the high 32 bits of file's size.
ee7a2e7a 3924
b199c436
CY
39252008-05-09 Chong Yidong <cyd@stupidchicken.com>
3926
3927 * image.c (png_load): Use correct bit-depth for setting background
3928 color.
3929
86914123
EZ
39302008-05-08 Eli Zaretskii <eliz@gnu.org>
3931
3932 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
3933 epa-hook.elc.
3934
67b5d7de
JB
39352008-05-08 Juanma Barranquero <lekktu@gmail.com>
3936
3937 * font.c (Ffont_match_p): Don't use `iff' in docstring.
3938
1a111394
DN
39392008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
3940
3941 * macfns.c (Fx_create_frame): Make a copy of frame parameters
3942 because the original parameters are in pure storage now.
3943 (mac_window): Remove unused params. Update callers.
3944
6d77fa95
SM
39452008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3946
7a3d90dc
SM
3947 * lread.c (substitute_object_recurse): Use lower-level primitives.
3948 Don't signal errors when traversing sub-char-tables.
3949 Don't loop over all the possible characters when traversing char-tables.
3950
6d77fa95
SM
3951 * print.c (print_preprocess): Add sub-char-tables to the print-table,
3952 just like we do in print.c.
3953
140eb764
SM
39542008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
3955
3956 * minibuf.c (Ftry_completion): Remove code left over from when we used
3957 scmp instead of Fcompare_strings.
3958
e9184ccb
JB
39592008-05-04 Juanma Barranquero <lekktu@gmail.com>
3960
3961 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
3962
0e9378b3
YM
39632008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3964
3965 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
3966 Create bitmap context in native byte order.
3967
f67e15be
MB
3968 * macterm.c (XDrawLine)
3969 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
3970 context in native byte order.
064032d0 3971
f67e15be 39722008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
50eff40f
YM
3973
3974 * config.in: Regenerate.
3975
3976 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
3977 New definitions for Image I/O support.
3978 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
3979 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
3980 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
3981 (mac_data_provider_release_data, image_load_image_io)
3982 [USE_MAC_IMAGE_IO]: New functions.
3983 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
3984 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
3985 (init_image_func_pointer) [MAC_OSX]: Remove function.
3986 (image_load_quartz2d) [MAC_OSX]: Check availability of
3987 CGImageCreateWithPNGDataProvider at compile time.
3988 Use lowercase `false' for boolean constant.
3989 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
3990 Use image_load_image_io.
3991 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
3992 Don't check MyCGImageCreateWithPNGDataProvider.
3993 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
3994 Don't call init_image_func_pointer.
3995
3996 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
3997
3998 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
3999 Make variable non-static.
4000 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
4001 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
4002
4003 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
4004 (RED_FROM_ULONG): Mask off higher bits.
4005 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
4006
4007 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
4008 Include AvailabilityMacros.h.
4009 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
4010 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
4011
c6bff69e
SM
40122008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
4013
4014 * chartab.c (Fset_char_table_range): If range is t, really set all
4015 chars to that value.
4016
7412d429
EZ
40172008-05-03 Eli Zaretskii <eliz@gnu.org>
4018
4019 * dired.c (Ffile_attributes): Don't allow the device number become
4020 negative.
4021
f83bbfac
DU
40222008-05-02 Daiki Ueno <ueno@unixuser.org>
4023
5a81d3d7 4024 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
f83bbfac 4025
2e3148e2
JL
40262008-05-02 Juri Linkov <juri@jurta.org>
4027
4028 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
728bb8e0
SM
4029 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
4030 DEFAULT argument as a list of default values in docstrings.
2e3148e2 4031
923fb88c
CY
40322008-05-01 Chong Yidong <cyd@stupidchicken.com>
4033
4034 * puresize.h (BASE_PURESIZE): Increase to 1210000.
4035
047aaeb9
MR
40362008-05-01 Martin Rudalics <rudalics@gmx.at>
4037
4038 * dispnew.c (change_frame_size_1): Preserve small windows when
4039 shrinking frames by calling set_window_height|width with third
4040 arg 2.
4041
4042 * window.h (struct window): Replace field too_small_ok by field
4043 resize_proportionally.
4044
4045 * window.c (make_window): Initialize resize_proportionally.
4046 (enlarge_window): Temporarily set resize_proportionally to make
4047 sure that shrink_windows does scale the window proportionally.
4048 (shrink_windows): When window has resize_proportionally set try
4049 to shrink it proportionally by stealing from other windows.
4050 (struct saved_window, Fset_window_configuration)
4051 (compare_window_configurations): Handle resize_proportionally.
4052 (WINDOW_TOTAL_SIZE): New macro.
4053 (window_min_size, shrink_windows, size_window): Use it.
c6bff69e 4054 (check_min_window_sizes): Remove. Invalid values of
047aaeb9
MR
4055 window-min-height|width are handled by window_min_size_2 now.
4056 (size_window, Fsplit_window, enlarge_window)
4057 (adjust_window_trailing_edge, grow_mini_window): Don't call
4058 check_min_window_sizes.
c6bff69e
SM
4059 (window_min_size_2, window_min_size_1, window_min_size):
4060 New argument safe_p for retrieving "safe" minimum sizes.
c3f9fba8 4061 (Fdisplay_buffer, Fsplit_window, enlarge_window)
c6bff69e
SM
4062 (adjust_window_trailing_edge, grow_mini_window):
4063 Adjust arguments of window_min_size... functions.
047aaeb9
MR
4064 (shrink_windows): Argument min_size removed. New argument
4065 safe_p allows shrinking windows to their safe minimum sizes.
4066 Calculate minimum size and decide whether a window shall be
4067 deleted for each window individually.
4068 (size_window): When nodelete_p equals 2, tell shrink_windows to
4069 delete windows only if their new minimum size is no more safe.
4070 (shrink_window_lowest_first): Call window_min_size_1 to make
4071 sure to preserve modeline of bottom-most window when resizing
4072 the minibuffer.
4073 (Fset_window_configuration, Fcurrent_window_configuration)
4074 (compare_window_configurations): Do not handle
4075 window-min-height|width any more.
4076 (syms_of_window): Clarify window-min-height|width doc-strings.
4077
2a54a229
SM
40782008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
4079
4080 * dired.c (file_name_completion): Fix up the encoding/decoding issue
4081 some more. Copy some of the code from Ftry_completions.
4082 Remove special case code that dates back to initial revision when the
4083 slash was only added when necessary and that can't trigger nowadays.
4084
384bc634
KH
40852008-04-27 Kenichi Handa <handa@m17n.org>
4086
4087 * font.c (font_prop_validate): Signal `error' instead of `font'.
4088
2c2279c6
JR
40892008-04-29 Jason Rumney <jasonr@gnu.org>
4090
4091 * w32fns.c (Fw32_battery_status): New defun.
4092 (syms_of_w32fns): Defsubr it.
4093
fb4a622a
AS
40942008-04-28 Andreas Schwab <schwab@suse.de>
4095
4096 * dired.c (file_name_completion): Fix another mixing of encoded
4097 and decoded names.
4098
23f250f4
JB
40992008-04-28 Juanma Barranquero <lekktu@gmail.com>
4100
4101 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
4102
d8d30dff
JB
41032008-04-27 Juanma Barranquero <lekktu@gmail.com>
4104
4105 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
4106
ea6104a8
AS
41072008-04-27 Andreas Schwab <schwab@suse.de>
4108
9c691c00
AS
4109 * dired.c (file_name_completion): Fix inappropriate mixing of
4110 encoded and decoded names.
4111
ec1bf773
AS
4112 * xterm.c (XTread_socket): Fix use of uninitialized variable.
4113
ea6104a8
AS
4114 * puresize.h (BASE_PURESIZE): Increase to 1200000.
4115
01388a3d
EZ
41162008-04-26 Eli Zaretskii <eliz@gnu.org>
4117
4118 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
4119 2008-03-31, it's not needed anymore with `struct stat' definition
4120 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
4121 for the same reasons.
4122
175aea10 41232008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
27af566c
CY
4124
4125 * m/sparc.h: Additional redefinitions for GNU/Linux.
4126
1289aeb8
YM
41272008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4128
4129 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
4130 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
4131 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
4132 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
4133 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
4134 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
4135 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
4136 Likewise.
4137
4138 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
c3f9fba8 4139 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
1289aeb8
YM
4140 (mac_ax_number_of_characters): Add externs.
4141 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
4142 [USE_MAC_TSM]: Likewise.
4143 (mac_handle_text_input_event) [MAC_OSX]:
4144 Handle kEventTextInputOffsetToPos for no active input area case.
4145 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
4146 (mac_handle_document_access_event)
4147 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
4148 (install_application_handler) [MAC_OSX]: Register handlers for
4149 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
4150 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
4151 Register mac_handle_document_access_event.
4152
4153 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
4154 Make functions non-static.
4155
dbd50d4b
SM
41562008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
4157
4158 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
4159 (read_file_name_completion_ignore_case, insert_default_directory)
4160 (Qdefault_directory): Move to minibuffer.el.
4161 (Fread_file_name): Call the new `read-file-name' instead.
4162
9ea37b9d 41632008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
81fe843b
YM
4164
4165 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
4166 Make function non-static.
4167 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
4168 Remove function.
4169 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
4170 Move to mactoolbox.c.
4171 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
4172
4173 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
4174 (mac_rect_make): New macro.
4175
4176 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
4177 instead of float.
4178 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
4179 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
4180 (XSetBackground) [USE_CG_DRAWING]: Likewise.
4181 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
4182 CGRectMake.
4183 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
4184 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
4185 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
4186 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
4187 instead of WindowRef in argument type.
4188 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
4189 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
4190 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
4191 instead of DISPLAY. All uses changed.
4192 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
4193 (x_calc_absolute_position): Simplify so as not to use
4194 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
81fe843b
YM
4195
4196 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
4197 instead of WindowRef in argument type.
4198 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
4199 [TARGET_API_MAC_CARBON]: Remove externs.
4200 (create_apple_event, mac_event_parameters_to_lisp)
4201 [TARGET_API_MAC_CARBON]: Add externs.
4202
d8d30dff 4203 * mactoolbox.c (Vmac_ts_script_language_on_focus)
81fe843b
YM
4204 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
4205 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
4206 is clicked.
4207 (x_activate_menubar): Remove extern for saved_menu_event_location.
4208 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
4209 Move from mac.c.
4210
9ea37b9d 42112008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a1b41389
YM
4212
4213 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
4214 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
4215
9ea37b9d 42162008-04-23 Jason Rumney <jasonr@gnu.org>
bd735631
JR
4217
4218 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
4219 attributes only for local files.
4220
4221 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
e9184ccb 4222 default to Qlocal.
bd735631 4223
88970542
JL
42242008-04-22 Juri Linkov <juri@jurta.org>
4225
4226 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
4227 read-buffer-to-switch instead of using the letter "B".
4228
92ec67e3
SM
42292008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
4230
4231 * fileio.c (Qdefault_directory): New variable.
4232 (Fread_file_name): Use it to pass `dir' to the completion functions.
4233
a32b2382
CY
42342008-04-20 Chong Yidong <cyd@stupidchicken.com>
4235
2a2e8de7 4236 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
a32b2382 4237
6c8b4f07
SM
42382008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
4239
ece5f847
SM
4240 * keyboard.c (Vpre_help_message): Remove.
4241 (show_help_echo): Remove default C code.
4242
6c8b4f07
SM
4243 * dired.c (directory_files_internal, file_name_completion):
4244 Only call ENCODE_FILE if the string is indeed decoded.
4245
73d798d5
SM
42462008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
4247
4248 * Makefile.in (TOOLKIT_DEFINES): Remove.
4249 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
4250
d8d30dff 42512008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9e13f0c3
YM
4252
4253 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
4254 (mactoolbox.o): New target.
4255
4256 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
4257 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
4258
4259 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
4260 Use mac_set_frame_window_background instead of XSetWindowBackground.
4261 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
4262 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
4263 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
4264 instead of SetWindowTitleWithCFString.
4265 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
4266 Move function to mactoolbox.c.
4267 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
4268 Use mac_set_window_modified instead of SetWindowModified.
4269 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
4270 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
4271 (Fx_focus_frame): Use mac_front_non_floating_window instead of
4272 FrontNonFloatingWindow. Use mac_activate_window instead of
4273 ActivateWindow. Use mac_active_non_floating_window instead of
4274 ActiveNonFloatingWindow.
4275 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
4276 Use mac_show_hourglass and mac_hide_hourglass.
4277 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
4278 instead of GetGlobalMouse.
4279 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
4280 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
4281 Use mac_bring_window_to_front instead of BringToFront.
4282 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
4283 mactoolbox.c.
4284 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
4285 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
4286 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
4287 mactoolbox.c.
4288
4289 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
4290 (XtPointer): Move typedef from macmenu.c.
4291 (enum button_type): Move enum from macmenu.c.
4292 (widget_value): Move typedef from macmenu.c.
4293 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
4294 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
4295 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
4296 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
4297 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
4298 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
4299 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
4300 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
4301 (Selection): Move typedef from macselect.c.
4302 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
4303 macterm.c.
4304 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
4305 (mac_is_window_collapsed, mac_bring_window_to_front)
4306 (mac_send_window_behind, mac_hide_window, mac_show_window)
4307 (mac_collapse_window, mac_front_non_floating_window)
4308 (mac_active_non_floating_window, mac_activate_window)
4309 (mac_move_window_structure, mac_move_window, mac_size_window)
4310 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
4311
4312 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
4313 (enum mac_menu_kind): Move enum to mactoolbox.c.
4314 (min_menu_id): Move variable to mactoolbox.c.
4315 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
4316 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
4317 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
4318 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
4319 [TARGET_API_MAC_CARBON]: Likewise.
4320 (XtPointer): Move typedef to macgui.h.
4321 (enum button_type): Move enum to macgui.h.
d02fe47d
MB
4322 (widget_value): Move typedef to macgui.h.
4323 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
4324 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
4325 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
4326 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
4327 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
4328 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
4329 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
4330 (popup_activated_flag): Make variable non-static.
4331 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
4332 (add_menu_item, fill_menu, dispose_menus):
4333 Move functions to mactoolbox.c.
4334 (restore_show_help_function, menu_target_item_handler)
4335 (install_menu_target_item_handler, mac_handle_dialog_event)
4336 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
4337 [TARGET_API_MAC_CARBON]: Likewise.
4338 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
4339 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
4340 (find_and_call_menu_selection, name_is_separator): Make function
4341 non-static.
4342 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
4343 to mactoolbox.c.
4344 (set_frame_menubar): Don't call install_menu_quit_handler.
4345 (menu_item_selection): New variable.
4346 (mac_menu_show): Use create_and_show_popup_menu.
4347 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
4348 selection but set variable menu_item_selection. All uses changed.
4349 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
4350 Call install_menu_quit_handler. Move to mactoolbox.c.
edd3ff1d 4351
d02fe47d
MB
4352 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
4353 (Selection): Move typedef to macgui.h.
4354 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
4355 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
4356 Make variables non-static.
4357 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
4358 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
4359 Make functions non-static.
4360 (Vmac_service_selection) [MAC_OSX]: Likewise.
4361 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
4362 (mac_valid_selection_target_p, mac_clear_selection)
4363 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
4364 (mac_put_selection_value, mac_selection_has_target_p)
4365 (mac_get_selection_value, mac_get_selection_target_list)
4366 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
4367 Move functions to mactoolbox.c.
4368 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
4369 Likewise.
4370 (copy_scrap_flavor_data, mac_handle_service_event)
4371 (install_service_handler) [MAC_OSX]: Likewise.
4372 (syms_of_macselect) <Vmac_dnd_known_types>:
4373 Use mac_dnd_default_known_types.
463f55ee 4374
d02fe47d
MB
4375 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
4376 Move to mactoolbox.c.
4377 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
4378 (Fx_selection_owner_p): Add EXFUN.
4379 (install_window_handler, remove_window_handler, XSetWindowBackground):
4380 Remove externs.
4381 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
4382 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
4383 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
4384 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
4385 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
4386 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
4387 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
4388 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
4389 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
4390 (create_and_show_popup_menu, mac_get_selection_from_symbol)
4391 (mac_valid_selection_target_p, mac_clear_selection)
4392 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
4393 (mac_put_selection_value, mac_selection_has_target_p)
4394 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
4395 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
4396 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
4397 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
4398 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
4399 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
4400 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
4401 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
4402 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
463f55ee 4403
d02fe47d 4404 * mactoolbox.c: New file.
af253914 4405
d8d30dff 44062008-04-18 Jason Rumney <jasonr@gnu.org>
af253914 4407
d02fe47d 4408 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
af253914 4409
8ee085a4
SM
44102008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
4411
73d798d5
SM
4412 * character.c (Fmultibyte_char_to_unibyte):
4413 Return latin1 chars unchanged.
5556875b 4414
8ee085a4
SM
4415 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
4416 relocated if it points to `name'.
4417
5dff5999
KH
44182008-04-17 Kenichi Handa <handa@m17n.org>
4419
4420 * data.c (Faset): Allow setting a multibyte character in an
4421 ASCII-only unibyte string.
4422
4423 * lisp.h (STRING_SET_MULTIBYTE): New macro.
4424
a51f4969
SM
44252008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
4426
4427 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
4428 done in config.h.
4429
add553ac
JB
44302008-04-16 Juanma Barranquero <lekktu@gmail.com>
4431
4432 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
4433 (Fchar_direction): Add usage in the docstring.
4434
8ad7b280
CY
44352008-04-15 Chong Yidong <cyd@stupidchicken.com>
4436
4437 * keyboard.c (read_key_sequence): Remove always-true checks.
4438
e157d7ba
JR
44392008-04-14 Jason Rumney <jasonr@gnu.org>
4440
4441 * w32font.c (w32font_open_internal): Set max_bounds.descent in
4442 compatibility struct, for better underline positioning.
4443
9ec3aaef 44442008-04-13 David Hansen <david.hansen@gmx.net>
48f7d213
MA
4445
4446 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
4447 string.
4448
36c08864
DN
44492008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
4450
4451 * m/hp800.h (XUINT, XSET): Remove.
4452
f5acc071
JB
44532008-04-12 Juanma Barranquero <lekktu@gmail.com>
4454
4455 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
4456 previous change.
4457
5b5a2ea1
SM
44582008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
4459
4460 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
4461 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
4462
492d9fd6
SM
44632008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
4464
4465 * keymap.h (map_keymap_canonical): Declare.
4466 * xmenu.c (single_keymap_panes): Use it.
4467
dd60787c
GM
44682008-04-11 Glenn Morris <rgm@gnu.org>
4469
4470 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
4471 set the target's value to that of the alias.
4472
c23b5410
SM
44732008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
4474
4475 * term.c (set_tty_color_mode): Left over typo.
4476
e89b536d
MA
44772008-04-10 Michael Albinus <michael.albinus@gmx.de>
4478
4479 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
f5acc071 4480 only after check for file name handler functions. Signal, when
e89b536d
MA
4481 native functionality is not supported.
4482 (syms_of_fileio): Declare it unconditionally.
4483
40a339c8
JR
44842008-04-10 Jason Rumney <jasonr@gnu.org>
4485
31403b24
JR
4486 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
4487 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
4488
40a339c8
JR
4489 * w32.c (logon_network_drive): Also logon to remote drives that
4490 are mapped to drive letters.
4491
96a7394f
GM
44922008-04-10 Glenn Morris <rgm@gnu.org>
4493
4494 * xdisp.c (truncate-partial-width-windows): Doc fix.
4495
34b67b0f
SM
44962008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
4497
4498 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
4499 Move functions to minibuffer.el.
4500 (syms_of_fileio): Don't declare them.
4501
c025fb0a
SM
45022008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
4503
ba5ff07b
SM
4504 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
4505 (syms_of_minibuf): Remove its initialization.
4506
c025fb0a
SM
4507 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
4508
7a6a86ad
JB
45092008-04-09 Juanma Barranquero <lekktu@gmail.com>
4510
4511 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
4512
cf907d69
JR
45132008-04-09 Jason Rumney <jasonr@gnu.org>
4514
3dc94c30
JR
4515 * makefile.w32-in (distclean): Delete makefile too.
4516 (maintainer-clean): New target.
4517
8d28646b
JR
4518 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
4519
cf907d69
JR
4520 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
4521 for new font backend and composite cases.
4522
ef5eb925
JD
45232008-04-09 Jan Djärv <jan.h.d@swipnet.se>
4524
4525 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
4526 Most of the code moved to run_timers.
4527 (do_pending_atimers): Call run_timers.
4528 (run_timers): New function.
4529
cf907d69
JR
4530 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
4531 run atimers.
ef5eb925
JD
4532
4533 * process.c (wait_reading_process_output): The same as above.
4534
9b2cd403
SM
45352008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
4536
32bae13c
SM
4537 * minibuf.c (last_exact_completion): Remove variable.
4538 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
4539 (complete_and_exit_1, complete_and_exit_2)
4540 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
4541 (Fdisplay_completion_list, display_completion_list_1)
4542 (Fminibuffer_completion_help, Fself_insert_and_exit)
8d28646b
JR
4543 (Fexit_minibuffer, Fminibuffer_message): Move functions to
4544 minibuffer.el.
32bae13c
SM
4545 (syms_of_minibuf): Remove corresponding initializations.
4546
5c4cc82a
SM
4547 * keyboard.c (Qdeactivate_mark): New var.
4548 (command_loop_1): Use it to call `deactivate-mark'.
4549 (syms_of_keyboard): Initialize it.
4550
9b2cd403
SM
4551 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
4552 to another frame.
4553 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
4554 Don't call set_tty_color_mode.
4555 (store_frame_param): Reset previous_frame rather than call
4556 set_tty_color_mode.
4557 * term.c (set_tty_color_mode): Rewrite.
4558 * dispextern.h (set_tty_color_mode): New type.
4559 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
4560
84cb7b45
SM
45612008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
4562
4563 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
4564 for generic chars, which do not exist any more in emacs-unicode.
4565
3ed051d4
MA
45662008-04-08 Michael Albinus <michael.albinus@gmx.de>
4567
4568 * coding.c (detect_coding_emacs_mule)
4569 (Ffind_operation_coding_system): Fix typo.
4570
58c3ea42
JR
45712008-04-08 Jason Rumney <jasonr@gnu.org>
4572
3bf8d230
JR
4573 * w32uniscribe.c (SNAME): Extract only symbol name.
4574
56a70cca
JR
4575 * w32font.h (struct w32_metric_cache): New struct.
4576 (w32font_info): Use it.
4577 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
4578 (CACHE_BLOCKSIZE): New constants.
3ed051d4 4579
58c3ea42
JR
4580 * w32font.c (Qja, Qko, Qzh): New symbols.
4581 (syms_of_w32font): Initialise them.
4582 (font_matches_spec): Use them to filter by language.
4583 (recompute_cached_metrics): Remove function.
4584 (compute_metrics, clear_cached_metrics): New functions.
4585 (w32font_encode_char): Use them to manage metric cache.
4586 (w32font_text_extents): Cache metrics for all glyphs on demand.
4587 Delay converting glyph indices to WORD until needed.
4588 (w32font_open_internal): Initialize metric cache to empty.
4589 (registry_to_w32_charset): Charset should always be a symbol.
4590 (fill_in_logfont, list_all_matching_fonts): Family should
4591 always be a symbol.
4592
0ce24b2d
JR
45932008-04-06 Jason Rumney <jasonr@gnu.org>
4594
4595 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
4596 Give up if glyph indices not supported. Use uniscribe obtained
4597 ABC widths for individual metrics. Map glyph clusters back to
4598 characters using fClusterStart flag. Return number of glyphs
4599 produced, not chars processed.
b7655e0c 4600 (uniscribe_shape): Map char at FROM to current glyph.
0ce24b2d 4601
5bc6ddff 46022008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
56613f06 4603
fbf57abb
JB
4604 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
4605 Use SetMenuItemHierarchicalMenu.
56613f06 4606
5bc6ddff 46072008-04-05 Jason Rumney <jasonr@gnu.org>
93421a1f 4608
5bc6ddff
MB
4609 * image.c (pbm_load): Allow color values up to 65535.
4610 Throw an error if max_color_idx is outside the supported range.
4611 Report an error when image size is invalid.
4612 Read two bytes at a time when raw images have max_color_idx above 255.
1f816871 4613
5bc6ddff 46142008-04-05 Eli Zaretskii <eliz@gnu.org>
5ed6ba5b 4615
5bc6ddff
MB
4616 * w32.c (readdir): If FindFirstFile/FindNextFile return in
4617 cFileName a file name that includes `?' characters, use the 8+3
4618 alias in cAlternateFileName instead.
5ed6ba5b 4619
5bc6ddff 46202008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
32c06229 4621
5bc6ddff
MB
4622 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
4623 append "CCL: Quitted" when the CCL program is quitted.
4624 (setup_ccl_program): Initialize ccl->quit_silently to zero.
32c06229 4625
5bc6ddff 4626 * ccl.h (struct ccl_program): New member quit_silently.
32c06229 4627
c36e15db
CY
46282008-04-05 Chong Yidong <cyd@stupidchicken.com>
4629
9605d567
CY
4630 * search.c (compile_pattern_1): Treat non-nil and non-string of
4631 search-spaces-regexp as nil.
4632
c36e15db
CY
4633 * minibuf.c (Fassoc_string): Tweak docstring.
4634
40beb147
EZ
46352008-04-05 Eli Zaretskii <eliz@gnu.org>
4636
4637 * dired.c (Ffile_attributes): Support inode numbers wider than 32
4638 bits. Remove ugly WINDOWSNT-specific kludge introduced on
4639 2008-03-14 to force inode be positive.
4640
4641 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
4642 _S_* ones, since we now use our own sys/stat.h.
4643 (stat, fstat): Don't mangle the inode number.
aa08d1ff 4644 (init_user_info): Don't restrict UID and GID to 0-60000 range.
40beb147 4645
4591d6cb
SM
46462008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
4647
d4417eb0
SM
4648 * frame.h (struct frame): Give one more bit to `visible' since we use
4649 values larger than 1 to indicate obscured frames on ttys.
4650
00f7c5ed
SM
4651 * keymap.c (Qkeymap_canonicalize): New var.
4652 (Fmap_keymap_internal): New fun.
4653 (describe_map): Use keymap-canonicalize.
4654
4591d6cb
SM
4655 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
4656 (Fundo_boundary): Set them.
4657 (syms_of_undo): Initialize them.
4658 (record_point): Use them instead of last_point_position*.
4659 (last_undo_buffer): Change type.
4660
3187540e
JR
46612008-04-04 Jason Rumney <jasonr@gnu.org>
4662
0ce24b2d
JR
4663 * w32font.c (w32font_text_extents): Use font's ascent and descent.
4664 (recompute_cached_metrics): Don't set ascent and descent per char.
4665
3187540e 4666 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
4591d6cb 4667 (uniscribe_check_otf): Add GC protection before consing.
d0bfec76 4668 Rearrange loop for counting features.
3187540e 4669
f1a6b216
SM
46702008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
4671
4672 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
4673 buffer with byte-size of source buffer.
4674
1d8dcf63
CY
46752008-04-03 Chong Yidong <cyd@stupidchicken.com>
4676
4677 * callint.c (Fcall_interactively): Handle temporary region even
4678 when shift-select-mode is off.
4679
6b8aa22a
JR
46802008-04-03 Jason Rumney <jasonr@gnu.org>
4681
4682 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
4683
2f3cbb32
KH
46842008-04-03 Kenichi Handa <handa@m17n.org>
4685
4686 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
4687 (CATEGORY_MASK_UTF_16): Likewise.
4688 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
4689 binary file.
4690 (detect_coding): Add null-byte detection for a binary file.
4691 (detect_coding_system): Likewise.
4692
43f4f91c
JR
46932008-04-03 Jason Rumney <jasonr@gnu.org>
4694
0c1b4ae2
JR
4695 * w32uniscribe.c: New file.
4696
4697 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
4698
4699 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
4700
4701 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
4702 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
4703 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
4704 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
4705 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
4706 (Qphonetic): New symbols.
4707 (syms_of_w32font): Initialize them.
4708 (font_supported_scripts): Use them.
4709 (w32font_list_family): List all charsets.
4710 (w32font_text_extents, recompute_cached_metrics): Fix metric
4711 calculations.
4712 (w32_enumfont_pattern_entity): Make full_type a DWORD.
4713 Give opentype fonts their own format.
4714 (font_matches_spec): New arguments backend and logfont.
4715 Handle :otf spec for uniscribe backend.
4716 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
4717 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
4591d6cb 4718
0c1b4ae2
JR
4719 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
4720 font backend.
4721 (globals_of_w32fns): Initialize uniscribe font backend.
4722
fbf57abb 4723 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
0c1b4ae2
JR
4724 dependencies.
4725 (w32uniscribe.$(O)): New file to build.
4726 (FONT_OBJ): Include w32uniscribe.$(O).
4727 (LIBS): Add uniscribe libraries.
4728
43f4f91c
JR
4729 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
4730
75043a7d
CY
47312008-04-02 Chong Yidong <cyd@stupidchicken.com>
4732
4733 * callint.c (Vshift_select_mode): New var.
4734 (Finteractive): Document new ^ spec.
4735 (Fcall_interactively): Call handle-shift-selection if the ^ spec
4736 is present.
4737
4738 * keyboard.c (Vthis_command_keys_shift_translated): New var.
4739 (command_loop_1): Avoid running the direct display versions of
4740 forward-char and backward-char if shift-selection may occur.
75043a7d
CY
4741 (read_key_sequence): Set Vthis_command_keys_shift_translated if
4742 shift-translation takes place.
4743
4744 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
4745 avoid clobbering by define-minor-mode.
4746
4747 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
4748 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
4749
4750 * syntax.c (Fforward_word): Add ^ interactive spec.
4751
4752 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
4753 (Fscroll_right): Add ^ interactive spec.
4754
b2b7f29e
SM
47552008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
4756
a432c0a6
SM
4757 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
4758
994b75e0
SM
4759 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
4760
b2b7f29e
SM
4761 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
4762
e99c7806
JL
47632008-03-31 Juri Linkov <juri@jurta.org>
4764
4765 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
4766
1c9c1270
JD
47672008-03-30 Jan Djärv <jan.h.d@swipnet.se>
4768
4769 * gtkutil.c (xg_set_geometry): Fix indentation.
994b75e0 4770 (xg_resize_outer_widget): Remove.
1c9c1270
JD
4771 (x_wm_size_hint_off): Fix indentation.
4772 (xg_frame_set_char_size): Call flush_and_sync after
4773 gtk_window_resize.
4774 (x_wm_set_size_hint): Pass NULL as geometry window to
4775 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
4776 Add menu bar and tool bar height to base height.
4777 (xg_update_frame_menubar, free_frame_menubar)
4778 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
994b75e0
SM
4779 (update_frame_tool_bar, free_frame_tool_bar):
4780 Change xg_resize_outer_widget to xg_frame_set_char_size.
1c9c1270 4781
90b3fc84
MA
47822008-03-30 Michael Albinus <michael.albinus@gmx.de>
4783
4784 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
4785 (Fdbus_call_method): New parameter TIMEOUT.
4786 (dbus-send-signal): Optimize UNGCPRO call.
4787
7ae6d1d1
JL
47882008-03-29 Juri Linkov <juri@jurta.org>
4789
4790 * window.c (Fdisplay_buffer): Move call to
4791 Vsplit_window_preferred_function out of conditions that check
4792 if window is eligible for vertical splitting.
4793 When Vsplit_window_preferred_function is non-nil, call it and use
4794 its non-nil return value as window. Otherwise, continue doing
4795 vertical splitting using Fsplit_window with arg horflag=nil.
4796 (syms_of_window) <Vsplit_window_preferred_function>: Change the
4797 default value from `split-window' to nil.
4798
f03f8f2c
JL
47992008-03-29 Juri Linkov <juri@jurta.org>
4800
4801 * callint.c (Fcall_interactively): Revert 2008-03-16 change
4802 for interactive code letters 'b' and 'B'.
4803
6d557778
EZ
48042008-03-29 Eli Zaretskii <eliz@gnu.org>
4805
4806 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
4807 multibyte string.
4808
58555d81
SM
48092008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
4810
4811 * keyboard.c (pending_funcalls): New var.
4812 (timer_check): Run it.
4813 (syms_of_keyboard): Initialize it.
4814 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
4815 (Vdelete_terminal_functions): New vars.
4816 (syms_of_terminal): Initialize them.
4817 (Fdelete_terminal): Run delete-terminal-functions.
4818 * xdisp.c (safe_eval): Rewrite.
4819 (safe_call2): New fun.
4820 * frame.c (Qdelete_frame_functions): New var.
4821 (syms_of_frame): Initialize it.
4822 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
4823 * lisp.h (safe_call2, pending_funcalls): Declare.
4824
4c92f429
AS
48252008-03-28 Andreas Schwab <schwab@suse.de>
4826
4827 * indent.c (Fmove_to_column): Move declaration before statements.
4828
a1567c45
SM
48292008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
4830
2806a183
SM
4831 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
4832 (struct frame): Use bit fields for boolean vars.
4833
eef60308
SM
4834 * process.c (server_accept_connection): Simplify naming.
4835 (emacs_get_tty_pgrp): Use SDATA.
4836
a1567c45
SM
4837 * coding.c (decode_coding_object): Fix last change.
4838
30076589
JR
48392008-03-27 Jason Rumney <jasonr@gnu.org>
4840
4841 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
4842
880820fe
KH
48432008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
4844
4845 * charset.c (Fdefine_charset_internal): Change the way of
4846 registering charsets in Vcharset_order_list.
4847 (syms_of_charset): Make the charset `eight-bit' supplementary.
4848
3cf8cdfb
CY
48492008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
4850
4851 * regex.c (EXTEND_BUFFER): Change order of pointer addition
4852 operations, to avoid having the difference between pointers
4853 overflow.
4854
ef6f5c0e
SM
48552008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
4856
80e3db56
SM
4857 * indent.c (check_display_width): New fun.
4858 (scan_for_column): Use it.
4859
c397dc7a
SM
4860 * data.c (syms_of_data): Mark most-positive-fixnum and
4861 most-negative-fixnum as constants.
4862
bf6b4d58
SM
4863 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
4864
ef6f5c0e
SM
4865 * indent.c (scan_for_column): Extract from current_column_1.
4866 Merge with the same code from Fmove_to_column.
4867 (current_column_1, Fmove_to_column): Use it.
4868
72d5003d
SM
48692008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
4870
12270607
SM
4871 * keymap.c (map_keymap_internal): New fun.
4872 (map_keymap): Use it.
4873 (Fmap_keymap_internal): New fun.
4874 (Fmap_keymap): Remove left-out test from before make_save_value.
4875
a10cca6c
SM
4876 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
4877
d7b10f4c
SM
4878 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
4879 Use XCAR/XCDR.
4880
5431bd6a
SM
4881 * process.h (struct Lisp_Process): Remove filter_multibyte.
4882 * process.c (QCfilter_multibyte): Remove.
4883 (setup_process_coding_systems): Don't use filter_multibyte.
4884 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
4885 (read_process_output): Don't adjust multibyteness to filter_multibyte.
4886 (Fset_process_filter_multibyte): Change the coding-system to
4887 approximate the previous behavior.
4888 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
4889 coding-system.
4890
72d5003d
SM
4891 * coding.c (decode_coding_object): When not decoding into a buffer,
4892 obey the coding system's preference of (uni|multi)byte.
4893
438eba3c
SM
48942008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
4895
4896 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
4897 every char is changed and has a different byte-length.
4898 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
4899 Fix int -> EMACS_INT.
4900
9ec3aaef 49012008-03-23 David Hansen <david.hansen@gmx.net>
a8e72f4f 4902
438eba3c 4903 * dbusbind.c (xd_read_message): Remove extra copying of message
a8e72f4f
MA
4904 strings. Check for NULL `interface' or `member'.
4905
b07103dc
EZ
49062008-03-22 Eli Zaretskii <eliz@gnu.org>
4907
4908 * w32.c (readdir): If FindFirstFile/FindNextFile return in
4909 cFileName a file name that includes `?' characters, use the 8+3
4910 alias in cAlternateFileName instead.
4911
5371d722
SM
49122008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
4913
4914 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
4915
6ba7f443
SM
49162008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
4917
4918 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
4919 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
4920 work on current_buffer only instead (that was already the case
4921 for some of the code anyway).
4922 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
4923 (temp_set_point, temp_set_point_both): Use EMACS_INT.
4924 (SET_PT, SET_PT_BOTH): Adjust.
4925 * intervals.h (set_point, temp_set_point, set_point_both)
4926 (temp_set_point_both): Remove redundant declarations.
4927
bf1c0f27
SM
49282008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
4929
4930 * fileio.c (Finsert_file_contents):
4931 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
4932 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
4933 when buffer != current_buffer anyway.
4934
acab783e
AS
49352008-03-20 Andreas Schwab <schwab@suse.de>
4936
4937 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
4938 as default.
4939
d148e14d
JR
49402008-03-19 Jason Rumney <jasonr@gnu.org>
4941
4942 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
4943 (syms_of_w32fns): Initialize them.
4944 (HOURGLASS_ID): New constant.
4945 (x_window_to_frame): Don't check hourglass_window.
4946 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
4947 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
4948 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
4949 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
4950 Only change the cursor if hourglass is not active.
4951 (Fx_create_frame): Initialize frame's current_cursor.
4952 (hourglass_atimer): Remove.
4953 (hourglass_started): New function.
4954 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
4955 (show_hourglass): Adapt to w32, changing argument to frame.
4956
4957 * w32term.h (struct w32_output): Remove hourglass_window.
4958 Add current_cursor.
4959
4960 * eval.c (call_debugger, Fsignal):
4961 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
4962 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
4963 (Fexecute_extended_command, cancel_hourglass_unwind):
4964 * minibuf.c (read_minibuf):
4965 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
63558020 4966
a5c54077
JB
49672008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
4968
4969 * window.c (run_funs): New fun.
4970 (run_window_configuration_change_hook): Use it to run the buffer-local
4971 and the global part of the hook.
4972
4973 * xdisp.c (format_mode_line_unwind_data): Add window argument.
4974 (unwind_format_mode_line): Restore selected window.
4975 (x_consider_frame_title, Fformat_mode_line): Set selected window.
4976
f9f3238f
SM
49772008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4978
253c3c82
SM
4979 * editfns.c (Fchar_equal): Check they are valid characters.
4980
f9f3238f
SM
4981 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
4982
065a118d
AS
49832008-03-17 Andreas Schwab <schwab@suse.de>
4984
0b8be006
AS
4985 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
4986 against a charset.
4987
065a118d
AS
4988 * lisp.h (Fbuffer_list): Declare.
4989
880820fe 49902008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d3b2a6da
JD
4991
4992 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
4993 handlebox_widget is != 0.
4994
6206d6c2
JL
49952008-03-16 Juri Linkov <juri@jurta.org>
4996
4997 * callint.c (Fcall_interactively): For interactive code letters
4998 'b' and 'B' put the buffer list into the list of default "future"
4999 values of the minibuffer.
5000
f5020181
AS
50012008-03-16 Andreas Schwab <schwab@suse.de>
5002
a864f6d6
AS
5003 * keyboard.c (read_key_sequence): Fix downcasing of letters with
5004 modifiers.
5005
f5020181
AS
5006 * regex.c (re_match_2_internal): Correct matching of a charset
5007 against latin-1 characters.
5008
03f244e2
KH
50092008-03-16 Kenichi Handa <handa@m17n.org>
5010
5011 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
5012 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
f9f3238f
SM
5013 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
5014 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
03f244e2
KH
5015 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
5016 CHAR_STRING_ADVANCE.
5017 (produce_chars): Fix for the case that the source and the
5018 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
5019 instead of CHAR_STRING_ADVANCE.
5020 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
5021 STRING_CHAR_ADVANCE.
5022
0e2501ed
AS
50232008-03-15 Andreas Schwab <schwab@suse.de>
5024
5025 * regex.c (re_match_2_internal): Correct matching of eight bit
5026 characters in unibyte strings.
5027
7723e095
MR
50282008-03-15 Martin Rudalics <rudalics@gmx.at>
5029
5030 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
5031 at end of range when it coincides with the end of the buffer.
5032
f507f365
EZ
50332008-03-14 Eli Zaretskii <eliz@gnu.org>
5034
294f1153
EZ
5035 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
5036
f507f365
EZ
5037 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
5038
64f0809d
JR
50392008-03-14 Jason Rumney <jasonr@gnu.org>
5040
956ae531
JR
5041 * editfns.c (initial_tz): New variable.
5042 (syms_of_editfns): Initialize it.
5043 (Fset_time_zone_rule): Set it when first called.
5044 Use it when TZSTRING is nil.
5045
64f0809d
JR
5046 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
5047 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
5048 (monitor_from_point_fn, get_monitor_info_fn): New globals.
5049 (globals_of_w32fns): Initialize them.
5050 (compute_tip_xy): Use them to position tooltips.
5051
21a4ff8e
GM
50522008-03-14 Glenn Morris <rgm@gnu.org>
5053
5054 * emacs.c (main): Revert previous change.
5055 (standard_args): Revert -internal-script back to -scriptload,
5056 and remove the long-option form.
5057
a09a5b5b
GM
50582008-03-13 Glenn Morris <rgm@gnu.org>
5059
5060 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
5061 Remove option -enable-font-backend.
5062
1c55ebd1
SM
50632008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
5064
5065 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
5066
880820fe 50672008-03-11 Jan Djärv <jan.h.d@swipnet.se>
c523e161
JD
5068
5069 * xterm.c (x_connection_closed): For GTK: If this is the last
5070 terminal just exit without closing the display.
5071
7145be81
JR
50722008-03-11 Jason Rumney <jasonr@gnu.org>
5073
5074 * w32font.c (w32font_full_name): Use floor to round.
5075
e6201af3 50762008-03-10 dhruva <dhruvakm@gmail.com> (tiny change)
ce9033f8
JD
5077
5078 * sound.c (alsa_configure): Declare vol at beginning of block.
5079
e6201af3 5080 * fontset.c (Ffontset_info): Remove extra semicolon.
ce9033f8 5081
390b81fa 50822008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
acd37560 5083
56388398
MB
5084 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
5085 size of resulting string.
af0ad939 5086
390b81fa 50872008-03-10 Jason Rumney <jasonr@gnu.org>
acd37560 5088
56388398 5089 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
acd37560 5090
390b81fa 50912008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
acd37560 5092
56388398
MB
5093 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
5094 Don't pretend as if characters with display property haven't been
5095 consumed for string-replacing-string case.
acd37560 5096
223ed6db
KS
50972008-03-08 Kim F. Storm <storm@cua.dk>
5098
5099 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
5100 (get_next_display_element, next_element_from_string)
5101 (next_element_from_ellipsis, next_element_from_buffer): Use it.
5102
28545f7c
AS
51032008-03-08 Andreas Schwab <schwab@suse.de>
5104
5105 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
5106
c960bff8
JR
51072008-03-06 Jason Rumney <jasonr@gnu.org>
5108
290afd83
JB
5109 * w32font.c (w32_registry): Take font_type argument. Use ANSI
5110 when charset not specified. Only translate ANSI to unicode when
c960bff8
JR
5111 font_type is truetype.
5112 (w32font_coverage_ok): New function.
5113 (add_font_entity_to_list): Use it to filter unsuitable fonts.
5114
87b8ce92
KH
51152008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
5116
5117 * lread.c (Fread_char): Resolve modifiers.
5118 (Fread_char_exclusive): Likewise.
5119
5120 * character.c (char_resolve_modifier_mask): New function.
5121 (char_string): Use char_resolve_modifier_mask.
5122 (Fchar_resolve_modifiers): New function.
5123 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
5124 function.
5125
cefd56f6
JR
51262008-03-04 Jason Rumney <jasonr@gnu.org>
5127
5128 * makefile.w32-in: Always include w32font.c in the build.
5129 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
5130
03bd3c1f
AS
51312008-03-04 Andreas Schwab <schwab@suse.de>
5132
5133 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
5134 (versionclean): Likewise.
5135
6f69e89b
JB
51362008-03-04 Juanma Barranquero <lekktu@gmail.com>
5137
5138 * .cvsignore: Add oo.
5139
f4a3cc44
AS
51402008-03-03 Andreas Schwab <schwab@suse.de>
5141
5142 * coding.c (decode_coding_object): Inhibit gap shrinking while
5143 decoding in place.
5144
73f838ad
DN
51452008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
5146
5147 * w32term.c: Remove unused include "gnu.h".
6f69e89b 5148 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
73f838ad
DN
5149
5150 * gnu.h: Rename to ...
5151 * emacs-icon.h: ... this.
5152 * xterm.c: Use emacs-icon.h instead of gnu.h.
5153 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
5154
ce9c1f06
JB
51552008-03-03 Juanma Barranquero <lekktu@gmail.com>
5156
5157 * w32font.c: Include math.h.
5158
34fd2d28
JR
51592008-03-03 Jason Rumney <jasonr@gnu.org>
5160
54efdcd1
JR
5161 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
5162 Compute options separately.
5163 (w32font_open_internal): Set glyph_idx before caching metrics.
5164
ce9c1f06
JB
5165 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
5166 Define if system headers don't.
5167 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
34fd2d28
JR
5168 (w32font_encode_char): Don't declare here.
5169
5170 * w32font.c (Quniscribe, QCformat): New symbols.
5171 (syms_of_w32font): Define them.
5172 (w32font_has_char): Indicate uncertainty.
ce9c1f06 5173 (w32font_encode_char): Encode as glyph point. Make static.
34fd2d28 5174 (recompute_cached_metrics): New function.
ce9c1f06
JB
5175 (w32font_open_internal): Use it. Set font to use glyph points
5176 initially. Set format based on type of font.
34fd2d28 5177 (w32font_text_extents, w32font_draw): Optionally use glyph points.
ce9c1f06
JB
5178 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
5179 on it. Set format based on information available here.
34fd2d28
JR
5180 (add_font_entity_to_list): Identify backend based on opentype_only.
5181
14daee73
AS
51822008-03-02 Andreas Schwab <schwab@suse.de>
5183
f907fb2e
AS
5184 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
5185
ce9c1f06
JB
5186 * coding.c (decode_coding_big5, produce_chars):
5187 Fix typos in last change.
14daee73 5188
c9cc6462
DN
51892008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
5190
5191 * gnu.h: New icon.
5192
119852e7
KH
51932008-03-02 Kenichi Handa <handa@m17n.org>
5194
5195 * coding.c (decode_coding_utf_8): When eol-type of CODING is
5196 `dos', don't decode '\r' if that is the last in the source.
5197 (decode_coding_utf_16, decode_coding_emacs_mule)
5198 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5199 (decode_coding_raw_text, decode_coding_charset): Likewise.
5200 (produce_chars): Don't decode EOL here. Use EMACS_INT.
5201
a823468b
JR
52022008-03-01 Jason Rumney <jasonr@gnu.org>
5203
5204 * w32font.c (w32font_full_name): Report point size for scalable fonts.
5205
4ddc7e30
KS
52062008-03-01 Kim F. Storm <storm@cua.dk>
5207
5208 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
5209
67997c79
JR
52102008-03-01 Jason Rumney <jasonr@gnu.org>
5211
5212 * w32font.c (w32font_full_name): New function.
5213 (w32font_open_internal): Use it.
5214
3f4e9c35
KS
52152008-03-01 Kim F. Storm <storm@cua.dk>
5216
5217 * dispnew.c (line_draw_cost): Fix invalid glyph check.
5218
f3b9e479
JR
52192008-03-01 Jason Rumney <jasonr@gnu.org>
5220
5221 * font.c (font_unparse_fcname): Increase len when style is a symbol.
5222
880820fe 52232008-03-01 Jan Djärv <jan.h.d@swipnet.se>
7ee480ce
JD
5224
5225 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
5226 xg_frame_resized when the event is for the edit widget.
5227
5228 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
5229
5230 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
5231 set_char_size.
5232 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
5233 operations on widgets here. Just set frame size if needed.
5234 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
5235 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
5236 (x_wm_set_size_hint): Set size hints on the edit widget only, not
5237 the whole frame.
5238 (xg_create_tool_bar): Move attachement of the tool bar to
5239 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
5240 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
5241
6c8acaa1
JR
52422008-03-01 Jason Rumney <jasonr@gnu.org>
5243
5244 * w32fns.c (w32_msg_pump): Disable debug code.
5245
51fb064b 52462008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
03eb5fab 5247
51fb064b 5248 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
cb681b34 5249
60221a33
CY
52502008-02-29 Chong Yidong <cyd@stupidchicken.com>
5251
5252 * xdisp.c (next_overlay_string): Don't set
5253 overlay_strings_at_end_processed_p if we're currently reading from
5254 a display string.
5255
10cbc34f
SM
52562008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
5257
5258 * xdisp.c (get_overlay_strings_1): Fix typo.
5259
73c0054e
CY
52602008-02-29 Chong Yidong <cyd@stupidchicken.com>
5261
5262 * xdisp.c (get_overlay_strings_1): Add missing argument type.
5263
ec1c4354
KH
52642008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
5265
55082642
KH
5266 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
5267
ec1c4354
KH
5268 * xdisp.c (display_mode_element): Cancel the previous change.
5269 (decode_mode_spec): Likewise.
ee548a94
KH
5270 (handle_auto_composed_prop): Don't make composition if it->string
5271 is a string.
ec1c4354 5272
b6d898a2
KS
52732008-02-27 Kim F. Storm <storm@cua.dk>
5274
5275 * lisp.h (GLYPH): Change type from int to struct with separate char
5276 and face_id members.
5277 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
5278 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
5279 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
5280 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
5281 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
5282 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
5283 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
5284 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
5285 handle new Lisp glyph code encoding, either an integer or a cons.
5286
5287 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
5288 (GLYPH_ALIAS): Delete.
5289 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
5290 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
5291 (GLYPH_FROM_CHAR): Replace macro by ...
5292 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
5293
5294 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
5295 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
5296 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
5297 (GLYPH_INVALID_P): New macro.
5298 (spec_glyph_lookup_face): Update prototype.
5299
5300 * dispnew.c (line_draw_cost): Adapt to new glyph type.
5301 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
5302 new glyph code encoding.
5303 (spec_glyph_lookup_face): No return value; update passed glyph instead.
5304 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
5305
5306 * xdisp.c (get_next_display_element, next_element_from_display_vector):
5307 Adapt to new glyph type and new glyph code encoding.
5308
5309 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
5310
5311 * indent.c (current_column, current_column_1, Fmove_to_column)
5312 (compute_motion): Adapt to new glyph code encoding.
5313
5314 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
5315
af2080a2
CY
53162008-02-27 Chong Yidong <cyd@stupidchicken.com>
5317
5318 * process.c (wait_reading_process_output): Check for window
5319 changes caused by timers.
880820fe 5320 Suggested by Johan Bockgård.
af2080a2 5321
253ed25e
GM
53222008-02-27 Glenn Morris <rgm@gnu.org>
5323
5324 * emacs.c (USAGE1): Add `--disable-font-backend'.
5325
18a9f8d9
SM
53262008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
5327
5328 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
5329 is made to the buffer.
5330
0f8b27ea
SM
53312008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
5332
5333 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
5334 (face_at_string_position):
5335 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
5336 (face_at_string_position):
5337 * xdisp.c (display_string, next_overlay_change):
5338 * buffer.h (overlays_at):
5339 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
5340 Update callers.
5341
4e7c53ca
CY
53422008-02-26 Chong Yidong <cyd@stupidchicken.com>
5343
5344 * editfns.c (Fformat): Doc fix.
5345
51c01100
JB
53462008-02-26 Juanma Barranquero <lekktu@gmail.com>
5347
5348 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
5349 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
5350 (Ffont_otf_alternates, Fquery_font): Doc fixes.
5351
13cda5f9
SM
53522008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
5353
5354 * buffer.c (Fbuffer_swap_text): New function.
5355 (syms_of_buffer): Defsubr it.
5356
8018d430
CY
53572008-02-25 Chong Yidong <cyd@stupidchicken.com>
5358
5359 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
5360
9bde1a21
JR
53612008-02-25 Jason Rumney <jasonr@gnu.org>
5362
5363 * w32font.c (w32font_draw): Draw one character at a time when padding.
5364
eeca6f6f
SM
53652008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
5366
5367 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
5368 Handle a nil arg. Use run_window_configuration_change_hook.
5369 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
5370 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
5371 Use run_window_configuration_change_hook.
5372
ec1c4354
KH
53732008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
5374
5375 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
5376 1-pixel width.
5377
ae185452
KH
53782008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
5379
5380 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
5381 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
5382 if the glyph in the font is zero pixel with.
5383
5384 * dispextern.h (struct glyph_string): New member padding_p.
5385
5386 * w32font.c (w32font_draw): Pay attention to s->padding_p.
5387
5388 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
5389
5390 * xfont.c (xfont_draw): Pay attention to s->padding_p.
5391
5392 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
5393
eeca6f6f 5394 * font.c: If the font driver doesn't have `shape' function, return Qnil.
ae185452 5395
ffe832ea 53962008-02-25 Jason Rumney <jasonr@gnu.org>
c9029fe5 5397
ffe832ea 5398 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
16782258 5399
06045130
SM
54002008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
5401
5402 Allow fine-grained image-cache flushing.
5403 * dispextern.h (struct image): Add `dependencies' field.
5404 (clear_image_caches): Change arg to Lisp_Object.
5405 * image.c (make_image): Initialize `dependencies' field.
5406 (clear_image_cache): Change arg to allow fine-grained flushing.
5407 Perform the flush even if image-cache-eviction-delay is nil.
5408 (clear_image_caches): Change arg to Lisp_Object.
5409 (Fclear_image_cache): Expand meaning of the argument.
5410 (mark_image): Mark `dependencies' field.
5411 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
5412 (lface_hash): Use XHASH rather than XFASTINT.
5413 (face_at_buffer_position): Fix int -> EMACS_INT position.
5414 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
5415 (select_frame_for_redisplay): Remove code duplication.
5416 (redisplay_internal): Adapt arg to call to clear_image_caches.
5417
9d2818d6
DN
54182008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
5419
5420 * s/vms4-0.h:
5421 * s/vms4-2.h:
5422 * s/vms4-4.h:
5423 * s/vms5-5.h: Remove, unused.
5424
5425 * s/irix5-2.h:
5426 * s/irix6-0.h:
5427 * s/riscos5.h:
5428 * s/mach-bsd4-3.h:
2a2e8de7 5429 * m/mips4.h: Remove files for obsolete systems.
9d2818d6
DN
5430
5431 * Makefile.in:
5432 * filelock.c:
5433 * unexmips.c:
5434 * m/hp9000s300.h:
5435 * m/iris4d.h:
5436 * s/aix3-1.h:
5437 * s/hpux.h:
5438 * s/msdos.h:
5439 * s/usg5-0.h:
5440 * s/usg5-2-2.h:
5441 * s/usg5-2.h:
5442 * s/usg5-3.h: Remove references to obsolete variables.
5443
5444 * s/irix5-0.h: Remove, move all the contents ...
5445 * s/irix6-5.h: ... here. Simplify.
5446 * config.in: Regenerate.
5447
2a36efcf
JR
54482008-02-24 Jason Rumney <jasonr@gnu.org>
5449
c5ad7a3d 5450 * w32term.c (x_draw_glyph_string_background): Clear the background
2face669
JR
5451 manually when cleartype is in use.
5452 (x_draw_glyph_string_foreground): Draw text transparently when
5453 cleartype is in use.
5454
2a36efcf
JR
5455 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
5456 a font into it unless we have to.
5457
b03f96dc 54582008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
92a8ce63 5459
b03f96dc
MB
5460 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
5461 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
92a8ce63 5462
b03f96dc 54632008-02-18 Jason Rumney <jasonr@gnu.org>
92a8ce63 5464
b03f96dc 5465 * w32fns.c (Fw32_shell_execute): Encode parameters.
92a8ce63 5466
b03f96dc 54672008-02-09 Eli Zaretskii <eliz@gnu.org>
20f1ef2e 5468
b03f96dc 5469 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
32d0a9dc 5470
b03f96dc 54712008-02-05 Juanma Barranquero <lekktu@gmail.com>
20f1ef2e 5472
b03f96dc 5473 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
77d1daf2 5474
d5958163
CY
54752008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
5476
5477 * xterm.c (x_set_offset): Don't change the gravity if
5478 CHANGE_GRAVITY is -1.
5479
9997701e
CY
54802008-02-23 Chong Yidong <cyd@stupidchicken.com>
5481
5482 * fileio.c (auto_save_error_occurred): New var.
5483 (auto_save_error): Set it.
5484 (Fdo_auto_save): Don't overwrite the error message if an auto-save
5485 error occurred.
5486
9d95a291
EZ
54872008-02-23 Eli Zaretskii <eliz@gnu.org>
5488
5489 * w32.c (globals_of_w32): Add initializations for
5490 g_b_init_get_sid_sub_authority and
5491 g_b_init_get_sid_sub_authority_count.
5492
43d1af23
SM
54932008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
5494
43a1d19b
SM
5495 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
5496 (font_parse_xlfd): Use them for sanity check.
608c3307 5497 (Finternal_set_font_style_table): Make sure the table is bijective.
43a1d19b 5498
354884c4
SM
5499 Consolidate the image_cache to the terminal struct.
5500 * termhooks.h (P_): Remove redundant def.
5501 (struct terminal): New field `image_cache'.
5502 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
5503 of FRAME_X_IMAGE_CACHE.
5504 * xterm.h (struct x_display_info): Remove image_cache field.
5505 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
5506 * w32term.h (struct w32_display_info): Remove image_cache field.
5507 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
5508 * macterm.h (struct mac_display_info): Remove image_cache field.
5509 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
5510 * xterm.c (x_term_init):
5511 * w32term.c (w32_term_init):
5512 * macterm.c (mac_term_init): Set the image_cache in the terminal.
5513 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
5514 Remove declarations.
5515 (clear_image_caches, mark_image_cache): New declarations.
5516 * xfaces.c (clear_face_cache):
5517 * xdisp.c (redisplay_internal): Use clear_image_caches.
5518 * image.c (clear_image_cache): Don't check that a frame is on
5519 a window-system before checking if it shares the same cache.
5520 (clear_image_caches): New function.
5521 (Fclear_image_cache): Use it.
5522 (mark_image): Move from allo.c.
5523 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
5524 * alloc.c (mark_image, mark_image_cache): Move to image.c.
5525 (mark_object): Don't call mark_image_cache for frames.
5526 (mark_terminals): Call mark_image_cache.
5527
c2e42690
SM
5528 * lisp.h (Fdelete_terminal): Declare.
5529
43d1af23
SM
5530 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
5531 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
5532 wrong_type_argument.
5533
cc8d1311
KH
55342008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
5535
5536 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
4a4bdfc7 5537 malayalam.el, and tamil.el. Add sinhala.el.
cc8d1311 5538
6bd92640
SM
55392008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
5540
5541 * xterm.c (x_connection_closed): Consolidate identical tests.
5542 (x_delete_terminal): Don't crash if called via x_connection_closed.
5543
a73b5627
KH
55442008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
5545
5546 * xdisp.c (decode_mode_spec): New arg string.
6bd92640 5547 (display_mode_element): Adjust for the above change.
a73b5627 5548
1b511542
SM
55492008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
5550
5551 * callint.c (Fcall_interactively): Use AREF.
5552
81aefea4
SM
55532008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
5554
5555 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
5556
880820fe 55572008-02-18 Jan Djärv <jan.h.d@swipnet.se>
2d7117fe
JD
5558
5559 * xfns.c (Fx_show_tip): Set string to " " if empty.
5560
a2b84f35
DN
55612008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
5562
5563 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
5564 with Qt.
5565
43c0454d
KH
55662008-02-17 Kenichi Handa <handa@m17n.org>
5567
5568 * ftfont.c (ftfont_shape): Return Lispy number.
5569
5570 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
5571 for GCs.
5572 (Finternal_set_font_selection_order): Call font_update_sort_order
5573 only when enable_font_backend is set.
5574 (realize_x_face): Set face->font_info to that of default face only
5575 when enable_font_backend is set.
5576
5577 * xdisp.c (handle_composition_prop): Set it->c to the fist
5578 characte of the composed region.
5579 (fill_composite_glyph_string): Set base_face->font_info to
5580 s->font_info. Get a face for ascii from base_face->ascii_face.
5581 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
5582 with a face already decided.
5583 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
5584 non-negative.
978bef9a
JB
5585 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
5586 call font_prepare_composition unconditionally.
43c0454d 5587
978bef9a 5588 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
43c0454d
KH
5589
5590 * xterm.h (struct x_display_info): New member font.
5591
5592 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
5593 (x_set_mouse_face_gc, x_new_font): Likewise.
5594 (x_term_init): Setup display_info->font.
5595 (x_delete_terminal): Free display_info->font.
5596
5597 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
5598
5599 * ftxfont.c (ftxfont_default_fid): Delete it.
5600 (ftxfont_open): Set xfont->fid to 0.
978bef9a 5601 (ftxfont_end_for_frame): Clear data specific to the frame and the
43c0454d
KH
5602 font-driver.
5603
5604 * xftfont.c (xftfont_default_fid): Delete it.
5605 (xftfont_open): Set xfont->fid to 0.
5606
5607 * fontset.c (FONTSET_OBJLIST): New macro.
5608 (fontset_find_font): Update font-object list of the fontset.
5609 (free_realized_fontset): New function.
5610 (free_face_fontset): Call free_realized_fontset.
5611 (Ffont_info): Call font_close_object only when enable_font_backend
5612 is set.
5613
5614 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
5615 [HAVE_NTGUI]: Include w32term.h.
5616 [MAC_OS]: Include macterm.ch.
5617 (font_otf_ValueRecord): Use make_number.
5618 (font_finish_cache): Fix handling of reference count.
5619 (font_clear_cache): Update num_fonts.
5620 (font_open_entity): Update smallest_char_width and
5621 smallest_font_height of the frame.
5622 (font_close_object): Update num_fonts.
5623 (Fclear_font_cache): Fix finding the target cache data.
5624
be617367
GM
56252008-02-16 Glenn Morris <rgm@gnu.org>
5626
5627 * fontset.c (Finternal_char_font): Fix compilation warning.
5628
2930d117
EZ
56292008-02-16 Eli Zaretskii <eliz@gnu.org>
5630
634d3003
EZ
5631 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
5632 instead of char arrays. Enlarge the size of array passed to
5633 get_token_information.
5634
2930d117
EZ
5635 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
5636 warnings.
5637
79214046
DN
56382008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
5639
5640 * .gdbinit: Don't set `args', it breaks gdb --args.
5641
7f5d2c72
SM
56422008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
5643
5644 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
5645 within a narrowed buffer.
5646
6edacc43
KH
56472008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
5648
b270d6af
JB
5649 * coding.c (decode_coding_object, encode_coding_object):
5650 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
6edacc43 5651
174105f7
SM
56522008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
5653
b270d6af
JB
5654 * coding.c (coding_set_destination): Use BEG_BYTE rather than
5655 hardcoding 1.
13818c30
SM
5656 (detect_coding_system):
5657 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
5658 (string_char_to_byte, string_byte_to_char, insert_from_gap):
5659 * insdel.c (insert_from_gap):
5660 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
5661 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
5662 (string_to_multibyte):
5663 * character.c (chars_in_text, multibyte_chars_in_text):
5664 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
5665
f1c99628
SM
5666 * character.h (FETCH_STRING_CHAR_ADVANCE)
5667 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
5668 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
5669 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
5670
7927d8e3
SM
5671 * casefiddle.c (casify_region): Only call after-change and composition
5672 functions on the part of the region that was changed.
5673
adf6a429 5674 * keyboard.c (read_avail_input):
174105f7
SM
5675 * frame.c (Fdelete_frame): Call Fdelete_terminal.
5676
3ee24aec
SM
56772008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
5678
5679 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
5680 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
5681
4ed4b975
JB
56822008-02-11 Juanma Barranquero <lekktu@gmail.com>
5683
5684 * w32menu.c (push_submenu_start, push_submenu_end)
5685 (push_left_right_boundary, push_menu_pane, push_menu_item):
5686 * keyboard.c (read_key_sequence): Don't pass args with side effects
5687 to AREF, it fails when compiling with -DENABLE_CHECKING.
5688
79e3bfb8
KH
56892008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
5690
4ed4b975
JB
5691 * Makefile.in (${lispsource}international/charprop.el):
5692 Delete this target.
6e76043f 5693
79e3bfb8
KH
5694 * search.c (boyer_moore): Fix incorrect synching of the trunk and
5695 emacs-unicode-2.
5696
5b8de9c5
SM
56972008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
5698
5699 * terminal.c (Fdelete_terminal): Clean up the `force' path.
5700
eac1939a
SM
57012008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
5702
c53956fe
SM
5703 * frame.c (Qnoelisp): New symbol.
5704 (syms_of_frame): Initialize it.
5705 (Fdelete_frame): Use it to distinguish a mere `force' passed from
5706 someharmles Elisp code, from a strong `force' from x_connection_closed.
5707 * frame.h (Qnoelisp): Declare.
5708 * xterm.c (x_connection_closed): Pass `noelisp'.
5709
eac1939a
SM
5710 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
5711 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
5712 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
5713 rather than `int' for the type of `type'.
5714
13f6772b
DN
57152008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
5716
5717 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
5718
5719 * Makefile.in (GNUC): Remove support for gcc-1.x.
5720
e8455367
RS
57212008-02-10 Richard Stallman <rms@gnu.org>
5722
5723 * lisp.h (ASET): Use AREF, not ASLOT.
5724
4b75ffab
SM
57252008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
5726
5727 * lisp.h (ASET): Check bounds.
5728
d224e8c2
GM
57292008-02-10 Glenn Morris <rgm@gnu.org>
5730
5731 * buffer.c (mode-name): Doc fix.
5732
4624371d
DN
57332008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
5734
290afd83
JB
5735 * Makefile.in:
5736 * emacs.c:
5737 * gmalloc.c:
5738 * keyboard.c:
5739 * lisp.h:
5740 * m/ibm370aix.h:
5741 * process.c:
5742 * regex.c:
5743 * s/hpux.h:
5744 * sysdep.c:
5745 * sysselect.h:
5746 * systty.h:
5747 * unexec.c:
5748 * w32term.c:
5749 * xsmfns.c:
5750 * xterm.c: Remove code that deals with obsolete variables.
4624371d
DN
5751
5752 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
5753
5754 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
5755 nothing else needs it anymore.
5756
274ec34b
EZ
57572008-02-09 Eli Zaretskii <eliz@gnu.org>
5758
5759 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
5760 instead of unibyte_char_to_multibyte.
5761
deeaffe1
DN
57622008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
5763
5764 * s/gnu-linux.h: Remove commented out code.
5765
4ed4b975 5766 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
deeaffe1
DN
5767
5768 * Makefile.in: Update what RMS says about using autoconf.
4ed4b975 5769 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
c3f9fba8 5770 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
deeaffe1
DN
5771 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
5772 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
5773
68b587a6
SM
57742008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
5775
9141ca5e
SM
5776 * keymap.c (Fkey_description): Move side effect outside of macro call.
5777
dfae5f9a 5778 * xfaces.c (Finternal_make_lisp_face):
b1ebcadb
SM
5779 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
5780
ff7a2223
SM
5781 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
5782 (syms_of_fontset): Use ASET.
5783
68b587a6
SM
5784 * fns.c (concat): Move side effect outside of macro call.
5785 (hash_clear): Use ASET.
5786
a31787b1
RS
57872008-02-08 Richard Stallman <rms@gnu.org>
5788
5789 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
5790 If FORCE, and frame has a surrogate minibuffer for another frame,
5791 delete the other frame first.
5792
987be29b 57932008-02-07 Timo Savola <timo.savola@iki.fi>
1540a61a
JD
5794
5795 * xterm.c (x_detect_focus_change): Handle embed client message.
5796 (handle_one_xevent): Ditto.
5797 (handle_one_xevent): If embedded and we get a button press/release,
5798 request focus.
5799 (xembed_set_info, xembed_send_message): New functions.
5800 (x_make_frame_visible): Call xembed_set_info if embedded.
5801 (x_make_frame_invisible): Call xembed_set_info if embedded.
5802 (x_term_init): Initialize Xatom_XEMBED.
5803 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
5804 (x_iconify_frame): Ditto.
5805
5806 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
5807 (enum xembed_info, enum xerm srmbed_message, enum xembed_focus)
5808 (enum xembed_modifier, enum xembed_accelerator): New.
5809 (xembed_set_info, xembed_send_message): Declare.
5810 (FRAME_X_EMBEDDED_P): New.
5811
5812 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
5813 gtk_plug_new.
5814
5815 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
5816 window ID of a frame.
5817 (x_window): Reparent frame if embedded.
5818 (Fx_create_frame): Don't set border width if embedded.
5819
1f204af3 5820 * emacs.c (USAGE3): Add --parent-id.
1540a61a
JD
5821 (standard_args): Ditto.
5822
880820fe 58232008-02-07 Jan Djärv <jan.h.d@swipnet.se>
f937a7db
JD
5824
5825 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
5826
92413ef3
JD
58272008-02-07 Jim Meyering <meyering@redhat.com>
5828
6f69e89b 5829 Use "do...while (0)", not "if (1)...else" in macro definitions.
987be29b
RF
5830 The latter provokes a warning from gcc about the empty else, when
5831 followed by ";". Also, without that trailing semicolon, it would
5832 silently swallow up any following statement.
c3f9fba8 5833 * syntax.h (SETUP_SYNTAX_TABLE)
987be29b
RF
5834 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
5835 * buffer.h (DECODE_POSITION): Likewise.
5836 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
5837 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
5838 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
5839 (FETCH_CHAR_ADVANCE): Likewise.
5840 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
92413ef3 5841
03fa5713
GM
58422008-02-07 Jim Meyering <meyering@redhat.com>
5843
5844 * lread.c [lint]: Don't include <sys/inode.h>.
5845
3ae565b3
SM
58462008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
5847
5848 * xselect.c (x_handle_dnd_message):
5849 * xmenu.c (digest_single_submenu, xmenu_show):
5850 * xdisp.c (with_echo_area_buffer_unwind_data)
5851 (format_mode_line_unwind_data, unwind_format_mode_line)
5852 (display_menu_bar):
5853 * eval.c (Ffetch_bytecode):
5854 * doc.c (store_function_docstring):
5855 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
5856 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
5857 * buffer.c (add_overlay_mod_hooklist): Use ASET.
5858
146b6e55
KH
58592008-02-07 Kenichi Handa <handa@m17n.org>
5860
5861 * ftxfont.c (ftxfont_open): Don't set
5862 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
5863
5864 * ftfont.c (ftfont_open): Fix previous change.
5865
46a923ac
JR
58662008-02-06 Jason Rumney <jasonr@gnu.org>
5867
5868 * w32font.c (w32font_text_extents): Fill in lbearing metric.
5869 Use cached metrics for ASCII characters.
3ae565b3
SM
5870 (w32font_open_internal): Don't set font's owning_frame.
5871 Cache metrics for ASCII characters.
46a923ac
JR
5872
5873 * w32font.h (struct w32font_info): Add ascii_metrics.
5874 Remove owning_frame.
5875
da7d7c21
KH
58762008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
5877
5878 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
5879 to negative value.
5880
5881 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
5882
3ae565b3 5883 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
da7d7c21
KH
5884
5885 * charset.c (syms_of_charset): Set QCtest and Qeq.
5886
c62c8ddb
SM
58872008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
5888
ca319910
SM
5889 * process.c (Fstart_process):
5890 * callproc.c (Fcall_process): Handle the case where
5891 Funhandled_file_name_directory returns nil.
5892
76860cbb
SM
5893 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
5894 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
f9ffa1ea
SM
5895 * font.c (check_gstring): Use them and AREF to access the vector before
5896 we know it's really a gstring.
5897 (Ffont_shape_text): Fix typo.
5898 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Oject mixups.
76860cbb 5899
15139d67
SM
5900 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
5901 Declare.
5902
c62c8ddb
SM
5903 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
5904
04b65d2b
JR
59052008-02-05 Jason Rumney <jasonr@gnu.org>
5906
5907 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
5908 Set smallest_font_height and smallest_char_width in display info.
5909
fccaebfd
KH
59102008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
5911
5912 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
5913
e7d7fd8c
MB
59142008-02-05 Miles Bader <miles@gnu.org>
5915
5916 * xfaces.c (get_lface_attributes, merge_named_face)
5917 (lookup_named_face, lookup_derived_face, realize_named_face):
5918 Revert 2008-02-01 change by cyd@stupidchicken.com.
5919
3d4448a8
KH
59202008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
5921
5922 * fontset.c (Ffontset_info): Handle the case of inhibitting the
5923 fallback fonts.
15139d67 5924 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
3d4448a8 5925
5ace1ec1
JR
59262008-02-04 Jason Rumney <jasonr@gnu.org>
5927
5928 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
5929 set full_name.
e3a77b22 5930 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
5ace1ec1 5931
ffe42183
JR
59322008-02-03 Jason Rumney <jasonr@gnu.org>
5933
5934 * makefile.w32-in (OBJ1): Include font.o here.
5935 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
5936
526dc3b3
JR
59372008-02-02 Jason Rumney <jasonr@gnu.org>
5938
a0fece35 5939 * makefile.w32-in (temacs): Bump EMHEAP to 21.
526dc3b3 5940
af805c82
JR
59412008-02-01 Jason Rumney <jasonr@gnu.org>
5942
5943 * s/cygwin.h: Define VIRT_ADDR_VARIES.
5944
5945 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
5946
7f6519c5
AS
59472008-02-01 Andreas Schwab <schwab@suse.de>
5948
1f45f627 5949 * Makefile.in (shortlisp, lisp): Update for rename of
7f6519c5 5950 ../lisp/language/myanmar.el.
7f6519c5 5951
26f8aa27
CY
59522008-02-01 Chong Yidong <cyd@stupidchicken.com>
5953
1f45f627 5954 * xfaces.c (get_lface_attributes): Delete function.
26f8aa27
CY
5955 (merge_named_face, lookup_named_face, lookup_derived_face)
5956 (realize_named_face): Call lface_from_face_name directly, and use
5957 the fact that merge_face_vectors does not alter its FROM argument.
5958
73acf815 59592008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5960
5961 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
1f45f627 5962 input in the default locale. Handle non-Unicode multibyte input.
aca7a3d2 5963
73acf815 59642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5965
5966 * fontset.c (reorder_font_vector): Exclude nil elements from the
5967 font group. Don't try multiple fonts.
15139d67 5968 (fontset_font): Adjust for the above change.
aca7a3d2
MB
5969 (Finternal_char_font): Return nil if the found font doesn't
5970 contain the character ch.
5971
4c4475a8 5972 * Makefile.in (lisp, shortlisp): Add cham.el.
aca7a3d2 5973
73acf815 59742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5975
5976 * font.h (FONTP): Make it return 1 also for a font-object.
5977
5978 * .gdbinit (xfontset): New function.
5979
5980 * font.c (font_find_for_lface): Check if the character C is
5981 supported or not only for the first font.
5982
5983 * fontset.c (reorder_font_vector): Fix typo.
5984 (fontset_find_font): Don't add a font-spec specifying a script.
5985 Use 0 (not Qt) for the indication of empty font-group. Change the
5986 format of RFONT-DEF. Return Qt if no font in the font-group
5987 support the character.
15139d67 5988 (fontset_font): Adjust for the above change. If no font was
aca7a3d2 5989 found the character, remember that.
15139d67 5990 (face_for_char): Adjust for the change of RFONT-DEF.
aca7a3d2
MB
5991 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
5992 no font for the target.
15139d67 5993 (Finternal_char_font): Adjust for the change of RFONT-DEF.
aca7a3d2 5994
73acf815 59952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5996
5997 * font.c (font_load_for_face): Handle the case that the font in
5998 face->lface is a string.
5999
73acf815 60002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 6001
1f45f627 6002 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
aca7a3d2 6003
73acf815 60042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6005
6006 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
6007 Fix previous change. If the frame is not on a window system,
6008 signal an error.
6009
73acf815 60102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 6011
4c4475a8
GM
6012 * coding.c (decode_coding_object, encode_coding_object): Adjust
6013 marker positions after conversion.
aca7a3d2
MB
6014
6015 * lisp.h (struct Lisp_Marker): New member need_adjustment.
6016
73acf815 60172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6018
6019 * font.c (font_find_for_lface): Fix the handling of the return
6020 value of font_has_char.
6021 (Ffont_shape_text): Fix previous change.
6022
6023 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
6024 (fontset_ref_and_range): Delete it.
6025 (fontset_find_font): Call char_table_ref_and_range instead of
6026 FONTSET_REF_AND_RANGE.
6027 (make_fontset): Don't setup font groups of Latin here.
6028 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
6029 (new_fontset_from_font): Make the specified font the default for
6030 all Latin characters.
6031
73acf815 60322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6033
6034 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
6035 is on a window system before accessing the fontset of the frame.
6036
73acf815 60372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 6038
1f45f627 6039 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
aca7a3d2
MB
6040
6041 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
6042 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
6043
6044 * font.c (Ffont_shape_text): If the font driver doesn't have a
6045 shaper function, make zero-width glyphs to have at least one-pixel
6046 width. Fix setting of `to' field of glyphs.
6047
73acf815 60482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6049
6050 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
6051 glyphs.
6052
1f45f627 6053 * font.h (struct font_driver): Improve docstring of member `shape'.
aca7a3d2 6054
73acf815 60552008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6056
6057 * composite.c (syms_of_composite): Fix docstring of
6058 auto-composition-function.
6059
6060 * font.h (LGLYPH_SIZE): New macro.
6061
6062 * font.c (Ffont_fill_gstring): Stop filling when a character not
6063 supported by the font is found.
6064 (Ffont_shape_text): When a shape callback function returns nil,
6065 try at most two more times with larger gstring.
15139d67 6066 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
aca7a3d2
MB
6067
6068 * xdisp.c (handle_auto_composed_prop): Change the argument to
6069 auto-composition-function.
6070
6071 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
6072 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
6073 Lispy glyph and store it in the lgstring.
6074
6075 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
6076
6077 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
6078
73acf815 60792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6080
6081 * font.c (Ffont_shape_text): Avoid unnecessary composition.
6082
6083 * fontset.c (Vfont_encoding_charset_alist): New variable.
6084 (syms_of_fontset): DEFVAR it.
4c4475a8
GM
6085 (reorder_font_vector, fontset_find_font): Optimize for the case of
6086 no need of reordering.
aca7a3d2
MB
6087 (face_for_char): Map the charset property by
6088 Vfont_encoding_charset_alist.
6089
73acf815 60902008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6091
6092 * w32font.c (logfonts_match): Don't check adstyle here.
6093 (font_matches_spec): Check here against physical font instead.
6094 (add_font_entity_to_list): Avoid some substitutions.
6095
6096 * font.c (font_parse_fcname): Default weight and slant to normal.
6097 (font_score): Prefer normal fonts if weight or slant unspecified.
6098 (font_score) [WINDOWSNT]: Scale weight difference down to closer
6099 match freetype scores.
6100
73acf815 61012008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6102
6103 * w32font.c (w32font_text_extents): Don't use the frame stored in the
6104 font, as it may have been deleted.
6105 (w32_enumfont_pattern_entity): Map generic family to adstyle using
6106 most common hyphenless variation.
6107 (logfonts_match): Check generic family.
6108 (font_matches_spec): Don't check generic family here.
6109 (fill_in_logfont): Set generic family based on adstyle.
6110
6111 * w32font.h (w32font_get_cache): Update declaration.
6112
73acf815 61132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6114
6115 * ftfont.c (ftfont_get_cache): Adjust the argument type.
6116
15139d67 6117 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
dde8403f 6118 If none of the new drivers are available, call font_update_drivers
aca7a3d2
MB
6119 with the old drivers.
6120
6121 * w32font.c (w32font_get_cache): Adjust the argument type.
6122
6123 * xfont.c (xfont_get_cache): Adjust the argument type.
6124
6125 * font.h (struct font_driver): Change argument type of get_cache.
6126
6127 * xftfont.c (xftfont_start_for_frame): Delete prototype.
6128
6129 * font.c (Ffont_get): Fix arguments to Fassoc.
15139d67 6130 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
aca7a3d2 6131 (font_clear_cache): New function.
4c4475a8 6132 (font_list_entities, font_matching_entity): Use font_get_cache.
15139d67 6133 (font_update_drivers): Call font_clear_cache when finishing a driver.
aca7a3d2
MB
6134
6135 * fontset.c (fontset_find_font): Fix previous change.
6136
73acf815 61372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6138
6139 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
6140 dpyinfo->font_table.
6141 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
15139d67 6142 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
aca7a3d2
MB
6143
6144 * font.c (font_at): Handle the case that the arg C is negative.
6145 Handle the unibyte case.
6146 (Ffont_at): Call font_at with the arg C -1.
6147
6148 * xdisp.c (handle_auto_composed_prop): Don't get a character at
15139d67
SM
6149 the position here, and call font_at with the arg C -1.
6150 Don't check the range of the existing composition at the point.
aca7a3d2 6151
73acf815 61522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 6153
15139d67 6154 * fontset.c (fontset_add): New args charset_id and family.
1f45f627 6155 Change caller.
4c4475a8
GM
6156 (load_font_get_repertory, fontset_find_font): Assume that
6157 font_spec is always a font-spec object.
aca7a3d2
MB
6158 (Fset_fontset_font): Always store a font-spec object in a fontset.
6159
6160 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
6161 instead of get_property_and_range.
6162
73acf815 61632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6164
6165 * xftfont.c (struct xftfont_info): Delete the member ft_face.
6166 (xftfont_open): Don't keep locking face.
6167 (xftfont_close): Don't unlock face.
4c4475a8 6168 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
aca7a3d2
MB
6169
6170 * fontset.c (fontset_find_font): Don't prefer a font of
6171 supplementary charset.
6172
73acf815 61732008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6174
1f45f627
GM
6175 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
6176 script, langsys_tag to langsys, new member script.
aca7a3d2
MB
6177 (OTF_TAG_STR): Terminate by '\0'.
6178 (ftfont_get_open_type_spec): If :otf prop is is spec, Limit the
6179 listing to the script specified in that property. Fix arg to
6180 OTF_check_features.
6181
73acf815 61822008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6183
6184 * w32font.h: New file.
6185
6186 * w32font.c: Include it.
6187 (struct w32font_info): Add owning_frame field. Move to w32font.h.
6188 (w32font_open): Set owning_frame.
6189 (w32font_text_extents): Use owning_frame.
6190 (struct font_callback_data): Add opentype_only field.
6191 (add_font_entity_to_list): Use it to filter fonts.
6192 Don't check against full name.
6193 (w32font_list_internal): New function.
6194 (w32font_list): Use it.
6195 (w32font_match_internal): New function.
6196 (w32font_match): Use it.
6197 (w32font_open_internal): New function.
6198 (w32font_open): Use it.
6199 (w32font_get_cache, w32font_close, w32font_has_char)
6200 (w32font_encode_char, w32font_text_extents, w32font_draw):
6201 Make non-static.
6202
6203 * makefile.w32-in (w32font.o): Depend on w32font.h.
6204
73acf815 62052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6206
6207 * charset.c (Fdefine_charset_internal): Record a supplementary
6208 charset at the tail of Vcharset_order_list.
6209
6210 * font.c (Ffont_shape_text): Fix the return value.
6211
6212 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
6213
6214 * xdisp.c (handle_auto_composed_prop): Fix previous change.
6215
73acf815 62162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6217
6218 * ftfont.c (struct OpenTypeSpec): New struct.
6219 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
6220 (ftfont_get_open_type_spec): New function.
6221 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
6222
15139d67 6223 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
aca7a3d2 6224
73acf815 62252008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6226
6227 * w32font.c (add_font_entity_to_list): Compare only the beginning
6228 of full name.
6229
73acf815 62302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6231
15139d67
SM
6232 * xdisp.c (handle_auto_composed_prop): Simplify the code.
6233 Never return HANDLED_RECOMPUTE_PROPS.
aca7a3d2 6234
73acf815 62352008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6236
6237 * font.c (font_gstring_produce): Delete it.
6238
15139d67
SM
6239 * composite.h (COMPOSITION_METHOD):
6240 Handle COMPOSITION_WITH_GLYPH_STRING.
aca7a3d2 6241
73acf815 62422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 6243
15139d67 6244 * xfont.c (Qx): Delete.
aca7a3d2
MB
6245 (syms_of_xfont): Don't initialize Qx.
6246
15139d67
SM
6247 * composite.h (enum composition_method):
6248 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
aca7a3d2 6249
73acf815 62502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6251
6252 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
6253 (choose_face_font): Accept new form of font-spec.
6254
6255 * frame.h (font_driver_list): Declare it unconditionally.
6256 (struct frame): Define members font_driver_list and font_data_list
6257 unconditionally.
6258
6259 * fontset.c: Include "font.h" unconditionally.
15139d67 6260 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
aca7a3d2
MB
6261 (Fset_fontset_font): Accept a font-spec object.
6262
6263 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
6264 PIXEL_SIZE part a wild card.
6265
6266 * dispextern.h (struct glyph_string): Define members clip and
6267 num_clips unconditionally.
6268 (struct face): Define members font_info and extra unconditionally.
6269
6270 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
6271 ftfont_info only when HAVE_LIBOTF is defined.
6272
73acf815 62732008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
6274
6275 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
6276 and end.
6277
73acf815 62782008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6279
6280 * w32font.c (w32font_driver): Add new fields.
6281
73acf815 62822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 6283
aca7a3d2
MB
6284 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
6285 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
6286 (LIBES): Add @M17N_FLT_CFLAGS@.
6287
6288 * composite.c (compose_text): Don't treat the new style
6289 composition specially.
6290
6291 * emacs.c (main): Call syms_of_font unconditionally.
6292
6293 * font.h (FONT_ENTITY_NOT_LOADABLE)
6294 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
15139d67 6295 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
aca7a3d2 6296 (struct font_driver): New member shape.
1f45f627 6297 (font_registry_charsets): Extern it.
4c4475a8 6298 (font_find_for_lface, font_prepare_composition): Adjust prototype.
aca7a3d2
MB
6299 (font_otf_capability, font_drive_otf): Delete their externs.
6300
6301 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
4c4475a8
GM
6302 (font_charset_alist, font_registry_charsets): Move from xfont.c
6303 and rename.
aca7a3d2
MB
6304 (font_prop_validate_otf): New function.
6305 (font_property_table): Register it for QCotf.
6306 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
15139d67 6307 (font_drive_otf): Delete.
1f45f627 6308 (font_prepare_composition): New arg F. Adjust for the change of
aca7a3d2
MB
6309 lispy gstring.
6310 (font_find_for_lface): New arg C.
15139d67 6311 (font_load_for_face): Adjust for the change of font_find_for_lface.
4c4475a8
GM
6312 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
6313 lispy gstring.
aca7a3d2
MB
6314 (Ffont_shape_text): New function.
6315 (Fopen_font): If the font size is not given, use 12-pixel.
6316 (Ffont_at): New arg STRING.
15139d67
SM
6317 (syms_of_font): Initalize font_charset_alist.
6318 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
aca7a3d2
MB
6319 conditionally.
6320
6321 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
6322 fonts of the same font-spec. Change the format of RFONT-DEF.
4c4475a8
GM
6323 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
6324 Adjust for the change of RFONT-DEF.
15139d67 6325 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
aca7a3d2
MB
6326
6327 * ftfont.h: New file.
6328
6329 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
6330 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
6331 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
6332 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
6333 font_otf_capability and font_drive_otf, set ftfont_shape.
15139d67 6334 (ftfont_list): Adjust for the change of :otf property value.
aca7a3d2
MB
6335 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
6336 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
6337 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
1f204af3 6338 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
aca7a3d2
MB
6339 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
6340 (otf_gstring, gstring, m17n_flt_initialized): New variables.
6341
15139d67
SM
6342 * w32term.c (x_draw_composite_glyph_string_foreground):
6343 Adjust for the change of lispy gstring.
aca7a3d2 6344
15139d67 6345 * xdisp.c (handle_composition_prop): Adjust for the change of
aca7a3d2 6346 lispy gstring. Call a function for auto-composition with the
15139d67
SM
6347 third arg it->window.
6348 (fill_composite_glyph_string): Adjust for the change of lispy string.
6349 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
aca7a3d2 6350
15139d67 6351 * xfaces.c (set_font_frame_param): Adjust for the change of
aca7a3d2
MB
6352 font_find_for_lface.
6353
1f45f627
GM
6354 * xfont.c (x_font_charset_alist): Move to font.c and rename.
6355 (xfont_registry_charsets): Likewise. Change caller.
aca7a3d2
MB
6356 (syms_of_xfont): Don't handle x_font_charset_alist.
6357
6358 * xftfont.c: Include "ftfont.h".
15139d67 6359 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
aca7a3d2
MB
6360 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
6361 (xftfont_close) [HAVE_LIBOTF]: Close otf.
6362 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15139d67
SM
6363 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
6364 Set xftfont_driver.shape to xftfont_shape.
aca7a3d2 6365
15139d67 6366 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aca7a3d2
MB
6367 the change of lispy gstring.
6368
73acf815 63692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6370
6371 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
6372
73acf815 63732008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6374
6375 * w32font.c (w32font_draw): Fill background manually.
6376
73acf815 63772008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6378
6379 * font.c (Qfontp): Remove unused symbol.
6380 (QCantialias): New symbol.
6381 (syms_of_font): Define it.
6382 (font_property_table): Set a validator for QCantialias.
6383
15139d67
SM
6384 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
6385 Define if not already.
aca7a3d2
MB
6386 (QCfamily): Share with xfaces.c.
6387 (Qstandard, Qsubpixel, Qnatural): New symbols.
1f45f627 6388 (syms_of_w32font): Define them. Don't define QCfamily here.
aca7a3d2
MB
6389 (w32_antialias_type, lispy_antialias_type): New functions.
6390 (w32_enumfont_pattern_entity): New arg requested_font.
6391 Set antialias parameter if non-default was requested.
6392 (fill_in_logfont): Fill in lfQuality if :antialias specified.
6393
73acf815 63942008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6395
6396 * lread.c (read1): Undo the previous change.
6397
73acf815 63982008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
aca7a3d2
MB
6399
6400 * frame.c (Fdelete_frame): Call font_update_drivers only when
6f69e89b 6401 USE_FONT_BACKEND is defined.
aca7a3d2 6402
73acf815 64032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6404
6405 * font.h (struct font_bitmap): New member bits_per_pixel.
6406 (struct font_driver): New members start_for_frame and end_for_frame.
6407 (struct font_data_list): New struct.
6408 (font_put_frame_data, font_get_frame_data): Extern them.
6409
6410 * frame.h (struct frame): New member font_data_list.
6411
6412 * font.c (font_update_drivers): Call driver->start_for_frame and
6413 driver->end_for_frame at proper timings.
6414 (font_put_frame_data, font_get_frame_data): New functions.
6415 (Ffont_spec): Add usage in the docstring.
6416
6417 * frame.c (make_frame): Initialize f->font_data_list to NULL.
6418 (Fdelete_frame): Call font_update_drivers.
6419
6420 * xftfont.c (struct xftface_info): Delete the member xft_draw.
4c4475a8 6421 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
aca7a3d2
MB
6422 (xftfont_get_xft_draw): New function.
6423 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
6424 (xftfont_end_for_frame): New function.
6425 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
6426
15139d67 6427 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
1f45f627 6428 Change argument. Cache GCs in the per-frame data.
aca7a3d2
MB
6429 (struct ftxfont_frame_data): New struct.
6430 (ftxfont_draw_bitmap): New arg gc_fore and flush.
6431 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
15139d67 6432 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
aca7a3d2
MB
6433 (ftxfont_end_for_frame): New function.
6434 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
6435
6436 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
6437
73acf815 64382008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6439
6440 * xselect.c (Vselection_coding_system)
6441 (Vnext_selection_coding_system): Delete them.
6442 (syms_of_xselect): Don't declare selection-coding-system and
6443 next-selection-coding-system. They are declared in select.el.
6444
73acf815 64452008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6446
6447 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
6448
6449 * w32fns.c: Include imm.h.
6450 (get_composition_string_fn, get_ime_context_fn): New optional
6451 system functions.
6452 (globals_of_w32fns): Load them from imm32.dll.
6453 (ignore_ime_char): New flag.
6454 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
6455 WM_IME_ENDCOMPOSITION messages.
6456
6457 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
6458 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
6459
73acf815 64602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6461
6462 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
6463 (READCHAR_REPORT_MULTIBYTE): New macro.
6464 (readchar): New 2nd arg MULTIBYTE.
15139d67
SM
6465 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
6466 Make symbol's name multibyte according to the multibyteness of the
aca7a3d2
MB
6467 source.
6468
73acf815 64692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6470
6471 * xfaces.c (face_for_overlay_string): Call lookup_face with
6472 correct arguments (fix of synching with the trunk).
6473
73acf815 64742008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6475
4c4475a8
GM
6476 * font.c (font_prop_validate_symbol, font_prop_validate_style)
6477 (font_prop_validate_non_neg, font_prop_validate_spacing):
6478 Delete argument prop_index.
15139d67
SM
6479 (font_property_table): Change arguments to validater. Change Callers.
6480 (font_lispy_object): Delete.
aca7a3d2
MB
6481 (font_at): Use font_find_object instead fo font_lispy_object.
6482
73acf815 64832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6484
6485 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
6486 and file names.
6487
73acf815 64882008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6489
6490 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
6491 (font_matches_spec): Remove debug output.
6492 (add_font_entity_to_list): Avoid using substituted fonts.
6493
73acf815 64942008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6495
6496 * doc.c (Fsnarf_documentation):
6497 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
6498
73acf815 64992008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2 6500
290afd83 6501 * dispextern.h (struct glyph_row): Only define "clip" field if
aca7a3d2
MB
6502 HAVE_WINDOW_SYSTEM is defined.
6503
73acf815 65042008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
aca7a3d2
MB
6505
6506 Fix up multi-tty merge.
6507
6508 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
6509 and indentation.
6510
6511 * xfaces.c (free_realized_face, clear_face_gcs):
6512 Include font_done_for_face in the input_blocked section, just in case.
6513
6514 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
6515 (get_char_face_and_encoding): Undo last change and remove the *other*
6516 duplicate definition (i.e. keep the one that's better scoped and that
6517 includes code for the font-backend).
6518
6519 * terminal.c (create_terminal): Default keyboard_coding to
6520 `no-conversion' and terminal_coding to `undecided'.
6521
6522 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
6523
6524 * fontset.c (free_realized_fontsets): Check that the table entry does
6525 contain a fontset before trying to compare it to `base'.
6526
6527 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
6528 syms_of_charset, and syms_of_coding earlier because init_window_once
6529 now needs Vcoding_system_hash_table to be setup.
6530
6531 * coding.h (default_buffer_file_coding): Remove.
6532
6533 * coding.c (default_buffer_file_coding): Remove.
6534 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
6535 than ->symbol, and use the terminal-local coding system.
6536 (syms_of_coding): Don't setup the coding-systems that are not
6537 terminal-local.
6538 (Fdefine_coding_system_internal): Use XCAR/XCDR.
6539
6540 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
6541 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
6542
6543 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
6544 in chartab.c and were re-added here by mistake.
6545 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
6546
6547 * doc.c (Fsnarf_documentation):
6548 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
6549 src to etc.
6550
6551 * ChangeLog.10: Add mistakenly removed entry.
6552
73acf815 65532008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
aca7a3d2
MB
6554
6555 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
6556
73acf815 65572008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
6558
6559 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
6560 Add extra args to FACE_FOR_CHAR.
6561
73acf815 65622008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6563
6564 * keymap.c (where_is_internal_1): If key is a cons, store the copy
6565 in sequence.
6566
4c4475a8
GM
6567 * chartab.c (map_sub_char_table, map_char_table): If the range
6568 contains just one character, call the function with that character
6569 even if the depth is not 3.
aca7a3d2 6570
73acf815 65712008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6572
6573 * w32font.c (w32font_text_extents): Calculate metrics for the
6574 whole string.
6575
73acf815 65762008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6577
6578 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
6579
73acf815 65802008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6581
6582 * w32term.c (x_set_glyph_string_clipping): Use
6583 get_glyph_string_clip_rects.
4c4475a8
GM
6584 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
6585 Adjust for the change of struct glyph_string.
aca7a3d2
MB
6586
6587 * w32font.c (w32font_draw): Do clipping here.
6588
73acf815 65892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6590
1f45f627 6591 * xftfont.c (xftfont_draw): Adjust for the change of struct
aca7a3d2
MB
6592 glyph_string.
6593
6594 * xterm.c (x_set_glyph_string_clipping): Use
6595 get_glyph_string_clip_rects.
4c4475a8
GM
6596 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
6597 Adjust for the change of struct glyph_string.
aca7a3d2
MB
6598
6599 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
6600 the resulting clip(s}.
1f45f627 6601 (expose_overlaps): Add arg r. Change callers. Set it to
aca7a3d2
MB
6602 row->clip temporarily.
6603 (expose_window): Redraw rows overlapping the exposed area.
6604
6605 * dispextern.h (struct glyph_row): New member clip.
6606 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
6607 clip_height, new member clip, and num_clips.
6608
73acf815 66092008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6610
6611 * data.c (Fchar_or_string_p): Fix docstring.
6612
73acf815 66132008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6614
6615 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
6616 create a temporal XftDraw object.
6617
73acf815 66182008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6619
6620 * font.c (Ffontp): Fix docstring.
6621
6622 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
6623 strong evidence of ISO-2022.
6624
73acf815 66252008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6626
6627 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
6628 SYNTAX_ENTRY_FOLLOW_PARENT.
6629
73acf815 66302008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
aca7a3d2
MB
6631
6632 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
6633 its type.
6634 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
6635 Update to the new type of weak_hash_tables and next_weak.
6636
6637 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
6638 a plain C pointer to Lisp_Hash_Table.
6639
6640 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
6641 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
6642 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
6643 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
6644 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
6645 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
6646 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
6647 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
6648 (GC_EQ): Remove since they've been identical to their non-GC_
6649 alter-egos ever since the markbit was eradicated.
6650
290afd83
JB
6651 * alloc.c:
6652 * buffer.c:
6653 * buffer.h:
6654 * data.c:
6655 * fileio.c:
6656 * filelock.c:
6657 * fns.c:
6658 * frame.h:
6659 * lisp.h:
6660 * macterm.c:
6661 * print.c:
6662 * process.c:
6663 * w32fns.c:
6664 * w32menu.c:
6665 * w32term.c:
6666 * xfns.c:
6667 * xmenu.c:
6668 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
aca7a3d2 6669
73acf815 66702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6671
6672 * chartab.c (map_sub_char_table): Make it work for the top-level
6673 char-table. Fix handling of parent char-table.
c5ad7a3d 6674 (map_char_table): Adjust for the above change.
aca7a3d2 6675
73acf815 66762008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6677
6678 * w32font.c (Qgdi): Rename from Qw32.
6679
73acf815 66802008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6681
6682 * w32bdf.c (get_quoted_string): Make function static.
6683
73acf815 66842008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6685
6686 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
6687 bigger ascent and descent than those of the font, use them as
6688 font's ascent and descent.
6689
73acf815 66902008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6691
6692 * Makefile.in (${lispsource}international/charprop.el): Move this
6693 target within "#ifdef HAVE_UNIDATA" and "#endif".
6694
73acf815 66952008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6696
6697 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
6698 (shortlisp): Add ../lisp/language/tai-viet.el.
6699
1f45f627 67002008-02-01 Ulrich Mueller <ulm@gentoo.org>
aca7a3d2
MB
6701
6702 * Makefile.in (${lispsource}international/charprop.el): Depend on
6703 temacs${EXEEXT}.
6704
73acf815 67052008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6706
6707 * w32font.c (w32font_close): Delete the GDI font object.
6708
6f69e89b 6709 * w32menu.c: Include character.h.
aca7a3d2
MB
6710
6711 * w32proc.c: Likewise.
6712
6713 * w32select.c: Likewise.
6714
6f69e89b 6715 * makefile.w32-in (w32proc.o): Depend on character.h.
aca7a3d2 6716
73acf815 67172008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6718
6719 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
6720
6721 * w32menu.c (syms_of_w32menu): Likewise.
6722
6723 * w32proc.c (syms_of_ntproc): Likewise.
6724
6725 * w32select.c (syms_of_w32select): Likewise.
6726
6727 * w32term.c (syms_of_w32term): Likewise.
6728
73acf815 67292008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6730
6731 * w32font.c (w32font_draw): Delete brush after using it.
6732
73acf815 67332008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6734
6735 * w32font.c (w32font_open): Don't set font_idx.
6736 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
6737 to font settings.
6738 (w32font_draw): Fill background explicitly.
6739
73acf815 67402008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6741
6742 * w32term.c (w32_initialize): Don't call w32font_initialize.
6743
6744 * w32font.c (w32font_info): Remove subranges.
6745 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
6746 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
6747 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
6748 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
6749 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
6750 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
6751 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
6752 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
6753 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
6754 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
6755 New symbols.
6756 (font_callback_data): New struct.
6757 (w32font_list, w32font_match): Use it.
6758 (w32font_open): Don't populate subranges.
6759 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
6760 (w32font_encode_char): Always return unicode code-point as-is.
6761 (w32font_text_extents): Supply a tranformation matrix to
1f45f627
GM
6762 GetGlyphOutline. Never look up by glyph index. Avoid looping
6763 twice. Use unicode version of GetTexExtentPoint32 instead of
aca7a3d2 6764 glyph index version.
1f204af3 6765 (set_fonts_frame): Remove.
aca7a3d2 6766 (w32_enumfont_pattern_entity): Add frame parameter, use it to
1f45f627
GM
6767 set frame parameter. Use backward compatible fake foundries.
6768 Save generic family in extra slot under QCfamily. Make width slot
6769 constant. Save QCspacing value. Save list of scripts instead of
aca7a3d2
MB
6770 binary subranges.
6771 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
1f45f627 6772 (add_font_entity_to_list): Use font_callback_data struct. Filter
aca7a3d2
MB
6773 unwanted fonts.
6774 (add_one_font_entity_to_list): Use font_callback_data struct.
1f45f627
GM
6775 (w32_registry): Default to iso10646_1.
6776 (fill_in_logfont): Use dpi from extra slot. Don't bother with
6777 string font registries. Don't fill in font name if it is a generic
6778 family name, fill family instead. Use spacing, family and script
aca7a3d2
MB
6779 extra info to fill pitch, family and charset fields.
6780 (list_all_matching_fonts): Use font_callback_data struct.
6781 (unicode_range_for_char): Remove.
6782 (font_supported_scripts): New function.
6783 (w32font_initialize): Remove.
6784 (syms_of_w32font): Update which symbols are defined.
6785
73acf815 67862008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6787
6788 * font.c (font_pixel_size): Reverse assq_no_quit args.
6789
6790 * w32term.h (FONT_WIDTH): Report max width, not average.
6791 (FONT_MAX_WIDTH): Remove.
6792 (FONT_AVG_WIDTH): New macro.
6793
6794 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
6795 redefinition of FONT_WIDTH.
6796
6797 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
6798 (w32_cache_char_metrics): Use FONT_WIDTH.
6799
6800 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
6801
73acf815 68022008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6803
6804 * w32font.c (w32font_open): Make lfHeight negative.
6805
6806 * w32fns.c (x_default_font_parameter): Use new style font name.
6807 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
6808
73acf815 68092008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6810
6811 * w32font.c (QCsubranges): New symbol.
6812 (w32font_open, w32font_has_char): Get subranges from subproperty
6813 of extra.
6814 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
6815 (syms_of_w32font): Define :subranges symbol.
6816
6817 * font.c (font_put_extra): Expose externally.
6818
1f45f627 6819 * font.h (font_put_extra): Move declaration from font.c.
aca7a3d2
MB
6820
6821 * font.c (Ffont_get): Use font driver to determine otf capability.
6822 (adjust_anchor): Check if driver defines anchor_point before using.
6823
6824 * w32font.c (w32font_open): Handle size, height and pixel_size better.
6825 (w32font_draw): Use options.
6826 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
6827 Fix detection of truetype fonts.
6828 (registry_to_w32_charset): Handle charsets other than iso8859-1
6829 expressed as lisp symbols.
6830 (w32_registry): Express charset as lisp symbol.
6831 (fill_in_logfont): Reverse pixel and point height logic.
1f45f627 6832 Don't set width here. Set quality to default.
aca7a3d2
MB
6833
6834 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
6835 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
6836
6837 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
6838 Remove redundant loop and allocation.
6839
6840 * makefile.w32-in (font.o, w32font.o): New objects.
6f69e89b 6841 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
aca7a3d2
MB
6842 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
6843
6844 * xdisp.c (fill_composite_glyph_string): Make the first arg to
6845 STORE_XCHARB a valid l-value.
6846
6847 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
6848 calculations for non-Truetype fonts.
6849 (x_draw_glyph_string): Sync with xterm.c.
c3f9fba8
JB
6850 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
6851 Remove redundant code.
aca7a3d2
MB
6852 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
6853
6854 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
6855 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
6856
6857 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
6858 (x_to_w32_charset, w32_to_x_charset): Expose externally.
6859
6860 * w32font.c: New file for w32 font backend.
6861
73acf815 68622008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6863
6864 * term.c: Don't include "buffer.h" twice.
6865
73acf815 68662008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6867
6868 * character.c (Funibyte_string): New function.
6869 (syms_of_character): Defsubr it.
6870
73acf815 68712008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6872
6873 * w32term.c [USE_FONT_BACKEND]:
c3f9fba8
JB
6874 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
6875 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
6876 (x_draw_glyph_string, x_draw_glyph_string_foreground)
6877 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
aca7a3d2
MB
6878 (x_free_frame_resources): Sync with xterm.c.
6879
73acf815 68802008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
6881
6882 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
6883 char-table size.
6884
73acf815 68852008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6886
c3f9fba8 6887 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
aca7a3d2 6888
73acf815 68892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6890
6891 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
6892 font_otf_gpos, add font_drive_otf.
6893
6894 * fontset.c (fontset_find_font): Pay attention to font size
6895 specified for a font.
6896 (reorder_font_vector): Check contents of font_def.
6897
6898 * font.c (struct otf_list): Delete it.
6f69e89b 6899 (otf_list): Make it a lisp variable.
aca7a3d2 6900 (otf_open): Use lispy otf_list.
1f45f627 6901 (generate_otf_features): Rename from parse_gsub_gpos_spec.
aca7a3d2 6902 (check_otf_features): New function.
c3f9fba8
JB
6903 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
6904 New functions.
aca7a3d2
MB
6905 (font_drive_otf): New function merging font_otf_gsub and
6906 font_otf_gpos.
6907 (font_open_for_lface): New arg spec. Change argument order.
1f45f627 6908 (font_load_for_face): Adjust for the change of font_open_for_lface.
aca7a3d2
MB
6909 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
6910 Ffont_otf_gpos.
6911 (syms_of_font): Staticpro otf_list. Delete defsubr of
6912 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
6913
1f45f627 6914 * xfaces.c (set_font_frame_param): Adjust for the change of
aca7a3d2
MB
6915 font_open_for_lface.
6916
6917 * font.h (font_open_for_lface): Adjust prototype.
6918 (struct font_driver): Delete members otf_gsub and otf_gpos, add
6919 member otf_drive.
6920 (font_otf_gsub, font_otf_gpos): Delete externs.
6921 (font_drive_otf): Extern it.
6922
73acf815 69232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6924
6925 * font.c (font_at): If the window W is not on a window system,
6926 return Qnil.
6927
4c4475a8
GM
6928 * coding.c (produce_chars, encode_coding): Don't call
6929 insert_from_gap if no characters to produce.
aca7a3d2 6930
73acf815 69312008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6932
6933 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
6934 Fclear_face_cache.
6935
6936 * xfaces.c (face_for_font): Check also face->font==font->font.font.
6937
73acf815 69382008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
6939
6940 * emacs.c (main): Change default value of `enable_font_backend' to 1.
6941 Parse "--disable-font-backend" option.
6942 (standard_args): Add "--disable-font-backend" option.
6943
73acf815 69442008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6945
6946 * fontset.c (fontset_find_font): New function.
6947 (fontset_font): Use fontset_find_font.
6948 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
6949 Register the specified font for all Latin characters.
6950 (new_fontset_from_font): Register the specified font for all Latin
6951 characters.
6952 (dump_fontset): For a realized fontset, include the base fontset
6953 name in the returned vector.
6954
73acf815 69552008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6956
6957 * character.h (CHAR_STRING): Cast C to unsigned on calling
6958 char_string.
6959
6960 * character.c (char_string): Type of arg C changed to unsigned.
6961 Signal an error if C is an invalid character code.
6962
4c4475a8
GM
6963 * editfns.c (general_insert_function, Fchar_to_string):
6964 Use CHARACTERP, not INTEGERP.
aca7a3d2 6965
73acf815 69662008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6967
6968 * character.h (MIN_MULTIBYTE_LEADING_CODE)
6969 (MAX_MULTIBYTE_LEADING_CODE): New macros.
6970
6971 * regex.c (analyse_first): Fix for multibyte characters in "case
6972 charset:" and "case categoryspec:".
6973
73acf815 69742008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
6975
6976 * Makefile.in (LIBES): Move standard libraries to the end.
6977
73acf815 69782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6979
6980 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
6981 nonzero, don't shrink the buffer nextb.
6982
6983 * buffer.h (struct buffer_text): New member inhibit_shrinking.
6984
6985 * coding.c (coding_alloc_by_making_gap): New arg offset.
6986 (alloc_destination): Call coding_alloc_by_making_gap with the arg
6987 offset.
6988 (decode_coding_iso_2022): Update coding->safe_charsets.
6989 (decode_coding_gap): Temporarily set
6990 current_buffer->text->inhibit_shrinking to 1.
6991
73acf815 69922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6993
6994 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
6995 indexing into elements of s->cmp and s->char2b.
6996
73acf815 69972008-02-01 Juanma Barranquero <lekktu@gmail.com>
aca7a3d2
MB
6998
6999 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
7000
73acf815 70012008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7002
7003 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
7004 target_multibyte instead of multibyte.
7005 (re_match_2_internal): Call bcmp_translate with target_multibyte.
7006 (bcmp_translate): Change the argument name from multibyte to
7007 target_multibyte.
7008
73acf815 70092008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7010
7011 These changes are to compile a regexp into a pattern that can be
7012 used both for multibyte and unibyte targets.
7013
7014 * Makefile.in (search.o): Depend on charset.h.
7015
7016 * character.c (multibyte_char_to_unibyte_safe): New function.
7017
7018 * search.c: Include "charset.h".
7019 (compile_pattern_1): Delete argument multibyte. Don't set
7020 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
7021 (compile_pattern): Don't compare cp->buf.target_multibyte.
7022 Compare cp->buf.charset_unibyte.
7023 (compile_pattern): Set cp->buf.target_multibyte.
7024
7025 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
7026
7027 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
7028
7029 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
1f45f627 7030 multibyte. Change callers.
aca7a3d2 7031 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
1f45f627
GM
7032 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
7033 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
aca7a3d2
MB
7034 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
7035 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
7036 (regex_compile): Make the compiled pattern usable both for
7037 multibyte and unibyte targets.
7038 (analyse_first): Make the fastmap usable both for multibyte and
7039 unibyte targets.
1f45f627 7040 (TRANSLATE_VIA_MULTIBYTE): Delete.
aca7a3d2
MB
7041 (re_match_2_internal): Pay attention to the case that the
7042 multibyteness of bufp and target may be different.
7043
73acf815 70442008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7045
7046 * xdisp.c (x_produce_glyphs): When a font is not found, make the
7047 empty box occupy at least one column width.
7048
73acf815 70492008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
7050
7051 * Makefile.in: Remove redundant HAVE_XFT clause.
7052
73acf815 70532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7054
7055 * xrdb.c (x_load_resources): Setup the default fontSet X reource.
7056
73acf815 70572008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7058
7059 * fontset.c (Finternal_char_font): Fix for the case of POSITION
7060 being nil.
7061
73acf815 70622008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7063
7064 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
7065
73acf815 70662008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7067
7068 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
7069
73acf815 70702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7071
7072 * search.c (simple_search): Fix previous change.
7073
73acf815 70742008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7075
7076 * xftfont.c (ftfont_font_format): Extern declaration.
7077
7078 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
7079
7080 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
7081 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
7082
7083 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
7084 (ftfont_font_format): Fix previous change.
7085
7086 * font.h (Ffont_xlfd_name): EXFUN it.
7087
7088 * font.c (font_parse_xlfd): Fix the array size of `f'.
7089 (register_font_driver): Use EQ to compare driver->type.
7090
7091 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
7092 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
7093 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
7094
73acf815 70952008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7096
4c4475a8
GM
7097 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
7098 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
aca7a3d2 7099
73acf815 71002008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7101
7102 * xfont.c (xfont_open): Set font->format.
7103
7104 * xftfont.c (xftfont_open): Set font->format.
7105
7106 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
7107 (ftfont_list): Include FC_FONTFORMAT in FcObject.
7108 (ftfont_open): Set font->format.
7109 (ftfont_font_format): New function.
7110
7111 * font.h (struct font): New memeber format.
7112
7113 * font.c (Qopentype): New variable.
7114 (syms_of_font): Defsym it.
7115 (Fquery_font): Change the format of the last element of the return
7116 value.
7117
73acf815 71182008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7119
7120 * xfns.c (xic_create_xfontset): Try the default fontset name as a
7121 last resort.
7122
73acf815 71232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7124
7125 * coding.c (detect_coding_charset): Fix detection of multi-byte
7126 charset.
7127
73acf815 71282008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
aca7a3d2
MB
7129
7130 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
7131
73acf815 71322008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7133
7134 * xdisp.c (get_next_display_element): Set it->face_id for the
7135 first component of a composition.
1f45f627 7136 (x_produce_glyphs): Check if the font is changed or not for composition.
aca7a3d2 7137
73acf815 71382008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7139
7140 * fontset.c (Qlatin): New variable.
7141 (syms_of_fontset): Define it as a lisp symbol.
1f45f627 7142 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
aca7a3d2 7143
73acf815 71442008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7145
7146 * font.c (font_unparse_fcname): Pay attention to the case that
7147 some of font property is a null string.
7148
73acf815 71492008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7150
7151 * term.c: Include "composite.h".
7152 (encode_terminal_code): Output all components of composition.
7153 Check the size of encode_terminal_src.
424c157f 7154 (produce_glyphs): For composition, call produce_composite_glyph.
aca7a3d2
MB
7155 (append_composite_glyph, produce_composite_glyph): New functions.
7156
7157 * xdisp.c (x_produce_glyphs): In handling composition, if a font
7158 is not found, get font_info from the current ascii face.
7159
73acf815 71602008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7161
7162 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
7163 buffer-file-name to Qnil before calling insert_from_buffer.
7164
7165 * font.c (font_unparse_fcname): Pay attention to the case that
7166 foundry is a null string.
7167
73acf815 71682008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7169
7170 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
7171
7172 * font.c (Qunicode_sip): New variable.
7173 (syms_of_font): Declare it as a Lisp symbol.
7174
7175 * font.h (Qunicode_sip): Extern it.
7176
73acf815 71772008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7178
1f45f627 7179 * composite.c (get_composition_id): Pay attention to TAB component.
aca7a3d2
MB
7180
7181 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
1f45f627 7182 TAB. Adjust for the change of s->char2b which always points to
aca7a3d2
MB
7183 the first elememnt of allocated memory.
7184
1f45f627 7185 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
aca7a3d2
MB
7186
7187 * xdisp.c (handle_composition_prop): Set it->c to the first
7188 non-TAB component.
1f45f627
GM
7189 (fill_composite_glyph_string): Change argument.
7190 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
aca7a3d2
MB
7191 (x_produce_glyphs): Fix handling of left/right padding.
7192
73acf815 71932008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7194
7195 * coding.c (detect_coding_system): Fix for handling off
7196 inhibit_iso_escape_detection. Fix for the case that no coding
7197 system is defined for a specific coding category.
7198
73acf815 71992008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7200
1f45f627 7201 * font.c (font_matching_entity): Delete unused local var.
aca7a3d2
MB
7202
7203 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
7204 opening a font.
7205
7206 * fileio.c (Finsert_file_contents): On recovering a file, assume
7207 Unix-like eol.
7208 (choose_write_coding_system): On auto-saving a file, force
7209 Unix-like eol.
7210
7211 * coding.c (setup_coding_system): Fix setting of
7212 coding->common_flags based on eol_type.
7213 (coding_inherit_eol_type): If PARENT is not nil, be sure to
7214 inherit from it.
7215
73acf815 72162008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7217
1f45f627 7218 * alloc.c (NSTATICS): Increas to 0x600.
aca7a3d2 7219
73acf815 72202008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7221
1f45f627 7222 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
aca7a3d2
MB
7223 (ftfont_list): Don't check :name property.
7224 (ftfont_match): New function.
7225 (ftfont_pattern_entity): If the pattern doesn't contain
7226 FC_SPACING, don't assuce FC_MONO.
7227
7228 * font.h (struct font_driver): New member `match'.
1f45f627 7229 (font_update_drivers): Adjust prototype.
aca7a3d2 7230
4c4475a8
GM
7231 * font.c (font_parse_fcname, font_parse_name): Don't change :name
7232 property of FONT.
aca7a3d2
MB
7233 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
7234 them unconditionally.
7235 (font_matching_entity): New function.
7236 (font_open_by_name): Try font_matching_entity if exact match is
7237 not found.
7238 (font_update_drivers): Delete the arg FONT. Return a list of
7239 actually used backends. Don't free faces, font caches here.
7240 Don't store data in frame parameters. Don't call x_set_font.
7241 (Ffont_spec): Store :name property as is.
7242 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
1f45f627
GM
7243 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
7244 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
aca7a3d2
MB
7245 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
7246 Call font->driver->otf_gsub instead of font_otf_gsub.
7247
7248 * frame.c (x_set_font_backend): Do more works that were done in
7249 font_update_drivers before.
7250
7251 * xfont.c (xfont_match): New function.
7252 (xfont_driver): Set xfont_driver.match to xfont_match.
7253 (xfont_draw): Set font in GC if necessary.
7254
7255 * ftxfont.c (ftxfont_match): New function.
7256 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
7257
7258 * xftfont.c (xftfont_match): New function.
7259 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
7260
73acf815 72612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7262
7263 * font.h (struct font): New member scalable.
7264 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
1f45f627 7265 (font_otf_gsub): Adjust prototype.
aca7a3d2 7266
1f45f627
GM
7267 * font.c (font_otf_capability): Fix handling of the default langsys.
7268 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
aca7a3d2
MB
7269 Check the contents of SPEC.
7270 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
7271 (check_gstring): New function.
7272 (REPLACEMENT_CHARACTER): New macro.
7273 (font_otf_gsub): New arg alternate_subst. Be sure to set all
7274 glyph codes of GSTRING.
7275 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
7276 (font_prepare_composition): Set cmp->glyph_len.
7277 (font_open_entity): Set font->scalable.
7278 (Ffont_get): Handle :otf property.
7279 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
7280 functions.
7281 (Fquery_font): Use font->font.full_name.
7282 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
7283 Sfont_otf_alternates.
7284
7285 * ftfont.c (ftfont_open): Set font->font.full_name and
7286 font->font.name properly. Fix calculation of font->font.height
7287 and font->min_width.
7288
7289 * ftxfont.c (ftxfont_create_gcs): New function.
7290 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
7291 (ftxfont_draw_backgrond): Fix filling region.
7292 (ftxfont_default_fid): New function.
7293 (ftxfont_open): Set xfotn->fid to the return value of
7294 ftxfont_default_fid.
7295 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
7296 (ftxfont_done_face): Free only GCs that are created by
7297 ftxfont_create_gcs.
7298 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
7299
7300 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
7301 Clip to src->width, etc (not src->clip_XXX).
7302
7303 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
7304 FontBackend frame parameter.
7305
73acf815 73062008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7307
7308 * font.h (struct font_driver_list): New member `on'.
7309 (Fclear_font_cache): EXFUN it.
7310 (font_update_drivers): Extern it.
7311
7312 * font.c (font_unparse_fcname): Fix typo (swidth->width).
7313 (font_list_entities): Check driver_list->on.
7314 (register_font_driver): Initalize `on' member to 0.
7315 (font_update_drivers): New function.
7316 (Fclear_font_cache): Check driver_list->on.
7317
7318 * frame.h (Qfont_backend): Extern it.
7319 (x_set_font_backend): Extern it.
7320
7321 * frame.c (Qfont_backend): New variable.
7322 (frame_parms): New element for font-backend.
7323 (x_set_font_backend): New function.
7324
7325 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
7326 FontBackend frame parameter.
7327 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
7328 x_set_font_backend.
7329
7330 * xfont.c (xfont_list): Don't try listing by :name property if the
7331 name is not for XLFD.
7332
73acf815 73332008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7334
7335 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
7336 (LGLYPH_SET_TO): New macros.
7337 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
7338 element of G is vector or not.
7339 (font_at): Extern it.
7340
7341 * font.c: Include window.h.
7342 (font_lispy_object): New function.
7343 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
7344 end of valid glyph.
7345 (font_close_object): Fix getting (struct font *).
7346 (font_at): New function.
7347 (Ffont_get): If FONT is a font-object, get entity from it.
7348 (Ffont_make_gstring): Initialize elements of glyphs with nil.
7349 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
7350 range check.
7351 (Ffont_at): New function.
7352 (syms_of_font): Defsubr Sfont_at.
7353
7354 * xdisp.c (it_props): Move the entry for Qauto_composed to just
424c157f 7355 before the entry for Qcomposition.
1f45f627 7356 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
aca7a3d2
MB
7357 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
7358 the font in gstring.
7359 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
7360 LGLYPH_FORM (g) to detect the end of valid glyph.
7361 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
7362 we are composing with gstring.
7363
7364 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
7365 Check if adjustment is vector or not.
7366
7367 * Makefile.in (font.o): Make it depends on window.h.
7368
73acf815 73692008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7370
7371 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
7372 adjustment is vector or not.
7373
73acf815 73742008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
7375
7376 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
7377
73acf815 73782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7379
7380 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
7381 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
7382 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
7383
1f45f627 7384 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
aca7a3d2 7385 (DEVICE_DELTA): Fix typo.
4c4475a8
GM
7386 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
7387 LGLYPH format.
aca7a3d2 7388
1f45f627 7389 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aca7a3d2
MB
7390 the change of LGLYPH format.
7391
73acf815 73922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7393
7394 * ftfont.c (ftfont_list): Fix typo.
1f45f627 7395 (ftfont_build_basic_charsets): Don't include letters with diacritics.
aca7a3d2 7396
880820fe 73972008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2
MB
7398
7399 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
7400
7401 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
7402 xftface_info is non-NULL.
7403
880820fe 74042008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2 7405
1f45f627 7406 * ftfont.c (ftfont_list): Move misplaced #endif.
aca7a3d2 7407
73acf815 74082008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7409
7410 * ftfont.c (ftfont_list): Pay attention to the case that
7411 FC_CAPABILITY is not defined.
7412
73acf815 74132008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7414
7415 * xftfont.c (xftfont_open): Set charset related members to -1.
7416
1f45f627
GM
7417 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
7418 QCname.
aca7a3d2
MB
7419 (ftfont_open): Set charset related members to -1.
7420
7421 * fontset.c (Votf_script_alist): New variable.
7422 (syms_of_fontset): Initialize it.
7423 (fontset_font): Delete unused variable.
7424
7425 * fontset.h (Votf_script_alist): Extern it.
7426
1f45f627 7427 * font.c (font_find_for_lface): Optimize code.
aca7a3d2
MB
7428
7429 * font.h (font_close_object, font_merge_old_spec): Extern them.
7430
73acf815 74312008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7432
7433 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
7434 (syms_of_font): Initialize them.
7435 (font_pixel_size): Allow float value in dpi.
1f45f627
GM
7436 (font_prop_validate_type): Delete.
7437 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
7438 Change caller.
7439 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
7440 (font_prop_validate_extra): Delete.
aca7a3d2
MB
7441 (font_prop_validate_spacing): New function.
7442 (font_property_table): Add elements for all known properties.
1f45f627
GM
7443 (get_font_prop_index): Rename from check_font_prop_name. New
7444 argument FROM. Change caller.
aca7a3d2 7445 (font_prop_validate): Validate all known properties.
1f45f627 7446 (font_put_extra): Delete argument force. Change caller.
aca7a3d2
MB
7447 (font_expand_wildcards): Make it static. Fix the way of shrinking
7448 the possible range.
1f45f627 7449 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
aca7a3d2 7450 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
1f45f627 7451 Change caller.
aca7a3d2 7452 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
1f45f627
GM
7453 (font_parse_fcname): Delete argument merge. Fix parsing of point
7454 size. Don't validate properties values here. Change caller.
7455 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
aca7a3d2
MB
7456 (font_open_by_name): Delete unused variable.
7457 (Ffont_spec): Likewise. Validate property values.
7458 (Ffont_match_p): New function.
7459
7460 * font.h (QCscalable): Extern it.
1f45f627 7461 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
aca7a3d2 7462
1f45f627 7463 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
aca7a3d2 7464
1f45f627 7465 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
aca7a3d2
MB
7466 (xfont_list_pattern): New function.
7467 (xfont_list): Use xfont_list_pattern.
7468
73acf815 74692008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7470
7471 * font.h (Flist_fonts): EXFUN it.
7472
73acf815 74732008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7474
7475 * w32term.c (w32_initialize): Add back smoothing_type and
7476 smoothing_enabled definitions.
7477
73acf815 74782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7479
7480 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
7481 s->face->font on determining underline position.
7482
73acf815 74832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7484
7485 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
7486 (font_has_char): Accept font-object too.
7487 (font_find_for_lface): Try at first with a size specified in face.
7488
73acf815 74892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7490
7491 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
7492 font_open_by_name.
7493
73acf815 74942008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7495
7496 * font.h (QCspacing, QCdpi): Extern them.
7497 (enum font_spacing): New enum.
7498 (FONT_PIXEL_SIZE_QUANTUM): New macro.
7499
7500 * font.c (POINT_TO_PIXEL): Don't divice POINT by 10.
7501 (QCspacing, QCdpi): New variables.
7502 (syms_of_font): Initialize them.
7503 (font_pixel_size): New function.
7504 (font_put_extra): New function.
7505 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
7506 in FONT_EXTRA.
e9184ccb
JB
7507 (font_parse_fcname): Handle enumenrated values (e.g. bold).
7508 Fix handling font size. Add QCname property that contains only
aca7a3d2 7509 unknown properties.
1f45f627 7510 (font_score): Change argument. Change caller. Pay attention to
aca7a3d2 7511 FONT_PIXEL_SIZE_QUANTUM.
4c4475a8
GM
7512 (font_sort_entites, font_list_entities, font_find_for_lface)
7513 (font_open_for_lface, font_open_by_name): Fix handling of font size.
1f45f627 7514 (Ffont_spec): Add QCname property that contains only unknown properties.
aca7a3d2
MB
7515
7516 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
7517 include weight in listing pattern, instead check weight of each
7518 listed font. Don't include scalable in pattern. Pay attention to
7519 FONT_PIXEL_SIZE_QUANTUM.
7520
73acf815 75212008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7522
aca7a3d2 7523 * font.c (font_parse_fcname): Fix parsing of point-size.
1f45f627 7524 (font_unparse_fcname): Produce symbolic names for style properties.
aca7a3d2
MB
7525 (font_list_entities): Handle float size correctly.
7526 (font_open_by_name): Prefer `normal' property values if the name
7527 doesn't specify them.
7528
7529 * fontset.c (Finternal_char_font): Use font_get_name, not
7530 Ffont_xlfd_name.
7531
7532 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
7533 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
7534 pattern. Don't force scalable.
7535
7536 * xftfont.c (xftfont_open): For generating a name, start from
7537 96-byte buffer.
7538
880820fe 75392008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2
MB
7540
7541 * frame.h (x_new_fontset2): Fix prototype.
7542
73acf815 75432008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7544
1f45f627 7545 * font.h (struct font_driver): Delete member parse_name.
aca7a3d2
MB
7546 (font_match_p, font_get_spec, font_parse_fcname)
7547 (font_unparse_fcname): Extern them.
1f45f627 7548 (font_get_name): Adjust prototype.
aca7a3d2
MB
7549
7550 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
7551 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
7552 (font_expand_wildcards): Fix handling ENCODING field. Avoid
7553 unnecessary checks for weight, slant, and swidth.
7554 (font_parse_fcname): New function.
7555 (font_unparse_fcname): New function.
7556 (font_parse_name): New function.
7557 (font_match_p): New function.
1f45f627 7558 (font_get_name): Change return value to Lisp string.
aca7a3d2
MB
7559 (font_get_spec): New function.
7560 (Qunspecified, Qignore_defface): Don't extern them.
7561 (font_find_for_lface): Assume that LFACE is fully specified.
7562 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
7563 object, use it for FACE.
7564 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
7565 driver->parse_name.
7566 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
7567
1f45f627
GM
7568 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
7569 prototype.
aca7a3d2 7570
1f45f627
GM
7571 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
7572 argument F. Don't call Fnew_fontset. Instead, directly call
aca7a3d2
MB
7573 make_fontset.
7574
1f45f627 7575 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
aca7a3d2 7576
1f45f627 7577 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
aca7a3d2
MB
7578 of x_new_fontset2.
7579
7580 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
7581 (Qsans__serif): New variables.
7582 (ftfont_generic_family_list): New variable.
7583 (syms_of_ftfont): Initialize the above variables.
1f45f627 7584 (ftfont_pattern_entity): Delete argument NAME.
aca7a3d2
MB
7585 (ftfont_list_generic_family): New function.
7586 (ftfont_parse_name): Delete this function.
1f45f627 7587 (ftfont_list): Try generic family only when FcFontList found no font.
aca7a3d2
MB
7588 (ftfont_list_family): Fix args to FcObjectSetBuild.
7589
7590 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
7591 object in attrs[LFACE_FONT_INDEX].
7592 (set_lface_from_font_name): Cancel all changes for font-backend.
7593 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
7594 function.
7595 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
7596 font object in QCfont attribute.
7597 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
7598 (realize_default_face) [USE_FONT_BACKEND]: Call
7599 set_lface_from_font_and_fontset.
7600
7601 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
7602 "fixed", and signal error here if no suitable font was found.
7603
7604 * xfont.c (xfont_parse_name): Delete this function.
7605
7606 * xftfont.c (xftfont_open): Change coding style of error
7607 handling. Generate fontconfig's fontname pattern.
7608
7609 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
7610 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
7611
7612 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
7613 Both args FONTSET and FONT_OBJECT must be existing ones.
7614
73acf815 76152008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
7616
7617 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
7618
73acf815 76192008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7620
7621 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
7622
7623 * font.h (struct font): Fix typo.
7624
7625 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
7626 XLFD_XXX_INDEX.
7627 (enum xlfd_field_mask): New enum.
1f45f627 7628 (intern_font_field): Changed argument. Change caller. If digits
aca7a3d2
MB
7629 are followed by non-digits, return a symbol.
7630 (font_expand_wildcards): New function.
7631 (font_parse_xlfd): Fix wildcard handling.
7632 (Ffont_spec): If :name is specified, reflect the info in the other
7633 properties.
7634
7635 * ftfont.c (ftfont_pattern_entity): Fix typo.
7636 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
7637 locale.
7638
73acf815 76392008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7640
7641 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
7642
1f45f627 7643 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
aca7a3d2
MB
7644 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
7645 registry doesn't specify encoding part.
7646 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
7647 (font_open_by_name): At first try parsing the name.
7648 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
7649 as Lisp symbols.
7650
7651 * fontset.c (reorder_font_vector): Pay attention to the case that
7652 the 3rd element of font_def is nil.
7653 (fontset_font): For the default fontset, append one more fontset
7654 elements for a script-based font specification. Don't add script
7655 attribute on finding a font.
7656 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
7657 font name.
7658 (fontset_ascii_font): If a font can't be opened, return nil.
7659
1f45f627 7660 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
aca7a3d2
MB
7661 (ftfont_pattern_entity): New function.
7662 (ftfont_get_cache): Assume that freetype_font_cache is already
7663 initialized.
7664 (ftfont_list): Handle the case that a file is specified in font
7665 name. Use ftfont_pattern_entity to generate entities.
7666 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
7667 (syms_of_ftfont): Initialize freetype_font_cache.
7668
7669 * xftfont.c (xftfont_open): Make the font name fontconfig's
7670 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
7671 (xftfont_close): Free font->font.name if not NULL.
7672
7673 * xfont.c (xfont_list): If script is specified for a font, return
7674 null_vector.
7675 (xfont_list_family): Declare argument type.
7676
7677 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
7678 name, set LFACE_FONT (lface) to nil.
7679
7680 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
7681 return Qnil.
7682
73acf815 76832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7684
1f45f627 7685 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
aca7a3d2
MB
7686 (standard_args): Add "-enable-font-backend".
7687
73acf815 76882008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7689
7690 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
7691 (struct xftdraw_list, xftdraw_list): Delete them.
7692 (register_xftdraw, check_xftdraw): Delete them.
7693 (xftfont_prepare_face): Don't call register_xftdraw.
7694 (xftfont_done_face): Don't call check_xftdraw.
7695 (xftfont_draw): Get backroudn color only when with_background is
7696 nonzero.
7697
7698 * xfont.c (xfont_encode_char): Fix calculation of char2b.
7699
73acf815 77002008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7701
7702 These changes are for the new font handling codes.
7703
7704 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
7705 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
7706 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
7707 (FONTSRC, FONTOBJ): New variables.
7708 (obj): Add $(FONTOBJ).
7709 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
7710 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
7711 @LIBOTF_LIBS@.
7712 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
1f45f627 7713 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
aca7a3d2 7714
1f45f627 7715 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
aca7a3d2
MB
7716
7717 * character.h (Vscript_representative_chars): Extern it.
7718
7719 * character.c (Vscript_representative_chars): New variable.
7720 (syms_of_character): Declare it as a Lisp variable.
7721
7722 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
7723 enable_font_backend is nonzero, accept the composition method
7724 COMPOSITION_WITH_GLYPH_STRING.
7725
7726 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
7727 enumeration COMPOSITION_WITH_GLYPH_STRING.
7728
aca7a3d2
MB
7729 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
7730 members clip_x, clip_y, clip_width, and clip_height.
7731 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
7732
7733 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
7734 --enable-font-backend. Call syms_of_font.
7735
7736 * fns.c (assoc_no_quit): New function.
7737
7738 * fontset.h (FONT_INFO_FROM_FACE): New macro.
7739 (face_for_font, new_fontset_from_font)
7740 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
7741
7742 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
7743 (fontset_font, fontset_ascii, face_for_char)
7744 (make_fontset_for_ascii_face, Ffont_info)
7745 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
7746 is nonzero, use font-backend mechanism.
7747 (find_font_encoding): Make it non-static.
7748 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
7749 New functions.
7750
7751 * frame.h (struct frame): New members resx and resy.
7752 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
7753 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
7754
7755 * frame.c [USE_FONT_BACKEND]: Include "font.h".
1f45f627 7756 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
aca7a3d2
MB
7757
7758 * lisp.h (assoc_no_quit): Extern it.
7759
7760 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
7761 Through out the file, use FONT_INFO_FROM_FACE instead of
7762 FONT_INFO_FROM_ID, use get_per_char_metric instead of
7763 rif->per_char_metric.
7764 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
7765 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
7766 (get_glyph_face_and_encoding, fill_composite_glyph_string)
7767 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
7768 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
7769 nonzero, use font-backend mechanism.
7770 (get_per_char_metric): New function.
7771
7772 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
7773 (set_lface_from_font_name)
7774 (set_font_frame_param, free_realized_face)
7775 (prepare_face_for_display, clear_face_gcs)
7776 (Finternal_set_font_selection_order, realize_x_face)
7777 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
7778 font-backend mechanism.
1f45f627 7779 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
aca7a3d2
MB
7780 (load_face_font) [USE_FONT_BACKEND]: Abort.
7781 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
1f45f627 7782 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
aca7a3d2
MB
7783
7784 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
7785 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
7786 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
7787 nonzero, register all available font drivers. Call
7788 x_default_font_parameter for deciding a font.
7789 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
7790
7791 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
7792 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
7793 (x_set_glyph_string_clipping_exactly)
7794 (x_compute_glyph_string_overhangs)
7795 (x_draw_glyph_string_foreground)
7796 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
7797 (x_free_frame_resources) [USE_FONT_BACKEND]: If
7798 enable_font_backend is nonzero, use font-backend mechanism.
7799 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
7800
73acf815 78012008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7802
fcb314b2 7803 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
aca7a3d2
MB
7804 system_eol_type.
7805 (syms_of_coding): Initialize system_eol_type.
7806
fcb314b2
GM
7807 * process.c (Fset_process_coding_system): Inherit system's eol
7808 format if necessary.
aca7a3d2 7809
73acf815 78102008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
7811
7812 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
7813
73acf815 78142008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7815
7816 * coding.c (decode_eol): Pay attention to buffer relocation in
7817 del_range_2.
7818 (decode_coding): Call decode_eol before restoring undo_list.
7819
73acf815 78202008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7821
7822 * charset.c (Fdefine_charset_internal): Fix setting of
7823 emacs_mule_bytes.
7824
73acf815 78252008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7826
7827 * keyboard.c (read_char): Check if C is a character or not before
7828 looking up Vkeyboard_translate_table.
7829
73acf815 78302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7831
7832 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
7833 condition to terminate the loop.
7834
73acf815 78352008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7836
7837 * coding.c (produce_composition): Compare charbuf[i] instead of
7838 args[i] against 0.
7839 (Fterminal_coding_system): Use EQ to compare Lisp objects.
7840
73acf815 78412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7842
7843 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
7844 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
7845 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
7846 detect_coding.
7847 (emacs_mule_char): Handle old style (Emacs 20) component character
7848 of a composition.
4c4475a8
GM
7849 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
7850 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
7851 composition rule.
aca7a3d2
MB
7852 (decode_coding_emacs_mule): Handle invalid bytes correctly.
7853
73acf815 78542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7855
7856 * coding.c (encode_coding_ccl): Allocate destination dynamically
7857 when necessary.
7858
73acf815 78592008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7860
7861 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
7862 the loop. When quitted, show a proper error message.
7863
73acf815 78642008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7865
aca7a3d2
MB
7866 * xterm.c (x_set_glyph_string_clipping_exactly): Set
7867 src->clip_head and src->clip_tail temporarily instead of src->hl.
7868
7869 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
7870 character sequence.
7871 (Fccl_execute_on_string): Use ASET, not XSET.
7872
73acf815 78732008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7874
1f45f627 7875 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
aca7a3d2 7876
73acf815 78772008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7878
7879 * coding.c (decode_coding): Fix the condition of terminating the
7880 decoding loop.
7881
73acf815 78822008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7883
7884 * data.c (Faset): On setting a character bigger than 255 in a
1f45f627 7885 unibyte string, signal an error instead of make the string multibyte.
aca7a3d2 7886
73acf815 78872008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7888
7889 * charset.c (map_charset_chars): Fix for ascii-compatible charset
7890 made by a mapping table.
7891
73acf815 78922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7893
7894 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
7895 not.
7896 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
7897 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
7898
7899 * xterm.c (x_draw_composite_glyph_string_foreground): Check
7900 s->face is NULL or not.
7901
73acf815 79022008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7903
7904 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
7905 (x_draw_glyph_string): Fix drawing of right_overhang and
7906 left_overhang around/on cursor.
7907
1f45f627 7908 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
aca7a3d2 7909
73acf815 79102008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7911
7912 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
7913
73acf815 79142008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7915
4c4475a8
GM
7916 * coding.c (Fdefine_coding_system_internal)
7917 (Fdefine_coding_system_alias): Avoid a duplicated element in
7918 Vcoding_system_alist.
aca7a3d2 7919
73acf815 79202008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7921
7922 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
7923
fcb314b2 7924 * coding.c (Qcoding_system_define_form): New variable.
aca7a3d2
MB
7925 (syms_of_coding): Intern and staticpro it.
7926 (Fcoding_system_p): Check Qcoding_system_define_form.
1f45f627 7927 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
aca7a3d2
MB
7928
7929 * coding.h (CODING_SYSTEM_P): If ID is not available, call
7930 Fcoding_system_p.
7931 (CHECK_CODING_SYSTEM): If ID is not available, call
7932 Fcheck_coding_system.
4c4475a8
GM
7933 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
7934 Try also Fcheck_coding_system.
aca7a3d2 7935
73acf815 79362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7937
aca7a3d2
MB
7938 * coding.c (code_conversion_restore): GCPRO arg.
7939
73acf815 79402008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7941
7942 * character.c (lisp_string_width): Check multibyteness of STRING.
7943
73acf815 79442008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
7945
7946 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
7947 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
7948 (decode_mac_font_name): Use decode_coding_c_string instead of
7949 decode_coding.
7950 (x_load_font): Initialize fontp->fontset to -1. Set
7951 fontp->encoding_type.
7952
73acf815 79532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7954
7955 * search.c (search_buffer): Give up BM search on case-fold-search
7956 if one of a target character has a case-equivalence of different
7957 byte length even if that target charcter is an ASCII.
1f45f627
GM
7958 (simple_search): Fix calculation of byte length of matched text.
7959 (boyer_moore): Fix handling of case-equivalent multibyte characters.
aca7a3d2 7960
73acf815 79612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7962
7963 * coding.c (decode_coding): Fix handling of invalid bytes.
7964
73acf815 79652008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7966
7967 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
7968 Unicode characters.
7969
73acf815 79702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7971
7972 * coding.c (encode_coding_object): If a pre-write-conversion
7973 function makes a new buffer, kill it.
7974
73acf815 79752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7976
7977 * coding.c (QCascii_compatible_p): New variable.
7978 (syms_of_coding): Initialize it.
4c4475a8
GM
7979 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
7980 calling string_char.
aca7a3d2
MB
7981 (record_conversion_result): Add `default:' case.
7982 (coding_charset_list): Delete unused variable `coding_type'.
7983 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
7984 property in the plist of the coding system.
7985 (Fcoding_system_put): Check QCascii_compatible_p.
7986
73acf815 79872008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
7988
7989 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
7990 removed calculation of frame `f', as it's now used.
7991
73acf815 79922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7993
1f45f627 7994 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
aca7a3d2
MB
7995 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
7996 (UNIDATA): New variable.
7997 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
7998 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
7999 $(RUN_TEMACS) unconditionally.
8000
73acf815 80012008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8002
1f45f627 8003 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
aca7a3d2
MB
8004 (admindir): New variable.
8005 ($(lispsource)international/charprop.el): New target.
8006
73acf815 80072008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2 8008
1f45f627 8009 * character.c (chars-in-region): Remove obsolete function.
aca7a3d2
MB
8010 (syms_of_character): Remove its initialization.
8011
73acf815 80122008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
aca7a3d2
MB
8013
8014 * w32select.c (validate_coding_system)
8015 (setup_windows_coding_system): New functions.
8016 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
8017 setup_windows_coding_system.
8018 (setup_config, Fw32_get_clipboard_data): Use
8019 validate_coding_system.
8020 (Fx_selection_exists): Move call to setup_config to a place
1f45f627 8021 where signals are allowed.
aca7a3d2
MB
8022
8023 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
8024 (Fcheck_coding_system): Add declarations.
8025
73acf815 80262008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8027
1f45f627 8028 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
aca7a3d2 8029
73acf815 80302008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
8031
8032 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
8033 string as the second argument for x_new_fontset.
8034
73acf815 80352008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8036
8037 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
8038 (encode_coding_object): Use safe_call instead of call2.
8039
73acf815 80402008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8041
1f45f627 8042 * fontset.c (Fset_fontset_font): Check family element of a given vector.
aca7a3d2
MB
8043
8044 * Makefile.in (lisp): Include charprop.el.
8045
73acf815 80462008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
8047
8048 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
8049 Not sure if it's unnecessary.
8050
73acf815 80512008-02-01 Steven Tamm <steventamm@mac.com>
aca7a3d2
MB
8052
8053 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
8054 some possibly unnecessary fontset checking code that crashed
1f45f627 8055 when creating a new frame.
aca7a3d2 8056
73acf815 80572008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8058
8059 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
8060 lookup_face.
8061
8062 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
8063
1f45f627 8064 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
aca7a3d2 8065
73acf815 80662008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8067
73acf815 8068 * coding.c: Cancel the change done in HEAD on 2008-02-01.
aca7a3d2
MB
8069 (coding_charset_list): New function.
8070
8071 * coding.h (coding_charset_list): Extern it.
8072
73acf815 80732008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8074
8075 * fontset.c (Fset_fontset_font): Call find_font_encoding with
8076 concatenation of family and registry.
8077
73acf815 80782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8079
8080 * character.h (BYTE8_STRING): Fix typo.
8081
8082 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
8083 string to multibyte (sync to HEAD).
8084
8085 * casefiddle.c (casify_region): Handle changes in byte-length
8086 using replace_range_2 (sync to HEAD).
8087
73acf815 80882008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
8089
8090 * chartab.c (map_char_table): GCPRO table and arg.
8091
73acf815 80922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8093
8094 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
8095 already at limit.
8096
73acf815 80972008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8098
8099 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
8100 instead of fast_c_string_match_ignore_case.
1f45f627 8101 (find_font_encoding): Change argument to Lisp_Object. Use
aca7a3d2 8102 fast_string_match_ignore_case instead of
1f45f627 8103 fast_c_string_match_ignore_case. Change caller.
aca7a3d2 8104
73acf815 81052008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8106
8107 * xdisp.c (get_next_display_element): In unibyte case, decide to
8108 display in octal form by checking a chacter by
8109 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
8110
1f45f627 8111 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
aca7a3d2
MB
8112
8113 * character.c (unibyte_has_multibyte_table): New variable.
8114
8115 * character.h (unibyte_has_multibyte_table): Extern it.
8116 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
8117
73acf815 81182008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8119
8120 * coding.c (encode_coding_iso_2022): Fix handling of charset
8121 annotation.
8122
73acf815 81232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8124
8125 * coding.c (setup_coding_system): If coding_system is nil, use
8126 Qundecided.
8127 (Fterminal_coding_system): Return nil if terminal coding system is
8128 `undecided'.
8129 (syms_of_coding): Define coding-system `undecided' here. Setup
8130 terminal_coding as `undecided'.
8131
73acf815 81322008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8133
8134 * xdisp.c (message_dolog, set_message_1): Call
8135 unibyte_char_to_multibyte with arg type int.
8136
aca7a3d2
MB
8137 * lread.c (read1): Fix reading of a char-table.
8138
8139 * print.c (print_object): Include sub char-table in cicularities
8140 detection.
8141
73acf815 81422008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8143
8144 * keymap.c (where_is_internal_2): Fix for the case that KEY is a
1f45f627 8145 cons. Append the found sequences in car of ARGS instead of prepending.
aca7a3d2 8146
73acf815 81472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8148
8149 * fileio.c (report_file_error): Make a unibyte string from
8150 strerror (errorno).
8151 (Fsubstitute_in_file_name): Fix the arg to
8152 unibyte_char_to_multibyte. It is evaluated twice.
8153
73acf815 81542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8155
8156 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
8157
73acf815 81582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8159
8160 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
8161 BOM is not found.
4c4475a8
GM
8162 (detect_coding, detect_coding_system): Optimization for ISO-2022
8163 when no 8-bit data is found.
aca7a3d2 8164
73acf815 81652008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
8166
8167 * w32fns.c (x_to_w32_font): Update to use new coding struct.
8168
73acf815 81692008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8170
4c4475a8
GM
8171 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
8172 CHARS.
aca7a3d2 8173
73acf815 81742008-02-01 Steven Tamm <steventamm@mac.com>
aca7a3d2
MB
8175
8176 * macterm.c (mac_encode_char): Add charset argument and update
8177 to use encoding_type.
2a2e8de7 8178 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
1f45f627
GM
8179 switch to pure fontset.
8180 (decode_mac_font_name): Temporarily remove decoding.
8181 (x_font_name_to_mac_font_name): Temporarily remove encoding.
8182 (x_load_font): Temporarily remove encoding.
aca7a3d2 8183
73acf815 81842008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8185
8186 * xfaces.c (Fface_font): If frame is not on a window system,
8187 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
8188 refer to face->font.
8189 (split_font_name_into_vector, build_font_name_from_vector)
8190 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
8191 whne HAVE_WINDOW_SYSTEM is defined.
8192
73acf815 81932008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8194
8195 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
8196 (x_produce_glyphs): Fix setting of members of cmp in case
1f45f627 8197 cmp->glyph_len is zero.
aca7a3d2 8198
1f45f627 8199 * fontset.c (Fset_fontset_font): Fix docstring.
aca7a3d2
MB
8200 (Ffontset_info): Make it backward compatible. New arg ALL.
8201
73acf815 82022008-02-01 Kim F. Storm <storm@cua.dk>
aca7a3d2
MB
8203
8204 * process.c (read_process_output): Grow decoding_buf when needed;
8205 this could cause a crash in allocate_string and compact_small_strings.
8206
73acf815 82072008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8208
1f45f627 8209 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
aca7a3d2 8210
73acf815 82112008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8212
8213 * coding.c (setup_coding_system): Set coding->common_flags
8214 correctly for raw-text.
8215 (consume_chars): On encoding unibyte text by raw-text, don't check
8216 multibyte form.
1f45f627 8217 (encode_coding): On encoding by raw-text, never use translation tables.
aca7a3d2
MB
8218
8219 * fileio.c (e_write): Short cut for the case of no encoding.
8220
73acf815 82212008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8222
4c4475a8
GM
8223 * coding.c (detect_coding, detect_coding_system): Delete unused
8224 variables.
aca7a3d2 8225
73acf815 82262008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8227
8228 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
8229 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
8230
73acf815 82312008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8232
8233 * coding.c (Ffind_coding_systems_region_internal): Include
8234 raw-text and no-conversion in the result.
8235
73acf815 82362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8237
1f45f627 8238 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
aca7a3d2
MB
8239 (load_font_get_repertory): Delete unnecessary check of ENCODING of
8240 FONT_DEF.
8241 (font_def_arg, add_arg, from_arg, to_arg): New args.
1f45f627 8242 (set_fontset_font): Change argument.
aca7a3d2
MB
8243 (Fset_fontset_font): Fix for the case that TARGET is a script
8244 name and charset name.
8245 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
8246
73acf815 82472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8248
1f45f627
GM
8249 * fontset.c (fontset_font): Rename from fontset_face. Change return
8250 value.
4c4475a8
GM
8251 (face_suitable_for_char_p, face_for_char): Adjust for the change
8252 of fontset_font.
aca7a3d2
MB
8253 (make_fontset_for_ascii_face): Fix setting of the fontset element
8254 for ASCII.
8255 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
8256 to get a font name.
1f45f627 8257 (Ffontset_info): Adjust for the change of fontset_font.
aca7a3d2 8258
fcb314b2 8259 * coding.c (emacs_mule_char): Check invalid code more regidly.
aca7a3d2
MB
8260
8261 * character.h (LEADING_CODE_LATIN_1_MIN)
8262 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
8263
73acf815 82642008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8265
fcb314b2 8266 * editfns.c (check_translation): New function.
aca7a3d2
MB
8267 (Ftranslate_region_internal): Handle M:N mapping.
8268
73acf815 82692008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8270
8271 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
8272
73acf815 82732008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8274
8275 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
8276 goto invalid_code.
8277 (decode_coding_iso_2022): Fix handling of invalid designation.
8278
8279 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
8280 after calling code_conversion_save.
8281
73acf815 82822008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8283
8284 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
8285
8286 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
8287
8288 * fontset.c: Include "intervals.h".
8289 (fontset_face): Fix comparing of Lisp_Objects.
4c4475a8
GM
8290 (free_face_fontset, new_fontset_from_font_name): Fix
8291 Lisp_Object/int mixup.
aca7a3d2
MB
8292
8293 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
8294
8295 * coding.c: Add many prototypes for static functions.
8296 (get_translation_table): Allow max_lookup to be NULL.
2a2e8de7 8297 (decode_coding, Ffind_coding_systems_region_internal)
4c4475a8
GM
8298 (Funencodable_char_position, Fcheck_coding_systems_region): Call
8299 get_translation_table with max_lookup NULL.
aca7a3d2 8300
73acf815 83012008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8302
8303 * coding.c (get_translation_table): Declare it as Lisp_Object.
8304 (LOOKUP_TRANSLATION_TABLE): New macro.
4c4475a8
GM
8305 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
8306 instead of CHAR_TABLE_REF.
aca7a3d2 8307
73acf815 83082008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8309
1f45f627 8310 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
aca7a3d2
MB
8311 annotation data format.
8312 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
1f45f627 8313 Change arguments FROM and TO to single argument NCHARS. Change caller.
4c4475a8 8314 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
aca7a3d2 8315 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4c4475a8
GM
8316 (decode_coding_ccl, decode_coding_charset): Pay attention to
8317 coding->charbuf_used.
aca7a3d2
MB
8318 (get_translation): New function.
8319 (produce_chars): New arguments translation_table and last_block.
8320 Translate characters here. Return number of carryover chars.
1f45f627
GM
8321 Change caller.
8322 (produce_composition): New argument pos. Change caller.
8323 Adjust for the change of annotation data format.
aca7a3d2
MB
8324 (produce_charset, produce_annotation): Likewise.
8325 (decode_coding, encode_coding): Don't call translate_chars.
1f45f627
GM
8326 (consume_chars): New arg translation_table. Change caller.
8327 (translate_chars): Delete.
8328 (syms_of_coding): Make translation-table's number of extra slots 2.
aca7a3d2 8329
73acf815 83302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8331
8332 * search.c (simple_search): Fix setting this_pos_byte in backward
8333 search.
8334
8335 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
8336 byte sequence.
8337 (detect_coding_ccl): Fix setting of the variable valids.
8338
73acf815 83392008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8340
8341 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
8342
8343 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
8344
1f45f627 8345 * editfns.c (Ftranslate_region_internal): Rename from
aca7a3d2
MB
8346 Ftranslate_region. Accept a char-table in TABLE.
8347 (syms_of_editfns): Defsubr Stranslate_region_internal.
8348
8349 * xfaces.c (set_lface_from_font_name): If a font is specified for
8350 a frame, generate a fontset from the font.
8351 (build_scalable_font_name): If the scalable font is requested for
8352 a specific size, don't change that size.
8353 (try_font_list): Try a scalable font also in the case that a
1f45f627 8354 pattern string is specified.
aca7a3d2 8355
73acf815 83562008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8357
8358 * xfaces.c (Fface_font): New optional arg CHARACTER.
8359
73acf815 83602008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8361
8362 * charset.h (CHARSET_OFFSET): New macro.
8363
73acf815 83642008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8365
8366 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
8367
8368 * fontset.c (fontset_face): Handle the case that repertory is a
8369 char-table.
8370 (find_font_encoding): Return nil for unknown encoding.
8371 (Fset_fontset_font): Ignore a font of unknown encoding.
8372
73acf815 83732008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8374
1f45f627 8375 * keymap.c (describe_vector): Handle default value of a char table.
aca7a3d2
MB
8376
8377 * fontset.c (fontset_face): Handle fallback fonts correctly.
8378 (Ffontset_info): Return infomation about fallback fonts.
8379
73acf815 83802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8381
8382 * fontset.c (FONTSET_DEFAULT): New macro.
4c4475a8 8383 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
aca7a3d2
MB
8384 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
8385 the case that it is nil.
8386 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
1f45f627 8387 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
aca7a3d2
MB
8388
8389 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
8390 subset or superset.
8391
73acf815 83922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8393
8394 * emacs.c (main): Call init_charset after syms_of_XXX.
8395
1f45f627 8396 * charset.c (Vcharset_map_directory): Delete.
1f204af3 8397 (Vcharset_map_path): New variable.
aca7a3d2
MB
8398 (load_charset_map_from_file): Use Vcharset_map_path instead.
8399 (init_charset): Initialize Vcharset_map_path.
8400 (syms_of_charset): Delete declaration of "charset-map-directory",
8401 add declaration of "charset-map-path".
8402
73acf815 84032008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8404
4c4475a8
GM
8405 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
8406 ASCII only string.
aca7a3d2
MB
8407
8408 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
8409
8410 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
6f69e89b 8411 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
aca7a3d2 8412
73acf815 84132008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8414
8415 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
8416
8417 * coding.c (QCmnemonic, QCdefalut_char)
8418 (QCdecode_translation_table, QCencode_translation_table)
8419 (QCpost_read_conversion, QCpre_write_conversion): New variables.
8420 (get_translation_table): Return a list of translation tables if
8421 necessary.
8422 (decode_coding): Call get_translation_table with ENCODEP 0.
8423 (char_encodable_p): If translation_table is non-nil, always call
8424 translate_char.
8425 (Fdefine_coding_system_internal): Accept list of translation
8426 tables as :encode-translation-table and :decode-translation-table.
8427 (Fcoding_system_put): New function.
8428 (syms_of_coding): Declare new symbols. Defsubr
8429 Scoding_system_put.
4c4475a8
GM
8430 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
8431 typically JISX0212.
aca7a3d2
MB
8432
8433 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
8434 when the charset is superset type.
8435
8436 * character.c (translate_char): Accept list of translation tables.
8437
73acf815 84382008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8439
1f45f627 8440 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
aca7a3d2
MB
8441 (CODING_ATTR_TRANS_TBL): New macro.
8442
8443 * coding.c (get_translation_table): New function.
8444 (translate_chars): Fix the bug of skipping annotation data.
4c4475a8
GM
8445 (decode_coding, encode_coding): Utilize get_translation_table.
8446 (char_encodable_p, Funencodable_char_position): Translate char if
8447 necessary.
8448 (Ffind_coding_systems_region_internal)
8449 (Fcheck_coding_systems_region): Setup translation table for encode
8450 in a coding system attribute vector in advance.
aca7a3d2
MB
8451 (Fdefine_coding_system_internal): Allow a symbol as translation
8452 table. For shift-jis type coding system, allow 4th charset.
8453
73acf815 84542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8455
8456 * coding.c (decode_coding_sjis): Check the first byte rigidly.
8457
8458 * xdisp.c (get_next_display_element): Pass -1 as POS to
8459 FACE_FOR_CHAR if displaying a C-string.
8460
73acf815 84612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8462
8463 * composite.c (get_composition_id): Handle xoff and yoff in a
8464 composition rule.
8465
8466 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
8467 (struct composition): New member lbearing and rbearing.
8468
8469 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
8470 (x_get_glyph_overhangs): Handle a composition glyph.
1f45f627 8471 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
aca7a3d2
MB
8472
8473 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
8474 composition glyph.
8475
73acf815 84762008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8477
8478 * print.c: Include charset.h.
8479 (Vprint_charset_text_property): New variable.
8480 (Qdefault): Extern it.
8481 (PRINT_STRING_NON_CHARSET_FOUND)
8482 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
8483 (print_check_string_result): New variable.
8484 (print_check_string_charset_prop): New function.
8485 (print_prune_charset_plist): New variable.
8486 (print_prune_string_charset): New function.
8487 (print_object): Call print_prune_string_charset if
8488 Vprint_charset_text_property is not t.
8489 (print_interval): Print nothing if itnerval->plist is nil.
8490 (syms_of_print): Declare Vprint_charset_text_property as a lisp
8491 variable. Init and staticpro print_prune_charset_plist.
8492
73acf815 84932008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8494
8495 * fontset.c (new_fontset_from_font_name): Use the specified font
8496 for all characters in the new fontset.
8497
8498 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
8499 OBJECT args.
8500
8501 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
8502 OBJECT args for composition too.
8503
8504 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
8505 OBJECT args.
8506
73acf815 85072008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8508
8509 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
8510
1f45f627 8511 * fontset.c (reorder_font_vector): Adjust for the change of
aca7a3d2 8512 FONT_DEF format.
1f45f627 8513 (fontset_face): New arg id. Change caller.
aca7a3d2 8514 (face_for_char): New args pos and object.
1f204af3 8515 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
aca7a3d2
MB
8516 (fs_query_fontset): Check NAME by Fassoc too.
8517 (Fset_fontset_font): Allow non-XLFD font name.
1f45f627 8518 (Ffontset_info): Adjust for the change of FONT_DEF format.
aca7a3d2 8519
1f45f627 8520 * fontset.h (face_for_char): Adjust prototype.
aca7a3d2 8521
4c4475a8
GM
8522 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
8523 (append_space, extend_face_to_end_of_line)
8524 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
8525 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
aca7a3d2
MB
8526
8527 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
8528 POS and OBJECT args.
8529
8530 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
8531 POS and OBJECT args.
8532
73acf815 85332008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
8534
8535 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
8536 of GlobalAlloc'ed memory.
8537
73acf815 85382008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8539
8540 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
8541
8542 * charset.h (charset_table_used): Delete extern.
8543
8544 * charset.c (charset_table_used): Make it static.
8545 (map_charset_chars): Fix args to c_function with.
8546
8547 * chartab.c (map_sub_char_table_for_charset): Fix args to
8548 c_function with.
8549
8550 * coding.h (enum coding_result_code): Delete
8551 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
8552
8553 * coding.c (Qinsufficient_source, Qinconsistent_eol)
1f45f627 8554 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
aca7a3d2
MB
8555 (Vlast_code_conversion_error): New variables.
8556 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
8557 (ONE_MORE_BYTE): Record error if any instead of signaling an
8558 error. If non-ASCII multibyte char is found, return the negative
8559 value of the code. All callers changed to check it.
8560 (ONE_MORE_BYTE_NO_CHECK): Likewise.
1f45f627
GM
8561 (record_conversion_result): New function. Change all codes setting
8562 coding->result to call this function.
4c4475a8
GM
8563 (detect_coding_utf_8, decode_coding_utf_8)
8564 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
8565 Don't use the local variable incomplete.
aca7a3d2 8566 (emacs_mule_char): Change the second arg to `const'.
aca7a3d2
MB
8567 (decode_coding): Fix of flushing out unprocessed data.
8568 (make_conversion_work_buffer): Fix making of a work buffer.
2a2e8de7 8569 (decode_coding_object): Return coding->dst_object.
aca7a3d2
MB
8570
8571 * fontset.c (set_fontset_font): Fix args.
8572
8573 * lisp.h (CHARACTERBITS): Define as 22.
8574
8575 * process.c (send_process): Be sure to set coding->src_multibyte.
8576
8577 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
8578
73acf815 85792008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8580
8581 * xdisp.c (handle_auto_composed_prop): Give limit to
8582 Fnext_single_char_property_change.
8583
73acf815 85842008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8585
424c157f 8586 * composite.c (syms_of_composite): Don't make the composition hash
1f45f627 8587 table weak.
aca7a3d2
MB
8588
8589 * fontset.c (Fset_fontset_font): Fix docstring.
8590
8591 * lisp.h (detect_coding_system): Adjust prototype.
8592
8593 * fileio.c (kill_workbuf_unwind): Delete this function.
8594 (Finsert_file_contents): Adjust the call of detect_coding_system.
8595 Get conversion_buffer by code_conversion_save. Use the macor
8596 CODING_MAY_REQUIRE_DECODING. After decoding, update
8597 coding_system.
8598
8599 * coding.h (make_conversion_work_buffer): Delete extern.
8600 (code_conversion_save): Extern it.
8601
8602 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
1f45f627 8603 (CODING_GET_INFO): Delete argument eol_type. Change callers.
aca7a3d2
MB
8604 (decode_coding_utf_8): Don't do eol converion.
8605 (detect_coding_utf_16): Check coding->src_chars, not
1f45f627 8606 coding->src_bytes. Add heuristics for those that have no signature.
4c4475a8
GM
8607 (decode_coding_emacs_mule, decode_coding_iso_2022)
8608 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
8609 Don't do eol converion.
aca7a3d2
MB
8610 (adjust_coding_eol_type): Return a new coding system.
8611 (detect_coding): Don't detect eol. Fix for utf-16 detection.
8612 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
8613 each change.
8614 (decode_coding): Pay attention to undo_list. Do eol convesion for
8615 all types of coding-systems (if necessary).
8616 (Vcode_conversion_work_buf_list): Delete it.
1f45f627 8617 (Vcode_conversion_reused_workbuf): Rename from
aca7a3d2
MB
8618 Vcode_conversion_reused_work_buf.
8619 (Vcode_conversion_workbuf_name): New variable.
8620 (reused_workbuf_in_use): New variable.
8621 (make_conversion_work_buffer): Delete the arg DEPTH.
4c4475a8 8622 (code_conversion_restore): Change argument to cons.
1f45f627
GM
8623 (code_conversion_save): Delete the argument BUFFER. Change callers.
8624 (detect_coding_system): New argument src_chars. Change callers.
aca7a3d2
MB
8625 Fix for utf-16 detection.
8626 (init_coding_once): Don't use ISO_carriage_return.
1f45f627 8627 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
aca7a3d2
MB
8628 reused_workbuf_in_use.
8629
73acf815 86302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8631
8632 * keymap.c (store_in_keymap): Pay attention to the case that idx
8633 is a cons specifying a character range.
8634
73acf815 86352008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8636
8637 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
8638 HANDLED_RECOMPUTE_PROPS.
8639
8640 * coding.c (Fdefine_coding_system_internal): Fix checking of
8641 ascii compatibility.
8642
73acf815 86432008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8644
1f45f627 8645 * charset.c (find_charsets_in_text): Delete unused locale variable.
aca7a3d2
MB
8646 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
8647
8648 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
8649 Resync charset_list to Vemacs_mule_charset_list.
8650
8651 * keymap.c (store_in_keymap): Pay attention to the case that idx
8652 is a cons specifying a character range.
8653
73acf815 86542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8655
8656 * composite.c (update_compositions): Bind inhibit-read-only, etc
8657 to t before calling remove-list-of-text-properties.
8658
8659 * print.c (print_object): Always print ASCII chars as is.
8660
73acf815 86612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8662
1f45f627 8663 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
aca7a3d2 8664
4c4475a8
GM
8665 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
8666 is a char table.
aca7a3d2 8667
73acf815 86682008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8669
1f45f627 8670 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
aca7a3d2 8671
73acf815 86722008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8673
8674 * xfaces.c (set_lface_from_font_name): Fix for the case that
8675 FONTNAME is not fontset name.
8676
73acf815 86772008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8678
8679 * fns.c (base64_encode_1): Fix previous change.
8680
73acf815 86812008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8682
8683 * fontset.c (set_fontset_font): New function.
8684 (Fset_fontset_font): If a font is specified for a charset, use
8685 map_charset_chars to store the font spec in a fontset.
8686
73acf815 86872008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8688
1f204af3 8689 * fontset.c (fontset_face): Create a fallback fontset on demand.
aca7a3d2
MB
8690 (make_fontset): Don't create a fallback fontset here.
8691 (free_face_fontset): Free a fallback fontset (if any) too.
8692 (n_auto_fontsets): Delete this variable.
8693 (auto_fontset_alist): New variable.
8694 (new_fontset_from_font_name): Check auto_fontset_alist.
8695 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
8696 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
8697 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
8698 Defsubr Sfontset_list_all.
8699
73acf815 87002008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8701
8702 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
8703
73acf815 87042008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8705
8706 * fontset.c (Fnew_fontset): Check NAME more rigidly.
8707
73acf815 87082008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8709
8710 * editfns.c (Fgoto_char): Fix docstring.
8711
73acf815 87122008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8713
8714 * insdel.c (insert_from_gap): Adjust intervals correctly.
8715
73acf815 87162008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
8717
8718 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
8719 (pfnGetFontUnicodeRanges): New dynamically loaded function.
8720 (w32_initialize): Try to load it.
8721 (x_get_font_repertory): Use it if available.
8722 (w32_encode_char): Add shortcut for unicode output.
8723
8724 * w32fns.c (w32_load_system_font): Default charset to -1.
8725 (x_to_w32_charset): Match all fonts for unicode.
1f45f627 8726 (w32_to_x_charset): New parameter matching. Don't return partial
aca7a3d2
MB
8727 or wildcard charsets.
8728 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
8729 (w32_codepage_for_font): Return CP_UNICODE for unicode.
8730 (w32_to_x_font): Match charset to real charset.
8731 (enum_font_cb2): Always list unicode versions.
8732
8733 * makefile.w32-in (temacs): Increase EMHEAP.
8734
73acf815 87352008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
8736
8737 * w32term.c (w32_encode_char): New charset parameter.
8738 font_info.encoding becomes encoding_type.
1f45f627 8739 (x_get_font_repertory): New function. Warning: stub only!
aca7a3d2
MB
8740 (x_new_font): Return quickly if font already set.
8741 (x_new_fontset): fontsetname parameter is Lisp_Object.
2a2e8de7
JB
8742 Use new fs_query_fontset. Try new_fontset_from_font_name.
8743 Use fontset_name for return value.
aca7a3d2
MB
8744
8745 * w32term.h: Declare x_get_font_repertory.
8746
8747 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
1f45f627 8748 place of find_charset_in_text. Use encode_coding_object in place
aca7a3d2
MB
8749 of encode_coding.
8750 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
8751 decode_coding.
8752
8753 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
8754 of x_new_fontset.
8755 (w32_load_system_font): Initialize charset as unicode.
8756 font_info.encoding becomes encoding_type.
1f45f627
GM
8757 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
8758 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
aca7a3d2
MB
8759 (syms_of_w32fns): Set get_font_repertory_func.
8760
1f45f627 8761 * w32console.c: Include character.h. Use terminal_encode_buffer
aca7a3d2 8762 from term.c.
1f45f627 8763 (write_glyphs): Use new version of encode_terminal_code. Use
aca7a3d2
MB
8764 encode_coding_object in place of encode_coding.
8765
8766 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
8767 encoding becomes encoding_type.
8768
8769 * term.c (terminal_encode_buffer): Make externally visible.
8770
8771 * makefile.w32-in: Add character.h dependancies.
8772 (character.o, chartab.o): New targets.
8773
73acf815 87742008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8775
8776 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
1f45f627 8777 CODING_ID_EOL_TYPE.
aca7a3d2 8778
73acf815 87792008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
8780
8781 * coding.c (produce_chars): Revert last change.
8782
73acf815 87832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8784
8785 * charset.h (charset_unicode): Extern it.
8786
8787 * charset.c (string_xstring_p): Check by (C >= 0x100).
1f45f627 8788 (find_charsets_in_text): Change format of the arc CHARSETS. New
aca7a3d2 8789 arg MULTIBYTE.
1f45f627 8790 (Ffind_charset_region, Ffind_charset_string): Adjust for the
aca7a3d2
MB
8791 change of find_charsets_in_text.
8792 (Fsplit_char): Fix doc. Never return unknown.
8793
8794 * chartab.c (char_table_translate): Use CHARACTERP, not INETEGERP.
8795
8796 * coding.c (Fdefine_coding_system_alias): Update
8797 Vcoding_system_list.
8798
8799 * fontset.c (load_font_get_repertory): Pay attention to the case
8800 that ENCODING of a font is specified by a char-table.
8801
8802 * xterm.c (x_get_font_repertory): Handle the case that the
8803 encoding of font is other than Unicode.
8804
73acf815 88052008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8806
8807 * term.c (encode_terminal_code): Don't handle glyph-table. Check
8808 if a character is encodable by the terminal coding system. If
8809 not, produces proper number of `?'s. Update
8810 terminal_encode_buffer and terminal_encode_buf_size if necessary.
8811 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
8812
73acf815 88132008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8814
8815 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
8816 variables.
1f45f627 8817 (encode_terminal_code): Change argument. Encode multiple
aca7a3d2
MB
8818 characters at once. Store the result of encoding in
8819 terminal_encode_buffer.
4c4475a8
GM
8820 (write_glyphs, insert_glyphs): Adjust for the change of
8821 encode_terminal_code.
aca7a3d2
MB
8822 (term_init): Initialize terminal_encode_buffer and
8823 terminal_encode_buf_size.
8824
8825 * coding.c (consume_chars): If coding->src_object is nil, don't
8826 check annotation.
8827
73acf815 88282008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8829
8830 * character.c (char_string): Use ASCII_CHAR_P instead of
8831 SINGLE_BYTE_CHAR_P.
8832
73acf815 88332008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8834
8835 * xdisp.c (handle_auto_composed_prop): Check if the last
8836 characters of auto-composed region is newly composed with the
8837 following characters.
8838 (handle_composition_prop): Fix checking of point being inside
8839 composition.
8840
73acf815 88412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8842
8843 * fns.c (concat): Don't change multibyteness of the result by
8844 concatenating an 8-bit character.
8845
8846 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
8847 multibyteness of the result when newelt is an 8-bit character.
8848
73acf815 88492008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8850
8851 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
8852 EMACS_INT.
8853
8854 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
8855
8856 * xfaces.c (face_numeric_value): Declare dim size_t.
8857 (Finternal_lisp_face_equal_p): Remove unused f.
8858
8859 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
8860 (MATRIX_ROW): Remove unused vars.
8861 (draw_glyphs, x_insert_glyphs, fast_find_position)
8862 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
8863 byte/char counts.
8864
8865 * regex.c (regex_compile): Remove unused var.
8866
8867 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
8868
8869 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
8870 (Faccessible_keymaps, where_is_internal): Remove unused vars.
8871
8872 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
8873
8874 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
8875
8876 * fileio.c (Fwrite_region): Remove unused var.
8877
8878 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
8879 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
8880
8881 * composite.c (Fremove_list_of_text_properties): Declare.
8882
1f45f627
GM
8883 * coding.c (inhibit_pre_post_conversion): Remove (unused).
8884 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
aca7a3d2
MB
8885 (coding_inherit_eol_type): Remove unused attrs.
8886 (detect_coding): Cast arg of detect_eol.
8887
8888 * charset.c (syms_of_charset): Remove unused var p.
8889 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
8890 byte/char counts.
8891
8892 * casetab.c (set_case_table): Remove unused var.
8893
8894 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
1f45f627 8895 unused vars.
aca7a3d2 8896
73acf815 88972008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8898
8899 * xterm.c (x_bitmap_mask): Declare.
8900
73acf815 89012008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8902
8903 * xterm.c (x_term_init): Fix type error.
8904
8905 * lisp.h: Add Funibyte_char_to_multibyte.
8906
8907 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
8908 (Fset_coding_system_priority): Doc fix.
8909
aca7a3d2
MB
8910 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
8911
8912 * indent.c (check_composition): Make start and end EMACS_INT.
8913
8914 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
8915
8916 * xdisp.c (handle_composition_prop, check_point_in_composition):
8917 Make buffer positions EMACS_INT.
8918
8919 * composite.c (find_composition, run_composition_function)
8920 (update_compositions, Ffind_composition_internal): Make buffer
8921 positions EMACS_INT.
8922
8923 * composite.h (find_composition, update_compositions): Make
8924 position args EMACS_INT.
8925
1f45f627 8926 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
aca7a3d2
MB
8927
8928 * intervals.c (get_property_and_range):
8929 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
8930
8931 * unexalpha.c: Don't include varargs.h.
8932
73acf815 89332008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8934
8935 * coding.h (ENCODE_UTF_8): New.
8936
8937 * Makefile.in (gtkutil.o): Depend on coding.h.
8938
8939 * coding.c (Fset_coding_system_priority): Doc fix.
8940
73acf815 89412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8942
8943 * fileio.c (Finsert_file_contents): Call setup_coding_system in
8944 the case of auto saving.
8945
73acf815 89462008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2 8947
4c4475a8
GM
8948 * chartab.c (map_char_table, map_char_table_for_charset): Protect
8949 `range' from GC.
aca7a3d2 8950
73acf815 89512008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8952
8953 * coding.c (decode_coding_sjis): Check bytes more rigidly.
8954
73acf815 89552008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8956
1f45f627 8957 * fileio.c (choose_write_coding_system): Return a decided coding system.
aca7a3d2
MB
8958 (Fwrite_region): Set Vlast_coding_system_used to the return value
8959 of choose_write_coding_system.
8960
73acf815 89612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8962
8963 * charset.c (Fset_charset_priority): Pay attention to duplicated
8964 arguments.
8965
8966 * coding.c (QCcategory): New variable.
8967 (syms_of_coding): Defsym it. Set all elements of
8968 Vcoding_category_table and their symbol values.
8969 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
8970 coding-category-XXX, and coding-category-list.
8971 (Fdefine_coding_system_internal): Add category in the plist.
8972
73acf815 89732008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8974
8975 * callproc.c (Fcall_process): Handle carryover correctly.
8976
1f45f627 8977 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
aca7a3d2
MB
8978 (raw_text_coding_system): Check NILP (coding_system).
8979 (coding_inherit_eol_type): Check NILP (coding_system) and
8980 NILP (parent).
8981 (consume_chars): Fix for the case of raw-text.
8982
8983 * process.c (read_process_output): Handle carryover correctly.
8984
73acf815 89852008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8986
8987 * regex.c (re_search_2): Fix last change.
8988
73acf815 89892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8990
8991 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
8992 target_multibyte. Even in a unibyte case, return a converted
8993 multibyte char.
8994 (GET_CHAR_AFTER): New macro.
8995 (PATFETCH): Translate via multibyte char.
8996 (HANDLE_UNIBYTE_RANGE): Delete this macro.
8997 (SETUP_MULTIBYTE_RANGE): New macro.
8998 (regex_compile): Setup compiled code so that its multibyteness
8999 matches that of a target. Fix the handling of "[X-YZ]" using
9000 SETUP_MULTIBYTE_RANGE.
9001 (analyse_first) <charset>: For filling fastmap for all multibyte
9002 characters, don't check by BASE_LEADING_CODE_P.
9003 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
9004 the same as RE_MULTIBYTE_P (bufp) now.
1f45f627 9005 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
aca7a3d2
MB
9006 (TARGET_CHAR_AND_LENGTH): Delete this macro.
9007 (TRANSLATE_VIA_MULTIBYTE): New macro.
9008 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
9009 It is the same as RE_MULTIBYTE_P (bufp) now.
9010 <exactn>: Translate via multibyte.
9011 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
9012 translate it.
9013 <charset, charset_not>: Fetch a character by
9014 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
9015 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
9016 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
9017 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
9018 by GET_CHAR_AFTER.
c5ad7a3d 9019 (bcmp_translate): Likewise.
aca7a3d2
MB
9020
9021 * search.c (compile_pattern): Check the member target_multibyte,
9022 not the member multibyte of buf.
9023
9024 * lread.c (read1): While reading a string, set force_singlebyte
9025 and force_multibyte correctly.
9026
4c4475a8
GM
9027 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
9028 up of unibyte_to_multibyte_table.
aca7a3d2 9029
73acf815 90302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9031
9032 * coding.c (setup_coding_system): If coding has
9033 post-read-conversion or pre-write-conversion, set
9034 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
9035 respectively.
9036 (decode_coding_gap): Run post-read-conversion if any.
9037
9038 * fileio.c (Finsert_file_contents): Even if we read into a
9039 unibyte buffer, check if we must decode the result or not.
9040
73acf815 90412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9042
9043 * coding.c (make_conversion_work_buffer): Change the work buffer
9044 name to the same one as that of Emacs 21.
9045
73acf815 90462008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9047
1f45f627 9048 * coding.h (make_conversion_work_buffer): Adjust prototype.
aca7a3d2
MB
9049 (code_conversion_restore): Don't extern it.
9050
9051 * coding.c (detected_mask): Delete unused variable.
9052 (decode_coding_iso_2022): Pay attention to the byte sequence of
9053 CTEXT extended segment, and retain those bytes as is.
9054 (decode_coding_ccl): Delete unused variable `valids'.
9055 (setup_coding_system): Delete unused variable `category'.
9056 (consume_chars): Delete unused variable `category'. Make it work
9057 for non-multibyte case.
1f45f627 9058 (make_conversion_work_buffer): Change argument.
aca7a3d2
MB
9059 (saved_coding): Delete unused variable.
9060 (code_conversion_restore): Don't check saved_coding->destination.
9061 (code_conversion_save): New function.
9062 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
9063 instead of record_unwind_protect.
1f45f627 9064 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
aca7a3d2 9065 (detect_coding_system): Delete unused variable `mask'.
1f45f627 9066 (Fdefine_coding_system_internal): Delete unused vaiable id.
aca7a3d2
MB
9067
9068 * fileio.c (kill_workbuf_unwind): New function.
9069 (Finsert_file_contents): On replacing, call
9070 make_conversion_work_buffer with correct args, and call
9071 record_unwind_protect with the first arg kill_workbuf_unwind.
9072
9073 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
9074
73acf815 90752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9076
1f45f627 9077 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
aca7a3d2
MB
9078 (fontset_add): Fix for the case that TO is less than TO1.
9079 (Ffontset_info): Don't use fallback fontset on checking the
9080 default fontset.
9081 (dump_fontset): New function for debugging.
9082
9083 * coding.c (Fdefine_coding_system_internal): Fix for the case that
9084 coding_type is Qcharset.
9085
73acf815 90862008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9087
9088 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
9089 (map_char_table): Don't inherit the value from the parent on
1f45f627 9090 initializing VAL. Adjust for the above change.
aca7a3d2 9091
73acf815 90922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9093
9094 * coding.c (Qsignature, Qendian): Delete these variables.
9095 (syms_of_coding): Don't initialize them.
9096 (CATEGORY_MASK_UTF_16_AUTO): New macro.
9097 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
9098 detect_info->found.
9099 (decode_coding_utf_16): Don't detect BOM here.
9100 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
9101 is NOT utf_16_without_bom.
9102 (setup_coding_system): For a coding system of type utf-16, check
9103 if the attribute :endian is Qbig or not (not nil or not), and set
9104 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
9105 (detect_coding): If coding type is utf-16 and BOM detection is
9106 required, detect it.
9107 (Fdefine_coding_system_internal): For a coding system of type
1f45f627 9108 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
aca7a3d2 9109
73acf815 91102008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9111
9112 * coding.c (coding_set_source): Fix for the case that the current
9113 buffer is different from coding->src_object.
9114 (decode_coding_object): Don't use the conversion work buffer if
9115 DST_OBJECT is a buffer.
9116
73acf815 91172008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9118
9119 * lread.c (read_emacs_mule_char) [len==2]: Index
9120 emacs_mule_charset correctly.
9121
73acf815 91222008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9123
9124 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
9125 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
1f45f627 9126 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
aca7a3d2
MB
9127 treated specially.)
9128 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
9129 (detected_mask): Remove Big5 bits.
9130
73acf815 91312008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9132
9133 The following changes are to make the font rescaling facility
9134 compatible with Emacs 21.
9135
1f45f627 9136 * xfaces.c (Vface_font_rescale_alist): Rename from
aca7a3d2
MB
9137 Vface_resizing_fonts.
9138 (struct font_name): Rename member resizing_ratio to rescale_ratio.
1f45f627 9139 (font_rescale_ratio): Rename from font_resizing_ratio.
aca7a3d2
MB
9140 (split_font_name): Set font->rescale_ratio.
9141 (better_font_p): Pay attention to font->rescale_ratio.
9142 (build_scalable_font_name): Likewise. Change RESX, and RESY
9143 fields.
1f45f627 9144 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
aca7a3d2 9145
73acf815 91462008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9147
9148 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
9149 (Qutf_16_le): Remove these variables.
9150 (syms_of_coding): Don't DEFSYM them.
9151 (decode_coding_utf_16): Fix handling of BOM.
9152 (encode_coding_utf_16): Fix handling of BOM.
9153
73acf815 91542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9155
9156 * fileio.c (Finsert_file_contents): On replacing, before decoding
1f45f627 9157 the file into the work buffer, set point of the work buffer to the end.
aca7a3d2 9158
73acf815 91592008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9160
9161 * coding.c (Fcheck_coding_systems_region): Fix type errors.
9162
73acf815 91632008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9164
9165 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
9166 and fix C types.
9167
73acf815 91682008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9169
9170 * xdisp.c (SKIP_GLYPHS): New macro.
9171 (set_cursor_from_row): Pay attention to string display properties.
9172
9173 * category.c (copy_category_entry): Fix for the case that RANGE
9174 is an integer.
9175
9176 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
9177
1f45f627 9178 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
aca7a3d2 9179
73acf815 91802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9181
9182 * charset.c (Fcharset_id_internal): New function.
9183 (syms_of_charset): Defsubr it.
9184
9185 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
9186 with the last arg charset_list acquired from coding.
9187 (Fdefine_coding_system_internal): For ccl-based coding system, fix
9188 the attribute coding_attr_ccl_valids.
9189
9190 * coding.h (enum define_coding_ccl_arg_index): Set the first
9191 member coding_arg_ccl_decoder to coding_arg_max.
9192
1f45f627 9193 * ccl.h (ccl_driver): Adjust prototype.
aca7a3d2
MB
9194
9195 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
9196 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
9197 of DECODE_CAHR, ENCODE_CHAR, CHAR_CHARSET.
4c4475a8
GM
9198 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
9199 last arg Qnil.
aca7a3d2 9200
73acf815 92012008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9202
9203 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
9204 call encode_char.
9205
1f45f627 9206 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
aca7a3d2 9207
73acf815 92082008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 9209
1f45f627 9210 * composite.c (syms_of_composite): Make composition_hash_table weak.
aca7a3d2 9211
73acf815 92122008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9213
9214 * dispextern.h (check_face_attributes, generate_ascii_font_name)
9215 (font_name_registry): Don't extern them.
1f45f627 9216 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
aca7a3d2
MB
9217
9218 * fontset.h (Qfontset): Don't extern it.
9219 (new_fontset_from_font_name): Extern it.
9220
9221 * fontset.c: Give 8 extra slots to fontset objects.
9222 (Qfontset_info): New variable.
9223 (syms_of_fontset): Defsym it.
9224 (FONTSET_FALLBACK): New macro.
9225 (fontset_face): Try also the default fontset.
1f45f627
GM
9226 (make_fontset): Realize a fallback fontset from the default fontset.
9227 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
aca7a3d2
MB
9228 using split_font_name_into_vector and build_font_name_from_vector.
9229 (Fset_fontset_font): Access the elements of font_spec by enum
9230 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
9231 name by using split_font_name_into_vector.
9232 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
9233 generate a proper font name from the fontset name. Update
9234 Vfontset_alias_alist.
9235 (n_auto_fontsets): New variable.
9236 (new_fontset_from_font_name): New function.
9237 (Ffont_info): Store the information about fonts generated from the
1f45f627 9238 default fontset in the first extra slot of the returned char-table.
aca7a3d2 9239
1f45f627
GM
9240 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
9241 (font_name_registry): Delete function.
aca7a3d2
MB
9242 (split_font_name_into_vector): New function.
9243 (build_font_name_from_vector): New function.
1f45f627 9244 (font_list): The argument REGISTRY is now a list of registry names.
aca7a3d2
MB
9245 (choose_face_font): If we are choosing an ASCII font, and ATTRS
9246 specifies an explicit font name, return the name as is. Make a
9247 list of registy names.
9248
1f45f627 9249 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
aca7a3d2
MB
9250 of x_new_fontset.
9251 (Fx_create_frame): Don't call x_new_fontset here. Just use
9252 x_list_fonts to check the existence of fonts.
9253
1f45f627 9254 * xterm.h (x_new_fontset): Adjust prototype.
aca7a3d2
MB
9255
9256 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
9257 string. Use new_fontset_from_font_name to create a fontset from a
9258 font name.
9259
1c8658b9
GM
92602008-02-01 Kenichi Handa <handa@m17n.org>
9261
9262 * syntax.c (Vfind_word_boundary_function_table): New name for
9263 Vnext_word_boundary_function_table.
9264 (find-word-boundary-function-table): New name for
9265 next-word-boundary-function-table.
9266
73acf815 92672008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9268
9269 * Makefile.in: Fix some dependencies.
9270
9271 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
9272 set it to nil before returning.
9273
9274 * composite.c (update_compositions): Fix type error.
9275
9276 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
9277
73acf815 92782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9279
9280 * xterm.c (x_new_font): Optimize for the case that the font is
9281 already set for the frame.
9282
73acf815 92832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9284
9285 * chartab.c (char_table_ascii): Check if the char table contents
9286 is sub-char-table or not.
4c4475a8
GM
9287 (char_table_set, char_table_set_range): Fix argument to
9288 char_table_ascii.
aca7a3d2
MB
9289
9290 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
9291 (detect_coding_utf_8, detect_coding_utf_16)
9292 (detect_coding_emacs_mule, detect_coding_iso_2022)
9293 (detect_coding_sjis, detect_coding_big5)
9294 (detect_coding_ccl, detect_coding_charset): Change argument MASK
9295 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
1f45f627 9296 sequence is valid in this coding system. Change callers.
aca7a3d2
MB
9297 (MAX_ANNOTATION_LENGTH): New macro.
9298 (ADD_ANNOTATION_DATA): New macro.
1f45f627
GM
9299 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
9300 ADD_ANNOTATION_DATA. Change the format of annotation data.
aca7a3d2 9301 (ADD_CHARSET_DATA): New macro.
1f45f627 9302 (emacs_mule_char): New argument ID. Change callers.
aca7a3d2
MB
9303 (decode_coding_emacs_mule, decode_coding_iso_2022)
9304 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
9305 Produce charset annotation data in coding->charbuf.
9306 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
9307 to charset annotation data in coding->charbuf.
9308 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
9309 coding->common_flags if the coding system is iso-2022 based and
9310 uses designation.
1f45f627 9311 (produce_composition): Adjust for the new annotation data format.
aca7a3d2
MB
9312 (produce_charset): New function.
9313 (produce_annotation): Handle charset annotation.
9314 (handle_composition_annotation, handle_charset_annotation): New
9315 functions.
9316 (consume_chars): Handle charset annotation. Utilize the above two
9317 functions.
9318 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
9319 buffer, get the deleted text as a string and set
9320 coding->src_object to that string.
9321 (detect_coding, detect_coding_system): Use the new struct
9322 coding_detection_info.
9323
9324 * coding.h (struct coding_detection_info): New structure.
1f45f627 9325 (struct coding_system): Adjust prototype of the member `detector'.
aca7a3d2
MB
9326 (CODING_ANNOTATE_CHARSET_MASK): New macro.
9327
73acf815 93282008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9329
9330 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
9331
73acf815 93322008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 9333
1f45f627 9334 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
aca7a3d2
MB
9335 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
9336 to new local and nullify apropos_accumulate before returning.
9337 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
9338
73acf815 93392008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9340
9341 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
9342 correctly.
9343
73acf815 93442008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9345
9346 * fns.c (Flanginfo): Call synchronize_system_time_locale.
9347
73acf815 93482008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9349
9350 The following changes are to make character composition happen
9351 automatically on displaying.
9352
2a2e8de7 9353 * Makefile.in (lisp, shortlisp): Add composite.elc.
aca7a3d2 9354
1f45f627
GM
9355 * composite.h (Qauto_composed, Vauto_composition_function)
9356 (Qauto_composition_function): Extern them.
aca7a3d2 9357
1f45f627
GM
9358 * composite.c (Vcomposition_function_table)
9359 (Qcomposition_function_table): Delete variables.
9360 (Qauto_composed, Vauto_composition_function)
9361 (Qauto_composition_function): New variables.
aca7a3d2
MB
9362 (run_composition_function): Don't call
9363 compose-chars-after-function.
9364 (update_compositions): Clear `auto-composed' text property.
9365 (compose_chars_in_text): Delete this function.
9366 (syms_of_composite): Staticpro Qauto_composed and
9367 Qauto_composition_function. Declare Vauto_composition_function as
9368 a Lisp variable.
9369
9370 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
9371
9372 * xdisp.c (it_props): Add an entry for Qauto_composed.
9373 (handle_auto_composed_prop): New function.
9374
9375 * xselect.c (selection_data_to_lisp_data): Don't call
9376 compose_chars_in_text.
9377
73acf815 93782008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9379
9380 * keyboard.c (read_char): Modify checking around use of
9381 Vkeyboard_translate_table.
9382
9383 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
9384 and fix C types.
9385
73acf815 93862008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9387
4c4475a8
GM
9388 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
9389 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9390 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
aca7a3d2 9391 the case that the last byte is '\r' correctly.
1f45f627
GM
9392 (decode_coding): Flush out the unprocessed data correctly.
9393 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
aca7a3d2 9394
73acf815 93952008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 9396
f245f2c6
JB
9397 * xterm.c (XTread_socket): Fix changes for defined keysyms.
9398 Add XK_ISO... case.
aca7a3d2
MB
9399 (xaw_scroll_callback): Revert last change.
9400
73acf815 94012008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9402
1f45f627 9403 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
aca7a3d2 9404
73acf815 94052008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9406
9407 * xfaces.c (Vface_resizing_fonts): New variable.
9408 (struct font_name): New member `resizing_ratio'.
9409 (font_resizing_ratio): New function.
9410 (split_font_name): Set font->resizing_ratio.
9411 (better_font_p): Pay attention to font->resizing_ratio.
9412 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
9413 RESX, and RESY fields.
9414 (try_alternative_families): Try scalable fonts if
9415 Vscalable_fonts_allowed is not Qt.
9416 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
9417
73acf815 94182008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9419
9420 * xterm.c (xaw_scroll_callback): Cast correctly.
9421
73acf815 94222008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9423
9424 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
9425 (lispy_kana_keys): Comment out.
9426 (make_lispy_event) [XK_kana_A]: Comment out.
9427
9428 * xterm.c (xaw_scroll_callback): Cast call_data.
9429 (XTread_socket): Deal with ASCII keysyms.
9430 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
9431
73acf815 94322008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9433
9434 * xterm.c (Vx_keysym_table): New.
9435 (syms_of_xterm): Initialize it.
9436 (XTread_socket): Use it.
9437 From head: Eliminate incorrect optimization that tried to avoid
9438 decoding the output of X*LookupString.
9439 (x_get_font_repertory): Delete charset declaration.
9440
73acf815 94412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9442
1f45f627
GM
9443 * coding.c (detect_coding_charset): If only ASCII bytes are found,
9444 return 0.
aca7a3d2
MB
9445 (Fdefine_coding_system_internal): Setup
9446 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
9447
73acf815 94482008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9449
9450 * coding.c (Fcheck_coding_system): Doc fix.
9451
9452 * editfns.c (Finsert_byte): Return a proper value.
9453
73acf815 94542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9455
9456 * coding.c (decode_coding): Fix args to translate_chars. Pay
9457 attention to Vstandard_translation_table_for_decode.
9458 (encode_coding): Fix args to translate_chars. Pay attention to
9459 Vstandard_translation_table_for_encode.
9460
9461 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
9462 SINGLE_BYTE_CHAR_P.
9463
9464 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
9465 not by SINGLE_BYTE_CHAR_P.
9466
9467 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
9468 SINGLE_BYTE_CHAR_P.
9469
9470 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
9471 SINGLE_BYTE_CHAR_P.
9472
9473 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
9474 by SINGLE_BYTE_CHAR_P.
9475
9476 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
9477 SINGLE_BYTE_CHAR_P.
9478
73acf815 94792008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9480
9481 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
9482
73acf815 94832008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9484
9485 * fns.c (Flanginfo): Fix typo.
9486
9487 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
9488
73acf815 94892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9490
4c4475a8
GM
9491 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
9492 (detect_coding_emacs_mule, detect_coding_iso_2022)
9493 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
9494 incomplete byte sequence. Don't update *mask when correctly detected.
aca7a3d2 9495 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
1f45f627 9496 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
4c4475a8 9497 (detect_coding, detect_coding_system): Adjust for the changes above.
aca7a3d2 9498
73acf815 94992008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9500
1f45f627
GM
9501 * character.c (char_string): Rename from
9502 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
9503 (string_char): Rename from string_char.
aca7a3d2 9504
4c4475a8
GM
9505 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
9506 if C is greater than MAX_3_BYTE_CHAR.
9507 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
9508 string_char instead of string_char_with_unification.
aca7a3d2 9509
73acf815 95102008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9511
9512 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
9513
73acf815 95142008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9515
1f45f627 9516 * keymap.c (push_key_description): Pay attention to force_multibyte.
aca7a3d2
MB
9517
9518 * regex.c (re_search_2): Fix for the case of unibyte buffer.
9519
73acf815 95202008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9521
9522 * charset.c (define_charset_internal): Rename `supprementary'.
9523
9524 * Makefile.in (lisp, shortlisp): Remove latin-N.
9525
73acf815 95262008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9527
9528 * xfns.c (x_window, x_window): Use use_xim.
9529
9530 * xterm.c (use_xim): Initialize.
9531 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
9532 (x_term_init): Maybe set use_xim.
9533
9534 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
9535
73acf815 95362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9537
9538 * search.c (search_buffer): Fix case-fold-search of multibyte
9539 characters.
9540 (boyer_moore): Rename the last argument to char_high_bits.
9541
73acf815 95422008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9543
9544 * xdisp.c (display_string): Fix for the case of zero width glyph.
9545
9546 * xfns.c (x_set_font): Change the error message of the case that
9547 x_new_fontset returns Qt.
9548
9549 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
9550 (Finternal_set_lisp_face_attribute): Use signal_error for the
9551 error of invalid fontset.
9552
9553 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
9554 fontset, return Qt.
9555
73acf815 95562008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 9557
aca7a3d2
MB
9558 * unexelf.c (unexec): Make .got handling not SGI-specific.
9559
9560 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
9561
9562 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
9563
9564 * keyboard.c (read_key_sequence): Fix type error.
9565
9566 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
9567 type error.
9568
9569 * fontset.c (fontset_add): Return Lisp_Object.
9570
73acf815 95712008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9572
9573 * charset.h (charset_ordered_list_tick): Declare extern.
9574
73acf815 95752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9576
73acf815 9577 The following changes (and some of 2008-02-01 changes of mine) are
aca7a3d2
MB
9578 for handling syntax, category, and case conversion for unibyte
9579 characters by converting them to multibyte on the fly. With these
9580 changes, we don't have to setup syntax and case tables for unibyte
9581 characters in each language environment.
9582
9583 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
9584 multibyte if necessary.
9585
9586 * bytecode.c (Fbyte_code): Likewise.
9587
9588 * character.h (LEADING_CODE_LATIN_1_MIN)
9589 (LEADING_CODE_LATIN_1_MAX): New macros.
9590 (unibyte_to_multibyte_table): Extern it.
9591 (unibyte_char_to_multibyte): New macro.
9592 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
9593 (CHAR_LEADING_CODE): New macro.
9594 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
9595
9596 * character.c (unibyte_to_multibyte_table): New variable.
1f45f627 9597 (unibyte_char_to_multibyte): Move to character.h and define as macro.
aca7a3d2
MB
9598 (multibyte_char_to_unibyte): If C is an eight-bit character,
9599 convert it to the corresponding byte value.
9600
9601 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
9602 not 1, singals an error. Update the elements of
9603 unibyte_to_multibyte_table.
9604 (init_charset_once): Initialize unibyte_to_multibyte_table.
9605 (syms_of_charset): Define the charset `iso-8859-1'.
9606
aca7a3d2
MB
9607 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
9608 as is without converting it to unibyte. In a unibyte buffer,
9609 convert C to multibyte before checking the syntax.
9610
1f45f627 9611 * lisp.h (unibyte_char_to_multibyte): Delete extern.
aca7a3d2
MB
9612
9613 * minibuf.c (Fminibuffer_complete_word): Use the macro
9614 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
9615
9616 * regex.h (struct re_pattern_buffer): New member target_multibyte.
9617
9618 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
9619 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
9620 that is zero, convert an eight-bit char to multibyte.
9621 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
9622 non-emacs case.
9623 (PATFETCH): Convert an eight-bit char to multibyte.
9624 (HANDLE_UNIBYTE_RANGE): New macro.
9625 (regex_compile): Setup the compiled pattern for multibyte chars
9626 even if the given regex string is unibyte. Use PATFETCH_RAW
9627 instead of PATFETCH in many places. To handle `charset'
c5ad7a3d 9628 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
aca7a3d2 9629 only for ASCII chars.
1f45f627 9630 (analyse_first) <exactn>: Simplify because the compiled pattern
aca7a3d2
MB
9631 is multibyte.
9632 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
9633 <charset>: Use CHAR_LEADING_CODE to get leading codes.
1f45f627 9634 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
aca7a3d2
MB
9635 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
9636 multibyte always 1.
9637 (re_search_2): In emacs, set the locale variable multibyte to 1,
9638 otherwise to 0. New local variable target_multibyte. Check it
9639 to decide the multibyteness of STR1 and STR2. If
9640 target_multibyte is zero, convert unibyte chars to multibyte
9641 before translating and checking fastmap.
9642 (TARGET_CHAR_AND_LENGTH): New macro.
9643 (re_match_2_internal): In emacs, set the locale variable multibyte
9644 to 1, otherwise to 0. New local variable target_multibyte. Check
9645 it to decide the multibyteness of STR1 and STR2. Use
9646 TARGET_CHAR_AND_LENGTH to fetch a character from D.
9647 <charset, charset_not>: If multibyte is nonzero, check fastmap
c5ad7a3d 9648 only for ASCII chars. Call bcmp_translate with
aca7a3d2
MB
9649 target_multibyte, not with multibyte.
9650 <begline>: Declare the local variable C as `unsigned'.
9651 (bcmp_translate): Change the last arg name to target_multibyte.
9652
9653 * search.c (compile_pattern_1): Don't adjust the multibyteness of
9654 the regexp pattern and the matching target. Set cp->buf.multibyte
9655 to the multibyteness of the regexp pattern. Set
1f45f627 9656 cp->but.target_multibyte to the multibyteness of the matching target.
aca7a3d2
MB
9657 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
9658 FETCH_STRING_CHAR_ADVANCE.
9659 (Freplace_match): Convert unibyte chars to multibyte.
9660
4c4475a8
GM
9661 * syntax.c (char_quoted, back_comment, scan_words)
9662 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
9663 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
aca7a3d2 9664 unibyte chars to multibyte.
1f45f627
GM
9665 (skip_chars): Delete the arg syntaxp, and move the code for
9666 handling syntaxes to skip_syntaxes. Change callers.
aca7a3d2
MB
9667 Fix the case that the multibyteness of STRING and the current
9668 buffer doesn't match.
9669 (skip_syntaxes): New function.
9670 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
9671 SINGLE_BYTE_CHAR_P.
aca7a3d2 9672
73acf815 96732008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9674
9675 * xfaces.c (QCfontset): New variable.
9676 (LFACE_FONTSET): New macro.
9677 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
9678 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
4c4475a8
GM
9679 (Finternal_set_lisp_face_attribute)
9680 (Finternal_get_lisp_face_attribute): Handle QCfontset.
aca7a3d2
MB
9681 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
9682 check also LFACE_FONTSET_INDEX.
9683 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
9684 attrs[LFACE_FONT_INDEX].
9685 (syms_of_xfaces): Intern and staticpro QCfontset.
9686
9687 * dispextern.h (enum lface_attribute_index): New member
9688 LFACE_FONTSET_INDEX.
9689
9690 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
9691
73acf815 96922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9693
9694 * coding.c (coding_set_destination): Fix coding->destination for
9695 the case converting a region.
9696 (encode_coding_utf_8): Encode eight-bit chars as single byte.
9697 (encode_coding_object): Fix coding->dst_pos and
9698 coding->dst_pos_byte for the case converting a region.
9699
9700 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
9701
9702 * character.h (BYTE8_STRING): New macro.
9703
9704 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
9705
73acf815 97062008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9707
9708 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
9709 characters by octal form.
9710
9711 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
9712
1f45f627 9713 * buffer.h (_fetch_multibyte_char_len): Delete extern.
4c4475a8
GM
9714 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
9715 _fetch_multibyte_char_len.
aca7a3d2
MB
9716 (FETCH_CHAR_AS_MULTIBYTE): New macro.
9717
1f45f627 9718 * casetab.c (set_canon, set_identity, shuffle): Simplify.
aca7a3d2 9719
1f45f627 9720 * casefiddle.c (casify_object): Simplify. Handle the case that
aca7a3d2 9721 the case conversion change the byte length.
1f45f627 9722 (casify_region): Likewise.
aca7a3d2 9723
1f45f627 9724 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
aca7a3d2 9725
1f45f627 9726 * character.c (_fetch_multibyte_char_len): Delet this variable.
aca7a3d2
MB
9727 (syms_of_character): Setup Vprintable_chars.
9728
9729 * editfns.c (Fchar_equal): Fix for the unibyte case.
9730 (Finsert_byte): New function.
9731 (syms_of_editfns): Defsubr it.
9732
9733 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
9734 of direct code 0x3ffff.
9735
9736 * search.c (Freplace_match): Fix for the unibyte case.
9737
73acf815 97382008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9739
9740 * lread.c (safe_to_load_p): Fix the logic.
9741
9742 * syntax.c (scan_words): Don't treat characters belonging to
9743 different scripts as constituting a word.
9744
9745 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
9746
1f45f627 9747 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
aca7a3d2
MB
9748
9749 * emacs.c (main): In the case of --unibyte, instead of aborting on
9750 finding non-empty buffer, make it unibyte.
9751
73acf815 97522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9753
9754 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
9755 to create a fontset.
9756
73acf815 97572008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9758
9759 * character.c (Funibyte_char_to_multibyte): Doc fix.
9760
9761 * xfns.c [HAVE_STDLIB_H]: Fix last change.
9762
73acf815 97632008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9764
9765 * fontset.c (fontset_add): Make the type `int'.
9766 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
9767
4c4475a8
GM
9768 * character.c (unibyte_char_to_multibyte)
9769 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
aca7a3d2 9770 charset_unibyte, not charset_primary.
aca7a3d2 9771
1f45f627 9772 * charset.h (charset_unibyte): Extern it instead of charset_primary.
aca7a3d2 9773
1f45f627
GM
9774 * charset.c (charset_unibyte): Rename from charset_primary.
9775 (Funibyte_charset): Rename from Fprimary_charset.
9776 (Fset_unibyte_charset): Rename from Fset_primary_charset.
9777 (syms_of_charset): Adjust for the above changes.
aca7a3d2
MB
9778
9779 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
9780 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
9781 it->multibyte_p is zero.
9782
9783 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
1f45f627 9784 Delete extern.
aca7a3d2 9785
73acf815 97862008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9787
9788 * coding.c (Fdefine_coding_system_internal): Fix category setting
9789 for a coding system of type iso-2022.
9790
73acf815 97912008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9792
1f45f627 9793 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
aca7a3d2 9794
73acf815 97952008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9796
9797 * syntax.c (Vnext_word_boundary_function_table): New variable.
1c8658b9
GM
9798 (next-word-boundary-function-table): Declare it as a Lisp variable
9799 in syms_of_syntax.
aca7a3d2
MB
9800 (scan_words): Call functions in Vnext_word_boundary_function_table
9801 if any.
9802
9803 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
9804
9805 * fontset.c (fs_load_font): If fontp->charset is not negative,
9806 return fontp without setting its members.
9807
73acf815 98082008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 9809
aca7a3d2
MB
9810 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
9811
9812 * m/sparc.h (HAVE_ALLOCA): Delete.
9813
9814 * s/irix6-5.h: Don't include strings.h.
9815 (bcopy, bzero, bcmp): Don't undef.
9816
9817 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
9818
9819 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
9820 (TIOCSIGSEND): Don't test IRIX6.
9821 (bcopy, bzero, bcmp): Define conditionally.
9822
73acf815 98232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9824
9825 * buffer.c (Qas, Qmake, Qto): New variables.
1f45f627 9826 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
aca7a3d2
MB
9827 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
9828
9829 * callproc.c (Fcall_process): Don't call insert_1_both directly if
9830 we are inserting a process output into a multibyte buffer.
9831
9832 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
9833 multibyte_char_to_unibyte.
9834
9835 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
9836 by the primary charset, make it eight-bit char.
9837 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
9838
1f45f627
GM
9839 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
9840 (charset_8_bit__control, charset_8_bit_graphic)
9841 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
aca7a3d2
MB
9842 (define_charset_internal): New function.
9843 (syms_of_charset): Call define_charset_internal for pre-defined
9844 charsets.
9845
9846 * charset.h (charset_8_bit): Extern it.
9847
1f45f627 9848 * coding.c (make_conversion_work_buffer): Adjust for the change
aca7a3d2
MB
9849 of Fset_buffer_multibyte.
9850 (encode_coding_raw_text): Increment p0 in the loop.
9851
1f45f627 9852 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
aca7a3d2 9853
1f45f627 9854 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
aca7a3d2
MB
9855 for the change of Fset_buffer_multibyte.
9856
9857 * fns.c (Fstring_to_multibyte): New function.
9858 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
9859
73acf815 98602008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9861
9862 * xfns.c (x_put_x_image): Declare args.
9863
1f45f627 9864 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
aca7a3d2
MB
9865 (try_font_list): Declare an arg.
9866
9867 * xdisp.c (message2_nolog, set_message): Declare an arg.
9868
9869 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
9870
9871 * syntax.c (scan_sexps_forward): Declare an arg.
9872
9873 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
9874 Declare an arg.
9875
9876 * lisp.h (Fnew_fontset): Declare.
9877
9878 * keymap.c (push_key_description): Call CHARACTERP correctly.
9879
1f45f627 9880 * fontset.c (fontset_add): Declare args. Call make_number correctly.
aca7a3d2
MB
9881 (face_for_char): Delete unused vars.
9882 (Fset_fontset_font): Doc fix. Delete unused vars.
9883
9884 * doc.c (Fsubstitute_command_keys): Delete unused vars.
9885
9886 * composite.c (update_compositions): Declare arg.
9887
9888 * cm.c (calccost, cmgoto): Declare args.
9889
9890 * charset.c: Remove `emacs' conditional. Doc fixes.
9891 (map_char_table_for_charset): Declare.
9892
1f45f627 9893 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
aca7a3d2 9894
1f45f627 9895 * ccl.c: Remove `emacs' conditional.
aca7a3d2 9896
73acf815 98972008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9898
9899 The following changes are to allow specifying multiple font
9900 patterns for a character range (specified by script or charset).
9901
9902 * Makefile.in (abbrev.o): Depend on syntax.h.
9903 (xfaces.o): Depend on charset.h.
9904
9905 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
9906 SINGLE_BYTE_CHAR_P.
9907
9908 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
9909
9910 * character.h (Vchar_script_table): Extern it.
9911
1f45f627 9912 * character.c (Vscript_alist): Delete.
aca7a3d2
MB
9913 (Vchar_script_table, Qchar_script_table): New variable.
9914 (syms_of_character): Declare Vchar_script_table as a lisp variable
9915 and initialize it.
9916
1f45f627 9917 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
aca7a3d2
MB
9918 have property char-table-extra-slots, make no extra slot.
9919
1f45f627 9920 * dispextern.h (struct face): Delete member `charset'.
4c4475a8
GM
9921 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
9922 SINGLE_BYTE_CHAR_P.
1f45f627
GM
9923 (choose_face_font, lookup_non_ascii_face, font_name_registry):
9924 Add prototypes.
9925 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
9926 (generate_ascii_font_name): Rename from generate_ascii_font.
aca7a3d2
MB
9927
9928 * fontset.h (get_font_repertory_func): New prototype.
1f45f627 9929 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
aca7a3d2
MB
9930 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
9931
9932 * fontset.c (Qprepend, Qappend): New variables.
1f45f627 9933 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
aca7a3d2
MB
9934 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
9935 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
9936 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
9937 (fontset_ref_and_range, fontset_add, reorder_font_vector)
9938 (load_font_get_repertory): New functions.
1f45f627 9939 (fontset_set): Delete.
aca7a3d2 9940 (fontset_face): New arg FACE. Return face ID, not face.
1f45f627 9941 Complete re-write to handle new fontset structure. Change caller.
aca7a3d2
MB
9942 (free_face_fontset): Use ASET istead of AREF (X) = Y.
9943 (face_for_char): Don't call lookup_face.
9944 (make_fontset_for_ascii_face): New arg FACE.
9945 (fs_load_font): New arg CHARSET_ID. Don't check
9946 Vfont_encoding_alist here.
9947 (find_font_encoding): New function.
9948 (list_fontsets): Use STRINGP, not ! NILP.
9949 (accumulate_script_ranges): New function.
9950 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
9951 re-written to handle new fontset structure.
9952 (Ffontset_font): Return a copy of element.
9953 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
9954 docstring of font-encoding-alist.
9955
9956 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
9957 (Fset_fotset_font): Fix arguments to 5.
9958
1f45f627 9959 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
aca7a3d2
MB
9960
9961 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
9962 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
1f45f627 9963 (highlight_trailing_whitespace): Adjust for the change of
aca7a3d2
MB
9964 lookup_named_face.
9965
9966 * xfaces.c: Include charset.h.
1f45f627
GM
9967 (load_face_font): Delete argument C. Change caller.
9968 (generate_ascii_font_name): Rename from generate_ascii_font.
aca7a3d2
MB
9969 (font_name_registry): New function.
9970 (cache_face): Store ascii faces before non-ascii faces in buckets.
1f45f627 9971 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
aca7a3d2
MB
9972 Lookup only ascii faces.
9973 (lookup_non_ascii_face): New function.
1f45f627
GM
9974 (lookup_named_face): Delete argument C. Change caller.
9975 (lookup_derived_face): Delete argument C. Change caller.
9976 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
aca7a3d2 9977 a string, just call font_list with it.
1f45f627
GM
9978 (choose_face_font): Delete arguments FACE and C. New arg
9979 FONT_SPEC. Change caller.
4c4475a8
GM
9980 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
9981 Change caller.
aca7a3d2
MB
9982 (realize_non_ascii_face): New function.
9983 (realize_x_face): Call load_face_font here.
1f45f627 9984 (realize_tty_face): Delete argument C. Change caller.
aca7a3d2
MB
9985 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
9986 get a face ID.
9987 (dump_realized_face): Don't print charset of FACE.
9988
9989 * xfns.c (x_set_font): Always call x_new_fontset and
9990 store_frame_parameter.
9991 (Fx_create_frame): Call x_new_fontset, not x_new_font.
1f45f627 9992 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
aca7a3d2
MB
9993
9994 * xterm.h (x_get_font_repertory): Extern it.
9995
9996 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
9997 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
9998 it->multibyte_p is zero.
9999 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
10000 (x_new_fontset): If FONTSETNAME doesn't match any existing
10001 fontsets, create a new one.
10002 (x_get_font_repertory): New function.
10003
73acf815 100042008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10005
10006 * coding.c (Ffind_coding_systems_region_internal): Detect an
10007 ASCII only string correctly.
10008
10009 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
10010 version is 0.
10011
73acf815 100122008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10013
10014 * lread.c: Include "coding.h".
1f45f627
GM
10015 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
10016 (load_each_byte, unread_char): New variables.
10017 (readchar_backlog): Delete.
aca7a3d2
MB
10018 (readchar): Return a character unless load_each_byte is nonzero.
10019 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
10020 cons. If unread_char is not -1, simply return it.
10021 (unreadchar): Handle the case that readcharfun is
1f45f627
GM
10022 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
10023 (read_multibyte): Delete.
aca7a3d2
MB
10024 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
10025 (read_emacs_mule_char): New functions.
10026 (Fload): Even if the file doesn't have the extention ".elc", if
10027 safe_to_load_p returns a positive version number, assume that the
10028 file contains bytecompiled code. If the version is less than 22,
10029 load the file while decoding multibyte sequences by emacs-mule.
10030 (readevalloop): Don't use readchar_backlog.
1f45f627
GM
10031 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
10032 (Fread_from_string): Pay attention to the case that STREAM is a cons.
10033 (read_escape): Delete the arg BYTEREP.
aca7a3d2
MB
10034 (read1): Set load_each_byte to 1 temporarily while handling
10035 #@NUMBER. Don't call read_multibyte.
10036 (read_vector): Call Fread with a cons. If readcharfun is
10037 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
1f45f627 10038 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
aca7a3d2
MB
10039 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
10040 and Qload_force_doc_strings.
10041
73acf815 100422008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10043
10044 * xdisp.c (face_before_or_after_it_pos): Call
10045 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
10046
73acf815 100472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10048
10049 * character.h (TRAILING_CODE_P): New macro.
1f45f627 10050 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
aca7a3d2
MB
10051 (string_char_with_unification): Fix prototype.
10052 (Vscript_alist): Extern it.
10053
10054 * character.c (Vscript_alist): New variable.
4c4475a8
GM
10055 (string_char_with_unification, str_as_unibyte)
10056 (string_escape_byte8): Add `const' to local variables.
aca7a3d2
MB
10057 (syms_of_character): Declare script-alist as a Lisp variable.
10058
10059 * charset.h (Vcharset_ordered_list): Extern it.
10060 (charset_ordered_list_tick): Extern it.
10061 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
10062 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
10063 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
1f204af3 10064 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
1f45f627 10065 (Funify_charset): Adjust for the change of Funify_charset.
aca7a3d2
MB
10066
10067 * charset.c (charset_ordered_list_tick): New variable.
10068 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
10069 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
10070 deunify intead of unify a charset.
10071 (string_xstring_p): Add `const' to local variables.
1f45f627
GM
10072 (find_charsets_in_text): Add `const' to arguemnts and local variables.
10073 (encode_char): Adjust for the change of Funify_charset. Fix
aca7a3d2
MB
10074 detecting of invalid code.
10075 (Fset_charset_priority): Increment charset_ordered_list_tick.
10076 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
10077 and TO_CODE.
10078
10079 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
1f45f627
GM
10080 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
10081 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
4c4475a8
GM
10082 (decode_coding_ccl, consume_chars)
10083 (Ffind_coding_systems_region_internal)
10084 (Fcheck_coding_systems_region): Add `const' to local variables.
aca7a3d2
MB
10085
10086 * print.c (print_object): Use octal form for printing the
10087 contents of a bool vector.
10088
73acf815 100892008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10090
10091 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
10092 <version == 20>: Refuse to load.
10093
73acf815 100942008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10095
10096 * fns.c: Move coding.h.
10097 (Qcodeset, Qdays, Qmonths): New.
10098 (concat): Use CHARACTERP instead of INTERGERP.
1f45f627 10099 (Flocale_codeset): Delete.
aca7a3d2 10100 (Flanginfo): New function.
1f45f627 10101 (syms_of_fns): Change accordingly.
aca7a3d2
MB
10102
10103 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
10104
73acf815 101052008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10106
10107 * casetab.c (init_casetab_once, init_casetab_once): Fix
10108 CHAR_TABLE_SET call.
10109
10110 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
10111
10112 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
10113
10114 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
10115 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
10116 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
10117
10118 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
10119
10120 * coding.c (ENCODE_DESIGNATION, decode_eol)
10121 (make_conversion_work_buffer, code_conversion_restore)
10122 (Fdefine_coding_system_internal): Convert Lisp types.
10123 (code_conversion_restore): Use EQ, not ==.
10124 (Fencode_coding_string): Fix code_convert_string call.
10125
10126 * coding.h (code_convert_region): Fix prototype.
10127
1f45f627 10128 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
aca7a3d2
MB
10129
10130 * fontset.c (fontset_ref, fontset_set, fs_load_font)
10131 (Ffontset_info): Convert Lisp types.
10132
10133 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
10134
10135 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
10136
10137 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
10138
10139 * chartab.c: Include "...h", not <...h> in some cases.
10140
10141 * callproc.c (Fcall_process): Remove unused variables.
10142
73acf815 101432008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10144
10145 * coding.c (Fset_coding_system_priority): Allow null arg list.
10146
73acf815 101472008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10148
10149 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
10150 (Fself_insert_and_exit): Use CHARACTERP.
10151
10152 * callproc.c (Fcall_process): Remove unused vars.
10153
10154 * xterm.c (XTread_socket): Add extra dead keysyms.
10155
10156 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
10157
10158 * dispextern.h: Remove prototypes for redraw_frame,
10159 redraw_garbaged_frames.
10160
10161 * cmds.c (Fself_insert_command): Use CHARACTERP.
10162
10163 * chartab.c (make_sub_char_table): Remove unused var.
10164 (Fset_char_table_default, Fmap_char_table): Doc fix.
10165
10166 * keymap.c (access_keymap): Remove generic char code.
10167 (push_key_description): Use CHARACTERP.
10168
73acf815 101692008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10170
10171 * charset.c: Doc fixes.
10172 (Funify_charset): Extra checking.
10173
73acf815 101742008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10175
10176 * lread.c: Remove some unused variables.
10177 (safe_to_load_p): If safe, return the magic number version byte.
10178 (Fload): Maybe use load-with-code-conversion.
10179
73acf815 101802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10181
10182 * category.c (Fmodify_category_entry): Don't modify the contents
10183 of category_set for characters out of the range. Avoid
10184 unnecessary modification.
10185
1f45f627 10186 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
aca7a3d2
MB
10187 Vchar_unify_table. The default value of the table is now nil.
10188
10189 * character.c (syms_of_character): Setup Vchar_width_table for
10190 eight-bit-control and raw-byte chars.
10191
10192 * charset.h (enum define_charset_arg_index): Delete
10193 charset_arg_parents and add charset_arg_subset and
10194 charset_arg_superset.
10195 (enum charset_attr_index): Delete charset_parents and add
10196 charset_subset and charset_superset.
10197 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
10198 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
1f45f627 10199 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
aca7a3d2
MB
10200 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
10201 (CHARSET_SUPERSET): New macros.
10202 (charset_work): Extern it.
10203 (ENCODE_CHAR): Use charset_work.
1f45f627 10204 (CHAR_CHARSET_P): Adjust for the change of encoder format.
aca7a3d2
MB
10205 (map_charset_chars): Extern it.
10206
10207 * charset.c (load_charset_map): Set the default value of encoder
10208 and deunifier char-tables to nil.
1f45f627 10209 (map_charset_chars): Change argument. Change callers. Use
aca7a3d2
MB
10210 map_char_table_for_charset instead of map_char_table.
10211 (Fmap_charset_chars): New optional args from_code and to_code.
1f45f627 10212 (Fdefine_charset_internal): Adjust for the change of
aca7a3d2
MB
10213 `define-charset' (:parents -> :subset or :superset).
10214 (charset_work): New variable.
4c4475a8
GM
10215 (encode_char, syms_of_charset): Adjust for the change of
10216 Fdefine_charset_internal.
aca7a3d2
MB
10217 (Ffind_charset_string): Setup the vector `charsets' correctly.
10218
1f45f627 10219 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
aca7a3d2 10220 the previous change.
1f45f627 10221 (char_table_ref_and_range): Adjust for the above change.
aca7a3d2
MB
10222 (map_sub_char_table_for_charset): New function.
10223 (map_char_table_for_charset): New function.
10224
10225 * keymap.c (describe_vector): Handle a char-table directly here.
1f45f627 10226 (describe_char_table): Delete.
aca7a3d2 10227
1f45f627 10228 * lisp.h (map_charset_chars): Delete.
aca7a3d2 10229
73acf815 102302008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10231
10232 * fns.c (count_combining): Comment out (unused).
10233 (Flocale_codeset): New.
10234 (syms_of_fns): Defsubr it.
10235
10236 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
1f45f627 10237 (size_t): Remove.
aca7a3d2 10238
73acf815 102392008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 10240
6f69e89b 10241 * Makefile.in (chartab.o): Depend on charset.h.
aca7a3d2 10242
73acf815 102432008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10244
10245 * character.c (syms_of_character): Set the default value of
10246 Vprintable_chars to Qnil.
10247
73acf815 102482008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10249
10250 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
10251
73acf815 102522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10253
10254 * charset.c (load_charset_map): Handle the case that from < to
10255 correctly.
10256
4c4475a8
GM
10257 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
10258 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
10259 Pay attention to raw-8-bit chars.
aca7a3d2 10260
73acf815 102612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 10262
4c4475a8
GM
10263 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
10264 It is not bytecompiled now.
aca7a3d2
MB
10265
10266 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
10267 (charset_jisx0208): New variables.
10268 (Fdefine_charset_internal): Setup them if appropriate.
10269 (init_charset_once): Initialize them to -1.
10270
1f45f627
GM
10271 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
10272 (charset_jisx0208): Extern them.
aca7a3d2 10273
1f204af3 10274 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
aca7a3d2 10275 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
1f45f627
GM
10276 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
10277 (setup_iso_safe_charsets): Fix arguments to Fassq.
4c4475a8
GM
10278 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
10279 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
10280 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
aca7a3d2
MB
10281 (encode_coding_iso_2022): Change the 1st arg to
10282 ENCODE_ISO_CHARACTER to a variable.
10283
73acf815 102842008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10285
10286 * charset.h (enum define_charset_arg_index): New enums
10287 charset_arg_min_code and charset_arg_max_code.
10288 (struct charset): New member char_index_offset.
10289
4c4475a8
GM
10290 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
10291 Take charset->char_index_offset into account.
aca7a3d2
MB
10292 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
10293 args[charset_arg_max_code]. Setup charset.char_index_offset.
10294 (syms_of_charset): Fix args to Fdefine_charset_internal.
10295
73acf815 102962008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10297
10298 * coding.c (decode_coding_utf_8): Reject overlong sequences.
10299
73acf815 103002008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10301
10302 * coding.c: Doc fixes.
10303 (Fcoding_system_aliases): Fix return value.
10304 (Qmac): Remove (duplicated) definition.
10305
73acf815 103062008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10307
10308 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
10309 functions.
10310
10311 * character.c (Fstring): Doc fix.
10312
10313 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
10314
10315 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
10316 ids.
10317 (font-encoding-alist): Doc fix.
10318
73acf815 103192008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10320
10321 * term.c (costs_set): Declare static, non-initialized for pcc.
1f45f627 10322 (encode_terminal_code): Remove unused var.
aca7a3d2
MB
10323
10324 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
10325 for K&R.
10326
10327 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
10328
10329 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
1f45f627 10330 (suffixes): Move out of make_subsidiaries for K&R.
aca7a3d2 10331
1f45f627 10332 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
aca7a3d2
MB
10333
10334 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
10335
73acf815 103362008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10337
10338 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
10339
1f45f627 10340 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
aca7a3d2 10341
2a2e8de7 103422008-02-01 Yong Lu <lyongu@asia-infonet.com>
aca7a3d2
MB
10343
10344 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
10345
1f45f627 10346 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
aca7a3d2 10347
73acf815 103482008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 10349
4c4475a8 10350 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
aca7a3d2 10351 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
aca7a3d2 10352
73acf815 103532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 10354
1f45f627 10355 * coding.c (decode_coding_charset): Adjust for the change of
aca7a3d2
MB
10356 Fdefine_coding_system_internal.
10357 (Fdefine_coding_system_internal): For a coding system of
10358 `charset' type, store a list of charset IDs in
10359 `charset_attr_charset_valids' element of coding attributes.
10360
73acf815 103612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10362
10363 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
1f45f627
GM
10364 (emacs_mule_char): New arg src. Delete arg `composition'. Change
10365 caller. Handle 2-byte and 3-byte charsets correctly.
10366 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
10367 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
aca7a3d2
MB
10368 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
10369 (DECODE_EMACS_MULE_21_COMPOSITION): Call
10370 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
10371 sequence.
10372 (decode_coding_emacs_mule): Handle composition correctly. Rewind
1f45f627 10373 `src' and `consumed_chars' correctly before calling emacs_mule_char.
aca7a3d2
MB
10374 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
10375 and alt&rule composition.
10376 (decode_coding_iso_2022): Handle composition correctly.
10377 (init_coding_once): Setup emacs_mule_bytes for private charsets.
10378
10379 * charset.c (Fdefine_charset_internal): Fix bug for the case of
10380 re-defining a charset. If the charset has :emacs-mule-id, setup
10381 emacs_mule_bytes.
1f45f627 10382 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
aca7a3d2 10383
73acf815 103842008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 10385
4c4475a8
GM
10386 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
10387 (encode_coding_big5, encode_coding_charset): If coding requires safe
aca7a3d2
MB
10388 encoding, produce a character specified by
10389 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
aca7a3d2 10390
73acf815 103912008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10392
10393 * xterm.c (XSetIMValues): Declare.
10394
10395 * process.c: Conditionally include sys/wait.h, pty.h.
10396
1f45f627 10397 * print.c (print_object): Fix print format for 64-bit systems.
aca7a3d2 10398
1f45f627 10399 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
aca7a3d2
MB
10400
10401 * buffer.c (emacs_strerror): Declare.
aca7a3d2
MB
10402
10403 * fontset.c (Fclear_face_cache): Declare.
1f45f627 10404 (accumulate_font_info): Comment-out (unused).
aca7a3d2
MB
10405 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
10406 variables.
10407
10408 * character.h (string_escape_byte8): Declare.
10409
10410 * charset.c (load_charset_map, load_charset_map_from_file): Remove
10411 unused vars.
10412 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
10413 (Fmap_charset_chars): Doc fix.
10414
1f45f627 10415 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
aca7a3d2
MB
10416 (Fset_coding_system_priority, Fset_coding_system_priority)
10417 (Fdefine_coding_system_internal): Doc fix.
10418
73acf815 104192008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10420
10421 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
10422
73acf815 104232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10424
10425 * character.c (string_escape_byte8): Make multibyte string with
10426 correct size.
10427
10428 * charset.c (Fmake_char): Delete unnecessary code.
10429
73acf815 104302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10431
10432 * xfns.c (x_encode_text): Allocate coding.destination here, and
10433 call encode_coding_object with dst_object Qnil.
10434
10435 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
10436 multibyte form correctly.
10437
10438 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
10439 against Vfont_encoding_alist.
10440
10441 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
10442 handling of charset list.
10443 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
10444 (decode_coding_object): Move point to coding->dst_pos before
10445 calling post-read-conversion function.
10446 (encode_coding_object): Give correct arguments to
10447 pre-write-conversion. Ignore the return value of
10448 pre-write-conversion function. Pay attention to the case that
10449 pre-write-conversion changes the current buffer. If dst_object is
10450 Qt, even if coding->src_bytes is zero, allocate at least one byte
10451 to coding->destination.
10452
10453 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
10454
10455 * charset.c (Fmake_char): Make it more backward compatible.
10456 (Fmap_charset_chars): Fix docstring.
10457
73acf815 104582008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10459
10460 * coding.c: Doc fixes.
10461 (Fdefine_coding_system_alias): Use names, not symbols, in
10462 coding-system-alist.
10463
73acf815 104642008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10465
10466 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
10467 of calling free_realized_face.
10468
2a2e8de7 104692008-02-01 Yong Lu <lyongu@asia-infonet.com>
aca7a3d2 10470
1f45f627
GM
10471 * charset.c (read_hex): Don't treat SPC as a comment starter.
10472 (decode_char): If CODE_POINT_TO_INDEX retruns -1, always return -1.
aca7a3d2
MB
10473 (Fdecode_char): Fix typo.
10474
73acf815 104752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10476
10477 * charset.h (struct charset): New member `code_space_mask'.
10478
1f45f627 10479 * coding.c (coding_set_source): Delete the local variable beg_byte.
4c4475a8
GM
10480 (encode_coding_charset, Fdefine_coding_system_internal):
10481 Delete the local variable charset.
aca7a3d2
MB
10482 (Fdefine_coding_system_internal): Setup
10483 attrs[coding_attr_charset_valids] correctly.
10484
10485 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
10486 member to check if CODE is valid or not.
10487 (Fdefine_charset_internal): Initialize `code_space_mask' member.
10488 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
10489 is within the range of charset->min_code and carset->max_code.
10490
73acf815 104912008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10492
10493 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
10494
10495 * dispextern.h (generate_ascii_font): Fix return type.
10496
10497 * xfaces.c (generate_ascii_font): Fix arg declaration.
10498
10499 * coding.c (coding_inherit_eol_type)
10500 (Fset_terminal_coding_system_internal)
10501 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
10502
73acf815 105032008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10504
10505 * coding.c (decode_coding_charset, encode_coding_charset): Handle
10506 multiple charsets correctly.
10507
73acf815 105082008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10509
10510 * search.c (boyer_moore): Fix handling of mulitbyte character
10511 translation.
10512
10513 * xdisp.c (display_mode_element): When the variable `elt' is
10514 changed, update `this' and `lisp_string'.
10515
73acf815 105162008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10517
10518 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
10519
10520 * callproc.c (Fcall_process): Be sure to give the current buffer
1f45f627 10521 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
aca7a3d2
MB
10522
10523 * charset.c (struct charset_map_entries): New struct.
1f45f627
GM
10524 (load_charset_map): Rename from parse_charset_map. New args
10525 entries and n_entries. Change caller.
10526 (load_charset_map_from_file): Rename from load_charset_map.
10527 Change caller. New arg control_flag. Call load_charset_map at
aca7a3d2
MB
10528 the tail.
10529 (load_charset_map_from_vector): New function.
10530 (Fdefine_charset_internal): Setup charset.compact_codes_p.
10531 (encode_char): If the charset is compact, change a character index
10532 to a code point.
10533
10534 * coding.c (coding_alloc_by_making_gap): Check the case that the
10535 source and destination are the same correctly.
10536 (decode_coding_raw_text): Set coding->consumed_char and
10537 coding->consumed to 0.
10538 (produce_chars): If coding->chars_at_source is nonzero, update
10539 coding->consumed_char and coding->consumed before calling
10540 alloc_destination.
10541 (Fdefine_coding_system_alias): Register ALIAS in
10542 Vcoding_system_alist.
10543 (syms_of_coding): Define `no-convesion' coding system at the tail.
10544
10545 * fileio.c (Finsert_file_contents): Set coding_system instead of
10546 val. If the current buffer is multibyte, always call
10547 decode_coding_gap.
10548
10549 * xfaces.c (try_font_list): Give higher priority to fontset's
10550 family than face's family.
10551
73acf815 105522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10553
10554 * callproc.c (Fcall_process): Be sure to give the current buffer
10555 to decode_coding_c_string.
10556
10557 * xfaces.c (try_font_list): Give a family specified in a fontset
10558 higher priority than a family specified in a face.
10559
73acf815 105602008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10561
10562 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
10563 Fix arguments to insert_from_buffer.
10564
10565 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
10566
73acf815 105672008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10568
10569 * coding.c (produce_chars): Set the variable `multibytep' correctly.
10570 (decode_coding_gap): Set coding->dst_multibyte correctly.
10571
73acf815 105722008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10573
10574 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
1f45f627 10575 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
aca7a3d2
MB
10576 (encode_coding_utf_16): Substitute coding->default_char for
10577 non-Unicode characters.
10578 (decode_coding): Don't call record_insert here.
10579 (setup_coding_system): Initialize `surrogate' of
10580 coding->spec.utf_16 to 0.
10581 (EMIT_ONE_BYTE): Fix for multibyte case.
10582
10583 * insdel.c (insert_from_gap): Call record_insert.
10584
73acf815 105852008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10586
10587 * casefiddle.c (casify_region): Fix multibyte case.
10588
10589 * character.c (c_string_width): Add return type `int'.
1f45f627 10590 (char_string_with_unification): Delete arg ADVANCED.
aca7a3d2
MB
10591
10592 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
1f45f627 10593 (CHAR_STRING): Adjust for the change of char_string_with_unification.
aca7a3d2
MB
10594 (CHAR_STRING_ADVANCE): Make it do-while statement.
10595
1f45f627 10596 * chartab.c (sub_char_table_set_range): Optimize for the case
aca7a3d2
MB
10597 DEPTH == 3. Add workaround code for a GCC optimization bug.
10598
10599 * charset.c (parse_charset_map): Remove an unused variable.
10600
10601 * coding.c: Delete unused variables.
10602
10603 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
10604 earlier. If inserted is zero and the coding system doesn't
10605 require flushing, don't call decode_coding_gap.
10606
10607 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
10608
73acf815 106092008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10610
10611 The following changes are for using Unicode as an internal
10612 character model, and use UTF-8 format for buffer/string
10613 representation.
10614
1f45f627 10615 * .gdbinit (xchartable): Adjust for the change of char table structure.
aca7a3d2
MB
10616 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
10617
10618 * Makefile.in (obj): Add character.o and chartab.o.
c3f9fba8 10619 (lisp, shortlisp): Remove utf-8.elc.
aca7a3d2
MB
10620 (*.o): For many files, change dependency on charset.h to
10621 character.h, and add dependency on character.h.
10622 (character.o, chartab.o): New targets.
10623
1f45f627
GM
10624 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
10625 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
10626 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
aca7a3d2
MB
10627 of "charset.h".
10628
10629 * dired.c, filelock.c: Include "character.h".
10630
10631 * alloc.c: Include "character.h" instead of "charset.h".
4c4475a8 10632 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
aca7a3d2
MB
10633 (syms_of_alloc): Remove defsubr for Smake_char_table.
10634
10635 * buffer.c: Include "character.h" instead of "charset.h", don't
10636 include "coding.h".
1f45f627 10637 (Fset_buffer_multibyte): Adjust for UTF-8.
aca7a3d2
MB
10638
10639 * buffer.h: EXFUN Fbuffer_live_p.
10640
10641 * callproc.c: Include "character.h" instead of "charset.h".
10642 (Fcall_process): Big change for the new code-conversion APIs.
10643
10644 * casetab.c: Include "character.h" instead of "charset.h".
1f45f627 10645 (set_canon, set_identity, shuffle): Adjust for the new
aca7a3d2
MB
10646 map_char_table spec.
10647 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
10648 accessing the char table structure.
10649
10650 * chartab.c: New file that implements char table.
10651
10652 * category.c: Include "character.h".
10653 (copy_category_entry): New function.
10654 (copy_category_table): Call map_char_table and copy_category_entry.
10655 (Fmake_category_table): Initialize all top-vel slots.
10656 (char_category_set): New function.
1f45f627 10657 (modify_lower_category_set): Delete.
aca7a3d2
MB
10658 (Fmodify_category_entry): Call char_table_ref_and_range.
10659
10660 * category.h (CATEGORY_SET): Just call char_category_set.
10661
10662 * ccl.c: Include "character.h".
10663 (Qccl, Qcclp): New variables.
10664 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
10665 it's less than 256.
1f45f627
GM
10666 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
10667 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
aca7a3d2 10668 and DST type.
1f45f627
GM
10669 (ccl_driver): Change types of argument, adjust code accordingly.
10670 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
aca7a3d2
MB
10671 ccl_driver.
10672 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
10673
1f45f627
GM
10674 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
10675 New members src_multibyte, dst_multibyte, consumed, and produced.
10676 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
aca7a3d2 10677 (CODING_SPEC_CCL_PROGRAM): New macro.
1f45f627 10678 (ccl_driver): Update prototype.
aca7a3d2
MB
10679 (Qccl, Qcclp, Fccl_program_p): Extern them.
10680 (CHECK_CCL_PROGRAM): New macro.
10681
10682 * character.c, character.h, chartab.c: New files.
10683
1f45f627
GM
10684 * charset.c: Mostly re-written. Move character and multibyte sequence
10685 handling codes to character.c.
aca7a3d2 10686
1f45f627
GM
10687 * charset.h: Mostly re-written. Move character and multibyte sequence
10688 handling codes to character.h.
aca7a3d2
MB
10689
10690 * coding.c, coding.h: Mostly re-written.
10691
10692 * composite.c: Include "character.h" instead of "charset.h".
1f45f627
GM
10693 (CHAR_WIDTH): Move to character.h.
10694 (HASH_KEY, HASH_VALUE): Delete.
aca7a3d2 10695
1f45f627
GM
10696 * composite.h (enum composition_method): Change order of enumeration
10697 symbols.
aca7a3d2
MB
10698
10699 * data.c: Include "character.h" instead of "charset.h".
10700 (Faref): Call CHAR_TABLE_REF for a char table.
10701 (Faset): Call CHAR_TABLE_SET for a char table.
10702
1f45f627
GM
10703 * dispextern.h (free_realized_face, check_face_attribytes)
10704 (generate_ascii_font): Extern them.
10705 (free_realized_multibyte_face): Delete extern.
aca7a3d2 10706
1f45f627 10707 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
aca7a3d2
MB
10708 table structure.
10709
10710 * editfns.c: Include "character.h" instead of "charset.h".
10711 (Fchar_to_string): Always call CHAR_STRING.
10712
10713 * emacs.c (main): Call init_charset_once, init_charset,
10714 syms_of_chartab, and syms_of_character.
10715
10716 * fileio.c: Include "character.h" instead of "charset.h".
1f45f627 10717 (Finsert_file_contents): Big change for the new code-conversion API.
4c4475a8 10718 (choose_write_coding_system, Fwrite_region): Likewise.
1f45f627 10719 (build_annotations_2): Delete.
aca7a3d2
MB
10720 (e_write): Big change for the new code-conversion API.
10721
10722 * fns.c: Include "character.h" instead of "charset.h".
1f45f627 10723 (copy_sub_char_table): Move to chartab.c.
aca7a3d2
MB
10724 (Fcopy_sequence): Call copy_char_table for a char table.
10725 (concat): Delete codes calling count_multibyte.
4c4475a8
GM
10726 (string_char_to_byte, string_byte_to_char): Adjust for the new
10727 multibyte form.
1f45f627
GM
10728 (internal_equal): Adjust for the change of char table structure.
10729 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
10730 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
10731 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
10732 (char_table_translate, optimize_sub_char_table)
10733 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
aca7a3d2 10734 chartab.c.
1f45f627
GM
10735 (char_table_ref_and_index): Delete.
10736 (HASH_KEY, HASH_VALUE): Move to lisp.h.
aca7a3d2 10737 (Fmd5): Call preferred_coding_system instead of accessing
1f45f627
GM
10738 Vcoding_category_list. Adjust for the new code-conversion API.
10739 (syms_of_fns): Move defsubr for char table related functions to
aca7a3d2
MB
10740 chartab.c.
10741
10742 * fontset.c: Mostly re-written.
10743
1f45f627 10744 * fontset.h (struct font_info): Change type of the member encoding_type.
aca7a3d2 10745 (enum FONT_SPEC_INDEX): New enum.
1f45f627
GM
10746 (fontset_font_pattern, fs_load_font): Update prototype.
10747 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
aca7a3d2
MB
10748
10749 * indent.c: Include "character.h" instead of "charset.h".
1f45f627 10750 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
aca7a3d2
MB
10751
10752 * insdel.c: Include "character.h" instead of "charset.h".
10753 (copy_text): Don't refer to Vnonascii_translation_table.
10754 (insert_from_gap): New function.
10755
10756 * keyboard.c: Include "character.h" instead of "charset.h".
10757 (command_loop_1): Never call direct_output_forward_char before
10758 a non-ASCII character.
10759 (read_char): If Vkeyboard_translate_table is a char table, always
1f45f627 10760 translate a character.
aca7a3d2
MB
10761
10762 * keymap.c: Include "character.h".
10763 (store_in_keymap): Handle the case that IDX is a cons.
10764 (Fdefine_key): Handle the case that KEY is a cons and the car part
10765 is also a cons (range).
1f45f627 10766 (push_key_description): Adjust for the new character code.
aca7a3d2
MB
10767 (describe_vector): Call describe_char_table for a char table.
10768 (describe_char_table): New function.
10769
10770 * keymap.h (describe_char_table): Extern it.
10771
10772 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
10773 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
1f45f627
GM
10774 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
10775 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
10776 Delete.
10777 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
aca7a3d2
MB
10778 structure.
10779 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
1f45f627
GM
10780 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
10781 (CHARTAB_SIZE_BITS_3): New macros.
aca7a3d2 10782 (chartab_size): Extern it.
1f45f627 10783 (struct Lisp_Char_Table): Re-design.
aca7a3d2 10784 (struct Lisp_Sub_Char_Table): New structure.
1f45f627
GM
10785 (HASH_KEY, HASH_VALUE): Move from fns.c.
10786 (CHARACTERBITS): Define as 22.
10787 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
aca7a3d2
MB
10788 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
10789 (GC_SUB_CHAR_TABLE_P): New macro.
1f45f627
GM
10790 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
10791 (code_convert_string_norecord): Deleted extern.
10792 (init_character_once, syms_of_character, init_charset)
10793 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
aca7a3d2
MB
10794
10795 * lread.c: Include "character.h".
10796 (read_multibyte): New arg NBYTES.
1f45f627
GM
10797 (read_escape): Change the meaning of returned *BYTEREP.
10798 (to_multibyte): Delete.
10799 (read1): Adjust the handling of char table and string.
aca7a3d2
MB
10800
10801 * print.c: Include "character.h" instead of "charset.h".
10802 (print_string): Convert 8-bit raw bytes to octal form by
10803 string_escape_byte8.
1f45f627 10804 (print_object): Adjust for the new multibyte form. Print 8-bit
aca7a3d2
MB
10805 raw bytes always in octal form. Handle sub char table correctly.
10806
10807 * process.c: Include "character.h" instead of "charset.h".
4c4475a8
GM
10808 (read_process_output, send_process): Adjust for the new
10809 code-conversion API.
aca7a3d2 10810
1f45f627 10811 * puresize.h (BASE_PURESIZE): Increase.
aca7a3d2
MB
10812
10813 * regex.c: Include "character.h" instead of "charset.h".
10814 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
10815 (regex_compile): Accept a range whose starting and ending
10816 character have different leading bytes.
1f45f627 10817 (analyse_first): Adjust for the above change.
aca7a3d2
MB
10818
10819 * search.c: Include "character.h" instead of "charset.h".
1f45f627
GM
10820 (search_buffer, boyer_moore): Adjust for the new multibyte form.
10821 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
aca7a3d2
MB
10822
10823 * syntax.c: Include "character.h" instead of "charset.h".
1f45f627 10824 (syntax_parent_lookup): Delete.
aca7a3d2 10825 (Fmodify_syntax_entry): Accept a cons as CHAR.
1f45f627 10826 (skip_chars): Adjust for the new multibyte form.
aca7a3d2
MB
10827 (init_syntax_once): Call char_table_set_range instead of directly
10828 accessing the structure of a char table.
10829
10830 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
1f45f627 10831 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
aca7a3d2
MB
10832 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
10833 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
10834
10835 * term.c: Include "buffer.h" and "character.h".
4c4475a8
GM
10836 (encode_terminal_code, write_glyphs): Adjust for the new
10837 code-conversion API.
aca7a3d2
MB
10838 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
10839
1f45f627 10840 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
aca7a3d2
MB
10841
10842 * xdisp.c: Include "character.h".
1f45f627
GM
10843 (get_next_display_element): Adjust for the new multibyte form.
10844 (disp_char_vector): Adjust for the new char table structure.
10845 (decode_mode_spec_coding): Adjust for the new structure of
aca7a3d2 10846 coding system.
1f45f627 10847 (decode_mode_spec): Adjust for the new code-conversion API.
aca7a3d2
MB
10848
10849 * xfaces.c: Include "character.h" instead of "charset.h".
1f45f627 10850 (load_face_font): Adjust for the change of choose_face_font and
aca7a3d2
MB
10851 FS_LOAD_FONT.
10852 (generate_ascii_font): New function.
1f45f627
GM
10853 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
10854 (set_font_frame_param): Adjust for the change of choose_face_font.
aca7a3d2 10855 (free_realized_face): Make it public.
1f45f627 10856 (free_realized_faces_for_fontset): Rename from
aca7a3d2 10857 free_realized_multibyte_face. Free also faces realized for ASCII.
1f45f627 10858 (choose_face_font): Change arguments. Adjust for the change of
aca7a3d2
MB
10859 fontset_font_pattern and FS_LOAD_FONT.
10860
10861 * xfns.c: Include "character.h".
1f45f627 10862 (x_encode_text): Adjust for the new code-conversion API.
aca7a3d2
MB
10863
10864 * xselect.c: Don't include "charset.h".
1f45f627 10865 (selection_data_to_lisp_data): Adjust for the new code conversion API.
aca7a3d2
MB
10866
10867 * xterm.c: Include "character.h".
1f45f627 10868 (x_encode_char): New argument CHARSET. Change caller.
4c4475a8
GM
10869 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
10870 Call ENCODE_CHAR instead of SPLIT_CHAR.
aca7a3d2
MB
10871 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
10872 CHAR_WIDTH instead of CHARSET_WIDTH.
1f45f627
GM
10873 (XTread_socket): Adjust for the new code-conversion API.
10874 (x_new_font): Adjust for the change of FS_LOAD_FONT.
10875 (x_load_font): Adjust for the change of struct font.
aca7a3d2 10876
d6abfc14
SM
108772008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
10878
10879 * xfaces.c (face_at_buffer_position): Remove unused vars.
10880
0acdaf8d
KH
108812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10882
4c4475a8
GM
10883 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
10884 Fix overflow checking.
0acdaf8d 10885
6c8a0ebf
GM
108862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10887
10888 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
10889 Cancel previous change.
10890
108912008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
10892
10893 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
10894 ccl->eight_bit_control. Fix check for buffer overflow.
10895 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
10896 (ccl_driver): Initialize extra_bytes to 0.
10897
a32aad64
KH
108982008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
10899
10900 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
10901 return it ORed with ctrl_modifier.
10902
8b329dba
MB
109032008-01-29 Miles Bader <miles@gnu.org>
10904
10905 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
10906
548667aa
JR
109072008-01-28 Jason Rumney <jasonr@gnu.org>
10908
10909 * w32.c (stat): Don't double check for networked drive.
10910
0975aa24
SM
109112008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
10912
ef264c42
SM
10913 * window.c (run_window_configuration_change_hook): New function.
10914 Code extracted from set_window_buffer. Set the selected frame.
10915 (set_window_buffer): Use it.
10916 * window.h (run_window_configuration_change_hook): Declare.
10917 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
10918
0975aa24
SM
10919 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
10920
9c28b587
DN
109212008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
10922
10923 * Makefile.in: Remove references to unused macros.
10924
c617afce
EZ
109252008-01-26 Eli Zaretskii <eliz@gnu.org>
10926
10927 * w32.c (g_b_init_get_sid_sub_authority)
10928 (g_b_init_get_sid_sub_authority_count): New static variables.
10929 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
10930 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
0975aa24
SM
10931 (init_user_info): Use them to retrieve uid and gid.
10932 Use 500/513, the Windows defaults, as Administrator's uid/gid.
248c21c5
EZ
10933 (fstat): Use pw_uid and pw_gid from the_passwd structure for
10934 st_uid and st_gid of the file.
c617afce 10935
302d7d54
JR
109362008-01-26 Jason Rumney <jasonr@gnu.org>
10937
10938 * w32.c (logon_network_drive): New function.
10939 (stat): Use it.
10940
3ac7a21e
CY
109412008-01-26 Chong Yidong <cyd@stupidchicken.com>
10942
10943 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
10944 invisible text covered with an ellipsis.
10945
bbb9fc1f
RS
109462008-01-25 Richard Stallman <rms@gnu.org>
10947
10948 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
10949 jump back to beginning. Move some other initializations after that.
10950 (Qwindow_text_change_functions, Vwindow_text_change_functions):
10951 New variables.
10952 (syms_of_xdisp): Init them.
10953
10954 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
10955
0975aa24
SM
10956 * buffer.c (reset_buffer_local_variables):
10957 Implement `permanent-local-hook'.
bbb9fc1f 10958 (Qpermanent_local_hook): New variable.
0975aa24 10959 (syms_of_buffer): Init and staticpro it.
bbb9fc1f 10960
79235cbe
MA
109612008-01-25 Michael Albinus <michael.albinus@gmx.de>
10962
10963 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
10964
ccd8f7fe
TTN
109652008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
10966
10967 * fns.c (Fclrhash): Return TABLE.
10968
dfbe40f2 109692008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
223b3d1d
YM
10970
10971 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
10972 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
10973 is set even without positional changes.
10974 (x_scroll_bar_clear): Set bar->redraw_needed_p.
10975
10976 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
10977
dfbe40f2 109782008-01-23 Jason Rumney <jasonr@gnu.org>
602e142f 10979
d6169680
JR
10980 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
10981
602e142f
JR
10982 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
10983 the unicode range available in MULE by locale-coding-system.
c041e2d1 10984 Improve dbcs lead byte detection. Set event timestamp and modifiers
602e142f
JR
10985 earlier.
10986
dfbe40f2 109872008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5ee4de53
YM
10988
10989 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
10990 [MAC_OSX] (init_mac_osx_environment): Initialize it.
6f69e89b 10991 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
5ee4de53
YM
10992 when used on child processes.
10993
8c7a4ac5
MA
109942008-01-21 Michael Albinus <michael.albinus@gmx.de>
10995
e0df1b73 10996 * dbusbind.c (Fdbus_method_return_internal): Rename from
8c7a4ac5 10997 Fdbus_method_return.
e0df1b73 10998 (Fdbus_unregister_object): Move to dbus.el.
8c7a4ac5 10999 (Fdbus_call_method, Fdbus_method_return_internal)
e0df1b73 11000 (Fdbus_send_signal): Improve debug messages.
8c7a4ac5 11001
8abe0f97
MR
110022008-01-20 Martin Rudalics <rudalics@gmx.at>
11003
11004 * undo.c (undo_inhibit_record_point): New variable.
11005 (syms_of_undo): Initialize it.
11006 (record_point): Don't record point when undo_inhibit_record_point
11007 is set.
11008
c3b232e4
SM
110092008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
11010
e69c4cae
SM
11011 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
11012
823e0ebb
SM
11013 * xdisp.c (Qauto_hscroll_mode): New var.
11014 (syms_of_xdisp): Initialize it.
11015 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
11016 window's buffer.
11017 (hscroll_windows): Don't check automatic_hscrolling_p here.
11018
c3b232e4
SM
11019 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
11020 vscroll if we're setting window-buffer to the value it already has.
11021
76ed5e01
DN
110222008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
11023
11024 * m/intel386.h: Remove references to XENIX.
11025
55e6d9b2
AS
110262008-01-17 Andreas Schwab <schwab@suse.de>
11027
11028 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
11029 instead of HAVE_X86_64_LIB64_DIR.
11030 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
11031
b16ed52d
GM
110322008-01-17 Glenn Morris <rgm@gnu.org>
11033
11034 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
11035 to HAVE_X86_64_LIB64_DIR.
11036
6bed5c4a
DN
110372008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
11038
11039 * s/irix3-3.h:
11040 * s/irix4-0.h:
11041 * s/386-ix.h:
11042 * s/domain.h:
11043 * s/hpux9-x11r4.h:
11044 * s/hpux9shxr4.h: Remove files for systems no longer supported.
11045
11046 * sysdep.c: Remove code containing references to symbols defined
11047 by unsupported systems.
11048
fdecf907
GM
110492008-01-16 Glenn Morris <rgm@gnu.org>
11050
11051 * coding.c (select-safe-coding-system-function): Doc fix.
11052
9292328f
GM
110532008-01-15 Glenn Morris <rgm@gnu.org>
11054
11055 * config.in: Revert 2008-01-13 change: this is a generated file.
11056
944df511
MO
110572008-01-13 Tom Tromey <tromey@redhat.com>
11058
11059 * lisp.h: Fix typo.
11060
8111ec05
DN
110612008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
11062
f40f5dc3
DN
11063 * m/sequent-ptx.h:
11064 * m/sequent.h:
11065 * s/ptx.h:
11066 * s/ptx4-2.h:
11067 * s/ptx4.h: Remove files for systems no longer supported.
11068
ce20b664 11069 * callproc.c (Fcall_process): Fix previous change.
8111ec05 11070
e39a993c
DN
110712008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
11072
052e457f 11073 * unexsunos4.c: Remove file, system not supported anymore.
e39a993c 11074
290afd83
JB
11075 * m/mips.h:
11076 * m/intel386.h:
e39a993c
DN
11077 * callproc.c:
11078 * config.in:
11079 * ecrt0.c:
11080 * emacs.c:
11081 * fileio.c:
11082 * frame.c:
11083 * getpagesize.h:
11084 * keyboard.c:
11085 * lread.c:
11086 * process.c:
11087 * puresize.h:
11088 * sysdep.c:
11089 * systty.h:
11090 * syswait.h:
11091 * unexec.c:
11092 * xdisp.c:
11093 * alloc.c: Remove code containing references to symbols defined by
11094 unsupported systems.
11095
81cd7687
KH
110962008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
11097
11098 * coding.c (detect_coding_mask): Fix previous change.
11099
218b3b76
KH
111002008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
11101
11102 * coding.c (detect_coding_iso2022): New arg
11103 latin_extra_code_state. Allow Latin extra codes only
11104 when *latin_extra_code_state is nonzero.
11105 (detect_coding_mask): If there is a NULL byte, detect the encoding
11106 as UTF-16 or binary. If Latin extra codes exist, detect the
11107 encoding as ISO-2022 only when there's no other proper encoding is
11108 found.
11109
59ce725a 111102008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
081f2203 11111
59ce725a
MB
11112 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
11113 #ifdef MAC_OS.
048addec 11114
59ce725a 111152008-01-08 Richard Stallman <rms@gnu.org>
048addec 11116
59ce725a 11117 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
048addec 11118
8290574e
NR
111192008-01-06 Nick Roberts <nickrob@snap.net.nz>
11120
a0a3805c 11121 * keyboard.c (parse_menu_item): Don't enclose key bindings on
8290574e
NR
11122 menu bar in parentheses.
11123
f3041af1
DN
111242008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
11125
11126 * m/7300.h:
11127 * m/acorn.h:
11128 * m/alliant-2800.h:
11129 * m/alliant.h:
11130 * m/alliant1.h:
11131 * m/alliant4.h:
11132 * m/altos.h:
11133 * m/amdahl.h:
11134 * m/apollo.h:
11135 * m/att3b.h:
11136 * m/aviion-intel.h:
11137 * m/aviion.h:
11138 * m/celerity.h:
11139 * m/clipper.h:
11140 * m/cnvrgnt.h:
11141 * m/convex.h:
11142 * m/cydra5.h:
11143 * m/delta88k.h:
11144 * m/dpx2.h:
11145 * m/dual.h:
11146 * m/elxsi.h:
11147 * m/f301.h:
11148 * m/gould-np1.h:
11149 * m/gould.h:
11150 * m/i860.h:
11151 * m/ibmps2-aix.h:
11152 * m/ibmrt-aix.h:
11153 * m/ibmrt.h:
11154 * m/irist.h:
11155 * m/is386.h:
11156 * m/isi-ov.h:
11157 * m/mega68.h:
11158 * m/mg1.h:
11159 * m/news-r6.h:
11160 * m/news-risc.h:
11161 * m/news.h:
11162 * m/nh3000.h:
11163 * m/nh4000.h:
11164 * m/ns16000.h:
11165 * m/ns32000.h:
11166 * m/nu.h:
11167 * m/orion.h:
11168 * m/orion105.h:
11169 * m/paragon.h:
11170 * m/pfa50.h:
11171 * m/plexus.h:
11172 * m/pyramid.h:
11173 * m/pyrmips.h:
11174 * m/sh3el.h:
11175 * m/sps7.h:
11176 * m/sr2k.h:
11177 * m/stride.h:
11178 * m/sun1.h:
11179 * m/sun2.h:
11180 * m/sun3-68881.h:
11181 * m/sun3-fpa.h:
11182 * m/sun3-soft.h:
11183 * m/sun3.h:
11184 * m/sun386.h:
11185 * m/symmetry.h:
11186 * m/tad68k.h:
11187 * m/tahoe.h:
11188 * m/targon31.h:
11189 * m/tek4300.h:
11190 * m/tekxd88.h:
11191 * m/tower32.h:
11192 * m/tower32v3.h:
11193 * m/ustation.h:
11194 * m/wicat.h:
11195 * m/xps100.h:
11196 * s/cxux.h:
11197 * s/cxux7.h:
11198 * s/dgux.h:
11199 * s/dgux4.h:
11200 * s/dgux5-4-3.h:
11201 * s/dgux5-4r2.h:
11202 * s/esix.h:
11203 * s/esix5r4.h:
11204 * s/hiuxmpp.h:
11205 * s/hiuxwe2.h:
11206 * s/iris3-5.h:
11207 * s/iris3-6.h:
11208 * s/isc2-2.h:
11209 * s/isc3-0.h:
11210 * s/isc4-0.h:
11211 * s/isc4-1.h:
11212 * s/newsos5.h:
11213 * s/newsos6.h:
11214 * s/osf1.h:
11215 * s/osf5-0.h:
11216 * s/riscix1-1.h:
11217 * s/riscix12.h:
11218 * s/sco4.h:
11219 * s/sco5.h:
11220 * s/sunos4-0.h:
11221 * s/sunos4-1.h:
11222 * s/sunos413.h:
11223 * s/sunos4shr.h:
11224 * s/umax.h:
11225 * s/unipl5-2.h:
11226 * s/xenix.h:
11227 * cxux-crt0.s:
11228 * unexapollo.c:
11229 * unexconvex.c:
11230 * unexenix.c:
11231 * unexsni.c: Remove files for systems no longer supported.
11232
11233 * m/intel386.h: Remove references to unsupported systems.
11234
11235 * w32.c (get_emacs_configuration): Remove reference to i860.
11236
11237 * sysdep.c: Remove dead code.
11238
d35e1cd7
DN
112392008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
11240
11241 * s/rtu.h:
a0a3805c 11242 * m/masscomp.h: Remove files. Platform is obsolete.
d35e1cd7 11243
abe136ee
MA
112442008-01-04 Michael Albinus <michael.albinus@gmx.de>
11245
11246 * dbusbind.c (Fdbus_method_return): New function.
11247 (xd_read_message): Add the serial number to the event.
11248 (Fdbus_register_method): Activate the function.
11249
87df3c32
SM
112502008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
11251
11252 * keyboard.c (read_key_sequence): Fix typo.
11253
5125905e
MA
112542008-01-03 Michael Albinus <michael.albinus@gmx.de>
11255
11256 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
11257 (xd_signature, xd_append_arg): Handle element type detection for
11258 empty arrays.
11259 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
11260 SDATA () calls; this must be solved more general.
11261 (Fdbus_register_signal): Use SBYTES instead of strlen.
11262
8bba1b5c
MH
112632008-01-03 Magnus Henoch <magnus@zemdatav>
11264
11265 * dbusbind.c (xd_append_arg): Use unsigned char instead of
11266 unsigned int for byte values (necessary for big-endian platform).
2c3a8b27 11267 (Fdbus_call_method): Handle the case of no returned arguments.
8bba1b5c 11268
a0a3805c 112692007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
15f16c1b
MA
11270
11271 * dbusbind.c (xd_read_message): Use non-static input_event struct.
11272
a271e124
MH
112732007-12-31 Magnus Henoch <mange@freemail.hu>
11274
11275 * dbusbind.c (xd_signature): Signature of variant is just "v".
11276
17bc8f94
MA
112772007-12-30 Michael Albinus <michael.albinus@gmx.de>
11278
87df3c32 11279 * dbusbind.c: Fix several errors and compiler warnings.
1f204af3 11280 Reported by Tom Tromey <tromey@redhat.com>.
17bc8f94
MA
11281 (XD_ERROR, XD_DEBUG_MESSAGE)
11282 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
11283 (xd_append_arg): Part for basic D-Bus types rewitten.
11284 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
11285 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
11286 appropriate.
11287 (xd_read_message): Return Qnil. Don't signal an error; it is not
11288 useful during event reading.
11289 (Fdbus_register_signal): Signal an error if the check for
11290 FUNCTIONP fails.
11291 (Fdbus_register_method): New function. The implementation is not
11292 complete, the call of the function signals an error therefore.
11293 (Fdbus_unregister_object): New function, renamed from
11294 Fdbus_unregister_signal. The initial check signals an error, if
5125905e 11295 the object is not well formed.
17bc8f94 11296
dd6f2802
RS
112972007-12-30 Richard Stallman <rms@gnu.org>
11298
11299 * textprop.c (get_char_property_and_overlay):
11300 Signal error if POSITION is out of range in a buffer.
11301
1da8a031
MR
113022007-12-29 Martin Rudalics <rudalics@gmx.at>
11303
11304 * w32fns.c (Fx_create_frame): Make copy of frame parameters
11305 because the original parameters are in pure storage now.
11306
5742be86
YM
113072007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11308
11309 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
11310
b014713c
EZ
113112007-12-22 Eli Zaretskii <eliz@gnu.org>
11312
b17f53ab
MB
11313 * callint.c (syms_of_callint) <command-history>: Add reference to
11314 history-length in the doc string.
048addec 11315
b17f53ab 113162007-12-17 Jason Rumney <jasonr@gnu.org>
048addec 11317
b17f53ab
MB
11318 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
11319 before passing as wParam.
048addec 11320
9af5078b
MA
113212007-12-22 Michael Albinus <michael.albinus@gmx.de>
11322
11323 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
11324 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
11325 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
11326 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
11327 as number.
11328 (Fdbus_call_method): Fix docstring.
11329
87cf1a39
MA
113302007-12-21 Michael Albinus <michael.albinus@gmx.de>
11331
11332 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
11333 New macros.
87df3c32 11334 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
a0a3805c
JB
11335 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
11336 Simplify.
87cf1a39
MA
11337 (xd_signature): New function.
11338 (xd_append_arg): Compute also signatures. Major rewrite.
11339 (xd_retrieve_arg): Make debug messages friendly.
87df3c32
SM
11340 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
11341 Check for signatures of arguments.
87cf1a39 11342
54371585
MA
113432007-12-19 Michael Albinus <michael.albinus@gmx.de>
11344
11345 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
11346 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
11347 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
11348 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
11349 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
87df3c32 11350 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
54371585
MA
11351 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
11352 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
87df3c32 11353 (xd_retrieve_value): Remove. Functionality included in ...
54371585
MA
11354 (xd_append_arg): New function.
11355 (Fdbus_call_method, Fdbus_send_signal): Apply it.
11356
f5306ca3
MA
113572007-12-16 Michael Albinus <michael.albinus@gmx.de>
11358
11359 * dbusbind.c (top): Include <stdio.h>.
11360 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
11361 dbus_message_new_method_call and dbus_message_new_signal.
87df3c32
SM
11362 (Fdbus_register_signal): Rename unique_name to uname.
11363 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
f5306ca3
MA
11364 non-existing unique name. Fix typos in matching rule. Return an
11365 object which is useful in Fdbus_unregister_signal.
11366 (Fdbus_unregister_signal): Reimplementation, in order to remove
11367 only the corresponding entry.
11368 (Vdbus_registered_functions_table): Change the order of entries.
11369 Apply these changes in xd_read_message and Fdbus_register_signal.
11370
77a28bbf
AS
113712007-12-16 Andreas Schwab <schwab@suse.de>
11372
11373 * fileio.c (Finsert_file_contents): Fix overflow check to not
11374 depend on undefined integer overflow.
11375
2e3566d8
JR
113762007-12-14 Jason Rumney <jasonr@gnu.org>
11377
11378 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
11379 for characters above 127.
11380
bf254037
JR
113812007-12-13 Jason Rumney <jasonr@gnu.org>
11382
11383 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
11384 before dereferencing array.
11385 (lookup_vk_code): Remove zero comparison.
11386
eb7c7bf5
MA
113872007-12-14 Michael Albinus <michael.albinus@gmx.de>
11388
11389 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
87df3c32
SM
11390 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
11391 Use `unsigned int' instead of `uint'.
eb7c7bf5
MA
11392 (xd_read_message, Fdbus_register_signal): Split expressions into
11393 multiple lines before operators "&&" and "||", according to the
11394 GNU Coding Standards.
11395
34fb0fc9
EZ
113962007-12-14 Eli Zaretskii <eliz@gnu.org>
11397
11398 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
11399
c7d97628
JL
114002007-12-12 Juri Linkov <juri@jurta.org>
11401
11402 * buffer.c (Frename_buffer): In interactive spec replace
11403 `read-buffer' with `read-string' that uses `buffer-name-history'
11404 as history, and the current buffer's name as default.
11405
3709505e
SM
114062007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
11407
11408 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
11409 manipulating the backtrace manually.
11410 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
11411 (struct backtrace, backtrace_list): Remove.
11412 (command_loop_1): Remove dead var `no_direct'.
11413
11414 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
11415 preserve non-built-in buffer-local variables.
11416 (Fkill_all_local_variables): Don't re-create&re-set permanent
11417 buffer-local variables.
11418
e2bec886
JL
114192007-12-09 Juri Linkov <juri@jurta.org>
11420
11421 * buffer.c (Frename_buffer): Change interactive spec from "s" to
11422 Lisp code that uses `read-buffer' with current buffer as default.
11423
a31d47c7
MA
114242007-12-08 Michael Albinus <michael.albinus@gmx.de>
11425
11426 * dbusbind.c (xd_read_message): Generate an event for every
11427 registered handler. There might be several handlers registered
11428 for the same signal.
11429 (Fdbus_register_signal): Don't overwrite a registration for the
11430 same signal. Add a new registration if handlers are different.
11431 (Vdbus_registered_functions_table): Rework doc string.
11432
52da95fa
MA
114332007-12-07 Michael Albinus <michael.albinus@gmx.de>
11434
11435 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
11436 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
11437 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
11438 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
11439 Unify argument lists.
a0a3805c 11440 (xd_read_message, Fdbus_register_signal): Reorder and extend event
52da95fa
MA
11441 arguments and hash table keys. Use unique name for service.
11442 (Fdbus_unregister_signal): Remove checks.
11443 (Vdbus_registered_functions_table): Fix doc string.
11444
e5e76c04 114452007-12-05 Magnus Henoch <mange@freemail.hu>
0277bfa1
RS
11446
11447 * process.c (make_process): Initialize pty_flag to 0.
11448
e5e76c04 114492007-12-05 Jason Rumney <jasonr@gnu.org>
44b1dc2e
JR
11450
11451 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
11452 specified XBMs.
11453
e5e76c04 114542007-12-05 Richard Stallman <rms@gnu.org>
048addec 11455
e5e76c04 11456 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
048addec 11457
e5e76c04 114582007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 11459
e5e76c04
MB
11460 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
11461 New variable.
11462 (mac_try_close_socket) [MAC_OSX]: New function.
11463 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
11464 Update cfsockets_for_select. Replace invalid CFRunLoop source.
048addec 11465
e5e76c04
MB
11466 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
11467 Use mac_try_close_socket.
048addec 11468
e5e76c04 114692007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 11470
e5e76c04
MB
11471 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
11472 reloc_base.
11473 (copy_dysymtab): Compute relocation base here.
11474 (rebase_reloc_address) [__ppc64__]: New function.
11475 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
11476 changed.
048addec 11477
e5e76c04 114782007-12-05 Jason Rumney <jasonr@gnu.org>
048addec 11479
e5e76c04 11480 * w32proc.c (sys_spawnve): Quote args with wildcards.
048addec 11481
e5e76c04 114822007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 11483
e5e76c04
MB
11484 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
11485 __objc_* sections.
11486 (unrelocate) [_LP64]: Set relocation base to address of data segment.
048addec 11487
96faeb40
MA
114882007-12-05 Michael Albinus <michael.albinus@gmx.de>
11489
11490 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
11491 Move check for Vdbus_registered_functions_table to
11492 xd_read_queued_messages.
11493 (xd_read_queued_messages): Protect xd_read_message calls by
11494 internal_condition_case_1.
11495
39abdd4a
MA
114962007-12-04 Michael Albinus <michael.albinus@gmx.de>
11497
87df3c32 11498 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
39abdd4a 11499 Qdbus_system_bus and Qdbus_session_bus, respectively.
87df3c32 11500 (Vdbus_intern_symbols): Remove.
39abdd4a 11501 (Vdbus_registered_functions_table): New hash table.
87df3c32 11502 (XD_SYMBOL_INTERN_SYMBOL): Remove.
39abdd4a 11503 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
87df3c32 11504 Rewrite in order to manage registered functions by hash table
39abdd4a
MA
11505 Vdbus_registered_functions_table.
11506
880820fe 115072007-12-03 Jan Djärv <jan.h.d@swipnet.se>
7ba30657
JD
11508
11509 * xterm.c: Update URL to Window Manager Specification in comment.
11510
033b73e2
MA
115112007-12-02 Michael Albinus <michael.albinus@gmx.de>
11512
11513 * config.in (HAVE_DBUS): Add.
11514
a0a3805c 11515 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
033b73e2
MA
11516 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
11517 (obj): Add $(DBUS_OBJ).
11518 (LIBES): Add $(DBUS_LIBS).
11519 (dbusbind.o): New target.
11520
11521 * dbusbind.c: New file.
11522
11523 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
11524
11525 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
a0a3805c 11526 (Qdbus_event): New Lisp symbol.
033b73e2 11527 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
87df3c32 11528 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
033b73e2
MA
11529 (keys_of_keyboard ): Define dbus-event.
11530
11531 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
11532
39d0bf74
RS
115332007-12-01 Richard Stallman <rms@gnu.org>
11534
11535 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
11536
f3157c65
JR
115372007-11-30 Jason Rumney <jasonr@gnu.org>
11538
11539 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
11540 (w32con_reset_terminal_modes): Clear screen buffer.
f1e8dcf1
JR
11541 (w32_face_attributes): Don't use color indexes that are out of range.
11542 Only reverse the default colors.
f3157c65
JR
11543
11544 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
11545 WINDOWSNT.
11546
11547 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
11548
b510360c
JR
115492007-11-29 Jason Rumney <jasonr@gnu.org>
11550
11551 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
11552 (w32_face_attributes): Use Vtty_defined_color_alist to determine
11553 if the terminal colors are initialized.
11554 (unspecified_fg, unspecified_bg): Remove unused declarations.
11555
4b7ab1c4
AS
115562007-11-29 Andreas Schwab <schwab@suse.de>
11557
11558 * keyboard.c (apply_modifiers): Fix typo.
11559
4bb6c266
RS
115602007-11-29 Richard Stallman <rms@gnu.org>
11561
11562 * keymap.c (Fcurrent_local_map): Doc fix.
11563
aa44cd84
GM
115642007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
11565
11566 * s/gnu-kfreebsd.h: New file.
11567
21ec2c43
SM
115682007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
11569
cc648cef
SM
11570 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
11571 Don't cast redundantly.
11572
21ec2c43
SM
11573 * keyboard.c (KEY_TO_CHAR): New macro.
11574 (parse_modifiers, apply_modifiers): Accept integer arguments.
11575 (read_key_sequence): Use them to unify the "shift->unshift" mapping
11576 for chars and symbol keys.
11577 After doing such remapping, apply function-key-map again.
11578
73e72da4
DN
115792007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
11580
11581 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
11582 compiled anymore.
11583
254693ff
AS
115842007-11-26 Andreas Schwab <schwab@suse.de>
11585
11586 * process.c (list_processes_1): Fix indentation level of the
11587 command column.
11588
ff6e6ac8
AS
115892007-11-23 Andreas Schwab <schwab@suse.de>
11590
11591 * editfns.c (Fformat): Handle %c specially since it requires the
11592 argument to be of type int.
11593
f7cf8b20
SM
115942007-11-23 Markus Triska <markus.triska@gmx.at>
11595
11596 * emacs.c (main): Call init_editfns before init_process, since
2a2e8de7 11597 init_process sets Vprocess_connection_type depending on OS release.
f7cf8b20 11598
569c11e3
SM
115992007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
11600
8787dd73
SM
11601 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
11602 (find_symbol_value): Use do_symval_forwarding.
11603
569c11e3
SM
11604 * data.c (set_internal): Set the value in the `cons-cell' (for
11605 Buffer_Local_values) not only for frame-local variables.
11606
6af1696d
AS
116072007-11-22 Andreas Schwab <schwab@suse.de>
11608
11609 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
11610 values to sprintf.
11611 * keymap.c (Fsingle_key_description): Likewise.
11612 * print.c (print_object): Likewise.
11613
880820fe 116142007-11-22 Jan Djärv <jan.h.d@swipnet.se>
d4ad8c04
JD
11615
11616 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
11617 file for image is nil.
11618
7c401d15
DN
116192007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
11620
11621 * term.c: Include stdarg.h.
569c11e3 11622 (fatal): Implement using varargs.
a0a3805c 11623 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
7c401d15 11624
64e16c3c
SM
116252007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
11626
11627 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
11628 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
11629 Update call to buffer_slot_type_mismatch.
11630 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
11631 (buffer_slot_type_mismatch): Update.
11632 * buffer.c (buffer_local_types): Remove.
11633 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
11634 (defvar_per_buffer): Set the type in the buffer_objfwd.
11635
d4aa48db 116362007-11-21 Jason Rumney <jasonr@gnu.org>
5f42a7eb 11637
64e16c3c
SM
11638 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
11639 CreateFileMapping returns NULL on failure.
5f42a7eb 11640
d4aa48db 116412007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
048addec 11642
d4aa48db
MB
11643 * search.c (Fset_match_data): Remove the `evaporate' feature.
11644 (unwind_set_match_data): Don't use the `evaporate' feature.
437dfb9f 11645
bdae0540
JR
116462007-11-21 Jason Rumney <jasonr@gnu.org>
11647
11648 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
11649
11650 * w32console.c (w32con_write_glyphs): Remove unused variables.
11651
202c09a8
DN
116522007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
11653
b951420f
DN
11654 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
11655
202c09a8
DN
11656 * s/darwin.h (MULTI_KBOARD): Remove.
11657
11658 * macfns.c (x_create_tip_frame, Fx_create_frame)
11659 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
11660
bae72c12
SM
116612007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
11662
e7c10f83
SM
11663 * buffer.c (Fbuffer_local_value): Remove redundant test.
11664 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
11665 than in `current-buffer' to match the comment.
11666 Do the swap using swap_in_global_binding.
11667
136eb6ed
SM
11668 * data.c (store_symval_forwarding, set_internal):
11669 * eval.c (specbind): Remove dead code.
11670
bae72c12
SM
11671 * coding.c (detect_coding, Fupdate_coding_systems_internal):
11672 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
11673 Since we do not want to see internal Lisp_*fwd objects here.
11674
880820fe 116752007-11-18 Jan Djärv <jan.h.d@swipnet.se>
95fbaefc 11676
3d66b985
JD
11677 * sysdep.c (init_system_name): Use getaddrinfo if available.
11678
95fbaefc
JD
11679 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
11680 (x_scroll_bar_note_movement): start, end, with, height in struct
11681 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
11682
6c1d8cb6
DN
116832007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
11684
11685 * puresize.h (BASE_PURESIZE): Increase to 1190000.
11686
30f95089
SM
116872007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
11688
66b04bd4
SM
11689 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
11690 This undoes Richard's change of 14-Oct-2002.
11691
6d3f2bb2
SM
11692 * alloc.c (allocate_other_vector):
11693 * lisp.h (allocate_other_vector): Remove.
11694
b05b4e27
SM
11695 * window.c (struct save_window_data): Move non-lisp data to the end
11696 and make it `int' rather than Lisp_Object.
11697 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
11698 Done wrap/unwrap integer values.
11699 (Fset_window_configuration, compare_window_configurations):
11700 Update use of fields to their new types.
11701
056ce195
SM
11702 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
11703 Turn integer fields into `int'. Merge x_window_low and x_window_high.
11704 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
11705 (SET_SCROLL_BAR_X_WINDOW): Remove.
11706 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
11707 Access the new x_window field directly.
11708 * xterm.c (x_scroll_bar_create): Use a pseudovector.
11709 Don't wrap/unwrap integers into Lisp_Objects.
11710 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
11711 (x_scroll_bar_report_motion):
11712 Don't wrap/unwrap integers into Lisp_Objects.
11713 (x_term_init): Use SDATA.
11714 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
11715 (x_scroll_bar_set_handle, x_scroll_bar_remove)
11716 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
11717 (x_scroll_bar_report_motion, x_scroll_bar_clear):
11718 * xfns.c (x_set_background_color):
11719 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
11720 Access the new x_window field directly.
11721
30f95089
SM
11722 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
11723 (allocate_pseudovector): Make non-static.
6d3f2bb2 11724
30f95089
SM
11725 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
11726 (allocate_pseudovector): Declare.
6f69e89b 11727 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
30f95089 11728
9b6112e8
AS
117292007-11-15 Andreas Schwab <schwab@suse.de>
11730
30f95089
SM
11731 * editfns.c (Fformat): Correctly format EMACS_INT values.
11732 Also take precision into account when formatting an integer.
0f860bd7 11733
9b6112e8
AS
11734 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
11735
262fcd41
SM
117362007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
11737
58da34c7
SM
11738 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
11739 (syms_of_keyboard): Defsubr it.
11740
262fcd41
SM
11741 * data.c (swap_in_global_binding): Fix longstanding bug where
11742 store_symval_forwarding was not called with the right second argument,
11743 thus causing objfwd-ing from being dropped.
11744
d29a9848
JB
117452007-11-14 Juanma Barranquero <lekktu@gmail.com>
11746
11747 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
11748 (Fx_display_pixel_height, Fx_display_planes)
11749 (Fx_display_color_cells, Fx_server_max_request_size)
11750 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
11751 (Fx_display_visual_class, Fx_display_save_under):
11752 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
11753 (Fx_display_pixel_height, Fx_display_planes)
11754 (Fx_display_color_cells, Fx_server_max_request_size)
11755 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
11756 (Fx_display_mm_height, Fx_display_mm_width)
11757 (Fx_display_backing_store, Fx_display_visual_class)
11758 (Fw32_select_font, Fx_display_save_under):
11759 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
11760 (Fx_display_pixel_height, Fx_display_planes)
11761 (Fx_display_color_cells, Fx_server_max_request_size)
11762 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
11763 (Fx_display_save_under): Fix typos in docstrings.
11764
74084731
JB
117652007-11-14 Juanma Barranquero <lekktu@gmail.com>
11766
11767 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
11768 corresponding to deleted entries; they are an implementation detail.
11769 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
11770 Remove variables.
11771 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
11772 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
11773 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
11774 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
11775 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
d29a9848 11776 (Fw32_define_rgb_color, Fw32_load_color_file)
74084731 11777 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
02b39a28
JB
11778 Fix typos in docstrings.
11779 (Fx_server_version): Reflow docstring.
11780 (Fw32_shell_execute): Doc fixes.
74084731 11781
fb053a1f
JB
117822007-11-13 Juanma Barranquero <lekktu@gmail.com>
11783
11784 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
11785 if w32_parse_hot_key returned nil.
11786
a457417e 117872007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
9ec1bdb6 11788
a457417e 11789 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
9ec1bdb6 11790
4b219faa
JR
117912007-11-09 Jason Rumney <jasonr@gnu.org>
11792
11793 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
11794
11795 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
11796
11797 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
11798 Remove W32_SCROLL_BAR_CLICK_EVENT.
11799
11800 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
11801 Add MULTIMEDIA_KEY_EVENT.
11802
11803 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
11804 (lispy_multimedia_keys) [WINDOWSNT]: New array.
11805 (make_lispy_event) [WINDOWSNT]: Use it to translate
11806 MULTIMEDIA_KEY_EVENT.
11807
11808 * w32term.h (WM_APPCOMMAND): Define if not already.
11809 (GET_APPCOMMAND_LPARAM): Likewise.
11810
11811 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
11812 WM_APPCOMMAND.
11813
11814 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
11815 (syms_of_w32fns): Export and initialize it.
11816 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
11817
c12ecb0a 118182007-11-09 Chong Yidong <cyd@stupidchicken.com>
d388d2ac
CY
11819
11820 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
11821 twice.
11822
11823 * xdisp.c (handle_face_prop): Fix last change.
11824
c12ecb0a 118252007-11-09 Richard Stallman <rms@gnu.org>
048addec 11826
c12ecb0a
MB
11827 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
11828 not just for after-strings and before-strings.
11829 Call face_for_overlay_string and pass the overlay to it.
11830 (handle_display_prop): Determine whether property came from an overlay.
11831 Pass OVERLAY arg to handle_single_display_spec.
11832 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
11833 (load_overlay_strings): Fill in it->string_overlays.
11834 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
b5cb6072 11835
c12ecb0a
MB
11836 * xfaces.c (face_for_overlay_string): Function renamed from
11837 face_at_buffer_position_no_overlays, and add arg OVERLAY.
b5cb6072 11838
c12ecb0a
MB
11839 * dispextern.h (struct it): New elt string_overlays.
11840 New elt from_overlay, also in stack.
11841 Rearrange a few elements.
11842 (face_for_overlay_string): Decl renamed from
11843 face_at_buffer_position_no_overlays, and add argument.
15fff01d 11844
c12ecb0a 118452007-11-09 Richard Stallman <rms@gnu.org>
0065bb74 11846
c12ecb0a
MB
11847 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
11848 to get the base face for an overlay string.
0d8466cc 11849
c12ecb0a 11850 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
15fff01d 11851
c12ecb0a 11852 * xfaces.c (face_at_buffer_position_no_overlays): New function.
2fae9111 11853
c12ecb0a 11854 * xdisp.c (handle_stop): Move some code out of loop.
2d6c1fc0 11855
c12ecb0a 118562007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
07025a55 11857
c12ecb0a
MB
11858 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
11859 Fix conversion from Lisp object to ATSUFontID.
07025a55 11860
c12ecb0a 118612007-11-09 Jason Rumney <jasonr@gnu.org>
07025a55 11862
c12ecb0a 11863 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
3a232704 11864
c12ecb0a 118652007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
539e92ad 11866
c12ecb0a
MB
11867 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
11868 Don't assume regions are aligned to page boundary.
11869 (print_load_command_name): Add LC_UUID if defined.
3a232704 11870
c12ecb0a 118712007-11-09 Richard Stallman <rms@gnu.org>
0cb8bb48 11872
c12ecb0a 11873 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
539e92ad 11874
b8ddfbcc
JR
118752007-11-07 Jason Rumney <jasonr@gnu.org>
11876
11877 * s/windows95.h: Remove.
11878
880820fe 118792007-11-06 Jan Djärv <jan.h.d@swipnet.se>
e624c3f9
JD
11880
11881 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
11882 abort with a message on unhandled store_type values.
11883
880820fe 118842007-11-01 Jan Djärv <jan.h.d@swipnet.se>
ac1278c1
JD
11885
11886 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
11887 Remove HAVE_X11R5 and HAVE_X11R4.
11888
04a697fe
DN
118892007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
11890
11891 * Makefile.in: Remove references to sunfns.c and sunfns.o.
11892
880820fe 118932007-11-01 Johan Bockgård <bojohan@gnu.org>
56dad874
GM
11894
11895 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
fb053a1f 11896 Don't set s->stippled_p here, since it has already been set by
56dad874
GM
11897 x_set_glyph_string_gc from x_draw_glyph_string.
11898
07e5c0b0
DN
118992007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
11900
2a2e8de7 11901 * sunfns.c: Remove file.
07e5c0b0
DN
11902
11903 * m/sun386.h:
11904 * m/sun2.h:
11905 * m/sparc.h: Remove Sun windows code.
11906
1bc973c2
SM
119072007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
11908
11909 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
11910 (init_keyboard): Set current_kboard's window-system to nil.
11911 (tty_read_avail_input): Typo.
11912 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
11913
c22140f6
DN
119142007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
11915
11916 * s/usg5-4.h:
11917 * s/usg5-3.h:
11918 * s/ptx.h:
11919 * m/is386.h:
11920 * m/ibmps2-aix.h:
2a2e8de7 11921 * Makefile.in: Remove all mentions of X10.
c22140f6
DN
11922
11923 * dispnew.c (syms_of_display): Don't mention version 10.
11924
660a8219
JB
119252007-10-28 Juanma Barranquero <lekktu@gmail.com>
11926
11927 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
11928 ($(BLD)/abbrev.$(O)): Remove.
11929
e047f448
SM
119302007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
11931
11932 Rewrite abbrev.c in Elisp.
11933 * image.c (Qcount): Don't declare as extern.
11934 (syms_of_image): Initialize and staticpro `Qcount'.
11935 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
11936 * emacs.c (main): Don't call syms_of_abbrev.
11937 * Makefile.in (obj): Remove abbrev.o.
11938 (abbrev.o): Remove.
11939 * abbrev.c: Remove.
11940
67b73e3a
MR
119412007-10-26 Martin Rudalics <rudalics@gmx.at>
11942
11943 * window.c (window_min_size_2): Don't count header-line.
11944
e3d7bd83
DN
119452007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
11946
11947 * frame.h (struct frame): Move all bit fields after the first bit
660a8219 11948 field to take advantage of the available space. Group all the
e3d7bd83
DN
11949 chars together to reduce wasted space due to padding.
11950
a3547743
JB
119512007-10-26 Juanma Barranquero <lekktu@gmail.com>
11952
e298936f
JB
11953 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
11954
d3d47262
JB
11955 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
11956 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
11957 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
11958 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
11959 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
11960 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
11961 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
11962 (last_marked, mark_object_loop_halt): Make static.
11963
a3547743
JB
11964 * frame.c (syms_of_frame) <delete-frame-functions>:
11965 Fix typo in docstring.
11966
14c71d8b
JB
119672007-10-25 Juanma Barranquero <lekktu@gmail.com>
11968
11969 * w32.c (init_environment): Fix tiny memory leak.
66199f74 11970 (w32_get_resource): Remove unused variable `ok'.
14c71d8b 11971
70b8d0a4
SM
119722007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
11973
11974 Make `window-system' into a keyboard-local variable (rather than
11975 frame-local as done originally by multi-tty).
11976
11977 * keyboard.h (struct kboard): Add Vwindow_system.
11978 * keyboard.c (init_kboard): Set a default for Vwindow_system.
11979 (mark_kboards): Mark Vwindow_system.
11980
11981 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
11982 (init_display): Don't set the obsolete `window-system' frame-param.
11983
11984 * xterm.c (x_term_init):
11985 * w32term.c (w32_create_terminal):
11986 * term.c (init_tty): Set Vwindow_system.
11987 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
11988 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
11989
11990 * xfns.c (Fx_create_frame, x_create_tip_frame):
11991 * w32fns.c (Fx_create_frame, x_create_tip_frame):
11992 * macfns.c (Fx_create_frame):
11993 Don't set the obsolete `window-system' frame-param.
11994
11995 * frame.h (Qwindow_system): Remove.
11996 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
11997 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
11998
fdc90613 119992007-10-24 Richard Stallman <rms@gnu.org>
4521d1fc 12000
fdc90613
MB
12001 * frame.c (x_figure_window_size): For fullscreen case,
12002 set USPosition | PPosition without clobbering rest of window_prompting.
7c75be36 12003
fdc90613 12004 * keyboard.c (Fcurrent_idle_time): Doc fix.
4521d1fc 12005
fdc90613 12006 * print.c (Fwith_output_to_temp_buffer): Doc fix.
4521d1fc 12007
7357cb04
SM
120082007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
12009
98228e72
SM
12010 * process.c (unwind_request_sigio): Only define if __ultrix__.
12011
1baf6db9
SM
12012 * callproc.c (child_setup): Remove spurious *.
12013
4d0ac3d7
SM
12014 * lisp.h (Fget_text_property): Declare.
12015 (have_menus_p): Declare it here rather than in sys-dep header files.
12016 * macterm.h (have_menus_p):
12017 * msdos.h (have_menus_p):
12018 * xterm.h (have_menus_p): Remove.
12019
7357cb04
SM
12020 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
12021 (Fmake_variable_frame_local): Just check the variable's const-ness
12022 rather than checking nil or t.
12023
866e6dd6
JR
120242007-10-22 Jason Rumney <jasonr@gnu.org>
12025
b00afeae
JR
12026 * w32fns.c: Include math.h.
12027 (w32_abort): Declaration moved to nt/config.nt.
0f7f11b7 12028
c8f7c76b
JR
12029 * s/ms-w32.h (HAVE_STDLIB_H): Define.
12030 (abort): Redefinition moved to nt/config.nt.
12031
866e6dd6
JR
12032 * m/windowsnt.h: Remove.
12033
e79beb56
JB
120342007-10-22 Juanma Barranquero <lekktu@gmail.com>
12035
12036 * emacs.c (Fdump_emacs): Fix typo in message.
12037 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
12038 <installation-directory>: Reflow docstring.
12039
fb30dfd2
JL
120402007-10-22 Juri Linkov <juri@jurta.org>
12041
12042 * minibuf.c: Allow minibuffer default to be a list of default values.
12043 With empty input use the first element of this list as returned default.
e79beb56 12044 (string_to_object)
0f7f11b7 12045 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
fb30dfd2
JL
12046 (read_minibuf): If defalt is cons, set histstring to its car.
12047 (Fread_string): If default_value is cons, set val to its car.
12048 (Fread_buffer): If def is cons, use its car.
12049 (Fcompleting_read): If defalt is cons, set val to its car.
12050
1f163f28
MA
120512007-10-21 Michael Albinus <michael.albinus@gmx.de>
12052
12053 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
12054
db3534c3
JB
120552007-10-20 Juanma Barranquero <lekktu@gmail.com>
12056
12057 * doc.c (Fdocumentation): Check for advice in all cases.
12058
c6f18a07
CY
120592007-10-19 Chong Yidong <cyd@stupidchicken.com>
12060
12061 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
12062
2a1534d3
RS
120632007-10-19 Richard Stallman <rms@gnu.org>
12064
12065 * doc.c (Fdocumentation): Check for and handle an advised function.
12066
7b82c3b6
JB
120672007-10-19 Juanma Barranquero <lekktu@gmail.com>
12068
12069 * process.c (Fset_process_filter): Doc fix.
12070
3278f20e
SM
120712007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
12072
12073 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
12074 which caused key-translation-map to applied repeatedly (thus breaking
12075 double-mode).
12076
99784d63
SM
120772007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
12078
12079 * xselect.c (x_own_selection, x_handle_selection_clear)
12080 (x_clear_frame_selections):
12081 * w32menu.c (list_of_panes, list_of_items):
12082 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
12083 * textprop.c (validate_plist, interval_has_all_properties)
12084 (interval_has_some_properties, interval_has_some_properties_list)
12085 (add_properties, text_property_list):
12086 * process.c (Fget_buffer_process, list_processes_1, status_notify):
12087 * minibuf.c (Fassoc_string):
12088 * macselect.c (x_own_selection, x_clear_frame_selections)
12089 (Fx_disown_selection_internal):
12090 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
12091 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
12092
44bb704d
CY
120932007-10-17 Chong Yidong <cyd@stupidchicken.com>
12094
12095 * process.c: Link to libs for calling res_init() if available.
12096 (Fmake_network_process): Call res_init() before getaddrinfo or
12097 gethostbyname, if possible.
12098
d314756e
SM
120992007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
12100
2504022a
SM
12101 * lread.c (read1): Set pvectype for char_tables.
12102
19fa82b9
SM
12103 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
12104 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
12105 Add type checks.
12106 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
12107
d314756e
SM
12108 * alloc.c (free_misc): Use XMISCTYPE.
12109 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
12110
94b9aaa2
GM
121112007-10-17 Glenn Morris <rgm@gnu.org>
12112
12113 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
12114 (syms_of_minibuf): Add Qcompletion_ignore_case.
12115 * dired.c (Qcompletion_ignore_case): Change to external.
12116 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
12117 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
12118 (Fread_file_name): Use it rather than intern'ing.
12119
12120 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
12121 (Fread_coding_system): Ignore case of user input.
12122
da6658e8
YM
121232007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12124
12125 * xdisp.c (handle_display_prop): Ignore display specs after
12126 replacing one when string text is being replaced.
12127 (handle_single_display_spec): Pretend as if characters with display
12128 property haven't been consumed only when buffer text is being replaced.
12129
11fb4bdb
SM
121302007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
12131
9beb8baa
SM
12132 * xfns.c (Fx_create_frame, Fx_display_list):
12133 * window.c (window_fixed_size_p, enlarge_window)
12134 (shrink_window_lowest_first):
12135 * macterm.c (init_font_name_table):
12136 * macfns.c (Fx_create_frame, Fx_display_list):
12137 * lread.c (close_load_descs):
12138 * keyboard.c (read_char_x_menu_prompt):
12139 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
12140 * coding.c (code_convert_region_unwind): Test the type of an object
12141 rather than just !NILP before extracting data from it.
12142
d3f41ff5
SM
12143 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
12144
67ee9f6e
SM
12145 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
12146 (XMISCANY): New macro.
12147 (XMISCTYPE): Use it.
12148 (struct Lisp_Misc_Any): New type.
12149 (union Lisp_Misc): Use it.
12150 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
12151 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
12152 (find_symbol_value, set_internal, default_value, Fset_default)
12153 (Fmake_variable_buffer_local, Fmake_local_variable)
12154 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
12155 (Flocal_variable_if_set_p, Fvariable_binding_locus):
12156 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
12157 * alloc.c (allocate_buffer): Set the size and tag.
12158 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
12159 Use XMISCANY.
12160 (die): Follow the GNU convention for error messages.
12161 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
12162 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
12163 tag any more.
12164 (set_buffer_internal_1):
12165 * frame.c (store_frame_param):
12166 * eval.c (specbind):
12167 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
12168
11fb4bdb
SM
12169 * doc.c (Fsnarf_documentation): Simplify.
12170
decb374a
JB
121712007-10-14 Juanma Barranquero <lekktu@gmail.com>
12172
12173 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
12174 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
12175
b5a40ee7
SM
121762007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
12177
12178 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
12179
35277b03
JB
121802007-10-14 Juanma Barranquero <lekktu@gmail.com>
12181
12182 * eval.c (do_autoload): Don't save autoloads.
12183
12184 * data.c (Ffset): Save autoload of the function being set.
12185
35fdaa62
GM
121862007-10-07 John Paul Wallington <jpw@pobox.com>
12187
12188 * xfns.c (x_create_tip_frame): Set the `display-type' frame
12189 parameter before setting up faces.
12190
1ea40aa2
EZ
121912007-10-13 Eli Zaretskii <eliz@gnu.org>
12192
35fdaa62 12193 * ccl.c (Fregister_code_conversion_map):
96a5affb
EZ
12194 * keyboard.c (append_tool_bar_item): Reformat last change.
12195
1ea40aa2
EZ
12196 * lisp.h (eabs): Rename from `abs'. All callers changed.
12197
35277b03 121982007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
71d00ce4
EZ
12199
12200 * buffer.c (add_overlay_mod_hooklist):
12201 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
12202 * fontset.c (make_fontset):
12203 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
12204 (append_tool_bar_item):
12205 * macmenu.c (grow_menu_items):
35fdaa62 12206 * w32menu.c (grow_menu_items):
71d00ce4 12207 * xmenu.c (grow_menu_items): Use larger_vector.
35fdaa62 12208
bc82f120
EZ
122092007-10-13 Eli Zaretskii <eliz@gnu.org>
12210
12211 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
12212 selected frame'' on MSDOS).
12213
d57d5a78
MR
122142007-10-12 Martin Rudalics <rudalics@gmx.at>
12215
12216 * frame.c (Qexplicit_name): New variable.
12217 (x_report_frame_params): Report it in parameter alist.
12218 (syms_of_frame): Intern and staticpro it.
12219
35277b03 122202007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
04710ebd
JR
12221
12222 * macfns.c (x_create_tip_frame): Set terminal for frame.
12223
c7a4b95b
SM
122242007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
12225
26f9c7b7
SM
12226 * frame.c (Qenvironment): Remove.
12227 (syms_of_frame) <Qenvironment>: Don't initialize.
12228 (Fdelete_frame): Don't treat the `environment' param specially.
12229 * frame.h (Qenvironment): Don't declare.
12230 * callproc.c (set_initial_environment): Don't set unused frame param.
12231
c7a4b95b
SM
12232 * frame.c (Fframe_with_environment): Remove.
12233 (syms_of_frame) <Sframe_with_environment>: Don't declare.
26f9c7b7 12234
c7a4b95b
SM
12235 * lisp.h (Fframe_with_environment): Don't declare.
12236
c86f7377
JB
122372007-10-10 Juanma Barranquero <lekktu@gmail.com>
12238
12239 * indent.c (indent_tabs_mode, last_known_column)
12240 (last_known_column_modified): Make static.
12241 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
12242
d1b3a122
KY
122432007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
12244
12245 * puresize.h (BASE_PURESIZE): Increase to 1170000.
12246
d57d5a78
MR
122472007-10-09 Jason Rumney <jasonr@gnu.org>
12248
12249 * w32term.c (x_set_window_size): Disable code that attempts to tell
12250 Lisp code about a size change before it actually happens.
12251
81d3d428 122522007-10-09 Richard Stallman <rms@gnu.org>
91175673 12253
81d3d428
MB
12254 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
12255 return HANDLED_RETURN.
91175673 12256
1af74d06 122572007-10-08 Martin Rudalics <rudalics@gmx.at>
4f1b1854 12258
1af74d06
MB
12259 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
12260 when there's an unread command event.
e0fead5d 12261
c7a4b95b 12262 * frame.c (focus_follows_mouse): Move here from frame.el to allow
1af74d06
MB
12263 window autoselection act appropriately when leaving selected frame.
12264 (syms_of_frame): Initialize focus_follows_mouse.
12265 * frame.h (focus_follows_mouse): Extern it.
12266 * macterm.c (XTread_socket): When focus_follows_mouse is nil
c7a4b95b 12267 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
1af74d06
MB
12268 * msdos.c (dos_rawgetc): Likewise.
12269 * w32term.c (w32_read_socket): Likewise.
12270 * xterm.c (handle_one_xevent): Likewise.
12271 * xdisp.c (syms_of_xdisp): In doc-string of
12272 mouse-autoselect-window mention focus-follows-mouse.
e0fead5d 12273
1af74d06 122742007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
e0fead5d 12275
1af74d06
MB
12276 * macterm.c (mac_load_query_font): Fix missing return value.
12277 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
12278 Add BLOCK_INPUT.
c186cdb3 12279
1af74d06 122802007-10-08 Richard Stallman <rms@gnu.org>
c186cdb3 12281
1af74d06
MB
12282 * xdisp.c (get_window_cursor_type): Implement documented behavior
12283 for cursor-in-non-selected-windows = t.
c186cdb3 12284
1af74d06 122852007-10-08 Jason Rumney <jasonr@gnu.org>
c186cdb3 12286
1af74d06 12287 * w32.c (w32_get_resource): Always close registry keys.
58cfce98 12288
1af74d06 122892007-10-08 Jason Rumney <jasonr@gnu.org>
58cfce98 12290
1af74d06 12291 * makefile.w32-in (LIBS): Add COMCTL32.
62854fe2 12292
1af74d06 12293 * w32fns.c (globals_of_w32fns): Init common controls.
62854fe2 12294
1af74d06 122952007-10-08 Richard Stallman <rms@gnu.org>
a3c83618 12296
c7a4b95b 12297 * image.c (our_memory_buffer): Rename from omfib_buffer.
656f46bb 12298
1af74d06 122992007-10-08 Richard Stallman <rms@gnu.org>
656f46bb 12300
1af74d06 12301 * buffer.c (Foverlays_at): Doc fix.
036e218d 12302
1af74d06 123032007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
036e218d 12304
1af74d06 12305 * fns.c (Fplist_put): Preserve uneven tail data.
7ddb2c16 12306
1af74d06 123072007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
7ddb2c16 12308
1af74d06 12309 * termhooks.h (enum event_kind): Remove trailing comma.
ace9b298 12310
1af74d06 12311 * frame.h (enum): Remove trailing comma.
90647b07 12312
8993ad2e 123132007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
90647b07 12314
1af74d06 12315 * w32proc.c (delete_child): Don't terminate threads of zombies.
ace9b298 12316
1af74d06 123172007-10-08 Martin Rudalics <rudalics@gmx.at>
ace9b298 12318
1af74d06 12319 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
ace9b298 12320
1af74d06
MB
12321 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
12322 last-repeatable-command.
12323 (init_kboard): Initialize Vlast_repeatable_command.
12324 (command_loop_1): Set it to real_this_command unless that was
12325 bound to an input event.
12326 (mark_kboards): Mark it.
9fbc32aa 12327
1af74d06 123282007-10-08 Richard Stallman <rms@gnu.org>
036e218d 12329
1af74d06 12330 * eval.c (condition-case): Doc fix.
9fbc32aa 12331
1af74d06 123322007-10-08 Masatake YAMATO <jet@gyve.org>
9fbc32aa 12333
1af74d06
MB
12334 * xfaces.c (tty_supports_face_attributes_p): Fix code
12335 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
12336 was copied and not edited.
9fbc32aa 12337
beb9f745
SM
123382007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
12339
c86f7377 12340 Add new `input-decode-map' keymap and use it for terminal
4f4a84ec
SM
12341 escape sequences.
12342 * keyboard.h (struct kboard): Add Vinput_decode_map.
12343 Remove Vlocal_key_translation_map.
12344 * keyboard.c (read_key_sequence): Add support for input-decode-map.
12345 (init_kboard): Init input-decode-map.
12346 Replace local-key-translation-map back with key-translation-map.
12347 (syms_of_keyboard): Declare input-decode-map.
12348 Remove local-key-translation-map. Update docstrings.
12349 (mark_kboards): Mark Vinput_decode_map.
12350 Don't mark Vlocal_key_translation_map.
12351 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
12352 Replace local-key-translation-map back with key-translation-map.
12353 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
12354 Bind in input-decode-map rather than function-key-map.
12355
beb9f745
SM
12356 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
12357 This was made redundant by the previous introduction of XSETPVECTYPE.
12358
65342ae3
RS
123592007-10-09 Richard Stallman <rms@gnu.org>
12360
beb9f745 12361 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
65342ae3
RS
12362
123632007-09-29 Richard Stallman <rms@gnu.org>
12364
12365 * eval.c (internal_condition_case_2, internal_condition_case_1)
12366 (internal_condition_case): Reenable abort if x_catching_errors ()
12367 to see if that really happens and why.
12368
6cff77fd
AS
123692007-10-06 Andreas Schwab <schwab@suse.de>
12370
12371 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
12372
bbe6f2aa
JB
123732007-10-04 Juanma Barranquero <lekktu@gmail.com>
12374
12375 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
12376
a390930c
SM
123772007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
12378
12379 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
12380
d6aa1876
SM
123812007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
12382
d0fdb6da
SM
12383 * window.h (struct window):
12384 * window.c (struct save_window_data, struct saved_window):
12385 * termhooks.h (struct terminal):
12386 * process.h (struct Lisp_Process):
12387 * frame.h (struct frame):
12388 * buffer.h (struct buffer):
12389 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
12390 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
12391 The size field of (pseudo)vectors is now unsigned.
12392 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
12393
878f97ff
SM
12394 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
12395 Turn `count' into an integer.
d0fdb6da 12396
878f97ff
SM
12397 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
12398 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
12399 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
12400 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
12401 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
12402
d2029e5b
SM
12403 * alloc.c (allocate_pseudovector): New fun.
12404 (ALLOCATE_PSEUDOVECTOR): New macro.
12405 (allocate_window, allocate_terminal, allocate_frame)
12406 (allocate_process): Use it.
12407 (mark_vectorlike): New function.
12408 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
12409 (mark_terminals): Use it.
12410 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
12411 (Fmake_byte_code): Use XSETPVECTYPE.
12412
12413 * frame.c (Fframe_parameters): Minor simplification.
12414
12415 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
12416
12417 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
12418
12419 * buffer.c (Fget_buffer_create, init_buffer_once):
12420 * lread.c (defsubr):
12421 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
12422
12423 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
12424 defined differently in the m/*.h files.
12425 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
12426 (XSETPVECTYPE): New macro.
12427 (XSETPSEUDOVECTOR): Use it.
12428
d6aa1876
SM
12429 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
12430 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
d2029e5b 12431
d6aa1876
SM
12432 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
12433 * lread.c (defvar_per_buffer):
12434 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
12435
12436 * window.c (candidate_window_p): Only consider as visible frames that
12437 are on the same terminal.
12438
12439 * m/ibms390x.h (MARKBIT): Remove unused macro.
12440
88852d45
JB
124412007-10-01 Juanma Barranquero <lekktu@gmail.com>
12442
12443 * lread.c (Fload): Fix typo in docstring.
12444
880820fe 124452007-10-01 Michaël Cadilhac <michael@cadilhac.name>
2742fe30
MC
12446
12447 * floatfns.c (Fexpt): Manually check for overflows, so that a power
12448 of a non-zero value can't yield zero.
12449
ed0c79c6
SM
124502007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
12451
b870aa61
SM
12452 * term.c (term_clear_mouse_face, term_mouse_highlight)
12453 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
12454
4c37a414
SM
12455 * print.c (safe_debug_print): Use XHASH.
12456
b9466edb
SM
12457 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
12458 Lisp elements such as tags.
12459 (XHASH): New macro.
12460 (EQ): Use it.
12461 (SREF, SSET, STRING_COPYIN): Use SDATA.
12462 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
12463
9c545a55
SM
12464 * alloc.c (mark_terminal): Remove left-over declaration.
12465 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
12466 (allocate_vectorlike): Remove type argument. Adjust callers.
12467 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
12468 Only handle the one remaining MEM_TYPE_VECTORLIKE.
12469
dafc79fa
SM
12470 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
12471 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
12472 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
12473 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
12474 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
12475 Use them.
12476
ed0c79c6
SM
12477 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
12478 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
12479 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
12480
3c81afd4
DN
124812007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
12482
12483 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
12484 loaded by default.
12485
6178ce5e
SM
124862007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
12487
4ce5ab77
SM
12488 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
12489 on this tty.
12490 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
12491
6178ce5e
SM
12492 * term.c (mouse_face_window): Rename from Qmouse_face_window.
12493 Update all users.
12494 (handle_one_term_event): Use Gpm_DrawPointer.
12495 (Fgpm_mouse_start): Rename from Fterm_open_connection.
12496 Signal errors instead of returning nil. Always return nil.
12497 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
12498 Make it a noop if gpm-mouse was not activated.
12499 (syms_of_term): Update names.
12500
bdf5f8ef
SM
125012007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
12502
75a8734b
SM
12503 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
12504 (init_sys_modes): Check that gpm_tty is the current tty.
12505
13559ee0
SM
12506 * alloc.c (allocate_terminal): Set the vector size to only count the
12507 lisp fields. Initialize those to nil.
12508 (mark_object): Don't treat terminals specially.
12509 (mark_terminal): Remove.
12510 (mark_terminals): Use mark_object instead.
12511
ff16b875
SM
12512 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
12513 the GC to the beginning.
12514
83155776
SM
12515 * indent.h:
12516 * indent.c: Use EMACS_INT for ints coming from Elisp data.
12517
bdf5f8ef
SM
12518 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
12519
ec8705b6
JR
125202007-09-25 Jason Rumney <jasonr@gnu.org>
12521
12522 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
12523
12524 * w32console.c (create_w32cons_output): Remove.
12525
12526 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
12527
12528 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
12529 (reset_sys_modes): Use reset_terminal_modes_hook.
12530
7351b242
SM
125312007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
12532
12533 * eval.c (do_autoload): Don't output any message.
12534
16706228
JL
125352007-09-24 Juri Linkov <juri@jurta.org>
12536
12537 * emacs.c (standard_args): Change priority of "--no-splash"
12538 from 40 to 3. Add "--no-desktop" with the same priority.
12539
3ae2e3a3
RS
125402007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
12541
12542 * alloc.c (gc_sweep): Check cons cell mark bits word by word
12543 and optimize the case where they are all 1.
12544
7a58fb43
GM
125452007-09-23 Johannes Weiner <hannes@saeurebad.de>
12546
3ae2e3a3
RS
12547 * lisp.h (abs): Define if not defined.
12548 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
12549 Don't define `abs', since it's defined in lisp.h.
7a58fb43 12550
78048085
EZ
125512007-09-22 Eli Zaretskii <eliz@gnu.org>
12552
c7a4b95b 12553 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
78048085
EZ
12554 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
12555 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
12556 (init_tty): Use DEV_TTY instead of "/dev/tty".
12557 [WINDOWSNT]: No need to protect from NAME arg being null.
12558
23d4cba5
DN
125592007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
12560
12561 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
12562 up the tty state.
12563
71f44e7a
SM
125642007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
12565
12566 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
12567 (gpm_tty): Change its type.
12568 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
12569 (gpm_tty): Change its type and initialize it.
12570 (Fterm_open_connection): Check the frame is indeed a tty.
12571 Use the new gpm_tty.
12572 (Fterm_close_connection): Use the new gpm_tty.
12573 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
12574 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
12575
def7fa34
JB
125762007-09-21 Juanma Barranquero <lekktu@gmail.com>
12577
12578 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
12579 underline_color, to draw strike-through.
12580
d2bb6598
SM
125812007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
12582
273f164c
SM
12583 * lisp.h (allocate_terminal): Declare.
12584
ca2d5566
SM
12585 * window.c (candidate_window_p): Consider frames that are being placed
12586 by the user as somewhere between visible and iconified.
12587 (window_loop): Prefer windows on the current frame.
12588 (Fselect_window): Move the use of select-frame to the beginning so we
12589 can just delegate all the work (it'll call us back anyway).
12590
6168122d
SM
12591 * frame.c (Qdisplay_environment_variable):
12592 * frame.h (Qdisplay_environment_variable): Delete.
12593
c51842ec
SM
12594 * .gdbinit (xbacktrace): Print the arg's address rather than the value
12595 of the first arg, since that value may be a union.
12596
d2bb6598
SM
12597 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
12598 parameter rather than Qdisplay_environment_variable. If all else
12599 fails, look for DISPLAY in initial-environment.
12600
6f022c19
GM
126012007-09-21 Glenn Morris <rgm@gnu.org>
12602
12603 * Makefile.in (emacstool): Remove target.
f466320b 12604 (lisp, shortlisp): Remove termdev.elc.
6f022c19 12605
ea1bf8c7
GM
126062007-09-21 Markus Triska <markus.triska@gmx.at>
12607
d2bb6598 12608 * xterm.c (x_delete_display): Compile session management conditionally.
ea1bf8c7 12609
d30a25b3
SM
126102007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
12611
db699fc6
SM
12612 * callproc.c (getenv_internal_1): New function.
12613 (getenv_internal): Use it.
12614 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
12615
d2bb6598 12616 * terminal.c (get_terminal): Don't accept ints to represent terminals.
c5911e55
SM
12617 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
12618 (Fset_terminal_parameter): Work with dead terminals as well.
12619 (Fmodify_terminal_parameters): Remove.
12620
d30a25b3
SM
12621 * terminal.c (get_terminal): Handle terminals.
12622 Make sure the terminal returned is live.
12623 (create_terminal): Use allocate_terminal.
12624 (mark_terminals): Move to alloc.c.
12625 (delete_terminal): Use terminal->name as liveness status.
12626 NULL out fields after freeing their contents.
12627 Don't deallocate the object.
12628 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
12629 rather than an int.
12630 (Fterminal_live_p): Accept non-integer arguments.
12631 (Fterminal_list): Return terminal objects rather than an ints.
12632
12633 * alloc.c (enum mem_type): New member for `terminal' objects.
12634 (allocate_terminal): New function.
d2bb6598
SM
12635 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
12636 Handle terminals.
d30a25b3
SM
12637 (mark_terminal): New fun.
12638 (mark_terminals): Move from terminal.c.
12639
12640 * term.c (get_tty_terminal): Don't treat output_initial specially.
12641 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
12642 (delete_tty): Use terminal->name as liveness status.
12643
12644 * termhooks.h (struct terminal): Make it into a pseudovector.
12645 Remove `deleted' replaced by checking `name's nullness.
12646
12647 * print.c (print_object): Handle terminals.
12648
12649 * lisp.h (enum pvec_type): New `terminal' pseudovector.
12650 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
12651
12652 * frame.c (make_terminal_frame):
12653 * keyboard.c (tty_read_avail_input):
12654 * w32term.c (x_delete_terminal):
12655 * xfns.c (Fx_create_frame, x_create_tip_frame):
12656 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
12657
eba25e7c
GM
126582007-09-20 Glenn Morris <rgm@gnu.org>
12659
12660 * process.c (Fmake_network_process): Doc fix.
12661
2a29c3c1
JR
126622007-09-19 Jason Rumney <jasonr@gnu.org>
12663
12664 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
12665
880820fe 126662007-09-19 Michaël Cadilhac <michael@cadilhac.name>
ba1cbad7
MC
12667
12668 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
12669 Fix a C warning regarding variable constness.
12670
12671 * xterm.c (handle_one_xevent): Fix a C warning.
12672
334a1195
JR
126732007-09-18 Jason Rumney <jasonr@gnu.org>
12674
12675 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
12676
880820fe 126772007-09-17 Jan Djärv <jan.h.d@swipnet.se>
879ffad9
JD
12678
12679 * gtkutil.c (gdpy_def): New variable.
12680 (xg_initialize): Initialize gdpy_def.
12681 (xg_display_close): If no other display exists, set gdpy_def to a
12682 new connection.
12683
880820fe 126842007-09-16 Jan Djärv <jan.h.d@swipnet.se>
45c94881
JD
12685
12686 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
12687 when we have no file name for the icon.
12688 (xg_tool_bar_expose_callback): Remove.
12689 (xg_create_tool_bar): Don't connect expose signal to
12690 xg_tool_bar_expose_callback.
12691 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
12692
4d580af2
AS
126932007-09-16 Andreas Schwab <schwab@suse.de>
12694
12695 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
12696 values instead of zapping them.
12697
aca946f3
GM
126982007-09-14 Glenn Morris <rgm@gnu.org>
12699
12700 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
12701 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
12702 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
12703 scope and rename to omfib_buffer for clarity.
12704 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
12705
25c460e5
KH
127062007-09-14 Kenichi Handa <handa@m17n.org>
12707
12708 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
12709
09b69f01
JR
127102007-09-13 Jason Rumney <jasonr@gnu.org>
12711
12712 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
12713
12714 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
12715
12716 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
12717 (mac_term_init): Call here instead, passing rif.
12718
442218db
GM
127192007-09-13 Glenn Morris <rgm@gnu.org>
12720
12721 * s/hpux.h: No longer define `static' as nothing.
12722
880820fe 127232007-09-13 Johan Bockgård <bojohan@gnu.org>
4795c40f
GM
12724
12725 * callint.c (Fcall_interactively): Remove unused var `fun'.
12726
1971a872
RF
127272007-09-12 Romain Francoise <romain@orebokech.com>
12728
12729 * window.c (prefer_window_split_horizontally, display_buffer):
12730 Revert 2007-09-08 change.
12731
2d33f506
GM
127322007-09-12 Glenn Morris <rgm@gnu.org>
12733
585474ae 12734 * alloca.c: Remove file.
ca7af97a
GM
12735 * Makefile.in (alloca): Do not undef.
12736 (allocaobj, alloca.o): Remove.
12737 (otherobj): Remove allocaobj.
12738 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
12739 * regex.c (C_ALLOCA): Remove all references and code that was only
12740 used when this was defined.
12741 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
12742 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
99dfbaf1
GM
12743 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
12744
2d33f506 12745 * Makefile.in (SOURCES, unlock, relock): Delete.
ca7af97a
GM
12746
12747 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
12748 (menu_grab_callback): All uses changed.
12749
12750 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
12751 (x_reply_selection_request): All uses changed.
2d33f506 12752
18a4a65e
SM
127532007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
12754
12755 * lread.c (load_warn_old_style_backquotes): Change message to look
12756 better when it appears in the middle of byte-compiler messages.
12757
47cc8819
DN
127582007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
12759
b7ea0894
DN
12760 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
12761
47cc8819
DN
12762 * xterm.c (x_create_terminal): Add comment.
12763
12764 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
12765
5632bd0f
RS
127662007-09-10 Richard Stallman <rms@gnu.org>
12767
12768 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
12769
880820fe 127702007-09-10 Michaël Cadilhac <michael@cadilhac.name>
ccb5c14f 12771
4bca9161
MC
12772 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
12773 (DEFUN): Document `intspec', use it instead of `prompt'.
12774
04724b69
MC
12775 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
12776
8a6d230a
MC
12777 * data.c (Finteractive_form): If the interactive specification starts
12778 with a `(', use it as a Lisp form.
12779
09fbdf6c
MC
12780 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
12781 name and file modes.
12782
ccb5c14f
MC
12783 * callint.c (Fcall_interactively): Comment fixes.
12784
023accd6
SM
127852007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
12786
12787 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
12788 and compiled functions.
12789
f26b9544
EZ
127902007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
12791
12792 * window.c (prefer_window_split_horizontally): New variable.
12793 (display_buffer): Consider splitting window horizontally depending
12794 on prefer_window_split_horizontally.
12795
4d395425
EZ
127962007-09-08 Eli Zaretskii <eliz@gnu.org>
12797
97ddc760 12798 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
4d395425 12799
08c1d235
SM
128002007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
12801
179cef48
SM
12802 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
12803
08c1d235
SM
12804 * frame.c (x_set_frame_parameters): Check number is positive before
12805 using XFASTINT.
12806
12807 * window.c (freeze_window_start): Don't presume selected_window holds
12808 a window object.
92f94a12 12809 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
08c1d235 12810
97ddc760 128112007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
de52dcbb
DN
12812
12813 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
12814
90ab5c62
SM
128152007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
12816
12817 * window.c (Vsplit_window_preferred_function): New var.
12818 (Fdisplay_buffer): Use it.
12819 (syms_of_window): Export, and initialize it.
12820
1ab2cd43
TTN
128212007-09-06 Pixel <pixel@mandriva.com> (tiny change)
12822
12823 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
12824
0b0515bc
GM
128252007-09-06 Glenn Morris <rgm@gnu.org>
12826
57fd5c55 12827 * gtkutil.c (menu_grab_callback) <cnt>:
0b0515bc
GM
12828 * xselect.c (x_reply_selection_request) <cnt>: Move static
12829 variable to file scope.
12830
98594580
SM
128312007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
12832
12833 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
12834 consistent values of selected_frame and selected_window.
12835
0f4c7aef
JR
128362007-09-04 Jason Rumney <jasonr@gnu.org>
12837
12838 * w32console.c (initialize_w32_display): Zero unused hooks.
12839
e4019195
DN
128402007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
12841
12842 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
12843 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
12844
bce179b5
JR
128452007-09-04 Jason Rumney <jasonr@gnu.org>
12846
a0236551
JR
12847 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
12848 in w32console.c. Set up input. Remove XXX comments that have been
12849 confirmed as correct.
12850
a4926668
JR
12851 * s/ms-w32.h (MULTI_KBOARD): Define.
12852
953bf0dc
JR
12853 * w32console.c (one_and_only_w32cons): Remove.
12854 (initialize_w32_display): Take terminal argument.
12855
12856 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
12857 initialize_w32_display.
12858 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
12859
bce179b5
JR
12860 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
12861
12862 * keyboard.c (discard_mouse_events): Discard it.
12863 (make_lispy_event): Translate it to a lisp event.
12864 (lispy_wheel_names): Add wheel-left and right events.
12865 (syms_of_keyboard): Enlarge wheel_syms.
12866
12867 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
12868 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
12869
12870 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
12871
12872 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
12873 from WM_MOUSEHWHEEL.
12874 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
12875
12876 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
12877 terminal.
12878
12879 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
12880 keyboard for the terminal.
12881
92cd6a7c
DN
128822007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
12883
12884 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
12885 (Vresume_tty_hook): Rename from Vresume_tty_functions.
12886 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
12887 and resume-tty-function to resume-tty-hook.
12888 (Fsuspend_tty, Fresume_tty): Use new names.
12889
880820fe 128902007-09-02 Jan Djärv <jan.h.d@swipnet.se>
2154c964
JD
12891
12892 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
12893 if it starts with "n:".
12894
880820fe 128952007-08-31 Jan Djärv <jan.h.d@swipnet.se>
b42ff099
JD
12896
12897 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
12898
6b8e474c
SM
128992007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
12900
92d9c1d4
SM
12901 * frame.h:
12902 * frame.c (Qterm_environment_variable): Remove.
12903 (syms_of_frame): Don't init and staticpro it.
12904
92d9c1d4
SM
12905 * callproc.c (getenv_internal): Remove special case for $TERM.
12906
6b8e474c
SM
12907 * callproc.c (Vinitial_environment): New variable.
12908 (set_initial_environment): Initialize it.
12909 (syms_of_callproc): Declare it.
12910 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
12911 TERM under which a process runs is never related to the TERM in which
12912 Emacs is running.
12913
0f1444e1
DN
129142007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
12915
12916 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
12917 * s/darwin.h: ... do it here.
12918
b8866860
SM
129192007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
12920
12921 * lisp.h (set_initial_environment): Rename from set_global_environment.
12922
12923 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
12924 removed by mistake on the multi-tty branch.
12925
12926 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
12927 (Fmodify_frame_parameters): Return a value.
12928
12929 * image.c (png_load): Comment-out var only used in commented-out code.
12930
12931 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
12932 before passing it to mark_object.
12933
12934 * xfaces.c (internal_resolve_face_name): Return a value.
12935 (internal_resolve_face_name, resolve_face_name_error): Comment out.
12936
12937 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
12938 (x_icon): Comment-out var only used in commented-out code.
12939
0a42be6d
RF
129402007-08-29 Romain Francoise <romain@orebokech.com>
12941
12942 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
12943 QUIT hasn't been provided.
12944
8d9cc0b7
MB
129452007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
12946
12947 * callproc.c (child_setup, getenv_internal): Use the
ce20b664 12948 display-environment-variable and term-environment-variable frame params.
8d9cc0b7
MB
12949 (set_initial_environment): Initialise Vprocess_environment.
12950
12951 * config.in: Disable multi-keyboard support on a mac.
12952
12953 * frame.c (Qterm_environment_variable)
12954 (Qdisplay_environment_variable): New variables.
12955 (syms_of_frame): Intern and staticpro them.
12956 (Fmake_terminal_frame): Disable output method test.
12957
12958 * frame.h: Declare them here.
12959
12960 * macfns.c (x_set_mouse_color): Get rif from the frame.
12961 (x_set_tool_bar_lines): Don't use updating_frame.
12962 (mac_window): Add 2 new parameters for consistency with other systems.
12963 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
12964 frame parameters following what is done in X11 and w32. Don't use
12965 FRAME_MAC_DISPLAY_INFO.
12966 (Fx_open_connection, start_hourglass): Remove window-system check.
12967 (x_create_tip_frame): Get the keyboard from the terminal.
12968
12969 * macmenu.c: Reorder includes.
12970 (Fx_popup_menu): Use terminal specific mouse_position_hook.
12971
12972 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
12973 terminal parameter.
12974 (x_clear_frame): Add a frame parameter.
12975 (note_mouse_movement): Get rif from the frame.
12976 (mac_term_init): Initialize the terminal.
12977 (mac_initialize): Make static and move terminal initialization ...
12978 (mac_create_terminal): ... to this new function.
12979
12980 * macterm.h (struct mac_display_info): Add terminal.
7196c970 12981 (mac_initialize): Delete declaration.
8d9cc0b7 12982
381864b2 12983 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
8d9cc0b7
MB
12984
12985 * sysdep.c: Comment out text after #endif.
12986
12987 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
12988 is defined. Better initialize ttys in windows. Use terminal
12989 specific mouse_position_hook.
12990
12991 * termhooks.h (union display_info): Add mac_display_info.
12992
b8866860
SM
12993 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
12994 Set the default minibuffer frame, window_system and the rest of the
8d9cc0b7
MB
12995 frame parameters following what is done in X11.
12996
12997 * w32term.c (w32_initialize): Make static.
12998
12999 * xselect.c (x_handle_selection_clear): Only access
13000 terminal->kboard when MULTI_KBOARD is defined.
13001
13002 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
13003 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
13004
130052007-08-29 Jason Rumney <jasonr@gnu.org>
13006
13007 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
13008 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
13009
13010 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
13011 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
13012
13013 * keyboard.c (restore_kboard_configuration): Only define when
13014 MULTI_KBOARD defined.
13015
35277b03 13016 * makefile.w32-in: Update dependancies from Makefile.in.
8d9cc0b7
MB
13017 (OBJ1): Add terminal.$(O)
13018
b8866860
SM
13019 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
13020 Don't define function body.
8d9cc0b7
MB
13021 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
13022
13023 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
13024
13025 * w32.c (request_sigio, unrequest_sigio): Remove.
13026
13027 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
13028 (w32con_clear_frame, w32con_clear_end_of_line)
13029 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
13030 (w32con_delete_glyphs, w32con_set_terminal_window)
13031 (scroll_line, w32_sys_ring_bell): Add frame arg.
b8866860
SM
13032 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
13033 Add terminal arg.
8d9cc0b7
MB
13034 (PICK_FRAME): Remove.
13035 (w32con_write_glyphs): Use frame specific terminal coding.
13036 (one_and_only_w32cons): New global variable.
13037 (initialize_w32_display): Use it for storing hooks.
13038 (create_w32cons_output): New function.
13039
13040 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
13041 arg a frame.
13042
b8866860
SM
13043 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
13044 Set window_system.
8d9cc0b7
MB
13045 (x_set_tool_bar_lines): Don't use updating_frame.
13046 (Fx_create_frame): Set terminal and ref count.
13047 (Fx_open_connection): Remove window-system check.
13048
13049 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
13050
13051 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
13052 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
13053 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
13054 Add frame arg.
13055 (x_delete_terminal, w32_create_terminal): New functions.
13056 (w32_term_init): Create a terminal.
13057 (w32_initialize): Move terminal specific initialization to
13058 w32_create_terminal.
13059
b8866860 13060 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
8d9cc0b7
MB
13061 (w32_clear_rect, w32_clear_area): Use background from frame.
13062 (w32_display_info): Add terminal.
13063 (w32_sys_ring_bell, x_delete_display): Declare here.
13064
13065 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
13066
13067 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
13068
130692007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
13070
13071 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
13072 Fix get_named_tty calls for the controlling tty.
13073
130742007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
13075
13076 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
13077
130782007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
13079
13080 * term.c (tty_insert_glyphs): Add missing first parameter.
13081
880820fe 130822007-08-29 Károly Lőrentey <karoly@lorentey.hu>
8d9cc0b7 13083
b8866860
SM
13084 * buffer.c (Fbuffer_list, Fbury_buffer):
13085 Take frame->buried_buffer_list into account.
8d9cc0b7
MB
13086
13087 * cm.c (current_tty): New variable, for cmputc().
13088 (cmputc): Use it.
13089 (cmcheckmagic): Add tty parameter, look up terminal streams there.
13090 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
b8866860
SM
13091 (cmgoto): Add tty parameter. Pass it on to calccost().
13092 Use emacs_tputs() instead of tputs().
8d9cc0b7
MB
13093
13094 * cm.h (emacs_tputs): New macro to set current_tty, and then call
13095 tputs().
13096 (current_tty): New variable, for cmputc().
13097 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
13098
13099 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
13100 (internal_condition_case, internal_condition_case_1)
13101 (internal_condition_case_2): Don't abort when x_catching_errors.
13102
13103 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
13104 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
13105 prevent crashes caused by bogus longjmps in read_char.
13106
13107 * keymap.h (Fset_keymap_parent): Add EXFUN.
13108
13109 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
13110 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
13111 Remove redundant definition.
13112
b8866860
SM
13113 * macfns.c (x_set_mouse_color, x_make_gc):
13114 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7 13115
b8866860
SM
13116 * w32term.c (x_free_frame_resources):
13117 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
13118 (w32_initialize): Use the accessor macros for terminal characteristics.
13119
13120 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
13121 Use the accessor macros for terminal characteristics.
13122 * msdos.c (internal_terminal_init): Use the accessor macros for
13123 terminal characteristics.
b8866860
SM
13124 (ScreenVisualBell, internal_terminal_init):
13125 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
13126
13127 * termopts.h (no_redraw_on_reenter): Declare.
13128
13129 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
03f06e5c 13130 (mark_terminals, mark_ttys): Declare.
8d9cc0b7 13131 (Fgarbage_collect): Call them.
03f06e5c 13132 (mark_object): Mark buried_buffer_list.
8d9cc0b7
MB
13133
13134 * prefix-args.c: Include stdlib.h for exit.
13135
13136 * syssignal.h: Add comment.
13137
13138 * indent.c: Include stdio.h.
13139
13140 * window.h (Vinitial_window_system): Declare.
13141 (Vwindow_system): Delete declaration.
13142
13143 * fontset.c (Finternal_char_font): Use FRAME_RIF.
13144
13145 * image.c (lookup_image): Don't initialize `c' until the xasserts
13146 have been run.
13147
13148 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
13149 FRAME_FOREGROUND_PIXEL.
13150
13151 * print.c (print_preprocess): Don't lose print_depth levels while
13152 iterating.
13153
b8866860
SM
13154 * widget.c (update_from_various_frame_slots):
13155 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
13156
13157 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
13158 frames.
13159 (window_internal_height): Remove bogus make_number call.
b8866860 13160 (init_window_once): Call make_terminal_frame with two zero parameters.
8d9cc0b7
MB
13161
13162 * fileio.c (Fread_file_name): Update comment.
13163
b8866860
SM
13164 * callint.c (Fcall_interactively):
13165 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
8d9cc0b7
MB
13166 Make sure it is correctly unwound.
13167
13168 * xsmfns.c (x_session_close): New function.
13169
03f06e5c 13170 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
8d9cc0b7
MB
13171 Delete declarations.
13172
13173 * xterm.h: Remove declaration for x_fully_uncatch_errors.
13174 (x_output): Remove background_pixel and foreground_pixel fields.
03f06e5c 13175 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
c3f9fba8 13176 (x_delete_device, x_session_close): Declare.
8d9cc0b7
MB
13177
13178 * lread.c: Include setjmp.h. Update declaration of `read_char'.
13179 (read_filtered_event): Call `read_char' with a local
13180 `wrong_kboard_jmpbuf'.
13181
b8866860
SM
13182 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
13183 Don't call single_kboard_state. Use FRAME_RIF.
8d9cc0b7
MB
13184
13185 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
13186 systems.
13187
b8866860 13188 * lisp.h (set_process_environment): Rename to `set_global_environment'.
03f06e5c 13189 (Fframe_with_environment, Fset_input_meta_mode)
8d9cc0b7 13190 (Fset_quit_char): EXFUN.
03f06e5c 13191 (x_create_device, tty_output, terminal, tty_display_info): Declare.
8d9cc0b7
MB
13192 (init_sys_modes, reset_sys_modes): Update prototypes.
13193 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
13194
b8866860
SM
13195 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
13196 Vlocal_key_translation_map, and Vkeyboard_translate_table.
03f06e5c 13197 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
8d9cc0b7 13198 Delete declarations.
03f06e5c
JB
13199 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
13200 (temporarily_switch_to_single_kboard, tty_read_avail_input):
8d9cc0b7
MB
13201 New declarations.
13202
13203 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
13204 already does that during init_display(). Call syms_of_keymap
b8866860
SM
13205 before syms_of_keyboard. Call `syms_of_terminal'.
13206 Call set_initial_environment, not set_process_environment.
8d9cc0b7
MB
13207 (shut_down_emacs): Call reset_all_sys_modes() instead of
13208 reset_sys_modes().
13209
13210 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
03f06e5c
JB
13211 (internal_resolve_face_name, resolve_face_name_error): New functions.
13212 (resolve_face_name): Protect against loops and errors thrown by Fget.
13213 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
8d9cc0b7
MB
13214 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
13215
13216 * scroll.c: Replace CURTTY() with local variables throughout the
13217 file (where applicable).
13218 (calculate_scrolling, calculate_direct_scrolling)
13219 (scrolling_1, scroll_cost): Use the accessor macros for terminal
13220 characteristics.
13221
13222 * keymap.c (Vfunction_key_map): Remove.
b8866860 13223 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
8d9cc0b7
MB
13224 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
13225 (Vkey_translation_map): Remove.
13226 (syms_of_keymap): Remove DEFVAR for key-translation-map.
c3f9fba8 13227 (Fdescribe_buffer_bindings)
8d9cc0b7
MB
13228 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
13229 Update for terminal-local key-translation-map.
13230
13231 * Makefile.in (callproc.o): Update dependencies.
13232 (lisp, shortlisp): Add termdev.elc.
13233 (obj): Add terminal.o.
13234 (terminal.o): Add dependencies.
13235 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
13236 (data.o, fns.o): Add termhooks.h dependency.
13237 (SOME_MACHINE_LISP): Add dnd.elc.
13238 (minibuf.o): Fix typo.
13239 Update dependencies.
13240
13241 * data.c (do_symval_forwarding, store_symval_forwarding)
13242 (find_symbol_value): Use the selected frame's keyboard, not
13243 current_kboard.
13244
13245 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
13246 Vwindow_system.
13247
13248 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
13249 Fmenu_bar_open.
13250 (syms_of_xmenu): Update defsubr.
13251 (mouse_position_for_popup, Fx_popup_menu)
13252 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
13253 (set_frame_menubar, free_frame_menubar)
13254 (create_and_show_popup_menu, xmenu_show, )
13255 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
13256 an X frame.
13257
13258 * xselect.c (x_own_selection): Abort if not an X frame.
13259 (some_frame_on_display): Check if it is an X frame.
13260 (x_handle_selection_clear): Deal with MULTI_KBOARD.
13261
13262 * coding.c: Include frame.h and termhooks.h.
03f06e5c 13263 (terminal_coding, keyboard_coding): Delete.
c3f9fba8
JB
13264 (Fset_terminal_coding_system_internal)
13265 (Fset_keyboard_coding_system_internal)
13266 (Fkeyboard_coding_system)
03f06e5c
JB
13267 (Fterminal_coding_system): Add a terminal parameter.
13268 Get terminal_coding from the terminal.
8d9cc0b7
MB
13269 (init_coding_once): Don't call setup_coding_system here.
13270
13271 * dispextern.h (set_scroll_region, turn_off_insert)
13272 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
13273 (tty_clear_end_of_line, tty_setup_colors)
03f06e5c 13274 (delete_tty, updating_frame)
8d9cc0b7
MB
13275 (produce_special_glyphs, produce_glyphs, write_glyphs)
13276 (insert_glyphs): Remove.
13277 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
03f06e5c 13278 (tty_turn_off_highlight, get_tty_size): Add declaration.
b8866860 13279 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
8d9cc0b7
MB
13280
13281 * frame.h (enum output_method): Add output_initial.
13282 (struct x_output): Delete.
b8866860
SM
13283 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
13284 Access foreground_pixel and background_pixel directly from the frame.
8d9cc0b7
MB
13285 (tty_display): Delete.
13286 (struct frame): Add buried_buffer_list, foreground_pixel,
1f204af3 13287 background_pixel and terminal. Delete kboard.
8d9cc0b7
MB
13288 (union output_data): Add tty.
13289 (FRAME_KBOARD): Get the kboard from the terminal.
13290 (FRAME_INITIAL_P): New macro.
13291 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
13292 (Qterm_environment_variable, Qdisplay_environment_variable)
b8866860
SM
13293 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
13294 New declarations.
8d9cc0b7
MB
13295
13296 * termchar.h (tty_output, tty_display_info): New structures.
13297 (tty_list): Declare.
13298 (FRAME_TTY, CURTTY): New macros.
13299 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
13300 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
13301 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
13302 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
13303
13304 * callproc.c: Include frame.h and termhooks.h, for terminal
13305 parameters.
13306 (add_env): New function.
13307 (child_setup): Use it.
b8866860 13308 (child_setup, getenv_internal): Handle the new Vprocess_environment.
8d9cc0b7
MB
13309 (getenv_internal): Fix get_terminal_param call.
13310 (Fgetenv_internal, egetenv): Update doc.
13311 (syms_of_callproc): Initialize Vprocess_environment to nil.
03f06e5c 13312 Register and initialize them. Remove obsolete defvars. Update doc
8d9cc0b7
MB
13313 strings.
13314 (child_setup): Handle Vlocal_environment_variables.
b8866860
SM
13315 (getenv_internal): Add terminal parameter.
13316 Handle Vlocal_environment_variables.
8d9cc0b7
MB
13317 (Fgetenv_internal): Add terminal parameter.
13318 (child_setup, getenv_internal, Fgetenv_internal): Store the local
b8866860 13319 environment in a frame (not terminal) parameter. Update doc strings.
8d9cc0b7
MB
13320 (set_initial_environment): Rename from set_global_environment.
13321 Store Emacs environment in initial frame parameter.
13322
13323 * xdisp.c (redisplay_internal): Update references to
13324 `previous_terminal_frame'.
13325 (display_mode_line, Fformat_mode_line): Replace calls to
13326 `push_frame_kboard' with `push_kboard'.
13327 (get_glyph_string_clip_rects): Add extra parentheses and
13328 braces to prevent compiler warnings.
13329 (calc_pixel_width_or_height): Add xassert to check that the
13330 frame is alive. Don't call `lookup_image' on a termcap frame.
13331 (message2_nolog, message3_nolog, redisplay_internal)
13332 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
13333 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
13334 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
13335 (Fx_display_pixel_width, Fx_display_pixel_height)
13336 (Fx_display_planes, Fx_display_color_cells)
13337 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
13338 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
13339 (Fx_display_backing_store, Fx_display_visual_class)
13340 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
97ddc760 13341 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
8d9cc0b7
MB
13342
13343 * xfns.c (x_set_foreground_color x_set_background_color)
b8866860
SM
13344 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
13345 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
13346 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
13347 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
13348 terminal that is being deleted.
13349 (Fx_create_frame): Use `store_frame_param' to set `window-system'
b8866860 13350 frame parameter, and make sure it overrides any user-supplied setting.
8d9cc0b7
MB
13351 (Fx_close_connection, Fx_synchronize): Unify argument names with
13352 the rest of the DEFUNs.
13353
13354 * dispnew.c (Fsend_string_to_terminal): Update call to
13355 `get_tty_terminal'.
13356 (Fredraw_frame, Fsend_string_to_terminal)
2d33f506 13357 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
8d9cc0b7
MB
13358 FRAME_TERMCAP_P and FRAME_TTY.
13359 (window_change_signal): Don't believe width/height values that are
13360 impossibly small.
13361 (Vinitial_window_system): Rename from Vwindow_system.
13362 (termscript, Wcm, rif): Delete.
13363
13364 * termhooks.h (struct terminal): New struct containing the
13365 previously global text display hooks and new members NAME,
13366 DELETED and PARAM_ALIST.
13367 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
13368 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
13369 (FRAME_RIF): New macros.
13370 (get_terminal_param, get_device): New declarations.
13371 (termscript): Delete declaration.
13372
13373 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
13374 (XTflash, x_free_frame_resources, x_scroll_bar_create)
13375 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
13376 FRAME_FOREGROUND_PIXEL.
13377 (x_fully_uncatch_errors): Disable definition.
13378 (x_scroll_bar_expose): Fix reference to foreground pixel.
13379 (XTread_socket): Disable loop on all X displays.
13380 (x_delete_terminal): Don't set terminal->deleted and let
13381 delete_terminal delete the frames on the terminal.
13382 (x_delete_display): Doc update to reflect changes in
13383 delete_terminal.
13384 (x_display_info) <terminal>: Move member earlier in the struct.
8d9cc0b7
MB
13385 (deleting_tty): Remove old variable.
13386 (Fsuspend_tty): Call clear_tty_hooks.
13387 (Fresume_tty, init_tty): Call set_tty_hooks.
8d9cc0b7
MB
13388 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
13389 errors on X frames.
13390 (x_catch_errors_unwind): Abort if x_error_message is NULL.
13391 (handle_one_xevent): Initialize `f' to NULL.
9cab96b0 13392 (x_delete_terminal, x_create_terminal): New functions.
8d9cc0b7
MB
13393 (XTset_terminal_modes, XTreset_terminal_modes)
13394 (XTread_socket, x_connection_closed, x_term_init)
13395 (x_term_init, x_delete_display): Add terminal parameter.
13396 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
13397 X connections.
13398
bf380f53
GM
13399 * frame.c: Include termchar.h.
13400 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
13401 (Qwindow_system, Qenvironment, Qterm_environment_variable)
13402 (Qdisplay_environment_variable): New vars.
13403 (Fframep): Deal with output_initial.
13404 (Fframe-live-p): Doc fix.
13405 (Fwindow-system): New function.
8d9cc0b7
MB
13406 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
13407 (make_terminal_frame): Don't create frames on a terminal that is
bf380f53 13408 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
b8866860 13409 (store_frame_param): Check for found_for_frame before calling XFRAME.
8d9cc0b7
MB
13410 (Fmake_terminal_frame): Handle NULL tty names correctly.
13411 (syms_of_frame): Enhance doc string of `default-frame-alist'.
bf380f53
GM
13412 (Fdelete_frame): Remove unused variable `count'. Don't allow other
13413 frames to refer to a deleted frame in their 'environment parameter.
8d9cc0b7 13414 (Fframe_with_environment): New function.
b8866860 13415 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
8d9cc0b7
MB
13416 (get_future_frame_param): New function.
13417 (Fmake_terminal_frame): Use it.
2d33f506 13418 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
8d9cc0b7
MB
13419
13420 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
13421 * sysdep.c (reset_sys_modes): Update for renames.
13422
13423 * keyboard.c (tty_read_avail_input): New function.
03f06e5c 13424 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
8d9cc0b7
MB
13425 (syms_of_keyboard): Defsubr them.
13426 (Fset_input_meta_mode, Fset_quit_char): New functions.
13427 (Fset_input_mode): Split to above functions.
8d9cc0b7
MB
13428 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
13429 parameter. Use it in call to `read_char'.
b8866860
SM
13430 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
13431 Set wrong_kboard_jmpbuf correctly in recursive calls.
13432 Use current_kboard to access Vkeyboard_translate_table.
13433 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
13434 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
13435 Update longjmp invocations. Remember the original current_kboard,
13436 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
13437 changes it. Comment out unnecessary calls to
13438 `record_single_kboard_state' and `any_kboard_state'.
13439 Update recursive calls.
8d9cc0b7
MB
13440 (wrong_kboard_jmpbuf): Remove global variable.
13441 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
13442 Handle deleted interrupted_kboards correctly; that is a legal
13443 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
b8866860 13444 and read_char calls. Abort if interrupted_kboard died in read_char.
8d9cc0b7
MB
13445 (any_kboard_state, single_kboard_state)
13446 (push_frame_kboard): Remove function.
13447 (pop_kboard): Switch out of single_kboard mode if the kboard has
03f06e5c
JB
13448 been deleted. Remove unused variable. Help debugging by not
13449 changing current_kboard unnecessarily. Set current_kboard to the
8d9cc0b7
MB
13450 kboard of the selected frame when the stored kboard object has
13451 been deleted before pop_kboard.
13452 (temporarily_switch_to_single_kboard): Change first parameter to a
13453 frame pointer. Throw an error when caller wants to change kboards
13454 while in single_kboard mode. Don't push_kboard if we weren't in
13455 single kboard state. Don't pop_kboard if we popped into any
13456 kboard state.
13457 (restore_kboard_configuration): Abort if pop_kboard changed the
03f06e5c 13458 kboard in single_kboard mode. Call pop_kboard only after setting
8d9cc0b7
MB
13459 up single_kboard mode.
13460 (Frecursive_edit): Switch to single_kboard mode only in nested
13461 command loops.
b8866860
SM
13462 (cmd_error, command_loop, command_loop_1, timer_check):
13463 Comment out unnecessary call to `any_kboard_state' and
8d9cc0b7
MB
13464 `record_single_kboard_state'.
13465 (delete_kboard): Exit single_kboard mode if we have just deleted
03f06e5c 13466 that kboard. Use FRAME_KBOARD.
8d9cc0b7
MB
13467 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
13468 `fatal_error_signal'.
13469 (record_single_kboard_state): Don't push_kboard if we weren't in
13470 single kboard state. Don't pop_kboard if we popped into any
13471 kboard state.
13472 (push_frame_kboard): Rename to push_kboard.
13473 (kbd_buffer_get_event): Use FRAME_TERMINAL.
13474 (read_avail_input): Read input from all terminals.
13475 (mark_kboards): Also mark Vkeyboard_translate_table.
13476 (kbd_buffer_store_event_hold): Simplify condition.
13477 (read_key_sequence): Reinitialize fkey and keytran at each replay.
13478 (Vkeyboard_translate_table): Move to struct kboard.
13479 (init_kboard): Initialize Vkeyboard_translate_table.
13480 (syms_of_keyboard): Use DEFVAR_KBOARD to define
13481 Vkeyboard_translate_table. Update doc strings. Update docs of
13482 local-function-key-map and function-key-map.
13483
13484 * terminal.c: New file.
13485
13486 * term.c: Include errno.h.
13487 (Vring_bell_function, device_list, initial_device)
13488 (next_device_id, ring_bell, update_begin, update_end)
13489 (set_terminal_window, cursor_to, raw_cursor_to)
13490 (clear_to_end, clear_frame, clear_end_of_line)
13491 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
13492 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
13493 (syms_of_term): Move their initialization to terminal.c.
13494 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
13495 (Ftty_display_color_cells)
13496 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
9cab96b0 13497 (clear_tty_hooks, set_tty_hooks)
8d9cc0b7
MB
13498 (init_tty, maybe_fatal): New functions.
13499 (Ftty_type): Return nil if terminal is not on a tty instead of
13500 throwing an error. Doc update.
13501 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
03f06e5c 13502 Doc update. Initialize new subrs and variables.
8d9cc0b7
MB
13503 (delete_tty): Use terminal->deleted.
13504 (tty_set_terminal_modes): Rename from set_terminal_modes.
13505 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
13506 (set_scroll_region): Rename to `tty_set_scroll_region'.
13507 (turn_on_insert): Rename to `tty_turn_on_insert'.
13508 (turn_off_insert): Rename to `tty_turn_off_insert'.
13509 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
13510 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
13511 (toggle_highligh): Rename to `tty_toggle_highlight'.
13512 (background_highlight): Rename to `tty_background_highlight'.
13513 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
13514 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
13515 (tty_set_scroll_region, tty_background_highlight)
13516 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
13517 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
13518 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
13519 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
13520 Add static modifier.
13521 (tty_reset_terminal_modes, tty_set_terminal_window)
13522 (tty_set_scroll_region, tty_background_highlight)
13523 (tty_highlight_if_desired, tty_cursor_to)
13524 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
13525 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
13526 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
13527 renames.
13528
880820fe 135292007-08-28 Jan Djärv <jan.h.d@swipnet.se>
cf0590c4
JD
13530
13531 * keyboard.c: Qrtl is new.
13532 (parse_tool_bar_item): Handle :rtl keyword.
13533 (syms_of_keyboard): Intern :rtl keyword.
13534
13535 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
13536
13537 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
13538 so no Lisp code is executed.
13539 (file_for_image, find_rtl_image): New functions.
1f204af3 13540 (xg_get_image_for_pixmap): Use file_for_image.
cf0590c4
JD
13541 (update_frame_tool_bar): If direction is RTL, use RTL image if
13542 defined. Use Gtk stock images if defined.
13543
83cc8d35
YM
135442007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13545
13546 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
13547 for nonexistent or zero-width glyph in composition glyph.
13548
e60c4e15
SM
135492007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
13550
d7e2a28f
SM
13551 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
13552
e60c4e15
SM
13553 * xdisp.c (Finvisible_p): New function.
13554 (syms_of_xdisp): defsubr it.
13555
ee163e6d
JB
135562007-08-24 Juanma Barranquero <lekktu@gmail.com>
13557
13558 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
13559 Doc fixes.
13560
90fa408d
YM
135612007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13562
35277b03 13563 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
90fa408d 13564
cac4219c
MR
135652007-08-24 Martin Rudalics <rudalics@gmx.at>
13566
13567 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
13568 whether decoding has modified buffer contents.
13569
5fc9fdeb
JR
135702007-08-24 Jason Rumney <jasonr@gnu.org>
13571
13572 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
13573 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
13574 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
13575 (init_svg_functions) [HAVE_NTGUI]: New function.
13576 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
13577 (svg_load_image): Use them.
13578 (svg_load_image) [HAVE_NTGUI]: Implement background.
13579
93b23406
YM
135802007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13581
13582 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
13583 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
13584 (LIBX): Remove @RSVG_LIBS@.
13585 (LIBES): Add $(RSVG_LIBS).
13586
13587 * image.c (svg_load_image): Blend with specified background if exists.
13588 Use IMAGE_BACKGROUND. Add Mac OS Support.
13589
13590 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
13591 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
13592 Remove macros.
13593 [MAC_OSX] (socket_callback): Do nothing.
13594 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
13595 ReceiveNextEvent.
13596 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
13597 socket_callback.
13598 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
13599
2467875c
GM
136002007-08-22 Glenn Morris <rgm@gnu.org>
13601
ff8da443 13602 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
2467875c 13603
4ab27a43
GM
136042007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
13605
13606 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
ff8da443 13607
666e0eda
GM
13608 * image.c: Add support for SVG images. Some additional comments
13609 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
13610 (svg_image_p): New function to test for SVG image.
13611 (svg_load): New function to load SVG image.
13612 (svg_load_image): New function, helper for svg_load.
13613 (Qsvg): New Lisp_object.
13614 (svg_keyword_index): New enum.
13615 (svg_format): New static `image_keyword' struct.
13616 (svg_type): New static `image_type' struct.
13617 (librsvg/rsvg.h): Include it.
4ab27a43 13618
b636b4c1
SM
136192007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
13620
13621 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
13622
9ecb827b
SM
136232007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
13624
1d064697
SM
13625 * lread.c (Qold_style_backquotes): New var.
13626 (syms_of_lread): Init and staticpro it.
13627 (load_warn_old_style_backquotes): New fun.
13628 (Fload): Use them to warn about old style backquotes.
13629 (end_of_file_error, Fload): Remove unused vars.
13630
5772ed4b
SM
13631 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
13632
9ecb827b 13633 * lread.c (Vold_style_backquotes): New var.
5aa273b0 13634 (syms_of_lread): Init and export it to Elisp.
9ecb827b
SM
13635 (read1): Set it when we find an old-style (back)quote.
13636
32e1c7b1
JR
136372007-08-22 Jason Rumney <jasonr@gnu.org>
13638
13639 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
13640
b8fa755b
KY
136412007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
13642
13643 * puresize.h (BASE_PURESIZE): Increase to 1140000.
13644
1283140e
RS
136452007-08-19 Richard Stallman <rms@gnu.org>
13646
13647 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
13648
2c4685ee
AS
136492007-08-19 Andreas Schwab <schwab@suse.de>
13650
13651 * alloc.c (pure): Round PURESIZE up.
13652
880820fe 136532007-08-17 Jan Djärv <jan.h.d@swipnet.se>
e8953ebf
JD
13654
13655 * xterm.c (handle_one_xevent): Remove check that mouse click is in
13656 active frame.
13657
6e33efc4
RS
136582007-08-16 Richard Stallman <rms@gnu.org>
13659
13660 * eval.c (Fcommandp): Add parens to clarify.
13661
13662 * minibuf.c (Fall_completions): Use enum for type of table.
13663
13664 * emacs.c (USAGE2): Improve text.
13665
fcf8ff2e
GM
136662007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
13667
5205ee62
GM
13668 * term.c (tty_default_color_capabilities): Declare static
13669 variables in file scope, to avoid HPUX compiler problem.
fcf8ff2e 13670
880820fe 136712007-08-13 Jan Djärv <jan.h.d@swipnet.se>
81d13a51
JD
13672
13673 * gtkutil.c (update_frame_tool_bar): Use -1 as index
13674 to gtk_toolbar_insert.
13675
4a181359
SM
136762007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
13677
1bc99c9c
SM
13678 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
13679
4a181359
SM
13680 * insdel.c (reset_var_on_error): New fun.
13681 (signal_before_change, signal_after_change):
13682 Use it to reset (after|before)-change-functions to nil in case of error.
13683 Bind inhibit-modification-hooks to t.
13684 Don't bind (after|before)-change-functions to nil while they run.
13685
6c28435c
YM
136862007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13687
13688 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
13689 filling pixmap with stippled background.
13690
ad3b3e02
YM
136912007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13692
13693 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
13694 Don't use invisible frame as parent window for repositioning.
13695
a22dec27
SM
136962007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
13697
13698 * print.c (new_backquote_output): Rename from old_backquote_output.
13699 (print): Inverse its logic (according to its name) so as to match the
13700 behavior of new_backquote_flag in lread.c.
13701
7b7d07bb
YM
137022007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13703
13704 * gmalloc.c (posix_memalign): New function.
13705
13706 * macterm.c (frame_highlight, frame_unhighlight): Don't call
13707 ActivateControl/DeactivateControl here.
13708 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
13709 frame-notice-user-settings is non-nil.
13710 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
13711 for kEventParamFMFontStyle.
13712 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
13713 mac_pass_command_to_system and mac_pass_control_to_system here.
13714 (XTread_socket): Call ActivateControl/DeactivateControl here.
13715 (XTread_socket) [TARGET_API_MAC_CARBON]:
13716 Check mac_pass_command_to_system and mac_pass_control_to_system here.
f9426479
YM
13717 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
13718 for window repositioning.
7b7d07bb 13719
22e9fe24
GM
137202007-08-08 Glenn Morris <rgm@gnu.org>
13721
13722 * Replace `iff' in doc-strings and comments.
13723
ae494350
CY
137242007-08-07 Chong Yidong <cyd@stupidchicken.com>
13725
13726 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
13727
6f2528d8
MR
137282007-08-07 Martin Rudalics <rudalics@gmx.at>
13729
13730 * fileio.c (Finsert_file_contents): Run format-decode and
13731 after_insert_file_functions on entire buffer when REPLACE is
13732 non-nil and inhibit modification_hooks and point_motion_hooks.
13733 For consistency, run after_insert_file_functions iff something
13734 got inserted. Move signal_after_change and update_compositions
13735 after code running after_insert_file_functions. Make sure that
6b8e474c 13736 undo_list doesn't record intermediate steps of the decoding process.
6f2528d8 13737
3ceeb306
YM
137382007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13739
13740 * emacs.c (main)
13741 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
13742 Call malloc_enable_thread on interactive startup.
13743
13744 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
7b7d07bb
YM
13745 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
13746 [USE_PTHREAD]: Conditionalize with it.
3ceeb306
YM
13747 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
13748 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
13749 New functions.
13750
ca5e6fd5
CY
137512007-08-06 Chong Yidong <cyd@stupidchicken.com>
13752
32bfce5d
CY
13753 * xdisp.c (redisplay_window): When restoring original buffer
13754 position, make sure it is still valid.
13755
ca5e6fd5
CY
13756 * image.c (png_load): Ignore png-supplied background color.
13757
a5b11587
YM
137582007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13759
13760 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
13761 Use kCFAbsoluteTimeIntervalSince1970.
13762
13763 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
13764 New variable.
13765 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
13766 event loop should be quit.
13767 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
13768 Quit dialog event loop if quit_dialog_event_loop is set.
13769
13770 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
13771 (Selection): New typedef. Use instead of ScrapRef.
13772 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
13773 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
13774 (mac_clear_selection): Rename from clear_scrap.
13775 (get_flavor_type_from_symbol): New argument SEL and subsume function of
ff8da443 13776 scrap_has_target_type. All uses changed.
a5b11587
YM
13777 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
13778 (mac_selection_has_target_p): New functions.
13779 (mac_put_selection_value): Rename from put_scrap_string.
13780 (mac_get_selection_value): Rename from get_scrap_string.
13781 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
13782 (put_scrap_private_timestamp, scrap_has_target_type)
13783 (get_scrap_private_timestamp): Remove functions.
13784 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
13785 (x_own_selection, x_get_local_selection):
13786 Use mac_valid_selection_value_p.
13787 (x_own_selection): Don't use put_scrap_private_timestamp.
13788 Record OWNERSHIP-INFO into Vselection_alist instead.
13789 (x_get_local_selection): Don't check type if request is local.
13790 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
13791 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
13792
880820fe 137932007-08-04 Jan Djärv <jan.h.d@swipnet.se>
991bde0d
JD
13794
13795 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
13796 add comment explaining why.
13797
73ff9d42
RS
137982007-08-03 Richard Stallman <rms@gnu.org>
13799
13800 * fileio.c (Fvisited_file_modtime): Use make_time.
13801
54ed9a2d 138022007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
cdf5c17a
VJL
13803
13804 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
13805 build.
13806
65a9c8e2
SM
138072007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
13808
13809 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
13810
c5925799
KY
138112007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
13812
13813 * puresize.h (BASE_PURESIZE): Increase to 1130000.
13814
adef3de7
RS
138152007-07-30 Richard Stallman <rms@gnu.org>
13816
13817 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
13818
880820fe 138192007-07-29 Jan Djärv <jan.h.d@swipnet.se>
784c1472
JD
13820
13821 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
13822
a10421a1
NR
138232007-07-28 Nick Roberts <nickrob@snap.net.nz>
13824
13825 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
13826 remote default-directory.
13827
13828 * buffer.c (mode-line-format): Update doc string.
13829
0cb1ae20
YM
138302007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13831
13832 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
13833 scroll bar gap.
13834 (x_scroll_bar_create): Set bar->fringe_extended_p.
13835 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
13836 on frame edge. Check fringe background extension. Don't clear
13837 extended fringe background area.
13838
13839 * w32term.h (struct scroll_bar): New member fringe_extended_p.
13840 (w32_fill_area): Enclose multiple statements with do ... while (0).
13841
13842 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
13843 Extend fringe background to scroll bar gap.
13844 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
13845 Set bar->fringe_extended_p.
13846 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
13847 Put leftmost/rightmost scroll bars on frame edge. Check fringe
13848 background extension. Don't clear extended fringe background area.
13849
13850 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
13851 New member fringe_extended_p.
13852
cacc7b51
GM
138532007-07-25 Glenn Morris <rgm@gnu.org>
13854
13855 * Relicense all FSF files to GPLv3 or later.
13856
13857 * COPYING: Switch to GPLv3.
13858
89835619
SM
138592007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
13860
c4f46926
SM
13861 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
13862
13863 * data.c (Finteractive_form): Check for the presence of an
13864 `interactive-form' symbol property more thoroughly.
13865
13866 * data.c (Finteractive_form): Use an `interactive-form' property if
89835619
SM
13867 present, analogous to the function-documentation property.
13868
ee04257d
JR
138692007-07-24 Jason Rumney <jasonr@gnu.org>
13870
13871 * w32fns.c (x_real_positions): Get real position from OS instead of
13872 calculating it.
13873
50624218
JR
138742007-07-23 Jason Rumney <jasonr@gnu.org>
13875
13876 * filelock.c (current_lock_owner): Allow for @ sign in username.
13877
3650f60e
NR
138782007-07-22 Nick Roberts <nickrob@snap.net.nz>
13879
13880 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
13881 remote default-directory.
13882
13883 * buffer.c (mode-line-format): Describe above case in doc string.
13884
1e899515 138852007-07-20 Eli Zaretskii <eliz@gnu.org>
b395d6e1 13886
75be5258
EZ
13887 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
13888 Define if not defined.
13889
2b6e2f4d
JR
138902007-07-18 Jason Rumney <jasonr@gnu.org>
13891
13892 * w32proc.c (w32_executable_type): Handle 64 bit executables.
13893
23dacf80
JB
138942007-07-18 Richard Stallman <rms@gnu.org>
13895
13896 * data.c (Fsetq_default): Doc fix.
13897
13898 * eval.c (Fsetq): Doc fix.
13899
139002007-07-18 Juanma Barranquero <lekktu@gmail.com>
13901
13902 * coding.c (Ffind_operation_coding_system):
13903 * eval.c (For, Fand): Doc fixes.
880820fe 13904 Reported by Johan Bockgård.
23dacf80 13905
880820fe 139062007-07-18 Jan Djärv <jan.h.d@swipnet.se>
656de71a 13907
23dacf80 13908 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
656de71a 13909
23dacf80 13910 * xterm.h: Declare x_ewmh_activate_frame.
656de71a
JD
13911
13912 * xterm.c (x_ewmh_activate_frame): New function.
13913 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
13914
71ec17e6
MR
139152007-07-17 Martin Rudalics <rudalics@gmx.at>
13916
13917 * window.c (Fdisplay_buffer): If largest or LRU window is the
13918 only window, split it even if it is not eligible for splitting.
13919 This restores the original behavior broken by the 2007-07-15
13920 change.
13921
e9818042
GM
139222007-07-17 Glenn Morris <rgm@gnu.org>
13923
13924 * abbrev.c (abbrev_check_chars): New function.
6b8e474c
SM
13925 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
13926 Call abbrev_check_chars to check abbrev characters are word
e9818042
GM
13927 constituents. Doc fix.
13928
e6fca843
SM
139292007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
13930
13931 * process.c (Fstart_process, Fmake_network_process)
13932 (read_process_output): Fix up last changes.
13933
b5d2b4ab
EZ
139342007-07-16 Eli Zaretskii <eliz@gnu.org>
13935
13936 * makefile.w32-in (clean): Don't delete *~.
13937
413a79ad
AS
139382007-07-16 Andreas Schwab <schwab@suse.de>
13939
13940 * window.c (Fdisplay_buffer): Use NILP.
13941 (Fset_window_scroll_bars): Likewise.
13942
f1de8c77
MR
139432007-07-15 Martin Rudalics <rudalics@gmx.at>
13944
13945 * window.c (window_min_size_2): New function.
13946 (window_min_size_1, size_window, Fdisplay_buffer)
13947 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
13948 windows without mode- or header-lines when window-min-height is
13949 too small.
13950 (size_window): Reset nodelete_p after testing it, following an
13951 earlier note by Kim F. Storm.
13952 (display_buffer): Do not set split_height_threshold to twice the
13953 value of window_min_height to avoid changing the value of a
13954 customizable variable. Rather explicitly check whether the
13955 height of the window that shall be splitted is at least as large
13956 as split_height_threshold.
1af74d06
MB
13957 (Fwindow_full_width_p): New defun.
13958 (syms_of_window): Defsubr it.
d31053f9 13959
1af74d06 13960 * window.h: Add EXFUN for Fwindow_full_width_p.
f1de8c77 13961
5e1ab613
JR
139622007-07-14 Jason Rumney <jasonr@gnu.org>
13963
13964 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
13965
f01cbfdd
RS
139662007-07-14 Richard Stallman <rms@gnu.org>
13967
13968 * eval.c (maybe_call_debugger): New function.
13969 (find_handler_clause): Use maybe_call_debugger.
13970 Call it when the handler says `debug'.
13971 Eliminate DEBUGGER_VALUE_PTR.
13972 (Fsignal): Eliminate debugger_value.
13973 (Qdebug): New variable.
13974 (syms_of_eval): Initialize it.
13975
1bab435a
JB
139762007-07-14 Juanma Barranquero <lekktu@gmail.com>
13977
13978 * eval.c (Fprogn):
13979 * keyboard.c (Ftrack_mouse):
13980 * print.c (Fwith_output_to_temp_buffer):
13981 * window.c (Fsave_window_excursion): Doc fix.
13982
be436d23
SM
139832007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
13984
13985 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
13986
60f0fb11
SM
139872007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
13988
13989 * process.h (struct Lisp_Process): Turn slots infd, outfd,
13990 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
13991 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
13992 read_output_delay, and read_output_skip from Lisp_Objects to ints.
13993 Remove unused encoding_carryover.
13994 * process.c: Adjust all functions accordingly.
13995
d8b18043
RS
139962007-07-12 Richard Stallman <rms@gnu.org>
13997
13998 * term.c: Include unistd.h only if HAVE_UNISTD_H.
13999
d5781bb6
JR
140002007-07-11 Jason Rumney <jasonr@gnu.org>
14001
14002 * makefile.w32-in (LIBS): Include OLE32.
14003
14004 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
14005 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
14006
5bb7dfee
SM
140072007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
14008
14009 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
14010 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
14011 from a Lisp_Object into a bare pointer.
14012 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
14013 Adjust the code correspondingly.
14014
14015 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
14016
14017 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
14018 (term_show_mouse_face): Remove unused var `j'.
14019 (handle_one_term_event): Remove unused vars `i' and `j'.
14020 Don't cast return value of ttyname since it's not necessary.
14021
a1be1ce8
SM
140222007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
14023
5045e68e
SM
14024 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
14025 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
14026
8071c00f
SM
14027 * fns.c (map_char_table): Use an array of int for `indices' rather than
14028 an array of Lisp_Objects (which are only ever integers anyway).
14029 (Fmap_char_table): Update caller.
14030 * lisp.h: Update prototype.
14031 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
14032 * fontset.c (Ffontset_info):
14033 * casetab.c (set_case_table): Update callers.
14034
14035 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
14036
fab84e3c
SM
14037 * keymap.c (struct accessible_keymaps_data)
14038 (struct where_is_internal_data): New structures.
14039 (accessible_keymaps_1, where_is_internal_1): Use them to change
14040 interface to adhere to the one used by map_keymap.
14041 (Faccessible_keymaps, where_is_internal): Use map_keymap.
14042 (accessible_keymaps_char_table, where_is_internal_2): Remove.
14043
a1be1ce8
SM
14044 * keymap.h (map_keymap_function_t): More informative prototype.
14045
ef887810
RS
140462007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
14047
14048 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
14049 (looking_at_1): Don't change search_regs and last_thing_searched
14050 if `inhibit-changing-match-data' is non-nil.
14051 (string_match_1, search_buffer, set_search_regs): Likewise.
14052 (syms_of_search): Add Lisp level definition for
14053 `inhibit-changing-match-data' and set it to nil.
8071c00f
SM
14054 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
14055 start and end of the match, instead of using values in search_regs.
ef887810 14056
4d02fc25
SM
140572007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
14058
14059 * minibuf.c (Fcompleting_read): New value `confirm-only'
14060 for `require-match'.
14061
fe45b81f
SM
140622007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
14063
14064 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
14065 part of the 2007-06-27 change to syms_of_fileio.
14066
a56dd283
YM
140672007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14068
14069 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
14070 Check WINDOWP before using XWINDOW. Consolidate return statements.
14071
0cf9f5b5
RS
140722007-06-27 Richard Stallman <rms@gnu.org>
14073
14074 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
14075
a66f285a
JB
140762007-06-27 Juanma Barranquero <lekktu@gmail.com>
14077
14078 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
14079
8d0d84d2
YM
140802007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14081
14082 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
14083 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
14084 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
14085 (_free_internal, memalign): Use them.
14086 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
14087 Initialize to PTHREAD_MUTEX_INITIALIZER.
14088 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
14089 (morecore_nolock): Rename from morecore. All uses changed.
14090 Use only nolock versions of internal allocation functions.
14091 (_malloc_internal_nolock, _realloc_internal_nolock)
14092 (_free_internal_nolock): New functions created from
14093 _malloc_internal, _realloc_internal, and _free_internal.
14094 (_malloc_internal, _realloc_internal, _free_internal): Use them.
14095 Copy hook value to automatic variable before its use.
14096 (memalign): Copy hook value to automatic variable before its use.
14097
5a0bbd9a
KH
140982007-06-26 Kenichi Handa <handa@m17n.org>
14099
14100 * coding.c (Ffind_operation_coding_system): Docstring improved.
14101 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
14102
9a51747b
DK
141032007-06-25 David Kastrup <dak@gnu.org>
14104
14105 * keymap.c (Fcurrent_active_maps): Add `position' argument.
14106 (Fwhere_is_internal): Adjust call to `current-active-maps' to
14107 cater for additional parameter.
14108
14109 * keymap.h: Adjust number of parameters to `current-active-maps'.
14110
14111 * doc.c (Fsubstitute_command_keys): Adjust call of
14112 `current-active-maps'.
14113
e4305426
DK
141142007-06-25 David Kastrup <dak@gnu.org>
14115
14116 * callint.c (Fcall_interactively): Make the parsing of interactive
14117 specs somewhat more readable.
14118
511a18d9
YM
141192007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14120
14121 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
14122 to scroll bar gap also when bitmap fills fringe. Draw only foreground
14123 if extended background has already been filled.
14124
512eb161
YM
141252007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14126
14127 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
14128 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
14129
14130 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
14131 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
14132 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
14133 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
14134 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
14135 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
14136 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
14137 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
14138 Run timers during dialog popup.
14139 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
14140
2386b1f1
JR
141412007-06-21 Jason Rumney <jasonr@gnu.org>
14142
14143 * image.c (convert_mono_to_color_image): Swap fore and background.
14144
fab8b787
JR
141452007-06-20 Jason Rumney <jasonr@gnu.org>
14146
14147 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
14148 (w32_free_bdf_font): Unmap memory not handle.
14149
15bdd7a0 141502007-06-20 Sam Steingold <sds@gnu.org>
3cacba85
SS
14151
14152 * gmalloc.c (__morecore): Fix the declaration to comply with the
14153 definition.
14154
1bb8a291
JB
141552007-06-20 Juanma Barranquero <lekktu@gmail.com>
14156
14157 * w32term.c (w32_delete_display): Remove leftover declaration.
14158 (w32_define_cursor, w32_initialize): Make static.
14159
14160 * w32.c (_wsa_errlist): Fix typo in error message.
14161 (init_environment): Ignore any environment variable from the
14162 registry having a null value.
14163
92648dea
GM
141642007-06-20 Glenn Morris <rgm@gnu.org>
14165
14166 * Makefile.in (LIBGIF): Default to -lgif.
14167
ff25d115
JR
141682007-06-17 Jason Rumney <jasonr@gnu.org>
14169
14170 * w32menu.c (add_menu_item): Don't use multibyte string functions on
14171 unicode strings.
14172
a1a578a5
JB
141732007-06-16 Juanma Barranquero <lekktu@gmail.com>
14174
14175 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
14176 Fix typo in docstring.
14177
af41f8a8
EZ
141782007-06-16 Eli Zaretskii <eliz@gnu.org>
14179
14180 * w32menu.c (add_menu_item): Escape `&' characters in menu items
14181 and their keybindings.
14182
8b29cab9
CY
141832007-06-15 Chong Yidong <cyd@stupidchicken.com>
14184
14185 * composite.c (update_compositions): Fix last fix.
14186
c433c134
JR
141872007-06-14 Jason Rumney <jasonr@gnu.org>
14188
14189 * w32.c (get_process_times_fn): New function pointer.
14190 (globals_of_w32): Intialize it if present in kernel32.dll.
14191 (w32_get_internal_run_time): New function.
14192
14193 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
14194
553d3164
KH
141952007-06-14 Kenichi Handa <handa@etlken.m17n.org>
14196
14197 * composite.c (update_compositions): Check the validness of
14198 compositions.
14199
446ba96f
YM
142002007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14201
14202 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
14203 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
14204
14205 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
14206 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
14207
14208 * macgui.h (USE_MAC_TOOLBAR): New define.
14209
14210 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
14211 Return immediately unless popup is activated.
14212
14213 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
14214 background to scroll bar gap.
14215 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
14216 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
14217 scroll bars on frame edge. Check fringe background extension.
14218 Don't clear extended fringe background area.
14219 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
14220 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
14221 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
14222 [USE_MAC_TOOLBAR]: New macros.
14223 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
14224 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
14225 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
14226 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
14227 [USE_MAC_TOOLBAR]: New functions.
14228 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
14229 manually if previous repositioning has failed.
14230 (mac_handle_keyboard_event): Use precomputed event kind.
14231 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
14232 as tool bar item click. Handle mouse movement over tool bar items.
14233
14234 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
14235 toolbar_win_gravity.
14236 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
14237 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
14238 Add externs.
14239
14240 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
14241 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
14242
9720173f
CY
142432007-06-14 Chong Yidong <cyd@stupidchicken.com>
14244
14245 * image.c (search_image_cache): Remove unused variable.
14246
1217dd00
CY
142472007-06-13 Chong Yidong <cyd@stupidchicken.com>
14248
14249 * xfns.c, xmenu.c: Link to xaw3d if available.
14250
c5b8e0ea
YM
142512007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14252
14253 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
14254 frame_foreground and frame_background.
14255
14256 * image.c (lookup_image): Save frame foreground and background colors.
14257 (search_image_cache): Check if saved and current frame colors match.
14258
c69b0314
SM
142592007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
14260
14261 * regex.c (regex_compile): Remove the `regnum' counter.
14262 Use bufp->re_nsub instead. Add support for \(?N:RE\).
14263
c9612b8e
SM
142642007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
14265
14266 * term.c: Include intervals.h to declare Fget_text_property.
14267
843d2458
JR
142682007-06-10 Jason Rumney <jasonr@gnu.org>
14269
14270 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
14271
1e0d2d60 142722007-06-08 Juanma Barranquero <lekktu@gmail.com>
977f6cfb
JB
14273
14274 * callint.c (Fcall_interactively):
14275 * editfns.c (Fdelete_and_extract_region):
14276 * fileio.c (Fread_file_name):
14277 * fns.c (Fmapconcat):
14278 * keyboard.c (cmd_error_internal):
14279 * keymap.c (Fkey_description):
14280 * lread.c (openp):
14281 * minibuf.c (read_minibuf):
14282 * search.c (wordify):
14283 * sunfns.c (sel_read):
14284 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
14285 * xfns.c (x_default_scroll_bar_color_parameter):
14286 * xmenu.c (menu_help_callback):
14287 * xselect.c (Fx_get_atom_name):
14288 * xterm.c (x_term_init): Use empty_unibyte_string.
14289
15bdd7a0 142902007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
977f6cfb
JB
14291
14292 * alloc.c (init_strings): Initialize canonical empty strings.
14293 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
14294 canonical empty string when the requested size is 0.
14295
14296 * emacs.c (empty_unibyte_string): Rename from empty_string.
14297 (empty_multibyte_string): New canonical empty string.
14298 (syms_of_emacs): Don't initialize empty_string.
14299
14300 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
14301 string, if appropriate.
14302 (empty_unibyte_string, empty_multibyte_string): New externs.
14303 (empty_string): Remove extern.
14304
14305 * lread.c (syms_of_lread): Use empty_unibyte_string.
14306
42c4c67a
JR
143072007-06-07 Jason Rumney <jasonr@gnu.org>
14308
14309 * s/ms-w32.h: Don't define HAVE_TZNAME.
14310
14311 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
14312
aa8280d3
YM
143132007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14314
14315 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
14316
14317 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
14318 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
14319
14320 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
14321 Don't call next handler.
14322 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
14323 Remove argument. Install handler to application.
14324 (set_frame_menubar): Don't change deep_p.
1e0d2d60 14325 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
aa8280d3
YM
14326 FRAME_OUTER_TO_INNER_DIFF_Y.
14327 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
14328 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
14329 [HAVE_DIALOGS]: New macros.
14330 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
14331 Use them.
14332 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
14333
14334 * macselect.c [MAC_OSX] (install_service_handler): Rename from
14335 init_service_handler. All callers changed. Return OSStatus value.
14336
14337 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
14338 All callers changed so as not to call SetPortWindowPort.
14339 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
14340 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
14341 mac_draw_string_common.
14342 (mac_draw_image_string_qd): Likewise.
14343 (mac_draw_string_common): Use them. Add INLINE.
14344 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
14345 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
14346 GetGlobalMouse.
14347 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
14348 and FRAME_OUTER_TO_INNER_DIFF_Y.
14349 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
14350 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
14351 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
14352 repositioning window to mac_handle_window_event.
14353 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
14354 saving window location to mac_handle_window_event
14355 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
14356 (install_menu_target_item_handler): Remove argument in extern.
14357 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
14358 Also accept command events.
14359 (do_keystroke): New function created from XTread_socket.
14360 (init_command_handler): Remove functions.
14361 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
14362 and save window location by kEventWindowShowing and kEventWindowHiding
14363 handlers here. Don't call next handler for window state change and
14364 focus events.
14365 (mac_handle_application_event, mac_handle_keyboard_event)
14366 [TARGET_API_MAC_CARBON]: New functions.
14367 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
14368 kEventWindowShowing and kEventWindowHiding events. Move installation
14369 of mouse, font, text input and menu target item handlers to
14370 install_application_handler.
14371 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
14372 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14373 New function.
14374 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14375 Register it.
c9612b8e
SM
14376 (XTread_socket) [TARGET_API_MAC_CARBON]:
14377 Consolidate SendEventToEventTarget calls.
14378 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
14379 Move application activation handler to mac_handle_application_event.
14380 Move keyboard handler to mac_handle_keyboard_event.
aa8280d3
YM
14381 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
14382 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
14383 init_command_handler. Call install_application_handler.
14384
14385 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
14386 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
14387
6926c954
GM
143882007-06-07 Glenn Morris <rgm@gnu.org>
14389
14390 * emacs.c (main): Use `emacs-copyright' in --version output.
14391
6fe04c89
CY
143922007-06-06 Chong Yidong <cyd@stupidchicken.com>
14393
c9612b8e 14394 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
6fe04c89 14395
7eb0d727
YM
143962007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14397
14398 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
785ce0ac 14399
7eb0d727
YM
14400 * macgui.h: Replace WindowPtr with WindowRef.
14401
14402 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
14403 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
14404 Replace ControlHandle with ControlRef.
14405 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
14406
14407 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
14408 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
14409 Replace ControlHandle with ControlRef.
14410 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
14411 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
14412
14413 * macterm.h (struct scroll_bar): Rename member control_handle_low
14414 and control_handle_high to control_ref_low and control_ref_high.
14415 All uses changed.
14416 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
14417 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
14418 respectively. All uses changed.
14419 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
14420 (install_window_handler, remove_window_handler): Replace WindowPtr
14421 with WindowRef in externs.
14422
65fddb74
JB
144232007-06-05 Juanma Barranquero <lekktu@gmail.com>
14424
14425 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
14426
db1213a9
NR
144272007-06-03 Nick Roberts <nickrob@snap.net.nz>
14428
14429 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
14430
65fddb74 14431 * frame.c (Fmouse_position, Fmouse_pixel_position):
db1213a9
NR
14432 Condition on HAVE_GPM too.
14433
14434 * term.c (term_mouse_highlight): Remove unused variables.
14435 (Fterm_open_connection): Set gpm_zerobased to 1.
14436 (term_mouse_movement, term_mouse_click, handle_one_term_event):
14437 Use zero based co-ordinates.
14438 (handle_one_term_event): Report a drag as mouse movement too.
14439
14440 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
14441
d94df25b
CY
144422007-06-03 Chong Yidong <cyd@stupidchicken.com>
14443
14444 * image.c (search_image_cache): New function. Require background
14445 color match if background color is unspecified in the image spec.
14446 (uncache_image, lookup_image): Use it.
14447
4797b6d9
JB
144482007-06-01 Juanma Barranquero <lekktu@gmail.com>
14449
14450 * window.c (Fshrink_window): Reflow docstring.
14451
1ffe7343
NR
144522007-06-02 Chong Yidong <cyd@stupidchicken.com>
14453
14454 * Version 22.1 released.
14455
144562007-06-01 Richard Stallman <rms@gnu.org>
14457
14458 * xfns.c (x_encode_text): Add GCPRO.
14459
144602007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14461
14462 * xfns.c (x_set_name_internal): Save encoded name before
14463 x_encode_text in case string data is relocated.
14464
144652007-05-31 Richard Stallman <rms@gnu.org>
14466
14467 * buffer.c (syms_of_buffer): Doc fix.
14468
144692007-05-30 Nick Roberts <nickrob@snap.net.nz>
14470
14471 * sysdep.c (init_sys_modes): Add rather than replace with
14472 O_NONBLOCK.
14473
14474 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
14475 term_mouse_moveto.
14476
14477 * termhooks.h (term_mouse_moveto): New extern.
14478
14479 * term.c (mouse_face_window): Rename...
14480 (Qmouse_face_window): ...to this.
14481 (term_show_mouse_face, term_clear_mouse_face)
14482 (term_mouse_highlight): Use Qmouse_face_window.
14483 (term_mouse_moveto): New function.
14484 (term_mouse_position): Make it work.
14485 (syms_of_term): Uncomment assignment to mouse_position_hook.
14486 Staticpro Qmouse_face_window.
14487
144882007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14489
14490 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
14491 around current_column call.
14492
144932007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
14494
14495 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
14496 * xdisp.c (next_element_from_buffer):
14497 * window.c (delete_window):
14498 * term.c (term_mouse_highlight):
14499 * msdos.c (getdefdir):
14500 * macterm.c (mac_create_bitmap_from_bitmap_data)
14501 (init_font_name_table):
14502 * fns.c (Fsxhash):
14503 * data.c (Fmake_local_variable):
14504 * ccl.c (ccl_driver): Likewise.
14505
145062007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14507
14508 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
14509 Call mac_wakeup_from_rne on window size change.
14510
145112007-05-25 Chong Yidong <cyd@stupidchicken.com>
14512
14513 * image.c (uncache_image): Fix typo.
14514
145152007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
14516
14517 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
14518
145192007-05-22 Richard Stallman <rms@gnu.org>
14520
14521 * xterm.c (x_connection_closed): Remove NO_RETURN.
14522
145232007-05-22 Martin Rudalics <rudalics@gmx.at>
14524
14525 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
14526
145272007-05-21 Chong Yidong <cyd@stupidchicken.com>
14528
14529 * image.c (uncache_image): New function.
14530 (Fimage_refresh): New function.
14531
880820fe 145322007-05-20 Jan Djärv <jan.h.d@swipnet.se>
1ffe7343
NR
14533
14534 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
14535
145362007-05-20 Nick Roberts <nickrob@snap.net.nz>
14537
14538 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
14539 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
14540
145412007-05-20 Nick Roberts <nickrob@snap.net.nz>
14542
14543 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
14544 conditional on [HAVE_GPM_H].
14545
145462007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
14547
14548 * syntax.c (skip_chars): Update syntax-table only after we checked that
14549 the new location is valid.
14550
145512007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14552
14553 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
14554 mac_get_window_bounds.
14555
145562007-05-20 Nick Roberts <nickrob@snap.net.nz>
14557
14558 * Makefile.in (LIBGPM): Allow it to be set from configure.
14559 If set then link Emacs with it.
14560
14561 * config.in: Regenerate.
14562
14563 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
14564 New externs.
14565
14566 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
14567 Include gpm.h.
14568 (handle_one_term_event, term_gpm): New externs.
14569
14570 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
14571 and allow it to be interrupted by SIGIO.
14572
14573 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
14574 (wait_reading_process_output): Wait on gpm_fd too.
14575 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
14576 (add_gpm_wait_descriptor_called_flag): New variable.
14577 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
14578
14579 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
14580 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
14581 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
14582 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
14583 (make_lispy_event): Add case GPM_CLICK_EVENT.
14584 (read_avail_input): Handle mouse input.
14585
14586 * term.c (write_glyphs_with_face): New function.
14587 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
14588 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
14589 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
14590 (mouse_face_face_id, term_gpm, pos_x, pos_y)
14591 (last_mouse_x, last_mouse_y): New variables.
14592 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
14593 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
14594 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
14595 (Fterm_close_connection): New functions.
14596 (term_init): Initialise mouse_face_window.
14597
145982007-05-19 Chong Yidong <cyd@stupidchicken.com>
14599
14600 * xdisp.c (redisplay_window): If first window line is a
14601 continuation line, recompute the new window start instead of
14602 recentering.
14603
146042007-05-18 Glenn Morris <rgm@gnu.org>
14605
14606 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
14607 Suggested by Alfred M. Szmidt <ams@gnu.org>.
14608
146092007-05-17 Glenn Morris <rgm@gnu.org>
14610
14611 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
14612
146132007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14614
14615 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
14616 dead key repeat and up events.
14617
146182007-05-14 Chong Yidong <cyd@stupidchicken.com>
14619
14620 * image.c (pbm_load): Check image size for monochrome pbm.
14621
146222007-05-13 Chong Yidong <cyd@stupidchicken.com>
14623
14624 * xterm.c (XTread_socket): Revert last change.
14625
146262007-05-12 Chong Yidong <cyd@stupidchicken.com>
14627
14628 * image.c (pbm_load): Correctly check image size for greyscale pbm.
14629
14630 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
14631
146322007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
14633
14634 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
14635 mixup (YAILOM).
14636
146372007-05-07 Andreas Schwab <schwab@suse.de>
14638
14639 * keymap.c (Flookup_key): Fix typo in last change.
14640
146412007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
14642
14643 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
14644 mapping for unibyte strings.
14645
146462007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14647
14648 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
14649 (Fx_popup_dialog) [MAC_OSX]: Likewise.
14650
146512007-04-29 Richard Stallman <rms@gnu.org>
14652
14653 * insdel.c (replace_range): For undo, record insertion first.
14654
146552007-04-29 Andreas Schwab <schwab@suse.de>
14656
14657 * lisp.h (VECSIZE): Use OFFSETOF.
14658
146592007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14660
14661 * xdisp.c (try_window_reusing_current_matrix): Fix number of
14662 disabled lines.
14663
146642007-04-28 Richard Stallman <rms@gnu.org>
14665
14666 * lread.c (read_escape): In a string, \s is always space.
14667
880820fe 146682007-04-27 Jan Djärv <jan.h.d@swipnet.se>
1ffe7343
NR
14669
14670 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
14671
14672 * gtkutil.c (xg_update_menubar, create_menus): Create empty
14673 submenu for menu bar items.
14674
382c648d 14675See ChangeLog.10 for earlier changes.
6922b018
KH
14676
14677;; Local Variables:
880820fe 14678;; coding: utf-8
33462dfa 14679;; add-log-time-zone-rule: t
67e8d28a 14680;; bug-reference-url-format: "http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=%s"
6922b018 14681;; End:
2a34a036 14682
59ce725a 14683 Copyright (C) 2007, 2008 Free Software Foundation, Inc.
7f6d64f8
GM
14684
14685 This file is part of GNU Emacs.
14686
5a1dde61 14687 GNU Emacs is free software: you can redistribute it and/or modify
7f6d64f8 14688 it under the terms of the GNU General Public License as published by
5a1dde61
GM
14689 the Free Software Foundation, either version 3 of the License, or
14690 (at your option) any later version.
7f6d64f8
GM
14691
14692 GNU Emacs is distributed in the hope that it will be useful,
14693 but WITHOUT ANY WARRANTY; without even the implied warranty of
14694 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14695 GNU General Public License for more details.
14696
14697 You should have received a copy of the GNU General Public License
5a1dde61 14698 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
ab5796a9 14699
28f60c3d 14700;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40