]> code.delx.au - gnu-emacs/blob - src/ChangeLog
(redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
[gnu-emacs] / src / ChangeLog
1 2008-08-23 Jason Rumney <jasonr@gnu.org>
2
3 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
4 (fn_TIFFSetDirectory): New library function used.
5 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
6 (tiff_load): Use :index to select among multiple images. Set count
7 property when multiple images exist.
8 (gif_format): Use :index, not :image.
9
10 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
11
12 * xdisp.c (try_scrolling): Check INT_MAX instead of
13 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
14 to obtain INT_MAX.
15
16 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
17
18 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
19
20 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
21
22 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
23 GNUstep library location.
24
25 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
26
27 * xfaces.c (x_update_menu_appearance): Check validity of menu font
28 before using it.
29
30 * puresize.h (BASE_PURESIZE): Increase to 1250000.
31
32 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
33
34 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
35 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
36 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
37 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
38 (EmacsApp-cursor_blink_handler): Remove declaration.
39 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
40 match 01 Feb 2008 changes in xterm.c.
41 (ns_read_socket): Add cast to avoid warning.
42 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
43 GNUstep.
44
45 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
46
47 * xselect.c (x_get_foreign_selection): Return nil if desired
48 selection could not be obtained, instead of signalling an error.
49
50 2008-08-20 David Reitter <david.reitter@gmail.com>
51
52 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
53 * nsterm.m: Remove ns-specific code for cursor blinking.
54 (ns_draw_window_cursor): Clear cursor properly rather than
55 redrawing the area. Respect width of bar cursors.
56 These changes enable the use of generic blink-cursor-mode and
57 generic cursor types in NS and support smooth cursor movements (do
58 not blink off after command).
59 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
60 Nextstep, too.
61
62 2008-08-19 Kenichi Handa <handa@m17n.org>
63
64 * font.c (Vfont_log_deferred): New variable.
65 (font_add_log): Check Vfont_log_deferred.
66 (font_deferred_log): New funciton.
67
68 * font.h (font_deferred_log): Extern it.
69
70 * fontset.c (reorder_font_vector): Use encoding charset of fonts
71 for sorting.
72 (face_for_char): Use deferred log.
73
74 2008-08-18 Kenichi Handa <handa@m17n.org>
75
76 * fontset.c (face_for_char): Add font log.
77
78 * font.c (font_add_log): Add the font properties :script, :lang,
79 and :otf in the log.
80
81 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
82
83 * xdisp.c: Remove dead code.
84 (handle_invisible_prop, next_overlay_string): Defer call to
85 setup_for_ellipsis.
86 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
87
88 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
89
90 * xfaces.c (lookup_derived_face): Properly handle possible zero
91 return value of get_lface_attributes.
92 (merge_faces): Don't tell lookup_derived_face to signal an error
93 if face is not found.
94
95 * dired.c (Fdirectory_files): Doc fix.
96
97 * process.c (make_process): Initialize kill_without_query struct
98 member.
99
100 2008-08-15 Eli Zaretskii <eliz@gnu.org>
101
102 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
103 Alternative calculation of totphys for Visual Studio 6.
104
105 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
106
107 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
108 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
109 All users changed.
110 (stat): Only root directory passed to GetDriveType. Allow RAM
111 disk as well as local fixed disk when w32-get-true-file-attributes
112 is set to `local'.
113 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
114 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
115 (w32_cached_id, w32_add_to_cache): New functions.
116 (get_name_and_id): Look account names in the cache before calling
117 lookup_account_sid.
118 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
119 New initialization flags.
120 (globals_of_w32): Initialize them to zero.
121 (w32_system_process_attributes): Use w32_cached_id and
122 w32_add_to_cache.
123
124 2008-08-14 Lawrence Mitchell <wence@gmx.li>
125
126 * lread.c (Fread_char, Fread_char_exclusive): If no character
127 event is read before timeout is reached, return nil, rather than
128 converting to a number.
129
130 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
131
132 * fns.c (use_dialog_box): Doc fix.
133
134 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
135 on OS X.
136
137 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
138
139 * frame.c (Qns_parse_geometry): New var.
140 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
141
142 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
143
144 * xdisp.c (x_produce_glyphs): Handle the case when font has no
145 space character in calculating tabs.
146
147 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
148
149 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
150
151 2008-08-10 Glenn Morris <rgm@gnu.org>
152
153 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
154 silence gcc "limited range of data type" warnings in some
155 make_fixnum_or_float calls.
156
157 2008-08-09 Eli Zaretskii <eliz@gnu.org>
158
159 * w32.c (w32_system_process_attributes): If the process does not
160 exist, return nil.
161
162 * w32.c: Include thelp32.h, psapi.h and coding.h.
163 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
164 declarations.
165 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
166 (Process32Next_Proc): New typedefs.
167 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
168 (g_b_init_process32_next, g_b_init_open_thread_token)
169 (g_b_init_impersonate_self, g_b_init_revert_to_self)
170 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
171 (g_b_init_get_process_working_set_size)
172 (g_b_init_global_memory_status_ex): New static variables.
173 (globals_of_w32): Initialize them.
174 (create_toolhelp32_snapshot, process32_first, process32_next)
175 (open_thread_token, impersonate_self, revert_to_self)
176 (get_process_memory_info, get_process_working_set_size)
177 (global_memory_status, global_memory_status_ex): New wrapper
178 functions.
179 (w32_list_system_processes, w32_system_process_attributes)
180 (enable_privilege, restore_privilege, ltime, process_times):
181 New functions.
182 (convert_time_raw): New function.
183 (convert_time): Remove conversion of FILETIME into time in 100
184 nsec units, call convert_time_raw instead.
185
186 * process.h (w32_list_system_processes, w32_system_process_attributes):
187 Add prototypes.
188 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
189 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
190 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
191 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
192
193 * process.c (Fsystem_process_attributes): Doc fix.
194
195 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
196
197 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
198 a continued multi-char glyph; if so, advance to the actual glyph.
199
200 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
201
202 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
203
204 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
205 (.m.o): Use it.
206 * config.in: Regenerate.
207
208 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
209
210 * xdisp.c (redisplay_window): Revert last change.
211 (try_window): Check bottom scroll margin too.
212
213 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
214
215 * config.in: Regenerate.
216
217 * Makefile.in (emacs): Remove ndef NS conditional for 'emacs
218 -list-load-path-shadows'.
219 (nsgui.h): Reduce number of things depending on it.
220
221 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
222
223 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
224 instead of window-end which does the wrong thing at eob.
225 (try_cursor_movement): Minor optimization.
226 (redisplay_window): If scroll margin is defined, don't assume
227 window doesn't need scrolling.
228
229 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
230
231 * config.in: Regenerate.
232
233 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
234 (mostlyclean): Don't delete *.d under NS.
235
236 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
237
238 2008-08-06 Kenichi Handa <handa@m17n.org>
239
240 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
241
242 2008-08-06 Andreas Schwab <schwab@suse.de>
243
244 * config.in: Regenerate.
245
246 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
247
248 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
249 forcing a window start.
250
251 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
252 (auto_save_1): Update modtime when auto-save-list-file-name is on.
253
254 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
255
256 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
257 argument.
258
259 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
260
261 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
262 <scroll-down-aggressively, before-change-functions>:
263 <after-change-functions>: Reflow docstrings.
264
265 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
266 Ken Raeburn <raeburn@gnu.org>
267
268 Dock menu customization, based on a patch by Ken Raeburn, plus some
269 other fixes.
270 * nsmenu.m (dockMenu): New variable.
271 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
272
273 * nsterm.h (dockMenu): Declare.
274
275 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
276 (ns_term_init): Initialize dockMenu.
277 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
278 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
279 left.
280
281 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
282
283 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
284
285 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
286
287 * config.in: Regenerate.
288
289 2008-08-04 Seiji Zenitani <zenitani@mac.com>
290
291 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
292
293 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
294
295 * nsterm.h (find_and_call_menu_selection): Fix prototype.
296
297 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
298
299 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
300
301 * keyboard.h: Comment an #endif.
302
303 * lisp.h (have_menus_p): Adjust comment.
304
305 * menu.c (find_and_return_menu_selection): Fix comparison with
306 client_data.
307
308 * nsmenu.m (popup_activated_flag): New variable.
309 (popup_activated): New function.
310 (menu-or-popup-active-p): New exported lisp definition.
311 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
312 when popup done.
313 (ns_popup_dialog): Set popup_activated_flag.
314
315 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
316 version for GNUstep (handled by conditional typedef in nsterm.m).
317 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
318 in rgb.txt).
319
320 * process.c (init_process): Use DARWIN_OS, not DARWIN.
321
322 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
323
324 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
325
326 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
327 shortcircuit if popup_activated like GTK and X toolkit.
328
329 * m/inter386.h: Change DARWIN to DARWIN_OS.
330
331 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
332 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
333 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
334 comment on NO_SOCK_SIGIO.
335
336 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
337
338 * nsterm.m (windowDidResize): Remove stopModal call.
339
340 2008-08-03 Andreas Schwab <schwab@suse.de>
341
342 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
343 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
344
345 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
346
347 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
348 Don't use uninitialized pointer variable when using getrlimit.
349
350 2008-08-02 Jason Rumney <jasonr@gnu.org>
351
352 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
353
354 2008-08-02 Eli Zaretskii <eliz@gnu.org>
355
356 * alloc.c (NSTATICS): Bump to 0x640.
357
358 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
359
360 * lisp.h: Add prototype for directory_files_internal.
361
362 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
363 New functions.
364 (syms_of_process): Defsubr them. Add initializations for various
365 Q* symbols used in procfs_system_process_attributes.
366 (procfs_list_system_processes, procfs_system_process_attributes)
367 [HAVE_PROCFS]: New functions.
368 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
369 (procfs_get_total_memory): New functions.
370
371 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
372
373 * xfaces.c (Fx_load_color_file): Fix previous change;
374 it is #ifdef WINDOWSNT, not WINDOWS_NT.
375
376 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
377
378 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
379
380 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
381
382 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
383
384 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
385
386 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
387
388 * nsterm.m (EmacsApp -application:openFiles:): GNUStep does not
389 define NSApplicationDelegateReplySuccess.
390 (EmacsView -converstationIdentifier): Use long instead of
391 NSInteger for GNUStep, since it doesn't have NSInteger.
392
393 * xmenu.c: Revert last change.
394
395 * keyboard.h: Fix last change.
396
397 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
398
399 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
400 on Windows.
401
402 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
403
404 Warning clearing and clean-up in NS port.
405 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
406 Add prototypes.
407 * nsgui.h (FACE_DEFAULT): Remove, unused.
408 (XGCValues): Change colors to unsigned long.
409 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
410 nsterm.m.
411 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
412 (ns_list_fonts): Remove, unused.
413 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
414 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
415 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
416 (nsfont_draw): Compare face colors to 0, not nil.
417 * nsmenu.m (struct widget_value): Drop unneeded declaration.
418 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
419 (-addSubmenuWithTitle:): Use NSMenuItem class.
420 (ns_popup_menu): Use NO, not NULL, for enabled setting.
421 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
422 (ns_clip_to_row): Make gc arg a BOOL.
423 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
424 ns_clip_to_row() call.
425 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
426 used). Cast FRAME_FONT assignments.
427 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
428 (ns_string_to_lispmod): Change arg to const char.
429 (ns_term_init): Use NSMenuItem class.
430 (EmacsApp -openFile:): Move to different section of file.
431 (EmacsApp -application:openFiles:): Don't return a value, call
432 -replyToOpenOrPrint:.
433 (EmacsView -keyDown:): Fix up cast.
434 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
435 (EmacsView -menuDown:): Cast tag in call to
436 find_and_call_menu_selection().
437 (ns_list_fonts): Remove, unused.
438 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
439 (ns_fontname_to_xlfd): Make static.
440 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
441 Remove prototypes (now in keyboard.h).
442 (next_menubar_widget_id): Remove, unused.
443 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
444 Remove prototypes (now in keyboard.h).
445 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
446
447 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
448
449 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
450 (floatfns.o): Depend on syssignal.h.
451 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
452
453 * systty.h: Fix previous change that removed BSD_TERMIOS.
454 Add comments to #ifdefs.
455
456 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
457
458 * w32fns.c (w32-load-color-file): Remove.
459 (x-open-connection): Use renamed Fx_load_color_file.
460 * xfaces.c (x-load-color-file): Add.
461 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
462 Emacs.clr.
463 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
464
465 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
466
467 * dbusbind.c (Fdbus_call_method_asynchronously)
468 (Fdbus_method_error_internal): New defuns.
469 (xd_read_message): Handle also reply messages.
470 (Vdbus_registered_functions_table): Extend docstring.
471
472 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
473
474 * keyboard.c (gobble_input): Fix previous change.
475
476 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
477
478 * bitmaps/README:
479 * xfns.c:
480 * termcap.c:
481 * term.c:
482 * syswait.h:
483 * systty.h:
484 * systime.h:
485 * syssignal.h:
486 * sysdep.c:
487 * process.h:
488 * process.c:
489 * print.c:
490 * ndir.h:
491 * lread.c:
492 * keyboard.c:
493 * getpagesize.h:
494 * floatfns.c:
495 * fileio.c:
496 * emacs.c:
497 * doc.c:
498 * dispnew.c:
499 * dired.c:
500 * data.c:
501 * callproc.c:
502 * buffer.c:
503 * README:
504 * Makefile.in:
505 * s/template.h:
506 * s/msdos.h:
507 * m/vax.h: Remove VMS support.
508 * s/vms.h:
509 * vlimit.h:
510 * uaf.h:
511 * temacs.opt:
512 * param.h:
513 * ioctl.h: Remove file.
514
515 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
516
517 * s/ms-w32.h (MULTI_KBOARD): Remove.
518 * xterm.c:
519 * xselect.c:
520 * xfns.c:
521 * window.c:
522 * w32term.c:
523 * w32fns.c:
524 * terminal.c:
525 * termhooks.h:
526 * term.c:
527 * sysdep.c:
528 * keyboard.h:
529 * keyboard.c:
530 * frame.h:
531 * frame.c:
532 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
533 * config.in: Regenerate.
534
535 2008-07-30 Jason Rumney <jasonr@gnu.org>
536
537 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
538
539 * w32font.c (w32font_encode_char): Leave as unicode if in range.
540 (w32font_open_internal): Get unicode version of textmetrics.
541 Don't enable or disable glyph indices here.
542 (w32font_open): Disable use of glyph indices.
543
544 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
545
546 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
547
548 * minibuf.c (Vread_buffer_function): Doc fix.
549
550 2008-07-30 John Paul Wallington <jpw@pobox.com>
551
552 * minibuf.c (read_buffer_completion_ignore_case): New var.
553 (Fread_buffer): Use it.
554
555 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
556
557 * systty.h (sensemode): Remove empty #if. Remove reference to
558 BSD_TERMIOS, unused.
559
560 * sysdep.c: Remove reference to DGUX.
561 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
562
563 * config.in: Regenerate.
564
565 2008-07-30 Jason Rumney <jasonr@gnu.org>
566
567 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
568
569 2008-07-29 Jason Rumney <jasonr@gnu.org>
570
571 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
572 is populated.
573 (uniscribe_encode_char): Always use uniscribe.
574 Avoid using context if cache is populated.
575
576 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
577
578 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
579 open menu.
580
581 * gtkutil.c (menu_nav_ended): Remove.
582 (create_menus): Remove signal connect for menu_nav_ended.
583
584 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
585
586 * xdisp.c (redisplay_window): Check return value of
587 compute_window_start_on_continuation_line before forcing a window
588 start.
589
590 2008-07-28 Jason Rumney <jasonr@gnu.org>
591
592 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
593
594 * w32term.c (w32_enable_unicode_output, cleartype_active):
595 Remove obsolete display options.
596 (x_draw_glyph_string_background): Don't use old cleartype_active
597 workaround.
598 (w32_initialize): Remove cleartype_active initialization.
599 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
600
601 2008-07-28 Andreas Schwab <schwab@suse.de>
602
603 * lisp.h (init_weak_hash_tables, syms_of_font)
604 (xd_read_queued_messages, syms_of_dbusbind): Declare.
605 (remove_hash_entry): Don't declare.
606 * eval.c (maybe_call_debugger): Make static and move before use.
607 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
608 * xdisp.c: Include "gtkutil.h" if USE_GTK.
609 * xterm.h (x_set_frame_alpha): Declare.
610
611 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
612
613 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
614 (create_menus): Connect selection-done to menu_nav_ended.
615
616 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
617
618 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
619 Set Vx_resource_name to a fallback. Replace read of 'buffered'
620 parameter with read of 'alpha' one.
621 (Qns_frame_parameter): Remove.
622 * nsselection.m (selection-coding-system)
623 (next-selection-coding-system, Vselection_coding_system)
624 (Vnext_selection_coding_system): Drop.
625
626 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
627
628 * nsfns.m (do-applescript, do_applescript): Rename to
629 ns-do-applescript, ns_do_applescript, and move within file.
630
631 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
632
633 Remove support for Mac Carbon.
634 * mactoolbox.c:
635 * macterm.h:
636 * macterm.c:
637 * macselect.c:
638 * macmenu.c:
639 * macgui.h:
640 * macfns.c:
641 * mac.c: Remove file.
642 * s/darwin.h:
643 * m/intel386.h:
644 * xfaces.c:
645 * xdisp.c:
646 * window.c:
647 * tparam.c:
648 * termhooks.h:
649 * termcap.c:
650 * term.c:
651 * syssignal.h:
652 * sysselect.h:
653 * sysdep.c:
654 * process.c:
655 * lread.c:
656 * lisp.h:
657 * keyboard.c:
658 * image.c:
659 * fringe.c:
660 * frame.h:
661 * frame.c:
662 * fontset.c:
663 * font.h:
664 * font.c:
665 * fns.c:
666 * fileio.c:
667 * emacs.c:
668 * dispnew.c:
669 * dispextern.h:
670 * config.in:
671 * atimer.c:
672 * Makefile.in: Remove code for Carbon
673
674 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
675
676 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
677
678 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
679
680 * macterm.h (kCGBitmapByteOrder32Host): New define for
681 non-universal SDKs.
682
683 * image.c (mac_create_cg_image_from_image, image_load_image_io)
684 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
685
686 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
687 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
688
689 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
690
691 * w32inevt.c: Include dispextern.h.
692
693 2008-07-26 Andreas Schwab <schwab@suse.de>
694
695 * print.c (print_object): Fix off-by-one in last change.
696
697 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
698
699 * term.c (syms_of_term): Don't initialize default_orig_pair,
700 default_set_foreground and default_set_background on Windows.
701
702 2008-07-25 Jason Rumney <jasonr@gnu.org>
703
704 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
705 ScriptItemize. Clean up return value checking. Remove unused
706 variables.
707 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
708 shaping engine.
709
710 * w32font.c (w32font_has_char): Handle the case where we can't
711 determine the script for a character.
712
713 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
714
715 * term.c (syms_of_term): Initialize default_orig_pair,
716 default_set_foreground, and default_set_background.
717
718 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
719 clash (bug#86).
720 (getloadavg): Callers changed.
721
722 * image.c (svg_load_image): Fix last change.
723 (svg_load_image): Use rsvg_handle_get_dimensions to check that
724 image size is valid. Use g_object_unref instead of deprecated
725 rsvg_handle_free to free rsvg handle.
726 (x_from_xcolors): Don't initialize pixmap (silence compiler).
727
728 2008-07-25 Jason Rumney <jasonr@gnu.org>
729
730 * w32font.c (w32font_encode_char): Encode characters outside BMP as
731 surrogates before looking up glyph index.
732 (w32font_text_extents): Encode as surrogates if falling back to
733 functions that need UTF-16 wide chars.
734
735 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
736 BMP as surrogates before looking up glyph index.
737
738 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
739
740 * image.c (svg_load_image): Check for failure in return value of
741 rsvg_handle_get_pixbuf. Free rsvg handle when done.
742
743 2008-07-25 Jason Rumney <jasonr@gnu.org>
744
745 * w32font.c (Fx_select_font): Reverse sense of second arg.
746
747 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
748
749 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
750 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
751
752 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
753 (PURESIZE): Use it.
754
755 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
756
757 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
758 * m/alpha.h (TEXT_END):
759 * m/ibmrs6000.h (TEXT_END):
760 * m/macppc.h (TEXT_END):
761 * s/darwin.h (TEXT_END):
762 * s/msdos.h (TEXT_END): Remove, unused.
763 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
764 * s/cygwin.h: Remove comment.
765
766 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
767 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
768 * m/intel386.h (DOT_GLOBAL_START):
769 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
770 (USG): Remove, file not used on USG platforms.
771
772 * Makefile.in (HAVE_X11): Remove empty #else.
773
774 2008-07-24 Andreas Schwab <schwab@suse.de>
775
776 * fileio.c (Finsert_file_contents): Properly adjust undo list
777 after format conversion.
778
779 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
780
781 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
782 (menu_nav_ended): Remove.
783 (create_menus): Remove signal connect for menu_nav_ended.
784 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
785 create_menus.
786 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
787
788 2008-07-23 Jason Rumney <jasonr@gnu.org>
789
790 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
791 with opened font.
792 (w32font_open): Set font type to gdi.
793
794 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
795
796 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
797
798 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
799 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
800 defines it.
801 * unexec.c (ADDR_CORRECT): Define unconditionally.
802
803 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
804
805 * unexec.c: Remove code depending on !COFF and USG, the file is
806 not used for such systems.
807
808 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
809 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
810 (LD_SWITCH_SYSTEM_1): Remove, update users.
811
812 * s/darwin.h (DATA_END):
813 * m/intel386.h (DATA_END):
814 * m/ibmrs6000.h (DATA_END):
815 * m/alpha.h (DATA_END): Remove, unused.
816
817 * config.in: Regenerate.
818 * s/ms-w32.h (subprocesses): Define unconditionally.
819 * s/template.h (subprocesses): Update comment.
820 * s/vms.h (subprocesses):
821 * s/usg5-4.h (subprocesses):
822 * s/hpux10-20.h (subprocesses):
823 * s/gnu-linux.h (subprocesses):
824 * s/cygwin.h (subprocesses):
825 * s/bsd-common.h (subprocesses):
826 * s/aix4-2.h (subprocesses):
827 * s/darwin.h (subprocesses): Do not define, defined by default now.
828
829 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
830 Remove all references.
831 (temacs): Add GNUStep specific ld flags.
832
833 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
834 similarly to what X does.
835
836 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
837
838 * nsfns.m (x-list-fonts): Remove.
839 (syms_of_nsfns): Drop the x-list-fonts declaration.
840 * nsterm.m: Get rid of remaining "//" comments.
841
842 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
843
844 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
845
846 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
847 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
848 (Fns_own_selection_internal, Fx_disown_selection_internal)
849 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
850
851 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
852 ... */' style of docstrings. Doc fixes.
853
854 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
855
856 * terminfo.c (UP, BC, PC): Undo previous change.
857
858 * nsfns.m: Rename ns prefixed functions/variables to the
859 corresponding x versions. Update references.
860
861 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
862
863 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
864
865 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
866
867 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
868 Remove forwarding functions.
869 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
870 non-static.
871 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
872 non-static.
873 (ns_frame_parm_handlers): Use the new names.
874 (syms_of_nsfns): Move to the end of file.
875
876 * nsterm.m (syms_of_nsterm): Move to the end of file.
877
878 * dispnew.c (init_display): Remove code for X10.
879
880 2008-07-22 Jason Rumney <jasonr@gnu.org>
881
882 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
883 bare drive.
884
885 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
886
887 * nsterm.m (syms_of_nsterm): Remove debugging println.
888
889 2008-07-22 David Reitter <david.reitter@gmail.com>
890
891 * nsfns.m (do_applescript, F_do_applescript): NS version of the
892 Carbon implementation of the same functionality: execute arbitrary
893 AppleScript code.
894
895 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
896
897 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
898 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
899 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
900 (Fx_display_mm_height, Fx_display_mm_width)
901 (Fx_display_backing_store, Fx_display_visual_class)
902 (Fx_display_save_under, Fx_open_connection)
903 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
904 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
905 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
906 (Fx_display_pixel_width, Fx_display_pixel_height)
907 (Fx_display_usable_bounds, Fx_display_planes)
908 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
909 ... */' style of docstrings.
910
911 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
912
913 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
914 on this platform.
915 (mips):
916 * m/iris4d.h (mips): Do not define.
917 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
918
919 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
920
921 * image.c:
922 * nsfns.m:
923 * nsselect.m:
924 * nsterm.h:
925 * nsterm.m: Rename ns prefixed functions/variables to the
926 corresponding x versions. Update references.
927
928 * m/ibms390x.h (NO_REMAP): Do not undefine.
929
930 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
931
932 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
933
934 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
935 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
936 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
937 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
938 (Fns_display_mm_height, Fns_display_mm_width)
939 (Fns_display_backing_store, Fns_display_visual_class)
940 (Fns_display_save_under, Fns_open_connection)
941 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
942 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
943 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
944 (Fns_display_pixel_width, Fns_display_pixel_height)
945 (Fns_display_usable_bounds, Fx_display_planes)
946 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
947
948 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
949
950 * print.c (print_object): Check print_depth before searching for
951 circularities.
952
953 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
954
955 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
956 only sprintf.
957
958 2008-07-21 Kenichi Handa <handa@m17n.org>
959
960 * ftfont.c (adjust_anchor): Check if DetalValue is not NULL.
961
962 2008-07-20 Andreas Schwab <schwab@suse.de>
963
964 * syntax.c (find_start_pos, find_start_value)
965 (find_start_value_byte, find_start_begv, find_defun_start)
966 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
967
968 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
969
970 * s/sol2-3.h: Insert contents of s/sol2.h.
971 (LD_SWITCH_SYSTEM): Remove redundant definition.
972 * s/sol2.h: Remove, unused.
973
974 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
975
976 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
977
978 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
979
980 * Makefile.in (ns_appdir): Fix typo in find command.
981
982 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
983
984 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
985
986 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
987 added not supported anymore.
988
989 * s/usg5-4-2.h (LIBS_SYSTEM):
990 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
991
992 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
993 * s/lynxos.h (GETPGRP_NO_ARG):
994 * s/hpux10-20.h (NO_SIOCTL_H):
995 * s/gnu.h (GETPGRP_NO_ARG):
996 * s/gnu-linux.h (NO_SIOCTL_H):
997 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
998 * s/cygwin.h (GETPGRP_NO_ARG):
999 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
1000 (C_DEBUG_SWITCH): Remove duplicate definition.
1001
1002 * m/ibms390.h: Remove boilerplate comments.
1003
1004 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
1005
1006 * process.c (HAVE_SERIAL): Consolidate ifdefs.
1007 (wait_reading_process_output): Remove code for SunOS, platform not
1008 supported anymore. Use SOLARIS2 instead of sun.
1009
1010 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
1011
1012 * font.c (font_open_by_name): Under NS, default lface height to zero.
1013 (font_open_for_lface): Under NS, set size based on frame fontsize.
1014 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
1015 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
1016
1017 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
1018
1019 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
1020 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
1021 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
1022 YES/NO.
1023 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
1024 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
1025 * Makefile.in (clean): Clear out build destination dir.
1026
1027 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
1028
1029 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
1030 xterm, xselect.
1031 * lisp.h: Remove declaration of hash_remove.
1032 * nsgui.h: Remove redefinitions of hash_remove.
1033 * fns.c (hash_remove): Rename to hash_remove_from_table.
1034
1035 2008-07-19 Seiji Zenitani <zenitani@mac.com>
1036
1037 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
1038 strdup() the family UTF8String before modifying it.
1039
1040 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
1041
1042 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
1043 NS_FACE_BACKGROUND with 0 instead of nil.
1044 * nsfont.m (nsfont_draw): Same.
1045
1046 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
1047
1048 * nsfns.m (ns_set_background_color): Fix crash.
1049
1050 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
1051
1052 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
1053
1054 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
1055
1056 * puresize.h (BASE_PURESIZE): Increase to 1240000.
1057
1058 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1059
1060 * gtkutil.c: Include <config.h> instead of "config.h".
1061
1062 * lisp.h (Foverlay_buffer): Add EXFUN.
1063
1064 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
1065 child process to complete child_setup. Undo 2005-09-21 change.
1066
1067 * s/darwin.h: Mention setsid after vfork.
1068
1069 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1070
1071 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
1072 Depend on macgui.h.
1073
1074 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
1075 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
1076
1077 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
1078 and f19.
1079 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
1080
1081 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
1082 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
1083 Remove enumerators.
1084
1085 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
1086 Check if FACE_FROM_ID returns NULL.
1087
1088 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
1089
1090 * w32inevt.c (change_frame_size): Remove extern declaration.
1091 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
1092 change_frame_size.
1093
1094 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
1095
1096 * getloadavg.c: Revert last change (2008-07-15).
1097
1098 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
1099
1100 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
1101 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc) set
1102 from configure.
1103
1104 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
1105
1106 * s/sol2.h:
1107 * s/sol2-4.h: Reorganize conditionals.
1108
1109 * ecrt0.c: Remove code depending on m68000, not used anymore.
1110
1111 * fns.c (hash_remove): Make static.
1112 * lisp.h (hash_remove): Don't prototype.
1113
1114 * m/ibmrs6000.h:
1115 * m/ibms390x.h:
1116 * m/macppc.h: Remove boilerplate comments.
1117
1118 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
1119 Solaris, which does not need them.
1120
1121 * m/vax.h: Remove comments about unsupported systems.
1122
1123 * s/darwin.h: Reorganize ifdefs.
1124
1125 2008-07-17 Andreas Schwab <schwab@suse.de>
1126
1127 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
1128
1129 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
1130
1131 Use SDATA. Follow coding convention of placing operators at
1132 beginning of next line rather than end of previous line, and placing
1133 spaces around infix operators.
1134
1135 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
1136 in case it was defined already.
1137 USE @GNUSTEP_MAKEFILES@ rather than envvars.
1138 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
1139 ns_default.
1140 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
1141 Lisp_Objects.
1142 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
1143 (ns_defined_color, ns_color_to_lisp): Declare.
1144 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
1145 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
1146 it's accepted even with USE_LISP_UNION_TYPE.
1147 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
1148 (update_frame_tool_bar): Remove apparently obsolete tests for
1149 non-integerness of f->tool_bar_lines.
1150 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
1151 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
1152 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
1153 (nsfont_open): Don't confuse NULL for Qnil.
1154 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
1155 * menu.h (find_and_call_menu_selection):
1156 * menu.c (find_and_call_menu_selection): Use just int for vector size.
1157 (find_and_return_menu_selection): Always return something.
1158 * frame.h: Include dispextern.h for Display_Info.
1159 (display_x_get_resource): Declare.
1160
1161 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
1162
1163 * syntax.c: Remove stdio.h include accidentally introduced in
1164 Emacs.app commit.
1165 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
1166 NS_IMPL_COCOA.
1167 * keyboard.c (handle_async_input, input_available_signal): Remove
1168 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
1169
1170 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
1171
1172 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
1173 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
1174 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
1175 Use SDATA.
1176
1177 * keymap.c: Remove all NS-specific code.
1178 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
1179 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
1180 where_is_preferred_modifier, return a different value depending on how
1181 preferred is the binding.
1182 (where_is_internal): Adjust accordingly.
1183 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
1184 Adjust to new preferred_sequence_p.
1185 (syms_of_keymap): Declare `where-is-preferred-modifier'.
1186 * keyboard.c (parse_solitary_modifier): Not static any more.
1187 * keyboard.h (parse_solitary_modifier): Declare.
1188
1189 2008-07-16 Andreas Schwab <schwab@suse.de>
1190
1191 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
1192 of easymenu.
1193
1194 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
1195
1196 * xdisp.c (move_it_in_display_line): Account for word wrap, so
1197 that we don't move off the line.
1198
1199 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
1200
1201 * keyboard.c (Qsuper): Remove.
1202 (parse_menu_item): Don't call where_is_internal specially for NS.
1203
1204 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
1205
1206 * s/gnu-linux.h: Remove boilerplate comments.
1207
1208 * m/alpha.h (__ELF__): Consolidate conditions.
1209
1210 * m/m68k.h (linux): Use GNU_LINUX instead.
1211 Remove boilerplate comments.
1212
1213 * m/intel386.h: Undo reactoring from previous change.
1214 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
1215 too, remove dead code.
1216 (linux): Use GNU_LINUX instead.
1217
1218 2008-07-16 Jason Rumney <jasonr@gnu.org>
1219
1220 * w32gui.h: Repeat 26 June changes lost by last change.
1221
1222 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
1223
1224 * systty.h: Remove code for Aix on 386, unsupported platform.
1225
1226 * s/ms-w32.h: Remove boilerplate comments.
1227 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
1228
1229 * s/gnu-linux.h (TERM): Remove support.
1230 (HAVE_SYSVIPC): Remove, unused.
1231 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
1232 for this system.
1233
1234 * process.c: Remove support for IRIS, unused.
1235 Remove support for TERM, not relevant anymore.
1236
1237 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
1238 used with the definition.
1239
1240 * s/aix4-2.h (static): Do not undef.
1241
1242 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
1243 only used on Aix.
1244 (HAVE_SYSVIPC): Remove, unused.
1245
1246 * m/hp800.h (CANNOT_DUMP): Do not undef.
1247
1248 * m/alpha.h: Fix comment.
1249
1250 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
1251 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
1252 used by this configuration.
1253 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
1254 * unexec.c: Remove code depending on HPUX and
1255 USG_SHARED_LIBRARIES, not used with this file. Remove code
1256 depending on IRIS, unused. Remove if 0-ed code.
1257
1258 * s/template.h: Remove comments about static.
1259
1260 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
1261 Remove if 0-ed code.
1262 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
1263 were the same as the default.
1264 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
1265 Remove boilerplate comments.
1266 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
1267 (HAVE_SYSVIPC): Remove, unused.
1268 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
1269
1270 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
1271 Remove boilerplate comments.
1272 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
1273 Remove boilerplate comments.
1274 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
1275 Remove boilerplate comments.
1276 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
1277
1278 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
1279 USG systems which do not use DATA_SEG_BITS.
1280 Refactor code. Remove boilerplate comments.
1281
1282 * m/ibms390.h:
1283 * m/m68k.h:
1284 * s/bsd-common.h:
1285 * s/cygwin.h:
1286 * s/darwin.h:
1287 * s/freebsd.h:
1288 * s/gnu.h:
1289 * s/msdos.h: Remove boilerplate comments.
1290
1291 * m/iris4d.h: Remove boilerplate comments and code for systems that
1292 do not use this file.
1293 (IRIS_4D): Remove, unused.
1294
1295 * m/mips.h: Remove boilerplate comments and code for systems that
1296 do not use this file.
1297 (SIGN_EXTEND_CHAR):
1298 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
1299 * unexmips.c: Remove file, unused.
1300
1301 * editfns.c (Fuser_full_name): Replace the only use of
1302 USER_FULL_NAME with its value.
1303 * config.in: Regenerate.
1304
1305 2008-07-16 David Reitter <david.reitter@gmail.com>
1306
1307 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
1308 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
1309
1310 2008-07-16 Glenn Morris <rgm@gnu.org>
1311
1312 * emacs.c (system-type): Doc fix.
1313
1314 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
1315
1316 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
1317 If the cache doesn't work, let's fix it, rather than work around it.
1318
1319 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
1320
1321 * Makefile.in: Correct additions for nsfont.o in last commit.
1322 * nsfont.m: New file (forgot last commit).
1323
1324 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
1325
1326 * callproc.c (set_initial_environment): Initialize
1327 Vprocess_environment under CANNOT_DUMP (fixes crash when
1328 batch-compiling for bootstrap).
1329
1330 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
1331 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1332
1333 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
1334 fix crash due to different init order.
1335
1336 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
1337
1338 Changes and additions for NeXTstep windowing system (Cocoa and
1339 GNUstep) support.
1340
1341 * Makefile.in:
1342 * config.in: Support defines and build commands for NS port.
1343 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
1344 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
1345 * dispextern.h: Include nsgui.h and add needed typedefs under NS
1346 windowing.
1347 (struct face): Add synth_ital field.
1348 * dispnew.c: Include nsterm.h when compiling under NS windowing.
1349 (init_display): Initialize Vinitial_window_system to "ns" when so
1350 compiled.
1351 * emacs.c: Include GSConfig.h when compiling under GNUstep.
1352 (display_arg): Use under NS.
1353 (main): Under NS, allocate autorelease pool and handle command line
1354 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
1355 (standard_args): Add NS-specific args.
1356 (shut_down_emacs): Shut down NS terminal if compiled under NS.
1357 * font.c (DEFAULT_ENCODING): New variable.
1358 (font_find_for_lface): Use it.
1359 (syms_of_font): Load syms_of_nsfont under NS.
1360 * font.h: Declare nsfont_driver when compiled under NS.
1361 * fontset.c: When compiling under NS, include nsterm.h.
1362 (fontset_from_font): Autoconstruct fontset under NS.
1363 * frame.c (various): Under NS, include nsterm.h, add Qns window system
1364 symbol, document and use it.
1365 (do_switch_frame): When for_deletion under Cocoa, add
1366 Fraise_frame(Qnil).
1367 (x_set_frame_parameters): Ensure font attribute changes are picked up.
1368 (x_get_arg): Allow "yes" and "no" as boolean values.
1369 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
1370 Qright under Cocoa.
1371 (focus-follows-mouse): Default to 0 under NS.
1372 * frame.h (enum output_method): Add output_ns.
1373 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
1374 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
1375 (FRAME_WINDOW_P): NS-specific definition.
1376 * fringe.c (max_used_fringe_bitmap): Make public.
1377 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
1378 (getloadavg): Use NeXT code under descendant OS's.
1379 * image.c (includes and header section, x_create_bitmap_from_data)
1380 (x_create_bitmap_from_file, free_bitmap_record, image_background)
1381 (image_background_transparent, x_clear_image_1)
1382 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
1383 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
1384 (x_to_xcolors, x_from_xcolors, x_disable_image)
1385 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
1386 other GUIs, including XPM support using code originally written for
1387 Carbon GUI.
1388 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
1389 using NS API.
1390 (image_ascent): Use font metrics macros instead of direct struct field
1391 access.
1392 * keyboard.c (includes): Add nsterm.h when compiling under NS.
1393 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
1394 Also, handle NS as GTK for menu bar purposes.
1395 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
1396 toolkit where they differ.
1397 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
1398 use cachelist, still needed under NS.
1399 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
1400 (struct widget_value): Define it here for menu.c.
1401 * keymap.c (includes): Include modifier internals.
1402 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
1403 NS.
1404 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
1405 support for preferring sequences using certain modifiers, specified by
1406 the FIRSTONLY argument.
1407 * lisp.h (hash_remove): Rename to avoid name clash when compiling
1408 under NS GNUstep implementation.
1409 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
1410 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
1411 * menu.c: Include nsterm.h under NS.
1412 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
1413 (free_menubar_widget_tree_value, update_submenu_strings)
1414 (find_and_call_menu_selection): Treat NS as X and NT.
1415 (find_and_return_menu_selection): New function, used for popup menus.
1416 * nsgui.h:
1417 * nsterm.h:
1418 * nsfns.m:
1419 * nsimage.m:
1420 * nsmenu.m:
1421 * nsselect.m:
1422 * nsterm.m: New files.
1423 * process.c (wait_reading_process_output): Under NS, call ns_select()
1424 instead of plain select().
1425 * syntax.c (char_quoted): Under NS, avoid a crash when called near
1426 beginning of buffer.
1427 * sysselect.h (init_process): Rename when compiling under Cocoa to
1428 avoid name conflict.
1429 * termhooks.h (display_info): Add ns_display_info to union.
1430 * terminal.c (Fterminal_live_p): Add ns to terminal types.
1431 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
1432 COCOA environment.
1433 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
1434 unexec() signature. (Note, this will dump, but the resulting file
1435 crashes; unexosx is used instead; keeping around for reference and
1436 possible aid in getting dump working under GNUstep.)
1437 * w32gui.h (button_type, widget_value): Remove definitions (now in
1438 keyboard.h).
1439 * window.c: Include nsterm.h when compiling under NS.
1440 * xdisp.c (includes): Include nsterm.h when compiling under NS.
1441 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
1442 other GUI windowing systems.
1443 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
1444 GTK.
1445 (x_consider_frame_title): Under NS, set icon type and frame
1446 modified-state indicator; use ns_set_name_as_filename() when using
1447 formatted title.
1448 (update_window_cursor): Make public when compiling under NS.
1449 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
1450 (hourglass_atimer, Vhourglass_delay
1451 * xfaces.c (header section, init_frame_faces, clear_font_table)
1452 (defined_color, unload_color, x_face_list_fonts)
1453 (prepare_face_for_display): Add NS support parallel to other GUIs.
1454 Emulate GCs like other non-X GUIs.
1455 (split_font_name): Don't lowercase font name under NS.
1456 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
1457 under NS.
1458 * s/darwin.h: Add support for compilation under NS.
1459
1460 2008-07-15 Jason Rumney <jasonr@gnu.org>
1461
1462 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
1463 (w32_show_hourglass): Rename from show_hourglass.
1464 (w32_hide_hourglass): Rename from hide_hourglass.
1465 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
1466 (Vhourglass_delay): Declare extern.
1467 (hourglass_started): Remove.
1468
1469 * xdisp.c (Vhourglass_delay): Remove static.
1470 (hourglass_started, start_hourglass, cancel_hourglass):
1471 Don't include these versions on WINDOWSNT.
1472
1473 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
1474
1475 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
1476 variables (formerly in xfns.c).
1477 (show_hourglass, hide_hourglass): New prototypes (same).
1478 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
1479 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
1480 in xfns.c).
1481 (syms_of_xdisp): Declare/initialize display-hourglass,
1482 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
1483 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
1484 formerly in xfns.c.
1485 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
1486 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
1487 (start_hourglass, cancel_hourglass): Remove.
1488 (show_hourglass, hide_hourglass): Remove prototypes and static
1489 modifiers.
1490 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
1491 hourglass_atimer, hourglass_shown_p declaration/initialization.
1492 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
1493 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
1494 (start_hourglass, cancel_hourglass): Remove.
1495 (show_hourglass, hide_hourglass): Remove prototypes and static
1496 modifiers.
1497 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
1498 hourglass_atimer, hourglass_shown_p declaration/initialization.
1499 * w32fns.c (display_hourglass_p, Vhourglass_delay)
1500 (DEFAULT_HOURGLASS_DELAY): Remove.
1501 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
1502 hourglass_shown_p declaration/initialization.
1503
1504 2008-07-14 Jason Rumney <jasonr@gnu.org>
1505
1506 * w32fns.c (w32_get_arg): Remove wrapper function.
1507 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
1508 directly.
1509 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
1510
1511 2008-07-14 Kenichi Handa <handa@m17n.org>
1512
1513 * xfont.c (xfont_open): Add workaround for X's bug.
1514
1515 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
1516
1517 * fontset.c: Include <stdio.h> unconditionally.
1518
1519 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
1520
1521 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
1522 for filtering.
1523
1524 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
1525
1526 * s/vms.h: Use __GNUC__ instead of _GNUC_.
1527
1528 * m/macppc.h:
1529 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
1530
1531 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
1532 (SPECIAL_EMACS_INT):
1533 * m/ia64.h (SPECIAL_EMACS_INT):
1534 * m/amdx86-64.h (SPECIAL_EMACS_INT):
1535 * s/gnu.h (NLIST_STRUCT):
1536 * s/aix4-2.h (X11R5_INHIBIT_I18N):
1537 * s/gnu-linux.h (LINUX):
1538 * s/msdos.h (HAVE_FACES):
1539 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
1540
1541 * systty.h:
1542 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
1543 anymore.
1544
1545 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1546
1547 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
1548 always defined as int.
1549
1550 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
1551 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
1552 * s/gnu-linux.h (HAVE_WAIT_HEADER):
1553 * s/freebsd.h (HAVE_WAIT_HEADER):
1554 * s/bsd-common.h (HAVE_UNION_WAIT):
1555 * s/aix4-2.h (HAVE_WAIT_HEADER):
1556 * m/mips.h (HAVE_UNION_WAIT):
1557 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
1558 (COFF, static): Do not define, they are undefined later in the file.
1559
1560 * process.c (update_status): Don't use a union.
1561 (status_convert):
1562 (sigchld_handler): Use int instead of WAITTYPE.
1563
1564 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
1565
1566 * indent.c (Fvertical_motion): Restore hscroll before moving to
1567 goal column.
1568
1569 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
1570
1571 * lisp.h: Remove left over code.
1572
1573 2008-07-11 Andreas Schwab <schwab@suse.de>
1574
1575 * lisp.h: Fix logic in last change.
1576
1577 * menu.h: New file.
1578 * menu.c: Include it.
1579 * xmenu.c: Likewise.
1580 * Makefile.in: Update dependencies.
1581
1582 2008-07-11 Kenichi Handa <handa@m17n.org>
1583
1584 * fontset.c (fontset_from_font): Cancel the previous change.
1585
1586 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
1587
1588 * lisp.h:
1589 * w32heap.c:
1590 * emacs.c:
1591 * alloc.c: Replace all references of NO_UNION_TYPE with
1592 USE_LISP_UNION_TYPE.
1593
1594 * m/xtensa.h (NO_UNION_TYPE):
1595 * m/vax.h (NO_UNION_TYPE):
1596 * m/template.h (NO_UNION_TYPE):
1597 * m/sparc.h (NO_UNION_TYPE):
1598 * m/mips.h (NO_UNION_TYPE):
1599 * m/macppc.h (NO_UNION_TYPE):
1600 * m/m68k.h (NO_UNION_TYPE):
1601 * m/iris4d.h (NO_UNION_TYPE):
1602 * m/intel386.h (NO_UNION_TYPE):
1603 * m/ibms390x.h (NO_UNION_TYPE):
1604 * m/ibms390.h (NO_UNION_TYPE):
1605 * m/ibmrs6000.h (NO_UNION_TYPE):
1606 * m/ia64.h (NO_UNION_TYPE):
1607 * m/hp800.h (NO_UNION_TYPE):
1608 * m/arm.h (NO_UNION_TYPE):
1609 * m/amdx86-64.h (NO_UNION_TYPE):
1610 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
1611 defining it the same.
1612
1613 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
1614
1615 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
1616
1617 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
1618
1619 * fileio.c:
1620 * sysdep.c
1621 * systty.h:
1622 * m/ibmrs6000.h:
1623 * m/iris4d.h:
1624 * s/aix4-2.h:
1625 * s/freebsd.h:
1626 * s/gnu-linux.h:
1627 * s/hpux10-20.h:
1628 * s/hpux11.h:
1629 * s/netbsd.h:
1630 * s/sol2-3.h:
1631 * s/sol2-4.h:
1632 * s/sol2.h:
1633 * s/usg5-4.h:
1634 * s/vms.h: Remove references to unused variables.
1635
1636 2008-07-10 Andreas Schwab <schwab@suse.de>
1637
1638 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
1639 pattern before matching the generic family.
1640
1641 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
1642
1643 * unexec.c:
1644 * s/vms.h:
1645 * s/usg5-4-2.h:
1646 * s/sol2-5.h:
1647 * s/freebsd.h:
1648 * s/darwin.h: Remove dead code.
1649
1650 * m/template.h:
1651 * m/sparc.h:
1652 * m/mips.h:
1653 * m/m68k.h:
1654 * m/iris4d.h:
1655 * m/intel386.h:
1656 * m/ibms390x.h:
1657 * m/ibms390.h:
1658 * m/ia64.h:
1659 * m/hp800.h:
1660 * m/arm.h:
1661 * m/amdx86-64.h: Remove dead code and references to unused
1662 and compiler defined symbols.
1663
1664 * unexmips.c:
1665 * unexelf.c: Remove references to desupported systems.
1666
1667 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
1668
1669 * m/powermac.h: Remove boilerplate comments.
1670 (NO_REMAP): Remove unused definition.
1671
1672 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
1673 define them.
1674
1675 2008-07-10 Kenichi Handa <handa@m17n.org>
1676
1677 * xfont.c (xfont_open): Log the reason of failure.
1678
1679 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
1680
1681 * fontset.c (fontset_get_font_group):
1682 * font.c (font_check_otf): Specify argument types.
1683
1684 2008-07-09 Kenichi Handa <handa@m17n.org>
1685
1686 * coding.c (detect_coding_utf_8): Set detect_info->found only when
1687 non-ASCII char is found.
1688
1689 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
1690 (reorder_font_vector): Change the arg preferred_family to font.
1691 Prefer the spec matching with font.
1692 (fontset_get_font_group): New function.
1693 (fontset_find_font): Change the format of an element of a realized
1694 fontset. Use fontset_get_font_group.
1695 (fontset_font): Try the current fontset, the default fontset, the
1696 fallbacks of the current fonset, and the fallbacks of the default
1697 fontset in this order.
1698 (face_for_char): Delete the shortcut to use the current font.
1699 (fontset_from_font): Don't set fonts for Latin in the fontset.
1700
1701 * font.h (font_make_object, font_match_p): Adjust prototypes.
1702
1703 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
1704
1705 * font.c (font_make_object): New arg entity and pixelsize.
1706 (font_check_otf_features, font_check_otf): New functions.
1707 (font_match_p): Check :lang, :script, and :otf properties.
1708
1709 * xfont.c (xfont_open): Adjust it for the change of
1710 font_make_object.
1711 (xfont_text_extents): Fix initial setting of metrics.
1712
1713 * ftfont.c (struct ftfont_info): New member index, delete member
1714 fc_charset_idx. Make the member order compatible with struct
1715 xftfont_info.
1716 (fc_charset_table): Change charset names to registry names.
1717 (ftfont_pattern_entity): Delete the args registry and
1718 fc_charset_idx. Change the value of :font-entity property
1719 to (FONTNAME . INDEX). Always set :registry property to
1720 `iso10646-1'.
1721 (struct ftfont_cache_data): New struct.
1722 (ftfont_lookup_cache): New arg for_face.
1723 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
1724 (ftfont_driver): Set the member otf_capability.
1725 (ftfont_get_charset): Adjust it for the change of
1726 fc_charset_table.
1727 (OTF_TAG_SYM): New macro.
1728 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
1729 for the change of fc_charset_table.
1730 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
1731 ftfont_pattern_entity. Add FC_INDEX to objset.
1732 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
1733 and ftfont_pattern_entity.
1734 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
1735 font_make_object, struct ftfont_info.
1736 (ftfont_has_char): Use ftfont_get_fc_charset.
1737 (ftfont_otf_features, ftfont_otf_capability): New functions.
1738 (ftfont_shape): Use ftfont_get_otf.
1739 (ftfont_text_extents): Fix initial setting of metrics.
1740
1741 * xftfont.c (struct xftfont_info): New member ft_size. Make the
1742 member order compatible with struct ftfont_info.
1743 (xftfont_open): Add FC_CHARSET to the pattern. Set
1744 xftfont_info->ft_size. Don't unlock the face. Check BDF
1745 properties if appropriate.
1746 (xftfont_close): Unlock the face.
1747 (xftfont_anchor_point, xftfont_shape): Deleted.
1748 (syms_of_xftfont): Don't set members anchor_point and shape of
1749 xftfont_driver.
1750
1751 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
1752 font_make_object.
1753
1754 * w32font.c (w32font_open): Adjust it for the change of
1755 font_make_object.
1756 (w32font_open_internal): Don't set properties of font_object here.
1757
1758 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
1759
1760 * macfns.c (x_create_tip_frame):
1761 * w32fns.c (x_create_tip_frame):
1762 * xfns.c (x_create_tip_frame): Pass parameter argument to
1763 face-set-after-frame-default.
1764
1765 * xfaces.c (Finternal_merge_in_global_face): Save merged
1766 attributes for the default face back into the face vector.
1767
1768 2008-07-08 Andreas Schwab <schwab@suse.de>
1769
1770 * fontset.h: Declare fontset_from_font. Don't declare
1771 new_fontset_from_font and fontset_from_font_name.
1772 * xterm.c: Include "fontset.h".
1773 * Makefile.in (xterm.o): Update dependencies.
1774
1775 2008-07-08 Glenn Morris <rgm@gnu.org>
1776
1777 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
1778 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
1779
1780 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
1781
1782 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
1783 (x_set_frame_parameters): Don't bind it.
1784
1785 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
1786
1787 * w32fns.c (map_w32_filename): Declare extern.
1788
1789 2008-07-07 Jason Rumney <jasonr@gnu.org>
1790
1791 * w32term.c (WS_EX_LAYERED): Define if not already.
1792
1793 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
1794
1795 * xfaces.c (set_font_frame_param): Don't try to set the font
1796 parameter if it is still unspecified in the lface.
1797
1798 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
1799
1800 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
1801 face if it didn't already exist.
1802
1803 * xdisp.c (try_window_id): Give up if word-wrapping is on.
1804
1805 2008-07-05 Andreas Schwab <schwab@suse.de>
1806
1807 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
1808
1809 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
1810
1811 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
1812 word-wrapping.
1813 (IT_DISPLAYING_WHITESPACE): New macro.
1814 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
1815 when word-wrapping. Simplify word-wrapping logic. Use correct
1816 pixel positions when saving copies of the iterator.
1817 (display_line): Use proper wrap point if the last character on a
1818 line was preceded by whitespace.
1819
1820 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
1821
1822 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
1823
1824 2008-07-04 Kenichi Handa <handa@m17n.org>
1825
1826 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
1827
1828 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
1829
1830 2008-07-02 Jason Rumney <jasonr@gnu.org>
1831
1832 * xfns.c (syms_of_xfns): Only define x-select-font when both
1833 HAVE_FREETYPE and USE_GTK
1834
1835 * xdisp.c (next_element_from_display_vector): Move assignment out
1836 of if statement.
1837
1838 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
1839
1840 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
1841
1842 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
1843 (syms_of_fileio): Initialize and export them.
1844 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
1845
1846 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
1847 (Fsystem_move_file_to_trash): New function.
1848 (syms_of_w32fns): Export it to lisp.
1849
1850 2008-07-01 Jason Rumney <jasonr@gnu.org>
1851
1852 * w32font.c (w32font_text_extents): Don't count overhang as part
1853 of width.
1854
1855 2008-06-30 Miles Bader <miles@gnu.org>
1856
1857 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
1858 Add `avoid_cursor_p' field.
1859
1860 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
1861 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
1862 (append_glyph, append_composite_glyph, produce_image_glyph)
1863 (append_stretch_glyph): Initialize avoid_cursor_p.
1864 (get_it_property): Rename from `get_line_height_property'.
1865 (x_produce_glyphs): Use get_it_property.
1866 (handle_line_prefix, push_display_prop): New functions.
1867 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
1868 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
1869 New variables.
1870 (syms_of_xdisp): Initialize them.
1871
1872 2008-06-30 Kenichi Handa <handa@m17n.org>
1873
1874 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
1875 XftDefaultSubstitute (they are called in XftFontMatch).
1876 (xftfont_open): Fix args to ftfont_font_format.
1877
1878 * ftfont.c (fc_charset_table): New member lang.
1879 (ftfont_resolve_generic_family): New arg pattern.
1880 (ftfont_spec_pattern): Check fc_cahrset_table[]->lang.
1881 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
1882 (ftfont_open): Fix args to ftfont_font_format.
1883 (ftfont_font_format): New arg filename.
1884
1885 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
1886
1887 * xfaces.c (Finternal_merge_in_global_face): If default face was
1888 modified, realize it again. Update the font face attribute.
1889
1890 2008-06-29 Jason Rumney <jasonr@gnu.org>
1891
1892 * w32term.c (x_set_frame_alpha): Fix logic.
1893
1894 2008-06-29 Kenichi Handa <handa@m17n.org>
1895
1896 * fontset.c (Finternal_char_font): Return font-object instead of
1897 font-name.
1898
1899 * composite.c (get_composition_id): Fix the width calculation for TAB.
1900
1901 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
1902
1903 * indent.c (Fvertical_motion): Properly handle float column arg.
1904
1905 2008-06-28 Jason Rumney <jasonr@gnu.org>
1906
1907 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
1908 (pfnSetLayeredWindowAttributes): New function pointer.
1909 (w32_initialize): Initialize it when supported.
1910 (x_set_frame_alpha): New function.
1911
1912 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
1913 (w32_frame_parm_handlers): Set alpha handler.
1914
1915 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
1916
1917 2008-06-27 Jason Rumney <jasonr@gnu.org>
1918
1919 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
1920 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
1921 (w32_to_x_charset, x_to_w32_charset)
1922 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
1923 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
1924 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
1925 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
1926 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
1927 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
1928 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
1929 (Qw32_charset_unicode): Remove.
1930 (syms_of_w32fns): Update for above changes.
1931
1932 * w32font.c (w32_to_x_charset, x_to_w32_charset)
1933 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
1934 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
1935 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
1936 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
1937 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
1938 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
1939 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
1940 (syms_of_w32font): Update for above changes.
1941
1942 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
1943
1944 * s/usg5-4.h: Fix previous change: keep the correct branch of a
1945 removed #if.
1946 (USG_SHARED_LIBRARIES): Remove duplicate definition.
1947
1948 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
1949 Eli Zaretskii <eliz@gnu.org>
1950
1951 * makefile.w32-in (LOCAL_FLAGS):
1952 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
1953
1954 * sysdep.c (_spawnlp, _getpid):
1955 Declare with explicit _cdecl instead of _CRTAPI1.
1956
1957 * editfns.c (Fget_internal_run_time):
1958 Check for WINDOWSNT with #ifdef, not #if.
1959
1960 2008-06-26 Jason Rumney <jasonr@gnu.org>
1961
1962 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
1963
1964 * w32term.c (x_draw_glyph_string_foreground)
1965 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
1966 Use FONT_HANDLE macro.
1967 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
1968
1969 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
1970 (uniscribe_encode_char): Use FONT_HANDLE macro.
1971
1972 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
1973 (w32font_text_extents): Use precast w32_font.
1974 (w32font_close): Free cached metrics.
1975 (w32font_open_internal): Allocate space for name on stack.
1976
1977 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
1978
1979 * xdisp.c (extend_face_to_end_of_line): Fix last change.
1980
1981 2008-06-26 Jason Rumney <jasonr@gnu.org>
1982
1983 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
1984 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
1985
1986 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
1987
1988 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
1989
1990 2008-06-26 Jason Rumney <jasonr@gnu.org>
1991
1992 * w32bdf.c, w32bdf.h: Remove obsolete files.
1993
1994 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
1995
1996 * w32gui.h: Don't include w32bdf.h.
1997 (XCharStruct, enum w32_char_font_type, W32FontStruct):
1998 Remove obsolete font support.
1999
2000 * w32font.h (struct w32font_info): Remove compat_w32_font.
2001 Add hfont member.
2002 (FONT_COMPAT): Remove obsolete macro.
2003
2004 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
2005 (w32font_encode_char, w32font_text_extents): Use new hfont member.
2006 (w32font_open_internal): Remove compat code. Set new hfont member.
2007 (Fx_select_font): Use new hfont member.
2008
2009 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
2010 (uniscribe_encode_char): Use new hfont member.
2011
2012 * w32term.c (x_draw_glyph_string_foreground)
2013 (x_draw_composite_glyph_string_foreground): Use new hfont member.
2014 (x_draw_glyph_string): Use metrics in w32font_info.
2015
2016 2008-06-26 Kenichi Handa <handa@m17n.org>
2017
2018 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
2019
2020 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
2021
2022 * unexnext.c:
2023 * m/ews4800.h:
2024 * m/hp9000s300.h:
2025 * m/ibm370aix.h:
2026 * m/mips-siemens.h:
2027 * m/ncr386.h:
2028 * m/next.h:
2029 * m/pmax.h:
2030 * m/powerpcle.h:
2031 * m/tandem-s2.h:
2032 * s/386bsd.h:
2033 * s/bsd386.h:
2034 * s/bsd4-1.h:
2035 * s/bsd4-2.h:
2036 * s/bsdos2-1.h:
2037 * s/bsdos2.h:
2038 * s/bsdos3.h:
2039 * s/bsdos4.h:
2040 * s/nextstep.h:
2041 * s/ultrix4-3.h:
2042 * s/usg5-0.h:
2043 * s/usg5-2-2.h:
2044 * s/usg5-2.h:
2045 * s/usg5-4-3.h:
2046 * s/ux4800.h:
2047 * s/uxpds.h:
2048 * s/uxpv.h: Remove support for obsolete systems.
2049 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
2050 Remove, insert contents in s/hpux-10.20.h.
2051 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
2052 Remove, insert contents in s/aix4-2.h.
2053 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
2054 * s/bsd4-3.h: Rename to ...
2055 * s/bsd-common.h: ... this.
2056 * data.c:
2057 * doc.c:
2058 * ecrt0.c:
2059 * emacs.c:
2060 * fileio.c:
2061 * floatfns.c:
2062 * keyboard.c:
2063 * mem-limits.h:
2064 * print.c:
2065 * process.c:
2066 * sysdep.c:
2067 * syssignal.h:
2068 * systty.h:
2069 * syswait.h:
2070 * term.c:
2071 * unexec.c:
2072 * unexelf.c:
2073 * unexhp9k800.c:
2074 * m/hp800.h:
2075 * m/ibmrs6000.h:
2076 * m/mips.h:
2077 * m/vax.h:
2078 * s/darwin.h:
2079 * s/freebsd.h:
2080 * s/gnu.h:
2081 * s/ms-w32.h:
2082 * s/msdos.h:
2083 * s/netbsd.h:
2084 * s/template.h: Remove references to obsolete variables.
2085
2086 * Makefile.in: Add dependencies for all unexec files.
2087 (admindir): Remove unused variable.
2088 (UNEXEC_SRC): Remove references.
2089
2090 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
2091
2092 * xfns.c (x_default_font_parameter): If Xft is available, first
2093 try Monospace-12 for the default font.
2094
2095 2008-06-25 Jason Rumney <jasonr@gnu.org>
2096
2097 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
2098
2099 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
2100
2101 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
2102
2103 * buffer.c (syms_of_buffer): Remove default-word-wrap.
2104
2105 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
2106
2107 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
2108 <scroll-conservatively>: Fix typo in docstring.
2109
2110 * xselect.c (Fx_send_client_event): Doc fix.
2111
2112 2008-06-25 Kenichi Handa <handa@m17n.org>
2113
2114 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
2115
2116 * font.c (font_parse_fcname): Remove unused variables.
2117 (font_sort_entites): Delete the arg SPEC. Caller changed.
2118 Fix for the case of ! best_only.
2119 (font_delete_unmatched): Check DPI and AVGWIDTH too.
2120
2121 * lisp.h (Fstring_to_unibyte): EXFUN it.
2122
2123 * character.h (str_to_unibyte): Extern it.
2124
2125 * character.c (str_to_unibyte): New function.
2126
2127 * fns.c (Fstring_to_unibyte): New function.
2128 (syms_of_fns): Defsubr it.
2129
2130 2008-06-24 Kenichi Handa <handa@m17n.org>
2131
2132 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
2133 DPI too.
2134 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
2135
2136 2008-06-24 Andreas Schwab <schwab@suse.de>
2137
2138 * Makefile.in (${lispsource}loaddefs.el): Rename from
2139 ../lisp/loaddefs.el.
2140 (bootstrap-clean): Do what distclean does but don't remove
2141 Makefile.
2142 (distclean): Depend on bootstrap-clean and remove Makefile.
2143
2144 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
2145
2146 * buffer.h (struct buffer): New member word_wrap.
2147
2148 * buffer.c (syms_of_buffer): New variables default-word-wrap and
2149 word-wrap.
2150 (init_buffer_once): Initialize them.
2151
2152 * dispextern.h (struct it): Replace bool truncate_lines_p with a
2153 line_wrap enum possessing three possible values.
2154
2155 * termopts.h: Replace truncate_partial_width_windows with
2156 Vtruncate_partial_width_windows.
2157
2158 * dispnew.c (direct_output_for_insert): Avoid direct output when
2159 inserting a space with word wrap on.
2160
2161 * indent.c (compute_motion): Obey integer values of
2162 truncate-partial-width-windows.
2163
2164 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
2165 replacing truncate_partial_width_windows.
2166 (init_iterator): If Vtruncate_partial_width_windows is an integer,
2167 truncate only if the window width is below that integer.
2168 (start_display, resize_mini_window, produce_stretch_glyph)
2169 (display_string, move_it_in_display_line_to): Use line_wrap.
2170 (back_to_previous_visible_line_start, reseat_1): Reset
2171 string_from_display_prop_p.
2172 (display_line): Extend default face to end of line when wrapping.
2173
2174 2008-06-24 Kim F. Storm <storm@cua.dk>
2175
2176 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
2177 to wrap continued lines at word boundaries.
2178
2179 2008-06-24 Jason Rumney <jasonr@gnu.org>
2180
2181 * font.c (Ffont_face_attributes): Multiply pixel size before point
2182 conversion to avoid multiplying rounding error.
2183
2184 2008-06-23 Jason Rumney <jasonr@gnu.org>
2185
2186 * w32term.c (x_draw_glyph_string_background)
2187 (x_draw_glyph_string): Remove old bdf font code.
2188
2189 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
2190
2191 2008-06-22 Kenichi Handa <handa@m17n.org>
2192
2193 * font.c (font_find_for_lface): Try the adstyle specified in
2194 the property of LFACE_FONT of LFACE (if any).
2195
2196 2008-06-21 Seiji Zenitani <zenitani@mac.com>
2197 Ryo Yoshitake <ryo@shiftmode.net>
2198
2199 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
2200
2201 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
2202
2203 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
2204 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
2205 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
2206 (witness-emacs): Remove.
2207 (lisp, shortlisp): Move loaddefs.el earlier.
2208 (mostlyclean): Forget about witness-emacs.
2209
2210 2008-06-22 Glenn Morris <rgm@gnu.org>
2211
2212 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
2213 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
2214
2215 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
2216
2217 * Makefile.in (PRECOMP): Remove.
2218 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
2219 (witness-emacs): Run `compile-first'.
2220 (.el.elc): Use the new compile-onefile target.
2221
2222 2008-06-21 Kenichi Handa <handa@m17n.org>
2223
2224 * xftfont.c (xftfont_open): Handle QCembolden only when
2225 FC_EMBOLDEN is defined.
2226
2227 2008-06-21 Andreas Schwab <schwab@suse.de>
2228
2229 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
2230 (.el.elc): Likewise.
2231
2232 2008-06-21 Miles Bader <miles@gnu.org>
2233
2234 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
2235 build dir, not the lisp source dir.
2236
2237 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
2238
2239 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
2240 (bootstrapclean): Remove.
2241 (.el.elc): New rule.
2242 (PRECOMP): New var.
2243 (../lisp/subdirs.el): Remove.
2244 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
2245 (witness-emacs): New target.
2246 (mostlyclean): Remove witness-emacs as well.
2247 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
2248 Add witness-emacs dependency.
2249
2250 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
2251
2252 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
2253 defined by the font.
2254
2255 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
2256
2257 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
2258 (bootstrap-clean): New target that keeps TAGS around.
2259 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
2260 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
2261
2262 2008-06-20 Jason Rumney <jasonr@gnu.org>
2263
2264 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
2265 Remove obsolete font code.
2266
2267 * w32font.c (font_matches_spec): Use csb bitfield from font signature
2268 to determine language support.
2269
2270 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
2271
2272 * sysdep.c (cfsetspeed): New fun extracted from the code.
2273 (cfmakeraw): Move before first use.
2274
2275 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
2276
2277 * sysdep.c (cfmakeraw): Provide fallback implementation.
2278 (serial_configure): Provide fallback implementation of cfsetspeed.
2279
2280 2008-06-20 Kenichi Handa <handa@m17n.org>
2281
2282 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
2283 the pattern.
2284
2285 * fontset.c (fontset_from_font): Copy font_spec before changing
2286 the elements.
2287
2288 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
2289
2290 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
2291
2292 * w32fns.c, xfnc.c (x_default_font_parameter): Only set `font-param'
2293 for explicit `font' parameters.
2294
2295 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
2296
2297 2008-06-19 Kenichi Handa <handa@m17n.org>
2298
2299 * frame.c: Include <ctype.h>.
2300 (x_set_font_backend): Allow spacing characters in the X resource
2301 for FontBackend.
2302
2303 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
2304
2305 * w32fns.c, xfns.c (Qfont_param): New var.
2306 (syms_of_w32fns): Initialize it.
2307 (x_default_font_parameter): Record explicit `font' into
2308 `font-parameter'.
2309
2310 2008-06-18 Kenichi Handa <handa@m17n.org>
2311
2312 * font.c (font_parse_xlfd): Fix previous change.
2313 (font_parse_fcname): Don't use :fc-unknown-spec.
2314 (FRAME_X_DISPLAY_INFO): Besure to have at least 1 pixel height.
2315 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
2316 (font_add_log): Prepend the driver name to the resulting fonts.
2317
2318 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
2319 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
2320 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
2321
2322 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
2323 (QCembolden): New variables.
2324 (syms_of_xftfont): DEFSYM them.
2325 (xftfont_open): Call XftFontMatch. Don't trust the result of
2326 XftTextExtents8 if the pixel_size is less than 5.
2327
2328 2008-06-18 Andreas Schwab <schwab@suse.de>
2329
2330 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
2331 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
2332
2333 2008-06-18 Jason Rumney <jasonr@gnu.org>
2334
2335 * w32font.c (w32font_list, w32font_match): Add logging.
2336
2337 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
2338
2339 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
2340
2341 * font.c (font_parse_fcname): Store divider characters for
2342 unknown-spec list. For known key symbols, intern using correct
2343 symbol name.
2344
2345 2008-06-17 Kenichi Handa <handa@m17n.org>
2346
2347 * xfaces.c (realize_default_face): If the frame is not on window
2348 system, set the fontset of face to nil.
2349
2350 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
2351
2352 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
2353
2354 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
2355
2356 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
2357 (build_font_name_from_vector): Delete externs.
2358
2359 * xfaces.c (struct font_name): Don't declare.
2360
2361 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
2362
2363 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
2364
2365 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
2366
2367 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
2368
2369 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
2370
2371 * font.c (Ffont_spec): Fix usage in docstring.
2372 (Ffont_face_attributes): Doc fix.
2373
2374 2008-06-16 Andreas Schwab <schwab@suse.de>
2375
2376 * font.c (Ffont_face_attributes): Fix definition.
2377
2378 2008-06-16 Jason Rumney <jasonr@gnu.org>
2379
2380 * font.h (font_style_symbolic_from_value): Remove.
2381
2382 * font.c (font_style_symbolic_from_value): Remove.
2383 (font_style_symbolic): Revert to pre 2008-06-13 version.
2384
2385 * w32font.c (w32_to_fc_weight): New function.
2386 (w32font_full_name, logfont_to_fcname): Use it.
2387
2388 2008-06-16 Kenichi Handa <handa@m17n.org>
2389
2390 * font.c (font_check_object): Delete it.
2391 (font_clear_cache): Check if a font-object is alive.
2392 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
2393 font-object to nil.
2394 (font_close_object): Don't check FONT_CLOSE_OBJECT.
2395 (font_at): Don't call font_check_object.
2396 (Ffont_get): Return a symbol for :weight, :slant, and :width.
2397
2398 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
2399
2400 * puresize.h (BASE_PURESIZE): Increase to 1230000.
2401
2402 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
2403
2404 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
2405
2406 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
2407
2408 * font.c (font_parse_fcname): Only one decimal point.
2409 (font_unparse_fcname): Handle data in family and foundry indices
2410 as symbols, not strings.
2411 (font_unparse_gtkname, Ffont_face_attributes): New functions.
2412
2413 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
2414
2415 * font.h (font_unparse_gtkname): Add prototype.
2416
2417 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
2418
2419 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
2420
2421 2008-06-15 Andreas Schwab <schwab@suse.de>
2422
2423 * font.c (font_update_drivers): Fix crash when no drivers match.
2424
2425 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
2426
2427 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
2428 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
2429
2430 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
2431
2432 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
2433
2434 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
2435
2436 * process.c (Fserial_process_configure, Fprocess_send_eof):
2437 Use EQ to compare Lisp_Objects.
2438
2439 2008-06-13 Jason Rumney <jasonr@gnu.org>
2440
2441 * w32fns.c (Fw32_select_font): Remove old font API function.
2442
2443 * w32font.c (logfont_to_fcname): New function.
2444 (Fx_select_font): New font dialog function compatible with
2445 GTK/fontconfig version.
2446
2447 * font.c (font_style_symbolic_from_value): New function.
2448 (font_style_symbolic): Use it.
2449
2450 * font.h (font_style_symbolic_from_value): Declare new function.
2451
2452 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
2453
2454 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
2455 <font-width-table>: Fix typos in docstrings.
2456
2457 2008-06-13 Daniel Engeler <engeler@gmail.com>
2458
2459 These changes add serial port access.
2460 * process.c: Add HAVE_SERIAL.
2461 (Fdelete_process, Fprocess_status, Fset_process_buffer)
2462 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
2463 (list_processes_1, select_wrapper, Fstop_process)
2464 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
2465 (status_notify): Modify to handle serial processes.
2466 [HAVE_SERIAL] (Fserial_process_configure)
2467 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
2468 New functions.
2469 * process.h (struct Lisp_Process): Add `type'.
2470 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
2471 New functions.
2472 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
2473 serial ports.
2474 (serial_open, serial_configure) New functions.
2475 * w32.h: Add FILE_SERIAL.
2476 (struct _child_process): Add ovl_read, ovl_write.
2477
2478 2008-06-13 Kenichi Handa <handa@m17n.org>
2479
2480 * dispextern.h (enum lface_attribute_index): New member
2481 LFACE_FOUNDRY_INDEX.
2482
2483 * font.c (font_score): Delete arg alternate_families. Check only
2484 weight, slant, width, and size. Ignore the difference of alias
2485 style symbols.
2486 (font_sort_entites): Adjust for the above change. Reflect the
2487 order of font-driver to scores.
2488 (font_list_entities): Don't check alternate_familes here.
2489 (font_clear_prop): Handle foundry.
2490 (font_update_lface): Don't parse "foundry-family" form here.
2491 Handle FONT_FOUNDRY_INDEX.
2492 (font_find_for_lface): Likewise. Handle alternate families here.
2493 If registry is nil, try iso8859-1 and ascii-0.
2494 (font_open_for_lface): Pay attention to size in ENTITY.
2495 (font_open_by_name): Simplify by calling font_load_for_lface.
2496 (free_font_driver_list): Delete it.
2497 (font_update_drivers): Preserve the order of backends.
2498 (syms_of_font): Setting of sort_shift_bits adjusted for the change
2499 of font_score and font_sort_entites.
2500 (font_update_sort_order): Likewise.
2501
2502 * xfaces.c (LFACE_FOUNDRY): New macro.
2503 (check_lface_attrs): Check foundry.
2504 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
2505 (merge_face_vectors): Check foundry.
2506 (merge_face_ref): Likewise.
2507 (Finternal_set_lisp_face_attribute): Likewise.
2508 (x_update_menu_appearance): Likewise.
2509 (Finternal_get_lisp_face_attribute): Likewise.
2510 (lface_hash): Likewise.
2511 (lface_same_font_attributes_p): Likewise.
2512 (x_supports_face_attributes_p): Likewise.
2513 (tty_supports_face_attributes_p): Likewise.
2514 (Finternal_set_alternative_font_family_alist): Intern strings.
2515 (Finternal_set_alternative_font_registry_alist): Downcase strings.
2516 (realize_default_face): Set LFACE_FOUNDRY (lface).
2517
2518 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
2519 font-driver at first.
2520
2521 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
2522
2523 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
2524
2525 * lread.c (Fload): Use xfree, not free on saved_doc_string.
2526
2527 2008-06-12 Jim Meyering <meyering@redhat.com>
2528
2529 Make unexec_free handle NULL the same way free does.
2530 * unexmacosx.c (unexec_free): Ignore a NULL argument.
2531
2532 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
2533
2534 * character.h (CHAR_TO_BYTE_SAFE): New macro.
2535 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
2536 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
2537 (WEAK_ALIAS): Simplify.
2538 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
2539 when searching a unibyte buffer.
2540
2541 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
2542
2543 * xfns.c (Fx_select_font): Rename from x-font-dialog.
2544
2545 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
2546
2547 * w32font.c: Include ctype.h.
2548
2549 2008-06-11 Jason Rumney <jasonr@gnu.org>
2550
2551 * w32font.c (w32font_encode_char): Detect missing glyphs that are
2552 misreported as space.
2553 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
2554 as aliases for registry iso10646-1.
2555
2556 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
2557
2558 * buffer.c (clone_per_buffer_values): Skip `name'.
2559
2560 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
2561
2562 * font.c (font_parse_fcname): Fix last change; accept decimal
2563 points in font size.
2564
2565 2008-06-10 Jason Rumney <jasonr@gnu.org>
2566
2567 * w32uniscribe.c (add_opentype_font_name_to_list):
2568 Skip non unicode fonts.
2569
2570 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
2571
2572 * xfns.c (Fx_font_dialog): New function.
2573
2574 * gtkutil.c (xg_dialog_response_cb): Rename from
2575 xg_file_response_callback.
2576 (pop_down_dialog): Rename from pop_down_file_dialog.
2577 (xg_get_file_name): Callers changed.
2578 (xg_get_font_name): New function.
2579
2580 * gtkutil.h (xg_get_font_name): Insert prototype.
2581
2582 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
2583
2584 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
2585 x_underline_minimum_display_offset.
2586 (syms_of_xdisp): Declare it here rather than in xterm.c.
2587 * dispextern.h (underline_minimum_offset): Declare it.
2588 * w32term.c (x_draw_glyph_string): Use it.
2589 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
2590 (syms_of_xterm): Don't declare it any more.
2591 (x_draw_glyph_string): Adjust to the new name.
2592
2593 2008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
2594
2595 * xterm.c (x_underline_minimum_display_offset): New var.
2596 (x_draw_glyph_string): Use it.
2597 (syms_of_xterm): Declare it.
2598
2599 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
2600
2601 * font.c (font_parse_fcname): Accept GTK-style font names too.
2602
2603 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
2604
2605 * dired.c (file_name_completion): Don't return t if the match is exact
2606 but with different capitalization.
2607 * minibuf.c (Ftry_completion): Simplify.
2608
2609 * window.c (Vwindow_point_insertion_type): New var.
2610 (set_window_buffer): Use it.
2611 (syms_of_window): Init and export it to Lisp.
2612
2613 2008-06-10 Kenichi Handa <handa@m17n.org>
2614
2615 * font.h (font_intern_prop): Prototype adjusted.
2616
2617 * font.c (font_intern_prop): New arg force_symbol.
2618 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
2619 Adjust for the change of font_intern_prop.
2620
2621 * ftfont.c (ftfont_pattern_entity):
2622 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
2623 (w32_registry):
2624 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
2625 the change of font_intern_prop.
2626
2627 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
2628
2629 * w32menu.c (digest_single_submenu): Declare extern.
2630
2631 2008-06-09 Jason Rumney <jasonr@gnu.org>
2632
2633 * w32term.c (x_make_frame_visible): Use alternate restore flags.
2634
2635 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
2636 (parse_single_submenu): Remove.
2637 (digest_single_submenu): Remove.
2638 (syms_of_w32menu): Don't initialise variables that have moved
2639 to menu.c.
2640 (set_frame_menubar): Sync with version in xmenu.c.
2641 (w32_menu_show): Sync with xmenu_show in xmenu.c.
2642
2643 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
2644 Make static again.
2645
2646 2008-06-09 Jason Rumney <jasonr@gnu.org>
2647
2648 Changes to w32 files related to the move of common menu code
2649 to menu.c on 2008-06-08 by Chong Yidong.
2650
2651 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
2652 defs to w32gui.h.
2653 (single_keymap_panes, push_menu_item, push_menu_pane):
2654 Make globally visible.
2655
2656 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
2657 (local_free, malloc_widget_value, free_widget_value)
2658 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
2659 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
2660 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
2661 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
2662 (menu_items, menu_items_allocated, menu_items_used)
2663 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
2664 (init_menu_items, finish_menu_items, discard_menu_items)
2665 (grow_menu_items, push_submenu_start, push_submenu_end)
2666 (push_left_right_boundary, push_menu_pane, push_menu_item)
2667 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
2668 (free_menubar_widget_tree_value, parse_single_submenu)
2669 (update_submenu_strings): Remove functions.
2670 (xmalloc_widget_value): Remove and declare extern.
2671
2672 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
2673 (OBJ1): Build it.
2674
2675 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
2676 (local_heap, local_alloc, local_free, malloc_widget_value)
2677 (free_widget_value): Define here.
2678
2679 2008-06-09 Kenichi Handa <handa@m17n.org>
2680
2681 * font.h (Qascii_0): Extern it.
2682
2683 * font.c (Qascii_0): New variable.
2684 (syms_of_font): DEFSYM it.
2685 (font_open_by_name): If the registry "iso8859-1" fails, try also
2686 "ascii-0".
2687
2688 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
2689
2690 2008-06-08 Kenichi Handa <handa@m17n.org>
2691
2692 * .gdbinit (xfont): New command.
2693
2694 2008-06-08 Andreas Schwab <schwab@suse.de>
2695
2696 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
2697 * Makefile.in (menu.o): Update dependencies.
2698
2699 * Makefile.in (obj): Always add menu.o.
2700 * emacs.c (main): Always call syms_of_menu.
2701 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
2702
2703 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
2704
2705 * Makefile.in: Compile menu.c.
2706
2707 * lisp.h: Declare syms_of_menu.
2708
2709 * emacs.c (main): Call syms_of_menu.
2710
2711 * keyboard.h: Relocate platform-independent menu definitions from
2712 xmenu.c.
2713
2714 * menu.c: New file. Relocate platform-independent menu
2715 definitions from xmenu.c. Suggested by Adrian Robert.
2716
2717 * xmenu.c: Remove platform-independent menu definitions.
2718 (menu_items menu_items_inuse, menu_items_allocated)
2719 (menu_items_used, menu_items_n_panes)
2720 (menu_items_submenu_depth): Move to keyboard.h.
2721 (init_menu_items, finish_menu_items, unuse_menu_items)
2722 (discard_menu_items, restore_menu_items, save_menu_items)
2723 (grow_menu_items, push_submenu_start, push_submenu_end)
2724 (push_left_right_boundary, push_menu_pane, push_menu_item)
2725 (keymap_panes, single_keymap_panes, single_menu_item)
2726 (list_of_panes, list_of_items, find_and_call_menu_selection)
2727 (xmalloc_widget_value, free_menubar_widget_value_tree)
2728 (parse_single_submenu, digest_single_submenu)
2729 (update_submenu_strings): Move to menu.c.
2730
2731 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
2732
2733 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
2734
2735 2008-06-06 Miles Bader <miles@gnu.org>
2736
2737 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
2738 face, not frame default.
2739
2740 2008-06-05 Martin Rudalics <rudalics@gmx.at>
2741
2742 * window.c (pop_up_windows, pop_up_frames)
2743 (display_buffer_reuse_frames, Vpop_up_frame_function)
2744 (Vdisplay_buffer_function, Veven_window_heights)
2745 (Vspecial_display_buffer_names, Vspecial_display_regexps)
2746 (Vspecial_display_function, Vsame_window_buffer_names)
2747 (Vsame_window_regexps, split_height_threshold)
2748 (Vsplit_window_preferred_function): Move those vars to window.el.
2749 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
2750 (Fdisplay_buffer): Move those functions to window.el.
2751 (syms_of_window): Remove corresponding declarations.
2752 (display_buffer): New function.
2753 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
2754 * dispnew.c (Flast_nonminibuf_frame): New function.
2755 * buffer.c (Fpop_to_buffer): Move to window.el.
2756
2757 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
2758
2759 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
2760
2761 2008-06-05 Kenichi Handa <handa@m17n.org>
2762
2763 * coding.c (detect_coding): Fix previous change.
2764 (detect_coding_system): Likewise.
2765
2766 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
2767
2768 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
2769
2770 * keymap.c (Vminibuffer_local_filename_must_match_map):
2771 Rename from Vminibuffer_local_must_match_filename_map.
2772 (syms_of_keymap):
2773 * minibuf.c (Fcompleting_read): Adjust accordingly.
2774 * commands.h: Rename declaration as well.
2775
2776 2008-06-05 Kenichi Handa <handa@m17n.org>
2777
2778 * font.c (Ffont_spec): Don't use font_parse_family_registry for
2779 family name.
2780 (Ffont_put): Likewise.
2781
2782 * fontset.c (fontset_find_font): Call font_open_for_lface with the
2783 current font-spec.
2784
2785 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
2786 is unspecified.
2787
2788 * xfaces.c (realize_x_face): If the font-related face attributes
2789 are the same as those of default face, realize a new fontset from
2790 default->fontset.
2791 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
2792
2793 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
2794
2795 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
2796 (move_it_in_display_line): New wrapper.
2797
2798 * window.c (window_scroll_pixel_based_preserve_x)
2799 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
2800 (window_scroll_pixel_based, window_scroll_line_based):
2801 Use them to preserve column positions.
2802 (syms_of_window): Initialize them.
2803
2804 * indent.c (Fvertical_motion): Extend first arg to allow passing an
2805 (HPOS . VPOS) pair.
2806
2807 * dispextern.h (move_it_in_display_line): Declare.
2808
2809 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
2810
2811 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
2812 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
2813 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
2814
2815 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
2816
2817 * window.c (Fset_window_parameter): Doc fix.
2818 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
2819
2820 2008-06-04 Joakim Verona <joakim@verona.se>
2821
2822 * window.h (struct window): Add new member window_parameters.
2823
2824 * window.c (Fwindow_parameters, Fwindow_parameter)
2825 (Fset_window_parameter): New defuns.
2826 (syms_of_window): Defsubr the new defuns.
2827 (make_window): Initialize window_parameters to nil.
2828
2829 2008-06-04 John Paul Wallington <jpw@pobox.com>
2830
2831 * eval.c (Fdefmacro): Doc fix.
2832
2833 2008-06-04 Kenichi Handa <handa@m17n.org>
2834
2835 * coding.c (detect_coding): Fix handling of coding->head_ascii.
2836 Be sure to call setup_coding_system when we find a proper coding system.
2837 (detect_coding_system): Fix handling of coding->head_ascii.
2838
2839 2008-06-03 Andreas Schwab <schwab@suse.de>
2840
2841 * font.c (font_prop_validate_spacing): Fix last change.
2842
2843 2008-06-03 Kenichi Handa <handa@m17n.org>
2844
2845 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
2846 (font_parse_fcname): Fix handling of unknown key.
2847
2848 * xfont.c (xfont_list): Try an alias.
2849
2850 * charset.c (char_charset): Return NULL if the arg charset_list is
2851 specified and C doesn't belong to any of them.
2852
2853 2008-06-02 Chip Coldwell <coldwell@redhat.com>
2854
2855 * font.c (font_pixel_size): Don't take cdr of an integer.
2856
2857 2008-06-02 Jim Meyering <meyering@redhat.com>
2858
2859 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
2860 * alloc.c (xfree): Return right away for a NULL arg.
2861 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
2862 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
2863 * mac.c (create_apple_event_from_event_ref): Likewise.
2864 (create_apple_event_from_drag_ref, cfstring_create_normalized):
2865 Likewise.
2866 * doprnt.c (doprnt1): Likewise.
2867 * frame.c (frame): Likewise.
2868 * keyboard.c (wipe_kboard): Likewise.
2869 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
2870 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
2871 * term.c (tty_default_color_capabilities, maybe_fatal)
2872 (delete_tty): Likewise.
2873 * w16select.c (string): Likewise.
2874 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
2875 * w32bdf.c (w32_free_bdf_font): Likewise.
2876 * w32fns.c (w32_unload_font): Likewise.
2877 * w32font.c (w32font_close): Likewise.
2878 * window.c (size_window): Likewise.
2879 * xselect.c (receive_incremental_selection): Likewise.
2880 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
2881 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
2882 * w32.c (stat): Likewise.
2883
2884 Remove useless if-before-free tests.
2885 * editfns.c (Fset_time_zone_rule): Likewise.
2886 * lread.c (nosuffix): Likewise.
2887 * ralloc.c (get_bloc): Likewise.
2888 * regex.c (reg_free): Likewise.
2889 * xftfont.c (xftfont_open, xftfont_close): Likewise.
2890 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
2891 * xsmfns.c (smc_save_yourself_CB): Likewise.
2892
2893 2008-06-02 Kenichi Handa <handa@m17n.org>
2894
2895 * font.c (font_find_for_lface): Handle float font size.
2896 (font_open_for_lface): Likewise.
2897
2898 * xfaces.c (x_supports_face_attributes_p): Check face->font before
2899 comparing the properties.
2900
2901 2008-06-01 Jason Rumney <jasonr@gnu.org>
2902
2903 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
2904 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
2905 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
2906 Don't add empty script list.
2907 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
2908
2909 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
2910
2911 * Makefile.in (dot, dotdot): Remove, update users.
2912 ".." has been used elsewhere in the file for a long time.
2913 (LIBXT_STATIC): Remove conditional based on unused variable.
2914
2915 2008-06-01 Miles Bader <miles@gnu.org>
2916
2917 * xfaces.c (Vface_remapping_alist): New variable.
2918 (syms_of_xfaces): Initialize it.
2919 (enum named_merge_point_kind): New type.
2920 (struct named_merge_point): Add `named_merge_point_kind' field.
2921 (push_named_merge_point): Make cycle detection respect different
2922 named-merge-point kinds.
2923 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
2924 Remove face-name alias resolution.
2925 (lface_from_face_name): New definition using
2926 `lface_from_face_name_no_resolve'.
2927 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
2928 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
2929 (get_lface_attributes): New definition that layers face-remapping on
2930 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
2931 (lookup_basic_face): New function.
2932 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
2933 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
2934 `get_lface_attributes'.
2935 (face_at_buffer_position): Use `lookup_basic_face' to lookup
2936 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
2937 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
2938
2939 * xdisp.c (init_iterator): Pass base_face_id through
2940 `lookup_basic_face' when we actually use it as a face-id.
2941 (handle_single_display_prop): Use `lookup_basic_face' to lookup
2942 DEFAULT_FACE_ID.
2943
2944 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
2945 lookup the initial face-id.
2946
2947 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
2948
2949 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
2950
2951 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
2952 (Fremove_text_properties): Fix typos in docstrings.
2953
2954 2008-05-31 Kenichi Handa <handa@m17n.org>
2955
2956 * font.c (font_list_entities): Fix the car part of data to be
2957 stored in the cache.
2958
2959 * ftfont.c (ftfont_font_format): Don't use strcasestr.
2960
2961 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
2962
2963 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
2964 Add a `test' argument so another predicate than `equal' can be used.
2965 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
2966 (map_char_table): Remove unused vars `c' and `i'.
2967 * lisp.h (Foptimize_char_table): Adjust declaration.
2968 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
2969
2970 2008-05-30 Kenichi Handa <handa@m17n.org>
2971
2972 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
2973 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
2974 defined.
2975
2976 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
2977
2978 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
2979 (Fmake_variable_frame_local): Disallow mixing buffer-local and
2980 frame-local settings for the same variable.
2981
2982 2008-05-30 Kenichi Handa <handa@m17n.org>
2983
2984 * fontset.c (Ffont_info): Move to font.c.
2985 (syms_of_fontset): Delete defsubr of Sfont_info.
2986
2987 * font.c (font_style_to_value, font_score): Delete casting of the
2988 args to xstcasecmp.
2989 (register_font_driver): Increment num_font_drivers only when
2990 registering the driver globally.
2991 (Ffont_info): Move from fontset.c. Handle a font object too.
2992 (syms_of_font): Defsubr Sfont_info.
2993
2994 2008-05-29 Kenichi Handa <handa@m17n.org>
2995
2996 * coding.h (enum define_coding_utf8_arg_index): New enum.
2997 (enum coding_attr_index): Change coding_attr_utf_16_bom to
2998 coding_attr_utf_bom.
2999 (enum utf_bom_type): Rename from utf_16_bom_type.
3000 (struct utf_16_spec): Adjust for the above change.
3001 (struct coding_system): Add utf_8_bom in `spec' union.
3002
3003 * coding.c (CODING_UTF_8_BOM): New macro.
3004 (enum coding_category): Delete coding_category_utf_8, add
3005 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
3006 coding_category_utf_8_sig.
3007 (CATEGORY_MASK_UTF_8): Delete it.
3008 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
3009 (CATEGORY_MASK_UTF_8_SIG): New macros.
3010 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
3011 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
3012 CATEGORY_MASK_UTF_8_SIG.
3013 (CATEGORY_MASK_UTF_8): New macro.
3014 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
3015 (detect_coding_utf_8): Check BOM.
3016 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
3017 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
3018 (encode_coding_utf_16): Likewise.
3019 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
3020 (detect_coding, detect_coding_system): Handle utf-8-auto.
3021 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
3022 (syms_of_coding): Fix setting up of Vcoding_category_table.
3023
3024 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
3025
3026 * process.c (Faccept_process_output): If `millisec' is non-nil,
3027 `seconds' default to 0.
3028 (wait_reading_process_output): Also return non-nil if we read output
3029 from a non-running process.
3030
3031 2008-05-29 Jason Rumney <jasonr@gnu.org>
3032
3033 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
3034 `raster' specified.
3035 (add_font_entity_to_list): Allow non-opentype truetype fonts back
3036 in the uniscribe backend, but disallow any font that has no
3037 unicode subrange support.
3038
3039 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
3040
3041 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
3042 Fix typos in docstrings.
3043
3044 2008-05-29 Kenichi Handa <handa@m17n.org>
3045
3046 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
3047 (Fx_family_fonts): Set frame correctly.
3048
3049 2008-05-28 Jason Rumney <jasonr@gnu.org>
3050
3051 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
3052
3053 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
3054
3055 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
3056 calling build_annotations.
3057
3058 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
3059
3060 * coding.c (Fdecode_coding_region, Fencode_coding_region)
3061 (Fencode_coding_string):
3062 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
3063 <latin-extra-code-table>: Fix typos in docstrings.
3064 (syms_of_coding) <coding-system-alist>: Doc fix.
3065 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
3066
3067 2008-05-28 Kenichi Handa <handa@m17n.org>
3068
3069 * fontset.c (Ffont_info): Don't call font_close_object.
3070
3071 * font.c (font_parse_family_registry): Use Ffont_put to validate
3072 foundry and family.
3073 (font_delete_unmatched): Don't check spacing.
3074 (font_list_entities): Add spacing to the spec to list fonts.
3075
3076 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
3077 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
3078
3079 * coding.c (encode_coding_raw_text): Fix previous change.
3080 (encode_coding_object): When the dst_object is a buffer and is
3081 different from src_object, move gap to PT.
3082
3083 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
3084
3085 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
3086
3087 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
3088
3089 * coding.c (encode_coding_raw_text): Set coding->produced_char for
3090 all branches. Compute it differently.
3091
3092 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
3093
3094 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
3095
3096 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
3097 into "else if () ... else ...".
3098
3099 2008-05-27 Jason Rumney <jasonr@gnu.org>
3100
3101 * w32font.c (w32font_open_internal): Determine if glyph indices
3102 are likely to work here.
3103
3104 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
3105
3106 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
3107 draw overlap glyphs with appropriate highlighting.
3108
3109 2008-05-27 Kenichi Handa <handa@m17n.org>
3110
3111 * xfont.c (xfont_open): Fix calculation of font->average_width.
3112
3113 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
3114
3115 * casefiddle.c (casify_object): Try to guess better whether the
3116 argument is a byte or a char.
3117
3118 2008-05-26 Andreas Schwab <schwab@suse.de>
3119
3120 * xselect.c (x_reply_selection_request): Properly handle format == 32.
3121 Always send multiples of format size.
3122
3123 * xterm.c (x_set_frame_alpha): Fix type mismatch.
3124
3125 2008-05-26 Jason Rumney <jasonr@gnu.org>
3126
3127 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
3128 (compute_metrics): Don't set failure if we just cleared the cache.
3129 (w32_weight_table): Remove unused variable.
3130 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
3131 backwards compatibility.
3132
3133 2008-05-25 Kenichi Handa <handa@m17n.org>
3134
3135 * w32term.c (x_draw_glyph_string):
3136 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
3137
3138 * xfaces.c: Delete unused function prototypes.
3139 (xstrlwr, font_frame): Delete them.
3140 (clear_face_cache): Delete unused variable.
3141
3142 * xftfont.c (xftfont_open): Delete unused variable.
3143 If underline_thickness is not 1, adjust underline_position.
3144
3145 * ftxfont.c (ftxfont_open): Delete unused variable.
3146
3147 * fontset.c (face_for_char): Optimize for the case of no charset
3148 property.
3149
3150 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
3151 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
3152 (otf_open, font_otf_capability, generate_otf_features)
3153 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
3154 Comment out by surrounding "#if 0" and "#endif" for the moment.
3155 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
3156 (syms_of_font): Codes for accessing above commented out.
3157
3158 2008-05-24 Eli Zaretskii <eliz@gnu.org>
3159
3160 * w32proc.c: Include dispextern.h.
3161
3162 * w32.c: Include dispextern.h.
3163
3164 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
3165
3166 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
3167 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
3168 Fix typos in docstrings.
3169
3170 2008-05-23 Jason Rumney <jasonr@gnu.org>
3171
3172 * xsmfns.c: Remove includes that are already included by config.h.
3173
3174 2008-05-23 Kenichi Handa <handa@m17n.org>
3175
3176 * charset.c (Qemacs, charset_emacs): New variables.
3177 (char_charset): Fix for non-Unicode characters.
3178 (syms_of_charset): Define charset_emacs.
3179
3180 * w32term.c (x_draw_glyph_string): Be sure to update
3181 s->underline_thickness and s->underline_position. Be sure to draw
3182 underline within the current line area.
3183
3184 * xterm.c (x_draw_glyph_string): Be sure to update
3185 s->underline_thickness and s->underline_position. Be sure to draw
3186 underline within the current line area.
3187
3188 * fontset.c: Delete unused variables and add casting for char *
3189 throughout the file.
3190 (fontset_font): Try the fallback fonts of the current fontset
3191 before consulting the default fontset.
3192
3193 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
3194
3195 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
3196
3197 2008-05-22 Jason Rumney <jasonr@gnu.org>
3198
3199 * font.c: Don't include strings.h.
3200
3201 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
3202
3203 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
3204 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
3205 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
3206 to call xstrcasecmp.
3207
3208 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
3209
3210 * fontset.c (fs_query_fontset): Use xstrcasecmp.
3211
3212 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
3213
3214 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
3215
3216 2008-05-22 Kenichi Handa <handa@m17n.org>
3217
3218 * puresize.h (BASE_PURESIZE): Increase to 1220000.
3219
3220 * font.c (font_prop_validate_style): Adjust for the format
3221 change of font_style_table.
3222
3223 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
3224 two args.
3225
3226 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
3227 two args.
3228
3229 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
3230
3231 * minibuf.c (keys_of_minibuf): Delete.
3232 * lisp.h (keys_of_minibuf): Delete.
3233 * emacs.c (main): Don't call keys_of_minibuf.
3234
3235 2008-05-22 Kenichi Handa <handa@m17n.org>
3236
3237 * ftfont.c (ftfont_resolve_generic_family): Rename from
3238 ftfont_list_generic_family. Return a single family for each
3239 generic family.
3240 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
3241 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
3242 Call font_add_log.
3243 (ftfont_match): Call font_add_log.
3244
3245 * font.h (Ffont_xlfd_name): EXFUN adjusted.
3246 (FONT_DEBUG): Define it.
3247 (font_add_log): Extern it.
3248 (font_assert): Rename from xassert.
3249
3250 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
3251 (xfont_list_family): Call font_add_log.
3252 (xfont_match): Likewise.
3253 (memq_no_quit): Delete.
3254
3255 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
3256 call of Ffont_xlfd_name.
3257
3258 * xfaces.c (struct table_entry, slant_table, weight_table)
3259 (swidth_table): Move to font.c.
3260
3261 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
3262 xassert are changed to font_assert. Delete many unused variables.
3263 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
3264 New variables.
3265 (struct table_entry): Move from xfaces.c and modified.
3266 (weight_table, slant_table, width_table): Move from xfaces.c and
3267 contents adjusted for the change of struct table_entry.
3268 (font_style_to_value, font_style_symbolic): Adjust for the
3269 format change of font_style_table.
3270 (font_parse_family_registry): Don't overwrite existing foundry and
3271 family of font_spec.
3272 (font_score): Fix calculation of diff for sizes.
3273 (font_sort_entites): Call font_add_log.
3274 (font_delete_unmatched): Return a newly created list.
3275 (font_list_entities): Fix previous change. Call font_add_log.
3276 (font_matching_entity, font_open_entity, font_close_entity):
3277 Call font_add_log.
3278 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
3279 (Finternal_set_font_style_table): Delete.
3280 (BUILD_STYLE_TABLE): New macro.
3281 (build_style_table): New function.
3282 (Vfont_log, font_log_env_checked): New variables.
3283 (font_add_log): New function.
3284 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
3285 Declare Lisp variables "font-weight-table", "font-slant-table",
3286 "font-width-table", and "font-log". Initialize font_style_table.
3287
3288 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
3289
3290 * xterm.c (x_set_frame_alpha): Move declarations before statements.
3291
3292 2008-05-21 Seiji Zenitani <zenitani@mac.com>
3293 Ryo Yoshitake <ryo@shiftmode.net>
3294
3295 * frame.c (Qalpha): Add a new frame parameter `alpha'.
3296 (Vframe_alpha_lower_limit): New variable.
3297 (x_set_alpha): New function.
3298
3299 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
3300
3301 * xfns.c (x-create-frame, Qalpha):
3302 Initialize the frame parameter `alpha'.
3303 * xterm.c (OPAQUE, OPACITY): New.
3304 (x_set_frame_alpha): New function.
3305 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
3306
3307 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
3308 * w32fns.c (w32_frame_parm_handlers): Likewise.
3309
3310 2008-05-20 Jason Rumney <jasonr@gnu.org>
3311
3312 * w32font.c (add_font_entity_to_list): Don't add non-opentype
3313 truetype fonts to opentype list.
3314
3315 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
3316
3317 * fontset.c (Ffontset_info): Doc fix.
3318 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
3319 <ignore-relative-composition>: Fix typos in docstrings.
3320
3321 * font.c (syms-of-font) <font-encoding-alist>:
3322 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
3323 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
3324 (Ffont_otf_alternates): Doc fixes.
3325
3326 2008-05-20 Kenichi Handa <handa@m17n.org>
3327
3328 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
3329 font.h through out the file.
3330 (FONT_DRIVERS): Rename from FONTOBJ.
3331 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
3332 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
3333
3334 * emacs.c (main): Call syms_of_font unconditionally.
3335
3336 * font.h (find_font_encoding): Extern it.
3337
3338 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
3339 fontset.c.
3340 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
3341 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
3342 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
3343 only when HAVE_WINDOW_SYSTEM is defined.
3344 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
3345 when HAVE_WINDOW_SYSTEM is defined.
3346
3347 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
3348 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
3349
3350 * xfaces.c: Include font.h unconditionally.
3351 (merge_face_ref, merge_face_vectors)
3352 (Finternal_set_lisp_face_attribute): Cancel the previous change.
3353
3354 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
3355
3356 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
3357 indirect_variable.
3358 * eval.c (lisp_indirect_variable): New fun.
3359 (Fuser_variable_p): Use it.
3360
3361 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
3362
3363 * lisp.h (indirect_variable):
3364 * data.c (indirect_variable, let_shadows_buffer_binding_p):
3365 Use Lisp_Symbol pointers rather than Lisp_Object.
3366 Adjust callers.
3367 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
3368 To this end, change calling-convention.
3369
3370 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
3371 if some non-hidden buffers are selected by string&pred.
3372
3373 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
3374
3375 * process.c (wait_reading_process_output): Always check status
3376 when in batch mode.
3377
3378 2008-05-19 Kenichi Handa <handa@m17n.org>
3379
3380 * font.c (font_list_entities): Fix handling of cache.
3381 (font_matching_entity): Likewise.
3382
3383 * ftfont.c (cs_iso8859_1): Delete.
3384 (ft_face_cache): New variable.
3385 (struct ftfont_info): New member fc_charset_idx.
3386 (ftfont_build_basic_charsets): Delete.
3387 (fc_charset_table): New variable.
3388 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
3389 . FC_CHARSET_IDX) as :font-entity property in the font entity.
3390 Callers changed.
3391 (ftfont_lookup_cache, ftfont_get_charset): New functions.
3392 (ftfont_spec_pattern): New argument fc_charset_idx.
3393 Check registry more rigidly. Change callers.
3394 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
3395 change of :font-entity property of the font.
3396
3397 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
3398 property of the font.
3399
3400 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
3401
3402 * coding.c (Fcoding_system_p): Rename argument to match docstring.
3403 (Funencodable_char_position, Fcheck_coding_systems_region)
3404 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
3405 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
3406 (Ffind_operation_coding_system, Fset_coding_system_priority)
3407 (Fcoding_system_eol_type): Doc fixes.
3408
3409 2008-05-17 Glenn Morris <rgm@gnu.org>
3410
3411 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
3412
3413 2008-05-16 Eli Zaretskii <eliz@gnu.org>
3414
3415 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
3416 and st_gid.
3417
3418 * frame.c (Fdelete_frame): Don't call font_update_drivers if
3419 HAVE_WINDOW_SYSTEM is not defined.
3420
3421 * xfaces.c (merge_face_ref, merge_face_vectors)
3422 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
3423 HAVE_WINDOW_SYSTEM is defined.
3424 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
3425
3426 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
3427
3428 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
3429
3430 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3431
3432 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
3433
3434 2008-05-15 Kenichi Handa <handa@m17n.org>
3435
3436 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
3437 preference.
3438
3439 2008-05-15 Glenn Morris <rgm@gnu.org>
3440
3441 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
3442
3443 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
3444
3445 * fns.c (init_fns): Don't initialize weak_hash_tables here.
3446 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
3447
3448 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
3449
3450 2008-05-15 Kenichi Handa <handa@m17n.org>
3451
3452 * ftfont.c (ftfont_list): Downcase family name to check generic
3453 families.
3454
3455 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
3456 font-spec for QCfont value.
3457
3458 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
3459 buffer. Check the return value of it.
3460
3461 2008-05-14 Jason Rumney <jasonr@gnu.org>
3462
3463 * w32term.c (w32_get_glyph_overhangs): Remove.
3464 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
3465
3466 2008-05-14 Kenichi Handa <handa@m17n.org>
3467
3468 * font.c (font_prop_validate): Make nil a valid value.
3469 (font_clear_cache): Check if the cached vector of entities is nil
3470 or not.
3471
3472 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3473
3474 * emacs.c (main_thread): Conditionalize on
3475 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
3476 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
3477
3478 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
3479 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
3480 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
3481
3482 2008-05-14 Kenichi Handa <handa@m17n.org>
3483
3484 * coding.c (detect_coding_iso_2022): Ignore a coding category that
3485 has no corresponding coding system.
3486
3487 2008-05-14 Jason Rumney <jasonr@gnu.org>
3488
3489 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
3490
3491 * w32font.h (w32font_open_internal): Update declaration.
3492
3493 * w32font.c (w32font_open_internal): Change last argument from
3494 w32font_info struct to font object. Fill in font object from
3495 font_entity. Get Outline metrics if possible. Use them to
3496 calculate underline position and thickness. Use xlfd name as name
3497 property. Don't set codepage.
3498 (w32font_open): Pass font_object to w32font_open_internal. Don't
3499 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
3500 (w32font_draw): Use s->font.
3501 (clear_cached_metrics): Don't clear non-existent blocks.
3502
3503 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
3504 font was not found.
3505 (x_draw_glyph_string): Use underline position and thickness from font.
3506
3507 * w32uniscribe.c (uniscribe_open): Pass font_object to
3508 w32font_open_internal.
3509
3510 2008-05-14 Kenichi Handa <handa@m17n.org>
3511
3512 These changes are to delete all legacy font-handling codes, and
3513 make Emacs use only font-backends.
3514
3515 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
3516 (frame.o, image.o, print.o): Depend on $(FONTSRC).
3517
3518 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
3519
3520 * charset.h (Vcharset_non_preferred_head)
3521 (Vcurrent_iso639_language): Extern them.
3522
3523 * charset.c (Vcharset_non_preferred_head): New variable.
3524 (Vcurrent_iso639_language): New variable.
3525 (syms_of_charset): Declare it as a Lisp variable.
3526 (char_charset): Don't check non preferred charsets. As a last
3527 resort, return charset_unicode.
3528 (Fset_charset_priority): Update Vcharset_non_preferred_head.
3529
3530 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
3531 conditionals. Don't check enable_font_backend. Delete all codes
3532 used only when USE_FONT_BACKEND is not defined.
3533
3534 * dispextern.h (struct glyph_string): Change type of `font' to
3535 `struct font *'.
3536 (struct glyph_string): New member underline_position and
3537 underline_thickness.
3538 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
3539 (struct face): Change type of `font' to `struct font *'. Remove
3540 members `font_name', `font_info_id'.
3541 (per_char_metric, encode_char): Delete externs.
3542 (calc_pixel_width_or_height): Adjust the prototype.
3543
3544 * emacs.c (enable_font_backend): Delete extern.
3545 (main): Don't set enable_font_backend. Don't check the command
3546 line argument "-disable-font-backend".
3547
3548 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
3549 (enum font_property_index): New members FONT_DPI_INDEX,
3550 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
3551 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
3552 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
3553 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
3554 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
3555 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
3556 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
3557 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
3558 (struct font_spec, struct font_entity): New structs.
3559 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
3560 (struct font): Many members from old "struct font_info" moved to
3561 here. Members font and entity deleted.
3562 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
3563 the new font-related objects.
3564 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
3565 (CHECK_FONT_GET_OBJECT): Likewise.
3566 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
3567 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
3568 (struct font_driver): New members case_sensitive anc check. Type
3569 of the member list and open changed.
3570 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
3571 (font_symbolic_width, font_find_object, font_get_spec)
3572 (font_set_lface_from_name): Delete extern.
3573 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
3574
3575 * font.c: Include <strings.h>.
3576 (enable_font_backend): Delete it.
3577 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
3578 (CHECK_VALIDATE_FONT_SPEC): Delete it.
3579 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
3580 (null_string): Delete it.
3581 (null_vector): Make it static.
3582 (font_family_alist): Delete it.
3583 (Qnormal): Extern it.
3584 (QCextra, QClanguage): Delete it.
3585 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
3586 (font_make_spec, font_make_entity, font_make_object)
3587 (font_intern_prop): Renamed from intern_downcase. Don't downcase
3588 the string. Callers changed.
3589 (font_pixel_size): Adjusted for the format change of font-related
3590 objects.
3591 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
3592 (font_style_to_value, font_style_symbolic): New function.
3593 (build_font_family_alist): Delete it.
3594 (font_registry_charsets): Use Fassoc_string instead of
3595 assq_no_quit.
3596 (font_prop_validate_symbol): Don't return null_string.
3597 (font_prop_validate_style): Adjusted for the change of
3598 style-related values in a font vector.
3599 (font_property_table): Delete entries for QClanguage and
3600 QCantialias, add entries for QCavgwidth.
3601 (get_font_prop_index): Delete the 2nd argument FROM.
3602 (font_prop_validate): Arguments changed.
3603 (font_put_extra): Adjusted for the change of font-related objects.
3604 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
3605 (font_parse_fcname, font_unparse_fcname)
3606 (font_prepare_composition): Likewise.
3607 (font_parse_family_registry): Renamed from font_merge_old_spec.
3608 (otf_open): Delete the 1st arg entity.
3609 (font_otf_capability): Adjusted for the above change.
3610 (font_score): New arg alternate_families. Adjusted for the change
3611 of font-related objects.
3612 (font_sort_entites): New arg best_only.
3613 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
3614 Delete them.
3615 (font_match_p): Check alternate families.
3616 (font_find_object): Delete it.
3617 (font_check_object): New function.
3618 (font_clear_cache): Adjusted for the change of font-related objects.
3619 (font_delete_unmatched): New arg.
3620 (font_list_entities): Call font_driver->list with a spec that
3621 doesn't specify style-related properties.
3622 (font_matching_entity): Arguments changed. Caller changed.
3623 (font_open_entity): Adjusted for the change of font-related objects.
3624 (font_close_object, font_has_char, font_encode_char)
3625 (font_get_name, font_get_spec): Likewise.
3626 (font_spec_from_name, font_clear_prop, font_update_lface):
3627 New functions.
3628 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
3629 (font_prepare_for_face, font_done_for_face, font_open_by_name)
3630 (font_at): Adjusted for the change of font-related objects.
3631 (font_range): New function.
3632 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
3633 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
3634 (Fcopy_font_spec, Fmerge_font_spec): New function.
3635 (Ffont_family_list): Renamed from list-families.
3636 (Finternal_set_font_style_table): Arguments changed.
3637 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
3638 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
3639 change of font-related objects.
3640 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
3641
3642 * fontset.h (struct font_info): Delete it. Most members go to
3643 struct font.
3644 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
3645 (enum FONT_SPEC_INDEX): Delete it.
3646 (font_info, list_fonts_func, load_font_func, query_font_func)
3647 (set_frame_fontset_func, find_ccl_program_func)
3648 (get_font_repertory_func, new_fontset_from_font_name): Delete
3649 externs.
3650 (fontset_from_font_name): Extern it.
3651 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
3652 (FONT_INFO_FROM_FACE): Deleted.
3653 (face_for_font): Adjust prototype.
3654
3655 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
3656 conditionals. Don't check enable_font_backend. Delete all codes
3657 used only when USE_FONT_BACKEND is not defined.
3658 (get_font_info_func, list_font_func, load_font_func)
3659 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
3660 (get_font_repertory_func): Delete them.
3661 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
3662 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
3663 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
3664 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
3665 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
3666 (fontset_compare_rfontdef): New function.
3667 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
3668 ront-defs by qsort. Adjusted for the change of font-group vector.
3669 (load_font_get_repertory): Deleted.
3670 (fontset_find_font): Use new macros to ref/set elements of
3671 font-def and rfont-def.
3672 (fontset_font): Fix the timing of remembering that no font for C.
3673 (free_face_fontset): Do nothing if the face has no fontset.
3674 (face_suitable_for_char_p): Use new macros to ref/set elements of
3675 rfont-def.
3676 (face_for_char): Likewise. Call face_for_char with font_object.
3677 (fs_load_font): Delete. Delete #pragma surrounding it.
3678 (fs_query_fontset): Use strcasecmp instead of strcmp.
3679 (generate_ascii_font_name): Adjusted for the format change of
3680 font-spec.
3681 (Fset_fontset_font): Likewise. Use new macros to set elements of
3682 font-def.
3683 (Fnew_fontset): Use font_unparse_xlfd to generate
3684 FONTSET_ASCII (fontset).
3685 (new_fontset_from_font_name): Deleted.
3686 (fontset_from_font): Renamed from new_fontset_from_font. Check if
3687 a fontset is already created for the font. FIx updating of
3688 Vfontset_alias_alist.
3689 (fontset_ascii_font): Deleted.
3690 (Ffont_info): Adjusted for the format change of font-spec.
3691 (Finternal_char_font): Likewise.
3692 (Ffontset_info): Likewise.
3693 (syms_of_fontset): Don't check load_font_func.
3694
3695 * fns.c (internal_equal): Handle PREV_FONT.
3696
3697 * frame.h: Delete USE_FONT_BACKEND conditional.
3698
3699 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
3700 conditionals. Don't check enable_font_backend. Delete all codes
3701 used only when USE_FONT_BACKEND is not defined.
3702 (x_set_font): Call x_new_font, not x_new_fontset2.
3703 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
3704 already set for the frame.
3705
3706 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
3707 a font-entity by font_make_entity. Use font_intern_prop instead
3708 of intern_downcase. Use FONT_SET_STYLE to set a style-related
3709 font property. If a font is scalable, set avgwidth property to 0.
3710 Set font-entity property by font_put_extra.
3711 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
3712 (ffont_driver): Adjusted for the change of struct font_driver.
3713 (ftfont_spec_pattern): New function.
3714 (ftfont_list): Return a list, not vector.
3715 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
3716 (ftfont_list_family): Don't downcase names.
3717 (ftfont_free_entity): Deleted.
3718 (ftfont_open): Return a font-ojbect. Adjusted for the change of
3719 struct font. Get underline_thickness and underline_position from
3720 font property. Don't update dpyinfo->smallest_font_height and
3721 dpyinfo->smallest_char_width.
3722 (ftfont_close): Don't free `struct font'.
3723 (ftfont_has_char): Adjusted for the format change of font-entity.
3724 (ftfont_encode_char, ftfont_text_extents): Likewise.
3725
3726 * ftxfont.c (ftxfont_list): Return a list, not vector.
3727 (ftxfont_open): Return a font-ojbect. Adjusted for the change of
3728 struct font. Get underline_thickness and underline_position from
3729 font property. Don't update dpyinfo->smallest_font_height and
3730 dpyinfo->smallest_char_width.
3731 (ftxfont_close): Don't decrese FRAME_X_DISPLAY_INFO (f)->n_fonts.
3732 (ftxfont_draw): Adjusted for the change of struct font.
3733
3734 * image.c (image_ascent): Don't include "charset.h". Include
3735 "character.h" and "font.h".
3736
3737 * lisp.h (enum pvec_type): New member PREV_FONT.
3738 (Fassoc_string): EXFUN it.
3739
3740 * print.c: Include font.h.
3741 (print_object): Handle font-related objects.
3742
3743 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
3744 conditionals. Don't check enable_font_backend. Delete all codes
3745 used only when USE_FONT_BACKEND is not defined.
3746 (handle_auto_composed_prop): Do nothing if it->f is not on a
3747 window system. Check how many following characters can be
3748 displayed by the same font.
3749 (calc_pixel_width_or_height): Type of the 4th arg is changed to
3750 'struct font *'.
3751 (get_char_face_and_encoding): Assign the whole encoding task to
3752 the `encode-char' method of a font driver.
3753 (fill_composite_glyph_string): Adjusted for the change of `struct
3754 face' and `struct glyph_string'.
3755 (fill_glyph_string): Likewise.
3756 (get_per_char_metric): Arguments changed.
3757 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
3758 and `struct glyph_string'.
3759 (produce_stretch_glyph, calc_line_height_property)
3760 (x_produce_glyphs): Likewise.
3761
3762 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
3763 conditionals. Don't check enable_font_backend. Delete all codes
3764 used only when USE_FONT_BACKEND is not defined. Use
3765 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
3766 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
3767 (Qp): Extern them.
3768 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
3769 Deleted.
3770 (struct font_name): Deleted.
3771 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
3772 (compare_fonts_by_sort_order): New function.
3773 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
3774 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
3775 Deleted.
3776 (Fx_family_fonts): Use font_list_entities, and sort fonts by
3777 compare_fonts_by_sort_order.
3778 (Fx_font_family_list): Call Ffont_family_list.
3779 (face_numeric_value, face_numeric_weight, face_numeric_slant)
3780 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
3781 (face_symbolic_slant, face_symbolic_swidth)
3782 (split_font_name_into_vector, build_font_name_from_vector)
3783 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
3784 (font_rescale_ratio, split_font_name, build_font_name)
3785 (free_font_names, sort_fonts, x_face_list_fonts)
3786 (face_font_available_p, sorted_font_list, cmp_font_names)
3787 (font_list_1, concat_font_list, font_list, remove_duplicates):
3788 Deleted.
3789 (Fx_list_fonts): Use Ffont_list.
3790 (LFACE_AVGWIDTH): Deleted.
3791 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
3792 by FONTP.
3793 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
3794 (set_lface_from_font_name): Delete it.
3795 (set_lface_from_font): Renamed from
3796 set_lface_from_font_and_fontset. Caller changed. Don't set
3797 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
3798 for face.
3799 (merge_face_vectors): Copy font-spec if necessary.
3800 Clear properties of the font-spec if necessary.
3801 (merge_face_ref): Clear properties of the font-spec if necessary.
3802 (Finternal_set_lisp_face_attribute): Likewise.
3803 (set_font_frame_param): Use font_load_for_lface to load a
3804 font-object, and call Fmodify_frame_parameters with it.
3805 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
3806 font name by Ffont_xlfd_name.
3807 (Finternal_lisp_face_attribute_values): Don't check QCweight,
3808 QCslant, and QCwidth.
3809 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
3810 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
3811 Compare fonts by EQ.
3812 (lookup_non_ascii_face): Deleted.
3813 (face_for_font): The 2nd argument changed.
3814 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
3815 Check atomic font properties by case insensitive.
3816 (realize_non_ascii_face): Set face->overstrike correctly.
3817 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
3818 (dump_realized_face): Get font name from
3819 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
3820
3821 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
3822 conditionals. Don't check enable_font_backend. Delete all codes
3823 used only when USE_FONT_BACKEND is not defined.
3824 (xic_create_xfontset): Original code deleted and renamed from
3825 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
3826 (x_make_gc): Don't set GCFont in GCs.
3827 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
3828 opened by "fixed".
3829 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
3830 find_ccl_program_func, query_font_func, set_frame_fontset_func,
3831 get_font_repertory_func.
3832
3833 * xfont.c: Include <stdlib.h> and "ccl.h".
3834 (struct xfont_info): New structure.
3835 (xfont_query_font): Deleted.
3836 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
3837 moved from xterm.c.
3838 (xfont_driver): Adjusted for the change of struct font_driver.
3839 (compare_font_names): New function.
3840 (xfont_list_pattern): Sort font names case insensitively. Make
3841 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
3842 (xfont_list): Return a list, not vector.
3843 (xfont_match): If the font doesn't have QCname property, generate
3844 a name from the other font properties.
3845 (xfont_open): Return a font-ojbect. Adjusted for the change of
3846 struct font. Get underline_thickness and underline_position from
3847 font property. Don't update dpyinfo->smallest_font_height and
3848 dpyinfo->smallest_char_width.
3849 (xfont_close): Don't free struct font.
3850 (xfont_prepare_face): Adjusted for the change of struct font.
3851 (xfont_done_face): Deleted.
3852 (xfont_has_char): Adjusted for the change of struct font.
3853 (xfont_encode_char, xfont_draw): Likewise.
3854 (xfont_check): New function.
3855
3856 * xftfont.c (xftfont_list): Adjusted for the change of `list'
3857 callback function.
3858 (xftfont_match): Adjusted for the fontmat change of font-entity.
3859 (xftfont_open): Adjusted for the format change of font-entity and
3860 font-object. Adjusted for the change of struct font. Return a
3861 font-object. Don't update dpyinfo->smallest_font_height and
3862 dpyinfo->smallest_char_width.
3863 (xftfont_close): Block input while calling XftFontClose.
3864 (xftfont_prepare_face): Don't block input while calling
3865 xftfont_get_colors. Adjusted for the change of struct font.
3866 (xftfont_shape): Return value of error case fixed.
3867
3868 * xrdb.c (x_load_resources): Don't setup a fontset resource.
3869
3870 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
3871 conditionals.
3872 (FONT_WIDTH): Return (f)->max_width.
3873 (struct x_display_info): Delete member `font'.
3874 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
3875 (x_find_ccl_program, x_get_font_repertory): Delete externs.
3876 (struct x_output): Change type of `font' to `struct font *'.
3877
3878 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
3879 conditionals. Don't check enable_font_backend. Delete all codes
3880 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
3881 (x_per_char_metric, x_encode_char): Deleted.
3882 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
3883 (x_compute_glyph_string_overhangs): Adjusted for the change of
3884 `struct face'.
3885 (x_draw_glyph_string_foreground)
3886 (x_draw_composite_glyph_string_foreground): Likewise.
3887 (x_draw_glyph_string): Likewise. Use font->underline_position and
3888 font->underline_thickness.
3889 (x_new_font): Renamed from x_new_fontset2.
3890 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
3891 (x_check_font): Call `check' method of a font driver.
3892 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
3893 (x_query_font, x_get_font_repertory): Deleted.
3894 (x_find_ccl_program): Renamed and moved to xfont.c.
3895 (x_redisplay_interface): Adjusted for the change of `struct
3896 redisplay_interface'.
3897
3898 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
3899 conditionals. Don't check enable_font_backend. Delete all codes
3900 used only when USE_FONT_BACKEND is not defined. Surround non-used
3901 code by "#ifdef OLD_FONT" and "endif".
3902 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
3903
3904 * w32font.h (struct w32font_info): New member.
3905 (FONT_COMPAT): New macro.
3906 (w32font_open_internal): Prototype adjusted.
3907
3908 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
3909 OLD_FONT" and "endif".
3910
3911 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
3912 conditionals. Don't check enable_font_backend. Delete all codes
3913 used only when USE_FONT_BACKEND is not defined.
3914 (w32font_open): Return a font-object. Make a font-object by
3915 font_make_object. Adjusted for the change of struct w32font_info.
3916 (w32font_close): Don't free struct font. Adjusted for the change
3917 of struct w32font_info.
3918 (w32font_encode_char, w32font_text_extents, w32font_draw):
3919 Adjusted for the change of struct w32font_info.
3920 (w32font_draw): Likewise.
3921 (w32font_list_internal): Return a list, not vector.
3922 (w32font_open_internal): Change the 4th arg to font-object.
3923 Adjusted for the change of struct w32font_info and font-object format.
3924 (add_font_name_to_list): Don't downcase names.
3925 (w32_enumfont_pattern_entity): Make a font-entity by
3926 font_make_entity. Adjusted for the format change of font-entity.
3927 Use FONT_SET_STYLE to set a style-related font property. If a
3928 font is scalable, set avgwidth property to 0. Set font-entity
3929 property by font_put_extra.
3930 (font_matches_spec): Adjusted for the format change of font-entity.
3931 (w32_weight_table, w32_decode_weight): New variables.
3932 (w32_encode_weight): New function.
3933 (fill_in_logfont): Adjusted for the format change of font-spec.
3934 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
3935 weight value.
3936 (w32font_driver): Adjusted for the change of struct font_driver.
3937
3938 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
3939 conditionals. Don't check enable_font_backend. Surround non-used
3940 code by "#ifdef OLD_FONT" and "endif".
3941 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
3942 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
3943
3944 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
3945 conditionals. Don't check enable_font_backend. Delete all codes
3946 used only when USE_FONT_BACKEND is not defined. Surround non-used
3947 code by "#ifdef OLD_FONT" and "endif".
3948
3949 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
3950 (uniscribe_open): Return value changed to font-object.
3951 Adjusted for the format change of font-object.
3952 (uniscribe_otf_capability): Adjusted for the change of struct font.
3953 (add_opentype_font_name_to_list): Don't downcase names.
3954 (uniscribe_font_driver): Adjusted for the change of struct
3955 font_driver.
3956
3957 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
3958
3959 * dispnew.c (update_frame_1): Check if tty output is still valid
3960 before flushing it.
3961
3962 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
3963
3964 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
3965 to Gtk+ menus.
3966
3967 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
3968
3969 * dired.c (file_name_completion): Tweak the code so as to always do it
3970 in a single pass. Tighten the scope of some variables.
3971
3972 * dired.c (Qdefault_directory): New var.
3973 (file_name_completion): Use it instead of Fexpand_file_name.
3974 (syms_of_dired): Initialize it.
3975
3976 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
3977
3978 * fileio.c (double_dollars): Remove dead code.
3979
3980 2008-05-10 Eli Zaretskii <eliz@gnu.org>
3981
3982 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
3983 Mention w32-get-true-file-attributes in doc string.
3984
3985 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
3986
3987 2008-05-09 Glenn Morris <rgm@gnu.org>
3988
3989 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
3990 2008-04-23.
3991
3992 2008-05-09 Eli Zaretskii <eliz@gnu.org>
3993
3994 Support for reporting owner and group of each file on MS-Windows:
3995 * dired.c (stat_uname, stat_gname): New functions, with special
3996 implementation for w32.
3997 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
3998
3999 * w32.c: Rename the_passwd_* to dflt_passwd_*.
4000 (dflt_group_name): New static variable.
4001 (dflt_group): Rename from the_group.
4002 (init_user_info): Init dflt_group fields. Get user's group name
4003 from LookupAccountSid.
4004 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
4005 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
4006 New initialization states.
4007 (globals_of_w32): Initialize them to zero. Initialize the default
4008 group name to "None".
4009 (GetFileSecurity_Name): New global var, the name of the function
4010 to call for GetFileSecurity.
4011 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
4012 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
4013 (get_file_security, get_security_descriptor_owner)
4014 (get_security_descriptor_group, is_valid_sid)
4015 (get_file_security_desc, get_rid, get_name_and_id)
4016 (get_file_owner_and_group): New functions.
4017 (stat): Use get_file_security_desc and get_file_owner_and_group to
4018 report the owner and primary group of each file. Don't ignore the
4019 high 32 bits of file's size, now that st_size is 64-bit wide.
4020 Fix test when to get true file attributes.
4021 (init_user_info): Use get_rid instead of equivalent inline code.
4022 (fstat): Don't ignore the high 32 bits of file's size.
4023
4024 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
4025
4026 * image.c (png_load): Use correct bit-depth for setting background
4027 color.
4028
4029 2008-05-08 Eli Zaretskii <eliz@gnu.org>
4030
4031 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
4032 epa-hook.elc.
4033
4034 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
4035
4036 * font.c (Ffont_match_p): Don't use `iff' in docstring.
4037
4038 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
4039
4040 * macfns.c (Fx_create_frame): Make a copy of frame parameters
4041 because the original parameters are in pure storage now.
4042 (mac_window): Remove unused params. Update callers.
4043
4044 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4045
4046 * lread.c (substitute_object_recurse): Use lower-level primitives.
4047 Don't signal errors when traversing sub-char-tables.
4048 Don't loop over all the possible characters when traversing char-tables.
4049
4050 * print.c (print_preprocess): Add sub-char-tables to the print-table,
4051 just like we do in print.c.
4052
4053 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
4054
4055 * minibuf.c (Ftry_completion): Remove code left over from when we used
4056 scmp instead of Fcompare_strings.
4057
4058 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
4059
4060 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
4061
4062 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4063
4064 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
4065 Create bitmap context in native byte order.
4066
4067 * macterm.c (XDrawLine)
4068 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
4069 context in native byte order.
4070
4071 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4072
4073 * config.in: Regenerate.
4074
4075 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
4076 New definitions for Image I/O support.
4077 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
4078 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
4079 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
4080 (mac_data_provider_release_data, image_load_image_io)
4081 [USE_MAC_IMAGE_IO]: New functions.
4082 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
4083 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
4084 (init_image_func_pointer) [MAC_OSX]: Remove function.
4085 (image_load_quartz2d) [MAC_OSX]: Check availability of
4086 CGImageCreateWithPNGDataProvider at compile time.
4087 Use lowercase `false' for boolean constant.
4088 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
4089 Use image_load_image_io.
4090 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
4091 Don't check MyCGImageCreateWithPNGDataProvider.
4092 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
4093 Don't call init_image_func_pointer.
4094
4095 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
4096
4097 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
4098 Make variable non-static.
4099 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
4100 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
4101
4102 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
4103 (RED_FROM_ULONG): Mask off higher bits.
4104 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
4105
4106 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
4107 Include AvailabilityMacros.h.
4108 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
4109 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
4110
4111 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
4112
4113 * chartab.c (Fset_char_table_range): If range is t, really set all
4114 chars to that value.
4115
4116 2008-05-03 Eli Zaretskii <eliz@gnu.org>
4117
4118 * dired.c (Ffile_attributes): Don't allow the device number become
4119 negative.
4120
4121 2008-05-02 Daiki Ueno <ueno@unixuser.org>
4122
4123 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
4124
4125 2008-05-02 Juri Linkov <juri@jurta.org>
4126
4127 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
4128 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
4129 DEFAULT argument as a list of default values in docstrings.
4130
4131 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
4132
4133 * puresize.h (BASE_PURESIZE): Increase to 1210000.
4134
4135 2008-05-01 Martin Rudalics <rudalics@gmx.at>
4136
4137 * dispnew.c (change_frame_size_1): Preserve small windows when
4138 shrinking frames by calling set_window_height|width with third
4139 arg 2.
4140
4141 * window.h (struct window): Replace field too_small_ok by field
4142 resize_proportionally.
4143
4144 * window.c (make_window): Initialize resize_proportionally.
4145 (enlarge_window): Temporarily set resize_proportionally to make
4146 sure that shrink_windows does scale the window proportionally.
4147 (shrink_windows): When window has resize_proportionally set try
4148 to shrink it proportionally by stealing from other windows.
4149 (struct saved_window, Fset_window_configuration)
4150 (compare_window_configurations): Handle resize_proportionally.
4151 (WINDOW_TOTAL_SIZE): New macro.
4152 (window_min_size, shrink_windows, size_window): Use it.
4153 (check_min_window_sizes): Remove. Invalid values of
4154 window-min-height|width are handled by window_min_size_2 now.
4155 (size_window, Fsplit_window, enlarge_window)
4156 (adjust_window_trailing_edge, grow_mini_window): Don't call
4157 check_min_window_sizes.
4158 (window_min_size_2, window_min_size_1, window_min_size):
4159 New argument safe_p for retrieving "safe" minimum sizes.
4160 (Fdisplay_buffer, Fsplit_window, enlarge_window)
4161 (adjust_window_trailing_edge, grow_mini_window):
4162 Adjust arguments of window_min_size... functions.
4163 (shrink_windows): Argument min_size removed. New argument
4164 safe_p allows shrinking windows to their safe minimum sizes.
4165 Calculate minimum size and decide whether a window shall be
4166 deleted for each window individually.
4167 (size_window): When nodelete_p equals 2, tell shrink_windows to
4168 delete windows only if their new minimum size is no more safe.
4169 (shrink_window_lowest_first): Call window_min_size_1 to make
4170 sure to preserve modeline of bottom-most window when resizing
4171 the minibuffer.
4172 (Fset_window_configuration, Fcurrent_window_configuration)
4173 (compare_window_configurations): Do not handle
4174 window-min-height|width any more.
4175 (syms_of_window): Clarify window-min-height|width doc-strings.
4176
4177 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
4178
4179 * dired.c (file_name_completion): Fix up the encoding/decoding issue
4180 some more. Copy some of the code from Ftry_completions.
4181 Remove special case code that dates back to initial revision when the
4182 slash was only added when necessary and that can't trigger nowadays.
4183
4184 2008-04-27 Kenichi Handa <handa@m17n.org>
4185
4186 * font.c (font_prop_validate): Signal `error' instead of `font'.
4187
4188 2008-04-29 Jason Rumney <jasonr@gnu.org>
4189
4190 * w32fns.c (Fw32_battery_status): New defun.
4191 (syms_of_w32fns): Defsubr it.
4192
4193 2008-04-28 Andreas Schwab <schwab@suse.de>
4194
4195 * dired.c (file_name_completion): Fix another mixing of encoded
4196 and decoded names.
4197
4198 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
4199
4200 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
4201
4202 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
4203
4204 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
4205
4206 2008-04-27 Andreas Schwab <schwab@suse.de>
4207
4208 * dired.c (file_name_completion): Fix inappropriate mixing of
4209 encoded and decoded names.
4210
4211 * xterm.c (XTread_socket): Fix use of uninitialized variable.
4212
4213 * puresize.h (BASE_PURESIZE): Increase to 1200000.
4214
4215 2008-04-26 Eli Zaretskii <eliz@gnu.org>
4216
4217 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
4218 2008-03-31, it's not needed anymore with `struct stat' definition
4219 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
4220 for the same reasons.
4221
4222 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
4223
4224 * m/sparc.h: Additional redefinitions for GNU/Linux.
4225
4226 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4227
4228 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
4229 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
4230 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
4231 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
4232 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
4233 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
4234 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
4235 Likewise.
4236
4237 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
4238 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
4239 (mac_ax_number_of_characters): Add externs.
4240 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
4241 [USE_MAC_TSM]: Likewise.
4242 (mac_handle_text_input_event) [MAC_OSX]:
4243 Handle kEventTextInputOffsetToPos for no active input area case.
4244 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
4245 (mac_handle_document_access_event)
4246 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
4247 (install_application_handler) [MAC_OSX]: Register handlers for
4248 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
4249 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
4250 Register mac_handle_document_access_event.
4251
4252 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
4253 Make functions non-static.
4254
4255 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
4256
4257 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
4258 (read_file_name_completion_ignore_case, insert_default_directory)
4259 (Qdefault_directory): Move to minibuffer.el.
4260 (Fread_file_name): Call the new `read-file-name' instead.
4261
4262 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4263
4264 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
4265 Make function non-static.
4266 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
4267 Remove function.
4268 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
4269 Move to mactoolbox.c.
4270 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
4271
4272 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
4273 (mac_rect_make): New macro.
4274
4275 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
4276 instead of float.
4277 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
4278 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
4279 (XSetBackground) [USE_CG_DRAWING]: Likewise.
4280 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
4281 CGRectMake.
4282 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
4283 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
4284 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
4285 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
4286 instead of WindowRef in argument type.
4287 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
4288 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
4289 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
4290 instead of DISPLAY. All uses changed.
4291 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
4292 (x_calc_absolute_position): Simplify so as not to use
4293 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
4294
4295 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
4296 instead of WindowRef in argument type.
4297 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
4298 [TARGET_API_MAC_CARBON]: Remove externs.
4299 (create_apple_event, mac_event_parameters_to_lisp)
4300 [TARGET_API_MAC_CARBON]: Add externs.
4301
4302 * mactoolbox.c (Vmac_ts_script_language_on_focus)
4303 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
4304 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
4305 is clicked.
4306 (x_activate_menubar): Remove extern for saved_menu_event_location.
4307 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
4308 Move from mac.c.
4309
4310 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4311
4312 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
4313 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
4314
4315 2008-04-23 Jason Rumney <jasonr@gnu.org>
4316
4317 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
4318 attributes only for local files.
4319
4320 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
4321 default to Qlocal.
4322
4323 2008-04-22 Juri Linkov <juri@jurta.org>
4324
4325 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
4326 read-buffer-to-switch instead of using the letter "B".
4327
4328 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
4329
4330 * fileio.c (Qdefault_directory): New variable.
4331 (Fread_file_name): Use it to pass `dir' to the completion functions.
4332
4333 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
4334
4335 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
4336
4337 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
4338
4339 * keyboard.c (Vpre_help_message): Remove.
4340 (show_help_echo): Remove default C code.
4341
4342 * dired.c (directory_files_internal, file_name_completion):
4343 Only call ENCODE_FILE if the string is indeed decoded.
4344
4345 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
4346
4347 * Makefile.in (TOOLKIT_DEFINES): Remove.
4348 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
4349
4350 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4351
4352 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
4353 (mactoolbox.o): New target.
4354
4355 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
4356 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
4357
4358 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
4359 Use mac_set_frame_window_background instead of XSetWindowBackground.
4360 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
4361 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
4362 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
4363 instead of SetWindowTitleWithCFString.
4364 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
4365 Move function to mactoolbox.c.
4366 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
4367 Use mac_set_window_modified instead of SetWindowModified.
4368 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
4369 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
4370 (Fx_focus_frame): Use mac_front_non_floating_window instead of
4371 FrontNonFloatingWindow. Use mac_activate_window instead of
4372 ActivateWindow. Use mac_active_non_floating_window instead of
4373 ActiveNonFloatingWindow.
4374 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
4375 Use mac_show_hourglass and mac_hide_hourglass.
4376 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
4377 instead of GetGlobalMouse.
4378 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
4379 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
4380 Use mac_bring_window_to_front instead of BringToFront.
4381 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
4382 mactoolbox.c.
4383 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
4384 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
4385 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
4386 mactoolbox.c.
4387
4388 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
4389 (XtPointer): Move typedef from macmenu.c.
4390 (enum button_type): Move enum from macmenu.c.
4391 (widget_value): Move typedef from macmenu.c.
4392 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
4393 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
4394 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
4395 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
4396 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
4397 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
4398 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
4399 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
4400 (Selection): Move typedef from macselect.c.
4401 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
4402 macterm.c.
4403 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
4404 (mac_is_window_collapsed, mac_bring_window_to_front)
4405 (mac_send_window_behind, mac_hide_window, mac_show_window)
4406 (mac_collapse_window, mac_front_non_floating_window)
4407 (mac_active_non_floating_window, mac_activate_window)
4408 (mac_move_window_structure, mac_move_window, mac_size_window)
4409 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
4410
4411 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
4412 (enum mac_menu_kind): Move enum to mactoolbox.c.
4413 (min_menu_id): Move variable to mactoolbox.c.
4414 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
4415 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
4416 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
4417 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
4418 [TARGET_API_MAC_CARBON]: Likewise.
4419 (XtPointer): Move typedef to macgui.h.
4420 (enum button_type): Move enum to macgui.h.
4421 (widget_value): Move typedef to macgui.h.
4422 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
4423 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
4424 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
4425 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
4426 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
4427 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
4428 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
4429 (popup_activated_flag): Make variable non-static.
4430 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
4431 (add_menu_item, fill_menu, dispose_menus):
4432 Move functions to mactoolbox.c.
4433 (restore_show_help_function, menu_target_item_handler)
4434 (install_menu_target_item_handler, mac_handle_dialog_event)
4435 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
4436 [TARGET_API_MAC_CARBON]: Likewise.
4437 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
4438 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
4439 (find_and_call_menu_selection, name_is_separator): Make function
4440 non-static.
4441 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
4442 to mactoolbox.c.
4443 (set_frame_menubar): Don't call install_menu_quit_handler.
4444 (menu_item_selection): New variable.
4445 (mac_menu_show): Use create_and_show_popup_menu.
4446 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
4447 selection but set variable menu_item_selection. All uses changed.
4448 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
4449 Call install_menu_quit_handler. Move to mactoolbox.c.
4450
4451 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
4452 (Selection): Move typedef to macgui.h.
4453 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
4454 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
4455 Make variables non-static.
4456 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
4457 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
4458 Make functions non-static.
4459 (Vmac_service_selection) [MAC_OSX]: Likewise.
4460 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
4461 (mac_valid_selection_target_p, mac_clear_selection)
4462 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
4463 (mac_put_selection_value, mac_selection_has_target_p)
4464 (mac_get_selection_value, mac_get_selection_target_list)
4465 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
4466 Move functions to mactoolbox.c.
4467 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
4468 Likewise.
4469 (copy_scrap_flavor_data, mac_handle_service_event)
4470 (install_service_handler) [MAC_OSX]: Likewise.
4471 (syms_of_macselect) <Vmac_dnd_known_types>:
4472 Use mac_dnd_default_known_types.
4473
4474 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
4475 Move to mactoolbox.c.
4476 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
4477 (Fx_selection_owner_p): Add EXFUN.
4478 (install_window_handler, remove_window_handler, XSetWindowBackground):
4479 Remove externs.
4480 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
4481 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
4482 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
4483 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
4484 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
4485 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
4486 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
4487 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
4488 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
4489 (create_and_show_popup_menu, mac_get_selection_from_symbol)
4490 (mac_valid_selection_target_p, mac_clear_selection)
4491 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
4492 (mac_put_selection_value, mac_selection_has_target_p)
4493 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
4494 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
4495 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
4496 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
4497 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
4498 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
4499 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
4500 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
4501 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
4502
4503 * mactoolbox.c: New file.
4504
4505 2008-04-18 Jason Rumney <jasonr@gnu.org>
4506
4507 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
4508
4509 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
4510
4511 * character.c (Fmultibyte_char_to_unibyte):
4512 Return latin1 chars unchanged.
4513
4514 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
4515 relocated if it points to `name'.
4516
4517 2008-04-17 Kenichi Handa <handa@m17n.org>
4518
4519 * data.c (Faset): Allow setting a multibyte character in an
4520 ASCII-only unibyte string.
4521
4522 * lisp.h (STRING_SET_MULTIBYTE): New macro.
4523
4524 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
4525
4526 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
4527 done in config.h.
4528
4529 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
4530
4531 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
4532 (Fchar_direction): Add usage in the docstring.
4533
4534 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
4535
4536 * keyboard.c (read_key_sequence): Remove always-true checks.
4537
4538 2008-04-14 Jason Rumney <jasonr@gnu.org>
4539
4540 * w32font.c (w32font_open_internal): Set max_bounds.descent in
4541 compatibility struct, for better underline positioning.
4542
4543 2008-04-13 David Hansen <david.hansen@gmx.net>
4544
4545 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
4546 string.
4547
4548 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
4549
4550 * m/hp800.h (XUINT, XSET): Remove.
4551
4552 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
4553
4554 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
4555 previous change.
4556
4557 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
4558
4559 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
4560 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
4561
4562 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
4563
4564 * keymap.h (map_keymap_canonical): Declare.
4565 * xmenu.c (single_keymap_panes): Use it.
4566
4567 2008-04-11 Glenn Morris <rgm@gnu.org>
4568
4569 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
4570 set the target's value to that of the alias.
4571
4572 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
4573
4574 * term.c (set_tty_color_mode): Left over typo.
4575
4576 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
4577
4578 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
4579 only after check for file name handler functions. Signal, when
4580 native functionality is not supported.
4581 (syms_of_fileio): Declare it unconditionally.
4582
4583 2008-04-10 Jason Rumney <jasonr@gnu.org>
4584
4585 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
4586 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
4587
4588 * w32.c (logon_network_drive): Also logon to remote drives that
4589 are mapped to drive letters.
4590
4591 2008-04-10 Glenn Morris <rgm@gnu.org>
4592
4593 * xdisp.c (truncate-partial-width-windows): Doc fix.
4594
4595 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
4596
4597 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
4598 Move functions to minibuffer.el.
4599 (syms_of_fileio): Don't declare them.
4600
4601 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
4602
4603 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
4604 (syms_of_minibuf): Remove its initialization.
4605
4606 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
4607
4608 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
4609
4610 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
4611
4612 2008-04-09 Jason Rumney <jasonr@gnu.org>
4613
4614 * makefile.w32-in (distclean): Delete makefile too.
4615 (maintainer-clean): New target.
4616
4617 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
4618
4619 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
4620 for new font backend and composite cases.
4621
4622 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
4623
4624 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
4625 Most of the code moved to run_timers.
4626 (do_pending_atimers): Call run_timers.
4627 (run_timers): New function.
4628
4629 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
4630 run atimers.
4631
4632 * process.c (wait_reading_process_output): The same as above.
4633
4634 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
4635
4636 * minibuf.c (last_exact_completion): Remove variable.
4637 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
4638 (complete_and_exit_1, complete_and_exit_2)
4639 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
4640 (Fdisplay_completion_list, display_completion_list_1)
4641 (Fminibuffer_completion_help, Fself_insert_and_exit)
4642 (Fexit_minibuffer, Fminibuffer_message): Move functions to
4643 minibuffer.el.
4644 (syms_of_minibuf): Remove corresponding initializations.
4645
4646 * keyboard.c (Qdeactivate_mark): New var.
4647 (command_loop_1): Use it to call `deactivate-mark'.
4648 (syms_of_keyboard): Initialize it.
4649
4650 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
4651 to another frame.
4652 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
4653 Don't call set_tty_color_mode.
4654 (store_frame_param): Reset previous_frame rather than call
4655 set_tty_color_mode.
4656 * term.c (set_tty_color_mode): Rewrite.
4657 * dispextern.h (set_tty_color_mode): New type.
4658 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
4659
4660 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
4661
4662 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
4663 for generic chars, which do not exist any more in emacs-unicode.
4664
4665 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
4666
4667 * coding.c (detect_coding_emacs_mule)
4668 (Ffind_operation_coding_system): Fix typo.
4669
4670 2008-04-08 Jason Rumney <jasonr@gnu.org>
4671
4672 * w32uniscribe.c (SNAME): Extract only symbol name.
4673
4674 * w32font.h (struct w32_metric_cache): New struct.
4675 (w32font_info): Use it.
4676 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
4677 (CACHE_BLOCKSIZE): New constants.
4678
4679 * w32font.c (Qja, Qko, Qzh): New symbols.
4680 (syms_of_w32font): Initialise them.
4681 (font_matches_spec): Use them to filter by language.
4682 (recompute_cached_metrics): Remove function.
4683 (compute_metrics, clear_cached_metrics): New functions.
4684 (w32font_encode_char): Use them to manage metric cache.
4685 (w32font_text_extents): Cache metrics for all glyphs on demand.
4686 Delay converting glyph indices to WORD until needed.
4687 (w32font_open_internal): Initialize metric cache to empty.
4688 (registry_to_w32_charset): Charset should always be a symbol.
4689 (fill_in_logfont, list_all_matching_fonts): Family should
4690 always be a symbol.
4691
4692 2008-04-06 Jason Rumney <jasonr@gnu.org>
4693
4694 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
4695 Give up if glyph indices not supported. Use uniscribe obtained
4696 ABC widths for individual metrics. Map glyph clusters back to
4697 characters using fClusterStart flag. Return number of glyphs
4698 produced, not chars processed.
4699 (uniscribe_shape): Map char at FROM to current glyph.
4700
4701 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4702
4703 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
4704 Use SetMenuItemHierarchicalMenu.
4705
4706 2008-04-05 Jason Rumney <jasonr@gnu.org>
4707
4708 * image.c (pbm_load): Allow color values up to 65535.
4709 Throw an error if max_color_idx is outside the supported range.
4710 Report an error when image size is invalid.
4711 Read two bytes at a time when raw images have max_color_idx above 255.
4712
4713 2008-04-05 Eli Zaretskii <eliz@gnu.org>
4714
4715 * w32.c (readdir): If FindFirstFile/FindNextFile return in
4716 cFileName a file name that includes `?' characters, use the 8+3
4717 alias in cAlternateFileName instead.
4718
4719 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
4720
4721 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
4722 append "CCL: Quitted" when the CCL program is quitted.
4723 (setup_ccl_program): Initialize ccl->quit_silently to zero.
4724
4725 * ccl.h (struct ccl_program): New member quit_silently.
4726
4727 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
4728
4729 * search.c (compile_pattern_1): Treat non-nil and non-string of
4730 search-spaces-regexp as nil.
4731
4732 * minibuf.c (Fassoc_string): Tweak docstring.
4733
4734 2008-04-05 Eli Zaretskii <eliz@gnu.org>
4735
4736 * dired.c (Ffile_attributes): Support inode numbers wider than 32
4737 bits. Remove ugly WINDOWSNT-specific kludge introduced on
4738 2008-03-14 to force inode be positive.
4739
4740 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
4741 _S_* ones, since we now use our own sys/stat.h.
4742 (stat, fstat): Don't mangle the inode number.
4743 (init_user_info): Don't restrict UID and GID to 0-60000 range.
4744
4745 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
4746
4747 * frame.h (struct frame): Give one more bit to `visible' since we use
4748 values larger than 1 to indicate obscured frames on ttys.
4749
4750 * keymap.c (Qkeymap_canonicalize): New var.
4751 (Fmap_keymap_internal): New fun.
4752 (describe_map): Use keymap-canonicalize.
4753
4754 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
4755 (Fundo_boundary): Set them.
4756 (syms_of_undo): Initialize them.
4757 (record_point): Use them instead of last_point_position*.
4758 (last_undo_buffer): Change type.
4759
4760 2008-04-04 Jason Rumney <jasonr@gnu.org>
4761
4762 * w32font.c (w32font_text_extents): Use font's ascent and descent.
4763 (recompute_cached_metrics): Don't set ascent and descent per char.
4764
4765 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
4766 (uniscribe_check_otf): Add GC protection before consing.
4767 Rearrange loop for counting features.
4768
4769 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
4770
4771 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
4772 buffer with byte-size of source buffer.
4773
4774 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
4775
4776 * callint.c (Fcall_interactively): Handle temporary region even
4777 when shift-select-mode is off.
4778
4779 2008-04-03 Jason Rumney <jasonr@gnu.org>
4780
4781 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
4782
4783 2008-04-03 Kenichi Handa <handa@m17n.org>
4784
4785 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
4786 (CATEGORY_MASK_UTF_16): Likewise.
4787 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
4788 binary file.
4789 (detect_coding): Add null-byte detection for a binary file.
4790 (detect_coding_system): Likewise.
4791
4792 2008-04-03 Jason Rumney <jasonr@gnu.org>
4793
4794 * w32uniscribe.c: New file.
4795
4796 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
4797
4798 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
4799
4800 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
4801 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
4802 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
4803 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
4804 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
4805 (Qphonetic): New symbols.
4806 (syms_of_w32font): Initialize them.
4807 (font_supported_scripts): Use them.
4808 (w32font_list_family): List all charsets.
4809 (w32font_text_extents, recompute_cached_metrics): Fix metric
4810 calculations.
4811 (w32_enumfont_pattern_entity): Make full_type a DWORD.
4812 Give opentype fonts their own format.
4813 (font_matches_spec): New arguments backend and logfont.
4814 Handle :otf spec for uniscribe backend.
4815 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
4816 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
4817
4818 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
4819 font backend.
4820 (globals_of_w32fns): Initialize uniscribe font backend.
4821
4822 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
4823 dependencies.
4824 (w32uniscribe.$(O)): New file to build.
4825 (FONT_OBJ): Include w32uniscribe.$(O).
4826 (LIBS): Add uniscribe libraries.
4827
4828 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
4829
4830 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
4831
4832 * callint.c (Vshift_select_mode): New var.
4833 (Finteractive): Document new ^ spec.
4834 (Fcall_interactively): Call handle-shift-selection if the ^ spec
4835 is present.
4836
4837 * keyboard.c (Vthis_command_keys_shift_translated): New var.
4838 (command_loop_1): Avoid running the direct display versions of
4839 forward-char and backward-char if shift-selection may occur.
4840 (read_key_sequence): Set Vthis_command_keys_shift_translated if
4841 shift-translation takes place.
4842
4843 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
4844 avoid clobbering by define-minor-mode.
4845
4846 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
4847 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
4848
4849 * syntax.c (Fforward_word): Add ^ interactive spec.
4850
4851 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
4852 (Fscroll_right): Add ^ interactive spec.
4853
4854 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
4855
4856 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
4857
4858 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
4859
4860 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
4861
4862 2008-03-31 Juri Linkov <juri@jurta.org>
4863
4864 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
4865
4866 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
4867
4868 * gtkutil.c (xg_set_geometry): Fix indentation.
4869 (xg_resize_outer_widget): Remove.
4870 (x_wm_size_hint_off): Fix indentation.
4871 (xg_frame_set_char_size): Call flush_and_sync after
4872 gtk_window_resize.
4873 (x_wm_set_size_hint): Pass NULL as geometry window to
4874 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
4875 Add menu bar and tool bar height to base height.
4876 (xg_update_frame_menubar, free_frame_menubar)
4877 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
4878 (update_frame_tool_bar, free_frame_tool_bar):
4879 Change xg_resize_outer_widget to xg_frame_set_char_size.
4880
4881 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
4882
4883 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
4884 (Fdbus_call_method): New parameter TIMEOUT.
4885 (dbus-send-signal): Optimize UNGCPRO call.
4886
4887 2008-03-29 Juri Linkov <juri@jurta.org>
4888
4889 * window.c (Fdisplay_buffer): Move call to
4890 Vsplit_window_preferred_function out of conditions that check
4891 if window is eligible for vertical splitting.
4892 When Vsplit_window_preferred_function is non-nil, call it and use
4893 its non-nil return value as window. Otherwise, continue doing
4894 vertical splitting using Fsplit_window with arg horflag=nil.
4895 (syms_of_window) <Vsplit_window_preferred_function>: Change the
4896 default value from `split-window' to nil.
4897
4898 2008-03-29 Juri Linkov <juri@jurta.org>
4899
4900 * callint.c (Fcall_interactively): Revert 2008-03-16 change
4901 for interactive code letters 'b' and 'B'.
4902
4903 2008-03-29 Eli Zaretskii <eliz@gnu.org>
4904
4905 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
4906 multibyte string.
4907
4908 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
4909
4910 * keyboard.c (pending_funcalls): New var.
4911 (timer_check): Run it.
4912 (syms_of_keyboard): Initialize it.
4913 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
4914 (Vdelete_terminal_functions): New vars.
4915 (syms_of_terminal): Initialize them.
4916 (Fdelete_terminal): Run delete-terminal-functions.
4917 * xdisp.c (safe_eval): Rewrite.
4918 (safe_call2): New fun.
4919 * frame.c (Qdelete_frame_functions): New var.
4920 (syms_of_frame): Initialize it.
4921 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
4922 * lisp.h (safe_call2, pending_funcalls): Declare.
4923
4924 2008-03-28 Andreas Schwab <schwab@suse.de>
4925
4926 * indent.c (Fmove_to_column): Move declaration before statements.
4927
4928 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
4929
4930 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
4931 (struct frame): Use bit fields for boolean vars.
4932
4933 * process.c (server_accept_connection): Simplify naming.
4934 (emacs_get_tty_pgrp): Use SDATA.
4935
4936 * coding.c (decode_coding_object): Fix last change.
4937
4938 2008-03-27 Jason Rumney <jasonr@gnu.org>
4939
4940 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
4941
4942 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
4943
4944 * charset.c (Fdefine_charset_internal): Change the way of
4945 registering charsets in Vcharset_order_list.
4946 (syms_of_charset): Make the charset `eight-bit' supplementary.
4947
4948 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
4949
4950 * regex.c (EXTEND_BUFFER): Change order of pointer addition
4951 operations, to avoid having the difference between pointers
4952 overflow.
4953
4954 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
4955
4956 * indent.c (check_display_width): New fun.
4957 (scan_for_column): Use it.
4958
4959 * data.c (syms_of_data): Mark most-positive-fixnum and
4960 most-negative-fixnum as constants.
4961
4962 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
4963
4964 * indent.c (scan_for_column): Extract from current_column_1.
4965 Merge with the same code from Fmove_to_column.
4966 (current_column_1, Fmove_to_column): Use it.
4967
4968 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
4969
4970 * keymap.c (map_keymap_internal): New fun.
4971 (map_keymap): Use it.
4972 (Fmap_keymap_internal): New fun.
4973 (Fmap_keymap): Remove left-out test from before make_save_value.
4974
4975 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
4976
4977 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
4978 Use XCAR/XCDR.
4979
4980 * process.h (struct Lisp_Process): Remove filter_multibyte.
4981 * process.c (QCfilter_multibyte): Remove.
4982 (setup_process_coding_systems): Don't use filter_multibyte.
4983 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
4984 (read_process_output): Don't adjust multibyteness to filter_multibyte.
4985 (Fset_process_filter_multibyte): Change the coding-system to
4986 approximate the previous behavior.
4987 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
4988 coding-system.
4989
4990 * coding.c (decode_coding_object): When not decoding into a buffer,
4991 obey the coding system's preference of (uni|multi)byte.
4992
4993 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
4994
4995 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
4996 every char is changed and has a different byte-length.
4997 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
4998 Fix int -> EMACS_INT.
4999
5000 2008-03-23 David Hansen <david.hansen@gmx.net>
5001
5002 * dbusbind.c (xd_read_message): Remove extra copying of message
5003 strings. Check for NULL `interface' or `member'.
5004
5005 2008-03-22 Eli Zaretskii <eliz@gnu.org>
5006
5007 * w32.c (readdir): If FindFirstFile/FindNextFile return in
5008 cFileName a file name that includes `?' characters, use the 8+3
5009 alias in cAlternateFileName instead.
5010
5011 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
5012
5013 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
5014
5015 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
5016
5017 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
5018 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
5019 work on current_buffer only instead (that was already the case
5020 for some of the code anyway).
5021 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
5022 (temp_set_point, temp_set_point_both): Use EMACS_INT.
5023 (SET_PT, SET_PT_BOTH): Adjust.
5024 * intervals.h (set_point, temp_set_point, set_point_both)
5025 (temp_set_point_both): Remove redundant declarations.
5026
5027 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
5028
5029 * fileio.c (Finsert_file_contents):
5030 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
5031 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
5032 when buffer != current_buffer anyway.
5033
5034 2008-03-20 Andreas Schwab <schwab@suse.de>
5035
5036 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
5037 as default.
5038
5039 2008-03-19 Jason Rumney <jasonr@gnu.org>
5040
5041 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
5042 (syms_of_w32fns): Initialize them.
5043 (HOURGLASS_ID): New constant.
5044 (x_window_to_frame): Don't check hourglass_window.
5045 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
5046 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
5047 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
5048 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
5049 Only change the cursor if hourglass is not active.
5050 (Fx_create_frame): Initialize frame's current_cursor.
5051 (hourglass_atimer): Remove.
5052 (hourglass_started): New function.
5053 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
5054 (show_hourglass): Adapt to w32, changing argument to frame.
5055
5056 * w32term.h (struct w32_output): Remove hourglass_window.
5057 Add current_cursor.
5058
5059 * eval.c (call_debugger, Fsignal):
5060 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
5061 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
5062 (Fexecute_extended_command, cancel_hourglass_unwind):
5063 * minibuf.c (read_minibuf):
5064 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
5065
5066 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
5067
5068 * window.c (run_funs): New fun.
5069 (run_window_configuration_change_hook): Use it to run the buffer-local
5070 and the global part of the hook.
5071
5072 * xdisp.c (format_mode_line_unwind_data): Add window argument.
5073 (unwind_format_mode_line): Restore selected window.
5074 (x_consider_frame_title, Fformat_mode_line): Set selected window.
5075
5076 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
5077
5078 * editfns.c (Fchar_equal): Check they are valid characters.
5079
5080 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
5081
5082 2008-03-17 Andreas Schwab <schwab@suse.de>
5083
5084 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
5085 against a charset.
5086
5087 * lisp.h (Fbuffer_list): Declare.
5088
5089 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
5090
5091 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
5092 handlebox_widget is != 0.
5093
5094 2008-03-16 Juri Linkov <juri@jurta.org>
5095
5096 * callint.c (Fcall_interactively): For interactive code letters
5097 'b' and 'B' put the buffer list into the list of default "future"
5098 values of the minibuffer.
5099
5100 2008-03-16 Andreas Schwab <schwab@suse.de>
5101
5102 * keyboard.c (read_key_sequence): Fix downcasing of letters with
5103 modifiers.
5104
5105 * regex.c (re_match_2_internal): Correct matching of a charset
5106 against latin-1 characters.
5107
5108 2008-03-16 Kenichi Handa <handa@m17n.org>
5109
5110 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
5111 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
5112 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
5113 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
5114 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
5115 CHAR_STRING_ADVANCE.
5116 (produce_chars): Fix for the case that the source and the
5117 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
5118 instead of CHAR_STRING_ADVANCE.
5119 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
5120 STRING_CHAR_ADVANCE.
5121
5122 2008-03-15 Andreas Schwab <schwab@suse.de>
5123
5124 * regex.c (re_match_2_internal): Correct matching of eight bit
5125 characters in unibyte strings.
5126
5127 2008-03-15 Martin Rudalics <rudalics@gmx.at>
5128
5129 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
5130 at end of range when it coincides with the end of the buffer.
5131
5132 2008-03-14 Eli Zaretskii <eliz@gnu.org>
5133
5134 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
5135
5136 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
5137
5138 2008-03-14 Jason Rumney <jasonr@gnu.org>
5139
5140 * editfns.c (initial_tz): New variable.
5141 (syms_of_editfns): Initialize it.
5142 (Fset_time_zone_rule): Set it when first called.
5143 Use it when TZSTRING is nil.
5144
5145 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
5146 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
5147 (monitor_from_point_fn, get_monitor_info_fn): New globals.
5148 (globals_of_w32fns): Initialize them.
5149 (compute_tip_xy): Use them to position tooltips.
5150
5151 2008-03-14 Glenn Morris <rgm@gnu.org>
5152
5153 * emacs.c (main): Revert previous change.
5154 (standard_args): Revert -internal-script back to -scriptload,
5155 and remove the long-option form.
5156
5157 2008-03-13 Glenn Morris <rgm@gnu.org>
5158
5159 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
5160 Remove option -enable-font-backend.
5161
5162 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
5163
5164 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
5165
5166 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
5167
5168 * xterm.c (x_connection_closed): For GTK: If this is the last
5169 terminal just exit without closing the display.
5170
5171 2008-03-11 Jason Rumney <jasonr@gnu.org>
5172
5173 * w32font.c (w32font_full_name): Use floor to round.
5174
5175 2008-03-10 dhruva <dhruvakm@gmail.com> (tiny change)
5176
5177 * sound.c (alsa_configure): Declare vol at beginning of block.
5178
5179 * fontset.c (Ffontset_info): Remove extra semicolon.
5180
5181 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
5182
5183 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
5184 size of resulting string.
5185
5186 2008-03-10 Jason Rumney <jasonr@gnu.org>
5187
5188 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
5189
5190 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5191
5192 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
5193 Don't pretend as if characters with display property haven't been
5194 consumed for string-replacing-string case.
5195
5196 2008-03-08 Kim F. Storm <storm@cua.dk>
5197
5198 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
5199 (get_next_display_element, next_element_from_string)
5200 (next_element_from_ellipsis, next_element_from_buffer): Use it.
5201
5202 2008-03-08 Andreas Schwab <schwab@suse.de>
5203
5204 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
5205
5206 2008-03-06 Jason Rumney <jasonr@gnu.org>
5207
5208 * w32font.c (w32_registry): Take font_type argument. Use ANSI
5209 when charset not specified. Only translate ANSI to unicode when
5210 font_type is truetype.
5211 (w32font_coverage_ok): New function.
5212 (add_font_entity_to_list): Use it to filter unsuitable fonts.
5213
5214 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
5215
5216 * lread.c (Fread_char): Resolve modifiers.
5217 (Fread_char_exclusive): Likewise.
5218
5219 * character.c (char_resolve_modifier_mask): New function.
5220 (char_string): Use char_resolve_modifier_mask.
5221 (Fchar_resolve_modifiers): New function.
5222 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
5223 function.
5224
5225 2008-03-04 Jason Rumney <jasonr@gnu.org>
5226
5227 * makefile.w32-in: Always include w32font.c in the build.
5228 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
5229
5230 2008-03-04 Andreas Schwab <schwab@suse.de>
5231
5232 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
5233 (versionclean): Likewise.
5234
5235 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
5236
5237 * .cvsignore: Add oo.
5238
5239 2008-03-03 Andreas Schwab <schwab@suse.de>
5240
5241 * coding.c (decode_coding_object): Inhibit gap shrinking while
5242 decoding in place.
5243
5244 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
5245
5246 * w32term.c: Remove unused include "gnu.h".
5247 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
5248
5249 * gnu.h: Rename to ...
5250 * emacs-icon.h: ... this.
5251 * xterm.c: Use emacs-icon.h instead of gnu.h.
5252 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
5253
5254 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
5255
5256 * w32font.c: Include math.h.
5257
5258 2008-03-03 Jason Rumney <jasonr@gnu.org>
5259
5260 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
5261 Compute options separately.
5262 (w32font_open_internal): Set glyph_idx before caching metrics.
5263
5264 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
5265 Define if system headers don't.
5266 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
5267 (w32font_encode_char): Don't declare here.
5268
5269 * w32font.c (Quniscribe, QCformat): New symbols.
5270 (syms_of_w32font): Define them.
5271 (w32font_has_char): Indicate uncertainty.
5272 (w32font_encode_char): Encode as glyph point. Make static.
5273 (recompute_cached_metrics): New function.
5274 (w32font_open_internal): Use it. Set font to use glyph points
5275 initially. Set format based on type of font.
5276 (w32font_text_extents, w32font_draw): Optionally use glyph points.
5277 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
5278 on it. Set format based on information available here.
5279 (add_font_entity_to_list): Identify backend based on opentype_only.
5280
5281 2008-03-02 Andreas Schwab <schwab@suse.de>
5282
5283 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
5284
5285 * coding.c (decode_coding_big5, produce_chars):
5286 Fix typos in last change.
5287
5288 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
5289
5290 * gnu.h: New icon.
5291
5292 2008-03-02 Kenichi Handa <handa@m17n.org>
5293
5294 * coding.c (decode_coding_utf_8): When eol-type of CODING is
5295 `dos', don't decode '\r' if that is the last in the source.
5296 (decode_coding_utf_16, decode_coding_emacs_mule)
5297 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5298 (decode_coding_raw_text, decode_coding_charset): Likewise.
5299 (produce_chars): Don't decode EOL here. Use EMACS_INT.
5300
5301 2008-03-01 Jason Rumney <jasonr@gnu.org>
5302
5303 * w32font.c (w32font_full_name): Report point size for scalable fonts.
5304
5305 2008-03-01 Kim F. Storm <storm@cua.dk>
5306
5307 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
5308
5309 2008-03-01 Jason Rumney <jasonr@gnu.org>
5310
5311 * w32font.c (w32font_full_name): New function.
5312 (w32font_open_internal): Use it.
5313
5314 2008-03-01 Kim F. Storm <storm@cua.dk>
5315
5316 * dispnew.c (line_draw_cost): Fix invalid glyph check.
5317
5318 2008-03-01 Jason Rumney <jasonr@gnu.org>
5319
5320 * font.c (font_unparse_fcname): Increase len when style is a symbol.
5321
5322 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
5323
5324 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
5325 xg_frame_resized when the event is for the edit widget.
5326
5327 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
5328
5329 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
5330 set_char_size.
5331 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
5332 operations on widgets here. Just set frame size if needed.
5333 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
5334 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
5335 (x_wm_set_size_hint): Set size hints on the edit widget only, not
5336 the whole frame.
5337 (xg_create_tool_bar): Move attachement of the tool bar to
5338 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
5339 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
5340
5341 2008-03-01 Jason Rumney <jasonr@gnu.org>
5342
5343 * w32fns.c (w32_msg_pump): Disable debug code.
5344
5345 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5346
5347 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
5348
5349 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
5350
5351 * xdisp.c (next_overlay_string): Don't set
5352 overlay_strings_at_end_processed_p if we're currently reading from
5353 a display string.
5354
5355 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
5356
5357 * xdisp.c (get_overlay_strings_1): Fix typo.
5358
5359 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
5360
5361 * xdisp.c (get_overlay_strings_1): Add missing argument type.
5362
5363 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
5364
5365 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
5366
5367 * xdisp.c (display_mode_element): Cancel the previous change.
5368 (decode_mode_spec): Likewise.
5369 (handle_auto_composed_prop): Don't make composition if it->string
5370 is a string.
5371
5372 2008-02-27 Kim F. Storm <storm@cua.dk>
5373
5374 * lisp.h (GLYPH): Change type from int to struct with separate char
5375 and face_id members.
5376 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
5377 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
5378 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
5379 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
5380 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
5381 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
5382 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
5383 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
5384 handle new Lisp glyph code encoding, either an integer or a cons.
5385
5386 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
5387 (GLYPH_ALIAS): Delete.
5388 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
5389 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
5390 (GLYPH_FROM_CHAR): Replace macro by ...
5391 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
5392
5393 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
5394 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
5395 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
5396 (GLYPH_INVALID_P): New macro.
5397 (spec_glyph_lookup_face): Update prototype.
5398
5399 * dispnew.c (line_draw_cost): Adapt to new glyph type.
5400 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
5401 new glyph code encoding.
5402 (spec_glyph_lookup_face): No return value; update passed glyph instead.
5403 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
5404
5405 * xdisp.c (get_next_display_element, next_element_from_display_vector):
5406 Adapt to new glyph type and new glyph code encoding.
5407
5408 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
5409
5410 * indent.c (current_column, current_column_1, Fmove_to_column)
5411 (compute_motion): Adapt to new glyph code encoding.
5412
5413 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
5414
5415 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
5416
5417 * process.c (wait_reading_process_output): Check for window
5418 changes caused by timers.
5419 Suggested by Johan Bockgård.
5420
5421 2008-02-27 Glenn Morris <rgm@gnu.org>
5422
5423 * emacs.c (USAGE1): Add `--disable-font-backend'.
5424
5425 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
5426
5427 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
5428 is made to the buffer.
5429
5430 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
5431
5432 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
5433 (face_at_string_position):
5434 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
5435 (face_at_string_position):
5436 * xdisp.c (display_string, next_overlay_change):
5437 * buffer.h (overlays_at):
5438 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
5439 Update callers.
5440
5441 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
5442
5443 * editfns.c (Fformat): Doc fix.
5444
5445 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
5446
5447 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
5448 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
5449 (Ffont_otf_alternates, Fquery_font): Doc fixes.
5450
5451 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
5452
5453 * buffer.c (Fbuffer_swap_text): New function.
5454 (syms_of_buffer): Defsubr it.
5455
5456 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
5457
5458 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
5459
5460 2008-02-25 Jason Rumney <jasonr@gnu.org>
5461
5462 * w32font.c (w32font_draw): Draw one character at a time when padding.
5463
5464 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
5465
5466 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
5467 Handle a nil arg. Use run_window_configuration_change_hook.
5468 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
5469 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
5470 Use run_window_configuration_change_hook.
5471
5472 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
5473
5474 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
5475 1-pixel width.
5476
5477 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
5478
5479 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
5480 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
5481 if the glyph in the font is zero pixel with.
5482
5483 * dispextern.h (struct glyph_string): New member padding_p.
5484
5485 * w32font.c (w32font_draw): Pay attention to s->padding_p.
5486
5487 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
5488
5489 * xfont.c (xfont_draw): Pay attention to s->padding_p.
5490
5491 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
5492
5493 * font.c: If the font driver doesn't have `shape' function, return Qnil.
5494
5495 2008-02-25 Jason Rumney <jasonr@gnu.org>
5496
5497 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
5498
5499 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
5500
5501 Allow fine-grained image-cache flushing.
5502 * dispextern.h (struct image): Add `dependencies' field.
5503 (clear_image_caches): Change arg to Lisp_Object.
5504 * image.c (make_image): Initialize `dependencies' field.
5505 (clear_image_cache): Change arg to allow fine-grained flushing.
5506 Perform the flush even if image-cache-eviction-delay is nil.
5507 (clear_image_caches): Change arg to Lisp_Object.
5508 (Fclear_image_cache): Expand meaning of the argument.
5509 (mark_image): Mark `dependencies' field.
5510 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
5511 (lface_hash): Use XHASH rather than XFASTINT.
5512 (face_at_buffer_position): Fix int -> EMACS_INT position.
5513 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
5514 (select_frame_for_redisplay): Remove code duplication.
5515 (redisplay_internal): Adapt arg to call to clear_image_caches.
5516
5517 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
5518
5519 * s/vms4-0.h:
5520 * s/vms4-2.h:
5521 * s/vms4-4.h:
5522 * s/vms5-5.h: Remove, unused.
5523
5524 * s/irix5-2.h:
5525 * s/irix6-0.h:
5526 * s/riscos5.h:
5527 * s/mach-bsd4-3.h:
5528 * m/mips4.h: Remove files for obsolete systems.
5529
5530 * Makefile.in:
5531 * filelock.c:
5532 * unexmips.c:
5533 * m/hp9000s300.h:
5534 * m/iris4d.h:
5535 * s/aix3-1.h:
5536 * s/hpux.h:
5537 * s/msdos.h:
5538 * s/usg5-0.h:
5539 * s/usg5-2-2.h:
5540 * s/usg5-2.h:
5541 * s/usg5-3.h: Remove references to obsolete variables.
5542
5543 * s/irix5-0.h: Remove, move all the contents ...
5544 * s/irix6-5.h: ... here. Simplify.
5545 * config.in: Regenerate.
5546
5547 2008-02-24 Jason Rumney <jasonr@gnu.org>
5548
5549 * w32term.c (x_draw_glyph_string_background): Clear the background
5550 manually when cleartype is in use.
5551 (x_draw_glyph_string_foreground): Draw text transparently when
5552 cleartype is in use.
5553
5554 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
5555 a font into it unless we have to.
5556
5557 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
5558
5559 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
5560 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
5561
5562 2008-02-18 Jason Rumney <jasonr@gnu.org>
5563
5564 * w32fns.c (Fw32_shell_execute): Encode parameters.
5565
5566 2008-02-09 Eli Zaretskii <eliz@gnu.org>
5567
5568 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
5569
5570 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
5571
5572 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
5573
5574 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
5575
5576 * xterm.c (x_set_offset): Don't change the gravity if
5577 CHANGE_GRAVITY is -1.
5578
5579 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
5580
5581 * fileio.c (auto_save_error_occurred): New var.
5582 (auto_save_error): Set it.
5583 (Fdo_auto_save): Don't overwrite the error message if an auto-save
5584 error occurred.
5585
5586 2008-02-23 Eli Zaretskii <eliz@gnu.org>
5587
5588 * w32.c (globals_of_w32): Add initializations for
5589 g_b_init_get_sid_sub_authority and
5590 g_b_init_get_sid_sub_authority_count.
5591
5592 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
5593
5594 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
5595 (font_parse_xlfd): Use them for sanity check.
5596 (Finternal_set_font_style_table): Make sure the table is bijective.
5597
5598 Consolidate the image_cache to the terminal struct.
5599 * termhooks.h (P_): Remove redundant def.
5600 (struct terminal): New field `image_cache'.
5601 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
5602 of FRAME_X_IMAGE_CACHE.
5603 * xterm.h (struct x_display_info): Remove image_cache field.
5604 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
5605 * w32term.h (struct w32_display_info): Remove image_cache field.
5606 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
5607 * macterm.h (struct mac_display_info): Remove image_cache field.
5608 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
5609 * xterm.c (x_term_init):
5610 * w32term.c (w32_term_init):
5611 * macterm.c (mac_term_init): Set the image_cache in the terminal.
5612 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
5613 Remove declarations.
5614 (clear_image_caches, mark_image_cache): New declarations.
5615 * xfaces.c (clear_face_cache):
5616 * xdisp.c (redisplay_internal): Use clear_image_caches.
5617 * image.c (clear_image_cache): Don't check that a frame is on
5618 a window-system before checking if it shares the same cache.
5619 (clear_image_caches): New function.
5620 (Fclear_image_cache): Use it.
5621 (mark_image): Move from allo.c.
5622 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
5623 * alloc.c (mark_image, mark_image_cache): Move to image.c.
5624 (mark_object): Don't call mark_image_cache for frames.
5625 (mark_terminals): Call mark_image_cache.
5626
5627 * lisp.h (Fdelete_terminal): Declare.
5628
5629 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
5630 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
5631 wrong_type_argument.
5632
5633 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
5634
5635 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
5636 malayalam.el, and tamil.el. Add sinhala.el.
5637
5638 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
5639
5640 * xterm.c (x_connection_closed): Consolidate identical tests.
5641 (x_delete_terminal): Don't crash if called via x_connection_closed.
5642
5643 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
5644
5645 * xdisp.c (decode_mode_spec): New arg string.
5646 (display_mode_element): Adjust for the above change.
5647
5648 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
5649
5650 * callint.c (Fcall_interactively): Use AREF.
5651
5652 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
5653
5654 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
5655
5656 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
5657
5658 * xfns.c (Fx_show_tip): Set string to " " if empty.
5659
5660 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
5661
5662 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
5663 with Qt.
5664
5665 2008-02-17 Kenichi Handa <handa@m17n.org>
5666
5667 * ftfont.c (ftfont_shape): Return Lispy number.
5668
5669 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
5670 for GCs.
5671 (Finternal_set_font_selection_order): Call font_update_sort_order
5672 only when enable_font_backend is set.
5673 (realize_x_face): Set face->font_info to that of default face only
5674 when enable_font_backend is set.
5675
5676 * xdisp.c (handle_composition_prop): Set it->c to the fist
5677 characte of the composed region.
5678 (fill_composite_glyph_string): Set base_face->font_info to
5679 s->font_info. Get a face for ascii from base_face->ascii_face.
5680 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
5681 with a face already decided.
5682 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
5683 non-negative.
5684 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
5685 call font_prepare_composition unconditionally.
5686
5687 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
5688
5689 * xterm.h (struct x_display_info): New member font.
5690
5691 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
5692 (x_set_mouse_face_gc, x_new_font): Likewise.
5693 (x_term_init): Setup display_info->font.
5694 (x_delete_terminal): Free display_info->font.
5695
5696 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
5697
5698 * ftxfont.c (ftxfont_default_fid): Delete it.
5699 (ftxfont_open): Set xfont->fid to 0.
5700 (ftxfont_end_for_frame): Clear data specific to the frame and the
5701 font-driver.
5702
5703 * xftfont.c (xftfont_default_fid): Delete it.
5704 (xftfont_open): Set xfont->fid to 0.
5705
5706 * fontset.c (FONTSET_OBJLIST): New macro.
5707 (fontset_find_font): Update font-object list of the fontset.
5708 (free_realized_fontset): New function.
5709 (free_face_fontset): Call free_realized_fontset.
5710 (Ffont_info): Call font_close_object only when enable_font_backend
5711 is set.
5712
5713 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
5714 [HAVE_NTGUI]: Include w32term.h.
5715 [MAC_OS]: Include macterm.ch.
5716 (font_otf_ValueRecord): Use make_number.
5717 (font_finish_cache): Fix handling of reference count.
5718 (font_clear_cache): Update num_fonts.
5719 (font_open_entity): Update smallest_char_width and
5720 smallest_font_height of the frame.
5721 (font_close_object): Update num_fonts.
5722 (Fclear_font_cache): Fix finding the target cache data.
5723
5724 2008-02-16 Glenn Morris <rgm@gnu.org>
5725
5726 * fontset.c (Finternal_char_font): Fix compilation warning.
5727
5728 2008-02-16 Eli Zaretskii <eliz@gnu.org>
5729
5730 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
5731 instead of char arrays. Enlarge the size of array passed to
5732 get_token_information.
5733
5734 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
5735 warnings.
5736
5737 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
5738
5739 * .gdbinit: Don't set `args', it breaks gdb --args.
5740
5741 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
5742
5743 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
5744 within a narrowed buffer.
5745
5746 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
5747
5748 * coding.c (decode_coding_object, encode_coding_object):
5749 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
5750
5751 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
5752
5753 * coding.c (coding_set_destination): Use BEG_BYTE rather than
5754 hardcoding 1.
5755 (detect_coding_system):
5756 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
5757 (string_char_to_byte, string_byte_to_char, insert_from_gap):
5758 * insdel.c (insert_from_gap):
5759 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
5760 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
5761 (string_to_multibyte):
5762 * character.c (chars_in_text, multibyte_chars_in_text):
5763 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
5764
5765 * character.h (FETCH_STRING_CHAR_ADVANCE)
5766 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
5767 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
5768 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
5769
5770 * casefiddle.c (casify_region): Only call after-change and composition
5771 functions on the part of the region that was changed.
5772
5773 * keyboard.c (read_avail_input):
5774 * frame.c (Fdelete_frame): Call Fdelete_terminal.
5775
5776 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
5777
5778 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
5779 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
5780
5781 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
5782
5783 * w32menu.c (push_submenu_start, push_submenu_end)
5784 (push_left_right_boundary, push_menu_pane, push_menu_item):
5785 * keyboard.c (read_key_sequence): Don't pass args with side effects
5786 to AREF, it fails when compiling with -DENABLE_CHECKING.
5787
5788 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
5789
5790 * Makefile.in (${lispsource}international/charprop.el):
5791 Delete this target.
5792
5793 * search.c (boyer_moore): Fix incorrect synching of the trunk and
5794 emacs-unicode-2.
5795
5796 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
5797
5798 * terminal.c (Fdelete_terminal): Clean up the `force' path.
5799
5800 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
5801
5802 * frame.c (Qnoelisp): New symbol.
5803 (syms_of_frame): Initialize it.
5804 (Fdelete_frame): Use it to distinguish a mere `force' passed from
5805 someharmles Elisp code, from a strong `force' from x_connection_closed.
5806 * frame.h (Qnoelisp): Declare.
5807 * xterm.c (x_connection_closed): Pass `noelisp'.
5808
5809 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
5810 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
5811 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
5812 rather than `int' for the type of `type'.
5813
5814 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
5815
5816 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
5817
5818 * Makefile.in (GNUC): Remove support for gcc-1.x.
5819
5820 2008-02-10 Richard Stallman <rms@gnu.org>
5821
5822 * lisp.h (ASET): Use AREF, not ASLOT.
5823
5824 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
5825
5826 * lisp.h (ASET): Check bounds.
5827
5828 2008-02-10 Glenn Morris <rgm@gnu.org>
5829
5830 * buffer.c (mode-name): Doc fix.
5831
5832 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
5833
5834 * Makefile.in:
5835 * emacs.c:
5836 * gmalloc.c:
5837 * keyboard.c:
5838 * lisp.h:
5839 * m/ibm370aix.h:
5840 * process.c:
5841 * regex.c:
5842 * s/hpux.h:
5843 * sysdep.c:
5844 * sysselect.h:
5845 * systty.h:
5846 * unexec.c:
5847 * w32term.c:
5848 * xsmfns.c:
5849 * xterm.c: Remove code that deals with obsolete variables.
5850
5851 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
5852
5853 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
5854 nothing else needs it anymore.
5855
5856 2008-02-09 Eli Zaretskii <eliz@gnu.org>
5857
5858 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
5859 instead of unibyte_char_to_multibyte.
5860
5861 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
5862
5863 * s/gnu-linux.h: Remove commented out code.
5864
5865 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
5866
5867 * Makefile.in: Update what RMS says about using autoconf.
5868 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
5869 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
5870 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
5871 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
5872
5873 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
5874
5875 * keymap.c (Fkey_description): Move side effect outside of macro call.
5876
5877 * xfaces.c (Finternal_make_lisp_face):
5878 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
5879
5880 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
5881 (syms_of_fontset): Use ASET.
5882
5883 * fns.c (concat): Move side effect outside of macro call.
5884 (hash_clear): Use ASET.
5885
5886 2008-02-08 Richard Stallman <rms@gnu.org>
5887
5888 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
5889 If FORCE, and frame has a surrogate minibuffer for another frame,
5890 delete the other frame first.
5891
5892 2008-02-07 Timo Savola <timo.savola@iki.fi>
5893
5894 * xterm.c (x_detect_focus_change): Handle embed client message.
5895 (handle_one_xevent): Ditto.
5896 (handle_one_xevent): If embedded and we get a button press/release,
5897 request focus.
5898 (xembed_set_info, xembed_send_message): New functions.
5899 (x_make_frame_visible): Call xembed_set_info if embedded.
5900 (x_make_frame_invisible): Call xembed_set_info if embedded.
5901 (x_term_init): Initialize Xatom_XEMBED.
5902 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
5903 (x_iconify_frame): Ditto.
5904
5905 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
5906 (enum xembed_info, enum xerm srmbed_message, enum xembed_focus)
5907 (enum xembed_modifier, enum xembed_accelerator): New.
5908 (xembed_set_info, xembed_send_message): Declare.
5909 (FRAME_X_EMBEDDED_P): New.
5910
5911 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
5912 gtk_plug_new.
5913
5914 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
5915 window ID of a frame.
5916 (x_window): Reparent frame if embedded.
5917 (Fx_create_frame): Don't set border width if embedded.
5918
5919 * emacs.c (USAGE3): Add --parent-id.
5920 (standard_args): Ditto.
5921
5922 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
5923
5924 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
5925
5926 2008-02-07 Jim Meyering <meyering@redhat.com>
5927
5928 Use "do...while (0)", not "if (1)...else" in macro definitions.
5929 The latter provokes a warning from gcc about the empty else, when
5930 followed by ";". Also, without that trailing semicolon, it would
5931 silently swallow up any following statement.
5932 * syntax.h (SETUP_SYNTAX_TABLE)
5933 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
5934 * buffer.h (DECODE_POSITION): Likewise.
5935 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
5936 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
5937 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
5938 (FETCH_CHAR_ADVANCE): Likewise.
5939 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
5940
5941 2008-02-07 Jim Meyering <meyering@redhat.com>
5942
5943 * lread.c [lint]: Don't include <sys/inode.h>.
5944
5945 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
5946
5947 * xselect.c (x_handle_dnd_message):
5948 * xmenu.c (digest_single_submenu, xmenu_show):
5949 * xdisp.c (with_echo_area_buffer_unwind_data)
5950 (format_mode_line_unwind_data, unwind_format_mode_line)
5951 (display_menu_bar):
5952 * eval.c (Ffetch_bytecode):
5953 * doc.c (store_function_docstring):
5954 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
5955 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
5956 * buffer.c (add_overlay_mod_hooklist): Use ASET.
5957
5958 2008-02-07 Kenichi Handa <handa@m17n.org>
5959
5960 * ftxfont.c (ftxfont_open): Don't set
5961 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
5962
5963 * ftfont.c (ftfont_open): Fix previous change.
5964
5965 2008-02-06 Jason Rumney <jasonr@gnu.org>
5966
5967 * w32font.c (w32font_text_extents): Fill in lbearing metric.
5968 Use cached metrics for ASCII characters.
5969 (w32font_open_internal): Don't set font's owning_frame.
5970 Cache metrics for ASCII characters.
5971
5972 * w32font.h (struct w32font_info): Add ascii_metrics.
5973 Remove owning_frame.
5974
5975 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
5976
5977 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
5978 to negative value.
5979
5980 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
5981
5982 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
5983
5984 * charset.c (syms_of_charset): Set QCtest and Qeq.
5985
5986 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
5987
5988 * process.c (Fstart_process):
5989 * callproc.c (Fcall_process): Handle the case where
5990 Funhandled_file_name_directory returns nil.
5991
5992 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
5993 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
5994 * font.c (check_gstring): Use them and AREF to access the vector before
5995 we know it's really a gstring.
5996 (Ffont_shape_text): Fix typo.
5997 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Oject mixups.
5998
5999 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
6000 Declare.
6001
6002 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
6003
6004 2008-02-05 Jason Rumney <jasonr@gnu.org>
6005
6006 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
6007 Set smallest_font_height and smallest_char_width in display info.
6008
6009 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
6010
6011 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
6012
6013 2008-02-05 Miles Bader <miles@gnu.org>
6014
6015 * xfaces.c (get_lface_attributes, merge_named_face)
6016 (lookup_named_face, lookup_derived_face, realize_named_face):
6017 Revert 2008-02-01 change by cyd@stupidchicken.com.
6018
6019 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
6020
6021 * fontset.c (Ffontset_info): Handle the case of inhibitting the
6022 fallback fonts.
6023 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
6024
6025 2008-02-04 Jason Rumney <jasonr@gnu.org>
6026
6027 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
6028 set full_name.
6029 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
6030
6031 2008-02-03 Jason Rumney <jasonr@gnu.org>
6032
6033 * makefile.w32-in (OBJ1): Include font.o here.
6034 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
6035
6036 2008-02-02 Jason Rumney <jasonr@gnu.org>
6037
6038 * makefile.w32-in (temacs): Bump EMHEAP to 21.
6039
6040 2008-02-01 Jason Rumney <jasonr@gnu.org>
6041
6042 * s/cygwin.h: Define VIRT_ADDR_VARIES.
6043
6044 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
6045
6046 2008-02-01 Andreas Schwab <schwab@suse.de>
6047
6048 * Makefile.in (shortlisp, lisp): Update for rename of
6049 ../lisp/language/myanmar.el.
6050
6051 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
6052
6053 * xfaces.c (get_lface_attributes): Delete function.
6054 (merge_named_face, lookup_named_face, lookup_derived_face)
6055 (realize_named_face): Call lface_from_face_name directly, and use
6056 the fact that merge_face_vectors does not alter its FROM argument.
6057
6058 2008-02-01 Jason Rumney <jasonr@gnu.org>
6059
6060 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
6061 input in the default locale. Handle non-Unicode multibyte input.
6062
6063 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
6064
6065 * fontset.c (reorder_font_vector): Exclude nil elements from the
6066 font group. Don't try multiple fonts.
6067 (fontset_font): Adjust for the above change.
6068 (Finternal_char_font): Return nil if the found font doesn't
6069 contain the character ch.
6070
6071 * Makefile.in (lisp, shortlisp): Add cham.el.
6072
6073 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
6074
6075 * font.h (FONTP): Make it return 1 also for a font-object.
6076
6077 * .gdbinit (xfontset): New function.
6078
6079 * font.c (font_find_for_lface): Check if the character C is
6080 supported or not only for the first font.
6081
6082 * fontset.c (reorder_font_vector): Fix typo.
6083 (fontset_find_font): Don't add a font-spec specifying a script.
6084 Use 0 (not Qt) for the indication of empty font-group. Change the
6085 format of RFONT-DEF. Return Qt if no font in the font-group
6086 support the character.
6087 (fontset_font): Adjust for the above change. If no font was
6088 found the character, remember that.
6089 (face_for_char): Adjust for the change of RFONT-DEF.
6090 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
6091 no font for the target.
6092 (Finternal_char_font): Adjust for the change of RFONT-DEF.
6093
6094 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
6095
6096 * font.c (font_load_for_face): Handle the case that the font in
6097 face->lface is a string.
6098
6099 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
6100
6101 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
6102
6103 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
6104
6105 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
6106 Fix previous change. If the frame is not on a window system,
6107 signal an error.
6108
6109 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
6110
6111 * coding.c (decode_coding_object, encode_coding_object): Adjust
6112 marker positions after conversion.
6113
6114 * lisp.h (struct Lisp_Marker): New member need_adjustment.
6115
6116 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
6117
6118 * font.c (font_find_for_lface): Fix the handling of the return
6119 value of font_has_char.
6120 (Ffont_shape_text): Fix previous change.
6121
6122 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
6123 (fontset_ref_and_range): Delete it.
6124 (fontset_find_font): Call char_table_ref_and_range instead of
6125 FONTSET_REF_AND_RANGE.
6126 (make_fontset): Don't setup font groups of Latin here.
6127 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
6128 (new_fontset_from_font): Make the specified font the default for
6129 all Latin characters.
6130
6131 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
6132
6133 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
6134 is on a window system before accessing the fontset of the frame.
6135
6136 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
6137
6138 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
6139
6140 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
6141 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
6142
6143 * font.c (Ffont_shape_text): If the font driver doesn't have a
6144 shaper function, make zero-width glyphs to have at least one-pixel
6145 width. Fix setting of `to' field of glyphs.
6146
6147 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
6148
6149 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
6150 glyphs.
6151
6152 * font.h (struct font_driver): Improve docstring of member `shape'.
6153
6154 2008-02-01 Kenichi Handa <handa@m17n.org>
6155
6156 * composite.c (syms_of_composite): Fix docstring of
6157 auto-composition-function.
6158
6159 * font.h (LGLYPH_SIZE): New macro.
6160
6161 * font.c (Ffont_fill_gstring): Stop filling when a character not
6162 supported by the font is found.
6163 (Ffont_shape_text): When a shape callback function returns nil,
6164 try at most two more times with larger gstring.
6165 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
6166
6167 * xdisp.c (handle_auto_composed_prop): Change the argument to
6168 auto-composition-function.
6169
6170 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
6171 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
6172 Lispy glyph and store it in the lgstring.
6173
6174 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
6175
6176 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
6177
6178 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
6179
6180 * font.c (Ffont_shape_text): Avoid unnecessary composition.
6181
6182 * fontset.c (Vfont_encoding_charset_alist): New variable.
6183 (syms_of_fontset): DEFVAR it.
6184 (reorder_font_vector, fontset_find_font): Optimize for the case of
6185 no need of reordering.
6186 (face_for_char): Map the charset property by
6187 Vfont_encoding_charset_alist.
6188
6189 2008-02-01 Jason Rumney <jasonr@gnu.org>
6190
6191 * w32font.c (logfonts_match): Don't check adstyle here.
6192 (font_matches_spec): Check here against physical font instead.
6193 (add_font_entity_to_list): Avoid some substitutions.
6194
6195 * font.c (font_parse_fcname): Default weight and slant to normal.
6196 (font_score): Prefer normal fonts if weight or slant unspecified.
6197 (font_score) [WINDOWSNT]: Scale weight difference down to closer
6198 match freetype scores.
6199
6200 2008-02-01 Jason Rumney <jasonr@gnu.org>
6201
6202 * w32font.c (w32font_text_extents): Don't use the frame stored in the
6203 font, as it may have been deleted.
6204 (w32_enumfont_pattern_entity): Map generic family to adstyle using
6205 most common hyphenless variation.
6206 (logfonts_match): Check generic family.
6207 (font_matches_spec): Don't check generic family here.
6208 (fill_in_logfont): Set generic family based on adstyle.
6209
6210 * w32font.h (w32font_get_cache): Update declaration.
6211
6212 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
6213
6214 * ftfont.c (ftfont_get_cache): Adjust the argument type.
6215
6216 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
6217 If none of the new drivers are available, call font_update_drivers
6218 with the old drivers.
6219
6220 * w32font.c (w32font_get_cache): Adjust the argument type.
6221
6222 * xfont.c (xfont_get_cache): Adjust the argument type.
6223
6224 * font.h (struct font_driver): Change argument type of get_cache.
6225
6226 * xftfont.c (xftfont_start_for_frame): Delete prototype.
6227
6228 * font.c (Ffont_get): Fix arguments to Fassoc.
6229 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
6230 (font_clear_cache): New function.
6231 (font_list_entities, font_matching_entity): Use font_get_cache.
6232 (font_update_drivers): Call font_clear_cache when finishing a driver.
6233
6234 * fontset.c (fontset_find_font): Fix previous change.
6235
6236 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
6237
6238 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
6239 dpyinfo->font_table.
6240 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
6241 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
6242
6243 * font.c (font_at): Handle the case that the arg C is negative.
6244 Handle the unibyte case.
6245 (Ffont_at): Call font_at with the arg C -1.
6246
6247 * xdisp.c (handle_auto_composed_prop): Don't get a character at
6248 the position here, and call font_at with the arg C -1.
6249 Don't check the range of the existing composition at the point.
6250
6251 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
6252
6253 * fontset.c (fontset_add): New args charset_id and family.
6254 Change caller.
6255 (load_font_get_repertory, fontset_find_font): Assume that
6256 font_spec is always a font-spec object.
6257 (Fset_fontset_font): Always store a font-spec object in a fontset.
6258
6259 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
6260 instead of get_property_and_range.
6261
6262 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
6263
6264 * xftfont.c (struct xftfont_info): Delete the member ft_face.
6265 (xftfont_open): Don't keep locking face.
6266 (xftfont_close): Don't unlock face.
6267 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
6268
6269 * fontset.c (fontset_find_font): Don't prefer a font of
6270 supplementary charset.
6271
6272 2008-02-01 Kenichi Handa <handa@m17n.org>
6273
6274 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
6275 script, langsys_tag to langsys, new member script.
6276 (OTF_TAG_STR): Terminate by '\0'.
6277 (ftfont_get_open_type_spec): If :otf prop is is spec, Limit the
6278 listing to the script specified in that property. Fix arg to
6279 OTF_check_features.
6280
6281 2008-02-01 Jason Rumney <jasonr@gnu.org>
6282
6283 * w32font.h: New file.
6284
6285 * w32font.c: Include it.
6286 (struct w32font_info): Add owning_frame field. Move to w32font.h.
6287 (w32font_open): Set owning_frame.
6288 (w32font_text_extents): Use owning_frame.
6289 (struct font_callback_data): Add opentype_only field.
6290 (add_font_entity_to_list): Use it to filter fonts.
6291 Don't check against full name.
6292 (w32font_list_internal): New function.
6293 (w32font_list): Use it.
6294 (w32font_match_internal): New function.
6295 (w32font_match): Use it.
6296 (w32font_open_internal): New function.
6297 (w32font_open): Use it.
6298 (w32font_get_cache, w32font_close, w32font_has_char)
6299 (w32font_encode_char, w32font_text_extents, w32font_draw):
6300 Make non-static.
6301
6302 * makefile.w32-in (w32font.o): Depend on w32font.h.
6303
6304 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
6305
6306 * charset.c (Fdefine_charset_internal): Record a supplementary
6307 charset at the tail of Vcharset_order_list.
6308
6309 * font.c (Ffont_shape_text): Fix the return value.
6310
6311 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
6312
6313 * xdisp.c (handle_auto_composed_prop): Fix previous change.
6314
6315 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
6316
6317 * ftfont.c (struct OpenTypeSpec): New struct.
6318 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
6319 (ftfont_get_open_type_spec): New function.
6320 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
6321
6322 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
6323
6324 2008-02-01 Jason Rumney <jasonr@gnu.org>
6325
6326 * w32font.c (add_font_entity_to_list): Compare only the beginning
6327 of full name.
6328
6329 2008-02-01 Kenichi Handa <handa@m17n.org>
6330
6331 * xdisp.c (handle_auto_composed_prop): Simplify the code.
6332 Never return HANDLED_RECOMPUTE_PROPS.
6333
6334 2008-02-01 Kenichi Handa <handa@m17n.org>
6335
6336 * font.c (font_gstring_produce): Delete it.
6337
6338 * composite.h (COMPOSITION_METHOD):
6339 Handle COMPOSITION_WITH_GLYPH_STRING.
6340
6341 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
6342
6343 * xfont.c (Qx): Delete.
6344 (syms_of_xfont): Don't initialize Qx.
6345
6346 * composite.h (enum composition_method):
6347 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
6348
6349 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
6350
6351 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
6352 (choose_face_font): Accept new form of font-spec.
6353
6354 * frame.h (font_driver_list): Declare it unconditionally.
6355 (struct frame): Define members font_driver_list and font_data_list
6356 unconditionally.
6357
6358 * fontset.c: Include "font.h" unconditionally.
6359 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
6360 (Fset_fontset_font): Accept a font-spec object.
6361
6362 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
6363 PIXEL_SIZE part a wild card.
6364
6365 * dispextern.h (struct glyph_string): Define members clip and
6366 num_clips unconditionally.
6367 (struct face): Define members font_info and extra unconditionally.
6368
6369 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
6370 ftfont_info only when HAVE_LIBOTF is defined.
6371
6372 2008-02-01 Andreas Schwab <schwab@suse.de>
6373
6374 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
6375 and end.
6376
6377 2008-02-01 Jason Rumney <jasonr@gnu.org>
6378
6379 * w32font.c (w32font_driver): Add new fields.
6380
6381 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
6382
6383 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
6384 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
6385 (LIBES): Add @M17N_FLT_CFLAGS@.
6386
6387 * composite.c (compose_text): Don't treat the new style
6388 composition specially.
6389
6390 * emacs.c (main): Call syms_of_font unconditionally.
6391
6392 * font.h (FONT_ENTITY_NOT_LOADABLE)
6393 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
6394 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
6395 (struct font_driver): New member shape.
6396 (font_registry_charsets): Extern it.
6397 (font_find_for_lface, font_prepare_composition): Adjust prototype.
6398 (font_otf_capability, font_drive_otf): Delete their externs.
6399
6400 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
6401 (font_charset_alist, font_registry_charsets): Move from xfont.c
6402 and rename.
6403 (font_prop_validate_otf): New function.
6404 (font_property_table): Register it for QCotf.
6405 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
6406 (font_drive_otf): Delete.
6407 (font_prepare_composition): New arg F. Adjust for the change of
6408 lispy gstring.
6409 (font_find_for_lface): New arg C.
6410 (font_load_for_face): Adjust for the change of font_find_for_lface.
6411 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
6412 lispy gstring.
6413 (Ffont_shape_text): New function.
6414 (Fopen_font): If the font size is not given, use 12-pixel.
6415 (Ffont_at): New arg STRING.
6416 (syms_of_font): Initalize font_charset_alist.
6417 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
6418 conditionally.
6419
6420 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
6421 fonts of the same font-spec. Change the format of RFONT-DEF.
6422 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
6423 Adjust for the change of RFONT-DEF.
6424 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
6425
6426 * ftfont.h: New file.
6427
6428 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
6429 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
6430 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
6431 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
6432 font_otf_capability and font_drive_otf, set ftfont_shape.
6433 (ftfont_list): Adjust for the change of :otf property value.
6434 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
6435 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
6436 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
6437 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
6438 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
6439 (otf_gstring, gstring, m17n_flt_initialized): New variables.
6440
6441 * w32term.c (x_draw_composite_glyph_string_foreground):
6442 Adjust for the change of lispy gstring.
6443
6444 * xdisp.c (handle_composition_prop): Adjust for the change of
6445 lispy gstring. Call a function for auto-composition with the
6446 third arg it->window.
6447 (fill_composite_glyph_string): Adjust for the change of lispy string.
6448 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
6449
6450 * xfaces.c (set_font_frame_param): Adjust for the change of
6451 font_find_for_lface.
6452
6453 * xfont.c (x_font_charset_alist): Move to font.c and rename.
6454 (xfont_registry_charsets): Likewise. Change caller.
6455 (syms_of_xfont): Don't handle x_font_charset_alist.
6456
6457 * xftfont.c: Include "ftfont.h".
6458 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
6459 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
6460 (xftfont_close) [HAVE_LIBOTF]: Close otf.
6461 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
6462 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
6463 Set xftfont_driver.shape to xftfont_shape.
6464
6465 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
6466 the change of lispy gstring.
6467
6468 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
6469
6470 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
6471
6472 2008-02-01 Jason Rumney <jasonr@gnu.org>
6473
6474 * w32font.c (w32font_draw): Fill background manually.
6475
6476 2008-02-01 Jason Rumney <jasonr@gnu.org>
6477
6478 * font.c (Qfontp): Remove unused symbol.
6479 (QCantialias): New symbol.
6480 (syms_of_font): Define it.
6481 (font_property_table): Set a validator for QCantialias.
6482
6483 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
6484 Define if not already.
6485 (QCfamily): Share with xfaces.c.
6486 (Qstandard, Qsubpixel, Qnatural): New symbols.
6487 (syms_of_w32font): Define them. Don't define QCfamily here.
6488 (w32_antialias_type, lispy_antialias_type): New functions.
6489 (w32_enumfont_pattern_entity): New arg requested_font.
6490 Set antialias parameter if non-default was requested.
6491 (fill_in_logfont): Fill in lfQuality if :antialias specified.
6492
6493 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
6494
6495 * lread.c (read1): Undo the previous change.
6496
6497 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
6498
6499 * frame.c (Fdelete_frame): Call font_update_drivers only when
6500 USE_FONT_BACKEND is defined.
6501
6502 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
6503
6504 * font.h (struct font_bitmap): New member bits_per_pixel.
6505 (struct font_driver): New members start_for_frame and end_for_frame.
6506 (struct font_data_list): New struct.
6507 (font_put_frame_data, font_get_frame_data): Extern them.
6508
6509 * frame.h (struct frame): New member font_data_list.
6510
6511 * font.c (font_update_drivers): Call driver->start_for_frame and
6512 driver->end_for_frame at proper timings.
6513 (font_put_frame_data, font_get_frame_data): New functions.
6514 (Ffont_spec): Add usage in the docstring.
6515
6516 * frame.c (make_frame): Initialize f->font_data_list to NULL.
6517 (Fdelete_frame): Call font_update_drivers.
6518
6519 * xftfont.c (struct xftface_info): Delete the member xft_draw.
6520 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
6521 (xftfont_get_xft_draw): New function.
6522 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
6523 (xftfont_end_for_frame): New function.
6524 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
6525
6526 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
6527 Change argument. Cache GCs in the per-frame data.
6528 (struct ftxfont_frame_data): New struct.
6529 (ftxfont_draw_bitmap): New arg gc_fore and flush.
6530 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
6531 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
6532 (ftxfont_end_for_frame): New function.
6533 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
6534
6535 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
6536
6537 2008-02-01 Kenichi Handa <handa@m17n.org>
6538
6539 * xselect.c (Vselection_coding_system)
6540 (Vnext_selection_coding_system): Delete them.
6541 (syms_of_xselect): Don't declare selection-coding-system and
6542 next-selection-coding-system. They are declared in select.el.
6543
6544 2008-02-01 Jason Rumney <jasonr@gnu.org>
6545
6546 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
6547
6548 * w32fns.c: Include imm.h.
6549 (get_composition_string_fn, get_ime_context_fn): New optional
6550 system functions.
6551 (globals_of_w32fns): Load them from imm32.dll.
6552 (ignore_ime_char): New flag.
6553 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
6554 WM_IME_ENDCOMPOSITION messages.
6555
6556 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
6557 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
6558
6559 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
6560
6561 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
6562 (READCHAR_REPORT_MULTIBYTE): New macro.
6563 (readchar): New 2nd arg MULTIBYTE.
6564 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
6565 Make symbol's name multibyte according to the multibyteness of the
6566 source.
6567
6568 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
6569
6570 * xfaces.c (face_for_overlay_string): Call lookup_face with
6571 correct arguments (fix of synching with the trunk).
6572
6573 2008-02-01 Kenichi Handa <handa@m17n.org>
6574
6575 * font.c (font_prop_validate_symbol, font_prop_validate_style)
6576 (font_prop_validate_non_neg, font_prop_validate_spacing):
6577 Delete argument prop_index.
6578 (font_property_table): Change arguments to validater. Change Callers.
6579 (font_lispy_object): Delete.
6580 (font_at): Use font_find_object instead fo font_lispy_object.
6581
6582 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
6583
6584 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
6585 and file names.
6586
6587 2008-02-01 Jason Rumney <jasonr@gnu.org>
6588
6589 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
6590 (font_matches_spec): Remove debug output.
6591 (add_font_entity_to_list): Avoid using substituted fonts.
6592
6593 2008-02-01 Jason Rumney <jasonr@gnu.org>
6594
6595 * doc.c (Fsnarf_documentation):
6596 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
6597
6598 2008-02-01 Miles Bader <miles@gnu.org>
6599
6600 * dispextern.h (struct glyph_row): Only define "clip" field if
6601 HAVE_WINDOW_SYSTEM is defined.
6602
6603 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
6604
6605 Fix up multi-tty merge.
6606
6607 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
6608 and indentation.
6609
6610 * xfaces.c (free_realized_face, clear_face_gcs):
6611 Include font_done_for_face in the input_blocked section, just in case.
6612
6613 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
6614 (get_char_face_and_encoding): Undo last change and remove the *other*
6615 duplicate definition (i.e. keep the one that's better scoped and that
6616 includes code for the font-backend).
6617
6618 * terminal.c (create_terminal): Default keyboard_coding to
6619 `no-conversion' and terminal_coding to `undecided'.
6620
6621 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
6622
6623 * fontset.c (free_realized_fontsets): Check that the table entry does
6624 contain a fontset before trying to compare it to `base'.
6625
6626 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
6627 syms_of_charset, and syms_of_coding earlier because init_window_once
6628 now needs Vcoding_system_hash_table to be setup.
6629
6630 * coding.h (default_buffer_file_coding): Remove.
6631
6632 * coding.c (default_buffer_file_coding): Remove.
6633 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
6634 than ->symbol, and use the terminal-local coding system.
6635 (syms_of_coding): Don't setup the coding-systems that are not
6636 terminal-local.
6637 (Fdefine_coding_system_internal): Use XCAR/XCDR.
6638
6639 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
6640 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
6641
6642 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
6643 in chartab.c and were re-added here by mistake.
6644 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
6645
6646 * doc.c (Fsnarf_documentation):
6647 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
6648 src to etc.
6649
6650 * ChangeLog.10: Add mistakenly removed entry.
6651
6652 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
6653
6654 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
6655
6656 2008-02-01 Miles Bader <miles@gnu.org>
6657
6658 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
6659 Add extra args to FACE_FOR_CHAR.
6660
6661 2008-02-01 Kenichi Handa <handa@m17n.org>
6662
6663 * keymap.c (where_is_internal_1): If key is a cons, store the copy
6664 in sequence.
6665
6666 * chartab.c (map_sub_char_table, map_char_table): If the range
6667 contains just one character, call the function with that character
6668 even if the depth is not 3.
6669
6670 2008-02-01 Jason Rumney <jasonr@gnu.org>
6671
6672 * w32font.c (w32font_text_extents): Calculate metrics for the
6673 whole string.
6674
6675 2008-02-01 Jason Rumney <jasonr@gnu.org>
6676
6677 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
6678
6679 2008-02-01 Jason Rumney <jasonr@gnu.org>
6680
6681 * w32term.c (x_set_glyph_string_clipping): Use
6682 get_glyph_string_clip_rects.
6683 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
6684 Adjust for the change of struct glyph_string.
6685
6686 * w32font.c (w32font_draw): Do clipping here.
6687
6688 2008-02-01 Kenichi Handa <handa@m17n.org>
6689
6690 * xftfont.c (xftfont_draw): Adjust for the change of struct
6691 glyph_string.
6692
6693 * xterm.c (x_set_glyph_string_clipping): Use
6694 get_glyph_string_clip_rects.
6695 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
6696 Adjust for the change of struct glyph_string.
6697
6698 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
6699 the resulting clip(s}.
6700 (expose_overlaps): Add arg r. Change callers. Set it to
6701 row->clip temporarily.
6702 (expose_window): Redraw rows overlapping the exposed area.
6703
6704 * dispextern.h (struct glyph_row): New member clip.
6705 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
6706 clip_height, new member clip, and num_clips.
6707
6708 2008-02-01 Kenichi Handa <handa@m17n.org>
6709
6710 * data.c (Fchar_or_string_p): Fix docstring.
6711
6712 2008-02-01 Kenichi Handa <handa@m17n.org>
6713
6714 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
6715 create a temporal XftDraw object.
6716
6717 2008-02-01 Kenichi Handa <handa@m17n.org>
6718
6719 * font.c (Ffontp): Fix docstring.
6720
6721 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
6722 strong evidence of ISO-2022.
6723
6724 2008-02-01 Kenichi Handa <handa@m17n.org>
6725
6726 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
6727 SYNTAX_ENTRY_FOLLOW_PARENT.
6728
6729 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
6730
6731 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
6732 its type.
6733 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
6734 Update to the new type of weak_hash_tables and next_weak.
6735
6736 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
6737 a plain C pointer to Lisp_Hash_Table.
6738
6739 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
6740 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
6741 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
6742 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
6743 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
6744 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
6745 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
6746 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
6747 (GC_EQ): Remove since they've been identical to their non-GC_
6748 alter-egos ever since the markbit was eradicated.
6749
6750 * alloc.c:
6751 * buffer.c:
6752 * buffer.h:
6753 * data.c:
6754 * fileio.c:
6755 * filelock.c:
6756 * fns.c:
6757 * frame.h:
6758 * lisp.h:
6759 * macterm.c:
6760 * print.c:
6761 * process.c:
6762 * w32fns.c:
6763 * w32menu.c:
6764 * w32term.c:
6765 * xfns.c:
6766 * xmenu.c:
6767 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
6768
6769 2008-02-01 Kenichi Handa <handa@m17n.org>
6770
6771 * chartab.c (map_sub_char_table): Make it work for the top-level
6772 char-table. Fix handling of parent char-table.
6773 (map_char_table): Adjust for the above change.
6774
6775 2008-02-01 Jason Rumney <jasonr@gnu.org>
6776
6777 * w32font.c (Qgdi): Rename from Qw32.
6778
6779 2008-02-01 Jason Rumney <jasonr@gnu.org>
6780
6781 * w32bdf.c (get_quoted_string): Make function static.
6782
6783 2008-02-01 Kenichi Handa <handa@m17n.org>
6784
6785 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
6786 bigger ascent and descent than those of the font, use them as
6787 font's ascent and descent.
6788
6789 2008-02-01 Kenichi Handa <handa@m17n.org>
6790
6791 * Makefile.in (${lispsource}international/charprop.el): Move this
6792 target within "#ifdef HAVE_UNIDATA" and "#endif".
6793
6794 2008-02-01 Kenichi Handa <handa@m17n.org>
6795
6796 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
6797 (shortlisp): Add ../lisp/language/tai-viet.el.
6798
6799 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
6800
6801 * Makefile.in (${lispsource}international/charprop.el): Depend on
6802 temacs${EXEEXT}.
6803
6804 2008-02-01 Jason Rumney <jasonr@gnu.org>
6805
6806 * w32font.c (w32font_close): Delete the GDI font object.
6807
6808 * w32menu.c: Include character.h.
6809
6810 * w32proc.c: Likewise.
6811
6812 * w32select.c: Likewise.
6813
6814 * makefile.w32-in (w32proc.o): Depend on character.h.
6815
6816 2008-02-01 Jason Rumney <jasonr@gnu.org>
6817
6818 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
6819
6820 * w32menu.c (syms_of_w32menu): Likewise.
6821
6822 * w32proc.c (syms_of_ntproc): Likewise.
6823
6824 * w32select.c (syms_of_w32select): Likewise.
6825
6826 * w32term.c (syms_of_w32term): Likewise.
6827
6828 2008-02-01 Jason Rumney <jasonr@gnu.org>
6829
6830 * w32font.c (w32font_draw): Delete brush after using it.
6831
6832 2008-02-01 Jason Rumney <jasonr@gnu.org>
6833
6834 * w32font.c (w32font_open): Don't set font_idx.
6835 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
6836 to font settings.
6837 (w32font_draw): Fill background explicitly.
6838
6839 2008-02-01 Jason Rumney <jasonr@gnu.org>
6840
6841 * w32term.c (w32_initialize): Don't call w32font_initialize.
6842
6843 * w32font.c (w32font_info): Remove subranges.
6844 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
6845 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
6846 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
6847 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
6848 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
6849 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
6850 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
6851 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
6852 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
6853 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
6854 New symbols.
6855 (font_callback_data): New struct.
6856 (w32font_list, w32font_match): Use it.
6857 (w32font_open): Don't populate subranges.
6858 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
6859 (w32font_encode_char): Always return unicode code-point as-is.
6860 (w32font_text_extents): Supply a tranformation matrix to
6861 GetGlyphOutline. Never look up by glyph index. Avoid looping
6862 twice. Use unicode version of GetTexExtentPoint32 instead of
6863 glyph index version.
6864 (set_fonts_frame): Remove.
6865 (w32_enumfont_pattern_entity): Add frame parameter, use it to
6866 set frame parameter. Use backward compatible fake foundries.
6867 Save generic family in extra slot under QCfamily. Make width slot
6868 constant. Save QCspacing value. Save list of scripts instead of
6869 binary subranges.
6870 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
6871 (add_font_entity_to_list): Use font_callback_data struct. Filter
6872 unwanted fonts.
6873 (add_one_font_entity_to_list): Use font_callback_data struct.
6874 (w32_registry): Default to iso10646_1.
6875 (fill_in_logfont): Use dpi from extra slot. Don't bother with
6876 string font registries. Don't fill in font name if it is a generic
6877 family name, fill family instead. Use spacing, family and script
6878 extra info to fill pitch, family and charset fields.
6879 (list_all_matching_fonts): Use font_callback_data struct.
6880 (unicode_range_for_char): Remove.
6881 (font_supported_scripts): New function.
6882 (w32font_initialize): Remove.
6883 (syms_of_w32font): Update which symbols are defined.
6884
6885 2008-02-01 Jason Rumney <jasonr@gnu.org>
6886
6887 * font.c (font_pixel_size): Reverse assq_no_quit args.
6888
6889 * w32term.h (FONT_WIDTH): Report max width, not average.
6890 (FONT_MAX_WIDTH): Remove.
6891 (FONT_AVG_WIDTH): New macro.
6892
6893 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
6894 redefinition of FONT_WIDTH.
6895
6896 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
6897 (w32_cache_char_metrics): Use FONT_WIDTH.
6898
6899 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
6900
6901 2008-02-01 Jason Rumney <jasonr@gnu.org>
6902
6903 * w32font.c (w32font_open): Make lfHeight negative.
6904
6905 * w32fns.c (x_default_font_parameter): Use new style font name.
6906 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
6907
6908 2008-02-01 Jason Rumney <jasonr@gnu.org>
6909
6910 * w32font.c (QCsubranges): New symbol.
6911 (w32font_open, w32font_has_char): Get subranges from subproperty
6912 of extra.
6913 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
6914 (syms_of_w32font): Define :subranges symbol.
6915
6916 * font.c (font_put_extra): Expose externally.
6917
6918 * font.h (font_put_extra): Move declaration from font.c.
6919
6920 * font.c (Ffont_get): Use font driver to determine otf capability.
6921 (adjust_anchor): Check if driver defines anchor_point before using.
6922
6923 * w32font.c (w32font_open): Handle size, height and pixel_size better.
6924 (w32font_draw): Use options.
6925 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
6926 Fix detection of truetype fonts.
6927 (registry_to_w32_charset): Handle charsets other than iso8859-1
6928 expressed as lisp symbols.
6929 (w32_registry): Express charset as lisp symbol.
6930 (fill_in_logfont): Reverse pixel and point height logic.
6931 Don't set width here. Set quality to default.
6932
6933 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
6934 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
6935
6936 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
6937 Remove redundant loop and allocation.
6938
6939 * makefile.w32-in (font.o, w32font.o): New objects.
6940 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
6941 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
6942
6943 * xdisp.c (fill_composite_glyph_string): Make the first arg to
6944 STORE_XCHARB a valid l-value.
6945
6946 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
6947 calculations for non-Truetype fonts.
6948 (x_draw_glyph_string): Sync with xterm.c.
6949 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
6950 Remove redundant code.
6951 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
6952
6953 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
6954 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
6955
6956 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
6957 (x_to_w32_charset, w32_to_x_charset): Expose externally.
6958
6959 * w32font.c: New file for w32 font backend.
6960
6961 2008-02-01 Kenichi Handa <handa@m17n.org>
6962
6963 * term.c: Don't include "buffer.h" twice.
6964
6965 2008-02-01 Kenichi Handa <handa@m17n.org>
6966
6967 * character.c (Funibyte_string): New function.
6968 (syms_of_character): Defsubr it.
6969
6970 2008-02-01 Jason Rumney <jasonr@gnu.org>
6971
6972 * w32term.c [USE_FONT_BACKEND]:
6973 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
6974 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
6975 (x_draw_glyph_string, x_draw_glyph_string_foreground)
6976 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
6977 (x_free_frame_resources): Sync with xterm.c.
6978
6979 2008-02-01 Andreas Schwab <schwab@suse.de>
6980
6981 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
6982 char-table size.
6983
6984 2008-02-01 Kenichi Handa <handa@m17n.org>
6985
6986 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
6987
6988 2008-02-01 Kenichi Handa <handa@m17n.org>
6989
6990 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
6991 font_otf_gpos, add font_drive_otf.
6992
6993 * fontset.c (fontset_find_font): Pay attention to font size
6994 specified for a font.
6995 (reorder_font_vector): Check contents of font_def.
6996
6997 * font.c (struct otf_list): Delete it.
6998 (otf_list): Make it a lisp variable.
6999 (otf_open): Use lispy otf_list.
7000 (generate_otf_features): Rename from parse_gsub_gpos_spec.
7001 (check_otf_features): New function.
7002 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
7003 New functions.
7004 (font_drive_otf): New function merging font_otf_gsub and
7005 font_otf_gpos.
7006 (font_open_for_lface): New arg spec. Change argument order.
7007 (font_load_for_face): Adjust for the change of font_open_for_lface.
7008 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
7009 Ffont_otf_gpos.
7010 (syms_of_font): Staticpro otf_list. Delete defsubr of
7011 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
7012
7013 * xfaces.c (set_font_frame_param): Adjust for the change of
7014 font_open_for_lface.
7015
7016 * font.h (font_open_for_lface): Adjust prototype.
7017 (struct font_driver): Delete members otf_gsub and otf_gpos, add
7018 member otf_drive.
7019 (font_otf_gsub, font_otf_gpos): Delete externs.
7020 (font_drive_otf): Extern it.
7021
7022 2008-02-01 Kenichi Handa <handa@m17n.org>
7023
7024 * font.c (font_at): If the window W is not on a window system,
7025 return Qnil.
7026
7027 * coding.c (produce_chars, encode_coding): Don't call
7028 insert_from_gap if no characters to produce.
7029
7030 2008-02-01 Kenichi Handa <handa@m17n.org>
7031
7032 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
7033 Fclear_face_cache.
7034
7035 * xfaces.c (face_for_font): Check also face->font==font->font.font.
7036
7037 2008-02-01 Miles Bader <miles@gnu.org>
7038
7039 * emacs.c (main): Change default value of `enable_font_backend' to 1.
7040 Parse "--disable-font-backend" option.
7041 (standard_args): Add "--disable-font-backend" option.
7042
7043 2008-02-01 Kenichi Handa <handa@m17n.org>
7044
7045 * fontset.c (fontset_find_font): New function.
7046 (fontset_font): Use fontset_find_font.
7047 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
7048 Register the specified font for all Latin characters.
7049 (new_fontset_from_font): Register the specified font for all Latin
7050 characters.
7051 (dump_fontset): For a realized fontset, include the base fontset
7052 name in the returned vector.
7053
7054 2008-02-01 Kenichi Handa <handa@m17n.org>
7055
7056 * character.h (CHAR_STRING): Cast C to unsigned on calling
7057 char_string.
7058
7059 * character.c (char_string): Type of arg C changed to unsigned.
7060 Signal an error if C is an invalid character code.
7061
7062 * editfns.c (general_insert_function, Fchar_to_string):
7063 Use CHARACTERP, not INTEGERP.
7064
7065 2008-02-01 Kenichi Handa <handa@m17n.org>
7066
7067 * character.h (MIN_MULTIBYTE_LEADING_CODE)
7068 (MAX_MULTIBYTE_LEADING_CODE): New macros.
7069
7070 * regex.c (analyse_first): Fix for multibyte characters in "case
7071 charset:" and "case categoryspec:".
7072
7073 2008-02-01 Andreas Schwab <schwab@suse.de>
7074
7075 * Makefile.in (LIBES): Move standard libraries to the end.
7076
7077 2008-02-01 Kenichi Handa <handa@m17n.org>
7078
7079 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
7080 nonzero, don't shrink the buffer nextb.
7081
7082 * buffer.h (struct buffer_text): New member inhibit_shrinking.
7083
7084 * coding.c (coding_alloc_by_making_gap): New arg offset.
7085 (alloc_destination): Call coding_alloc_by_making_gap with the arg
7086 offset.
7087 (decode_coding_iso_2022): Update coding->safe_charsets.
7088 (decode_coding_gap): Temporarily set
7089 current_buffer->text->inhibit_shrinking to 1.
7090
7091 2008-02-01 Kenichi Handa <handa@m17n.org>
7092
7093 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
7094 indexing into elements of s->cmp and s->char2b.
7095
7096 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
7097
7098 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
7099
7100 2008-02-01 Kenichi Handa <handa@m17n.org>
7101
7102 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
7103 target_multibyte instead of multibyte.
7104 (re_match_2_internal): Call bcmp_translate with target_multibyte.
7105 (bcmp_translate): Change the argument name from multibyte to
7106 target_multibyte.
7107
7108 2008-02-01 Kenichi Handa <handa@m17n.org>
7109
7110 These changes are to compile a regexp into a pattern that can be
7111 used both for multibyte and unibyte targets.
7112
7113 * Makefile.in (search.o): Depend on charset.h.
7114
7115 * character.c (multibyte_char_to_unibyte_safe): New function.
7116
7117 * search.c: Include "charset.h".
7118 (compile_pattern_1): Delete argument multibyte. Don't set
7119 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
7120 (compile_pattern): Don't compare cp->buf.target_multibyte.
7121 Compare cp->buf.charset_unibyte.
7122 (compile_pattern): Set cp->buf.target_multibyte.
7123
7124 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
7125
7126 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
7127
7128 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
7129 multibyte. Change callers.
7130 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
7131 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
7132 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
7133 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
7134 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
7135 (regex_compile): Make the compiled pattern usable both for
7136 multibyte and unibyte targets.
7137 (analyse_first): Make the fastmap usable both for multibyte and
7138 unibyte targets.
7139 (TRANSLATE_VIA_MULTIBYTE): Delete.
7140 (re_match_2_internal): Pay attention to the case that the
7141 multibyteness of bufp and target may be different.
7142
7143 2008-02-01 Kenichi Handa <handa@m17n.org>
7144
7145 * xdisp.c (x_produce_glyphs): When a font is not found, make the
7146 empty box occupy at least one column width.
7147
7148 2008-02-01 Miles Bader <miles@gnu.org>
7149
7150 * Makefile.in: Remove redundant HAVE_XFT clause.
7151
7152 2008-02-01 Kenichi Handa <handa@m17n.org>
7153
7154 * xrdb.c (x_load_resources): Setup the default fontSet X reource.
7155
7156 2008-02-01 Kenichi Handa <handa@m17n.org>
7157
7158 * fontset.c (Finternal_char_font): Fix for the case of POSITION
7159 being nil.
7160
7161 2008-02-01 Kenichi Handa <handa@m17n.org>
7162
7163 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
7164
7165 2008-02-01 Kenichi Handa <handa@m17n.org>
7166
7167 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
7168
7169 2008-02-01 Kenichi Handa <handa@m17n.org>
7170
7171 * search.c (simple_search): Fix previous change.
7172
7173 2008-02-01 Kenichi Handa <handa@m17n.org>
7174
7175 * xftfont.c (ftfont_font_format): Extern declaration.
7176
7177 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
7178
7179 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
7180 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
7181
7182 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
7183 (ftfont_font_format): Fix previous change.
7184
7185 * font.h (Ffont_xlfd_name): EXFUN it.
7186
7187 * font.c (font_parse_xlfd): Fix the array size of `f'.
7188 (register_font_driver): Use EQ to compare driver->type.
7189
7190 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
7191 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
7192 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
7193
7194 2008-02-01 Kenichi Handa <handa@m17n.org>
7195
7196 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
7197 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
7198
7199 2008-02-01 Kenichi Handa <handa@m17n.org>
7200
7201 * xfont.c (xfont_open): Set font->format.
7202
7203 * xftfont.c (xftfont_open): Set font->format.
7204
7205 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
7206 (ftfont_list): Include FC_FONTFORMAT in FcObject.
7207 (ftfont_open): Set font->format.
7208 (ftfont_font_format): New function.
7209
7210 * font.h (struct font): New memeber format.
7211
7212 * font.c (Qopentype): New variable.
7213 (syms_of_font): Defsym it.
7214 (Fquery_font): Change the format of the last element of the return
7215 value.
7216
7217 2008-02-01 Kenichi Handa <handa@m17n.org>
7218
7219 * xfns.c (xic_create_xfontset): Try the default fontset name as a
7220 last resort.
7221
7222 2008-02-01 Kenichi Handa <handa@m17n.org>
7223
7224 * coding.c (detect_coding_charset): Fix detection of multi-byte
7225 charset.
7226
7227 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
7228
7229 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
7230
7231 2008-02-01 Kenichi Handa <handa@m17n.org>
7232
7233 * xdisp.c (get_next_display_element): Set it->face_id for the
7234 first component of a composition.
7235 (x_produce_glyphs): Check if the font is changed or not for composition.
7236
7237 2008-02-01 Kenichi Handa <handa@m17n.org>
7238
7239 * fontset.c (Qlatin): New variable.
7240 (syms_of_fontset): Define it as a lisp symbol.
7241 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
7242
7243 2008-02-01 Kenichi Handa <handa@m17n.org>
7244
7245 * font.c (font_unparse_fcname): Pay attention to the case that
7246 some of font property is a null string.
7247
7248 2008-02-01 Kenichi Handa <handa@m17n.org>
7249
7250 * term.c: Include "composite.h".
7251 (encode_terminal_code): Output all components of composition.
7252 Check the size of encode_terminal_src.
7253 (produce_glyphs): For composition, call produce_composite_glyph.
7254 (append_composite_glyph, produce_composite_glyph): New functions.
7255
7256 * xdisp.c (x_produce_glyphs): In handling composition, if a font
7257 is not found, get font_info from the current ascii face.
7258
7259 2008-02-01 Kenichi Handa <handa@m17n.org>
7260
7261 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
7262 buffer-file-name to Qnil before calling insert_from_buffer.
7263
7264 * font.c (font_unparse_fcname): Pay attention to the case that
7265 foundry is a null string.
7266
7267 2008-02-01 Kenichi Handa <handa@m17n.org>
7268
7269 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
7270
7271 * font.c (Qunicode_sip): New variable.
7272 (syms_of_font): Declare it as a Lisp symbol.
7273
7274 * font.h (Qunicode_sip): Extern it.
7275
7276 2008-02-01 Kenichi Handa <handa@m17n.org>
7277
7278 * composite.c (get_composition_id): Pay attention to TAB component.
7279
7280 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
7281 TAB. Adjust for the change of s->char2b which always points to
7282 the first elememnt of allocated memory.
7283
7284 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
7285
7286 * xdisp.c (handle_composition_prop): Set it->c to the first
7287 non-TAB component.
7288 (fill_composite_glyph_string): Change argument.
7289 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
7290 (x_produce_glyphs): Fix handling of left/right padding.
7291
7292 2008-02-01 Kenichi Handa <handa@m17n.org>
7293
7294 * coding.c (detect_coding_system): Fix for handling off
7295 inhibit_iso_escape_detection. Fix for the case that no coding
7296 system is defined for a specific coding category.
7297
7298 2008-02-01 Kenichi Handa <handa@m17n.org>
7299
7300 * font.c (font_matching_entity): Delete unused local var.
7301
7302 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
7303 opening a font.
7304
7305 * fileio.c (Finsert_file_contents): On recovering a file, assume
7306 Unix-like eol.
7307 (choose_write_coding_system): On auto-saving a file, force
7308 Unix-like eol.
7309
7310 * coding.c (setup_coding_system): Fix setting of
7311 coding->common_flags based on eol_type.
7312 (coding_inherit_eol_type): If PARENT is not nil, be sure to
7313 inherit from it.
7314
7315 2008-02-01 Kenichi Handa <handa@m17n.org>
7316
7317 * alloc.c (NSTATICS): Increas to 0x600.
7318
7319 2008-02-01 Kenichi Handa <handa@m17n.org>
7320
7321 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
7322 (ftfont_list): Don't check :name property.
7323 (ftfont_match): New function.
7324 (ftfont_pattern_entity): If the pattern doesn't contain
7325 FC_SPACING, don't assuce FC_MONO.
7326
7327 * font.h (struct font_driver): New member `match'.
7328 (font_update_drivers): Adjust prototype.
7329
7330 * font.c (font_parse_fcname, font_parse_name): Don't change :name
7331 property of FONT.
7332 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
7333 them unconditionally.
7334 (font_matching_entity): New function.
7335 (font_open_by_name): Try font_matching_entity if exact match is
7336 not found.
7337 (font_update_drivers): Delete the arg FONT. Return a list of
7338 actually used backends. Don't free faces, font caches here.
7339 Don't store data in frame parameters. Don't call x_set_font.
7340 (Ffont_spec): Store :name property as is.
7341 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
7342 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
7343 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
7344 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
7345 Call font->driver->otf_gsub instead of font_otf_gsub.
7346
7347 * frame.c (x_set_font_backend): Do more works that were done in
7348 font_update_drivers before.
7349
7350 * xfont.c (xfont_match): New function.
7351 (xfont_driver): Set xfont_driver.match to xfont_match.
7352 (xfont_draw): Set font in GC if necessary.
7353
7354 * ftxfont.c (ftxfont_match): New function.
7355 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
7356
7357 * xftfont.c (xftfont_match): New function.
7358 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
7359
7360 2008-02-01 Kenichi Handa <handa@m17n.org>
7361
7362 * font.h (struct font): New member scalable.
7363 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
7364 (font_otf_gsub): Adjust prototype.
7365
7366 * font.c (font_otf_capability): Fix handling of the default langsys.
7367 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
7368 Check the contents of SPEC.
7369 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
7370 (check_gstring): New function.
7371 (REPLACEMENT_CHARACTER): New macro.
7372 (font_otf_gsub): New arg alternate_subst. Be sure to set all
7373 glyph codes of GSTRING.
7374 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
7375 (font_prepare_composition): Set cmp->glyph_len.
7376 (font_open_entity): Set font->scalable.
7377 (Ffont_get): Handle :otf property.
7378 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
7379 functions.
7380 (Fquery_font): Use font->font.full_name.
7381 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
7382 Sfont_otf_alternates.
7383
7384 * ftfont.c (ftfont_open): Set font->font.full_name and
7385 font->font.name properly. Fix calculation of font->font.height
7386 and font->min_width.
7387
7388 * ftxfont.c (ftxfont_create_gcs): New function.
7389 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
7390 (ftxfont_draw_backgrond): Fix filling region.
7391 (ftxfont_default_fid): New function.
7392 (ftxfont_open): Set xfotn->fid to the return value of
7393 ftxfont_default_fid.
7394 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
7395 (ftxfont_done_face): Free only GCs that are created by
7396 ftxfont_create_gcs.
7397 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
7398
7399 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
7400 Clip to src->width, etc (not src->clip_XXX).
7401
7402 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
7403 FontBackend frame parameter.
7404
7405 2008-02-01 Kenichi Handa <handa@m17n.org>
7406
7407 * font.h (struct font_driver_list): New member `on'.
7408 (Fclear_font_cache): EXFUN it.
7409 (font_update_drivers): Extern it.
7410
7411 * font.c (font_unparse_fcname): Fix typo (swidth->width).
7412 (font_list_entities): Check driver_list->on.
7413 (register_font_driver): Initalize `on' member to 0.
7414 (font_update_drivers): New function.
7415 (Fclear_font_cache): Check driver_list->on.
7416
7417 * frame.h (Qfont_backend): Extern it.
7418 (x_set_font_backend): Extern it.
7419
7420 * frame.c (Qfont_backend): New variable.
7421 (frame_parms): New element for font-backend.
7422 (x_set_font_backend): New function.
7423
7424 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
7425 FontBackend frame parameter.
7426 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
7427 x_set_font_backend.
7428
7429 * xfont.c (xfont_list): Don't try listing by :name property if the
7430 name is not for XLFD.
7431
7432 2008-02-01 Kenichi Handa <handa@m17n.org>
7433
7434 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
7435 (LGLYPH_SET_TO): New macros.
7436 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
7437 element of G is vector or not.
7438 (font_at): Extern it.
7439
7440 * font.c: Include window.h.
7441 (font_lispy_object): New function.
7442 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
7443 end of valid glyph.
7444 (font_close_object): Fix getting (struct font *).
7445 (font_at): New function.
7446 (Ffont_get): If FONT is a font-object, get entity from it.
7447 (Ffont_make_gstring): Initialize elements of glyphs with nil.
7448 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
7449 range check.
7450 (Ffont_at): New function.
7451 (syms_of_font): Defsubr Sfont_at.
7452
7453 * xdisp.c (it_props): Move the entry for Qauto_composed to just
7454 before the entry for Qcomposition.
7455 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
7456 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
7457 the font in gstring.
7458 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
7459 LGLYPH_FORM (g) to detect the end of valid glyph.
7460 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
7461 we are composing with gstring.
7462
7463 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
7464 Check if adjustment is vector or not.
7465
7466 * Makefile.in (font.o): Make it depends on window.h.
7467
7468 2008-02-01 Kenichi Handa <handa@m17n.org>
7469
7470 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
7471 adjustment is vector or not.
7472
7473 2008-02-01 Miles Bader <miles@gnu.org>
7474
7475 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
7476
7477 2008-02-01 Kenichi Handa <handa@m17n.org>
7478
7479 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
7480 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
7481 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
7482
7483 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
7484 (DEVICE_DELTA): Fix typo.
7485 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
7486 LGLYPH format.
7487
7488 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
7489 the change of LGLYPH format.
7490
7491 2008-02-01 Kenichi Handa <handa@m17n.org>
7492
7493 * ftfont.c (ftfont_list): Fix typo.
7494 (ftfont_build_basic_charsets): Don't include letters with diacritics.
7495
7496 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
7497
7498 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
7499
7500 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
7501 xftface_info is non-NULL.
7502
7503 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
7504
7505 * ftfont.c (ftfont_list): Move misplaced #endif.
7506
7507 2008-02-01 Kenichi Handa <handa@m17n.org>
7508
7509 * ftfont.c (ftfont_list): Pay attention to the case that
7510 FC_CAPABILITY is not defined.
7511
7512 2008-02-01 Kenichi Handa <handa@m17n.org>
7513
7514 * xftfont.c (xftfont_open): Set charset related members to -1.
7515
7516 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
7517 QCname.
7518 (ftfont_open): Set charset related members to -1.
7519
7520 * fontset.c (Votf_script_alist): New variable.
7521 (syms_of_fontset): Initialize it.
7522 (fontset_font): Delete unused variable.
7523
7524 * fontset.h (Votf_script_alist): Extern it.
7525
7526 * font.c (font_find_for_lface): Optimize code.
7527
7528 * font.h (font_close_object, font_merge_old_spec): Extern them.
7529
7530 2008-02-01 Kenichi Handa <handa@m17n.org>
7531
7532 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
7533 (syms_of_font): Initialize them.
7534 (font_pixel_size): Allow float value in dpi.
7535 (font_prop_validate_type): Delete.
7536 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
7537 Change caller.
7538 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
7539 (font_prop_validate_extra): Delete.
7540 (font_prop_validate_spacing): New function.
7541 (font_property_table): Add elements for all known properties.
7542 (get_font_prop_index): Rename from check_font_prop_name. New
7543 argument FROM. Change caller.
7544 (font_prop_validate): Validate all known properties.
7545 (font_put_extra): Delete argument force. Change caller.
7546 (font_expand_wildcards): Make it static. Fix the way of shrinking
7547 the possible range.
7548 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
7549 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
7550 Change caller.
7551 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
7552 (font_parse_fcname): Delete argument merge. Fix parsing of point
7553 size. Don't validate properties values here. Change caller.
7554 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
7555 (font_open_by_name): Delete unused variable.
7556 (Ffont_spec): Likewise. Validate property values.
7557 (Ffont_match_p): New function.
7558
7559 * font.h (QCscalable): Extern it.
7560 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
7561
7562 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
7563
7564 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
7565 (xfont_list_pattern): New function.
7566 (xfont_list): Use xfont_list_pattern.
7567
7568 2008-02-01 Kenichi Handa <handa@m17n.org>
7569
7570 * font.h (Flist_fonts): EXFUN it.
7571
7572 2008-02-01 Jason Rumney <jasonr@gnu.org>
7573
7574 * w32term.c (w32_initialize): Add back smoothing_type and
7575 smoothing_enabled definitions.
7576
7577 2008-02-01 Kenichi Handa <handa@m17n.org>
7578
7579 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
7580 s->face->font on determining underline position.
7581
7582 2008-02-01 Kenichi Handa <handa@m17n.org>
7583
7584 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
7585 (font_has_char): Accept font-object too.
7586 (font_find_for_lface): Try at first with a size specified in face.
7587
7588 2008-02-01 Kenichi Handa <handa@m17n.org>
7589
7590 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
7591 font_open_by_name.
7592
7593 2008-02-01 Kenichi Handa <handa@m17n.org>
7594
7595 * font.h (QCspacing, QCdpi): Extern them.
7596 (enum font_spacing): New enum.
7597 (FONT_PIXEL_SIZE_QUANTUM): New macro.
7598
7599 * font.c (POINT_TO_PIXEL): Don't divice POINT by 10.
7600 (QCspacing, QCdpi): New variables.
7601 (syms_of_font): Initialize them.
7602 (font_pixel_size): New function.
7603 (font_put_extra): New function.
7604 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
7605 in FONT_EXTRA.
7606 (font_parse_fcname): Handle enumenrated values (e.g. bold).
7607 Fix handling font size. Add QCname property that contains only
7608 unknown properties.
7609 (font_score): Change argument. Change caller. Pay attention to
7610 FONT_PIXEL_SIZE_QUANTUM.
7611 (font_sort_entites, font_list_entities, font_find_for_lface)
7612 (font_open_for_lface, font_open_by_name): Fix handling of font size.
7613 (Ffont_spec): Add QCname property that contains only unknown properties.
7614
7615 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
7616 include weight in listing pattern, instead check weight of each
7617 listed font. Don't include scalable in pattern. Pay attention to
7618 FONT_PIXEL_SIZE_QUANTUM.
7619
7620 2008-02-01 Kenichi Handa <handa@m17n.org>
7621
7622 * font.c (font_parse_fcname): Fix parsing of point-size.
7623 (font_unparse_fcname): Produce symbolic names for style properties.
7624 (font_list_entities): Handle float size correctly.
7625 (font_open_by_name): Prefer `normal' property values if the name
7626 doesn't specify them.
7627
7628 * fontset.c (Finternal_char_font): Use font_get_name, not
7629 Ffont_xlfd_name.
7630
7631 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
7632 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
7633 pattern. Don't force scalable.
7634
7635 * xftfont.c (xftfont_open): For generating a name, start from
7636 96-byte buffer.
7637
7638 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
7639
7640 * frame.h (x_new_fontset2): Fix prototype.
7641
7642 2008-02-01 Kenichi Handa <handa@m17n.org>
7643
7644 * font.h (struct font_driver): Delete member parse_name.
7645 (font_match_p, font_get_spec, font_parse_fcname)
7646 (font_unparse_fcname): Extern them.
7647 (font_get_name): Adjust prototype.
7648
7649 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
7650 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
7651 (font_expand_wildcards): Fix handling ENCODING field. Avoid
7652 unnecessary checks for weight, slant, and swidth.
7653 (font_parse_fcname): New function.
7654 (font_unparse_fcname): New function.
7655 (font_parse_name): New function.
7656 (font_match_p): New function.
7657 (font_get_name): Change return value to Lisp string.
7658 (font_get_spec): New function.
7659 (Qunspecified, Qignore_defface): Don't extern them.
7660 (font_find_for_lface): Assume that LFACE is fully specified.
7661 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
7662 object, use it for FACE.
7663 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
7664 driver->parse_name.
7665 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
7666
7667 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
7668 prototype.
7669
7670 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
7671 argument F. Don't call Fnew_fontset. Instead, directly call
7672 make_fontset.
7673
7674 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
7675
7676 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
7677 of x_new_fontset2.
7678
7679 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
7680 (Qsans__serif): New variables.
7681 (ftfont_generic_family_list): New variable.
7682 (syms_of_ftfont): Initialize the above variables.
7683 (ftfont_pattern_entity): Delete argument NAME.
7684 (ftfont_list_generic_family): New function.
7685 (ftfont_parse_name): Delete this function.
7686 (ftfont_list): Try generic family only when FcFontList found no font.
7687 (ftfont_list_family): Fix args to FcObjectSetBuild.
7688
7689 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
7690 object in attrs[LFACE_FONT_INDEX].
7691 (set_lface_from_font_name): Cancel all changes for font-backend.
7692 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
7693 function.
7694 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
7695 font object in QCfont attribute.
7696 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
7697 (realize_default_face) [USE_FONT_BACKEND]: Call
7698 set_lface_from_font_and_fontset.
7699
7700 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
7701 "fixed", and signal error here if no suitable font was found.
7702
7703 * xfont.c (xfont_parse_name): Delete this function.
7704
7705 * xftfont.c (xftfont_open): Change coding style of error
7706 handling. Generate fontconfig's fontname pattern.
7707
7708 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
7709 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
7710
7711 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
7712 Both args FONTSET and FONT_OBJECT must be existing ones.
7713
7714 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7715
7716 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
7717
7718 2008-02-01 Kenichi Handa <handa@m17n.org>
7719
7720 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
7721
7722 * font.h (struct font): Fix typo.
7723
7724 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
7725 XLFD_XXX_INDEX.
7726 (enum xlfd_field_mask): New enum.
7727 (intern_font_field): Changed argument. Change caller. If digits
7728 are followed by non-digits, return a symbol.
7729 (font_expand_wildcards): New function.
7730 (font_parse_xlfd): Fix wildcard handling.
7731 (Ffont_spec): If :name is specified, reflect the info in the other
7732 properties.
7733
7734 * ftfont.c (ftfont_pattern_entity): Fix typo.
7735 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
7736 locale.
7737
7738 2008-02-01 Kenichi Handa <handa@m17n.org>
7739
7740 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
7741
7742 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
7743 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
7744 registry doesn't specify encoding part.
7745 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
7746 (font_open_by_name): At first try parsing the name.
7747 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
7748 as Lisp symbols.
7749
7750 * fontset.c (reorder_font_vector): Pay attention to the case that
7751 the 3rd element of font_def is nil.
7752 (fontset_font): For the default fontset, append one more fontset
7753 elements for a script-based font specification. Don't add script
7754 attribute on finding a font.
7755 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
7756 font name.
7757 (fontset_ascii_font): If a font can't be opened, return nil.
7758
7759 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
7760 (ftfont_pattern_entity): New function.
7761 (ftfont_get_cache): Assume that freetype_font_cache is already
7762 initialized.
7763 (ftfont_list): Handle the case that a file is specified in font
7764 name. Use ftfont_pattern_entity to generate entities.
7765 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
7766 (syms_of_ftfont): Initialize freetype_font_cache.
7767
7768 * xftfont.c (xftfont_open): Make the font name fontconfig's
7769 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
7770 (xftfont_close): Free font->font.name if not NULL.
7771
7772 * xfont.c (xfont_list): If script is specified for a font, return
7773 null_vector.
7774 (xfont_list_family): Declare argument type.
7775
7776 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
7777 name, set LFACE_FONT (lface) to nil.
7778
7779 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
7780 return Qnil.
7781
7782 2008-02-01 Kenichi Handa <handa@m17n.org>
7783
7784 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
7785 (standard_args): Add "-enable-font-backend".
7786
7787 2008-02-01 Kenichi Handa <handa@m17n.org>
7788
7789 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
7790 (struct xftdraw_list, xftdraw_list): Delete them.
7791 (register_xftdraw, check_xftdraw): Delete them.
7792 (xftfont_prepare_face): Don't call register_xftdraw.
7793 (xftfont_done_face): Don't call check_xftdraw.
7794 (xftfont_draw): Get backroudn color only when with_background is
7795 nonzero.
7796
7797 * xfont.c (xfont_encode_char): Fix calculation of char2b.
7798
7799 2008-02-01 Kenichi Handa <handa@m17n.org>
7800
7801 These changes are for the new font handling codes.
7802
7803 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
7804 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
7805 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
7806 (FONTSRC, FONTOBJ): New variables.
7807 (obj): Add $(FONTOBJ).
7808 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
7809 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
7810 @LIBOTF_LIBS@.
7811 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
7812 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
7813
7814 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
7815
7816 * character.h (Vscript_representative_chars): Extern it.
7817
7818 * character.c (Vscript_representative_chars): New variable.
7819 (syms_of_character): Declare it as a Lisp variable.
7820
7821 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
7822 enable_font_backend is nonzero, accept the composition method
7823 COMPOSITION_WITH_GLYPH_STRING.
7824
7825 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
7826 enumeration COMPOSITION_WITH_GLYPH_STRING.
7827
7828 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
7829 members clip_x, clip_y, clip_width, and clip_height.
7830 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
7831
7832 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
7833 --enable-font-backend. Call syms_of_font.
7834
7835 * fns.c (assoc_no_quit): New function.
7836
7837 * fontset.h (FONT_INFO_FROM_FACE): New macro.
7838 (face_for_font, new_fontset_from_font)
7839 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
7840
7841 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
7842 (fontset_font, fontset_ascii, face_for_char)
7843 (make_fontset_for_ascii_face, Ffont_info)
7844 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
7845 is nonzero, use font-backend mechanism.
7846 (find_font_encoding): Make it non-static.
7847 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
7848 New functions.
7849
7850 * frame.h (struct frame): New members resx and resy.
7851 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
7852 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
7853
7854 * frame.c [USE_FONT_BACKEND]: Include "font.h".
7855 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
7856
7857 * lisp.h (assoc_no_quit): Extern it.
7858
7859 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
7860 Through out the file, use FONT_INFO_FROM_FACE instead of
7861 FONT_INFO_FROM_ID, use get_per_char_metric instead of
7862 rif->per_char_metric.
7863 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
7864 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
7865 (get_glyph_face_and_encoding, fill_composite_glyph_string)
7866 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
7867 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
7868 nonzero, use font-backend mechanism.
7869 (get_per_char_metric): New function.
7870
7871 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
7872 (set_lface_from_font_name)
7873 (set_font_frame_param, free_realized_face)
7874 (prepare_face_for_display, clear_face_gcs)
7875 (Finternal_set_font_selection_order, realize_x_face)
7876 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
7877 font-backend mechanism.
7878 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
7879 (load_face_font) [USE_FONT_BACKEND]: Abort.
7880 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
7881 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
7882
7883 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
7884 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
7885 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
7886 nonzero, register all available font drivers. Call
7887 x_default_font_parameter for deciding a font.
7888 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
7889
7890 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
7891 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
7892 (x_set_glyph_string_clipping_exactly)
7893 (x_compute_glyph_string_overhangs)
7894 (x_draw_glyph_string_foreground)
7895 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
7896 (x_free_frame_resources) [USE_FONT_BACKEND]: If
7897 enable_font_backend is nonzero, use font-backend mechanism.
7898 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
7899
7900 2008-02-01 Kenichi Handa <handa@m17n.org>
7901
7902 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
7903 system_eol_type.
7904 (syms_of_coding): Initialize system_eol_type.
7905
7906 * process.c (Fset_process_coding_system): Inherit system's eol
7907 format if necessary.
7908
7909 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7910
7911 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
7912
7913 2008-02-01 Kenichi Handa <handa@m17n.org>
7914
7915 * coding.c (decode_eol): Pay attention to buffer relocation in
7916 del_range_2.
7917 (decode_coding): Call decode_eol before restoring undo_list.
7918
7919 2008-02-01 Kenichi Handa <handa@m17n.org>
7920
7921 * charset.c (Fdefine_charset_internal): Fix setting of
7922 emacs_mule_bytes.
7923
7924 2008-02-01 Kenichi Handa <handa@m17n.org>
7925
7926 * keyboard.c (read_char): Check if C is a character or not before
7927 looking up Vkeyboard_translate_table.
7928
7929 2008-02-01 Kenichi Handa <handa@m17n.org>
7930
7931 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
7932 condition to terminate the loop.
7933
7934 2008-02-01 Kenichi Handa <handa@m17n.org>
7935
7936 * coding.c (produce_composition): Compare charbuf[i] instead of
7937 args[i] against 0.
7938 (Fterminal_coding_system): Use EQ to compare Lisp objects.
7939
7940 2008-02-01 Kenichi Handa <handa@m17n.org>
7941
7942 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
7943 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
7944 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
7945 detect_coding.
7946 (emacs_mule_char): Handle old style (Emacs 20) component character
7947 of a composition.
7948 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
7949 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
7950 composition rule.
7951 (decode_coding_emacs_mule): Handle invalid bytes correctly.
7952
7953 2008-02-01 Kenichi Handa <handa@m17n.org>
7954
7955 * coding.c (encode_coding_ccl): Allocate destination dynamically
7956 when necessary.
7957
7958 2008-02-01 Kenichi Handa <handa@m17n.org>
7959
7960 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
7961 the loop. When quitted, show a proper error message.
7962
7963 2008-02-01 Kenichi Handa <handa@m17n.org>
7964
7965 * xterm.c (x_set_glyph_string_clipping_exactly): Set
7966 src->clip_head and src->clip_tail temporarily instead of src->hl.
7967
7968 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
7969 character sequence.
7970 (Fccl_execute_on_string): Use ASET, not XSET.
7971
7972 2008-02-01 Kenichi Handa <handa@m17n.org>
7973
7974 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
7975
7976 2008-02-01 Kenichi Handa <handa@m17n.org>
7977
7978 * coding.c (decode_coding): Fix the condition of terminating the
7979 decoding loop.
7980
7981 2008-02-01 Kenichi Handa <handa@m17n.org>
7982
7983 * data.c (Faset): On setting a character bigger than 255 in a
7984 unibyte string, signal an error instead of make the string multibyte.
7985
7986 2008-02-01 Kenichi Handa <handa@m17n.org>
7987
7988 * charset.c (map_charset_chars): Fix for ascii-compatible charset
7989 made by a mapping table.
7990
7991 2008-02-01 Kenichi Handa <handa@m17n.org>
7992
7993 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
7994 not.
7995 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
7996 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
7997
7998 * xterm.c (x_draw_composite_glyph_string_foreground): Check
7999 s->face is NULL or not.
8000
8001 2008-02-01 Kenichi Handa <handa@m17n.org>
8002
8003 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
8004 (x_draw_glyph_string): Fix drawing of right_overhang and
8005 left_overhang around/on cursor.
8006
8007 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
8008
8009 2008-02-01 Kenichi Handa <handa@m17n.org>
8010
8011 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
8012
8013 2008-02-01 Kenichi Handa <handa@m17n.org>
8014
8015 * coding.c (Fdefine_coding_system_internal)
8016 (Fdefine_coding_system_alias): Avoid a duplicated element in
8017 Vcoding_system_alist.
8018
8019 2008-02-01 Kenichi Handa <handa@m17n.org>
8020
8021 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
8022
8023 * coding.c (Qcoding_system_define_form): New variable.
8024 (syms_of_coding): Intern and staticpro it.
8025 (Fcoding_system_p): Check Qcoding_system_define_form.
8026 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
8027
8028 * coding.h (CODING_SYSTEM_P): If ID is not available, call
8029 Fcoding_system_p.
8030 (CHECK_CODING_SYSTEM): If ID is not available, call
8031 Fcheck_coding_system.
8032 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
8033 Try also Fcheck_coding_system.
8034
8035 2008-02-01 Kenichi Handa <handa@m17n.org>
8036
8037 * coding.c (code_conversion_restore): GCPRO arg.
8038
8039 2008-02-01 Kenichi Handa <handa@m17n.org>
8040
8041 * character.c (lisp_string_width): Check multibyteness of STRING.
8042
8043 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8044
8045 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
8046 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
8047 (decode_mac_font_name): Use decode_coding_c_string instead of
8048 decode_coding.
8049 (x_load_font): Initialize fontp->fontset to -1. Set
8050 fontp->encoding_type.
8051
8052 2008-02-01 Kenichi Handa <handa@m17n.org>
8053
8054 * search.c (search_buffer): Give up BM search on case-fold-search
8055 if one of a target character has a case-equivalence of different
8056 byte length even if that target charcter is an ASCII.
8057 (simple_search): Fix calculation of byte length of matched text.
8058 (boyer_moore): Fix handling of case-equivalent multibyte characters.
8059
8060 2008-02-01 Kenichi Handa <handa@m17n.org>
8061
8062 * coding.c (decode_coding): Fix handling of invalid bytes.
8063
8064 2008-02-01 Kenichi Handa <handa@m17n.org>
8065
8066 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
8067 Unicode characters.
8068
8069 2008-02-01 Kenichi Handa <handa@m17n.org>
8070
8071 * coding.c (encode_coding_object): If a pre-write-conversion
8072 function makes a new buffer, kill it.
8073
8074 2008-02-01 Kenichi Handa <handa@m17n.org>
8075
8076 * coding.c (QCascii_compatible_p): New variable.
8077 (syms_of_coding): Initialize it.
8078 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
8079 calling string_char.
8080 (record_conversion_result): Add `default:' case.
8081 (coding_charset_list): Delete unused variable `coding_type'.
8082 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
8083 property in the plist of the coding system.
8084 (Fcoding_system_put): Check QCascii_compatible_p.
8085
8086 2008-02-01 Miles Bader <miles@gnu.org>
8087
8088 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
8089 removed calculation of frame `f', as it's now used.
8090
8091 2008-02-01 Kenichi Handa <handa@m17n.org>
8092
8093 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
8094 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
8095 (UNIDATA): New variable.
8096 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
8097 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
8098 $(RUN_TEMACS) unconditionally.
8099
8100 2008-02-01 Kenichi Handa <handa@m17n.org>
8101
8102 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
8103 (admindir): New variable.
8104 ($(lispsource)international/charprop.el): New target.
8105
8106 2008-02-01 Miles Bader <miles@gnu.org>
8107
8108 * character.c (chars-in-region): Remove obsolete function.
8109 (syms_of_character): Remove its initialization.
8110
8111 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
8112
8113 * w32select.c (validate_coding_system)
8114 (setup_windows_coding_system): New functions.
8115 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
8116 setup_windows_coding_system.
8117 (setup_config, Fw32_get_clipboard_data): Use
8118 validate_coding_system.
8119 (Fx_selection_exists): Move call to setup_config to a place
8120 where signals are allowed.
8121
8122 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
8123 (Fcheck_coding_system): Add declarations.
8124
8125 2008-02-01 Kenichi Handa <handa@m17n.org>
8126
8127 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
8128
8129 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8130
8131 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
8132 string as the second argument for x_new_fontset.
8133
8134 2008-02-01 Kenichi Handa <handa@m17n.org>
8135
8136 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
8137 (encode_coding_object): Use safe_call instead of call2.
8138
8139 2008-02-01 Kenichi Handa <handa@m17n.org>
8140
8141 * fontset.c (Fset_fontset_font): Check family element of a given vector.
8142
8143 * Makefile.in (lisp): Include charprop.el.
8144
8145 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8146
8147 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
8148 Not sure if it's unnecessary.
8149
8150 2008-02-01 Steven Tamm <steventamm@mac.com>
8151
8152 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
8153 some possibly unnecessary fontset checking code that crashed
8154 when creating a new frame.
8155
8156 2008-02-01 Kenichi Handa <handa@m17n.org>
8157
8158 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
8159 lookup_face.
8160
8161 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
8162
8163 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
8164
8165 2008-02-01 Kenichi Handa <handa@m17n.org>
8166
8167 * coding.c: Cancel the change done in HEAD on 2008-02-01.
8168 (coding_charset_list): New function.
8169
8170 * coding.h (coding_charset_list): Extern it.
8171
8172 2008-02-01 Kenichi Handa <handa@m17n.org>
8173
8174 * fontset.c (Fset_fontset_font): Call find_font_encoding with
8175 concatenation of family and registry.
8176
8177 2008-02-01 Kenichi Handa <handa@m17n.org>
8178
8179 * character.h (BYTE8_STRING): Fix typo.
8180
8181 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
8182 string to multibyte (sync to HEAD).
8183
8184 * casefiddle.c (casify_region): Handle changes in byte-length
8185 using replace_range_2 (sync to HEAD).
8186
8187 2008-02-01 Andreas Schwab <schwab@suse.de>
8188
8189 * chartab.c (map_char_table): GCPRO table and arg.
8190
8191 2008-02-01 Kenichi Handa <handa@m17n.org>
8192
8193 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
8194 already at limit.
8195
8196 2008-02-01 Kenichi Handa <handa@m17n.org>
8197
8198 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
8199 instead of fast_c_string_match_ignore_case.
8200 (find_font_encoding): Change argument to Lisp_Object. Use
8201 fast_string_match_ignore_case instead of
8202 fast_c_string_match_ignore_case. Change caller.
8203
8204 2008-02-01 Kenichi Handa <handa@m17n.org>
8205
8206 * xdisp.c (get_next_display_element): In unibyte case, decide to
8207 display in octal form by checking a chacter by
8208 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
8209
8210 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
8211
8212 * character.c (unibyte_has_multibyte_table): New variable.
8213
8214 * character.h (unibyte_has_multibyte_table): Extern it.
8215 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
8216
8217 2008-02-01 Kenichi Handa <handa@m17n.org>
8218
8219 * coding.c (encode_coding_iso_2022): Fix handling of charset
8220 annotation.
8221
8222 2008-02-01 Kenichi Handa <handa@m17n.org>
8223
8224 * coding.c (setup_coding_system): If coding_system is nil, use
8225 Qundecided.
8226 (Fterminal_coding_system): Return nil if terminal coding system is
8227 `undecided'.
8228 (syms_of_coding): Define coding-system `undecided' here. Setup
8229 terminal_coding as `undecided'.
8230
8231 2008-02-01 Kenichi Handa <handa@m17n.org>
8232
8233 * xdisp.c (message_dolog, set_message_1): Call
8234 unibyte_char_to_multibyte with arg type int.
8235
8236 * lread.c (read1): Fix reading of a char-table.
8237
8238 * print.c (print_object): Include sub char-table in cicularities
8239 detection.
8240
8241 2008-02-01 Kenichi Handa <handa@m17n.org>
8242
8243 * keymap.c (where_is_internal_2): Fix for the case that KEY is a
8244 cons. Append the found sequences in car of ARGS instead of prepending.
8245
8246 2008-02-01 Kenichi Handa <handa@m17n.org>
8247
8248 * fileio.c (report_file_error): Make a unibyte string from
8249 strerror (errorno).
8250 (Fsubstitute_in_file_name): Fix the arg to
8251 unibyte_char_to_multibyte. It is evaluated twice.
8252
8253 2008-02-01 Kenichi Handa <handa@m17n.org>
8254
8255 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
8256
8257 2008-02-01 Kenichi Handa <handa@m17n.org>
8258
8259 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
8260 BOM is not found.
8261 (detect_coding, detect_coding_system): Optimization for ISO-2022
8262 when no 8-bit data is found.
8263
8264 2008-02-01 Jason Rumney <jasonr@gnu.org>
8265
8266 * w32fns.c (x_to_w32_font): Update to use new coding struct.
8267
8268 2008-02-01 Kenichi Handa <handa@m17n.org>
8269
8270 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
8271 CHARS.
8272
8273 2008-02-01 Steven Tamm <steventamm@mac.com>
8274
8275 * macterm.c (mac_encode_char): Add charset argument and update
8276 to use encoding_type.
8277 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
8278 switch to pure fontset.
8279 (decode_mac_font_name): Temporarily remove decoding.
8280 (x_font_name_to_mac_font_name): Temporarily remove encoding.
8281 (x_load_font): Temporarily remove encoding.
8282
8283 2008-02-01 Kenichi Handa <handa@m17n.org>
8284
8285 * xfaces.c (Fface_font): If frame is not on a window system,
8286 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
8287 refer to face->font.
8288 (split_font_name_into_vector, build_font_name_from_vector)
8289 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
8290 whne HAVE_WINDOW_SYSTEM is defined.
8291
8292 2008-02-01 Kenichi Handa <handa@m17n.org>
8293
8294 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
8295 (x_produce_glyphs): Fix setting of members of cmp in case
8296 cmp->glyph_len is zero.
8297
8298 * fontset.c (Fset_fontset_font): Fix docstring.
8299 (Ffontset_info): Make it backward compatible. New arg ALL.
8300
8301 2008-02-01 Kim F. Storm <storm@cua.dk>
8302
8303 * process.c (read_process_output): Grow decoding_buf when needed;
8304 this could cause a crash in allocate_string and compact_small_strings.
8305
8306 2008-02-01 Kenichi Handa <handa@m17n.org>
8307
8308 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
8309
8310 2008-02-01 Kenichi Handa <handa@m17n.org>
8311
8312 * coding.c (setup_coding_system): Set coding->common_flags
8313 correctly for raw-text.
8314 (consume_chars): On encoding unibyte text by raw-text, don't check
8315 multibyte form.
8316 (encode_coding): On encoding by raw-text, never use translation tables.
8317
8318 * fileio.c (e_write): Short cut for the case of no encoding.
8319
8320 2008-02-01 Kenichi Handa <handa@m17n.org>
8321
8322 * coding.c (detect_coding, detect_coding_system): Delete unused
8323 variables.
8324
8325 2008-02-01 Kenichi Handa <handa@m17n.org>
8326
8327 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
8328 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
8329
8330 2008-02-01 Kenichi Handa <handa@m17n.org>
8331
8332 * coding.c (Ffind_coding_systems_region_internal): Include
8333 raw-text and no-conversion in the result.
8334
8335 2008-02-01 Kenichi Handa <handa@m17n.org>
8336
8337 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
8338 (load_font_get_repertory): Delete unnecessary check of ENCODING of
8339 FONT_DEF.
8340 (font_def_arg, add_arg, from_arg, to_arg): New args.
8341 (set_fontset_font): Change argument.
8342 (Fset_fontset_font): Fix for the case that TARGET is a script
8343 name and charset name.
8344 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
8345
8346 2008-02-01 Kenichi Handa <handa@m17n.org>
8347
8348 * fontset.c (fontset_font): Rename from fontset_face. Change return
8349 value.
8350 (face_suitable_for_char_p, face_for_char): Adjust for the change
8351 of fontset_font.
8352 (make_fontset_for_ascii_face): Fix setting of the fontset element
8353 for ASCII.
8354 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
8355 to get a font name.
8356 (Ffontset_info): Adjust for the change of fontset_font.
8357
8358 * coding.c (emacs_mule_char): Check invalid code more regidly.
8359
8360 * character.h (LEADING_CODE_LATIN_1_MIN)
8361 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
8362
8363 2008-02-01 Kenichi Handa <handa@m17n.org>
8364
8365 * editfns.c (check_translation): New function.
8366 (Ftranslate_region_internal): Handle M:N mapping.
8367
8368 2008-02-01 Kenichi Handa <handa@m17n.org>
8369
8370 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
8371
8372 2008-02-01 Kenichi Handa <handa@m17n.org>
8373
8374 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
8375 goto invalid_code.
8376 (decode_coding_iso_2022): Fix handling of invalid designation.
8377
8378 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
8379 after calling code_conversion_save.
8380
8381 2008-02-01 Kenichi Handa <handa@m17n.org>
8382
8383 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
8384
8385 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
8386
8387 * fontset.c: Include "intervals.h".
8388 (fontset_face): Fix comparing of Lisp_Objects.
8389 (free_face_fontset, new_fontset_from_font_name): Fix
8390 Lisp_Object/int mixup.
8391
8392 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
8393
8394 * coding.c: Add many prototypes for static functions.
8395 (get_translation_table): Allow max_lookup to be NULL.
8396 (decode_coding, Ffind_coding_systems_region_internal)
8397 (Funencodable_char_position, Fcheck_coding_systems_region): Call
8398 get_translation_table with max_lookup NULL.
8399
8400 2008-02-01 Kenichi Handa <handa@m17n.org>
8401
8402 * coding.c (get_translation_table): Declare it as Lisp_Object.
8403 (LOOKUP_TRANSLATION_TABLE): New macro.
8404 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
8405 instead of CHAR_TABLE_REF.
8406
8407 2008-02-01 Kenichi Handa <handa@m17n.org>
8408
8409 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
8410 annotation data format.
8411 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
8412 Change arguments FROM and TO to single argument NCHARS. Change caller.
8413 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
8414 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8415 (decode_coding_ccl, decode_coding_charset): Pay attention to
8416 coding->charbuf_used.
8417 (get_translation): New function.
8418 (produce_chars): New arguments translation_table and last_block.
8419 Translate characters here. Return number of carryover chars.
8420 Change caller.
8421 (produce_composition): New argument pos. Change caller.
8422 Adjust for the change of annotation data format.
8423 (produce_charset, produce_annotation): Likewise.
8424 (decode_coding, encode_coding): Don't call translate_chars.
8425 (consume_chars): New arg translation_table. Change caller.
8426 (translate_chars): Delete.
8427 (syms_of_coding): Make translation-table's number of extra slots 2.
8428
8429 2008-02-01 Kenichi Handa <handa@m17n.org>
8430
8431 * search.c (simple_search): Fix setting this_pos_byte in backward
8432 search.
8433
8434 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
8435 byte sequence.
8436 (detect_coding_ccl): Fix setting of the variable valids.
8437
8438 2008-02-01 Kenichi Handa <handa@m17n.org>
8439
8440 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
8441
8442 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
8443
8444 * editfns.c (Ftranslate_region_internal): Rename from
8445 Ftranslate_region. Accept a char-table in TABLE.
8446 (syms_of_editfns): Defsubr Stranslate_region_internal.
8447
8448 * xfaces.c (set_lface_from_font_name): If a font is specified for
8449 a frame, generate a fontset from the font.
8450 (build_scalable_font_name): If the scalable font is requested for
8451 a specific size, don't change that size.
8452 (try_font_list): Try a scalable font also in the case that a
8453 pattern string is specified.
8454
8455 2008-02-01 Kenichi Handa <handa@m17n.org>
8456
8457 * xfaces.c (Fface_font): New optional arg CHARACTER.
8458
8459 2008-02-01 Kenichi Handa <handa@m17n.org>
8460
8461 * charset.h (CHARSET_OFFSET): New macro.
8462
8463 2008-02-01 Kenichi Handa <handa@m17n.org>
8464
8465 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
8466
8467 * fontset.c (fontset_face): Handle the case that repertory is a
8468 char-table.
8469 (find_font_encoding): Return nil for unknown encoding.
8470 (Fset_fontset_font): Ignore a font of unknown encoding.
8471
8472 2008-02-01 Kenichi Handa <handa@m17n.org>
8473
8474 * keymap.c (describe_vector): Handle default value of a char table.
8475
8476 * fontset.c (fontset_face): Handle fallback fonts correctly.
8477 (Ffontset_info): Return infomation about fallback fonts.
8478
8479 2008-02-01 Kenichi Handa <handa@m17n.org>
8480
8481 * fontset.c (FONTSET_DEFAULT): New macro.
8482 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
8483 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
8484 the case that it is nil.
8485 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
8486 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
8487
8488 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
8489 subset or superset.
8490
8491 2008-02-01 Kenichi Handa <handa@m17n.org>
8492
8493 * emacs.c (main): Call init_charset after syms_of_XXX.
8494
8495 * charset.c (Vcharset_map_directory): Delete.
8496 (Vcharset_map_path): New variable.
8497 (load_charset_map_from_file): Use Vcharset_map_path instead.
8498 (init_charset): Initialize Vcharset_map_path.
8499 (syms_of_charset): Delete declaration of "charset-map-directory",
8500 add declaration of "charset-map-path".
8501
8502 2008-02-01 Kenichi Handa <handa@m17n.org>
8503
8504 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
8505 ASCII only string.
8506
8507 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
8508
8509 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
8510 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
8511
8512 2008-02-01 Kenichi Handa <handa@m17n.org>
8513
8514 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
8515
8516 * coding.c (QCmnemonic, QCdefalut_char)
8517 (QCdecode_translation_table, QCencode_translation_table)
8518 (QCpost_read_conversion, QCpre_write_conversion): New variables.
8519 (get_translation_table): Return a list of translation tables if
8520 necessary.
8521 (decode_coding): Call get_translation_table with ENCODEP 0.
8522 (char_encodable_p): If translation_table is non-nil, always call
8523 translate_char.
8524 (Fdefine_coding_system_internal): Accept list of translation
8525 tables as :encode-translation-table and :decode-translation-table.
8526 (Fcoding_system_put): New function.
8527 (syms_of_coding): Declare new symbols. Defsubr
8528 Scoding_system_put.
8529 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
8530 typically JISX0212.
8531
8532 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
8533 when the charset is superset type.
8534
8535 * character.c (translate_char): Accept list of translation tables.
8536
8537 2008-02-01 Kenichi Handa <handa@m17n.org>
8538
8539 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
8540 (CODING_ATTR_TRANS_TBL): New macro.
8541
8542 * coding.c (get_translation_table): New function.
8543 (translate_chars): Fix the bug of skipping annotation data.
8544 (decode_coding, encode_coding): Utilize get_translation_table.
8545 (char_encodable_p, Funencodable_char_position): Translate char if
8546 necessary.
8547 (Ffind_coding_systems_region_internal)
8548 (Fcheck_coding_systems_region): Setup translation table for encode
8549 in a coding system attribute vector in advance.
8550 (Fdefine_coding_system_internal): Allow a symbol as translation
8551 table. For shift-jis type coding system, allow 4th charset.
8552
8553 2008-02-01 Kenichi Handa <handa@m17n.org>
8554
8555 * coding.c (decode_coding_sjis): Check the first byte rigidly.
8556
8557 * xdisp.c (get_next_display_element): Pass -1 as POS to
8558 FACE_FOR_CHAR if displaying a C-string.
8559
8560 2008-02-01 Kenichi Handa <handa@m17n.org>
8561
8562 * composite.c (get_composition_id): Handle xoff and yoff in a
8563 composition rule.
8564
8565 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
8566 (struct composition): New member lbearing and rbearing.
8567
8568 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
8569 (x_get_glyph_overhangs): Handle a composition glyph.
8570 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
8571
8572 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
8573 composition glyph.
8574
8575 2008-02-01 Kenichi Handa <handa@m17n.org>
8576
8577 * print.c: Include charset.h.
8578 (Vprint_charset_text_property): New variable.
8579 (Qdefault): Extern it.
8580 (PRINT_STRING_NON_CHARSET_FOUND)
8581 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
8582 (print_check_string_result): New variable.
8583 (print_check_string_charset_prop): New function.
8584 (print_prune_charset_plist): New variable.
8585 (print_prune_string_charset): New function.
8586 (print_object): Call print_prune_string_charset if
8587 Vprint_charset_text_property is not t.
8588 (print_interval): Print nothing if itnerval->plist is nil.
8589 (syms_of_print): Declare Vprint_charset_text_property as a lisp
8590 variable. Init and staticpro print_prune_charset_plist.
8591
8592 2008-02-01 Kenichi Handa <handa@m17n.org>
8593
8594 * fontset.c (new_fontset_from_font_name): Use the specified font
8595 for all characters in the new fontset.
8596
8597 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
8598 OBJECT args.
8599
8600 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
8601 OBJECT args for composition too.
8602
8603 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
8604 OBJECT args.
8605
8606 2008-02-01 Kenichi Handa <handa@m17n.org>
8607
8608 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
8609
8610 * fontset.c (reorder_font_vector): Adjust for the change of
8611 FONT_DEF format.
8612 (fontset_face): New arg id. Change caller.
8613 (face_for_char): New args pos and object.
8614 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
8615 (fs_query_fontset): Check NAME by Fassoc too.
8616 (Fset_fontset_font): Allow non-XLFD font name.
8617 (Ffontset_info): Adjust for the change of FONT_DEF format.
8618
8619 * fontset.h (face_for_char): Adjust prototype.
8620
8621 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
8622 (append_space, extend_face_to_end_of_line)
8623 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
8624 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
8625
8626 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
8627 POS and OBJECT args.
8628
8629 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
8630 POS and OBJECT args.
8631
8632 2008-02-01 Jason Rumney <jasonr@gnu.org>
8633
8634 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
8635 of GlobalAlloc'ed memory.
8636
8637 2008-02-01 Kenichi Handa <handa@m17n.org>
8638
8639 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
8640
8641 * charset.h (charset_table_used): Delete extern.
8642
8643 * charset.c (charset_table_used): Make it static.
8644 (map_charset_chars): Fix args to c_function with.
8645
8646 * chartab.c (map_sub_char_table_for_charset): Fix args to
8647 c_function with.
8648
8649 * coding.h (enum coding_result_code): Delete
8650 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
8651
8652 * coding.c (Qinsufficient_source, Qinconsistent_eol)
8653 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
8654 (Vlast_code_conversion_error): New variables.
8655 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
8656 (ONE_MORE_BYTE): Record error if any instead of signaling an
8657 error. If non-ASCII multibyte char is found, return the negative
8658 value of the code. All callers changed to check it.
8659 (ONE_MORE_BYTE_NO_CHECK): Likewise.
8660 (record_conversion_result): New function. Change all codes setting
8661 coding->result to call this function.
8662 (detect_coding_utf_8, decode_coding_utf_8)
8663 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
8664 Don't use the local variable incomplete.
8665 (emacs_mule_char): Change the second arg to `const'.
8666 (decode_coding): Fix of flushing out unprocessed data.
8667 (make_conversion_work_buffer): Fix making of a work buffer.
8668 (decode_coding_object): Return coding->dst_object.
8669
8670 * fontset.c (set_fontset_font): Fix args.
8671
8672 * lisp.h (CHARACTERBITS): Define as 22.
8673
8674 * process.c (send_process): Be sure to set coding->src_multibyte.
8675
8676 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
8677
8678 2008-02-01 Kenichi Handa <handa@m17n.org>
8679
8680 * xdisp.c (handle_auto_composed_prop): Give limit to
8681 Fnext_single_char_property_change.
8682
8683 2008-02-01 Kenichi Handa <handa@m17n.org>
8684
8685 * composite.c (syms_of_composite): Don't make the composition hash
8686 table weak.
8687
8688 * fontset.c (Fset_fontset_font): Fix docstring.
8689
8690 * lisp.h (detect_coding_system): Adjust prototype.
8691
8692 * fileio.c (kill_workbuf_unwind): Delete this function.
8693 (Finsert_file_contents): Adjust the call of detect_coding_system.
8694 Get conversion_buffer by code_conversion_save. Use the macor
8695 CODING_MAY_REQUIRE_DECODING. After decoding, update
8696 coding_system.
8697
8698 * coding.h (make_conversion_work_buffer): Delete extern.
8699 (code_conversion_save): Extern it.
8700
8701 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
8702 (CODING_GET_INFO): Delete argument eol_type. Change callers.
8703 (decode_coding_utf_8): Don't do eol converion.
8704 (detect_coding_utf_16): Check coding->src_chars, not
8705 coding->src_bytes. Add heuristics for those that have no signature.
8706 (decode_coding_emacs_mule, decode_coding_iso_2022)
8707 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
8708 Don't do eol converion.
8709 (adjust_coding_eol_type): Return a new coding system.
8710 (detect_coding): Don't detect eol. Fix for utf-16 detection.
8711 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
8712 each change.
8713 (decode_coding): Pay attention to undo_list. Do eol convesion for
8714 all types of coding-systems (if necessary).
8715 (Vcode_conversion_work_buf_list): Delete it.
8716 (Vcode_conversion_reused_workbuf): Rename from
8717 Vcode_conversion_reused_work_buf.
8718 (Vcode_conversion_workbuf_name): New variable.
8719 (reused_workbuf_in_use): New variable.
8720 (make_conversion_work_buffer): Delete the arg DEPTH.
8721 (code_conversion_restore): Change argument to cons.
8722 (code_conversion_save): Delete the argument BUFFER. Change callers.
8723 (detect_coding_system): New argument src_chars. Change callers.
8724 Fix for utf-16 detection.
8725 (init_coding_once): Don't use ISO_carriage_return.
8726 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
8727 reused_workbuf_in_use.
8728
8729 2008-02-01 Kenichi Handa <handa@m17n.org>
8730
8731 * keymap.c (store_in_keymap): Pay attention to the case that idx
8732 is a cons specifying a character range.
8733
8734 2008-02-01 Kenichi Handa <handa@m17n.org>
8735
8736 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
8737 HANDLED_RECOMPUTE_PROPS.
8738
8739 * coding.c (Fdefine_coding_system_internal): Fix checking of
8740 ascii compatibility.
8741
8742 2008-02-01 Kenichi Handa <handa@m17n.org>
8743
8744 * charset.c (find_charsets_in_text): Delete unused locale variable.
8745 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
8746
8747 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
8748 Resync charset_list to Vemacs_mule_charset_list.
8749
8750 * keymap.c (store_in_keymap): Pay attention to the case that idx
8751 is a cons specifying a character range.
8752
8753 2008-02-01 Kenichi Handa <handa@m17n.org>
8754
8755 * composite.c (update_compositions): Bind inhibit-read-only, etc
8756 to t before calling remove-list-of-text-properties.
8757
8758 * print.c (print_object): Always print ASCII chars as is.
8759
8760 2008-02-01 Kenichi Handa <handa@m17n.org>
8761
8762 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
8763
8764 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
8765 is a char table.
8766
8767 2008-02-01 Kenichi Handa <handa@m17n.org>
8768
8769 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
8770
8771 2008-02-01 Kenichi Handa <handa@m17n.org>
8772
8773 * xfaces.c (set_lface_from_font_name): Fix for the case that
8774 FONTNAME is not fontset name.
8775
8776 2008-02-01 Kenichi Handa <handa@m17n.org>
8777
8778 * fns.c (base64_encode_1): Fix previous change.
8779
8780 2008-02-01 Kenichi Handa <handa@m17n.org>
8781
8782 * fontset.c (set_fontset_font): New function.
8783 (Fset_fontset_font): If a font is specified for a charset, use
8784 map_charset_chars to store the font spec in a fontset.
8785
8786 2008-02-01 Kenichi Handa <handa@m17n.org>
8787
8788 * fontset.c (fontset_face): Create a fallback fontset on demand.
8789 (make_fontset): Don't create a fallback fontset here.
8790 (free_face_fontset): Free a fallback fontset (if any) too.
8791 (n_auto_fontsets): Delete this variable.
8792 (auto_fontset_alist): New variable.
8793 (new_fontset_from_font_name): Check auto_fontset_alist.
8794 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
8795 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
8796 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
8797 Defsubr Sfontset_list_all.
8798
8799 2008-02-01 Kenichi Handa <handa@m17n.org>
8800
8801 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
8802
8803 2008-02-01 Kenichi Handa <handa@m17n.org>
8804
8805 * fontset.c (Fnew_fontset): Check NAME more rigidly.
8806
8807 2008-02-01 Kenichi Handa <handa@m17n.org>
8808
8809 * editfns.c (Fgoto_char): Fix docstring.
8810
8811 2008-02-01 Kenichi Handa <handa@m17n.org>
8812
8813 * insdel.c (insert_from_gap): Adjust intervals correctly.
8814
8815 2008-02-01 Jason Rumney <jasonr@gnu.org>
8816
8817 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
8818 (pfnGetFontUnicodeRanges): New dynamically loaded function.
8819 (w32_initialize): Try to load it.
8820 (x_get_font_repertory): Use it if available.
8821 (w32_encode_char): Add shortcut for unicode output.
8822
8823 * w32fns.c (w32_load_system_font): Default charset to -1.
8824 (x_to_w32_charset): Match all fonts for unicode.
8825 (w32_to_x_charset): New parameter matching. Don't return partial
8826 or wildcard charsets.
8827 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
8828 (w32_codepage_for_font): Return CP_UNICODE for unicode.
8829 (w32_to_x_font): Match charset to real charset.
8830 (enum_font_cb2): Always list unicode versions.
8831
8832 * makefile.w32-in (temacs): Increase EMHEAP.
8833
8834 2008-02-01 Jason Rumney <jasonr@gnu.org>
8835
8836 * w32term.c (w32_encode_char): New charset parameter.
8837 font_info.encoding becomes encoding_type.
8838 (x_get_font_repertory): New function. Warning: stub only!
8839 (x_new_font): Return quickly if font already set.
8840 (x_new_fontset): fontsetname parameter is Lisp_Object.
8841 Use new fs_query_fontset. Try new_fontset_from_font_name.
8842 Use fontset_name for return value.
8843
8844 * w32term.h: Declare x_get_font_repertory.
8845
8846 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
8847 place of find_charset_in_text. Use encode_coding_object in place
8848 of encode_coding.
8849 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
8850 decode_coding.
8851
8852 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
8853 of x_new_fontset.
8854 (w32_load_system_font): Initialize charset as unicode.
8855 font_info.encoding becomes encoding_type.
8856 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
8857 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
8858 (syms_of_w32fns): Set get_font_repertory_func.
8859
8860 * w32console.c: Include character.h. Use terminal_encode_buffer
8861 from term.c.
8862 (write_glyphs): Use new version of encode_terminal_code. Use
8863 encode_coding_object in place of encode_coding.
8864
8865 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
8866 encoding becomes encoding_type.
8867
8868 * term.c (terminal_encode_buffer): Make externally visible.
8869
8870 * makefile.w32-in: Add character.h dependancies.
8871 (character.o, chartab.o): New targets.
8872
8873 2008-02-01 Kenichi Handa <handa@m17n.org>
8874
8875 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
8876 CODING_ID_EOL_TYPE.
8877
8878 2008-02-01 Andreas Schwab <schwab@suse.de>
8879
8880 * coding.c (produce_chars): Revert last change.
8881
8882 2008-02-01 Kenichi Handa <handa@m17n.org>
8883
8884 * charset.h (charset_unicode): Extern it.
8885
8886 * charset.c (string_xstring_p): Check by (C >= 0x100).
8887 (find_charsets_in_text): Change format of the arc CHARSETS. New
8888 arg MULTIBYTE.
8889 (Ffind_charset_region, Ffind_charset_string): Adjust for the
8890 change of find_charsets_in_text.
8891 (Fsplit_char): Fix doc. Never return unknown.
8892
8893 * chartab.c (char_table_translate): Use CHARACTERP, not INETEGERP.
8894
8895 * coding.c (Fdefine_coding_system_alias): Update
8896 Vcoding_system_list.
8897
8898 * fontset.c (load_font_get_repertory): Pay attention to the case
8899 that ENCODING of a font is specified by a char-table.
8900
8901 * xterm.c (x_get_font_repertory): Handle the case that the
8902 encoding of font is other than Unicode.
8903
8904 2008-02-01 Kenichi Handa <handa@m17n.org>
8905
8906 * term.c (encode_terminal_code): Don't handle glyph-table. Check
8907 if a character is encodable by the terminal coding system. If
8908 not, produces proper number of `?'s. Update
8909 terminal_encode_buffer and terminal_encode_buf_size if necessary.
8910 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
8911
8912 2008-02-01 Kenichi Handa <handa@m17n.org>
8913
8914 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
8915 variables.
8916 (encode_terminal_code): Change argument. Encode multiple
8917 characters at once. Store the result of encoding in
8918 terminal_encode_buffer.
8919 (write_glyphs, insert_glyphs): Adjust for the change of
8920 encode_terminal_code.
8921 (term_init): Initialize terminal_encode_buffer and
8922 terminal_encode_buf_size.
8923
8924 * coding.c (consume_chars): If coding->src_object is nil, don't
8925 check annotation.
8926
8927 2008-02-01 Kenichi Handa <handa@m17n.org>
8928
8929 * character.c (char_string): Use ASCII_CHAR_P instead of
8930 SINGLE_BYTE_CHAR_P.
8931
8932 2008-02-01 Kenichi Handa <handa@m17n.org>
8933
8934 * xdisp.c (handle_auto_composed_prop): Check if the last
8935 characters of auto-composed region is newly composed with the
8936 following characters.
8937 (handle_composition_prop): Fix checking of point being inside
8938 composition.
8939
8940 2008-02-01 Kenichi Handa <handa@m17n.org>
8941
8942 * fns.c (concat): Don't change multibyteness of the result by
8943 concatenating an 8-bit character.
8944
8945 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
8946 multibyteness of the result when newelt is an 8-bit character.
8947
8948 2008-02-01 Dave Love <fx@gnu.org>
8949
8950 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
8951 EMACS_INT.
8952
8953 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
8954
8955 * xfaces.c (face_numeric_value): Declare dim size_t.
8956 (Finternal_lisp_face_equal_p): Remove unused f.
8957
8958 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
8959 (MATRIX_ROW): Remove unused vars.
8960 (draw_glyphs, x_insert_glyphs, fast_find_position)
8961 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
8962 byte/char counts.
8963
8964 * regex.c (regex_compile): Remove unused var.
8965
8966 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
8967
8968 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
8969 (Faccessible_keymaps, where_is_internal): Remove unused vars.
8970
8971 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
8972
8973 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
8974
8975 * fileio.c (Fwrite_region): Remove unused var.
8976
8977 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
8978 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
8979
8980 * composite.c (Fremove_list_of_text_properties): Declare.
8981
8982 * coding.c (inhibit_pre_post_conversion): Remove (unused).
8983 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
8984 (coding_inherit_eol_type): Remove unused attrs.
8985 (detect_coding): Cast arg of detect_eol.
8986
8987 * charset.c (syms_of_charset): Remove unused var p.
8988 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
8989 byte/char counts.
8990
8991 * casetab.c (set_case_table): Remove unused var.
8992
8993 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
8994 unused vars.
8995
8996 2008-02-01 Dave Love <fx@gnu.org>
8997
8998 * xterm.c (x_bitmap_mask): Declare.
8999
9000 2008-02-01 Dave Love <fx@gnu.org>
9001
9002 * xterm.c (x_term_init): Fix type error.
9003
9004 * lisp.h: Add Funibyte_char_to_multibyte.
9005
9006 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
9007 (Fset_coding_system_priority): Doc fix.
9008
9009 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
9010
9011 * indent.c (check_composition): Make start and end EMACS_INT.
9012
9013 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
9014
9015 * xdisp.c (handle_composition_prop, check_point_in_composition):
9016 Make buffer positions EMACS_INT.
9017
9018 * composite.c (find_composition, run_composition_function)
9019 (update_compositions, Ffind_composition_internal): Make buffer
9020 positions EMACS_INT.
9021
9022 * composite.h (find_composition, update_compositions): Make
9023 position args EMACS_INT.
9024
9025 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
9026
9027 * intervals.c (get_property_and_range):
9028 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
9029
9030 * unexalpha.c: Don't include varargs.h.
9031
9032 2008-02-01 Dave Love <fx@gnu.org>
9033
9034 * coding.h (ENCODE_UTF_8): New.
9035
9036 * Makefile.in (gtkutil.o): Depend on coding.h.
9037
9038 * coding.c (Fset_coding_system_priority): Doc fix.
9039
9040 2008-02-01 Kenichi Handa <handa@m17n.org>
9041
9042 * fileio.c (Finsert_file_contents): Call setup_coding_system in
9043 the case of auto saving.
9044
9045 2008-02-01 Andreas Schwab <schwab@suse.de>
9046
9047 * chartab.c (map_char_table, map_char_table_for_charset): Protect
9048 `range' from GC.
9049
9050 2008-02-01 Kenichi Handa <handa@m17n.org>
9051
9052 * coding.c (decode_coding_sjis): Check bytes more rigidly.
9053
9054 2008-02-01 Kenichi Handa <handa@m17n.org>
9055
9056 * fileio.c (choose_write_coding_system): Return a decided coding system.
9057 (Fwrite_region): Set Vlast_coding_system_used to the return value
9058 of choose_write_coding_system.
9059
9060 2008-02-01 Kenichi Handa <handa@m17n.org>
9061
9062 * charset.c (Fset_charset_priority): Pay attention to duplicated
9063 arguments.
9064
9065 * coding.c (QCcategory): New variable.
9066 (syms_of_coding): Defsym it. Set all elements of
9067 Vcoding_category_table and their symbol values.
9068 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
9069 coding-category-XXX, and coding-category-list.
9070 (Fdefine_coding_system_internal): Add category in the plist.
9071
9072 2008-02-01 Kenichi Handa <handa@m17n.org>
9073
9074 * callproc.c (Fcall_process): Handle carryover correctly.
9075
9076 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
9077 (raw_text_coding_system): Check NILP (coding_system).
9078 (coding_inherit_eol_type): Check NILP (coding_system) and
9079 NILP (parent).
9080 (consume_chars): Fix for the case of raw-text.
9081
9082 * process.c (read_process_output): Handle carryover correctly.
9083
9084 2008-02-01 Dave Love <fx@gnu.org>
9085
9086 * regex.c (re_search_2): Fix last change.
9087
9088 2008-02-01 Kenichi Handa <handa@m17n.org>
9089
9090 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
9091 target_multibyte. Even in a unibyte case, return a converted
9092 multibyte char.
9093 (GET_CHAR_AFTER): New macro.
9094 (PATFETCH): Translate via multibyte char.
9095 (HANDLE_UNIBYTE_RANGE): Delete this macro.
9096 (SETUP_MULTIBYTE_RANGE): New macro.
9097 (regex_compile): Setup compiled code so that its multibyteness
9098 matches that of a target. Fix the handling of "[X-YZ]" using
9099 SETUP_MULTIBYTE_RANGE.
9100 (analyse_first) <charset>: For filling fastmap for all multibyte
9101 characters, don't check by BASE_LEADING_CODE_P.
9102 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
9103 the same as RE_MULTIBYTE_P (bufp) now.
9104 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
9105 (TARGET_CHAR_AND_LENGTH): Delete this macro.
9106 (TRANSLATE_VIA_MULTIBYTE): New macro.
9107 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
9108 It is the same as RE_MULTIBYTE_P (bufp) now.
9109 <exactn>: Translate via multibyte.
9110 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
9111 translate it.
9112 <charset, charset_not>: Fetch a character by
9113 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
9114 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
9115 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
9116 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
9117 by GET_CHAR_AFTER.
9118 (bcmp_translate): Likewise.
9119
9120 * search.c (compile_pattern): Check the member target_multibyte,
9121 not the member multibyte of buf.
9122
9123 * lread.c (read1): While reading a string, set force_singlebyte
9124 and force_multibyte correctly.
9125
9126 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
9127 up of unibyte_to_multibyte_table.
9128
9129 2008-02-01 Kenichi Handa <handa@m17n.org>
9130
9131 * coding.c (setup_coding_system): If coding has
9132 post-read-conversion or pre-write-conversion, set
9133 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
9134 respectively.
9135 (decode_coding_gap): Run post-read-conversion if any.
9136
9137 * fileio.c (Finsert_file_contents): Even if we read into a
9138 unibyte buffer, check if we must decode the result or not.
9139
9140 2008-02-01 Kenichi Handa <handa@m17n.org>
9141
9142 * coding.c (make_conversion_work_buffer): Change the work buffer
9143 name to the same one as that of Emacs 21.
9144
9145 2008-02-01 Kenichi Handa <handa@m17n.org>
9146
9147 * coding.h (make_conversion_work_buffer): Adjust prototype.
9148 (code_conversion_restore): Don't extern it.
9149
9150 * coding.c (detected_mask): Delete unused variable.
9151 (decode_coding_iso_2022): Pay attention to the byte sequence of
9152 CTEXT extended segment, and retain those bytes as is.
9153 (decode_coding_ccl): Delete unused variable `valids'.
9154 (setup_coding_system): Delete unused variable `category'.
9155 (consume_chars): Delete unused variable `category'. Make it work
9156 for non-multibyte case.
9157 (make_conversion_work_buffer): Change argument.
9158 (saved_coding): Delete unused variable.
9159 (code_conversion_restore): Don't check saved_coding->destination.
9160 (code_conversion_save): New function.
9161 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
9162 instead of record_unwind_protect.
9163 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
9164 (detect_coding_system): Delete unused variable `mask'.
9165 (Fdefine_coding_system_internal): Delete unused vaiable id.
9166
9167 * fileio.c (kill_workbuf_unwind): New function.
9168 (Finsert_file_contents): On replacing, call
9169 make_conversion_work_buffer with correct args, and call
9170 record_unwind_protect with the first arg kill_workbuf_unwind.
9171
9172 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
9173
9174 2008-02-01 Kenichi Handa <handa@m17n.org>
9175
9176 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
9177 (fontset_add): Fix for the case that TO is less than TO1.
9178 (Ffontset_info): Don't use fallback fontset on checking the
9179 default fontset.
9180 (dump_fontset): New function for debugging.
9181
9182 * coding.c (Fdefine_coding_system_internal): Fix for the case that
9183 coding_type is Qcharset.
9184
9185 2008-02-01 Kenichi Handa <handa@m17n.org>
9186
9187 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
9188 (map_char_table): Don't inherit the value from the parent on
9189 initializing VAL. Adjust for the above change.
9190
9191 2008-02-01 Kenichi Handa <handa@m17n.org>
9192
9193 * coding.c (Qsignature, Qendian): Delete these variables.
9194 (syms_of_coding): Don't initialize them.
9195 (CATEGORY_MASK_UTF_16_AUTO): New macro.
9196 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
9197 detect_info->found.
9198 (decode_coding_utf_16): Don't detect BOM here.
9199 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
9200 is NOT utf_16_without_bom.
9201 (setup_coding_system): For a coding system of type utf-16, check
9202 if the attribute :endian is Qbig or not (not nil or not), and set
9203 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
9204 (detect_coding): If coding type is utf-16 and BOM detection is
9205 required, detect it.
9206 (Fdefine_coding_system_internal): For a coding system of type
9207 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
9208
9209 2008-02-01 Kenichi Handa <handa@m17n.org>
9210
9211 * coding.c (coding_set_source): Fix for the case that the current
9212 buffer is different from coding->src_object.
9213 (decode_coding_object): Don't use the conversion work buffer if
9214 DST_OBJECT is a buffer.
9215
9216 2008-02-01 Dave Love <fx@gnu.org>
9217
9218 * lread.c (read_emacs_mule_char) [len==2]: Index
9219 emacs_mule_charset correctly.
9220
9221 2008-02-01 Dave Love <fx@gnu.org>
9222
9223 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
9224 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
9225 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
9226 treated specially.)
9227 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
9228 (detected_mask): Remove Big5 bits.
9229
9230 2008-02-01 Kenichi Handa <handa@m17n.org>
9231
9232 The following changes are to make the font rescaling facility
9233 compatible with Emacs 21.
9234
9235 * xfaces.c (Vface_font_rescale_alist): Rename from
9236 Vface_resizing_fonts.
9237 (struct font_name): Rename member resizing_ratio to rescale_ratio.
9238 (font_rescale_ratio): Rename from font_resizing_ratio.
9239 (split_font_name): Set font->rescale_ratio.
9240 (better_font_p): Pay attention to font->rescale_ratio.
9241 (build_scalable_font_name): Likewise. Change RESX, and RESY
9242 fields.
9243 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
9244
9245 2008-02-01 Kenichi Handa <handa@m17n.org>
9246
9247 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
9248 (Qutf_16_le): Remove these variables.
9249 (syms_of_coding): Don't DEFSYM them.
9250 (decode_coding_utf_16): Fix handling of BOM.
9251 (encode_coding_utf_16): Fix handling of BOM.
9252
9253 2008-02-01 Kenichi Handa <handa@m17n.org>
9254
9255 * fileio.c (Finsert_file_contents): On replacing, before decoding
9256 the file into the work buffer, set point of the work buffer to the end.
9257
9258 2008-02-01 Dave Love <fx@gnu.org>
9259
9260 * coding.c (Fcheck_coding_systems_region): Fix type errors.
9261
9262 2008-02-01 Dave Love <fx@gnu.org>
9263
9264 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
9265 and fix C types.
9266
9267 2008-02-01 Kenichi Handa <handa@m17n.org>
9268
9269 * xdisp.c (SKIP_GLYPHS): New macro.
9270 (set_cursor_from_row): Pay attention to string display properties.
9271
9272 * category.c (copy_category_entry): Fix for the case that RANGE
9273 is an integer.
9274
9275 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
9276
9277 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
9278
9279 2008-02-01 Kenichi Handa <handa@m17n.org>
9280
9281 * charset.c (Fcharset_id_internal): New function.
9282 (syms_of_charset): Defsubr it.
9283
9284 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
9285 with the last arg charset_list acquired from coding.
9286 (Fdefine_coding_system_internal): For ccl-based coding system, fix
9287 the attribute coding_attr_ccl_valids.
9288
9289 * coding.h (enum define_coding_ccl_arg_index): Set the first
9290 member coding_arg_ccl_decoder to coding_arg_max.
9291
9292 * ccl.h (ccl_driver): Adjust prototype.
9293
9294 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
9295 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
9296 of DECODE_CAHR, ENCODE_CHAR, CHAR_CHARSET.
9297 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
9298 last arg Qnil.
9299
9300 2008-02-01 Kenichi Handa <handa@m17n.org>
9301
9302 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
9303 call encode_char.
9304
9305 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
9306
9307 2008-02-01 Dave Love <fx@gnu.org>
9308
9309 * composite.c (syms_of_composite): Make composition_hash_table weak.
9310
9311 2008-02-01 Kenichi Handa <handa@m17n.org>
9312
9313 * dispextern.h (check_face_attributes, generate_ascii_font_name)
9314 (font_name_registry): Don't extern them.
9315 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
9316
9317 * fontset.h (Qfontset): Don't extern it.
9318 (new_fontset_from_font_name): Extern it.
9319
9320 * fontset.c: Give 8 extra slots to fontset objects.
9321 (Qfontset_info): New variable.
9322 (syms_of_fontset): Defsym it.
9323 (FONTSET_FALLBACK): New macro.
9324 (fontset_face): Try also the default fontset.
9325 (make_fontset): Realize a fallback fontset from the default fontset.
9326 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
9327 using split_font_name_into_vector and build_font_name_from_vector.
9328 (Fset_fontset_font): Access the elements of font_spec by enum
9329 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
9330 name by using split_font_name_into_vector.
9331 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
9332 generate a proper font name from the fontset name. Update
9333 Vfontset_alias_alist.
9334 (n_auto_fontsets): New variable.
9335 (new_fontset_from_font_name): New function.
9336 (Ffont_info): Store the information about fonts generated from the
9337 default fontset in the first extra slot of the returned char-table.
9338
9339 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
9340 (font_name_registry): Delete function.
9341 (split_font_name_into_vector): New function.
9342 (build_font_name_from_vector): New function.
9343 (font_list): The argument REGISTRY is now a list of registry names.
9344 (choose_face_font): If we are choosing an ASCII font, and ATTRS
9345 specifies an explicit font name, return the name as is. Make a
9346 list of registy names.
9347
9348 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
9349 of x_new_fontset.
9350 (Fx_create_frame): Don't call x_new_fontset here. Just use
9351 x_list_fonts to check the existence of fonts.
9352
9353 * xterm.h (x_new_fontset): Adjust prototype.
9354
9355 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
9356 string. Use new_fontset_from_font_name to create a fontset from a
9357 font name.
9358
9359 2008-02-01 Kenichi Handa <handa@m17n.org>
9360
9361 * syntax.c (Vfind_word_boundary_function_table): New name for
9362 Vnext_word_boundary_function_table.
9363 (find-word-boundary-function-table): New name for
9364 next-word-boundary-function-table.
9365
9366 2008-02-01 Dave Love <fx@gnu.org>
9367
9368 * Makefile.in: Fix some dependencies.
9369
9370 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
9371 set it to nil before returning.
9372
9373 * composite.c (update_compositions): Fix type error.
9374
9375 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
9376
9377 2008-02-01 Kenichi Handa <handa@m17n.org>
9378
9379 * xterm.c (x_new_font): Optimize for the case that the font is
9380 already set for the frame.
9381
9382 2008-02-01 Kenichi Handa <handa@m17n.org>
9383
9384 * chartab.c (char_table_ascii): Check if the char table contents
9385 is sub-char-table or not.
9386 (char_table_set, char_table_set_range): Fix argument to
9387 char_table_ascii.
9388
9389 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
9390 (detect_coding_utf_8, detect_coding_utf_16)
9391 (detect_coding_emacs_mule, detect_coding_iso_2022)
9392 (detect_coding_sjis, detect_coding_big5)
9393 (detect_coding_ccl, detect_coding_charset): Change argument MASK
9394 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
9395 sequence is valid in this coding system. Change callers.
9396 (MAX_ANNOTATION_LENGTH): New macro.
9397 (ADD_ANNOTATION_DATA): New macro.
9398 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
9399 ADD_ANNOTATION_DATA. Change the format of annotation data.
9400 (ADD_CHARSET_DATA): New macro.
9401 (emacs_mule_char): New argument ID. Change callers.
9402 (decode_coding_emacs_mule, decode_coding_iso_2022)
9403 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
9404 Produce charset annotation data in coding->charbuf.
9405 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
9406 to charset annotation data in coding->charbuf.
9407 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
9408 coding->common_flags if the coding system is iso-2022 based and
9409 uses designation.
9410 (produce_composition): Adjust for the new annotation data format.
9411 (produce_charset): New function.
9412 (produce_annotation): Handle charset annotation.
9413 (handle_composition_annotation, handle_charset_annotation): New
9414 functions.
9415 (consume_chars): Handle charset annotation. Utilize the above two
9416 functions.
9417 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
9418 buffer, get the deleted text as a string and set
9419 coding->src_object to that string.
9420 (detect_coding, detect_coding_system): Use the new struct
9421 coding_detection_info.
9422
9423 * coding.h (struct coding_detection_info): New structure.
9424 (struct coding_system): Adjust prototype of the member `detector'.
9425 (CODING_ANNOTATE_CHARSET_MASK): New macro.
9426
9427 2008-02-01 Kenichi Handa <handa@m17n.org>
9428
9429 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
9430
9431 2008-02-01 Dave Love <fx@gnu.org>
9432
9433 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
9434 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
9435 to new local and nullify apropos_accumulate before returning.
9436 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
9437
9438 2008-02-01 Kenichi Handa <handa@m17n.org>
9439
9440 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
9441 correctly.
9442
9443 2008-02-01 Dave Love <fx@gnu.org>
9444
9445 * fns.c (Flanginfo): Call synchronize_system_time_locale.
9446
9447 2008-02-01 Kenichi Handa <handa@m17n.org>
9448
9449 The following changes are to make character composition happen
9450 automatically on displaying.
9451
9452 * Makefile.in (lisp, shortlisp): Add composite.elc.
9453
9454 * composite.h (Qauto_composed, Vauto_composition_function)
9455 (Qauto_composition_function): Extern them.
9456
9457 * composite.c (Vcomposition_function_table)
9458 (Qcomposition_function_table): Delete variables.
9459 (Qauto_composed, Vauto_composition_function)
9460 (Qauto_composition_function): New variables.
9461 (run_composition_function): Don't call
9462 compose-chars-after-function.
9463 (update_compositions): Clear `auto-composed' text property.
9464 (compose_chars_in_text): Delete this function.
9465 (syms_of_composite): Staticpro Qauto_composed and
9466 Qauto_composition_function. Declare Vauto_composition_function as
9467 a Lisp variable.
9468
9469 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
9470
9471 * xdisp.c (it_props): Add an entry for Qauto_composed.
9472 (handle_auto_composed_prop): New function.
9473
9474 * xselect.c (selection_data_to_lisp_data): Don't call
9475 compose_chars_in_text.
9476
9477 2008-02-01 Dave Love <fx@gnu.org>
9478
9479 * keyboard.c (read_char): Modify checking around use of
9480 Vkeyboard_translate_table.
9481
9482 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
9483 and fix C types.
9484
9485 2008-02-01 Kenichi Handa <handa@m17n.org>
9486
9487 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
9488 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9489 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
9490 the case that the last byte is '\r' correctly.
9491 (decode_coding): Flush out the unprocessed data correctly.
9492 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
9493
9494 2008-02-01 Dave Love <fx@gnu.org>
9495
9496 * xterm.c (XTread_socket): Fix changes for defined keysyms.
9497 Add XK_ISO... case.
9498 (xaw_scroll_callback): Revert last change.
9499
9500 2008-02-01 Kenichi Handa <handa@m17n.org>
9501
9502 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
9503
9504 2008-02-01 Kenichi Handa <handa@m17n.org>
9505
9506 * xfaces.c (Vface_resizing_fonts): New variable.
9507 (struct font_name): New member `resizing_ratio'.
9508 (font_resizing_ratio): New function.
9509 (split_font_name): Set font->resizing_ratio.
9510 (better_font_p): Pay attention to font->resizing_ratio.
9511 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
9512 RESX, and RESY fields.
9513 (try_alternative_families): Try scalable fonts if
9514 Vscalable_fonts_allowed is not Qt.
9515 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
9516
9517 2008-02-01 Dave Love <fx@gnu.org>
9518
9519 * xterm.c (xaw_scroll_callback): Cast correctly.
9520
9521 2008-02-01 Dave Love <fx@gnu.org>
9522
9523 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
9524 (lispy_kana_keys): Comment out.
9525 (make_lispy_event) [XK_kana_A]: Comment out.
9526
9527 * xterm.c (xaw_scroll_callback): Cast call_data.
9528 (XTread_socket): Deal with ASCII keysyms.
9529 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
9530
9531 2008-02-01 Dave Love <fx@gnu.org>
9532
9533 * xterm.c (Vx_keysym_table): New.
9534 (syms_of_xterm): Initialize it.
9535 (XTread_socket): Use it.
9536 From head: Eliminate incorrect optimization that tried to avoid
9537 decoding the output of X*LookupString.
9538 (x_get_font_repertory): Delete charset declaration.
9539
9540 2008-02-01 Kenichi Handa <handa@m17n.org>
9541
9542 * coding.c (detect_coding_charset): If only ASCII bytes are found,
9543 return 0.
9544 (Fdefine_coding_system_internal): Setup
9545 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
9546
9547 2008-02-01 Dave Love <fx@gnu.org>
9548
9549 * coding.c (Fcheck_coding_system): Doc fix.
9550
9551 * editfns.c (Finsert_byte): Return a proper value.
9552
9553 2008-02-01 Kenichi Handa <handa@m17n.org>
9554
9555 * coding.c (decode_coding): Fix args to translate_chars. Pay
9556 attention to Vstandard_translation_table_for_decode.
9557 (encode_coding): Fix args to translate_chars. Pay attention to
9558 Vstandard_translation_table_for_encode.
9559
9560 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
9561 SINGLE_BYTE_CHAR_P.
9562
9563 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
9564 not by SINGLE_BYTE_CHAR_P.
9565
9566 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
9567 SINGLE_BYTE_CHAR_P.
9568
9569 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
9570 SINGLE_BYTE_CHAR_P.
9571
9572 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
9573 by SINGLE_BYTE_CHAR_P.
9574
9575 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
9576 SINGLE_BYTE_CHAR_P.
9577
9578 2008-02-01 Dave Love <fx@gnu.org>
9579
9580 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
9581
9582 2008-02-01 Dave Love <fx@gnu.org>
9583
9584 * fns.c (Flanginfo): Fix typo.
9585
9586 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
9587
9588 2008-02-01 Kenichi Handa <handa@m17n.org>
9589
9590 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
9591 (detect_coding_emacs_mule, detect_coding_iso_2022)
9592 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
9593 incomplete byte sequence. Don't update *mask when correctly detected.
9594 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
9595 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
9596 (detect_coding, detect_coding_system): Adjust for the changes above.
9597
9598 2008-02-01 Kenichi Handa <handa@m17n.org>
9599
9600 * character.c (char_string): Rename from
9601 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
9602 (string_char): Rename from string_char.
9603
9604 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
9605 if C is greater than MAX_3_BYTE_CHAR.
9606 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
9607 string_char instead of string_char_with_unification.
9608
9609 2008-02-01 Dave Love <fx@gnu.org>
9610
9611 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
9612
9613 2008-02-01 Kenichi Handa <handa@m17n.org>
9614
9615 * keymap.c (push_key_description): Pay attention to force_multibyte.
9616
9617 * regex.c (re_search_2): Fix for the case of unibyte buffer.
9618
9619 2008-02-01 Dave Love <fx@gnu.org>
9620
9621 * charset.c (define_charset_internal): Rename `supprementary'.
9622
9623 * Makefile.in (lisp, shortlisp): Remove latin-N.
9624
9625 2008-02-01 Dave Love <fx@gnu.org>
9626
9627 * xfns.c (x_window, x_window): Use use_xim.
9628
9629 * xterm.c (use_xim): Initialize.
9630 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
9631 (x_term_init): Maybe set use_xim.
9632
9633 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
9634
9635 2008-02-01 Kenichi Handa <handa@m17n.org>
9636
9637 * search.c (search_buffer): Fix case-fold-search of multibyte
9638 characters.
9639 (boyer_moore): Rename the last argument to char_high_bits.
9640
9641 2008-02-01 Kenichi Handa <handa@m17n.org>
9642
9643 * xdisp.c (display_string): Fix for the case of zero width glyph.
9644
9645 * xfns.c (x_set_font): Change the error message of the case that
9646 x_new_fontset returns Qt.
9647
9648 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
9649 (Finternal_set_lisp_face_attribute): Use signal_error for the
9650 error of invalid fontset.
9651
9652 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
9653 fontset, return Qt.
9654
9655 2008-02-01 Dave Love <fx@gnu.org>
9656
9657 * unexelf.c (unexec): Make .got handling not SGI-specific.
9658
9659 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
9660
9661 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
9662
9663 * keyboard.c (read_key_sequence): Fix type error.
9664
9665 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
9666 type error.
9667
9668 * fontset.c (fontset_add): Return Lisp_Object.
9669
9670 2008-02-01 Dave Love <fx@gnu.org>
9671
9672 * charset.h (charset_ordered_list_tick): Declare extern.
9673
9674 2008-02-01 Kenichi Handa <handa@m17n.org>
9675
9676 The following changes (and some of 2008-02-01 changes of mine) are
9677 for handling syntax, category, and case conversion for unibyte
9678 characters by converting them to multibyte on the fly. With these
9679 changes, we don't have to setup syntax and case tables for unibyte
9680 characters in each language environment.
9681
9682 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
9683 multibyte if necessary.
9684
9685 * bytecode.c (Fbyte_code): Likewise.
9686
9687 * character.h (LEADING_CODE_LATIN_1_MIN)
9688 (LEADING_CODE_LATIN_1_MAX): New macros.
9689 (unibyte_to_multibyte_table): Extern it.
9690 (unibyte_char_to_multibyte): New macro.
9691 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
9692 (CHAR_LEADING_CODE): New macro.
9693 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
9694
9695 * character.c (unibyte_to_multibyte_table): New variable.
9696 (unibyte_char_to_multibyte): Move to character.h and define as macro.
9697 (multibyte_char_to_unibyte): If C is an eight-bit character,
9698 convert it to the corresponding byte value.
9699
9700 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
9701 not 1, singals an error. Update the elements of
9702 unibyte_to_multibyte_table.
9703 (init_charset_once): Initialize unibyte_to_multibyte_table.
9704 (syms_of_charset): Define the charset `iso-8859-1'.
9705
9706 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
9707 as is without converting it to unibyte. In a unibyte buffer,
9708 convert C to multibyte before checking the syntax.
9709
9710 * lisp.h (unibyte_char_to_multibyte): Delete extern.
9711
9712 * minibuf.c (Fminibuffer_complete_word): Use the macro
9713 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
9714
9715 * regex.h (struct re_pattern_buffer): New member target_multibyte.
9716
9717 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
9718 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
9719 that is zero, convert an eight-bit char to multibyte.
9720 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
9721 non-emacs case.
9722 (PATFETCH): Convert an eight-bit char to multibyte.
9723 (HANDLE_UNIBYTE_RANGE): New macro.
9724 (regex_compile): Setup the compiled pattern for multibyte chars
9725 even if the given regex string is unibyte. Use PATFETCH_RAW
9726 instead of PATFETCH in many places. To handle `charset'
9727 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
9728 only for ASCII chars.
9729 (analyse_first) <exactn>: Simplify because the compiled pattern
9730 is multibyte.
9731 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
9732 <charset>: Use CHAR_LEADING_CODE to get leading codes.
9733 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
9734 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
9735 multibyte always 1.
9736 (re_search_2): In emacs, set the locale variable multibyte to 1,
9737 otherwise to 0. New local variable target_multibyte. Check it
9738 to decide the multibyteness of STR1 and STR2. If
9739 target_multibyte is zero, convert unibyte chars to multibyte
9740 before translating and checking fastmap.
9741 (TARGET_CHAR_AND_LENGTH): New macro.
9742 (re_match_2_internal): In emacs, set the locale variable multibyte
9743 to 1, otherwise to 0. New local variable target_multibyte. Check
9744 it to decide the multibyteness of STR1 and STR2. Use
9745 TARGET_CHAR_AND_LENGTH to fetch a character from D.
9746 <charset, charset_not>: If multibyte is nonzero, check fastmap
9747 only for ASCII chars. Call bcmp_translate with
9748 target_multibyte, not with multibyte.
9749 <begline>: Declare the local variable C as `unsigned'.
9750 (bcmp_translate): Change the last arg name to target_multibyte.
9751
9752 * search.c (compile_pattern_1): Don't adjust the multibyteness of
9753 the regexp pattern and the matching target. Set cp->buf.multibyte
9754 to the multibyteness of the regexp pattern. Set
9755 cp->but.target_multibyte to the multibyteness of the matching target.
9756 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
9757 FETCH_STRING_CHAR_ADVANCE.
9758 (Freplace_match): Convert unibyte chars to multibyte.
9759
9760 * syntax.c (char_quoted, back_comment, scan_words)
9761 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
9762 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
9763 unibyte chars to multibyte.
9764 (skip_chars): Delete the arg syntaxp, and move the code for
9765 handling syntaxes to skip_syntaxes. Change callers.
9766 Fix the case that the multibyteness of STRING and the current
9767 buffer doesn't match.
9768 (skip_syntaxes): New function.
9769 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
9770 SINGLE_BYTE_CHAR_P.
9771
9772 2008-02-01 Kenichi Handa <handa@m17n.org>
9773
9774 * xfaces.c (QCfontset): New variable.
9775 (LFACE_FONTSET): New macro.
9776 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
9777 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
9778 (Finternal_set_lisp_face_attribute)
9779 (Finternal_get_lisp_face_attribute): Handle QCfontset.
9780 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
9781 check also LFACE_FONTSET_INDEX.
9782 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
9783 attrs[LFACE_FONT_INDEX].
9784 (syms_of_xfaces): Intern and staticpro QCfontset.
9785
9786 * dispextern.h (enum lface_attribute_index): New member
9787 LFACE_FONTSET_INDEX.
9788
9789 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
9790
9791 2008-02-01 Kenichi Handa <handa@m17n.org>
9792
9793 * coding.c (coding_set_destination): Fix coding->destination for
9794 the case converting a region.
9795 (encode_coding_utf_8): Encode eight-bit chars as single byte.
9796 (encode_coding_object): Fix coding->dst_pos and
9797 coding->dst_pos_byte for the case converting a region.
9798
9799 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
9800
9801 * character.h (BYTE8_STRING): New macro.
9802
9803 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
9804
9805 2008-02-01 Kenichi Handa <handa@m17n.org>
9806
9807 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
9808 characters by octal form.
9809
9810 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
9811
9812 * buffer.h (_fetch_multibyte_char_len): Delete extern.
9813 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
9814 _fetch_multibyte_char_len.
9815 (FETCH_CHAR_AS_MULTIBYTE): New macro.
9816
9817 * casetab.c (set_canon, set_identity, shuffle): Simplify.
9818
9819 * casefiddle.c (casify_object): Simplify. Handle the case that
9820 the case conversion change the byte length.
9821 (casify_region): Likewise.
9822
9823 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
9824
9825 * character.c (_fetch_multibyte_char_len): Delet this variable.
9826 (syms_of_character): Setup Vprintable_chars.
9827
9828 * editfns.c (Fchar_equal): Fix for the unibyte case.
9829 (Finsert_byte): New function.
9830 (syms_of_editfns): Defsubr it.
9831
9832 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
9833 of direct code 0x3ffff.
9834
9835 * search.c (Freplace_match): Fix for the unibyte case.
9836
9837 2008-02-01 Kenichi Handa <handa@m17n.org>
9838
9839 * lread.c (safe_to_load_p): Fix the logic.
9840
9841 * syntax.c (scan_words): Don't treat characters belonging to
9842 different scripts as constituting a word.
9843
9844 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
9845
9846 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
9847
9848 * emacs.c (main): In the case of --unibyte, instead of aborting on
9849 finding non-empty buffer, make it unibyte.
9850
9851 2008-02-01 Kenichi Handa <handa@m17n.org>
9852
9853 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
9854 to create a fontset.
9855
9856 2008-02-01 Dave Love <fx@gnu.org>
9857
9858 * character.c (Funibyte_char_to_multibyte): Doc fix.
9859
9860 * xfns.c [HAVE_STDLIB_H]: Fix last change.
9861
9862 2008-02-01 Kenichi Handa <handa@m17n.org>
9863
9864 * fontset.c (fontset_add): Make the type `int'.
9865 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
9866
9867 * character.c (unibyte_char_to_multibyte)
9868 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
9869 charset_unibyte, not charset_primary.
9870
9871 * charset.h (charset_unibyte): Extern it instead of charset_primary.
9872
9873 * charset.c (charset_unibyte): Rename from charset_primary.
9874 (Funibyte_charset): Rename from Fprimary_charset.
9875 (Fset_unibyte_charset): Rename from Fset_primary_charset.
9876 (syms_of_charset): Adjust for the above changes.
9877
9878 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
9879 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
9880 it->multibyte_p is zero.
9881
9882 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
9883 Delete extern.
9884
9885 2008-02-01 Kenichi Handa <handa@m17n.org>
9886
9887 * coding.c (Fdefine_coding_system_internal): Fix category setting
9888 for a coding system of type iso-2022.
9889
9890 2008-02-01 Kenichi Handa <handa@m17n.org>
9891
9892 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
9893
9894 2008-02-01 Kenichi Handa <handa@m17n.org>
9895
9896 * syntax.c (Vnext_word_boundary_function_table): New variable.
9897 (next-word-boundary-function-table): Declare it as a Lisp variable
9898 in syms_of_syntax.
9899 (scan_words): Call functions in Vnext_word_boundary_function_table
9900 if any.
9901
9902 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
9903
9904 * fontset.c (fs_load_font): If fontp->charset is not negative,
9905 return fontp without setting its members.
9906
9907 2008-02-01 Dave Love <fx@gnu.org>
9908
9909 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
9910
9911 * m/sparc.h (HAVE_ALLOCA): Delete.
9912
9913 * s/irix6-5.h: Don't include strings.h.
9914 (bcopy, bzero, bcmp): Don't undef.
9915
9916 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
9917
9918 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
9919 (TIOCSIGSEND): Don't test IRIX6.
9920 (bcopy, bzero, bcmp): Define conditionally.
9921
9922 2008-02-01 Kenichi Handa <handa@m17n.org>
9923
9924 * buffer.c (Qas, Qmake, Qto): New variables.
9925 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
9926 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
9927
9928 * callproc.c (Fcall_process): Don't call insert_1_both directly if
9929 we are inserting a process output into a multibyte buffer.
9930
9931 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
9932 multibyte_char_to_unibyte.
9933
9934 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
9935 by the primary charset, make it eight-bit char.
9936 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
9937
9938 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
9939 (charset_8_bit__control, charset_8_bit_graphic)
9940 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
9941 (define_charset_internal): New function.
9942 (syms_of_charset): Call define_charset_internal for pre-defined
9943 charsets.
9944
9945 * charset.h (charset_8_bit): Extern it.
9946
9947 * coding.c (make_conversion_work_buffer): Adjust for the change
9948 of Fset_buffer_multibyte.
9949 (encode_coding_raw_text): Increment p0 in the loop.
9950
9951 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
9952
9953 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
9954 for the change of Fset_buffer_multibyte.
9955
9956 * fns.c (Fstring_to_multibyte): New function.
9957 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
9958
9959 2008-02-01 Dave Love <fx@gnu.org>
9960
9961 * xfns.c (x_put_x_image): Declare args.
9962
9963 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
9964 (try_font_list): Declare an arg.
9965
9966 * xdisp.c (message2_nolog, set_message): Declare an arg.
9967
9968 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
9969
9970 * syntax.c (scan_sexps_forward): Declare an arg.
9971
9972 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
9973 Declare an arg.
9974
9975 * lisp.h (Fnew_fontset): Declare.
9976
9977 * keymap.c (push_key_description): Call CHARACTERP correctly.
9978
9979 * fontset.c (fontset_add): Declare args. Call make_number correctly.
9980 (face_for_char): Delete unused vars.
9981 (Fset_fontset_font): Doc fix. Delete unused vars.
9982
9983 * doc.c (Fsubstitute_command_keys): Delete unused vars.
9984
9985 * composite.c (update_compositions): Declare arg.
9986
9987 * cm.c (calccost, cmgoto): Declare args.
9988
9989 * charset.c: Remove `emacs' conditional. Doc fixes.
9990 (map_char_table_for_charset): Declare.
9991
9992 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
9993
9994 * ccl.c: Remove `emacs' conditional.
9995
9996 2008-02-01 Kenichi Handa <handa@m17n.org>
9997
9998 The following changes are to allow specifying multiple font
9999 patterns for a character range (specified by script or charset).
10000
10001 * Makefile.in (abbrev.o): Depend on syntax.h.
10002 (xfaces.o): Depend on charset.h.
10003
10004 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
10005 SINGLE_BYTE_CHAR_P.
10006
10007 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
10008
10009 * character.h (Vchar_script_table): Extern it.
10010
10011 * character.c (Vscript_alist): Delete.
10012 (Vchar_script_table, Qchar_script_table): New variable.
10013 (syms_of_character): Declare Vchar_script_table as a lisp variable
10014 and initialize it.
10015
10016 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
10017 have property char-table-extra-slots, make no extra slot.
10018
10019 * dispextern.h (struct face): Delete member `charset'.
10020 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
10021 SINGLE_BYTE_CHAR_P.
10022 (choose_face_font, lookup_non_ascii_face, font_name_registry):
10023 Add prototypes.
10024 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
10025 (generate_ascii_font_name): Rename from generate_ascii_font.
10026
10027 * fontset.h (get_font_repertory_func): New prototype.
10028 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
10029 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
10030
10031 * fontset.c (Qprepend, Qappend): New variables.
10032 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
10033 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
10034 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
10035 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
10036 (fontset_ref_and_range, fontset_add, reorder_font_vector)
10037 (load_font_get_repertory): New functions.
10038 (fontset_set): Delete.
10039 (fontset_face): New arg FACE. Return face ID, not face.
10040 Complete re-write to handle new fontset structure. Change caller.
10041 (free_face_fontset): Use ASET istead of AREF (X) = Y.
10042 (face_for_char): Don't call lookup_face.
10043 (make_fontset_for_ascii_face): New arg FACE.
10044 (fs_load_font): New arg CHARSET_ID. Don't check
10045 Vfont_encoding_alist here.
10046 (find_font_encoding): New function.
10047 (list_fontsets): Use STRINGP, not ! NILP.
10048 (accumulate_script_ranges): New function.
10049 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
10050 re-written to handle new fontset structure.
10051 (Ffontset_font): Return a copy of element.
10052 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
10053 docstring of font-encoding-alist.
10054
10055 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
10056 (Fset_fotset_font): Fix arguments to 5.
10057
10058 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
10059
10060 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
10061 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
10062 (highlight_trailing_whitespace): Adjust for the change of
10063 lookup_named_face.
10064
10065 * xfaces.c: Include charset.h.
10066 (load_face_font): Delete argument C. Change caller.
10067 (generate_ascii_font_name): Rename from generate_ascii_font.
10068 (font_name_registry): New function.
10069 (cache_face): Store ascii faces before non-ascii faces in buckets.
10070 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
10071 Lookup only ascii faces.
10072 (lookup_non_ascii_face): New function.
10073 (lookup_named_face): Delete argument C. Change caller.
10074 (lookup_derived_face): Delete argument C. Change caller.
10075 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
10076 a string, just call font_list with it.
10077 (choose_face_font): Delete arguments FACE and C. New arg
10078 FONT_SPEC. Change caller.
10079 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
10080 Change caller.
10081 (realize_non_ascii_face): New function.
10082 (realize_x_face): Call load_face_font here.
10083 (realize_tty_face): Delete argument C. Change caller.
10084 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
10085 get a face ID.
10086 (dump_realized_face): Don't print charset of FACE.
10087
10088 * xfns.c (x_set_font): Always call x_new_fontset and
10089 store_frame_parameter.
10090 (Fx_create_frame): Call x_new_fontset, not x_new_font.
10091 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
10092
10093 * xterm.h (x_get_font_repertory): Extern it.
10094
10095 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
10096 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
10097 it->multibyte_p is zero.
10098 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
10099 (x_new_fontset): If FONTSETNAME doesn't match any existing
10100 fontsets, create a new one.
10101 (x_get_font_repertory): New function.
10102
10103 2008-02-01 Kenichi Handa <handa@m17n.org>
10104
10105 * coding.c (Ffind_coding_systems_region_internal): Detect an
10106 ASCII only string correctly.
10107
10108 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
10109 version is 0.
10110
10111 2008-02-01 Kenichi Handa <handa@m17n.org>
10112
10113 * lread.c: Include "coding.h".
10114 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
10115 (load_each_byte, unread_char): New variables.
10116 (readchar_backlog): Delete.
10117 (readchar): Return a character unless load_each_byte is nonzero.
10118 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
10119 cons. If unread_char is not -1, simply return it.
10120 (unreadchar): Handle the case that readcharfun is
10121 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
10122 (read_multibyte): Delete.
10123 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
10124 (read_emacs_mule_char): New functions.
10125 (Fload): Even if the file doesn't have the extention ".elc", if
10126 safe_to_load_p returns a positive version number, assume that the
10127 file contains bytecompiled code. If the version is less than 22,
10128 load the file while decoding multibyte sequences by emacs-mule.
10129 (readevalloop): Don't use readchar_backlog.
10130 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
10131 (Fread_from_string): Pay attention to the case that STREAM is a cons.
10132 (read_escape): Delete the arg BYTEREP.
10133 (read1): Set load_each_byte to 1 temporarily while handling
10134 #@NUMBER. Don't call read_multibyte.
10135 (read_vector): Call Fread with a cons. If readcharfun is
10136 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
10137 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
10138 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
10139 and Qload_force_doc_strings.
10140
10141 2008-02-01 Kenichi Handa <handa@m17n.org>
10142
10143 * xdisp.c (face_before_or_after_it_pos): Call
10144 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
10145
10146 2008-02-01 Kenichi Handa <handa@m17n.org>
10147
10148 * character.h (TRAILING_CODE_P): New macro.
10149 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
10150 (string_char_with_unification): Fix prototype.
10151 (Vscript_alist): Extern it.
10152
10153 * character.c (Vscript_alist): New variable.
10154 (string_char_with_unification, str_as_unibyte)
10155 (string_escape_byte8): Add `const' to local variables.
10156 (syms_of_character): Declare script-alist as a Lisp variable.
10157
10158 * charset.h (Vcharset_ordered_list): Extern it.
10159 (charset_ordered_list_tick): Extern it.
10160 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
10161 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
10162 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
10163 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
10164 (Funify_charset): Adjust for the change of Funify_charset.
10165
10166 * charset.c (charset_ordered_list_tick): New variable.
10167 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
10168 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
10169 deunify intead of unify a charset.
10170 (string_xstring_p): Add `const' to local variables.
10171 (find_charsets_in_text): Add `const' to arguemnts and local variables.
10172 (encode_char): Adjust for the change of Funify_charset. Fix
10173 detecting of invalid code.
10174 (Fset_charset_priority): Increment charset_ordered_list_tick.
10175 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
10176 and TO_CODE.
10177
10178 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
10179 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
10180 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
10181 (decode_coding_ccl, consume_chars)
10182 (Ffind_coding_systems_region_internal)
10183 (Fcheck_coding_systems_region): Add `const' to local variables.
10184
10185 * print.c (print_object): Use octal form for printing the
10186 contents of a bool vector.
10187
10188 2008-02-01 Dave Love <fx@gnu.org>
10189
10190 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
10191 <version == 20>: Refuse to load.
10192
10193 2008-02-01 Dave Love <fx@gnu.org>
10194
10195 * fns.c: Move coding.h.
10196 (Qcodeset, Qdays, Qmonths): New.
10197 (concat): Use CHARACTERP instead of INTERGERP.
10198 (Flocale_codeset): Delete.
10199 (Flanginfo): New function.
10200 (syms_of_fns): Change accordingly.
10201
10202 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
10203
10204 2008-02-01 Dave Love <fx@gnu.org>
10205
10206 * casetab.c (init_casetab_once, init_casetab_once): Fix
10207 CHAR_TABLE_SET call.
10208
10209 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
10210
10211 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
10212
10213 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
10214 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
10215 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
10216
10217 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
10218
10219 * coding.c (ENCODE_DESIGNATION, decode_eol)
10220 (make_conversion_work_buffer, code_conversion_restore)
10221 (Fdefine_coding_system_internal): Convert Lisp types.
10222 (code_conversion_restore): Use EQ, not ==.
10223 (Fencode_coding_string): Fix code_convert_string call.
10224
10225 * coding.h (code_convert_region): Fix prototype.
10226
10227 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
10228
10229 * fontset.c (fontset_ref, fontset_set, fs_load_font)
10230 (Ffontset_info): Convert Lisp types.
10231
10232 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
10233
10234 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
10235
10236 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
10237
10238 * chartab.c: Include "...h", not <...h> in some cases.
10239
10240 * callproc.c (Fcall_process): Remove unused variables.
10241
10242 2008-02-01 Dave Love <fx@gnu.org>
10243
10244 * coding.c (Fset_coding_system_priority): Allow null arg list.
10245
10246 2008-02-01 Dave Love <fx@gnu.org>
10247
10248 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
10249 (Fself_insert_and_exit): Use CHARACTERP.
10250
10251 * callproc.c (Fcall_process): Remove unused vars.
10252
10253 * xterm.c (XTread_socket): Add extra dead keysyms.
10254
10255 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
10256
10257 * dispextern.h: Remove prototypes for redraw_frame,
10258 redraw_garbaged_frames.
10259
10260 * cmds.c (Fself_insert_command): Use CHARACTERP.
10261
10262 * chartab.c (make_sub_char_table): Remove unused var.
10263 (Fset_char_table_default, Fmap_char_table): Doc fix.
10264
10265 * keymap.c (access_keymap): Remove generic char code.
10266 (push_key_description): Use CHARACTERP.
10267
10268 2008-02-01 Dave Love <fx@gnu.org>
10269
10270 * charset.c: Doc fixes.
10271 (Funify_charset): Extra checking.
10272
10273 2008-02-01 Dave Love <fx@gnu.org>
10274
10275 * lread.c: Remove some unused variables.
10276 (safe_to_load_p): If safe, return the magic number version byte.
10277 (Fload): Maybe use load-with-code-conversion.
10278
10279 2008-02-01 Kenichi Handa <handa@m17n.org>
10280
10281 * category.c (Fmodify_category_entry): Don't modify the contents
10282 of category_set for characters out of the range. Avoid
10283 unnecessary modification.
10284
10285 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
10286 Vchar_unify_table. The default value of the table is now nil.
10287
10288 * character.c (syms_of_character): Setup Vchar_width_table for
10289 eight-bit-control and raw-byte chars.
10290
10291 * charset.h (enum define_charset_arg_index): Delete
10292 charset_arg_parents and add charset_arg_subset and
10293 charset_arg_superset.
10294 (enum charset_attr_index): Delete charset_parents and add
10295 charset_subset and charset_superset.
10296 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
10297 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
10298 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
10299 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
10300 (CHARSET_SUPERSET): New macros.
10301 (charset_work): Extern it.
10302 (ENCODE_CHAR): Use charset_work.
10303 (CHAR_CHARSET_P): Adjust for the change of encoder format.
10304 (map_charset_chars): Extern it.
10305
10306 * charset.c (load_charset_map): Set the default value of encoder
10307 and deunifier char-tables to nil.
10308 (map_charset_chars): Change argument. Change callers. Use
10309 map_char_table_for_charset instead of map_char_table.
10310 (Fmap_charset_chars): New optional args from_code and to_code.
10311 (Fdefine_charset_internal): Adjust for the change of
10312 `define-charset' (:parents -> :subset or :superset).
10313 (charset_work): New variable.
10314 (encode_char, syms_of_charset): Adjust for the change of
10315 Fdefine_charset_internal.
10316 (Ffind_charset_string): Setup the vector `charsets' correctly.
10317
10318 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
10319 the previous change.
10320 (char_table_ref_and_range): Adjust for the above change.
10321 (map_sub_char_table_for_charset): New function.
10322 (map_char_table_for_charset): New function.
10323
10324 * keymap.c (describe_vector): Handle a char-table directly here.
10325 (describe_char_table): Delete.
10326
10327 * lisp.h (map_charset_chars): Delete.
10328
10329 2008-02-01 Dave Love <fx@gnu.org>
10330
10331 * fns.c (count_combining): Comment out (unused).
10332 (Flocale_codeset): New.
10333 (syms_of_fns): Defsubr it.
10334
10335 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
10336 (size_t): Remove.
10337
10338 2008-02-01 Dave Love <fx@gnu.org>
10339
10340 * Makefile.in (chartab.o): Depend on charset.h.
10341
10342 2008-02-01 Kenichi Handa <handa@m17n.org>
10343
10344 * character.c (syms_of_character): Set the default value of
10345 Vprintable_chars to Qnil.
10346
10347 2008-02-01 Dave Love <fx@gnu.org>
10348
10349 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
10350
10351 2008-02-01 Kenichi Handa <handa@m17n.org>
10352
10353 * charset.c (load_charset_map): Handle the case that from < to
10354 correctly.
10355
10356 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
10357 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
10358 Pay attention to raw-8-bit chars.
10359
10360 2008-02-01 Kenichi Handa <handa@m17n.org>
10361
10362 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
10363 It is not bytecompiled now.
10364
10365 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
10366 (charset_jisx0208): New variables.
10367 (Fdefine_charset_internal): Setup them if appropriate.
10368 (init_charset_once): Initialize them to -1.
10369
10370 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
10371 (charset_jisx0208): Extern them.
10372
10373 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
10374 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
10375 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
10376 (setup_iso_safe_charsets): Fix arguments to Fassq.
10377 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
10378 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
10379 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
10380 (encode_coding_iso_2022): Change the 1st arg to
10381 ENCODE_ISO_CHARACTER to a variable.
10382
10383 2008-02-01 Kenichi Handa <handa@m17n.org>
10384
10385 * charset.h (enum define_charset_arg_index): New enums
10386 charset_arg_min_code and charset_arg_max_code.
10387 (struct charset): New member char_index_offset.
10388
10389 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
10390 Take charset->char_index_offset into account.
10391 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
10392 args[charset_arg_max_code]. Setup charset.char_index_offset.
10393 (syms_of_charset): Fix args to Fdefine_charset_internal.
10394
10395 2008-02-01 Dave Love <fx@gnu.org>
10396
10397 * coding.c (decode_coding_utf_8): Reject overlong sequences.
10398
10399 2008-02-01 Dave Love <fx@gnu.org>
10400
10401 * coding.c: Doc fixes.
10402 (Fcoding_system_aliases): Fix return value.
10403 (Qmac): Remove (duplicated) definition.
10404
10405 2008-02-01 Dave Love <fx@gnu.org>
10406
10407 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
10408 functions.
10409
10410 * character.c (Fstring): Doc fix.
10411
10412 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
10413
10414 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
10415 ids.
10416 (font-encoding-alist): Doc fix.
10417
10418 2008-02-01 Dave Love <fx@gnu.org>
10419
10420 * term.c (costs_set): Declare static, non-initialized for pcc.
10421 (encode_terminal_code): Remove unused var.
10422
10423 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
10424 for K&R.
10425
10426 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
10427
10428 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
10429 (suffixes): Move out of make_subsidiaries for K&R.
10430
10431 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
10432
10433 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
10434
10435 2008-02-01 Dave Love <fx@gnu.org>
10436
10437 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
10438
10439 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
10440
10441 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
10442
10443 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
10444
10445 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
10446
10447 2008-02-01 Kenichi Handa <handa@m17n.org>
10448
10449 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
10450 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
10451
10452 2008-02-01 Kenichi Handa <handa@m17n.org>
10453
10454 * coding.c (decode_coding_charset): Adjust for the change of
10455 Fdefine_coding_system_internal.
10456 (Fdefine_coding_system_internal): For a coding system of
10457 `charset' type, store a list of charset IDs in
10458 `charset_attr_charset_valids' element of coding attributes.
10459
10460 2008-02-01 Kenichi Handa <handa@m17n.org>
10461
10462 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
10463 (emacs_mule_char): New arg src. Delete arg `composition'. Change
10464 caller. Handle 2-byte and 3-byte charsets correctly.
10465 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
10466 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
10467 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
10468 (DECODE_EMACS_MULE_21_COMPOSITION): Call
10469 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
10470 sequence.
10471 (decode_coding_emacs_mule): Handle composition correctly. Rewind
10472 `src' and `consumed_chars' correctly before calling emacs_mule_char.
10473 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
10474 and alt&rule composition.
10475 (decode_coding_iso_2022): Handle composition correctly.
10476 (init_coding_once): Setup emacs_mule_bytes for private charsets.
10477
10478 * charset.c (Fdefine_charset_internal): Fix bug for the case of
10479 re-defining a charset. If the charset has :emacs-mule-id, setup
10480 emacs_mule_bytes.
10481 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
10482
10483 2008-02-01 Kenichi Handa <handa@m17n.org>
10484
10485 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
10486 (encode_coding_big5, encode_coding_charset): If coding requires safe
10487 encoding, produce a character specified by
10488 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
10489
10490 2008-02-01 Dave Love <fx@gnu.org>
10491
10492 * xterm.c (XSetIMValues): Declare.
10493
10494 * process.c: Conditionally include sys/wait.h, pty.h.
10495
10496 * print.c (print_object): Fix print format for 64-bit systems.
10497
10498 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
10499
10500 * buffer.c (emacs_strerror): Declare.
10501
10502 * fontset.c (Fclear_face_cache): Declare.
10503 (accumulate_font_info): Comment-out (unused).
10504 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
10505 variables.
10506
10507 * character.h (string_escape_byte8): Declare.
10508
10509 * charset.c (load_charset_map, load_charset_map_from_file): Remove
10510 unused vars.
10511 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
10512 (Fmap_charset_chars): Doc fix.
10513
10514 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
10515 (Fset_coding_system_priority, Fset_coding_system_priority)
10516 (Fdefine_coding_system_internal): Doc fix.
10517
10518 2008-02-01 Dave Love <fx@gnu.org>
10519
10520 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
10521
10522 2008-02-01 Kenichi Handa <handa@m17n.org>
10523
10524 * character.c (string_escape_byte8): Make multibyte string with
10525 correct size.
10526
10527 * charset.c (Fmake_char): Delete unnecessary code.
10528
10529 2008-02-01 Kenichi Handa <handa@m17n.org>
10530
10531 * xfns.c (x_encode_text): Allocate coding.destination here, and
10532 call encode_coding_object with dst_object Qnil.
10533
10534 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
10535 multibyte form correctly.
10536
10537 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
10538 against Vfont_encoding_alist.
10539
10540 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
10541 handling of charset list.
10542 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
10543 (decode_coding_object): Move point to coding->dst_pos before
10544 calling post-read-conversion function.
10545 (encode_coding_object): Give correct arguments to
10546 pre-write-conversion. Ignore the return value of
10547 pre-write-conversion function. Pay attention to the case that
10548 pre-write-conversion changes the current buffer. If dst_object is
10549 Qt, even if coding->src_bytes is zero, allocate at least one byte
10550 to coding->destination.
10551
10552 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
10553
10554 * charset.c (Fmake_char): Make it more backward compatible.
10555 (Fmap_charset_chars): Fix docstring.
10556
10557 2008-02-01 Dave Love <fx@gnu.org>
10558
10559 * coding.c: Doc fixes.
10560 (Fdefine_coding_system_alias): Use names, not symbols, in
10561 coding-system-alist.
10562
10563 2008-02-01 Kenichi Handa <handa@m17n.org>
10564
10565 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
10566 of calling free_realized_face.
10567
10568 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
10569
10570 * charset.c (read_hex): Don't treat SPC as a comment starter.
10571 (decode_char): If CODE_POINT_TO_INDEX retruns -1, always return -1.
10572 (Fdecode_char): Fix typo.
10573
10574 2008-02-01 Kenichi Handa <handa@m17n.org>
10575
10576 * charset.h (struct charset): New member `code_space_mask'.
10577
10578 * coding.c (coding_set_source): Delete the local variable beg_byte.
10579 (encode_coding_charset, Fdefine_coding_system_internal):
10580 Delete the local variable charset.
10581 (Fdefine_coding_system_internal): Setup
10582 attrs[coding_attr_charset_valids] correctly.
10583
10584 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
10585 member to check if CODE is valid or not.
10586 (Fdefine_charset_internal): Initialize `code_space_mask' member.
10587 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
10588 is within the range of charset->min_code and carset->max_code.
10589
10590 2008-02-01 Dave Love <fx@gnu.org>
10591
10592 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
10593
10594 * dispextern.h (generate_ascii_font): Fix return type.
10595
10596 * xfaces.c (generate_ascii_font): Fix arg declaration.
10597
10598 * coding.c (coding_inherit_eol_type)
10599 (Fset_terminal_coding_system_internal)
10600 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
10601
10602 2008-02-01 Kenichi Handa <handa@m17n.org>
10603
10604 * coding.c (decode_coding_charset, encode_coding_charset): Handle
10605 multiple charsets correctly.
10606
10607 2008-02-01 Kenichi Handa <handa@m17n.org>
10608
10609 * search.c (boyer_moore): Fix handling of mulitbyte character
10610 translation.
10611
10612 * xdisp.c (display_mode_element): When the variable `elt' is
10613 changed, update `this' and `lisp_string'.
10614
10615 2008-02-01 Kenichi Handa <handa@m17n.org>
10616
10617 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
10618
10619 * callproc.c (Fcall_process): Be sure to give the current buffer
10620 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
10621
10622 * charset.c (struct charset_map_entries): New struct.
10623 (load_charset_map): Rename from parse_charset_map. New args
10624 entries and n_entries. Change caller.
10625 (load_charset_map_from_file): Rename from load_charset_map.
10626 Change caller. New arg control_flag. Call load_charset_map at
10627 the tail.
10628 (load_charset_map_from_vector): New function.
10629 (Fdefine_charset_internal): Setup charset.compact_codes_p.
10630 (encode_char): If the charset is compact, change a character index
10631 to a code point.
10632
10633 * coding.c (coding_alloc_by_making_gap): Check the case that the
10634 source and destination are the same correctly.
10635 (decode_coding_raw_text): Set coding->consumed_char and
10636 coding->consumed to 0.
10637 (produce_chars): If coding->chars_at_source is nonzero, update
10638 coding->consumed_char and coding->consumed before calling
10639 alloc_destination.
10640 (Fdefine_coding_system_alias): Register ALIAS in
10641 Vcoding_system_alist.
10642 (syms_of_coding): Define `no-convesion' coding system at the tail.
10643
10644 * fileio.c (Finsert_file_contents): Set coding_system instead of
10645 val. If the current buffer is multibyte, always call
10646 decode_coding_gap.
10647
10648 * xfaces.c (try_font_list): Give higher priority to fontset's
10649 family than face's family.
10650
10651 2008-02-01 Kenichi Handa <handa@m17n.org>
10652
10653 * callproc.c (Fcall_process): Be sure to give the current buffer
10654 to decode_coding_c_string.
10655
10656 * xfaces.c (try_font_list): Give a family specified in a fontset
10657 higher priority than a family specified in a face.
10658
10659 2008-02-01 Kenichi Handa <handa@m17n.org>
10660
10661 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
10662 Fix arguments to insert_from_buffer.
10663
10664 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
10665
10666 2008-02-01 Kenichi Handa <handa@m17n.org>
10667
10668 * coding.c (produce_chars): Set the variable `multibytep' correctly.
10669 (decode_coding_gap): Set coding->dst_multibyte correctly.
10670
10671 2008-02-01 Kenichi Handa <handa@m17n.org>
10672
10673 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
10674 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
10675 (encode_coding_utf_16): Substitute coding->default_char for
10676 non-Unicode characters.
10677 (decode_coding): Don't call record_insert here.
10678 (setup_coding_system): Initialize `surrogate' of
10679 coding->spec.utf_16 to 0.
10680 (EMIT_ONE_BYTE): Fix for multibyte case.
10681
10682 * insdel.c (insert_from_gap): Call record_insert.
10683
10684 2008-02-01 Kenichi Handa <handa@m17n.org>
10685
10686 * casefiddle.c (casify_region): Fix multibyte case.
10687
10688 * character.c (c_string_width): Add return type `int'.
10689 (char_string_with_unification): Delete arg ADVANCED.
10690
10691 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
10692 (CHAR_STRING): Adjust for the change of char_string_with_unification.
10693 (CHAR_STRING_ADVANCE): Make it do-while statement.
10694
10695 * chartab.c (sub_char_table_set_range): Optimize for the case
10696 DEPTH == 3. Add workaround code for a GCC optimization bug.
10697
10698 * charset.c (parse_charset_map): Remove an unused variable.
10699
10700 * coding.c: Delete unused variables.
10701
10702 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
10703 earlier. If inserted is zero and the coding system doesn't
10704 require flushing, don't call decode_coding_gap.
10705
10706 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
10707
10708 2008-02-01 Kenichi Handa <handa@m17n.org>
10709
10710 The following changes are for using Unicode as an internal
10711 character model, and use UTF-8 format for buffer/string
10712 representation.
10713
10714 * .gdbinit (xchartable): Adjust for the change of char table structure.
10715 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
10716
10717 * Makefile.in (obj): Add character.o and chartab.o.
10718 (lisp, shortlisp): Remove utf-8.elc.
10719 (*.o): For many files, change dependency on charset.h to
10720 character.h, and add dependency on character.h.
10721 (character.o, chartab.o): New targets.
10722
10723 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
10724 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
10725 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
10726 of "charset.h".
10727
10728 * dired.c, filelock.c: Include "character.h".
10729
10730 * alloc.c: Include "character.h" instead of "charset.h".
10731 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
10732 (syms_of_alloc): Remove defsubr for Smake_char_table.
10733
10734 * buffer.c: Include "character.h" instead of "charset.h", don't
10735 include "coding.h".
10736 (Fset_buffer_multibyte): Adjust for UTF-8.
10737
10738 * buffer.h: EXFUN Fbuffer_live_p.
10739
10740 * callproc.c: Include "character.h" instead of "charset.h".
10741 (Fcall_process): Big change for the new code-conversion APIs.
10742
10743 * casetab.c: Include "character.h" instead of "charset.h".
10744 (set_canon, set_identity, shuffle): Adjust for the new
10745 map_char_table spec.
10746 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
10747 accessing the char table structure.
10748
10749 * chartab.c: New file that implements char table.
10750
10751 * category.c: Include "character.h".
10752 (copy_category_entry): New function.
10753 (copy_category_table): Call map_char_table and copy_category_entry.
10754 (Fmake_category_table): Initialize all top-vel slots.
10755 (char_category_set): New function.
10756 (modify_lower_category_set): Delete.
10757 (Fmodify_category_entry): Call char_table_ref_and_range.
10758
10759 * category.h (CATEGORY_SET): Just call char_category_set.
10760
10761 * ccl.c: Include "character.h".
10762 (Qccl, Qcclp): New variables.
10763 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
10764 it's less than 256.
10765 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
10766 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
10767 and DST type.
10768 (ccl_driver): Change types of argument, adjust code accordingly.
10769 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
10770 ccl_driver.
10771 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
10772
10773 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
10774 New members src_multibyte, dst_multibyte, consumed, and produced.
10775 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
10776 (CODING_SPEC_CCL_PROGRAM): New macro.
10777 (ccl_driver): Update prototype.
10778 (Qccl, Qcclp, Fccl_program_p): Extern them.
10779 (CHECK_CCL_PROGRAM): New macro.
10780
10781 * character.c, character.h, chartab.c: New files.
10782
10783 * charset.c: Mostly re-written. Move character and multibyte sequence
10784 handling codes to character.c.
10785
10786 * charset.h: Mostly re-written. Move character and multibyte sequence
10787 handling codes to character.h.
10788
10789 * coding.c, coding.h: Mostly re-written.
10790
10791 * composite.c: Include "character.h" instead of "charset.h".
10792 (CHAR_WIDTH): Move to character.h.
10793 (HASH_KEY, HASH_VALUE): Delete.
10794
10795 * composite.h (enum composition_method): Change order of enumeration
10796 symbols.
10797
10798 * data.c: Include "character.h" instead of "charset.h".
10799 (Faref): Call CHAR_TABLE_REF for a char table.
10800 (Faset): Call CHAR_TABLE_SET for a char table.
10801
10802 * dispextern.h (free_realized_face, check_face_attribytes)
10803 (generate_ascii_font): Extern them.
10804 (free_realized_multibyte_face): Delete extern.
10805
10806 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
10807 table structure.
10808
10809 * editfns.c: Include "character.h" instead of "charset.h".
10810 (Fchar_to_string): Always call CHAR_STRING.
10811
10812 * emacs.c (main): Call init_charset_once, init_charset,
10813 syms_of_chartab, and syms_of_character.
10814
10815 * fileio.c: Include "character.h" instead of "charset.h".
10816 (Finsert_file_contents): Big change for the new code-conversion API.
10817 (choose_write_coding_system, Fwrite_region): Likewise.
10818 (build_annotations_2): Delete.
10819 (e_write): Big change for the new code-conversion API.
10820
10821 * fns.c: Include "character.h" instead of "charset.h".
10822 (copy_sub_char_table): Move to chartab.c.
10823 (Fcopy_sequence): Call copy_char_table for a char table.
10824 (concat): Delete codes calling count_multibyte.
10825 (string_char_to_byte, string_byte_to_char): Adjust for the new
10826 multibyte form.
10827 (internal_equal): Adjust for the change of char table structure.
10828 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
10829 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
10830 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
10831 (char_table_translate, optimize_sub_char_table)
10832 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
10833 chartab.c.
10834 (char_table_ref_and_index): Delete.
10835 (HASH_KEY, HASH_VALUE): Move to lisp.h.
10836 (Fmd5): Call preferred_coding_system instead of accessing
10837 Vcoding_category_list. Adjust for the new code-conversion API.
10838 (syms_of_fns): Move defsubr for char table related functions to
10839 chartab.c.
10840
10841 * fontset.c: Mostly re-written.
10842
10843 * fontset.h (struct font_info): Change type of the member encoding_type.
10844 (enum FONT_SPEC_INDEX): New enum.
10845 (fontset_font_pattern, fs_load_font): Update prototype.
10846 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
10847
10848 * indent.c: Include "character.h" instead of "charset.h".
10849 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
10850
10851 * insdel.c: Include "character.h" instead of "charset.h".
10852 (copy_text): Don't refer to Vnonascii_translation_table.
10853 (insert_from_gap): New function.
10854
10855 * keyboard.c: Include "character.h" instead of "charset.h".
10856 (command_loop_1): Never call direct_output_forward_char before
10857 a non-ASCII character.
10858 (read_char): If Vkeyboard_translate_table is a char table, always
10859 translate a character.
10860
10861 * keymap.c: Include "character.h".
10862 (store_in_keymap): Handle the case that IDX is a cons.
10863 (Fdefine_key): Handle the case that KEY is a cons and the car part
10864 is also a cons (range).
10865 (push_key_description): Adjust for the new character code.
10866 (describe_vector): Call describe_char_table for a char table.
10867 (describe_char_table): New function.
10868
10869 * keymap.h (describe_char_table): Extern it.
10870
10871 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
10872 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
10873 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
10874 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
10875 Delete.
10876 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
10877 structure.
10878 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
10879 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
10880 (CHARTAB_SIZE_BITS_3): New macros.
10881 (chartab_size): Extern it.
10882 (struct Lisp_Char_Table): Re-design.
10883 (struct Lisp_Sub_Char_Table): New structure.
10884 (HASH_KEY, HASH_VALUE): Move from fns.c.
10885 (CHARACTERBITS): Define as 22.
10886 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
10887 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
10888 (GC_SUB_CHAR_TABLE_P): New macro.
10889 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
10890 (code_convert_string_norecord): Deleted extern.
10891 (init_character_once, syms_of_character, init_charset)
10892 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
10893
10894 * lread.c: Include "character.h".
10895 (read_multibyte): New arg NBYTES.
10896 (read_escape): Change the meaning of returned *BYTEREP.
10897 (to_multibyte): Delete.
10898 (read1): Adjust the handling of char table and string.
10899
10900 * print.c: Include "character.h" instead of "charset.h".
10901 (print_string): Convert 8-bit raw bytes to octal form by
10902 string_escape_byte8.
10903 (print_object): Adjust for the new multibyte form. Print 8-bit
10904 raw bytes always in octal form. Handle sub char table correctly.
10905
10906 * process.c: Include "character.h" instead of "charset.h".
10907 (read_process_output, send_process): Adjust for the new
10908 code-conversion API.
10909
10910 * puresize.h (BASE_PURESIZE): Increase.
10911
10912 * regex.c: Include "character.h" instead of "charset.h".
10913 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
10914 (regex_compile): Accept a range whose starting and ending
10915 character have different leading bytes.
10916 (analyse_first): Adjust for the above change.
10917
10918 * search.c: Include "character.h" instead of "charset.h".
10919 (search_buffer, boyer_moore): Adjust for the new multibyte form.
10920 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
10921
10922 * syntax.c: Include "character.h" instead of "charset.h".
10923 (syntax_parent_lookup): Delete.
10924 (Fmodify_syntax_entry): Accept a cons as CHAR.
10925 (skip_chars): Adjust for the new multibyte form.
10926 (init_syntax_once): Call char_table_set_range instead of directly
10927 accessing the structure of a char table.
10928
10929 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
10930 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
10931 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
10932 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
10933
10934 * term.c: Include "buffer.h" and "character.h".
10935 (encode_terminal_code, write_glyphs): Adjust for the new
10936 code-conversion API.
10937 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
10938
10939 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
10940
10941 * xdisp.c: Include "character.h".
10942 (get_next_display_element): Adjust for the new multibyte form.
10943 (disp_char_vector): Adjust for the new char table structure.
10944 (decode_mode_spec_coding): Adjust for the new structure of
10945 coding system.
10946 (decode_mode_spec): Adjust for the new code-conversion API.
10947
10948 * xfaces.c: Include "character.h" instead of "charset.h".
10949 (load_face_font): Adjust for the change of choose_face_font and
10950 FS_LOAD_FONT.
10951 (generate_ascii_font): New function.
10952 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
10953 (set_font_frame_param): Adjust for the change of choose_face_font.
10954 (free_realized_face): Make it public.
10955 (free_realized_faces_for_fontset): Rename from
10956 free_realized_multibyte_face. Free also faces realized for ASCII.
10957 (choose_face_font): Change arguments. Adjust for the change of
10958 fontset_font_pattern and FS_LOAD_FONT.
10959
10960 * xfns.c: Include "character.h".
10961 (x_encode_text): Adjust for the new code-conversion API.
10962
10963 * xselect.c: Don't include "charset.h".
10964 (selection_data_to_lisp_data): Adjust for the new code conversion API.
10965
10966 * xterm.c: Include "character.h".
10967 (x_encode_char): New argument CHARSET. Change caller.
10968 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
10969 Call ENCODE_CHAR instead of SPLIT_CHAR.
10970 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
10971 CHAR_WIDTH instead of CHARSET_WIDTH.
10972 (XTread_socket): Adjust for the new code-conversion API.
10973 (x_new_font): Adjust for the change of FS_LOAD_FONT.
10974 (x_load_font): Adjust for the change of struct font.
10975
10976 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
10977
10978 * xfaces.c (face_at_buffer_position): Remove unused vars.
10979
10980 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10981
10982 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
10983 Fix overflow checking.
10984
10985 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10986
10987 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
10988 Cancel previous change.
10989
10990 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
10991
10992 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
10993 ccl->eight_bit_control. Fix check for buffer overflow.
10994 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
10995 (ccl_driver): Initialize extra_bytes to 0.
10996
10997 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
10998
10999 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
11000 return it ORed with ctrl_modifier.
11001
11002 2008-01-29 Miles Bader <miles@gnu.org>
11003
11004 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
11005
11006 2008-01-28 Jason Rumney <jasonr@gnu.org>
11007
11008 * w32.c (stat): Don't double check for networked drive.
11009
11010 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
11011
11012 * window.c (run_window_configuration_change_hook): New function.
11013 Code extracted from set_window_buffer. Set the selected frame.
11014 (set_window_buffer): Use it.
11015 * window.h (run_window_configuration_change_hook): Declare.
11016 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
11017
11018 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
11019
11020 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
11021
11022 * Makefile.in: Remove references to unused macros.
11023
11024 2008-01-26 Eli Zaretskii <eliz@gnu.org>
11025
11026 * w32.c (g_b_init_get_sid_sub_authority)
11027 (g_b_init_get_sid_sub_authority_count): New static variables.
11028 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
11029 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
11030 (init_user_info): Use them to retrieve uid and gid.
11031 Use 500/513, the Windows defaults, as Administrator's uid/gid.
11032 (fstat): Use pw_uid and pw_gid from the_passwd structure for
11033 st_uid and st_gid of the file.
11034
11035 2008-01-26 Jason Rumney <jasonr@gnu.org>
11036
11037 * w32.c (logon_network_drive): New function.
11038 (stat): Use it.
11039
11040 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
11041
11042 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
11043 invisible text covered with an ellipsis.
11044
11045 2008-01-25 Richard Stallman <rms@gnu.org>
11046
11047 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
11048 jump back to beginning. Move some other initializations after that.
11049 (Qwindow_text_change_functions, Vwindow_text_change_functions):
11050 New variables.
11051 (syms_of_xdisp): Init them.
11052
11053 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
11054
11055 * buffer.c (reset_buffer_local_variables):
11056 Implement `permanent-local-hook'.
11057 (Qpermanent_local_hook): New variable.
11058 (syms_of_buffer): Init and staticpro it.
11059
11060 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
11061
11062 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
11063
11064 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
11065
11066 * fns.c (Fclrhash): Return TABLE.
11067
11068 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11069
11070 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
11071 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
11072 is set even without positional changes.
11073 (x_scroll_bar_clear): Set bar->redraw_needed_p.
11074
11075 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
11076
11077 2008-01-23 Jason Rumney <jasonr@gnu.org>
11078
11079 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
11080
11081 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
11082 the unicode range available in MULE by locale-coding-system.
11083 Improve dbcs lead byte detection. Set event timestamp and modifiers
11084 earlier.
11085
11086 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11087
11088 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
11089 [MAC_OSX] (init_mac_osx_environment): Initialize it.
11090 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
11091 when used on child processes.
11092
11093 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
11094
11095 * dbusbind.c (Fdbus_method_return_internal): Rename from
11096 Fdbus_method_return.
11097 (Fdbus_unregister_object): Move to dbus.el.
11098 (Fdbus_call_method, Fdbus_method_return_internal)
11099 (Fdbus_send_signal): Improve debug messages.
11100
11101 2008-01-20 Martin Rudalics <rudalics@gmx.at>
11102
11103 * undo.c (undo_inhibit_record_point): New variable.
11104 (syms_of_undo): Initialize it.
11105 (record_point): Don't record point when undo_inhibit_record_point
11106 is set.
11107
11108 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
11109
11110 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
11111
11112 * xdisp.c (Qauto_hscroll_mode): New var.
11113 (syms_of_xdisp): Initialize it.
11114 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
11115 window's buffer.
11116 (hscroll_windows): Don't check automatic_hscrolling_p here.
11117
11118 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
11119 vscroll if we're setting window-buffer to the value it already has.
11120
11121 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
11122
11123 * m/intel386.h: Remove references to XENIX.
11124
11125 2008-01-17 Andreas Schwab <schwab@suse.de>
11126
11127 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
11128 instead of HAVE_X86_64_LIB64_DIR.
11129 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
11130
11131 2008-01-17 Glenn Morris <rgm@gnu.org>
11132
11133 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
11134 to HAVE_X86_64_LIB64_DIR.
11135
11136 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
11137
11138 * s/irix3-3.h:
11139 * s/irix4-0.h:
11140 * s/386-ix.h:
11141 * s/domain.h:
11142 * s/hpux9-x11r4.h:
11143 * s/hpux9shxr4.h: Remove files for systems no longer supported.
11144
11145 * sysdep.c: Remove code containing references to symbols defined
11146 by unsupported systems.
11147
11148 2008-01-16 Glenn Morris <rgm@gnu.org>
11149
11150 * coding.c (select-safe-coding-system-function): Doc fix.
11151
11152 2008-01-15 Glenn Morris <rgm@gnu.org>
11153
11154 * config.in: Revert 2008-01-13 change: this is a generated file.
11155
11156 2008-01-13 Tom Tromey <tromey@redhat.com>
11157
11158 * lisp.h: Fix typo.
11159
11160 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
11161
11162 * m/sequent-ptx.h:
11163 * m/sequent.h:
11164 * s/ptx.h:
11165 * s/ptx4-2.h:
11166 * s/ptx4.h: Remove files for systems no longer supported.
11167
11168 * callproc.c (Fcall_process): Fix previous change.
11169
11170 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
11171
11172 * unexsunos4.c: Remove file, system not supported anymore.
11173
11174 * m/mips.h:
11175 * m/intel386.h:
11176 * callproc.c:
11177 * config.in:
11178 * ecrt0.c:
11179 * emacs.c:
11180 * fileio.c:
11181 * frame.c:
11182 * getpagesize.h:
11183 * keyboard.c:
11184 * lread.c:
11185 * process.c:
11186 * puresize.h:
11187 * sysdep.c:
11188 * systty.h:
11189 * syswait.h:
11190 * unexec.c:
11191 * xdisp.c:
11192 * alloc.c: Remove code containing references to symbols defined by
11193 unsupported systems.
11194
11195 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
11196
11197 * coding.c (detect_coding_mask): Fix previous change.
11198
11199 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
11200
11201 * coding.c (detect_coding_iso2022): New arg
11202 latin_extra_code_state. Allow Latin extra codes only
11203 when *latin_extra_code_state is nonzero.
11204 (detect_coding_mask): If there is a NULL byte, detect the encoding
11205 as UTF-16 or binary. If Latin extra codes exist, detect the
11206 encoding as ISO-2022 only when there's no other proper encoding is
11207 found.
11208
11209 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11210
11211 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
11212 #ifdef MAC_OS.
11213
11214 2008-01-08 Richard Stallman <rms@gnu.org>
11215
11216 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
11217
11218 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
11219
11220 * keyboard.c (parse_menu_item): Don't enclose key bindings on
11221 menu bar in parentheses.
11222
11223 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
11224
11225 * m/7300.h:
11226 * m/acorn.h:
11227 * m/alliant-2800.h:
11228 * m/alliant.h:
11229 * m/alliant1.h:
11230 * m/alliant4.h:
11231 * m/altos.h:
11232 * m/amdahl.h:
11233 * m/apollo.h:
11234 * m/att3b.h:
11235 * m/aviion-intel.h:
11236 * m/aviion.h:
11237 * m/celerity.h:
11238 * m/clipper.h:
11239 * m/cnvrgnt.h:
11240 * m/convex.h:
11241 * m/cydra5.h:
11242 * m/delta88k.h:
11243 * m/dpx2.h:
11244 * m/dual.h:
11245 * m/elxsi.h:
11246 * m/f301.h:
11247 * m/gould-np1.h:
11248 * m/gould.h:
11249 * m/i860.h:
11250 * m/ibmps2-aix.h:
11251 * m/ibmrt-aix.h:
11252 * m/ibmrt.h:
11253 * m/irist.h:
11254 * m/is386.h:
11255 * m/isi-ov.h:
11256 * m/mega68.h:
11257 * m/mg1.h:
11258 * m/news-r6.h:
11259 * m/news-risc.h:
11260 * m/news.h:
11261 * m/nh3000.h:
11262 * m/nh4000.h:
11263 * m/ns16000.h:
11264 * m/ns32000.h:
11265 * m/nu.h:
11266 * m/orion.h:
11267 * m/orion105.h:
11268 * m/paragon.h:
11269 * m/pfa50.h:
11270 * m/plexus.h:
11271 * m/pyramid.h:
11272 * m/pyrmips.h:
11273 * m/sh3el.h:
11274 * m/sps7.h:
11275 * m/sr2k.h:
11276 * m/stride.h:
11277 * m/sun1.h:
11278 * m/sun2.h:
11279 * m/sun3-68881.h:
11280 * m/sun3-fpa.h:
11281 * m/sun3-soft.h:
11282 * m/sun3.h:
11283 * m/sun386.h:
11284 * m/symmetry.h:
11285 * m/tad68k.h:
11286 * m/tahoe.h:
11287 * m/targon31.h:
11288 * m/tek4300.h:
11289 * m/tekxd88.h:
11290 * m/tower32.h:
11291 * m/tower32v3.h:
11292 * m/ustation.h:
11293 * m/wicat.h:
11294 * m/xps100.h:
11295 * s/cxux.h:
11296 * s/cxux7.h:
11297 * s/dgux.h:
11298 * s/dgux4.h:
11299 * s/dgux5-4-3.h:
11300 * s/dgux5-4r2.h:
11301 * s/esix.h:
11302 * s/esix5r4.h:
11303 * s/hiuxmpp.h:
11304 * s/hiuxwe2.h:
11305 * s/iris3-5.h:
11306 * s/iris3-6.h:
11307 * s/isc2-2.h:
11308 * s/isc3-0.h:
11309 * s/isc4-0.h:
11310 * s/isc4-1.h:
11311 * s/newsos5.h:
11312 * s/newsos6.h:
11313 * s/osf1.h:
11314 * s/osf5-0.h:
11315 * s/riscix1-1.h:
11316 * s/riscix12.h:
11317 * s/sco4.h:
11318 * s/sco5.h:
11319 * s/sunos4-0.h:
11320 * s/sunos4-1.h:
11321 * s/sunos413.h:
11322 * s/sunos4shr.h:
11323 * s/umax.h:
11324 * s/unipl5-2.h:
11325 * s/xenix.h:
11326 * cxux-crt0.s:
11327 * unexapollo.c:
11328 * unexconvex.c:
11329 * unexenix.c:
11330 * unexsni.c: Remove files for systems no longer supported.
11331
11332 * m/intel386.h: Remove references to unsupported systems.
11333
11334 * w32.c (get_emacs_configuration): Remove reference to i860.
11335
11336 * sysdep.c: Remove dead code.
11337
11338 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
11339
11340 * s/rtu.h:
11341 * m/masscomp.h: Remove files. Platform is obsolete.
11342
11343 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
11344
11345 * dbusbind.c (Fdbus_method_return): New function.
11346 (xd_read_message): Add the serial number to the event.
11347 (Fdbus_register_method): Activate the function.
11348
11349 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
11350
11351 * keyboard.c (read_key_sequence): Fix typo.
11352
11353 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
11354
11355 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
11356 (xd_signature, xd_append_arg): Handle element type detection for
11357 empty arrays.
11358 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
11359 SDATA () calls; this must be solved more general.
11360 (Fdbus_register_signal): Use SBYTES instead of strlen.
11361
11362 2008-01-03 Magnus Henoch <magnus@zemdatav>
11363
11364 * dbusbind.c (xd_append_arg): Use unsigned char instead of
11365 unsigned int for byte values (necessary for big-endian platform).
11366 (Fdbus_call_method): Handle the case of no returned arguments.
11367
11368 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
11369
11370 * dbusbind.c (xd_read_message): Use non-static input_event struct.
11371
11372 2007-12-31 Magnus Henoch <mange@freemail.hu>
11373
11374 * dbusbind.c (xd_signature): Signature of variant is just "v".
11375
11376 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
11377
11378 * dbusbind.c: Fix several errors and compiler warnings.
11379 Reported by Tom Tromey <tromey@redhat.com>.
11380 (XD_ERROR, XD_DEBUG_MESSAGE)
11381 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
11382 (xd_append_arg): Part for basic D-Bus types rewitten.
11383 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
11384 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
11385 appropriate.
11386 (xd_read_message): Return Qnil. Don't signal an error; it is not
11387 useful during event reading.
11388 (Fdbus_register_signal): Signal an error if the check for
11389 FUNCTIONP fails.
11390 (Fdbus_register_method): New function. The implementation is not
11391 complete, the call of the function signals an error therefore.
11392 (Fdbus_unregister_object): New function, renamed from
11393 Fdbus_unregister_signal. The initial check signals an error, if
11394 the object is not well formed.
11395
11396 2007-12-30 Richard Stallman <rms@gnu.org>
11397
11398 * textprop.c (get_char_property_and_overlay):
11399 Signal error if POSITION is out of range in a buffer.
11400
11401 2007-12-29 Martin Rudalics <rudalics@gmx.at>
11402
11403 * w32fns.c (Fx_create_frame): Make copy of frame parameters
11404 because the original parameters are in pure storage now.
11405
11406 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11407
11408 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
11409
11410 2007-12-22 Eli Zaretskii <eliz@gnu.org>
11411
11412 * callint.c (syms_of_callint) <command-history>: Add reference to
11413 history-length in the doc string.
11414
11415 2007-12-17 Jason Rumney <jasonr@gnu.org>
11416
11417 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
11418 before passing as wParam.
11419
11420 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
11421
11422 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
11423 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
11424 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
11425 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
11426 as number.
11427 (Fdbus_call_method): Fix docstring.
11428
11429 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
11430
11431 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
11432 New macros.
11433 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
11434 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
11435 Simplify.
11436 (xd_signature): New function.
11437 (xd_append_arg): Compute also signatures. Major rewrite.
11438 (xd_retrieve_arg): Make debug messages friendly.
11439 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
11440 Check for signatures of arguments.
11441
11442 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
11443
11444 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
11445 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
11446 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
11447 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
11448 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
11449 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
11450 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
11451 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
11452 (xd_retrieve_value): Remove. Functionality included in ...
11453 (xd_append_arg): New function.
11454 (Fdbus_call_method, Fdbus_send_signal): Apply it.
11455
11456 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
11457
11458 * dbusbind.c (top): Include <stdio.h>.
11459 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
11460 dbus_message_new_method_call and dbus_message_new_signal.
11461 (Fdbus_register_signal): Rename unique_name to uname.
11462 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
11463 non-existing unique name. Fix typos in matching rule. Return an
11464 object which is useful in Fdbus_unregister_signal.
11465 (Fdbus_unregister_signal): Reimplementation, in order to remove
11466 only the corresponding entry.
11467 (Vdbus_registered_functions_table): Change the order of entries.
11468 Apply these changes in xd_read_message and Fdbus_register_signal.
11469
11470 2007-12-16 Andreas Schwab <schwab@suse.de>
11471
11472 * fileio.c (Finsert_file_contents): Fix overflow check to not
11473 depend on undefined integer overflow.
11474
11475 2007-12-14 Jason Rumney <jasonr@gnu.org>
11476
11477 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
11478 for characters above 127.
11479
11480 2007-12-13 Jason Rumney <jasonr@gnu.org>
11481
11482 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
11483 before dereferencing array.
11484 (lookup_vk_code): Remove zero comparison.
11485
11486 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
11487
11488 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
11489 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
11490 Use `unsigned int' instead of `uint'.
11491 (xd_read_message, Fdbus_register_signal): Split expressions into
11492 multiple lines before operators "&&" and "||", according to the
11493 GNU Coding Standards.
11494
11495 2007-12-14 Eli Zaretskii <eliz@gnu.org>
11496
11497 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
11498
11499 2007-12-12 Juri Linkov <juri@jurta.org>
11500
11501 * buffer.c (Frename_buffer): In interactive spec replace
11502 `read-buffer' with `read-string' that uses `buffer-name-history'
11503 as history, and the current buffer's name as default.
11504
11505 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
11506
11507 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
11508 manipulating the backtrace manually.
11509 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
11510 (struct backtrace, backtrace_list): Remove.
11511 (command_loop_1): Remove dead var `no_direct'.
11512
11513 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
11514 preserve non-built-in buffer-local variables.
11515 (Fkill_all_local_variables): Don't re-create&re-set permanent
11516 buffer-local variables.
11517
11518 2007-12-09 Juri Linkov <juri@jurta.org>
11519
11520 * buffer.c (Frename_buffer): Change interactive spec from "s" to
11521 Lisp code that uses `read-buffer' with current buffer as default.
11522
11523 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
11524
11525 * dbusbind.c (xd_read_message): Generate an event for every
11526 registered handler. There might be several handlers registered
11527 for the same signal.
11528 (Fdbus_register_signal): Don't overwrite a registration for the
11529 same signal. Add a new registration if handlers are different.
11530 (Vdbus_registered_functions_table): Rework doc string.
11531
11532 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
11533
11534 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
11535 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
11536 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
11537 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
11538 Unify argument lists.
11539 (xd_read_message, Fdbus_register_signal): Reorder and extend event
11540 arguments and hash table keys. Use unique name for service.
11541 (Fdbus_unregister_signal): Remove checks.
11542 (Vdbus_registered_functions_table): Fix doc string.
11543
11544 2007-12-05 Magnus Henoch <mange@freemail.hu>
11545
11546 * process.c (make_process): Initialize pty_flag to 0.
11547
11548 2007-12-05 Jason Rumney <jasonr@gnu.org>
11549
11550 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
11551 specified XBMs.
11552
11553 2007-12-05 Richard Stallman <rms@gnu.org>
11554
11555 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
11556
11557 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11558
11559 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
11560 New variable.
11561 (mac_try_close_socket) [MAC_OSX]: New function.
11562 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
11563 Update cfsockets_for_select. Replace invalid CFRunLoop source.
11564
11565 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
11566 Use mac_try_close_socket.
11567
11568 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11569
11570 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
11571 reloc_base.
11572 (copy_dysymtab): Compute relocation base here.
11573 (rebase_reloc_address) [__ppc64__]: New function.
11574 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
11575 changed.
11576
11577 2007-12-05 Jason Rumney <jasonr@gnu.org>
11578
11579 * w32proc.c (sys_spawnve): Quote args with wildcards.
11580
11581 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11582
11583 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
11584 __objc_* sections.
11585 (unrelocate) [_LP64]: Set relocation base to address of data segment.
11586
11587 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
11588
11589 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
11590 Move check for Vdbus_registered_functions_table to
11591 xd_read_queued_messages.
11592 (xd_read_queued_messages): Protect xd_read_message calls by
11593 internal_condition_case_1.
11594
11595 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
11596
11597 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
11598 Qdbus_system_bus and Qdbus_session_bus, respectively.
11599 (Vdbus_intern_symbols): Remove.
11600 (Vdbus_registered_functions_table): New hash table.
11601 (XD_SYMBOL_INTERN_SYMBOL): Remove.
11602 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
11603 Rewrite in order to manage registered functions by hash table
11604 Vdbus_registered_functions_table.
11605
11606 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
11607
11608 * xterm.c: Update URL to Window Manager Specification in comment.
11609
11610 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
11611
11612 * config.in (HAVE_DBUS): Add.
11613
11614 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
11615 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
11616 (obj): Add $(DBUS_OBJ).
11617 (LIBES): Add $(DBUS_LIBS).
11618 (dbusbind.o): New target.
11619
11620 * dbusbind.c: New file.
11621
11622 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
11623
11624 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
11625 (Qdbus_event): New Lisp symbol.
11626 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
11627 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
11628 (keys_of_keyboard ): Define dbus-event.
11629
11630 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
11631
11632 2007-12-01 Richard Stallman <rms@gnu.org>
11633
11634 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
11635
11636 2007-11-30 Jason Rumney <jasonr@gnu.org>
11637
11638 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
11639 (w32con_reset_terminal_modes): Clear screen buffer.
11640 (w32_face_attributes): Don't use color indexes that are out of range.
11641 Only reverse the default colors.
11642
11643 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
11644 WINDOWSNT.
11645
11646 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
11647
11648 2007-11-29 Jason Rumney <jasonr@gnu.org>
11649
11650 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
11651 (w32_face_attributes): Use Vtty_defined_color_alist to determine
11652 if the terminal colors are initialized.
11653 (unspecified_fg, unspecified_bg): Remove unused declarations.
11654
11655 2007-11-29 Andreas Schwab <schwab@suse.de>
11656
11657 * keyboard.c (apply_modifiers): Fix typo.
11658
11659 2007-11-29 Richard Stallman <rms@gnu.org>
11660
11661 * keymap.c (Fcurrent_local_map): Doc fix.
11662
11663 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
11664
11665 * s/gnu-kfreebsd.h: New file.
11666
11667 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
11668
11669 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
11670 Don't cast redundantly.
11671
11672 * keyboard.c (KEY_TO_CHAR): New macro.
11673 (parse_modifiers, apply_modifiers): Accept integer arguments.
11674 (read_key_sequence): Use them to unify the "shift->unshift" mapping
11675 for chars and symbol keys.
11676 After doing such remapping, apply function-key-map again.
11677
11678 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
11679
11680 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
11681 compiled anymore.
11682
11683 2007-11-26 Andreas Schwab <schwab@suse.de>
11684
11685 * process.c (list_processes_1): Fix indentation level of the
11686 command column.
11687
11688 2007-11-23 Andreas Schwab <schwab@suse.de>
11689
11690 * editfns.c (Fformat): Handle %c specially since it requires the
11691 argument to be of type int.
11692
11693 2007-11-23 Markus Triska <markus.triska@gmx.at>
11694
11695 * emacs.c (main): Call init_editfns before init_process, since
11696 init_process sets Vprocess_connection_type depending on OS release.
11697
11698 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
11699
11700 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
11701 (find_symbol_value): Use do_symval_forwarding.
11702
11703 * data.c (set_internal): Set the value in the `cons-cell' (for
11704 Buffer_Local_values) not only for frame-local variables.
11705
11706 2007-11-22 Andreas Schwab <schwab@suse.de>
11707
11708 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
11709 values to sprintf.
11710 * keymap.c (Fsingle_key_description): Likewise.
11711 * print.c (print_object): Likewise.
11712
11713 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
11714
11715 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
11716 file for image is nil.
11717
11718 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
11719
11720 * term.c: Include stdarg.h.
11721 (fatal): Implement using varargs.
11722 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
11723
11724 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
11725
11726 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
11727 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
11728 Update call to buffer_slot_type_mismatch.
11729 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
11730 (buffer_slot_type_mismatch): Update.
11731 * buffer.c (buffer_local_types): Remove.
11732 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
11733 (defvar_per_buffer): Set the type in the buffer_objfwd.
11734
11735 2007-11-21 Jason Rumney <jasonr@gnu.org>
11736
11737 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
11738 CreateFileMapping returns NULL on failure.
11739
11740 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
11741
11742 * search.c (Fset_match_data): Remove the `evaporate' feature.
11743 (unwind_set_match_data): Don't use the `evaporate' feature.
11744
11745 2007-11-21 Jason Rumney <jasonr@gnu.org>
11746
11747 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
11748
11749 * w32console.c (w32con_write_glyphs): Remove unused variables.
11750
11751 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
11752
11753 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
11754
11755 * s/darwin.h (MULTI_KBOARD): Remove.
11756
11757 * macfns.c (x_create_tip_frame, Fx_create_frame)
11758 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
11759
11760 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
11761
11762 * buffer.c (Fbuffer_local_value): Remove redundant test.
11763 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
11764 than in `current-buffer' to match the comment.
11765 Do the swap using swap_in_global_binding.
11766
11767 * data.c (store_symval_forwarding, set_internal):
11768 * eval.c (specbind): Remove dead code.
11769
11770 * coding.c (detect_coding, Fupdate_coding_systems_internal):
11771 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
11772 Since we do not want to see internal Lisp_*fwd objects here.
11773
11774 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
11775
11776 * sysdep.c (init_system_name): Use getaddrinfo if available.
11777
11778 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
11779 (x_scroll_bar_note_movement): start, end, with, height in struct
11780 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
11781
11782 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
11783
11784 * puresize.h (BASE_PURESIZE): Increase to 1190000.
11785
11786 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
11787
11788 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
11789 This undoes Richard's change of 14-Oct-2002.
11790
11791 * alloc.c (allocate_other_vector):
11792 * lisp.h (allocate_other_vector): Remove.
11793
11794 * window.c (struct save_window_data): Move non-lisp data to the end
11795 and make it `int' rather than Lisp_Object.
11796 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
11797 Done wrap/unwrap integer values.
11798 (Fset_window_configuration, compare_window_configurations):
11799 Update use of fields to their new types.
11800
11801 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
11802 Turn integer fields into `int'. Merge x_window_low and x_window_high.
11803 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
11804 (SET_SCROLL_BAR_X_WINDOW): Remove.
11805 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
11806 Access the new x_window field directly.
11807 * xterm.c (x_scroll_bar_create): Use a pseudovector.
11808 Don't wrap/unwrap integers into Lisp_Objects.
11809 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
11810 (x_scroll_bar_report_motion):
11811 Don't wrap/unwrap integers into Lisp_Objects.
11812 (x_term_init): Use SDATA.
11813 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
11814 (x_scroll_bar_set_handle, x_scroll_bar_remove)
11815 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
11816 (x_scroll_bar_report_motion, x_scroll_bar_clear):
11817 * xfns.c (x_set_background_color):
11818 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
11819 Access the new x_window field directly.
11820
11821 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
11822 (allocate_pseudovector): Make non-static.
11823
11824 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
11825 (allocate_pseudovector): Declare.
11826 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
11827
11828 2007-11-15 Andreas Schwab <schwab@suse.de>
11829
11830 * editfns.c (Fformat): Correctly format EMACS_INT values.
11831 Also take precision into account when formatting an integer.
11832
11833 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
11834
11835 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
11836
11837 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
11838 (syms_of_keyboard): Defsubr it.
11839
11840 * data.c (swap_in_global_binding): Fix longstanding bug where
11841 store_symval_forwarding was not called with the right second argument,
11842 thus causing objfwd-ing from being dropped.
11843
11844 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
11845
11846 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
11847 (Fx_display_pixel_height, Fx_display_planes)
11848 (Fx_display_color_cells, Fx_server_max_request_size)
11849 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
11850 (Fx_display_visual_class, Fx_display_save_under):
11851 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
11852 (Fx_display_pixel_height, Fx_display_planes)
11853 (Fx_display_color_cells, Fx_server_max_request_size)
11854 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
11855 (Fx_display_mm_height, Fx_display_mm_width)
11856 (Fx_display_backing_store, Fx_display_visual_class)
11857 (Fw32_select_font, Fx_display_save_under):
11858 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
11859 (Fx_display_pixel_height, Fx_display_planes)
11860 (Fx_display_color_cells, Fx_server_max_request_size)
11861 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
11862 (Fx_display_save_under): Fix typos in docstrings.
11863
11864 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
11865
11866 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
11867 corresponding to deleted entries; they are an implementation detail.
11868 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
11869 Remove variables.
11870 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
11871 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
11872 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
11873 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
11874 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
11875 (Fw32_define_rgb_color, Fw32_load_color_file)
11876 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
11877 Fix typos in docstrings.
11878 (Fx_server_version): Reflow docstring.
11879 (Fw32_shell_execute): Doc fixes.
11880
11881 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
11882
11883 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
11884 if w32_parse_hot_key returned nil.
11885
11886 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
11887
11888 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
11889
11890 2007-11-09 Jason Rumney <jasonr@gnu.org>
11891
11892 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
11893
11894 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
11895
11896 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
11897 Remove W32_SCROLL_BAR_CLICK_EVENT.
11898
11899 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
11900 Add MULTIMEDIA_KEY_EVENT.
11901
11902 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
11903 (lispy_multimedia_keys) [WINDOWSNT]: New array.
11904 (make_lispy_event) [WINDOWSNT]: Use it to translate
11905 MULTIMEDIA_KEY_EVENT.
11906
11907 * w32term.h (WM_APPCOMMAND): Define if not already.
11908 (GET_APPCOMMAND_LPARAM): Likewise.
11909
11910 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
11911 WM_APPCOMMAND.
11912
11913 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
11914 (syms_of_w32fns): Export and initialize it.
11915 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
11916
11917 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
11918
11919 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
11920 twice.
11921
11922 * xdisp.c (handle_face_prop): Fix last change.
11923
11924 2007-11-09 Richard Stallman <rms@gnu.org>
11925
11926 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
11927 not just for after-strings and before-strings.
11928 Call face_for_overlay_string and pass the overlay to it.
11929 (handle_display_prop): Determine whether property came from an overlay.
11930 Pass OVERLAY arg to handle_single_display_spec.
11931 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
11932 (load_overlay_strings): Fill in it->string_overlays.
11933 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
11934
11935 * xfaces.c (face_for_overlay_string): Function renamed from
11936 face_at_buffer_position_no_overlays, and add arg OVERLAY.
11937
11938 * dispextern.h (struct it): New elt string_overlays.
11939 New elt from_overlay, also in stack.
11940 Rearrange a few elements.
11941 (face_for_overlay_string): Decl renamed from
11942 face_at_buffer_position_no_overlays, and add argument.
11943
11944 2007-11-09 Richard Stallman <rms@gnu.org>
11945
11946 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
11947 to get the base face for an overlay string.
11948
11949 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
11950
11951 * xfaces.c (face_at_buffer_position_no_overlays): New function.
11952
11953 * xdisp.c (handle_stop): Move some code out of loop.
11954
11955 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11956
11957 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
11958 Fix conversion from Lisp object to ATSUFontID.
11959
11960 2007-11-09 Jason Rumney <jasonr@gnu.org>
11961
11962 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
11963
11964 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11965
11966 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
11967 Don't assume regions are aligned to page boundary.
11968 (print_load_command_name): Add LC_UUID if defined.
11969
11970 2007-11-09 Richard Stallman <rms@gnu.org>
11971
11972 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
11973
11974 2007-11-07 Jason Rumney <jasonr@gnu.org>
11975
11976 * s/windows95.h: Remove.
11977
11978 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
11979
11980 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
11981 abort with a message on unhandled store_type values.
11982
11983 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
11984
11985 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
11986 Remove HAVE_X11R5 and HAVE_X11R4.
11987
11988 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
11989
11990 * Makefile.in: Remove references to sunfns.c and sunfns.o.
11991
11992 2007-11-01 Johan Bockgård <bojohan@gnu.org>
11993
11994 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
11995 Don't set s->stippled_p here, since it has already been set by
11996 x_set_glyph_string_gc from x_draw_glyph_string.
11997
11998 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
11999
12000 * sunfns.c: Remove file.
12001
12002 * m/sun386.h:
12003 * m/sun2.h:
12004 * m/sparc.h: Remove Sun windows code.
12005
12006 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
12007
12008 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
12009 (init_keyboard): Set current_kboard's window-system to nil.
12010 (tty_read_avail_input): Typo.
12011 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
12012
12013 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
12014
12015 * s/usg5-4.h:
12016 * s/usg5-3.h:
12017 * s/ptx.h:
12018 * m/is386.h:
12019 * m/ibmps2-aix.h:
12020 * Makefile.in: Remove all mentions of X10.
12021
12022 * dispnew.c (syms_of_display): Don't mention version 10.
12023
12024 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
12025
12026 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
12027 ($(BLD)/abbrev.$(O)): Remove.
12028
12029 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
12030
12031 Rewrite abbrev.c in Elisp.
12032 * image.c (Qcount): Don't declare as extern.
12033 (syms_of_image): Initialize and staticpro `Qcount'.
12034 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
12035 * emacs.c (main): Don't call syms_of_abbrev.
12036 * Makefile.in (obj): Remove abbrev.o.
12037 (abbrev.o): Remove.
12038 * abbrev.c: Remove.
12039
12040 2007-10-26 Martin Rudalics <rudalics@gmx.at>
12041
12042 * window.c (window_min_size_2): Don't count header-line.
12043
12044 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
12045
12046 * frame.h (struct frame): Move all bit fields after the first bit
12047 field to take advantage of the available space. Group all the
12048 chars together to reduce wasted space due to padding.
12049
12050 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
12051
12052 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
12053
12054 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
12055 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
12056 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
12057 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
12058 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
12059 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
12060 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
12061 (last_marked, mark_object_loop_halt): Make static.
12062
12063 * frame.c (syms_of_frame) <delete-frame-functions>:
12064 Fix typo in docstring.
12065
12066 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
12067
12068 * w32.c (init_environment): Fix tiny memory leak.
12069 (w32_get_resource): Remove unused variable `ok'.
12070
12071 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
12072
12073 Make `window-system' into a keyboard-local variable (rather than
12074 frame-local as done originally by multi-tty).
12075
12076 * keyboard.h (struct kboard): Add Vwindow_system.
12077 * keyboard.c (init_kboard): Set a default for Vwindow_system.
12078 (mark_kboards): Mark Vwindow_system.
12079
12080 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
12081 (init_display): Don't set the obsolete `window-system' frame-param.
12082
12083 * xterm.c (x_term_init):
12084 * w32term.c (w32_create_terminal):
12085 * term.c (init_tty): Set Vwindow_system.
12086 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
12087 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
12088
12089 * xfns.c (Fx_create_frame, x_create_tip_frame):
12090 * w32fns.c (Fx_create_frame, x_create_tip_frame):
12091 * macfns.c (Fx_create_frame):
12092 Don't set the obsolete `window-system' frame-param.
12093
12094 * frame.h (Qwindow_system): Remove.
12095 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
12096 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
12097
12098 2007-10-24 Richard Stallman <rms@gnu.org>
12099
12100 * frame.c (x_figure_window_size): For fullscreen case,
12101 set USPosition | PPosition without clobbering rest of window_prompting.
12102
12103 * keyboard.c (Fcurrent_idle_time): Doc fix.
12104
12105 * print.c (Fwith_output_to_temp_buffer): Doc fix.
12106
12107 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
12108
12109 * process.c (unwind_request_sigio): Only define if __ultrix__.
12110
12111 * callproc.c (child_setup): Remove spurious *.
12112
12113 * lisp.h (Fget_text_property): Declare.
12114 (have_menus_p): Declare it here rather than in sys-dep header files.
12115 * macterm.h (have_menus_p):
12116 * msdos.h (have_menus_p):
12117 * xterm.h (have_menus_p): Remove.
12118
12119 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
12120 (Fmake_variable_frame_local): Just check the variable's const-ness
12121 rather than checking nil or t.
12122
12123 2007-10-22 Jason Rumney <jasonr@gnu.org>
12124
12125 * w32fns.c: Include math.h.
12126 (w32_abort): Declaration moved to nt/config.nt.
12127
12128 * s/ms-w32.h (HAVE_STDLIB_H): Define.
12129 (abort): Redefinition moved to nt/config.nt.
12130
12131 * m/windowsnt.h: Remove.
12132
12133 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
12134
12135 * emacs.c (Fdump_emacs): Fix typo in message.
12136 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
12137 <installation-directory>: Reflow docstring.
12138
12139 2007-10-22 Juri Linkov <juri@jurta.org>
12140
12141 * minibuf.c: Allow minibuffer default to be a list of default values.
12142 With empty input use the first element of this list as returned default.
12143 (string_to_object)
12144 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
12145 (read_minibuf): If defalt is cons, set histstring to its car.
12146 (Fread_string): If default_value is cons, set val to its car.
12147 (Fread_buffer): If def is cons, use its car.
12148 (Fcompleting_read): If defalt is cons, set val to its car.
12149
12150 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
12151
12152 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
12153
12154 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
12155
12156 * doc.c (Fdocumentation): Check for advice in all cases.
12157
12158 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
12159
12160 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
12161
12162 2007-10-19 Richard Stallman <rms@gnu.org>
12163
12164 * doc.c (Fdocumentation): Check for and handle an advised function.
12165
12166 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
12167
12168 * process.c (Fset_process_filter): Doc fix.
12169
12170 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
12171
12172 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
12173 which caused key-translation-map to applied repeatedly (thus breaking
12174 double-mode).
12175
12176 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
12177
12178 * xselect.c (x_own_selection, x_handle_selection_clear)
12179 (x_clear_frame_selections):
12180 * w32menu.c (list_of_panes, list_of_items):
12181 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
12182 * textprop.c (validate_plist, interval_has_all_properties)
12183 (interval_has_some_properties, interval_has_some_properties_list)
12184 (add_properties, text_property_list):
12185 * process.c (Fget_buffer_process, list_processes_1, status_notify):
12186 * minibuf.c (Fassoc_string):
12187 * macselect.c (x_own_selection, x_clear_frame_selections)
12188 (Fx_disown_selection_internal):
12189 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
12190 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
12191
12192 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
12193
12194 * process.c: Link to libs for calling res_init() if available.
12195 (Fmake_network_process): Call res_init() before getaddrinfo or
12196 gethostbyname, if possible.
12197
12198 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
12199
12200 * lread.c (read1): Set pvectype for char_tables.
12201
12202 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
12203 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
12204 Add type checks.
12205 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
12206
12207 * alloc.c (free_misc): Use XMISCTYPE.
12208 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
12209
12210 2007-10-17 Glenn Morris <rgm@gnu.org>
12211
12212 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
12213 (syms_of_minibuf): Add Qcompletion_ignore_case.
12214 * dired.c (Qcompletion_ignore_case): Change to external.
12215 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
12216 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
12217 (Fread_file_name): Use it rather than intern'ing.
12218
12219 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
12220 (Fread_coding_system): Ignore case of user input.
12221
12222 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12223
12224 * xdisp.c (handle_display_prop): Ignore display specs after
12225 replacing one when string text is being replaced.
12226 (handle_single_display_spec): Pretend as if characters with display
12227 property haven't been consumed only when buffer text is being replaced.
12228
12229 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
12230
12231 * xfns.c (Fx_create_frame, Fx_display_list):
12232 * window.c (window_fixed_size_p, enlarge_window)
12233 (shrink_window_lowest_first):
12234 * macterm.c (init_font_name_table):
12235 * macfns.c (Fx_create_frame, Fx_display_list):
12236 * lread.c (close_load_descs):
12237 * keyboard.c (read_char_x_menu_prompt):
12238 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
12239 * coding.c (code_convert_region_unwind): Test the type of an object
12240 rather than just !NILP before extracting data from it.
12241
12242 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
12243
12244 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
12245 (XMISCANY): New macro.
12246 (XMISCTYPE): Use it.
12247 (struct Lisp_Misc_Any): New type.
12248 (union Lisp_Misc): Use it.
12249 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
12250 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
12251 (find_symbol_value, set_internal, default_value, Fset_default)
12252 (Fmake_variable_buffer_local, Fmake_local_variable)
12253 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
12254 (Flocal_variable_if_set_p, Fvariable_binding_locus):
12255 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
12256 * alloc.c (allocate_buffer): Set the size and tag.
12257 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
12258 Use XMISCANY.
12259 (die): Follow the GNU convention for error messages.
12260 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
12261 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
12262 tag any more.
12263 (set_buffer_internal_1):
12264 * frame.c (store_frame_param):
12265 * eval.c (specbind):
12266 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
12267
12268 * doc.c (Fsnarf_documentation): Simplify.
12269
12270 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
12271
12272 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
12273 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
12274
12275 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
12276
12277 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
12278
12279 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
12280
12281 * eval.c (do_autoload): Don't save autoloads.
12282
12283 * data.c (Ffset): Save autoload of the function being set.
12284
12285 2007-10-07 John Paul Wallington <jpw@pobox.com>
12286
12287 * xfns.c (x_create_tip_frame): Set the `display-type' frame
12288 parameter before setting up faces.
12289
12290 2007-10-13 Eli Zaretskii <eliz@gnu.org>
12291
12292 * ccl.c (Fregister_code_conversion_map):
12293 * keyboard.c (append_tool_bar_item): Reformat last change.
12294
12295 * lisp.h (eabs): Rename from `abs'. All callers changed.
12296
12297 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
12298
12299 * buffer.c (add_overlay_mod_hooklist):
12300 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
12301 * fontset.c (make_fontset):
12302 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
12303 (append_tool_bar_item):
12304 * macmenu.c (grow_menu_items):
12305 * w32menu.c (grow_menu_items):
12306 * xmenu.c (grow_menu_items): Use larger_vector.
12307
12308 2007-10-13 Eli Zaretskii <eliz@gnu.org>
12309
12310 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
12311 selected frame'' on MSDOS).
12312
12313 2007-10-12 Martin Rudalics <rudalics@gmx.at>
12314
12315 * frame.c (Qexplicit_name): New variable.
12316 (x_report_frame_params): Report it in parameter alist.
12317 (syms_of_frame): Intern and staticpro it.
12318
12319 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
12320
12321 * macfns.c (x_create_tip_frame): Set terminal for frame.
12322
12323 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
12324
12325 * frame.c (Qenvironment): Remove.
12326 (syms_of_frame) <Qenvironment>: Don't initialize.
12327 (Fdelete_frame): Don't treat the `environment' param specially.
12328 * frame.h (Qenvironment): Don't declare.
12329 * callproc.c (set_initial_environment): Don't set unused frame param.
12330
12331 * frame.c (Fframe_with_environment): Remove.
12332 (syms_of_frame) <Sframe_with_environment>: Don't declare.
12333
12334 * lisp.h (Fframe_with_environment): Don't declare.
12335
12336 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
12337
12338 * indent.c (indent_tabs_mode, last_known_column)
12339 (last_known_column_modified): Make static.
12340 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
12341
12342 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
12343
12344 * puresize.h (BASE_PURESIZE): Increase to 1170000.
12345
12346 2007-10-09 Jason Rumney <jasonr@gnu.org>
12347
12348 * w32term.c (x_set_window_size): Disable code that attempts to tell
12349 Lisp code about a size change before it actually happens.
12350
12351 2007-10-09 Richard Stallman <rms@gnu.org>
12352
12353 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
12354 return HANDLED_RETURN.
12355
12356 2007-10-08 Martin Rudalics <rudalics@gmx.at>
12357
12358 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
12359 when there's an unread command event.
12360
12361 * frame.c (focus_follows_mouse): Move here from frame.el to allow
12362 window autoselection act appropriately when leaving selected frame.
12363 (syms_of_frame): Initialize focus_follows_mouse.
12364 * frame.h (focus_follows_mouse): Extern it.
12365 * macterm.c (XTread_socket): When focus_follows_mouse is nil
12366 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
12367 * msdos.c (dos_rawgetc): Likewise.
12368 * w32term.c (w32_read_socket): Likewise.
12369 * xterm.c (handle_one_xevent): Likewise.
12370 * xdisp.c (syms_of_xdisp): In doc-string of
12371 mouse-autoselect-window mention focus-follows-mouse.
12372
12373 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12374
12375 * macterm.c (mac_load_query_font): Fix missing return value.
12376 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
12377 Add BLOCK_INPUT.
12378
12379 2007-10-08 Richard Stallman <rms@gnu.org>
12380
12381 * xdisp.c (get_window_cursor_type): Implement documented behavior
12382 for cursor-in-non-selected-windows = t.
12383
12384 2007-10-08 Jason Rumney <jasonr@gnu.org>
12385
12386 * w32.c (w32_get_resource): Always close registry keys.
12387
12388 2007-10-08 Jason Rumney <jasonr@gnu.org>
12389
12390 * makefile.w32-in (LIBS): Add COMCTL32.
12391
12392 * w32fns.c (globals_of_w32fns): Init common controls.
12393
12394 2007-10-08 Richard Stallman <rms@gnu.org>
12395
12396 * image.c (our_memory_buffer): Rename from omfib_buffer.
12397
12398 2007-10-08 Richard Stallman <rms@gnu.org>
12399
12400 * buffer.c (Foverlays_at): Doc fix.
12401
12402 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
12403
12404 * fns.c (Fplist_put): Preserve uneven tail data.
12405
12406 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
12407
12408 * termhooks.h (enum event_kind): Remove trailing comma.
12409
12410 * frame.h (enum): Remove trailing comma.
12411
12412 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
12413
12414 * w32proc.c (delete_child): Don't terminate threads of zombies.
12415
12416 2007-10-08 Martin Rudalics <rudalics@gmx.at>
12417
12418 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
12419
12420 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
12421 last-repeatable-command.
12422 (init_kboard): Initialize Vlast_repeatable_command.
12423 (command_loop_1): Set it to real_this_command unless that was
12424 bound to an input event.
12425 (mark_kboards): Mark it.
12426
12427 2007-10-08 Richard Stallman <rms@gnu.org>
12428
12429 * eval.c (condition-case): Doc fix.
12430
12431 2007-10-08 Masatake YAMATO <jet@gyve.org>
12432
12433 * xfaces.c (tty_supports_face_attributes_p): Fix code
12434 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
12435 was copied and not edited.
12436
12437 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
12438
12439 Add new `input-decode-map' keymap and use it for terminal
12440 escape sequences.
12441 * keyboard.h (struct kboard): Add Vinput_decode_map.
12442 Remove Vlocal_key_translation_map.
12443 * keyboard.c (read_key_sequence): Add support for input-decode-map.
12444 (init_kboard): Init input-decode-map.
12445 Replace local-key-translation-map back with key-translation-map.
12446 (syms_of_keyboard): Declare input-decode-map.
12447 Remove local-key-translation-map. Update docstrings.
12448 (mark_kboards): Mark Vinput_decode_map.
12449 Don't mark Vlocal_key_translation_map.
12450 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
12451 Replace local-key-translation-map back with key-translation-map.
12452 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
12453 Bind in input-decode-map rather than function-key-map.
12454
12455 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
12456 This was made redundant by the previous introduction of XSETPVECTYPE.
12457
12458 2007-10-09 Richard Stallman <rms@gnu.org>
12459
12460 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
12461
12462 2007-09-29 Richard Stallman <rms@gnu.org>
12463
12464 * eval.c (internal_condition_case_2, internal_condition_case_1)
12465 (internal_condition_case): Reenable abort if x_catching_errors ()
12466 to see if that really happens and why.
12467
12468 2007-10-06 Andreas Schwab <schwab@suse.de>
12469
12470 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
12471
12472 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
12473
12474 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
12475
12476 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
12477
12478 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
12479
12480 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
12481
12482 * window.h (struct window):
12483 * window.c (struct save_window_data, struct saved_window):
12484 * termhooks.h (struct terminal):
12485 * process.h (struct Lisp_Process):
12486 * frame.h (struct frame):
12487 * buffer.h (struct buffer):
12488 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
12489 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
12490 The size field of (pseudo)vectors is now unsigned.
12491 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
12492
12493 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
12494 Turn `count' into an integer.
12495
12496 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
12497 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
12498 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
12499 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
12500 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
12501
12502 * alloc.c (allocate_pseudovector): New fun.
12503 (ALLOCATE_PSEUDOVECTOR): New macro.
12504 (allocate_window, allocate_terminal, allocate_frame)
12505 (allocate_process): Use it.
12506 (mark_vectorlike): New function.
12507 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
12508 (mark_terminals): Use it.
12509 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
12510 (Fmake_byte_code): Use XSETPVECTYPE.
12511
12512 * frame.c (Fframe_parameters): Minor simplification.
12513
12514 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
12515
12516 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
12517
12518 * buffer.c (Fget_buffer_create, init_buffer_once):
12519 * lread.c (defsubr):
12520 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
12521
12522 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
12523 defined differently in the m/*.h files.
12524 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
12525 (XSETPVECTYPE): New macro.
12526 (XSETPSEUDOVECTOR): Use it.
12527
12528 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
12529 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
12530
12531 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
12532 * lread.c (defvar_per_buffer):
12533 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
12534
12535 * window.c (candidate_window_p): Only consider as visible frames that
12536 are on the same terminal.
12537
12538 * m/ibms390x.h (MARKBIT): Remove unused macro.
12539
12540 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
12541
12542 * lread.c (Fload): Fix typo in docstring.
12543
12544 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
12545
12546 * floatfns.c (Fexpt): Manually check for overflows, so that a power
12547 of a non-zero value can't yield zero.
12548
12549 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
12550
12551 * term.c (term_clear_mouse_face, term_mouse_highlight)
12552 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
12553
12554 * print.c (safe_debug_print): Use XHASH.
12555
12556 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
12557 Lisp elements such as tags.
12558 (XHASH): New macro.
12559 (EQ): Use it.
12560 (SREF, SSET, STRING_COPYIN): Use SDATA.
12561 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
12562
12563 * alloc.c (mark_terminal): Remove left-over declaration.
12564 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
12565 (allocate_vectorlike): Remove type argument. Adjust callers.
12566 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
12567 Only handle the one remaining MEM_TYPE_VECTORLIKE.
12568
12569 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
12570 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
12571 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
12572 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
12573 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
12574 Use them.
12575
12576 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
12577 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
12578 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
12579
12580 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
12581
12582 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
12583 loaded by default.
12584
12585 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
12586
12587 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
12588 on this tty.
12589 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
12590
12591 * term.c (mouse_face_window): Rename from Qmouse_face_window.
12592 Update all users.
12593 (handle_one_term_event): Use Gpm_DrawPointer.
12594 (Fgpm_mouse_start): Rename from Fterm_open_connection.
12595 Signal errors instead of returning nil. Always return nil.
12596 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
12597 Make it a noop if gpm-mouse was not activated.
12598 (syms_of_term): Update names.
12599
12600 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
12601
12602 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
12603 (init_sys_modes): Check that gpm_tty is the current tty.
12604
12605 * alloc.c (allocate_terminal): Set the vector size to only count the
12606 lisp fields. Initialize those to nil.
12607 (mark_object): Don't treat terminals specially.
12608 (mark_terminal): Remove.
12609 (mark_terminals): Use mark_object instead.
12610
12611 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
12612 the GC to the beginning.
12613
12614 * indent.h:
12615 * indent.c: Use EMACS_INT for ints coming from Elisp data.
12616
12617 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
12618
12619 2007-09-25 Jason Rumney <jasonr@gnu.org>
12620
12621 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
12622
12623 * w32console.c (create_w32cons_output): Remove.
12624
12625 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
12626
12627 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
12628 (reset_sys_modes): Use reset_terminal_modes_hook.
12629
12630 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
12631
12632 * eval.c (do_autoload): Don't output any message.
12633
12634 2007-09-24 Juri Linkov <juri@jurta.org>
12635
12636 * emacs.c (standard_args): Change priority of "--no-splash"
12637 from 40 to 3. Add "--no-desktop" with the same priority.
12638
12639 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
12640
12641 * alloc.c (gc_sweep): Check cons cell mark bits word by word
12642 and optimize the case where they are all 1.
12643
12644 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
12645
12646 * lisp.h (abs): Define if not defined.
12647 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
12648 Don't define `abs', since it's defined in lisp.h.
12649
12650 2007-09-22 Eli Zaretskii <eliz@gnu.org>
12651
12652 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
12653 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
12654 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
12655 (init_tty): Use DEV_TTY instead of "/dev/tty".
12656 [WINDOWSNT]: No need to protect from NAME arg being null.
12657
12658 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
12659
12660 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
12661 up the tty state.
12662
12663 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
12664
12665 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
12666 (gpm_tty): Change its type.
12667 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
12668 (gpm_tty): Change its type and initialize it.
12669 (Fterm_open_connection): Check the frame is indeed a tty.
12670 Use the new gpm_tty.
12671 (Fterm_close_connection): Use the new gpm_tty.
12672 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
12673 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
12674
12675 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
12676
12677 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
12678 underline_color, to draw strike-through.
12679
12680 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
12681
12682 * lisp.h (allocate_terminal): Declare.
12683
12684 * window.c (candidate_window_p): Consider frames that are being placed
12685 by the user as somewhere between visible and iconified.
12686 (window_loop): Prefer windows on the current frame.
12687 (Fselect_window): Move the use of select-frame to the beginning so we
12688 can just delegate all the work (it'll call us back anyway).
12689
12690 * frame.c (Qdisplay_environment_variable):
12691 * frame.h (Qdisplay_environment_variable): Delete.
12692
12693 * .gdbinit (xbacktrace): Print the arg's address rather than the value
12694 of the first arg, since that value may be a union.
12695
12696 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
12697 parameter rather than Qdisplay_environment_variable. If all else
12698 fails, look for DISPLAY in initial-environment.
12699
12700 2007-09-21 Glenn Morris <rgm@gnu.org>
12701
12702 * Makefile.in (emacstool): Remove target.
12703 (lisp, shortlisp): Remove termdev.elc.
12704
12705 2007-09-21 Markus Triska <markus.triska@gmx.at>
12706
12707 * xterm.c (x_delete_display): Compile session management conditionally.
12708
12709 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
12710
12711 * callproc.c (getenv_internal_1): New function.
12712 (getenv_internal): Use it.
12713 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
12714
12715 * terminal.c (get_terminal): Don't accept ints to represent terminals.
12716 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
12717 (Fset_terminal_parameter): Work with dead terminals as well.
12718 (Fmodify_terminal_parameters): Remove.
12719
12720 * terminal.c (get_terminal): Handle terminals.
12721 Make sure the terminal returned is live.
12722 (create_terminal): Use allocate_terminal.
12723 (mark_terminals): Move to alloc.c.
12724 (delete_terminal): Use terminal->name as liveness status.
12725 NULL out fields after freeing their contents.
12726 Don't deallocate the object.
12727 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
12728 rather than an int.
12729 (Fterminal_live_p): Accept non-integer arguments.
12730 (Fterminal_list): Return terminal objects rather than an ints.
12731
12732 * alloc.c (enum mem_type): New member for `terminal' objects.
12733 (allocate_terminal): New function.
12734 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
12735 Handle terminals.
12736 (mark_terminal): New fun.
12737 (mark_terminals): Move from terminal.c.
12738
12739 * term.c (get_tty_terminal): Don't treat output_initial specially.
12740 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
12741 (delete_tty): Use terminal->name as liveness status.
12742
12743 * termhooks.h (struct terminal): Make it into a pseudovector.
12744 Remove `deleted' replaced by checking `name's nullness.
12745
12746 * print.c (print_object): Handle terminals.
12747
12748 * lisp.h (enum pvec_type): New `terminal' pseudovector.
12749 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
12750
12751 * frame.c (make_terminal_frame):
12752 * keyboard.c (tty_read_avail_input):
12753 * w32term.c (x_delete_terminal):
12754 * xfns.c (Fx_create_frame, x_create_tip_frame):
12755 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
12756
12757 2007-09-20 Glenn Morris <rgm@gnu.org>
12758
12759 * process.c (Fmake_network_process): Doc fix.
12760
12761 2007-09-19 Jason Rumney <jasonr@gnu.org>
12762
12763 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
12764
12765 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
12766
12767 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
12768 Fix a C warning regarding variable constness.
12769
12770 * xterm.c (handle_one_xevent): Fix a C warning.
12771
12772 2007-09-18 Jason Rumney <jasonr@gnu.org>
12773
12774 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
12775
12776 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
12777
12778 * gtkutil.c (gdpy_def): New variable.
12779 (xg_initialize): Initialize gdpy_def.
12780 (xg_display_close): If no other display exists, set gdpy_def to a
12781 new connection.
12782
12783 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
12784
12785 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
12786 when we have no file name for the icon.
12787 (xg_tool_bar_expose_callback): Remove.
12788 (xg_create_tool_bar): Don't connect expose signal to
12789 xg_tool_bar_expose_callback.
12790 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
12791
12792 2007-09-16 Andreas Schwab <schwab@suse.de>
12793
12794 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
12795 values instead of zapping them.
12796
12797 2007-09-14 Glenn Morris <rgm@gnu.org>
12798
12799 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
12800 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
12801 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
12802 scope and rename to omfib_buffer for clarity.
12803 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
12804
12805 2007-09-14 Kenichi Handa <handa@m17n.org>
12806
12807 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
12808
12809 2007-09-13 Jason Rumney <jasonr@gnu.org>
12810
12811 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
12812
12813 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
12814
12815 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
12816 (mac_term_init): Call here instead, passing rif.
12817
12818 2007-09-13 Glenn Morris <rgm@gnu.org>
12819
12820 * s/hpux.h: No longer define `static' as nothing.
12821
12822 2007-09-13 Johan Bockgård <bojohan@gnu.org>
12823
12824 * callint.c (Fcall_interactively): Remove unused var `fun'.
12825
12826 2007-09-12 Romain Francoise <romain@orebokech.com>
12827
12828 * window.c (prefer_window_split_horizontally, display_buffer):
12829 Revert 2007-09-08 change.
12830
12831 2007-09-12 Glenn Morris <rgm@gnu.org>
12832
12833 * alloca.c: Remove file.
12834 * Makefile.in (alloca): Do not undef.
12835 (allocaobj, alloca.o): Remove.
12836 (otherobj): Remove allocaobj.
12837 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
12838 * regex.c (C_ALLOCA): Remove all references and code that was only
12839 used when this was defined.
12840 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
12841 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
12842 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
12843
12844 * Makefile.in (SOURCES, unlock, relock): Delete.
12845
12846 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
12847 (menu_grab_callback): All uses changed.
12848
12849 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
12850 (x_reply_selection_request): All uses changed.
12851
12852 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
12853
12854 * lread.c (load_warn_old_style_backquotes): Change message to look
12855 better when it appears in the middle of byte-compiler messages.
12856
12857 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
12858
12859 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
12860
12861 * xterm.c (x_create_terminal): Add comment.
12862
12863 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
12864
12865 2007-09-10 Richard Stallman <rms@gnu.org>
12866
12867 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
12868
12869 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
12870
12871 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
12872 (DEFUN): Document `intspec', use it instead of `prompt'.
12873
12874 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
12875
12876 * data.c (Finteractive_form): If the interactive specification starts
12877 with a `(', use it as a Lisp form.
12878
12879 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
12880 name and file modes.
12881
12882 * callint.c (Fcall_interactively): Comment fixes.
12883
12884 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
12885
12886 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
12887 and compiled functions.
12888
12889 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
12890
12891 * window.c (prefer_window_split_horizontally): New variable.
12892 (display_buffer): Consider splitting window horizontally depending
12893 on prefer_window_split_horizontally.
12894
12895 2007-09-08 Eli Zaretskii <eliz@gnu.org>
12896
12897 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
12898
12899 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
12900
12901 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
12902
12903 * frame.c (x_set_frame_parameters): Check number is positive before
12904 using XFASTINT.
12905
12906 * window.c (freeze_window_start): Don't presume selected_window holds
12907 a window object.
12908 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
12909
12910 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
12911
12912 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
12913
12914 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
12915
12916 * window.c (Vsplit_window_preferred_function): New var.
12917 (Fdisplay_buffer): Use it.
12918 (syms_of_window): Export, and initialize it.
12919
12920 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
12921
12922 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
12923
12924 2007-09-06 Glenn Morris <rgm@gnu.org>
12925
12926 * gtkutil.c (menu_grab_callback) <cnt>:
12927 * xselect.c (x_reply_selection_request) <cnt>: Move static
12928 variable to file scope.
12929
12930 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
12931
12932 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
12933 consistent values of selected_frame and selected_window.
12934
12935 2007-09-04 Jason Rumney <jasonr@gnu.org>
12936
12937 * w32console.c (initialize_w32_display): Zero unused hooks.
12938
12939 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
12940
12941 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
12942 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
12943
12944 2007-09-04 Jason Rumney <jasonr@gnu.org>
12945
12946 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
12947 in w32console.c. Set up input. Remove XXX comments that have been
12948 confirmed as correct.
12949
12950 * s/ms-w32.h (MULTI_KBOARD): Define.
12951
12952 * w32console.c (one_and_only_w32cons): Remove.
12953 (initialize_w32_display): Take terminal argument.
12954
12955 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
12956 initialize_w32_display.
12957 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
12958
12959 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
12960
12961 * keyboard.c (discard_mouse_events): Discard it.
12962 (make_lispy_event): Translate it to a lisp event.
12963 (lispy_wheel_names): Add wheel-left and right events.
12964 (syms_of_keyboard): Enlarge wheel_syms.
12965
12966 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
12967 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
12968
12969 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
12970
12971 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
12972 from WM_MOUSEHWHEEL.
12973 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
12974
12975 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
12976 terminal.
12977
12978 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
12979 keyboard for the terminal.
12980
12981 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
12982
12983 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
12984 (Vresume_tty_hook): Rename from Vresume_tty_functions.
12985 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
12986 and resume-tty-function to resume-tty-hook.
12987 (Fsuspend_tty, Fresume_tty): Use new names.
12988
12989 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
12990
12991 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
12992 if it starts with "n:".
12993
12994 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
12995
12996 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
12997
12998 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
12999
13000 * frame.h:
13001 * frame.c (Qterm_environment_variable): Remove.
13002 (syms_of_frame): Don't init and staticpro it.
13003
13004 * callproc.c (getenv_internal): Remove special case for $TERM.
13005
13006 * callproc.c (Vinitial_environment): New variable.
13007 (set_initial_environment): Initialize it.
13008 (syms_of_callproc): Declare it.
13009 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
13010 TERM under which a process runs is never related to the TERM in which
13011 Emacs is running.
13012
13013 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
13014
13015 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
13016 * s/darwin.h: ... do it here.
13017
13018 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
13019
13020 * lisp.h (set_initial_environment): Rename from set_global_environment.
13021
13022 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
13023 removed by mistake on the multi-tty branch.
13024
13025 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
13026 (Fmodify_frame_parameters): Return a value.
13027
13028 * image.c (png_load): Comment-out var only used in commented-out code.
13029
13030 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
13031 before passing it to mark_object.
13032
13033 * xfaces.c (internal_resolve_face_name): Return a value.
13034 (internal_resolve_face_name, resolve_face_name_error): Comment out.
13035
13036 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
13037 (x_icon): Comment-out var only used in commented-out code.
13038
13039 2007-08-29 Romain Francoise <romain@orebokech.com>
13040
13041 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
13042 QUIT hasn't been provided.
13043
13044 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
13045
13046 * callproc.c (child_setup, getenv_internal): Use the
13047 display-environment-variable and term-environment-variable frame params.
13048 (set_initial_environment): Initialise Vprocess_environment.
13049
13050 * config.in: Disable multi-keyboard support on a mac.
13051
13052 * frame.c (Qterm_environment_variable)
13053 (Qdisplay_environment_variable): New variables.
13054 (syms_of_frame): Intern and staticpro them.
13055 (Fmake_terminal_frame): Disable output method test.
13056
13057 * frame.h: Declare them here.
13058
13059 * macfns.c (x_set_mouse_color): Get rif from the frame.
13060 (x_set_tool_bar_lines): Don't use updating_frame.
13061 (mac_window): Add 2 new parameters for consistency with other systems.
13062 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
13063 frame parameters following what is done in X11 and w32. Don't use
13064 FRAME_MAC_DISPLAY_INFO.
13065 (Fx_open_connection, start_hourglass): Remove window-system check.
13066 (x_create_tip_frame): Get the keyboard from the terminal.
13067
13068 * macmenu.c: Reorder includes.
13069 (Fx_popup_menu): Use terminal specific mouse_position_hook.
13070
13071 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
13072 terminal parameter.
13073 (x_clear_frame): Add a frame parameter.
13074 (note_mouse_movement): Get rif from the frame.
13075 (mac_term_init): Initialize the terminal.
13076 (mac_initialize): Make static and move terminal initialization ...
13077 (mac_create_terminal): ... to this new function.
13078
13079 * macterm.h (struct mac_display_info): Add terminal.
13080 (mac_initialize): Delete declaration.
13081
13082 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
13083
13084 * sysdep.c: Comment out text after #endif.
13085
13086 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
13087 is defined. Better initialize ttys in windows. Use terminal
13088 specific mouse_position_hook.
13089
13090 * termhooks.h (union display_info): Add mac_display_info.
13091
13092 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
13093 Set the default minibuffer frame, window_system and the rest of the
13094 frame parameters following what is done in X11.
13095
13096 * w32term.c (w32_initialize): Make static.
13097
13098 * xselect.c (x_handle_selection_clear): Only access
13099 terminal->kboard when MULTI_KBOARD is defined.
13100
13101 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
13102 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
13103
13104 2007-08-29 Jason Rumney <jasonr@gnu.org>
13105
13106 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
13107 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
13108
13109 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
13110 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
13111
13112 * keyboard.c (restore_kboard_configuration): Only define when
13113 MULTI_KBOARD defined.
13114
13115 * makefile.w32-in: Update dependancies from Makefile.in.
13116 (OBJ1): Add terminal.$(O)
13117
13118 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
13119 Don't define function body.
13120 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
13121
13122 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
13123
13124 * w32.c (request_sigio, unrequest_sigio): Remove.
13125
13126 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
13127 (w32con_clear_frame, w32con_clear_end_of_line)
13128 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
13129 (w32con_delete_glyphs, w32con_set_terminal_window)
13130 (scroll_line, w32_sys_ring_bell): Add frame arg.
13131 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
13132 Add terminal arg.
13133 (PICK_FRAME): Remove.
13134 (w32con_write_glyphs): Use frame specific terminal coding.
13135 (one_and_only_w32cons): New global variable.
13136 (initialize_w32_display): Use it for storing hooks.
13137 (create_w32cons_output): New function.
13138
13139 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
13140 arg a frame.
13141
13142 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
13143 Set window_system.
13144 (x_set_tool_bar_lines): Don't use updating_frame.
13145 (Fx_create_frame): Set terminal and ref count.
13146 (Fx_open_connection): Remove window-system check.
13147
13148 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
13149
13150 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
13151 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
13152 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
13153 Add frame arg.
13154 (x_delete_terminal, w32_create_terminal): New functions.
13155 (w32_term_init): Create a terminal.
13156 (w32_initialize): Move terminal specific initialization to
13157 w32_create_terminal.
13158
13159 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
13160 (w32_clear_rect, w32_clear_area): Use background from frame.
13161 (w32_display_info): Add terminal.
13162 (w32_sys_ring_bell, x_delete_display): Declare here.
13163
13164 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
13165
13166 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
13167
13168 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
13169
13170 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
13171 Fix get_named_tty calls for the controlling tty.
13172
13173 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
13174
13175 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
13176
13177 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
13178
13179 * term.c (tty_insert_glyphs): Add missing first parameter.
13180
13181 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
13182
13183 * buffer.c (Fbuffer_list, Fbury_buffer):
13184 Take frame->buried_buffer_list into account.
13185
13186 * cm.c (current_tty): New variable, for cmputc().
13187 (cmputc): Use it.
13188 (cmcheckmagic): Add tty parameter, look up terminal streams there.
13189 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
13190 (cmgoto): Add tty parameter. Pass it on to calccost().
13191 Use emacs_tputs() instead of tputs().
13192
13193 * cm.h (emacs_tputs): New macro to set current_tty, and then call
13194 tputs().
13195 (current_tty): New variable, for cmputc().
13196 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
13197
13198 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
13199 (internal_condition_case, internal_condition_case_1)
13200 (internal_condition_case_2): Don't abort when x_catching_errors.
13201
13202 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
13203 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
13204 prevent crashes caused by bogus longjmps in read_char.
13205
13206 * keymap.h (Fset_keymap_parent): Add EXFUN.
13207
13208 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
13209 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
13210 Remove redundant definition.
13211
13212 * macfns.c (x_set_mouse_color, x_make_gc):
13213 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
13214
13215 * w32term.c (x_free_frame_resources):
13216 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
13217 (w32_initialize): Use the accessor macros for terminal characteristics.
13218
13219 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
13220 Use the accessor macros for terminal characteristics.
13221 * msdos.c (internal_terminal_init): Use the accessor macros for
13222 terminal characteristics.
13223 (ScreenVisualBell, internal_terminal_init):
13224 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
13225
13226 * termopts.h (no_redraw_on_reenter): Declare.
13227
13228 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
13229 (mark_terminals, mark_ttys): Declare.
13230 (Fgarbage_collect): Call them.
13231 (mark_object): Mark buried_buffer_list.
13232
13233 * prefix-args.c: Include stdlib.h for exit.
13234
13235 * syssignal.h: Add comment.
13236
13237 * indent.c: Include stdio.h.
13238
13239 * window.h (Vinitial_window_system): Declare.
13240 (Vwindow_system): Delete declaration.
13241
13242 * fontset.c (Finternal_char_font): Use FRAME_RIF.
13243
13244 * image.c (lookup_image): Don't initialize `c' until the xasserts
13245 have been run.
13246
13247 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
13248 FRAME_FOREGROUND_PIXEL.
13249
13250 * print.c (print_preprocess): Don't lose print_depth levels while
13251 iterating.
13252
13253 * widget.c (update_from_various_frame_slots):
13254 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
13255
13256 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
13257 frames.
13258 (window_internal_height): Remove bogus make_number call.
13259 (init_window_once): Call make_terminal_frame with two zero parameters.
13260
13261 * fileio.c (Fread_file_name): Update comment.
13262
13263 * callint.c (Fcall_interactively):
13264 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
13265 Make sure it is correctly unwound.
13266
13267 * xsmfns.c (x_session_close): New function.
13268
13269 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
13270 Delete declarations.
13271
13272 * xterm.h: Remove declaration for x_fully_uncatch_errors.
13273 (x_output): Remove background_pixel and foreground_pixel fields.
13274 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
13275 (x_delete_device, x_session_close): Declare.
13276
13277 * lread.c: Include setjmp.h. Update declaration of `read_char'.
13278 (read_filtered_event): Call `read_char' with a local
13279 `wrong_kboard_jmpbuf'.
13280
13281 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
13282 Don't call single_kboard_state. Use FRAME_RIF.
13283
13284 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
13285 systems.
13286
13287 * lisp.h (set_process_environment): Rename to `set_global_environment'.
13288 (Fframe_with_environment, Fset_input_meta_mode)
13289 (Fset_quit_char): EXFUN.
13290 (x_create_device, tty_output, terminal, tty_display_info): Declare.
13291 (init_sys_modes, reset_sys_modes): Update prototypes.
13292 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
13293
13294 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
13295 Vlocal_key_translation_map, and Vkeyboard_translate_table.
13296 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
13297 Delete declarations.
13298 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
13299 (temporarily_switch_to_single_kboard, tty_read_avail_input):
13300 New declarations.
13301
13302 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
13303 already does that during init_display(). Call syms_of_keymap
13304 before syms_of_keyboard. Call `syms_of_terminal'.
13305 Call set_initial_environment, not set_process_environment.
13306 (shut_down_emacs): Call reset_all_sys_modes() instead of
13307 reset_sys_modes().
13308
13309 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
13310 (internal_resolve_face_name, resolve_face_name_error): New functions.
13311 (resolve_face_name): Protect against loops and errors thrown by Fget.
13312 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
13313 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
13314
13315 * scroll.c: Replace CURTTY() with local variables throughout the
13316 file (where applicable).
13317 (calculate_scrolling, calculate_direct_scrolling)
13318 (scrolling_1, scroll_cost): Use the accessor macros for terminal
13319 characteristics.
13320
13321 * keymap.c (Vfunction_key_map): Remove.
13322 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
13323 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
13324 (Vkey_translation_map): Remove.
13325 (syms_of_keymap): Remove DEFVAR for key-translation-map.
13326 (Fdescribe_buffer_bindings)
13327 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
13328 Update for terminal-local key-translation-map.
13329
13330 * Makefile.in (callproc.o): Update dependencies.
13331 (lisp, shortlisp): Add termdev.elc.
13332 (obj): Add terminal.o.
13333 (terminal.o): Add dependencies.
13334 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
13335 (data.o, fns.o): Add termhooks.h dependency.
13336 (SOME_MACHINE_LISP): Add dnd.elc.
13337 (minibuf.o): Fix typo.
13338 Update dependencies.
13339
13340 * data.c (do_symval_forwarding, store_symval_forwarding)
13341 (find_symbol_value): Use the selected frame's keyboard, not
13342 current_kboard.
13343
13344 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
13345 Vwindow_system.
13346
13347 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
13348 Fmenu_bar_open.
13349 (syms_of_xmenu): Update defsubr.
13350 (mouse_position_for_popup, Fx_popup_menu)
13351 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
13352 (set_frame_menubar, free_frame_menubar)
13353 (create_and_show_popup_menu, xmenu_show, )
13354 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
13355 an X frame.
13356
13357 * xselect.c (x_own_selection): Abort if not an X frame.
13358 (some_frame_on_display): Check if it is an X frame.
13359 (x_handle_selection_clear): Deal with MULTI_KBOARD.
13360
13361 * coding.c: Include frame.h and termhooks.h.
13362 (terminal_coding, keyboard_coding): Delete.
13363 (Fset_terminal_coding_system_internal)
13364 (Fset_keyboard_coding_system_internal)
13365 (Fkeyboard_coding_system)
13366 (Fterminal_coding_system): Add a terminal parameter.
13367 Get terminal_coding from the terminal.
13368 (init_coding_once): Don't call setup_coding_system here.
13369
13370 * dispextern.h (set_scroll_region, turn_off_insert)
13371 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
13372 (tty_clear_end_of_line, tty_setup_colors)
13373 (delete_tty, updating_frame)
13374 (produce_special_glyphs, produce_glyphs, write_glyphs)
13375 (insert_glyphs): Remove.
13376 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
13377 (tty_turn_off_highlight, get_tty_size): Add declaration.
13378 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
13379
13380 * frame.h (enum output_method): Add output_initial.
13381 (struct x_output): Delete.
13382 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
13383 Access foreground_pixel and background_pixel directly from the frame.
13384 (tty_display): Delete.
13385 (struct frame): Add buried_buffer_list, foreground_pixel,
13386 background_pixel and terminal. Delete kboard.
13387 (union output_data): Add tty.
13388 (FRAME_KBOARD): Get the kboard from the terminal.
13389 (FRAME_INITIAL_P): New macro.
13390 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
13391 (Qterm_environment_variable, Qdisplay_environment_variable)
13392 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
13393 New declarations.
13394
13395 * termchar.h (tty_output, tty_display_info): New structures.
13396 (tty_list): Declare.
13397 (FRAME_TTY, CURTTY): New macros.
13398 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
13399 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
13400 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
13401 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
13402
13403 * callproc.c: Include frame.h and termhooks.h, for terminal
13404 parameters.
13405 (add_env): New function.
13406 (child_setup): Use it.
13407 (child_setup, getenv_internal): Handle the new Vprocess_environment.
13408 (getenv_internal): Fix get_terminal_param call.
13409 (Fgetenv_internal, egetenv): Update doc.
13410 (syms_of_callproc): Initialize Vprocess_environment to nil.
13411 Register and initialize them. Remove obsolete defvars. Update doc
13412 strings.
13413 (child_setup): Handle Vlocal_environment_variables.
13414 (getenv_internal): Add terminal parameter.
13415 Handle Vlocal_environment_variables.
13416 (Fgetenv_internal): Add terminal parameter.
13417 (child_setup, getenv_internal, Fgetenv_internal): Store the local
13418 environment in a frame (not terminal) parameter. Update doc strings.
13419 (set_initial_environment): Rename from set_global_environment.
13420 Store Emacs environment in initial frame parameter.
13421
13422 * xdisp.c (redisplay_internal): Update references to
13423 `previous_terminal_frame'.
13424 (display_mode_line, Fformat_mode_line): Replace calls to
13425 `push_frame_kboard' with `push_kboard'.
13426 (get_glyph_string_clip_rects): Add extra parentheses and
13427 braces to prevent compiler warnings.
13428 (calc_pixel_width_or_height): Add xassert to check that the
13429 frame is alive. Don't call `lookup_image' on a termcap frame.
13430 (message2_nolog, message3_nolog, redisplay_internal)
13431 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
13432 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
13433 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
13434 (Fx_display_pixel_width, Fx_display_pixel_height)
13435 (Fx_display_planes, Fx_display_color_cells)
13436 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
13437 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
13438 (Fx_display_backing_store, Fx_display_visual_class)
13439 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
13440 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
13441
13442 * xfns.c (x_set_foreground_color x_set_background_color)
13443 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
13444 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
13445 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
13446 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
13447 terminal that is being deleted.
13448 (Fx_create_frame): Use `store_frame_param' to set `window-system'
13449 frame parameter, and make sure it overrides any user-supplied setting.
13450 (Fx_close_connection, Fx_synchronize): Unify argument names with
13451 the rest of the DEFUNs.
13452
13453 * dispnew.c (Fsend_string_to_terminal): Update call to
13454 `get_tty_terminal'.
13455 (Fredraw_frame, Fsend_string_to_terminal)
13456 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
13457 FRAME_TERMCAP_P and FRAME_TTY.
13458 (window_change_signal): Don't believe width/height values that are
13459 impossibly small.
13460 (Vinitial_window_system): Rename from Vwindow_system.
13461 (termscript, Wcm, rif): Delete.
13462
13463 * termhooks.h (struct terminal): New struct containing the
13464 previously global text display hooks and new members NAME,
13465 DELETED and PARAM_ALIST.
13466 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
13467 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
13468 (FRAME_RIF): New macros.
13469 (get_terminal_param, get_device): New declarations.
13470 (termscript): Delete declaration.
13471
13472 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
13473 (XTflash, x_free_frame_resources, x_scroll_bar_create)
13474 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
13475 FRAME_FOREGROUND_PIXEL.
13476 (x_fully_uncatch_errors): Disable definition.
13477 (x_scroll_bar_expose): Fix reference to foreground pixel.
13478 (XTread_socket): Disable loop on all X displays.
13479 (x_delete_terminal): Don't set terminal->deleted and let
13480 delete_terminal delete the frames on the terminal.
13481 (x_delete_display): Doc update to reflect changes in
13482 delete_terminal.
13483 (x_display_info) <terminal>: Move member earlier in the struct.
13484 (deleting_tty): Remove old variable.
13485 (Fsuspend_tty): Call clear_tty_hooks.
13486 (Fresume_tty, init_tty): Call set_tty_hooks.
13487 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
13488 errors on X frames.
13489 (x_catch_errors_unwind): Abort if x_error_message is NULL.
13490 (handle_one_xevent): Initialize `f' to NULL.
13491 (x_delete_terminal, x_create_terminal): New functions.
13492 (XTset_terminal_modes, XTreset_terminal_modes)
13493 (XTread_socket, x_connection_closed, x_term_init)
13494 (x_term_init, x_delete_display): Add terminal parameter.
13495 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
13496 X connections.
13497
13498 * frame.c: Include termchar.h.
13499 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
13500 (Qwindow_system, Qenvironment, Qterm_environment_variable)
13501 (Qdisplay_environment_variable): New vars.
13502 (Fframep): Deal with output_initial.
13503 (Fframe-live-p): Doc fix.
13504 (Fwindow-system): New function.
13505 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
13506 (make_terminal_frame): Don't create frames on a terminal that is
13507 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
13508 (store_frame_param): Check for found_for_frame before calling XFRAME.
13509 (Fmake_terminal_frame): Handle NULL tty names correctly.
13510 (syms_of_frame): Enhance doc string of `default-frame-alist'.
13511 (Fdelete_frame): Remove unused variable `count'. Don't allow other
13512 frames to refer to a deleted frame in their 'environment parameter.
13513 (Fframe_with_environment): New function.
13514 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
13515 (get_future_frame_param): New function.
13516 (Fmake_terminal_frame): Use it.
13517 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
13518
13519 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
13520 * sysdep.c (reset_sys_modes): Update for renames.
13521
13522 * keyboard.c (tty_read_avail_input): New function.
13523 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
13524 (syms_of_keyboard): Defsubr them.
13525 (Fset_input_meta_mode, Fset_quit_char): New functions.
13526 (Fset_input_mode): Split to above functions.
13527 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
13528 parameter. Use it in call to `read_char'.
13529 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
13530 Set wrong_kboard_jmpbuf correctly in recursive calls.
13531 Use current_kboard to access Vkeyboard_translate_table.
13532 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
13533 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
13534 Update longjmp invocations. Remember the original current_kboard,
13535 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
13536 changes it. Comment out unnecessary calls to
13537 `record_single_kboard_state' and `any_kboard_state'.
13538 Update recursive calls.
13539 (wrong_kboard_jmpbuf): Remove global variable.
13540 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
13541 Handle deleted interrupted_kboards correctly; that is a legal
13542 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
13543 and read_char calls. Abort if interrupted_kboard died in read_char.
13544 (any_kboard_state, single_kboard_state)
13545 (push_frame_kboard): Remove function.
13546 (pop_kboard): Switch out of single_kboard mode if the kboard has
13547 been deleted. Remove unused variable. Help debugging by not
13548 changing current_kboard unnecessarily. Set current_kboard to the
13549 kboard of the selected frame when the stored kboard object has
13550 been deleted before pop_kboard.
13551 (temporarily_switch_to_single_kboard): Change first parameter to a
13552 frame pointer. Throw an error when caller wants to change kboards
13553 while in single_kboard mode. Don't push_kboard if we weren't in
13554 single kboard state. Don't pop_kboard if we popped into any
13555 kboard state.
13556 (restore_kboard_configuration): Abort if pop_kboard changed the
13557 kboard in single_kboard mode. Call pop_kboard only after setting
13558 up single_kboard mode.
13559 (Frecursive_edit): Switch to single_kboard mode only in nested
13560 command loops.
13561 (cmd_error, command_loop, command_loop_1, timer_check):
13562 Comment out unnecessary call to `any_kboard_state' and
13563 `record_single_kboard_state'.
13564 (delete_kboard): Exit single_kboard mode if we have just deleted
13565 that kboard. Use FRAME_KBOARD.
13566 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
13567 `fatal_error_signal'.
13568 (record_single_kboard_state): Don't push_kboard if we weren't in
13569 single kboard state. Don't pop_kboard if we popped into any
13570 kboard state.
13571 (push_frame_kboard): Rename to push_kboard.
13572 (kbd_buffer_get_event): Use FRAME_TERMINAL.
13573 (read_avail_input): Read input from all terminals.
13574 (mark_kboards): Also mark Vkeyboard_translate_table.
13575 (kbd_buffer_store_event_hold): Simplify condition.
13576 (read_key_sequence): Reinitialize fkey and keytran at each replay.
13577 (Vkeyboard_translate_table): Move to struct kboard.
13578 (init_kboard): Initialize Vkeyboard_translate_table.
13579 (syms_of_keyboard): Use DEFVAR_KBOARD to define
13580 Vkeyboard_translate_table. Update doc strings. Update docs of
13581 local-function-key-map and function-key-map.
13582
13583 * terminal.c: New file.
13584
13585 * term.c: Include errno.h.
13586 (Vring_bell_function, device_list, initial_device)
13587 (next_device_id, ring_bell, update_begin, update_end)
13588 (set_terminal_window, cursor_to, raw_cursor_to)
13589 (clear_to_end, clear_frame, clear_end_of_line)
13590 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
13591 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
13592 (syms_of_term): Move their initialization to terminal.c.
13593 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
13594 (Ftty_display_color_cells)
13595 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
13596 (clear_tty_hooks, set_tty_hooks)
13597 (init_tty, maybe_fatal): New functions.
13598 (Ftty_type): Return nil if terminal is not on a tty instead of
13599 throwing an error. Doc update.
13600 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
13601 Doc update. Initialize new subrs and variables.
13602 (delete_tty): Use terminal->deleted.
13603 (tty_set_terminal_modes): Rename from set_terminal_modes.
13604 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
13605 (set_scroll_region): Rename to `tty_set_scroll_region'.
13606 (turn_on_insert): Rename to `tty_turn_on_insert'.
13607 (turn_off_insert): Rename to `tty_turn_off_insert'.
13608 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
13609 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
13610 (toggle_highligh): Rename to `tty_toggle_highlight'.
13611 (background_highlight): Rename to `tty_background_highlight'.
13612 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
13613 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
13614 (tty_set_scroll_region, tty_background_highlight)
13615 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
13616 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
13617 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
13618 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
13619 Add static modifier.
13620 (tty_reset_terminal_modes, tty_set_terminal_window)
13621 (tty_set_scroll_region, tty_background_highlight)
13622 (tty_highlight_if_desired, tty_cursor_to)
13623 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
13624 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
13625 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
13626 renames.
13627
13628 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
13629
13630 * keyboard.c: Qrtl is new.
13631 (parse_tool_bar_item): Handle :rtl keyword.
13632 (syms_of_keyboard): Intern :rtl keyword.
13633
13634 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
13635
13636 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
13637 so no Lisp code is executed.
13638 (file_for_image, find_rtl_image): New functions.
13639 (xg_get_image_for_pixmap): Use file_for_image.
13640 (update_frame_tool_bar): If direction is RTL, use RTL image if
13641 defined. Use Gtk stock images if defined.
13642
13643 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13644
13645 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
13646 for nonexistent or zero-width glyph in composition glyph.
13647
13648 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
13649
13650 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
13651
13652 * xdisp.c (Finvisible_p): New function.
13653 (syms_of_xdisp): defsubr it.
13654
13655 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
13656
13657 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
13658 Doc fixes.
13659
13660 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13661
13662 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
13663
13664 2007-08-24 Martin Rudalics <rudalics@gmx.at>
13665
13666 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
13667 whether decoding has modified buffer contents.
13668
13669 2007-08-24 Jason Rumney <jasonr@gnu.org>
13670
13671 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
13672 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
13673 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
13674 (init_svg_functions) [HAVE_NTGUI]: New function.
13675 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
13676 (svg_load_image): Use them.
13677 (svg_load_image) [HAVE_NTGUI]: Implement background.
13678
13679 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13680
13681 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
13682 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
13683 (LIBX): Remove @RSVG_LIBS@.
13684 (LIBES): Add $(RSVG_LIBS).
13685
13686 * image.c (svg_load_image): Blend with specified background if exists.
13687 Use IMAGE_BACKGROUND. Add Mac OS Support.
13688
13689 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
13690 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
13691 Remove macros.
13692 [MAC_OSX] (socket_callback): Do nothing.
13693 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
13694 ReceiveNextEvent.
13695 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
13696 socket_callback.
13697 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
13698
13699 2007-08-22 Glenn Morris <rgm@gnu.org>
13700
13701 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
13702
13703 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
13704
13705 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
13706
13707 * image.c: Add support for SVG images. Some additional comments
13708 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
13709 (svg_image_p): New function to test for SVG image.
13710 (svg_load): New function to load SVG image.
13711 (svg_load_image): New function, helper for svg_load.
13712 (Qsvg): New Lisp_object.
13713 (svg_keyword_index): New enum.
13714 (svg_format): New static `image_keyword' struct.
13715 (svg_type): New static `image_type' struct.
13716 (librsvg/rsvg.h): Include it.
13717
13718 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
13719
13720 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
13721
13722 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
13723
13724 * lread.c (Qold_style_backquotes): New var.
13725 (syms_of_lread): Init and staticpro it.
13726 (load_warn_old_style_backquotes): New fun.
13727 (Fload): Use them to warn about old style backquotes.
13728 (end_of_file_error, Fload): Remove unused vars.
13729
13730 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
13731
13732 * lread.c (Vold_style_backquotes): New var.
13733 (syms_of_lread): Init and export it to Elisp.
13734 (read1): Set it when we find an old-style (back)quote.
13735
13736 2007-08-22 Jason Rumney <jasonr@gnu.org>
13737
13738 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
13739
13740 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
13741
13742 * puresize.h (BASE_PURESIZE): Increase to 1140000.
13743
13744 2007-08-19 Richard Stallman <rms@gnu.org>
13745
13746 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
13747
13748 2007-08-19 Andreas Schwab <schwab@suse.de>
13749
13750 * alloc.c (pure): Round PURESIZE up.
13751
13752 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
13753
13754 * xterm.c (handle_one_xevent): Remove check that mouse click is in
13755 active frame.
13756
13757 2007-08-16 Richard Stallman <rms@gnu.org>
13758
13759 * eval.c (Fcommandp): Add parens to clarify.
13760
13761 * minibuf.c (Fall_completions): Use enum for type of table.
13762
13763 * emacs.c (USAGE2): Improve text.
13764
13765 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
13766
13767 * term.c (tty_default_color_capabilities): Declare static
13768 variables in file scope, to avoid HPUX compiler problem.
13769
13770 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
13771
13772 * gtkutil.c (update_frame_tool_bar): Use -1 as index
13773 to gtk_toolbar_insert.
13774
13775 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
13776
13777 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
13778
13779 * insdel.c (reset_var_on_error): New fun.
13780 (signal_before_change, signal_after_change):
13781 Use it to reset (after|before)-change-functions to nil in case of error.
13782 Bind inhibit-modification-hooks to t.
13783 Don't bind (after|before)-change-functions to nil while they run.
13784
13785 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13786
13787 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
13788 filling pixmap with stippled background.
13789
13790 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13791
13792 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
13793 Don't use invisible frame as parent window for repositioning.
13794
13795 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
13796
13797 * print.c (new_backquote_output): Rename from old_backquote_output.
13798 (print): Inverse its logic (according to its name) so as to match the
13799 behavior of new_backquote_flag in lread.c.
13800
13801 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13802
13803 * gmalloc.c (posix_memalign): New function.
13804
13805 * macterm.c (frame_highlight, frame_unhighlight): Don't call
13806 ActivateControl/DeactivateControl here.
13807 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
13808 frame-notice-user-settings is non-nil.
13809 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
13810 for kEventParamFMFontStyle.
13811 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
13812 mac_pass_command_to_system and mac_pass_control_to_system here.
13813 (XTread_socket): Call ActivateControl/DeactivateControl here.
13814 (XTread_socket) [TARGET_API_MAC_CARBON]:
13815 Check mac_pass_command_to_system and mac_pass_control_to_system here.
13816 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
13817 for window repositioning.
13818
13819 2007-08-08 Glenn Morris <rgm@gnu.org>
13820
13821 * Replace `iff' in doc-strings and comments.
13822
13823 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
13824
13825 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
13826
13827 2007-08-07 Martin Rudalics <rudalics@gmx.at>
13828
13829 * fileio.c (Finsert_file_contents): Run format-decode and
13830 after_insert_file_functions on entire buffer when REPLACE is
13831 non-nil and inhibit modification_hooks and point_motion_hooks.
13832 For consistency, run after_insert_file_functions iff something
13833 got inserted. Move signal_after_change and update_compositions
13834 after code running after_insert_file_functions. Make sure that
13835 undo_list doesn't record intermediate steps of the decoding process.
13836
13837 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13838
13839 * emacs.c (main)
13840 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
13841 Call malloc_enable_thread on interactive startup.
13842
13843 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
13844 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
13845 [USE_PTHREAD]: Conditionalize with it.
13846 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
13847 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
13848 New functions.
13849
13850 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
13851
13852 * xdisp.c (redisplay_window): When restoring original buffer
13853 position, make sure it is still valid.
13854
13855 * image.c (png_load): Ignore png-supplied background color.
13856
13857 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13858
13859 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
13860 Use kCFAbsoluteTimeIntervalSince1970.
13861
13862 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
13863 New variable.
13864 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
13865 event loop should be quit.
13866 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
13867 Quit dialog event loop if quit_dialog_event_loop is set.
13868
13869 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
13870 (Selection): New typedef. Use instead of ScrapRef.
13871 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
13872 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
13873 (mac_clear_selection): Rename from clear_scrap.
13874 (get_flavor_type_from_symbol): New argument SEL and subsume function of
13875 scrap_has_target_type. All uses changed.
13876 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
13877 (mac_selection_has_target_p): New functions.
13878 (mac_put_selection_value): Rename from put_scrap_string.
13879 (mac_get_selection_value): Rename from get_scrap_string.
13880 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
13881 (put_scrap_private_timestamp, scrap_has_target_type)
13882 (get_scrap_private_timestamp): Remove functions.
13883 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
13884 (x_own_selection, x_get_local_selection):
13885 Use mac_valid_selection_value_p.
13886 (x_own_selection): Don't use put_scrap_private_timestamp.
13887 Record OWNERSHIP-INFO into Vselection_alist instead.
13888 (x_get_local_selection): Don't check type if request is local.
13889 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
13890 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
13891
13892 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
13893
13894 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
13895 add comment explaining why.
13896
13897 2007-08-03 Richard Stallman <rms@gnu.org>
13898
13899 * fileio.c (Fvisited_file_modtime): Use make_time.
13900
13901 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
13902
13903 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
13904 build.
13905
13906 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
13907
13908 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
13909
13910 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
13911
13912 * puresize.h (BASE_PURESIZE): Increase to 1130000.
13913
13914 2007-07-30 Richard Stallman <rms@gnu.org>
13915
13916 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
13917
13918 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
13919
13920 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
13921
13922 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
13923
13924 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
13925 remote default-directory.
13926
13927 * buffer.c (mode-line-format): Update doc string.
13928
13929 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13930
13931 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
13932 scroll bar gap.
13933 (x_scroll_bar_create): Set bar->fringe_extended_p.
13934 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
13935 on frame edge. Check fringe background extension. Don't clear
13936 extended fringe background area.
13937
13938 * w32term.h (struct scroll_bar): New member fringe_extended_p.
13939 (w32_fill_area): Enclose multiple statements with do ... while (0).
13940
13941 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
13942 Extend fringe background to scroll bar gap.
13943 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
13944 Set bar->fringe_extended_p.
13945 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
13946 Put leftmost/rightmost scroll bars on frame edge. Check fringe
13947 background extension. Don't clear extended fringe background area.
13948
13949 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
13950 New member fringe_extended_p.
13951
13952 2007-07-25 Glenn Morris <rgm@gnu.org>
13953
13954 * Relicense all FSF files to GPLv3 or later.
13955
13956 * COPYING: Switch to GPLv3.
13957
13958 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
13959
13960 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
13961
13962 * data.c (Finteractive_form): Check for the presence of an
13963 `interactive-form' symbol property more thoroughly.
13964
13965 * data.c (Finteractive_form): Use an `interactive-form' property if
13966 present, analogous to the function-documentation property.
13967
13968 2007-07-24 Jason Rumney <jasonr@gnu.org>
13969
13970 * w32fns.c (x_real_positions): Get real position from OS instead of
13971 calculating it.
13972
13973 2007-07-23 Jason Rumney <jasonr@gnu.org>
13974
13975 * filelock.c (current_lock_owner): Allow for @ sign in username.
13976
13977 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
13978
13979 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
13980 remote default-directory.
13981
13982 * buffer.c (mode-line-format): Describe above case in doc string.
13983
13984 2007-07-20 Eli Zaretskii <eliz@gnu.org>
13985
13986 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
13987 Define if not defined.
13988
13989 2007-07-18 Jason Rumney <jasonr@gnu.org>
13990
13991 * w32proc.c (w32_executable_type): Handle 64 bit executables.
13992
13993 2007-07-18 Richard Stallman <rms@gnu.org>
13994
13995 * data.c (Fsetq_default): Doc fix.
13996
13997 * eval.c (Fsetq): Doc fix.
13998
13999 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
14000
14001 * coding.c (Ffind_operation_coding_system):
14002 * eval.c (For, Fand): Doc fixes.
14003 Reported by Johan Bockgård.
14004
14005 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
14006
14007 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
14008
14009 * xterm.h: Declare x_ewmh_activate_frame.
14010
14011 * xterm.c (x_ewmh_activate_frame): New function.
14012 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
14013
14014 2007-07-17 Martin Rudalics <rudalics@gmx.at>
14015
14016 * window.c (Fdisplay_buffer): If largest or LRU window is the
14017 only window, split it even if it is not eligible for splitting.
14018 This restores the original behavior broken by the 2007-07-15
14019 change.
14020
14021 2007-07-17 Glenn Morris <rgm@gnu.org>
14022
14023 * abbrev.c (abbrev_check_chars): New function.
14024 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
14025 Call abbrev_check_chars to check abbrev characters are word
14026 constituents. Doc fix.
14027
14028 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
14029
14030 * process.c (Fstart_process, Fmake_network_process)
14031 (read_process_output): Fix up last changes.
14032
14033 2007-07-16 Eli Zaretskii <eliz@gnu.org>
14034
14035 * makefile.w32-in (clean): Don't delete *~.
14036
14037 2007-07-16 Andreas Schwab <schwab@suse.de>
14038
14039 * window.c (Fdisplay_buffer): Use NILP.
14040 (Fset_window_scroll_bars): Likewise.
14041
14042 2007-07-15 Martin Rudalics <rudalics@gmx.at>
14043
14044 * window.c (window_min_size_2): New function.
14045 (window_min_size_1, size_window, Fdisplay_buffer)
14046 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
14047 windows without mode- or header-lines when window-min-height is
14048 too small.
14049 (size_window): Reset nodelete_p after testing it, following an
14050 earlier note by Kim F. Storm.
14051 (display_buffer): Do not set split_height_threshold to twice the
14052 value of window_min_height to avoid changing the value of a
14053 customizable variable. Rather explicitly check whether the
14054 height of the window that shall be splitted is at least as large
14055 as split_height_threshold.
14056 (Fwindow_full_width_p): New defun.
14057 (syms_of_window): Defsubr it.
14058
14059 * window.h: Add EXFUN for Fwindow_full_width_p.
14060
14061 2007-07-14 Jason Rumney <jasonr@gnu.org>
14062
14063 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
14064
14065 2007-07-14 Richard Stallman <rms@gnu.org>
14066
14067 * eval.c (maybe_call_debugger): New function.
14068 (find_handler_clause): Use maybe_call_debugger.
14069 Call it when the handler says `debug'.
14070 Eliminate DEBUGGER_VALUE_PTR.
14071 (Fsignal): Eliminate debugger_value.
14072 (Qdebug): New variable.
14073 (syms_of_eval): Initialize it.
14074
14075 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
14076
14077 * eval.c (Fprogn):
14078 * keyboard.c (Ftrack_mouse):
14079 * print.c (Fwith_output_to_temp_buffer):
14080 * window.c (Fsave_window_excursion): Doc fix.
14081
14082 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
14083
14084 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
14085
14086 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
14087
14088 * process.h (struct Lisp_Process): Turn slots infd, outfd,
14089 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
14090 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
14091 read_output_delay, and read_output_skip from Lisp_Objects to ints.
14092 Remove unused encoding_carryover.
14093 * process.c: Adjust all functions accordingly.
14094
14095 2007-07-12 Richard Stallman <rms@gnu.org>
14096
14097 * term.c: Include unistd.h only if HAVE_UNISTD_H.
14098
14099 2007-07-11 Jason Rumney <jasonr@gnu.org>
14100
14101 * makefile.w32-in (LIBS): Include OLE32.
14102
14103 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
14104 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
14105
14106 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
14107
14108 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
14109 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
14110 from a Lisp_Object into a bare pointer.
14111 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
14112 Adjust the code correspondingly.
14113
14114 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
14115
14116 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
14117 (term_show_mouse_face): Remove unused var `j'.
14118 (handle_one_term_event): Remove unused vars `i' and `j'.
14119 Don't cast return value of ttyname since it's not necessary.
14120
14121 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
14122
14123 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
14124 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
14125
14126 * fns.c (map_char_table): Use an array of int for `indices' rather than
14127 an array of Lisp_Objects (which are only ever integers anyway).
14128 (Fmap_char_table): Update caller.
14129 * lisp.h: Update prototype.
14130 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
14131 * fontset.c (Ffontset_info):
14132 * casetab.c (set_case_table): Update callers.
14133
14134 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
14135
14136 * keymap.c (struct accessible_keymaps_data)
14137 (struct where_is_internal_data): New structures.
14138 (accessible_keymaps_1, where_is_internal_1): Use them to change
14139 interface to adhere to the one used by map_keymap.
14140 (Faccessible_keymaps, where_is_internal): Use map_keymap.
14141 (accessible_keymaps_char_table, where_is_internal_2): Remove.
14142
14143 * keymap.h (map_keymap_function_t): More informative prototype.
14144
14145 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
14146
14147 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
14148 (looking_at_1): Don't change search_regs and last_thing_searched
14149 if `inhibit-changing-match-data' is non-nil.
14150 (string_match_1, search_buffer, set_search_regs): Likewise.
14151 (syms_of_search): Add Lisp level definition for
14152 `inhibit-changing-match-data' and set it to nil.
14153 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
14154 start and end of the match, instead of using values in search_regs.
14155
14156 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
14157
14158 * minibuf.c (Fcompleting_read): New value `confirm-only'
14159 for `require-match'.
14160
14161 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
14162
14163 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
14164 part of the 2007-06-27 change to syms_of_fileio.
14165
14166 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14167
14168 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
14169 Check WINDOWP before using XWINDOW. Consolidate return statements.
14170
14171 2007-06-27 Richard Stallman <rms@gnu.org>
14172
14173 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
14174
14175 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
14176
14177 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
14178
14179 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14180
14181 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
14182 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
14183 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
14184 (_free_internal, memalign): Use them.
14185 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
14186 Initialize to PTHREAD_MUTEX_INITIALIZER.
14187 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
14188 (morecore_nolock): Rename from morecore. All uses changed.
14189 Use only nolock versions of internal allocation functions.
14190 (_malloc_internal_nolock, _realloc_internal_nolock)
14191 (_free_internal_nolock): New functions created from
14192 _malloc_internal, _realloc_internal, and _free_internal.
14193 (_malloc_internal, _realloc_internal, _free_internal): Use them.
14194 Copy hook value to automatic variable before its use.
14195 (memalign): Copy hook value to automatic variable before its use.
14196
14197 2007-06-26 Kenichi Handa <handa@m17n.org>
14198
14199 * coding.c (Ffind_operation_coding_system): Docstring improved.
14200 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
14201
14202 2007-06-25 David Kastrup <dak@gnu.org>
14203
14204 * keymap.c (Fcurrent_active_maps): Add `position' argument.
14205 (Fwhere_is_internal): Adjust call to `current-active-maps' to
14206 cater for additional parameter.
14207
14208 * keymap.h: Adjust number of parameters to `current-active-maps'.
14209
14210 * doc.c (Fsubstitute_command_keys): Adjust call of
14211 `current-active-maps'.
14212
14213 2007-06-25 David Kastrup <dak@gnu.org>
14214
14215 * callint.c (Fcall_interactively): Make the parsing of interactive
14216 specs somewhat more readable.
14217
14218 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14219
14220 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
14221 to scroll bar gap also when bitmap fills fringe. Draw only foreground
14222 if extended background has already been filled.
14223
14224 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14225
14226 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
14227 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
14228
14229 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
14230 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
14231 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
14232 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
14233 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
14234 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
14235 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
14236 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
14237 Run timers during dialog popup.
14238 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
14239
14240 2007-06-21 Jason Rumney <jasonr@gnu.org>
14241
14242 * image.c (convert_mono_to_color_image): Swap fore and background.
14243
14244 2007-06-20 Jason Rumney <jasonr@gnu.org>
14245
14246 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
14247 (w32_free_bdf_font): Unmap memory not handle.
14248
14249 2007-06-20 Sam Steingold <sds@gnu.org>
14250
14251 * gmalloc.c (__morecore): Fix the declaration to comply with the
14252 definition.
14253
14254 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
14255
14256 * w32term.c (w32_delete_display): Remove leftover declaration.
14257 (w32_define_cursor, w32_initialize): Make static.
14258
14259 * w32.c (_wsa_errlist): Fix typo in error message.
14260 (init_environment): Ignore any environment variable from the
14261 registry having a null value.
14262
14263 2007-06-20 Glenn Morris <rgm@gnu.org>
14264
14265 * Makefile.in (LIBGIF): Default to -lgif.
14266
14267 2007-06-17 Jason Rumney <jasonr@gnu.org>
14268
14269 * w32menu.c (add_menu_item): Don't use multibyte string functions on
14270 unicode strings.
14271
14272 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
14273
14274 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
14275 Fix typo in docstring.
14276
14277 2007-06-16 Eli Zaretskii <eliz@gnu.org>
14278
14279 * w32menu.c (add_menu_item): Escape `&' characters in menu items
14280 and their keybindings.
14281
14282 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
14283
14284 * composite.c (update_compositions): Fix last fix.
14285
14286 2007-06-14 Jason Rumney <jasonr@gnu.org>
14287
14288 * w32.c (get_process_times_fn): New function pointer.
14289 (globals_of_w32): Intialize it if present in kernel32.dll.
14290 (w32_get_internal_run_time): New function.
14291
14292 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
14293
14294 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
14295
14296 * composite.c (update_compositions): Check the validness of
14297 compositions.
14298
14299 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14300
14301 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
14302 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
14303
14304 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
14305 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
14306
14307 * macgui.h (USE_MAC_TOOLBAR): New define.
14308
14309 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
14310 Return immediately unless popup is activated.
14311
14312 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
14313 background to scroll bar gap.
14314 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
14315 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
14316 scroll bars on frame edge. Check fringe background extension.
14317 Don't clear extended fringe background area.
14318 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
14319 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
14320 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
14321 [USE_MAC_TOOLBAR]: New macros.
14322 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
14323 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
14324 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
14325 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
14326 [USE_MAC_TOOLBAR]: New functions.
14327 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
14328 manually if previous repositioning has failed.
14329 (mac_handle_keyboard_event): Use precomputed event kind.
14330 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
14331 as tool bar item click. Handle mouse movement over tool bar items.
14332
14333 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
14334 toolbar_win_gravity.
14335 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
14336 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
14337 Add externs.
14338
14339 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
14340 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
14341
14342 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
14343
14344 * image.c (search_image_cache): Remove unused variable.
14345
14346 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
14347
14348 * xfns.c, xmenu.c: Link to xaw3d if available.
14349
14350 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14351
14352 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
14353 frame_foreground and frame_background.
14354
14355 * image.c (lookup_image): Save frame foreground and background colors.
14356 (search_image_cache): Check if saved and current frame colors match.
14357
14358 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
14359
14360 * regex.c (regex_compile): Remove the `regnum' counter.
14361 Use bufp->re_nsub instead. Add support for \(?N:RE\).
14362
14363 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
14364
14365 * term.c: Include intervals.h to declare Fget_text_property.
14366
14367 2007-06-10 Jason Rumney <jasonr@gnu.org>
14368
14369 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
14370
14371 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
14372
14373 * callint.c (Fcall_interactively):
14374 * editfns.c (Fdelete_and_extract_region):
14375 * fileio.c (Fread_file_name):
14376 * fns.c (Fmapconcat):
14377 * keyboard.c (cmd_error_internal):
14378 * keymap.c (Fkey_description):
14379 * lread.c (openp):
14380 * minibuf.c (read_minibuf):
14381 * search.c (wordify):
14382 * sunfns.c (sel_read):
14383 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
14384 * xfns.c (x_default_scroll_bar_color_parameter):
14385 * xmenu.c (menu_help_callback):
14386 * xselect.c (Fx_get_atom_name):
14387 * xterm.c (x_term_init): Use empty_unibyte_string.
14388
14389 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
14390
14391 * alloc.c (init_strings): Initialize canonical empty strings.
14392 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
14393 canonical empty string when the requested size is 0.
14394
14395 * emacs.c (empty_unibyte_string): Rename from empty_string.
14396 (empty_multibyte_string): New canonical empty string.
14397 (syms_of_emacs): Don't initialize empty_string.
14398
14399 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
14400 string, if appropriate.
14401 (empty_unibyte_string, empty_multibyte_string): New externs.
14402 (empty_string): Remove extern.
14403
14404 * lread.c (syms_of_lread): Use empty_unibyte_string.
14405
14406 2007-06-07 Jason Rumney <jasonr@gnu.org>
14407
14408 * s/ms-w32.h: Don't define HAVE_TZNAME.
14409
14410 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
14411
14412 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14413
14414 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
14415
14416 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
14417 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
14418
14419 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
14420 Don't call next handler.
14421 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
14422 Remove argument. Install handler to application.
14423 (set_frame_menubar): Don't change deep_p.
14424 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
14425 FRAME_OUTER_TO_INNER_DIFF_Y.
14426 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
14427 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
14428 [HAVE_DIALOGS]: New macros.
14429 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
14430 Use them.
14431 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
14432
14433 * macselect.c [MAC_OSX] (install_service_handler): Rename from
14434 init_service_handler. All callers changed. Return OSStatus value.
14435
14436 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
14437 All callers changed so as not to call SetPortWindowPort.
14438 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
14439 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
14440 mac_draw_string_common.
14441 (mac_draw_image_string_qd): Likewise.
14442 (mac_draw_string_common): Use them. Add INLINE.
14443 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
14444 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
14445 GetGlobalMouse.
14446 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
14447 and FRAME_OUTER_TO_INNER_DIFF_Y.
14448 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
14449 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
14450 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
14451 repositioning window to mac_handle_window_event.
14452 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
14453 saving window location to mac_handle_window_event
14454 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
14455 (install_menu_target_item_handler): Remove argument in extern.
14456 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
14457 Also accept command events.
14458 (do_keystroke): New function created from XTread_socket.
14459 (init_command_handler): Remove functions.
14460 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
14461 and save window location by kEventWindowShowing and kEventWindowHiding
14462 handlers here. Don't call next handler for window state change and
14463 focus events.
14464 (mac_handle_application_event, mac_handle_keyboard_event)
14465 [TARGET_API_MAC_CARBON]: New functions.
14466 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
14467 kEventWindowShowing and kEventWindowHiding events. Move installation
14468 of mouse, font, text input and menu target item handlers to
14469 install_application_handler.
14470 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
14471 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14472 New function.
14473 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14474 Register it.
14475 (XTread_socket) [TARGET_API_MAC_CARBON]:
14476 Consolidate SendEventToEventTarget calls.
14477 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
14478 Move application activation handler to mac_handle_application_event.
14479 Move keyboard handler to mac_handle_keyboard_event.
14480 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
14481 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
14482 init_command_handler. Call install_application_handler.
14483
14484 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
14485 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
14486
14487 2007-06-07 Glenn Morris <rgm@gnu.org>
14488
14489 * emacs.c (main): Use `emacs-copyright' in --version output.
14490
14491 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
14492
14493 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
14494
14495 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14496
14497 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
14498
14499 * macgui.h: Replace WindowPtr with WindowRef.
14500
14501 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
14502 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
14503 Replace ControlHandle with ControlRef.
14504 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
14505
14506 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
14507 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
14508 Replace ControlHandle with ControlRef.
14509 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
14510 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
14511
14512 * macterm.h (struct scroll_bar): Rename member control_handle_low
14513 and control_handle_high to control_ref_low and control_ref_high.
14514 All uses changed.
14515 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
14516 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
14517 respectively. All uses changed.
14518 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
14519 (install_window_handler, remove_window_handler): Replace WindowPtr
14520 with WindowRef in externs.
14521
14522 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
14523
14524 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
14525
14526 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
14527
14528 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
14529
14530 * frame.c (Fmouse_position, Fmouse_pixel_position):
14531 Condition on HAVE_GPM too.
14532
14533 * term.c (term_mouse_highlight): Remove unused variables.
14534 (Fterm_open_connection): Set gpm_zerobased to 1.
14535 (term_mouse_movement, term_mouse_click, handle_one_term_event):
14536 Use zero based co-ordinates.
14537 (handle_one_term_event): Report a drag as mouse movement too.
14538
14539 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
14540
14541 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
14542
14543 * image.c (search_image_cache): New function. Require background
14544 color match if background color is unspecified in the image spec.
14545 (uncache_image, lookup_image): Use it.
14546
14547 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
14548
14549 * window.c (Fshrink_window): Reflow docstring.
14550
14551 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
14552
14553 * Version 22.1 released.
14554
14555 2007-06-01 Richard Stallman <rms@gnu.org>
14556
14557 * xfns.c (x_encode_text): Add GCPRO.
14558
14559 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14560
14561 * xfns.c (x_set_name_internal): Save encoded name before
14562 x_encode_text in case string data is relocated.
14563
14564 2007-05-31 Richard Stallman <rms@gnu.org>
14565
14566 * buffer.c (syms_of_buffer): Doc fix.
14567
14568 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
14569
14570 * sysdep.c (init_sys_modes): Add rather than replace with
14571 O_NONBLOCK.
14572
14573 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
14574 term_mouse_moveto.
14575
14576 * termhooks.h (term_mouse_moveto): New extern.
14577
14578 * term.c (mouse_face_window): Rename...
14579 (Qmouse_face_window): ...to this.
14580 (term_show_mouse_face, term_clear_mouse_face)
14581 (term_mouse_highlight): Use Qmouse_face_window.
14582 (term_mouse_moveto): New function.
14583 (term_mouse_position): Make it work.
14584 (syms_of_term): Uncomment assignment to mouse_position_hook.
14585 Staticpro Qmouse_face_window.
14586
14587 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14588
14589 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
14590 around current_column call.
14591
14592 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
14593
14594 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
14595 * xdisp.c (next_element_from_buffer):
14596 * window.c (delete_window):
14597 * term.c (term_mouse_highlight):
14598 * msdos.c (getdefdir):
14599 * macterm.c (mac_create_bitmap_from_bitmap_data)
14600 (init_font_name_table):
14601 * fns.c (Fsxhash):
14602 * data.c (Fmake_local_variable):
14603 * ccl.c (ccl_driver): Likewise.
14604
14605 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14606
14607 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
14608 Call mac_wakeup_from_rne on window size change.
14609
14610 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
14611
14612 * image.c (uncache_image): Fix typo.
14613
14614 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
14615
14616 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
14617
14618 2007-05-22 Richard Stallman <rms@gnu.org>
14619
14620 * xterm.c (x_connection_closed): Remove NO_RETURN.
14621
14622 2007-05-22 Martin Rudalics <rudalics@gmx.at>
14623
14624 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
14625
14626 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
14627
14628 * image.c (uncache_image): New function.
14629 (Fimage_refresh): New function.
14630
14631 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
14632
14633 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
14634
14635 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
14636
14637 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
14638 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
14639
14640 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
14641
14642 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
14643 conditional on [HAVE_GPM_H].
14644
14645 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
14646
14647 * syntax.c (skip_chars): Update syntax-table only after we checked that
14648 the new location is valid.
14649
14650 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14651
14652 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
14653 mac_get_window_bounds.
14654
14655 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
14656
14657 * Makefile.in (LIBGPM): Allow it to be set from configure.
14658 If set then link Emacs with it.
14659
14660 * config.in: Regenerate.
14661
14662 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
14663 New externs.
14664
14665 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
14666 Include gpm.h.
14667 (handle_one_term_event, term_gpm): New externs.
14668
14669 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
14670 and allow it to be interrupted by SIGIO.
14671
14672 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
14673 (wait_reading_process_output): Wait on gpm_fd too.
14674 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
14675 (add_gpm_wait_descriptor_called_flag): New variable.
14676 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
14677
14678 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
14679 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
14680 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
14681 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
14682 (make_lispy_event): Add case GPM_CLICK_EVENT.
14683 (read_avail_input): Handle mouse input.
14684
14685 * term.c (write_glyphs_with_face): New function.
14686 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
14687 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
14688 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
14689 (mouse_face_face_id, term_gpm, pos_x, pos_y)
14690 (last_mouse_x, last_mouse_y): New variables.
14691 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
14692 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
14693 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
14694 (Fterm_close_connection): New functions.
14695 (term_init): Initialise mouse_face_window.
14696
14697 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
14698
14699 * xdisp.c (redisplay_window): If first window line is a
14700 continuation line, recompute the new window start instead of
14701 recentering.
14702
14703 2007-05-18 Glenn Morris <rgm@gnu.org>
14704
14705 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
14706 Suggested by Alfred M. Szmidt <ams@gnu.org>.
14707
14708 2007-05-17 Glenn Morris <rgm@gnu.org>
14709
14710 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
14711
14712 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14713
14714 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
14715 dead key repeat and up events.
14716
14717 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
14718
14719 * image.c (pbm_load): Check image size for monochrome pbm.
14720
14721 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
14722
14723 * xterm.c (XTread_socket): Revert last change.
14724
14725 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
14726
14727 * image.c (pbm_load): Correctly check image size for greyscale pbm.
14728
14729 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
14730
14731 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
14732
14733 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
14734 mixup (YAILOM).
14735
14736 2007-05-07 Andreas Schwab <schwab@suse.de>
14737
14738 * keymap.c (Flookup_key): Fix typo in last change.
14739
14740 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
14741
14742 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
14743 mapping for unibyte strings.
14744
14745 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14746
14747 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
14748 (Fx_popup_dialog) [MAC_OSX]: Likewise.
14749
14750 2007-04-29 Richard Stallman <rms@gnu.org>
14751
14752 * insdel.c (replace_range): For undo, record insertion first.
14753
14754 2007-04-29 Andreas Schwab <schwab@suse.de>
14755
14756 * lisp.h (VECSIZE): Use OFFSETOF.
14757
14758 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14759
14760 * xdisp.c (try_window_reusing_current_matrix): Fix number of
14761 disabled lines.
14762
14763 2007-04-28 Richard Stallman <rms@gnu.org>
14764
14765 * lread.c (read_escape): In a string, \s is always space.
14766
14767 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
14768
14769 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
14770
14771 * gtkutil.c (xg_update_menubar, create_menus): Create empty
14772 submenu for menu bar items.
14773
14774 See ChangeLog.10 for earlier changes.
14775
14776 ;; Local Variables:
14777 ;; coding: utf-8
14778 ;; add-log-time-zone-rule: t
14779 ;; bug-reference-url-format: "http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=%s"
14780 ;; End:
14781
14782 Copyright (C) 2007, 2008 Free Software Foundation, Inc.
14783
14784 This file is part of GNU Emacs.
14785
14786 GNU Emacs is free software: you can redistribute it and/or modify
14787 it under the terms of the GNU General Public License as published by
14788 the Free Software Foundation, either version 3 of the License, or
14789 (at your option) any later version.
14790
14791 GNU Emacs is distributed in the hope that it will be useful,
14792 but WITHOUT ANY WARRANTY; without even the implied warranty of
14793 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14794 GNU General Public License for more details.
14795
14796 You should have received a copy of the GNU General Public License
14797 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
14798
14799 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40