1 2010-08-13 Jan Djärv <jan.h.d@swipnet.se>
3 * doc.c (Fsnarf_documentation): Initialize skip_file before
6 2010-08-09 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
8 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK): New
10 (HAVE_TERMIO): Remove.
12 2010-08-06 Kenichi Handa <handa@m17n.org>
14 * charset.c: Include <stdlib.h>
15 (struct charset_sort_data): New struct.
16 (charset_compare): New function.
17 (Fsort_charsets): New funciton.
18 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
20 * coding.c (decode_coding_iso_2022): Fix checking of dimension
21 number in CTEXT extended segment.
23 2010-08-01 Juanma Barranquero <lekktu@gmail.com>
25 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
26 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
28 2010-07-30 Juanma Barranquero <lekktu@gmail.com>
30 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
31 (Fhash_table_size): Fix typos in docstrings.
32 (Fmake_hash_table): Doc fix.
34 2010-07-28 Juanma Barranquero <lekktu@gmail.com>
36 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
39 2010-07-27 Ken Brown <kbrown@cornell.edu>
41 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
44 2010-07-25 Christoph Scholtes <cschol2112@gmail.com>
46 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
48 2010-07-22 Christoph Scholtes <cschol2112@gmail.com>
50 * window.c (Fwindow_height): Doc fix (bug#6518).
52 2010-07-21 Juanma Barranquero <lekktu@gmail.com>
54 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
56 2010-07-17 Jan Djärv <jan.h.d@swipnet.se>
58 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
59 is related to the menu bar (Bug#6499).
61 2010-07-14 Jan Djärv <jan.h.d@swipnet.se>
63 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
65 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
67 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
68 i.e. don't put back ButtonRelease (Bug#6608).
70 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
71 instead of Window. Call xg_event_is_for_menubar when
74 * gtkutil.h (xg_event_is_for_menubar): Declare.
76 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
78 2010-07-14 Eli Zaretskii <eliz@gnu.org>
80 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
81 when it's the same as the old foreground. (Bug#6609)
83 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
85 * xfaces.c (realize_face): Garbage the frame if a face is removed
88 2010-07-05 Andreas Schwab <schwab@linux-m68k.org>
90 * keyboard.c: Remove duplicate <setjmp.h>.
91 (read_key_sequence): Remove volatile qualifiers.
93 2010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
95 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
96 (struct glyph_row): New members left_fringe_offset and
99 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
101 * w32term.c (w32_draw_fringe_bitmap): Likewise.
102 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
104 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
105 Take account of bitmap offset.
106 (draw_window_fringes): Take account of window vscroll.
107 (update_window_fringes): Likewise. Extend top-aligned top indicator
108 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
109 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
110 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
112 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
114 * w32fns.c (Qtooltip): Declare.
115 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
117 2010-07-03 Jan Djärv <jan.h.d@swipnet.se>
119 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
120 grab on just Press (Bug#6499).
122 2010-07-02 Chong Yidong <cyd@stupidchicken.com>
124 * frame.c (Qtooltip): New var.
125 (delete_frame): Use it. Fix faulty if statement. Don't update
126 mode line for tooltip frames. Suggested by Martin Rudalics.
128 * xfns.c (x_create_tip_frame):
129 * w32fns.c (x_create_tip_frame): Use it.
131 2010-06-30 Naohiro Aota <naota@elisp.net> (tiny change)
133 * xftfont.c (xftfont_open): Check font width one by one also when
136 * ftfont.c (ftfont_open): Ditto.
138 2010-06-26 Andreas Schwab <schwab@linux-m68k.org>
140 * alloc.c (Fmake_byte_code): Don't access undefined argument
143 2010-06-25 Chong Yidong <cyd@stupidchicken.com>
145 * xdisp.c (next_element_from_image): Ensure that after-strings are
146 read the next time we hit handle_stop (Bug#1336).
148 2010-06-23 Andreas Schwab <schwab@linux-m68k.org>
150 * lread.c (read1): Signal error if #s is not followed by paren.
152 2010-06-19 Chong Yidong <cyd@stupidchicken.com>
154 * image.c (free_image): Mark frame as garbaged (Bug#6426).
156 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
158 2010-06-15 Glenn Morris <rgm@gnu.org>
160 * editfns.c (Fbyte_to_string): Pacify compiler.
162 2010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
164 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
165 Check `object's type before accessing its guts.
167 2010-06-08 Andreas Schwab <schwab@linux-m68k.org>
169 * minibuf.c (Fall_completions): Add more checks.
171 2010-06-08 Juanma Barranquero <lekktu@gmail.com>
173 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
175 2010-06-03 Andreas Schwab <schwab@linux-m68k.org>
177 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
180 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
182 * ccl.c (Fccl_program_p): Fix typo in docstring.
184 2010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
186 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
189 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
191 * xdisp.c (redisplay_window): After redisplay, check if point is
192 still valid before setting it (Bug#6177).
194 2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
196 * s/netbsd.h: If terminfo is found, use it in preference to
197 termcap. (Bug#6190) [Backport from trunk]
199 2010-05-20 Kevin Ryde <user42@zip.com.au>
201 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
202 (Voverriding_terminal_local_map, Vsystem_key_alist)
203 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
205 2010-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
207 * editfns.c (Fbyte_to_string): New function.
209 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
211 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
212 prevent stack overflow if number of arguments is too large
215 2010-05-11 Eli Zaretskii <eliz@gnu.org>
217 * makefile.w32-in ($(BLD)/w32fns.$(O)): Depend on $(SRC)/w32.h.
219 * w32fns.c: Include w32.h.
220 (Fw32_shell_execute): Decode the error message before passing it
221 to `error'. (Bug#6126)
223 2010-05-11 Karel Klic <kklic@redhat.com>
225 * ftfont.c: Fix incorrect parentheses of #if condition for
226 definining M17N_FLT_USE_NEW_FEATURE.
228 2010-05-07 Chong Yidong <cyd@stupidchicken.com>
230 * Version 23.2 released.
232 2010-04-30 Andreas Schwab <schwab@linux-m68k.org>
234 * composite.c (autocmp_chars): Save point as marker before calling
235 auto-composition-function (Bug#5984).
237 * lisp.h (restore_point_unwind): Add prototype.
239 * fileio.c (restore_point_unwind): Remove static attribute.
241 2010-04-23 Kenichi Handa <handa@m17n.org>
243 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
244 new feature of libotf and m17n-flt.
245 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]: Call
246 OTF_check_features even if no specific feature is given.
247 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
248 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
249 that OUT is NULL. Use OTF_drive_gsub_with_log and
250 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
252 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
253 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]: Setup
254 mflt_enable_new_feature and mflt_try_otf.
256 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
258 * dired.c (Ffile_attributes): Fix typo in docstring.
260 2010-04-13 Adrian Robert <Adrian.B.Robert@gmail.com>
262 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
263 NSInteger (Bug#5811).
265 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
267 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
268 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
270 2010-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
272 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
274 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
276 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
277 FRAME_LINE_TO_PIXEL_Y.
279 * xterm.c (x_set_window_size_1): Don't add border_width/height to
282 2010-04-05 Chong Yidong <cyd@stupidchicken.com>
284 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
285 terminal frames (Bug#5837).
287 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
289 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
290 * nsterm.h: Fix prototype.
292 2010-03-31 Eli Zaretskii <eliz@gnu.org>
294 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
295 in this function. (Bug#5703)
297 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
299 * nsterm.h: Fix last change.
301 2010-03-30 Bernhard Herzog <bh@intevation.de> (tiny change)
303 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
305 2010-03-30 Jan Djärv <jan.h.d@swipnet.se>
307 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
308 invisible (Bug#5766).
310 2010-03-29 Adrian Robert <adrian.b.robert@gmail.com>
312 * xdisp.c (x_consider_frame_title, update_window_cursor): Remove
313 HAVE_NS conditionals.
314 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
316 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
317 filename for the title.
318 (ns_set_doc_edited): Do nothing if the selected window is a
321 * nsterm.h: Add prototypes for ns_set_name_as_filename and
324 * nsterm.m: Remove unneeded prototype.
326 2010-03-28 Glenn Morris <rgm@gnu.org>
328 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
329 in the DOC file. (Bug#5336)
331 2010-03-24 Chong Yidong <cyd@stupidchicken.com>
333 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
335 2010-03-20 Jan Djärv <jan.h.d@swipnet.se>
337 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
339 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
341 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
343 2010-03-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
345 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
348 2010-03-16 Kenichi Handa <handa@m17n.org>
350 * coding.c (decode_coding_ccl): Fix previous change for the
352 (encode_coding_ccl): Don't setup ccl program here. Fix for the
353 case that the output buffer is fullfilled.
354 (encode_coding): Setup ccl program here.
356 2010-03-15 Andreas Politz <politza@fh-trier.de> (tiny change)
358 * editfns.c (Fformat): Account for string precision when computing
359 field width (Bug#5710).
361 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
363 Make it possible to C-g in a tight bytecode loop again (bug#5680).
364 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
365 (QUIT): Use it to consolidate code and remove redundancy.
366 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
368 * regex.c (regex_compile): Setup gl_state as well.
370 * syntax.c (skip_chars): Setup gl_state (bug#3823).
371 (in_classes): Use CONSP before XCAR/XCDR.
373 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
375 * keymap.c (Fwhere_is_internal): Use Fequal to compare
376 definitions, so that keyboard macros are correctly handled
379 2010-03-02 Eli Zaretskii <eliz@gnu.org>
381 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
382 text that could be relocated inside the call to emacs_mule_char.
383 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
384 (CODING_DECODE_CHAR): Add a comment describing its purpose.
386 2010-03-02 Kenichi Handa <handa@m17n.org>
388 * character.c (parse_str_as_multibyte): Fix handling of the
389 multibyte form of raw-bytes.
390 (str_as_multibyte): Likewise.
392 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
395 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
397 * charset.c (load_charset_map_from_file)
398 (load_charset_map_from_vector): Zero out allocated
399 charset_map_entries before using them.
401 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
403 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
405 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
407 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
408 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
410 2010-02-26 Kenichi Handa <handa@m17n.org>
412 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
414 * xdisp.c (reseat_to_string): Fix previous change.
416 2010-02-26 David Reitter <david.reitter@gmail.com>
418 * nsfont.m (nsfont_draw): ns_antialias_text should be a
419 Lisp_Object (Bug#4736).
421 2010-02-25 Kenichi Handa <handa@m17n.org>
423 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
425 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
427 * xterm.c (XTflash): Move declarations before statements.
429 * gtkutil.c (xg_get_gdk_display): Remove (unused).
430 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
431 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
432 (xg_create_tool_bar): Remove unused variables.
433 (x_wm_set_size_hint): Move declarations before statements.
434 (xg_create_frame_widgets): Remove variable grav.
436 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
438 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
440 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
442 * term.c (fatal): Add a final \n if needed (bug#5596).
444 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
446 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
448 2010-02-18 Glenn Morris <rgm@gnu.org>
450 * callint.c (Finteractive): Doc fix.
452 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
454 * coding.c (record_conversion_result):
455 Handle CODING_RESULT_INSUFFICIENT_DST.
456 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
457 memory allocation error.
459 2010-02-17 Kenichi Handa <handa@m17n.org>
461 * coding.c (decode_coding_ccl): Don't setup ccl program here.
462 Fix for the case that the output buffer is fullfilled.
463 (decode_coding): Setup ccl program here. Keep looping when the
464 decoder stopped because the output buffer is
465 fullfilled (bug#5534).
467 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
469 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
471 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
473 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
476 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
478 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
480 (ice_connection_closed): New function.
481 (x_session_check_input, smc_die_CB, ice_io_error_handler)
482 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
483 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
485 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
488 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
490 * nsfont.m (nsfont_open): The system's value for the font descent
491 is negative, so round it down to avoid clipping.
493 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
495 * charset.c (load_charset_map_from_file)
496 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
497 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
499 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
501 * charset.c (load_charset_map_from_file): Allocate large
502 charset_map_entries structure on the heap rather than the stack.
505 2010-01-31 Kenichi Handa <handa@m17n.org>
507 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
508 size in NAME is invalid, return -1 (Bug#5396).
510 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
512 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
513 <deactivated@gmail.com> (Bug#3605).
515 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
517 * fileio.c (Frename_file): Correctly rename symlinks to
518 directories (Bug#5496).
520 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
522 * nsterm.m (ns_ring_bell): Handle visible bell like X.
524 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
526 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
528 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
530 * frame.c (DEFAULT_ROWS): Change default to 35.
532 * xfns.c (x_default_font_parameter): Change default XFT font to
533 monospace-10 (Bug#3643).
535 2010-01-29 Eli Zaretskii <eliz@gnu.org>
537 * w32inevt.c (key_event): Remove unnecessary comparison of
538 event->uChar.AsciiChar with 128.
540 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
542 * fileio.c (Frename_file): Fix last change (Bug#5487).
544 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
546 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
548 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
550 * xfns.c (Fx_create_frame): Remove window size matching code from
552 (x_get_current_desktop, x_get_desktop_workarea): Remove.
554 2010-01-27 Jason Rumney <jasonr@gnu.org>
556 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
557 (key_event): Use unicode for characters 128 and higher (Bug#4567).
559 2010-01-27 Kenichi Handa <handa@m17n.org>
561 * regex.c (analyse_first): Fix setting of fastmap for unibyte
562 pattern string (Bug#4209).
564 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
566 * fileio.c (Frename_file): Call copy-directory and
567 delete-directory for directories, in order to handle cross-device
570 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
572 * xfns.c (Fx_create_frame): If frame height is too big, try
573 sizes 24 and 10. Bug #3643.
575 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
577 Try and fix bug#788, hopefully for real this time.
578 * keymap.c (shadow_lookup): Add `remap' arg.
579 (describe_map, describe_vector): Update calls to shadow_lookup.
580 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
581 `remapped' so this flag is applicable to `sequence'. Be careful to
582 perform remapping during shadow_lookup check of remapped_sequences.
584 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
586 * image.c (png_load): Use png_sig_cmp instead of the obsolete
587 png_check_sig, which has been removed in libpng 1.4.
589 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
591 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
592 lacks this header file).
594 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
596 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
599 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
601 * lisp.h (make_pure_string): String pointer arg now points to const.
603 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
604 args now point to const.
606 2010-01-22 Eli Zaretskii <eliz@gnu.org>
608 * lread.c (Fload): Don't treat files without .elc extension as
609 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
612 2010-01-20 Kenichi Handa <handa@m17n.org>
614 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
615 treat the source as actual byte sequence.
617 2010-01-19 Alan Mackenzie <acm@muc.de>
619 Fix spurious before-change-functions invocation from (insert ?\n).
620 * textprop.c (set_text_properties): Rename parameter
621 `signal_after_change_p' to `coherent_change_p', and make the
622 invocation of `modify_region' conditional on it.
624 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
626 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
628 (syms_of_xsettings): Declare xft-settings.
630 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
632 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
634 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
636 * xterm.c (event_handler_gdk): Block input (Bug#5037).
638 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
640 * emacs.c (standard_args): Adjust arg priorities to reflect how
641 they are processed in startup.el.
643 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
645 * Makefile.in (lisp, shortlisp): Update.
647 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
649 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
650 code, link the new kboard into all_kboard before running Lisp code,
651 and protect the new terminal with GCPRO (Bug#5365).
652 (x_term_init): Remove unused var `atom'.
653 (x_delete_display, x_delete_terminal): Remove unused var `i'.
655 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
657 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
658 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
659 to find out usable size of the desktop. Don't make frames larger than
662 2010-01-15 Kenichi Handa <handa@m17n.org>
664 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
666 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
668 * nsterm.m (Qnone): Define.
670 * nsfns.m (Qnone): Move definition to nsterm.m.
672 2010-01-14 Kenichi Handa <handa@m17n.org>
674 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
677 2010-01-14 Kenichi Handa <handa@m17n.org>
679 Make auto-composition work on all buffers even if they are
682 * composite.c (Vauto_composition_mode): New variable.
683 (composition_compute_stop_pos): Check Vauto_composition_mode
684 instead of Vauto_composition_function.
685 (composition_adjust_point, Ffind_composition_internal): Likewise.
686 (syms_of_composite): Declare Lisp variable
687 "auto-composition-mode" here.
689 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
691 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
692 during call to vendor-specific-keysyms (Bug#5365).
694 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
696 * keyboard.c (input_available_signal) [SYNC_INPUT]:
697 Call SIGNAL_THREAD_CHECK (Bug#5333).
699 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
700 Call SIGNAL_THREAD_CHECK.
702 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
704 Try to fix bug#5314. This is probably not the final word, tho.
705 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
706 recent-auto-save-p as a side-effect.
707 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
708 * buffer.c (Fkill_buffer, reset_buffer):
709 * editfns.c (Fsubst_char_in_region):
710 * fileio.c (Finsert_file_contents, Fdo_auto_save)
711 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
713 2010-01-13 Kenichi Handa <handa@m17n.org>
715 Display buffer name, etc. in mode line by composing correctly.
717 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
719 (display_mode_element): Adjust for the change of
720 decode_mode_spec and display_line.
721 (decode_mode_spec): Change arg MULTIBYTE to STRING.
722 (display_string): Handle the case that STRING is non-null and
723 LISP_STRING is not nil.
725 * xterm.c (x_draw_composite_glyph_string_foreground):
726 Pay attention to s->face->overstrike.
728 * composite.c (composition_reseat_it): Don't check PT if STRING is
731 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
733 * keyboard.c (read_char): Don't apply previous change when current
734 buffer is unchanged by command execution.
736 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
738 * keyboard.c (read_char): Return after executing from special map.
740 2010-01-12 Glenn Morris <rgm@gnu.org>
742 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
743 bug-gnu-emacs rather than emacs-pretest-bug.
745 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
747 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
748 initializing the Lisp variables that depend on them.
750 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
752 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
753 Clear areas that will not be updated after change of menu bar lines.
754 Clear the menu bar window's current matrix when the window gets empty.
756 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
758 * intervals.h, textprop.c (extend_property_ranges): Return value
759 and args changed. Discard properties that begin at or after the
762 * editfns.c (Fformat): Caller changed.
764 * nsterm.m (ns_set_default_prefs): Delete function.
765 (syms_of_nsterm): Initialize ns_command_modifier,
766 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
767 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
769 * xdisp.c (pos_visible_p): Check for invisible text at the correct
772 2010-01-09 Eli Zaretskii <eliz@gnu.org>
774 * editfns.c (Ffloat_time): Doc fix.
776 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
778 * xfns.c (Fx_create_frame): Don't create frame larger than display
781 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
783 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
784 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
785 windows above internal border.
787 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
788 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
789 windows above internal border.
791 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
792 tool bar windows specially.
794 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
796 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
798 (XTflash): Take account of menu bar height.
800 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
803 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
805 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
806 also be true before we can return early (bug #5339).
808 2010-01-06 David Reitter <david.reitter@gmail.com>
810 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
811 (Fns_display_usable_bounds): Rewrite, computing bounds properly
814 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
816 * font.c (font_open_entity): Enable chache and call cached_font_ok
817 for the driver if defined.
818 (QCuser_spec): New symbol.
819 (font_spec_from_name): Save name as user-spec.
820 (font_load_for_lface): Keep user-spec instead of name.
821 (font_open_by_name): Save name as user-spec.
822 (syms_of_font): Initialize QCuser_spec.
823 (font_clear_prop): Clear name if it exists in font (bug#5157).
825 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
826 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
827 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
829 * font.h (struct font_driver): Add cached_font_ok.
831 * xterm.c (x_clear_frame): Queue draw for scroll bars.
833 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
835 * xterm.c (x_new_font): Move code for setting rows/cols before
837 (x_set_window_size): ... to here. Bug #2568.
839 * gtkutil.c (xg_clear_under_internal_border): New function.
840 (xg_frame_resized, xg_frame_set_char_size):
841 Call xg_clear_under_internal_border.
842 (xg_update_scrollbar_pos): Clear under old scroll bar position.
844 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
846 * keyboard.c (read_key_sequence): Catch keyboard switch after
847 making a new tty frame (Bug#5095).
849 2010-01-05 Kenichi Handa <handa@m17n.org>
851 * fontset.c (fontset_find_font): Fix getting the frame pointer.
853 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
855 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
856 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
857 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
859 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
861 * dbusbind.c (xd_add_watch): Improve debug message.
862 (xd_remove_watch): Improve debug message. If DATA is the session
863 bus, unset D-Bus session environment.
864 (Fdbus_init_bus): Pass the bus as argument to
865 dbus_connection_set_watch_functions. (Bug#5283)
867 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
869 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
871 * lread.c (syms_of_lread): Make it clearer that these are the
872 names of loaded files (Bug#5068).
874 * eval.c (run_hook_with_args): Handle the case where the global
875 value has the obsolete single-function form (Bug#5026).
877 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
879 * minibuf.c (Fall_completions): Minor optimization.
881 2009-12-26 Eli Zaretskii <eliz@gnu.org>
883 * .gdbinit (pgx): Fix display of composite glyphs.
884 Display cmp.from and cmp.to as well.
885 (pitx): Fix last change.
887 2009-12-25 Kenichi Handa <handa@m17n.org>
889 * composite.h (composition_adjust_point): Update prototype.
891 * composite.c (composition_reseat_it): Don't make a composition
893 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
894 composable characters.
895 (composition_adjust_point): New arg NEW_PT. Callers changed.
897 * keyboard.c (command_loop_1): Force redisplay if the last point
898 was within a composition.
899 (adjust_point_for_property): Don't adjust point for automatic
900 composition when called after buffer modification.
902 2009-12-19 Eli Zaretskii <eliz@gnu.org>
904 * .gdbinit (pitx): Don't use enum names, use their values.
905 Remove reference to non-existing value GET_FROM_COMPOSITION.
906 (pgx): Don't use enum names, use their values.
907 (pitmethod): New helper command.
908 (pitx): Use it to display iteration method.
909 (pgrowit): New command.
911 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
913 Update dependencies in Makefile.in.
915 * Makefile.in (alloc.o): Depend on termhooks.h.
916 (atimer.o): Depend on blockinput.h.
917 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
919 (callint.o): Depend on systime.h, coding.h, and composite.h.
920 (callproc.o): Depend on buffer.h.
921 (casefiddle.o): Don't depend on charset.h.
922 (casetab.o): Depend on character.h.
923 (ccl.o): Depend on composite.h.
924 (chartab.o): Depend on ccl.h.
925 (cm.o): Depend on dispextern.h.
926 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
927 (coding.o): Don't depend on $(INTERVALS_H).
928 (composite.o): Don't depend on dispextern.h explicitly (it's in
929 $(INTERVALS_H)). Depend on ccl.h.
930 (data.o): Depend on systime.h, coding.h, composite.h,
931 dispextern.h, font.h, and ccl.h.
932 (dired.o): Depend on composite.h.
933 (dispnew.o): Depend on coding.h. Don't depend explicitly on
934 composite.h (it's in $(INTERVALS_H)).
935 (doc.o): Depend on systime.h, coding.h, and composite.h.
936 (editfns.o): Don't depend explicitly on dispextern.h.
937 (emacs.o): Depend on frame.h and coding.h.
938 (eval.o): Depend on coding.h, composite.h, and xterm.h.
939 (fileio.o): Depend on frame.h and commands.h. Don't depend
940 explicitly on dispextern.h.
941 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
943 (fns.o): Don't depend on termhooks.h.
944 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
945 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
946 coding.h, $(INTERVALS_H), window.h, xterm.h.
947 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
948 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
949 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
950 fontset.h, ccl.h, and ftfont.h.
951 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
952 (gtkutil.o): Depend on dispextern.h and composite.h.
953 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
954 termhooks.h, and ccl.h.
955 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
956 (intervals.o): Depend on systime.h and coding.h.
957 (keyboard.o): Depend on composite.h and coding.h.
958 (keymap.o): Depend on coding.h and frame.h.
959 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
960 (macros.o): Depend on systime.h, coding.h, and composite.h.
961 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
963 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
964 dispextern.h explicitly.
965 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
966 Don't depend explicitly on dispextern.h and composite.h.
967 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
968 (regex.o): Don't depend on charset.h.
969 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
970 (search.o): Don't depend explicitly on composite.h.
971 (sound.o): Depend on atimer.h and systime.h.
972 (syntax.o): Don't depend explicitly on composite.h.
973 (sysdep.o): Depend on coding.h and composite.h.
974 (term.o): Depend on xterm.h and buffer.h.
975 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
976 (textprop.o): Don't depend on dispextern.h explicitly.
977 (undo.o): Depend on dispextern.h.
978 (window.o): Depend on coding.h and termhooks.h. Don't depend on
979 dispextern.h and composite.h explicitly.
980 (xdisp.o): Depend on ccl.h.
981 (xfaces.o): Depend on coding.h and ccl.h.
982 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
983 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
984 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
986 (xgselect.o): New dependency.
987 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
988 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
989 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
990 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
991 (xsmfns.o): Depend on frame.h and dispextern.h.
992 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
995 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
997 * font.c (Fclear_font_cache): Pass correct cache argument to
1000 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
1002 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
1005 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
1007 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
1008 calling file-remote-p. Reported by Jim Meyering.
1010 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
1012 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
1013 avoid compiler warnings. (Bug #5217)
1015 2009-12-14 Kenichi Handa <handa@m17n.org>
1017 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
1020 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
1022 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
1025 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
1027 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
1028 Xatom_net_window_type.
1030 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
1031 Xatom_net_window_type.
1033 * xterm.c (my_log_handler): New function.
1034 (x_term_init): Set my_log_handler as log handler during gtk_init
1035 so we can filter out buggy messages. (Bug #5120).
1037 * xterm.c (xg_scroll_callback): Parameter list changed,
1038 use parameter GtkScrollType to determine scroll/line/page.
1039 Only allow dragging if a button < 4 is grabbed (bug #5177).
1040 (xg_end_scroll_callback): New function.
1041 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
1042 xg_create_scroll_bar.
1044 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
1045 (scroll_end_callback): Remove.
1046 (xg_create_scroll_bar): Add parameter end_callback, bind it to
1047 button-release-event. Replace value-changed event with change-value,
1049 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
1052 * gtkutil.h (XG_LAST_SB_DATA): Remove.
1053 (xg_create_scroll_bar): Add GCallback end_callback.
1055 * xftfont.c (QClcdfilter): New variable.
1056 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
1057 (syms_of_xftfont): Initialize QClcdfilter.
1059 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1061 * xsettings.c (struct xsettings): Add member seen.
1062 (parse_xft_settings): Update member seen with what we have read.
1063 Return non-zero if Xft-settings have been parsed, 0 otherwise.
1064 (apply_xft_settings): Only update Xft settings with what member seen
1067 2009-12-12 Eli Zaretskii <eliz@gnu.org>
1069 * dispextern.h (struct text_pos): Use EMACS_INT;
1070 (struct glyph): Use EMACS_INT for charpos.
1071 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
1072 region_beg_charpos, region_end_charpos,
1073 redisplay_end_trigger_charpos, and also for
1074 iterator_stack_entry.end_charpos and
1075 iterator_stack_entry.stop_charpos.
1077 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1079 * gtkutil.c (scroll_end_callback): New function (bug #5177).
1080 (xg_create_scroll_bar): Call scroll_end_callback on button release
1082 (xg_event_is_for_scrollbar): != replaced with ==.
1084 2009-12-12 Kenichi Handa <handa@m17n.org>
1086 * ftfont.c (struct ftfont_info): New member matrix.
1087 (ftfont_open): Setup xftfont_info->matrix.
1088 (MFLTFontFT): New member matrix.
1089 (FLOOR, CEIL, ROUND): New macros.
1090 (ftfont_get_metrics): Handle matrix transformation.
1091 (ftfont_shape_by_flt): New arg matrix. Callers changed.
1093 * xftfont.c (struct xftfont_info): New member matrix.
1094 (xftfont_open): Setup xftfont_info->matrix.
1096 2009-12-10 Kenichi Handa <handa@m17n.org>
1098 * xdisp.c (append_space_for_newline): Consider face-remapping.
1100 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
1102 * xsettings.c: Include "keyboard.h".
1104 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
1106 Fix implicit function declarations.
1107 * cmds.c: Include "frame.h".
1108 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
1109 * frame.h: Move declaration of delete_frame outside of
1112 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
1114 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
1116 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
1119 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
1121 * unexelf.c (unexec): Don't search for .data twice.
1123 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
1125 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
1127 (handle_line_prefix): Set avoid_cursor_p here. Check return value
1128 of push_display_prop (Bug#5000).
1130 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
1131 value of font_list_entities (Bug#5085).
1133 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
1135 Fix `string-to-number' to deal consistently with integers and floats.
1136 * lread.c (isfloat_string): New argument ignore_trailing to accept all
1137 trailing characters, not just whitespace.
1138 (read1): Pass new arg 0 to keep old behavior.
1139 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
1140 trailing chars, as it is already done for integers. Doc fixes.
1141 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
1143 2009-12-04 Eli Zaretskii <eliz@gnu.org>
1145 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
1146 Delete unused enumeration value.
1148 2009-12-03 Eli Zaretskii <eliz@gnu.org>
1150 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
1152 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
1154 * process.c (Fmake_network_process): Fix up the tests for
1155 "connectionless socket", so they DTRT for seqpacket sockets as well.
1157 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
1159 * process.c (Qseqpacket): New symbol.
1160 (HAVE_SEQPACKET): New macro.
1161 (Fmake_network_process): Accept new :type `seqpacket'.
1162 (init_process): Add `seqpacket' feature when applicable.
1163 (syms_of_process): Initialize Qseqpacket.
1165 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1167 * font.c (font_load_for_lface, font_open_by_name): Don't store name
1170 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
1172 * print.c (print_preprocess): Preprocess the key_and_value table of
1173 hashtables, even tho they're "hidden" (bug#5082).
1175 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
1177 * frame.c (frame_make_pointer_invisible)
1178 (frame_make_pointer_visible): Declare f before statements.
1180 2009-11-28 Eli Zaretskii <eliz@gnu.org>
1182 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
1183 omitted dependencies on lisp.h.
1185 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
1187 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
1190 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
1192 * frame.c (frame_make_pointer_invisible)
1193 (frame_make_pointer_visible): Just return if there isn't any selected
1196 * search.c (simple_search): Remove warning by making *p const.
1198 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
1200 * xdisp.c (power_letter): Remove duplicate const.
1202 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
1204 * term.c (delete_tty): Remove check for last terminal (bug#4970).
1206 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
1207 defaults (bug #5025).
1209 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
1211 * insdel.c (adjust_markers_for_delete): Move it in the
1212 right direction! (bug#4803)
1214 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1216 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
1218 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
1220 2009-11-24 Glenn Morris <rgm@gnu.org>
1222 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
1224 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
1226 * Makefile.in: Must create deps for ecrt0.o in its rule.
1228 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
1229 because that is what Gtk+ font dialog understands.
1231 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
1233 (font_open_by_name): Put name given into QCname for font-object returned.
1235 * frame.c (x_set_font): Save original font name as frame parameter
1238 * xsettings.c (set_default_xft_settings): New function.
1239 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
1242 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
1244 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
1245 searching backwards through multibyte buffer.
1247 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
1249 * xterm.c: #include xgselect.h.
1250 (x_initialize): Call xgselect_initialize.
1252 * xsettings.c (something_changedCB): C++ comments => C comments.
1253 (init_gconf): Do not deal with any GLib file descriptors, xg_select
1256 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
1257 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
1258 (scroll_bar_button_cb): Remove.
1259 (create_menus): C++ comments => C comments. Don't bind grab-notify
1261 (xg_create_scroll_bar): Don't bind button-press-event and
1262 button-release-event.
1264 * process.c: Include xgselect.h if defined (USE_GTK) ||
1265 defined (HAVE_GCONF).
1266 (wait_reading_process_output): Call xg_select for the same condition.
1268 * xgselect.c (xg_select): New function to better integrate with
1269 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
1271 * xgselect.h: New file, declare xg_select, xgselect_initialize.
1273 * Makefile.in (XOBJ): Add xgselect.o.
1275 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
1277 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
1278 Remove ignored second argument. All callers changed.
1279 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
1280 (RE_STRING_CHAR_AND_LENGTH): Likewise.
1281 * xdisp.c (string_char_and_length): Likewise.
1283 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
1285 * xterm.c (x_new_font):
1286 * print.c (print_object):
1287 * cmds.c (Fself_insert_command): Move declarations before statements.
1289 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
1291 * s/cygwin.h: Remove unneeded linker flags.
1293 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
1295 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
1297 * xsettings.h: Declare xsettings_get_system_font.
1299 * xsettings.c (xsettings_get_system_font): New function.
1300 (init_gconf): No use initiating gconf unless we have Xft also.
1301 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
1304 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
1305 add a blank entry so it doesn't collapse into nothing.
1307 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1309 * lread.c (Funintern): Comment out last change.
1311 2009-11-19 Richard Stallman <rms@gnu.org>
1313 * lread.c (Funintern): Error if symbol is t or nil.
1315 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1317 * insdel.c (make_gap_larger): Don't make as many assumptions about the
1318 representation of Lisp integers.
1319 Reported by MJ Chan <mjchan.inbox@gmail.com>.
1321 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1323 * lisp.h: Remove declaration of Ffont_get_system_font.
1324 * xfns.c: Move include of "xsettings.h".
1325 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
1327 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1329 * xsettings.c (something_changedCB, Ffont_get_system_font):
1330 Check use_system_font.
1331 (syms_of_xsettings): DEFVAR font-use-system-font.
1333 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1335 * xfns.c (x_default_font_parameter): Remove dead assignment.
1337 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
1339 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1341 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
1342 not have FC_LCD_*. #define them if not there.
1344 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
1346 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
1348 * xterm.c (handle_one_xevent): Call xft_settings_event for
1349 ClientMessage, PropertyNotify and DestroyNotify.
1350 (x_term_init): If we have XFT, get DPI from Xft.dpi.
1351 Call xsettings_initialize.
1353 * xftfont.c (xftfont_fix_match): New function.
1354 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
1355 Call xftfont_fix_match after XftFontMatch.
1357 * xfont.c (xfont_driver): Initialize all members.
1359 * xfns.c (x_default_font_parameter):
1360 Try font from Ffont_get_system_font.
1361 Do not get font from x_default_parameter if we got one from
1362 Ffont_get_system_font.
1363 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
1365 * w32font.c (w32font_driver): Initialize all members.
1367 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
1369 * lisp.h: Declare syms_of_xsettings.
1371 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
1372 Handle CONFIG_CHANGED_EVENT.
1374 * ftfont.c (ftfont_filter_properties): New function.
1376 * frame.c (x_set_font): Remove unused variable lval.
1378 * font.h (struct font_driver): Add filter_properties.
1380 * font.c (font_put_extra): Don't return if val is nil, it means
1381 boolean option is off.
1382 (font_parse_fcname): Collect all extra properties in extra_props
1383 and call filter_properties for all drivers with extra_props and
1385 (font_open_entity): Do not use cache, it does not pick up new
1386 fontconfig settings like hinting.
1387 (font_load_for_lface): If spec had a name in it, store it in entity.
1389 * emacs.c (main): Call syms_of_xsettings.
1391 * config.in: HAVE_GCONF is new.
1393 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
1396 2009-11-17 Kenichi Handa <handa@m17n.org>
1398 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
1399 back to the default font in case that no suitable font is found.
1401 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
1403 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
1404 Suggested by Chad Brown <yandros@mit.edu>.
1405 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
1407 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
1409 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
1411 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
1413 * Makefile.in: Ignore errors from mkdir when creating deps directory.
1415 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
1417 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
1420 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
1421 dependency files in deps/. Include those files into Makefile.
1423 * config.in: Generated (AUTO_DEPEND).
1425 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
1427 * dbusbind.c (Vdbus_registered_objects_table): Rename from
1428 Vdbus_registered_functions_table, because it contains also
1429 properties. Fix docstring.
1430 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
1432 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
1434 * alloc.c (mark_object): Don't reprocess marked strings.
1435 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
1436 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
1438 2009-11-13 Kenichi Handa <handa@m17n.org>
1440 * category.c (word_boundary_p): Adjust for the change of the
1441 semantics of Vword_combining_categories.
1442 (Vword_combining_categories): Describe the slight change of the
1445 2009-11-13 Eli Zaretskii <eliz@gnu.org>
1447 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
1449 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
1451 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
1453 * xdisp.c (syms_of_xdisp): Fix typo in last change.
1455 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
1457 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
1459 2009-11-11 David Reitter <david.reitter@gmail.com>
1461 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
1462 variables to fix 2009-11-09 change.
1464 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
1466 * process.c (ifflag_def): Make flag_sym constant.
1467 (Fnetwork_interface_info): Use a constant pointer.
1469 * xfns.c (cursor_bits):
1470 * xdisp.c (power_letter):
1471 * termcap.c (speeds, esctab):
1472 * sysdep.c (baud_convert):
1473 * keyboard.c (lispy_accent_codes, modifier_names):
1474 * image.c (xbm_format, xpm_format, pbm_format, png_format)
1475 (jpeg_format, tiff_format, gif_format, svg_format)
1476 (interlace_start, interlace_increment, gs_format):
1477 * gtkutil.c (separator_names):
1478 * fringe.c (swap_nibble):
1479 * fns.c (base64_value_to_char, base64_char_to_value):
1480 * fileio.c (make_temp_name_tbl):
1481 * coding.c (suffixes): Make constant.
1483 * frame.c (make_initial_frame):
1484 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
1486 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
1489 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
1491 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
1492 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
1494 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
1495 * xterm.c (syms_of_xterm):
1496 * xfaces.c (syms_of_xfaces):
1497 * xdisp.c (syms_of_xdisp):
1498 * lread.c (syms_of_lread):
1499 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
1502 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
1504 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1506 * fns.c (Fplist_get): Merge the active and the commented out code.
1508 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1510 * keyboard.h: Declare timer_check.
1512 * keyboard.c (timer_check_2): New function that does what the old
1514 (timer_check): Call timer_check_2 until -1 or a non-zero time is
1515 returned, i.e. don't return -1 with timers pending.
1517 * process.c: Remove extern declaration of timer_check.
1519 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
1520 even if timer_check returned -1.
1522 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
1524 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
1526 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
1527 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
1528 Destroy the dialog after xg_dialog_run.
1530 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1532 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
1534 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1536 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
1538 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
1540 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
1542 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
1544 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
1545 w32menu.c, and nsmenu.m.
1546 Simplify the obsolete case where position is nil.
1547 (cleanup_popup_menu): New function, moved from nsmenu.m.
1548 (struct skp): Remove slot `notreal'.
1549 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
1551 (single_menu_item): Adjust call to parse_menu_item.
1552 (syms_of_menu): Defsubr x-popup-menu.
1553 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
1554 (keymap_panes): Don't export any more.
1555 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
1556 (xmenu_show): Declare.
1557 * keyboard.c (parse_menu_item): Remove arg `notreal'.
1558 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
1559 * keyboard.h (parse_menu_item): Update declaration.
1560 * xmenu.c (Fx_popup_menu): Remove.
1561 (syms_of_xmenu): Don't defsubr x-popup-menu.
1562 * w32menu.c (Fx_popup_menu): Remove.
1563 (syms_of_w32menu): Don't defsubr x-popup-menu.
1564 * nsmenu.m (cleanup_popup_menu): Remove.
1565 (ns_menu_show): Rename from ns_popup_menu and remove all the code
1566 moved to menu.c's Fx_popup_menu.
1567 (Fx_popup_menu): Remove.
1568 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
1569 menu_items (it's done in menu.c already).
1571 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
1573 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
1574 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
1576 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
1578 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
1579 xmenu_show. Hide any tooltip before opening a menu.
1580 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
1581 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
1583 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1585 Let integers use up 2 tags to give them one extra bit and thus double
1587 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
1588 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
1590 (enum Lisp_Type): Use them. Give explicit values.
1591 (Lisp_Type_Limit): Remove.
1592 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
1593 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
1594 Pay attention to USE_2_TAGS_FOR_INTS.
1595 (INTEGERP): Use LISP_INT_TAG_P.
1596 * fns.c (internal_equal): Simplify the default case.
1597 (sxhash): Use case_Lisp_Int.
1598 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
1600 (Ftype_of): Use case_Lisp_Int.
1601 (store_symval_forwarding): Take into account the fact that Ints can
1602 now have more than one tag.
1603 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
1604 buffer_slot_type_mismatch):
1605 * xfaces.c (face_attr_equal_p):
1606 * print.c (print_object):
1607 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
1610 2009-11-06 Eli Zaretskii <eliz@gnu.org>
1612 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
1614 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
1617 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
1619 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
1621 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
1623 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
1624 ButtonPressRelease and MotionNotify (bug#4870).
1626 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
1628 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
1630 * xterm.c (syms_of_xterm):
1631 * xselect.c (syms_of_xselect):
1632 * xmenu.c (syms_of_xmenu):
1633 * xfns.c (syms_of_xfns):
1634 * xfaces.c (syms_of_xfaces):
1635 * xdisp.c (syms_of_xdisp):
1636 * window.c (syms_of_window):
1637 * w32fns.c (syms_of_w32fns):
1638 * undo.c (syms_of_undo):
1639 * textprop.c (syms_of_textprop):
1640 * terminal.c (syms_of_terminal):
1641 * syntax.c (syms_of_syntax):
1642 * sound.c (syms_of_sound):
1643 * search.c (syms_of_search):
1644 * print.c (syms_of_print):
1645 * minibuf.c (syms_of_minibuf):
1646 * macros.c (syms_of_macros):
1647 * keymap.c (syms_of_keymap, initial_define_key)
1648 (initial_define_lispy_key):
1649 * keyboard.c (syms_of_keyboard):
1650 * insdel.c (syms_of_insdel):
1651 * image.c (syms_of_image):
1652 * fringe.c (syms_of_fringe):
1653 * frame.c (syms_of_frame):
1654 * fontset.c (syms_of_fontset):
1655 * fns.c (syms_of_fns):
1656 * fns.c (syms_of_fns):
1657 * fileio.c (syms_of_fileio):
1658 * fileio.c (syms_of_fileio):
1659 * eval.c (syms_of_eval):
1660 * doc.c (syms_of_doc):
1661 * dispnew.c (syms_of_display):
1662 * dired.c (syms_of_dired):
1663 * dbusbind.c (syms_of_dbusbind):
1664 * data.c (syms_of_data):
1665 * composite.c (syms_of_composite):
1666 * coding.c (syms_of_coding):
1667 * cmds.c (syms_of_cmds):
1668 * charset.c (define_charset_internal, syms_of_character):
1669 * ccl.c (syms_of_ccl):
1670 * category.c (syms_of_category, init_category_once):
1671 * casetab.c (syms_of_casetab):
1672 * casefiddle.c (syms_of_casefiddle):
1673 * callint.c (syms_of_callint):
1674 * bytecode.c (syms_of_bytecode):
1675 * buffer.c (keys_of_buffer, syms_of_buffer):
1676 * alloc.c (syms_of_alloc):
1677 * process.c (syms_of_process, init_process):
1678 * lread.c (syms_of_lread, init_obarray):
1679 * font.c (build_style_table):
1680 * emacs.c (syms_of_emacs, main): Replace calls to intern with
1681 intern_c_string, calls to make_pure_string with
1682 make_pure_c_string. Use pure_cons instead of Fcons.
1684 * process.c (socket_options): Make it const.
1685 (set_socket_option, init_process): Use a const pointer.
1687 * lread.c (intern_c_string): New function.
1688 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1689 (defvar_int): Uset it. Make the name const char*.
1691 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1692 (defvar_int): Update prototypes.
1693 (DEFUN, EXFUN): Support for prototypes is now required.
1694 (intern_c_string): New prototype.
1695 (struct Lisp_Subr): Make symbol_name constant.
1697 * font.c (struct table_entry): Remove unused member. Make NAMES
1699 (weight_table, slant_table, width_table): Make constant.
1701 * emacs.c (struct standard_args): Make name and longname constant.
1703 * character.h (DEFSYM): Use intern_c_string.
1705 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1707 * alloc.c (make_pure_c_string): New function.
1709 * eval.c (Fautoload): Purecopy all arguments.
1711 2009-11-05 Kenichi Handa <handa@m17n.org>
1713 * fileio.c (Finsert_file_contents): Be sure set coding-system of
1714 the buffer in case of replace.
1716 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
1718 * puresize.h (BASE_PURESIZE): Increase to 1620000.
1720 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
1722 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
1723 when applicable (bug#4851).
1725 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
1726 (P_): Support for prototypes is now required.
1728 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
1730 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
1733 2009-10-30 Eli Zaretskii <eliz@gnu.org>
1735 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
1737 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
1739 * puresize.h (BASE_PURESIZE): Increase to 1470000.
1741 * lread.c (Fload): Purecopy the file name when building
1742 Vpreloaded_file_list.
1744 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
1746 * w32fns.c (syms_of_w32fns): Change default value of
1747 w32-scroll-lock-modifier to nil. (Bug#2827)
1749 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
1751 * minibuf.c (Fall_completions): Fix typos in docstring.
1753 2009-10-26 Andreas Schwab <schwab@redhat.com>
1755 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
1757 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
1759 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
1760 For delta < 0, skip check that only makes sense when the mini-window
1761 is going to be enlarged. (Bug#4534)
1763 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
1765 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
1766 string in menu maps (Bug#4471).
1768 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
1770 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
1771 FRAME_NS_VIEW on terminal frames (Bug#4765).
1773 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
1775 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
1776 DBUS_TYPE_UINTnn separately to get proper sign extension.
1778 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
1779 can properly handle unsigned types.
1780 (make_uid, make_gid): Remove.
1782 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
1785 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
1786 (system_process_attributes): Likewise.
1788 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
1790 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
1792 * eval.c (Fautoload): Purecopy the filename. Simplify.
1794 * category.c (Fdefine_category): Purecopy docstring.
1796 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
1798 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
1800 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
1802 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
1804 * window.c (Fwindow_edges, Fwindow_pixel_edges)
1805 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
1808 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
1810 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
1812 * lisp.h (init_fileio_once): Remove.
1813 * emacs.c (main): Don't call init_fileio_once.
1815 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
1817 * puresize.h (BASE_PURESIZE): Increase to 1430000.
1819 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
1821 * doprnt.c (doprnt): Fix overflow check.
1823 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
1825 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
1827 * xterm.h (x_wait_for_event): Declare it.
1829 * xterm.c (pending_event_wait): New variable.
1830 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
1831 see pending_event_wait.eventtype.
1832 (handle_one_xevent): Don't change gravity when parent changes.
1833 (x_new_font): Call change_frame_size with new rows/columns before we
1834 try to resize the frame.
1835 (x_wait_for_event): New function.
1836 (x_set_window_size_1): Don't change gravity unless change_gravity
1838 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
1839 don't change frame size, instead wait for the ConfigureNotify.
1840 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
1841 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
1842 (x_initialize): Initialize pending_event_wait.
1844 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
1847 * widget.c (EmacsFrameSetValues): Add comment.
1848 (EmacsFrameSetCharSize): Just call x_set_window_size.
1850 * gtkutil.c (xg_frame_set_char_size): Flush events and call
1852 (flush_and_sync): Remove again.
1853 (xg_get_font_name): Suggest monospace if no previous font is known.
1855 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
1857 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
1858 8th bit, since that only made sense in the ASCII world (bug#4751).
1860 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1862 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
1863 processing pending events when event is filtered for input method.
1866 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
1868 * fns.c: Add #endif accidentally removed in previous change.
1870 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
1872 * fns.c: Remove code for unsupported system: MAC_OS.
1873 * image.c: Likewise. Include setjmp.h.
1875 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
1877 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
1878 pixel -1 (bug #4742).
1880 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
1882 * process.c (create_pty): Remove conditionals for no longer
1883 supported systems: UNIPLUS and RTU.
1886 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
1888 * alloc.c: Do not define struct catchtag.
1889 * eval.c: Move struct catchtag definition ...
1892 * image.c: Move png.h #include earlier to avoid warnings.
1993 * atimer.c: Include setjmp.h. (Bug#4643)
1995 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
1997 Remove leftover table unibyte_to_multibyte_table.
1998 * character.c (unibyte_to_multibyte_table): Remove.
1999 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
2000 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
2001 * character.h (UNIBYTE_TO_CHAR): New macro.
2002 (MAKE_CHAR_MULTIBYTE): Use it.
2003 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
2004 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
2005 (message_dolog, set_message_1):
2006 * search.c (Freplace_match):
2007 * editfns.c (Fcompare_buffer_substrings):
2008 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
2010 * insdel.c (copy_text, count_size_as_multibyte):
2011 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
2012 * term.c (produce_glyphs):
2013 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
2014 * regex.c (RE_CHAR_TO_MULTIBYTE):
2015 * cmds.c (internal_self_insert):
2016 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
2018 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
2020 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
2022 * puresize.h (BASE_PURESIZE): Increase to 1310000.
2024 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
2026 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
2028 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
2030 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
2031 still needed under Tiger.
2033 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
2035 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
2038 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
2040 2009-10-15 Kenichi Handa <handa@m17n.org>
2042 * print.c (print_object): Escape a symbol like "2E10" too.
2044 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
2046 Cleanups and changes for 64-bit compile under Snow Leopard.
2047 Based on suggestions by Erik Charlebois.
2049 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
2051 * nsfont.m (ns_char_width): Replace deprecated call.
2052 (ns_findfonts, nsfont_list_family): Use long format in printf, and
2054 (nsfont_open): Use ns_char_width() everywhere.
2055 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
2057 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
2059 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
2062 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
2064 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
2065 Use stringWithUTF8String.
2066 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
2068 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
2069 Add formal protocol mention to inheritance.
2070 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
2072 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
2074 (ns_query_color): Use CGFloat where appropriate.
2075 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
2076 (EmacsScroller-mouseDown:): Use long format in printf, and cast
2079 * config.in (NS_HAVE_NSINTEGER): Drop.
2081 * dbusbind.c (dbus-method-return-internal)
2082 (dbus-method-error-internal): Use long format in printf, and cast
2085 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
2086 in printf, and cast argument.
2088 * process.c (list_processes_1): Use long format in printf, and
2091 2009-10-11 Glenn Morris <rgm@gnu.org>
2093 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
2095 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
2097 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
2098 menu bar with a small width so it doesn't enlarge the frame.
2100 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
2102 * fontset.c (Fset_fontset_font): Fix typos in error messages.
2104 2009-10-06 Glenn Morris <rgm@gnu.org>
2106 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
2107 SOME_MACHINE_LISP (this enters indirectly via DOC).
2109 2009-10-05 Eli Zaretskii <eliz@gnu.org>
2111 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
2113 2009-10-04 Eli Zaretskii <eliz@gnu.org>
2115 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
2118 2009-10-03 Martin Rudalics <rudalics@gmx.at>
2120 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
2122 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
2124 * lisp.h (Qdelete_directory_internal): Remove, because it is not
2125 used anymore outside fileio.c.
2127 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
2129 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
2131 * lisp.h (Qdelete_directory_internal):
2132 Declare, instead of Qdelete_directory.
2134 * w32fns.c (Fsystem_move_file_to_trash): Use it.
2136 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
2138 * eval.c (Fcalled_interactively_p): Add `kind' argument.
2140 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
2142 * fileio.c (Fdelete_directory_internal): Rename from
2143 Fdelete_directory. It is not a command anymore. It has no file
2146 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
2148 * xdisp.c (get_next_display_element): Use an enum in last change.
2150 2009-09-28 Kenichi Handa <handa@m17n.org>
2152 * xdisp.c (get_next_display_element): Pay attention to
2153 unibyte_display_via_language_environment in handling
2154 Vnobreak_char_display.
2156 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
2158 * nsterm.h (ns_app_name): New extern variable.
2160 * nsterm.m (ns_app_name): New variable.
2161 (ns_term_init): Set and use it.
2162 (ns_term_shutdown): Use it.
2164 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
2165 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
2167 * nsfns.m (ns_set_name_iconic, ns_set_name)
2168 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
2169 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
2171 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
2172 Remove double-casting in client_data comparison.
2174 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2176 * keyboard.c (make_lispy_event): Remember last wheel direction.
2177 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
2179 2009-09-26 Glenn Morris <rgm@gnu.org>
2181 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
2182 internal.elc. Add term/pc-win.elc.
2183 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
2185 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
2188 (lisp): Add NS_SUPPORT.
2189 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
2191 2009-09-25 David Reitter <david.reitter@gmail.com>
2193 * nsmenu.m (EmacsMenu-clear): Recognize application menu
2194 on Mac OS X 10.6+ (bug#4513).
2196 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
2198 * frame.c (xrdb_get_resource): Return nil for empty string resources;
2199 some parts of Emacs code (like font selection) don't grok them.
2200 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
2202 2009-09-24 Andreas Schwab <schwab@redhat.com>
2204 * coding.c (decode_coding_iso_2022): Fix operator precedence.
2206 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
2208 * dired.c (Fdirectory_files): Fix typo in docstring.
2210 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2212 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
2213 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
2214 (EmacsScroller-setPosition:portion:whole:): Remove -display call
2216 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
2218 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
2221 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
2223 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
2224 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
2226 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
2227 deleted (bug #4492).
2229 * nsfont.m (Vns_reg_to_script): New lisp variable.
2230 (syms_of_nsfont): Declare it.
2231 (ns_registry_to_script): New function.
2232 (ns_get_req_script): Call it.
2233 (ns_findfonts): Don't give up on non-unicode registry.
2235 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
2237 2009-09-20 Tom Tromey <tromey@redhat.com>
2239 * eval.c (find_handler_clause): Make stack-trace-on-error work in
2240 batch mode (bug#4228).
2242 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
2244 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
2245 carefully. (Bug #4339)
2247 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
2249 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
2251 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2253 * emacs.c (inhibit_x_resources): Update doc string for NS.
2254 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
2255 legacy code for -NXHost. Fix error printf in daemon case.
2257 * nsterm.h (ns_no_defaults): Remove.
2259 * nsterm.m (ns_no_defaults): Remove.
2260 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
2261 (ns_use_qd_smoothing): Remove legacy variable.
2262 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
2263 don't update the NSWindow itself.
2264 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
2265 state detection and store user rect ourselves. (Bug #3581)
2267 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
2268 ns_use_qd_smoothing.
2270 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
2271 platform versions. Drop support for emacs-20-style face specs.
2272 (x-close-connection): Drop PSFlush() under OS X.
2273 (x-focus-frame): Activate the app first. (Bug #4180)
2275 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
2277 * emacs.c (inhibit_x_resources): New variable.
2278 (main) [HAVE_NS]: Don't process --quick command line option.
2279 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
2281 * lisp.h (inhibit_x_resources): Declare it extern.
2283 * w32reg.c (x_get_string_resource):
2284 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
2286 2009-09-17 Eli Zaretskii <eliz@gnu.org>
2288 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
2289 Add lisp/term/internal.elc.
2291 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
2293 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
2296 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
2298 * puresize.h (BASE_PURESIZE): Increase to 1290000.
2300 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
2301 (OBJECTS_MACHINE): Remove, unused.
2303 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
2305 * frame.c (x_get_resource_string): Remove unused.
2307 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
2309 * xterm.c (x_new_font): Call change_frame_size before calling
2310 x_set_window_size, in case frame size won't change.
2312 * frame.c (x_set_font): Remove dead code.
2314 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
2316 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
2318 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2320 * lread.c (Fload): Don't output a message after loading an obsolete
2321 package any more (done in Lisp now).
2323 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
2325 * fns.c (syms_of_fns): Doc fix (Bug#4227).
2327 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2329 * keymap.c (Fwhere_is_internal): Use nconc2.
2331 2009-09-11 Alan Mackenzie <acm@muc.de>
2333 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
2336 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
2338 * xdisp.c (display_mode_element): Detect cycles.
2340 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2342 * keymap.c (where_is_internal): Don't erroneously return nil right after
2344 (where_is_internal_1): Fix up typo.
2346 2009-09-11 Glenn Morris <rgm@gnu.org>
2348 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
2349 share a common doc-string.
2351 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2353 * keymap.c (get_keymap): Return the actual keymap symbol rather than
2354 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
2356 * keymap.c (QCadvertised_binding): New constant.
2357 (syms_of_keymap): Initialize it.
2358 (Fwhere_is_internal): Try and use bindings from :advertised-binding
2361 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
2363 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
2364 (parse_menu_item): Streamline since bindings are recomputed all the
2365 time anyway. Don't bother checking Vdefine_key_rebound_commands any
2366 more and don't support lmenu's menu-alias any more either.
2368 * keymap.c (where_is_internal_data): Make noindirect a boolean.
2369 (where_is_internal): Strip it down to only traverse the keymaps.
2370 Move the cache handling from Fwhere_is_internal to here.
2371 (Fwhere_is_internal): Move the handling of remapping and the choice of
2372 the best binding from where_is_internal to here.
2373 Unify the cached/noncached paths, so remapping is also handled
2374 correctly when the cache is used, and so the cache can be used to
2375 speed up remap-handling when applicable.
2376 Give preference to non-remapped bindings.
2377 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
2378 non-remapped bindings.
2379 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
2382 * xdisp.c (display_mode_element): Move list length limit from 50 to
2383 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
2385 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
2387 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
2389 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
2391 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
2394 * keymap.c (where_is_internal): Filter out shadowed remappings.
2395 Assume that where_is_internal returns unshadowed bindings to simplify
2396 the code and get rid of the gotos. Use ASIZE.
2398 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
2400 * xterm.c (x_focus_changed): If we get a focusout and pointer
2401 is invisible, make it visible.
2403 * xterm.h: Remove condition for declaration of
2404 x_*_window_to_frame.
2406 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
2408 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
2409 initial terminal as well.
2411 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
2413 * xterm.h: Rename x_non_menubar_window_to_frame to
2414 x_menubar_window_to_frame.
2416 * xterm.c: Remove declarations also in xterm.h
2417 (XTmouse_position): Do not return valid positions
2418 for clicks in the menubar and the toolbar for Gtk+.
2420 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
2421 if the widget for the event has the same top level as a frame,
2423 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
2424 internal windows, bug #4122.
2425 (x_non_menubar_window_to_frame): Remove.
2427 2009-09-02 Glenn Morris <rgm@gnu.org>
2429 * buffer.c (default-major-mode): Move most of the doc from here...
2430 (major-mode): ... to here.
2432 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
2434 * process.c (wait_reading_process_output): Keep the descriptor
2435 when pty is used by a non-child process, e.g., in I/O buffer of
2436 GDB this allows inferior to be restarted.
2438 2009-08-29 Eli Zaretskii <eliz@gnu.org>
2440 * xdisp.c (redisplay_internal): Remove redundant test and collapse
2441 both branches into one.
2443 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
2445 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
2446 (main): Use enable-multibyte-characters rather than
2447 default-enable-multibyte-characters. Output a warning message when
2448 running a unibyte session.
2450 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2452 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
2453 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
2454 (copy_data_segment): Also copy __program_vars section.
2455 (copy_dyld_info) [LC_DYLD_INFO]: New function.
2456 (dump_it) [LC_DYLD_INFO]: Use it.
2458 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
2460 2009-08-28 Eli Zaretskii <eliz@gnu.org>
2462 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
2464 (buildobj.h): Renamed from $(SRC)/buildobj.h.
2465 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
2467 (clean): Add buildobj.h.
2469 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
2471 * print.c (print_object): Set escapeflag to 1 when printing
2472 hashtable keys and values.
2474 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
2476 * lread.c (read_integer): Use doubles (and potentially return a float
2477 number) as we do in string-to-number.
2478 (read1): Use strtol to read integers, signal errors on strtol's
2479 overflow and use floats if strtol's output is too large for
2482 2009-08-27 Eli Zaretskii <eliz@gnu.org>
2484 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
2485 (make-buildobj-SH): Fix last change.
2486 (SRC): Move to before where it's first used.
2488 2009-08-27 Kenichi Handa <handa@m17n.org>
2490 * process.c (send_process): Use encode_coding_object instead of
2491 encode_coding_string to perform eol-conversion even if the string
2494 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
2497 * cmds.c (Fself_insert_command): Avoid unnecessay
2498 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
2500 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
2502 * callproc.c (Fcall_process): Remove always true #if.
2504 * lisp.h: Replace #if 0 code for checking with text pointing to
2505 the --enable-checking configure flag.
2507 * emacs.c (main): Mention the --enable-profiling configure flag
2508 instead of using CFLAGS.
2510 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
2512 * Makefile.in (buildobj.h): New target.
2513 (doc.o): Depend on it.
2514 (temacs${EXEEXT}): Don't generate buildobj.lst.
2515 (mostlyclean): Delete buildobj.h, not buildobj.lst.
2516 * makefile.w32-in ($(SRC)/buildobj.h): New target.
2517 ($(BLD)/doc.$(O)): Depend on it.
2518 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
2519 provided by Eli Zaretskii.)
2520 ($(TEMACS)): Don't generate buildobj.lst.
2521 * doc.c: Include buildobj.h.
2522 (buildobj): New static variable.
2523 (Fsnarf_documentation): Use it, instead of opening and reading
2526 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
2528 * dbusbind.c (Fdbus_call_method)
2529 (Fdbus_call_method_asynchronously): Use English numeric format for
2530 timeout values in doc string.
2532 2009-08-25 Kenichi Handa <handa@m17n.org>
2534 * alloc.c (mark_char_table): New function.
2535 (mark_object): Use mark_char_table for a char-table.
2537 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
2538 (CHAR_TABLE_REF): Use it.
2540 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
2542 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
2543 before invoking the newly build emacs to check for load-path
2546 2009-08-22 Glenn Morris <rgm@gnu.org>
2548 * Makefile.in (bootstrap_exe): New variable.
2549 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
2550 Use ${bootstrap_exe}.
2552 2009-08-22 Eli Zaretskii <eliz@gnu.org>
2554 * coding.h (encode_coding_string): Don't encode unibyte strings.
2557 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
2559 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
2561 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
2562 intended as hotfix only.
2563 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
2565 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
2567 * nsterm.m (ns_get_color): Update documentation properly for last
2568 change, and clean up loose ends in the code left by it. Fix
2569 longstanding bug with 16-bit hex parsing, and add support for
2570 yet another X11 format (rgb:r/g/b) for compatibility.
2571 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
2572 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
2574 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
2576 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
2578 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
2580 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
2581 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
2582 (xd_initialize, xd_pending_messages): Check, whether
2583 $DBUS_SESSION_BUS_ADDRESS is set.
2585 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2587 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
2589 * nsterm.m (ns_get_color): Remove incompatible color formats again.
2591 2009-08-20 Glenn Morris <rgm@gnu.org>
2593 * emacs.c (system-type): Doc fix.
2595 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
2597 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
2598 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
2600 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
2602 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
2604 (xd_initialize): Revert change from 2009-08-16.
2606 2009-08-18 Kenichi Handa <handa@m17n.org>
2608 * fontset.c (Ffontset_font): If a nil element is found in a
2609 font-group vector, return nil.
2611 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
2613 * process.c (status_notify): Don't perform redisplay.
2614 (Fdelete_process, list_processes_1, process_send_signal):
2615 Expliticly perform redisplay.
2616 (wait_reading_process_output): Always check process status, but
2617 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
2619 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
2621 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
2622 (XFLOAT_INIT): New macro for storing a float value.
2623 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
2624 * fns.c (sxhash): Copy out the value of a float in order to
2626 * dbusbind.c (xd_append_arg): Likewise.
2628 * emacs.c (main): Don't call syms_of_data twice.
2630 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
2632 * dbusbind.c (xd_initialize): Add connection file descriptor to
2633 input_wait_mask, in order to let select() detect, whether a new
2634 message has been arrived.
2635 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
2637 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
2639 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
2642 * lisp.h (xd_pending_messages): Declare.
2644 * keyboard.c (readable_events): Call xd_pending_messages.
2646 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
2648 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
2650 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
2652 * buffer.c (set_buffer_internal_1)
2653 (swap_out_buffer_local_variables): Check for unbound local
2654 variables (Bug#4138).
2656 2009-08-14 Eli Zaretskii <eliz@gnu.org>
2658 * process.c (create_pty): Fix last change.
2660 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
2662 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
2663 (xbm_load_image): Caller changed.
2664 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
2666 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
2668 * process.c (create_pty): New function.
2669 (Fstart_process): Use it to allow Emacs to just associate a pty
2670 with the buffer. See associated change in gdb-mi.el.
2671 (list_processes_1): Deal with no program name.
2672 (start_process_unwind): Use pid == -2 to mean no process.
2674 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
2676 * cmds.c (nonundocount): New global variable.
2677 (keys_of_cmds): Initialize it.
2678 (Fself_insert_command): Use it to combine upto 20 sequential chars
2679 into a single undo entry, just like the Qself_insert_command code in
2681 Call frame_make_pointer_invisible, also like the Qself_insert_command
2682 code in keyboard.c does.
2683 * keyboard.c (command_loop_1): Use the new global nonundocount rather
2684 than its own local replacement for it.
2686 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
2688 * fns.c (concat): Don't re-set string length to its current value.
2690 * coding.h (decode_coding_string, encode_coding_string):
2693 * doprnt.c (doprnt_lisp): Delete unused function.
2694 (doprnt): Merge with doprnt1, discarding lispstrings code.
2695 * lisp.h (doprnt_lisp): Don't declare.
2697 2009-08-07 Juri Linkov <juri@jurta.org>
2699 * puresize.h (BASE_PURESIZE): Increase to 1270000.
2701 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
2703 * print.c (syms_of_print): Undo previous change.
2705 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
2707 * lread.c (read1, syms_of_lread): Read hashtables back from the
2710 * print.c (print_preprocess, print_object): Print hashtables fully
2712 (syms_of_print): Provide 'hashtable-print-readable.
2714 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
2716 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
2718 (nsfont_open): Handle case when entity has no family.
2720 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
2722 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
2723 element, not a list, for match case.
2725 2009-07-28 Kenichi Handa <handa@m17n.org>
2727 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
2730 * xfont.c (xfont_list_pattern): Don't ignore the return value of
2731 font_parse_xlfd. Check font properties more rigidly.
2733 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2735 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
2738 2009-07-27 Kenichi Handa <handa@m17n.org>
2740 * xfaces.c (face_with_height): Call font_clear_prop.
2742 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
2744 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
2746 * xterm.c (x_term_init): Use Qx.
2748 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
2750 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
2751 (ns_get_color): Revert 2009-07-16 change.
2753 2009-07-25 Eli Zaretskii <eliz@gnu.org>
2755 * lread.c (syms_of_lread) <force_load_messages>: New variable.
2756 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
2758 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
2760 * coding.h (decode_coding_string, encode_coding_string):
2763 * lread.c: Rewrite 2009-07-21 changes.
2764 (load_depth): Delete.
2765 (Qload_in_progress): New variable.
2766 (load_unwind): Don't reference load_depth or load_in_progress.
2767 (Fload): Likewise; specbind Qload_in_progress instead.
2768 (init_lread): Don't initialize load_depth.
2769 (syms_of_lread): Initialize and protect Qload_in_progress.
2771 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2773 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
2775 2009-07-23 Yavor Doganov <yavor@gnu.org>
2777 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
2779 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2781 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
2782 Bugs 3792, 3720, 2402.
2783 (ns_lookup_indexed_color): Check for bad index.
2784 (ns_index_color): Init unused slot to 0.
2785 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
2786 Bug 3714, possibly 3082.
2788 2009-07-22 Jason Rumney <jasonr@gnu.org>
2790 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
2791 Position IME window at cursor (Bug#2570).
2792 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
2793 (globals_of_w32fns): Dynamically load functions required above.
2795 * w32term.c (w32_draw_window_cursor): Send message to reposition
2798 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
2800 * fileio.c: Revert 2009-07-16 changes.
2801 (Vauto_save_include_big_deletions): New variable.
2802 (Fdo_auto_save): Disable auto-save only if
2803 auto-save-include-big-deletions is nil.
2805 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
2807 * xdisp.c (move_it_to): For continued lines ending in a tab, take
2808 the overflowed pixels into account (Bug#3879).
2810 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
2812 * lread.c (load_depth): New variable.
2813 (Fload, load_unwind, init_lread): Set it to the load recursion
2814 depth; set load_in_progress as a simple boolean based on the
2815 current load_depth. (Bug#3892)
2817 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
2819 * nsfont.m (ns_has_attribute): Remove.
2820 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
2822 2009-07-18 Juri Linkov <juri@jurta.org>
2824 * process.c (Fset_process_query_on_exit_flag): Mention killing
2825 a buffer in docstring.
2827 2009-07-17 Kenichi Handa <handa@m17n.org>
2829 * casetab.c (shuffle): Fix the logic of setting up the cycle.
2831 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2833 * nsfns.m (Fns_set_alpha): Remove function.
2834 (syms_of_nsfns): Don't defsubr it.
2836 * nsterm.m (ns_get_color): Remove incompatible color formats.
2837 (ns_color_to_lisp): Generate #rrggbb color format string.
2839 2009-07-16 Richard Stallman <rms@gnu.org>
2841 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
2842 (Fset_buffer_auto_saved): Handle save_length = -2.
2844 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
2846 * xterm.c (Qx_gtk_map_stock): New var.
2848 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
2849 of calling intern each time.
2851 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2853 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
2856 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
2858 2009-07-14 Kenichi Handa <handa@m17n.org>
2860 * font.c (font_vconcat_entity_vectors): New function.
2861 (struct font_sort_data): New member font_driver_preference.
2862 (font_compare): Check font_driver_preference.
2863 (font_sort_entities): The format of the first argument changed.
2864 (font_delete_unmatched): Likewise.
2865 (font_list_entities): The return type changed.
2866 (font_select_entity): The format of the second argument changed.
2867 (font_find_for_lface): Adjuste for the above changes.
2868 Don't suppress the checking of C even if the repertory supports it.
2869 (Flist_fonts): Adjust for the above changes.
2871 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
2872 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
2873 Reject a font who has adstyle property that is different from a
2874 langname derived from registry property.
2875 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
2877 2009-07-13 Eli Zaretskii <eliz@gnu.org>
2879 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
2880 local copy of dirfilename.
2882 2009-07-13 Kenichi Handa <handa@m17n.org>
2884 * chartab.c (sub_char_table_ref_and_range): Fix the range check
2887 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
2888 calling XSYMBOL (sym).
2890 2009-07-11 Eli Zaretskii <eliz@gnu.org>
2892 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
2894 (directory_files_internal) [WINDOWSNT]:
2895 Bind w32-get-true-file-attributes to either t or nil, depending whether
2896 the filesystem of the directory is fast or slow.
2898 * w32.c (logon_network_drive): Don't assume PATH is an absolute
2900 (is_slow_fs): New function.
2901 (stat): Use it to determine whether to issue more system calls to
2902 get accurate file attributes, when w32-get-true-file-attributes is
2905 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
2907 * xfns.c (Fx_select_font): Remember last font selected in
2908 x_last_font_name and use that the next time. Also try the frame
2909 parameter font-parameter as default to the font dialog.
2911 2009-07-10 Kenichi Handa <handa@m17n.org>
2913 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
2915 2009-07-09 Eli Zaretskii <eliz@gnu.org>
2917 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
2919 * w32.c (stat): Treat UNC file names as residing on remote
2922 2009-07-09 Kenichi Handa <handa@m17n.org>
2924 * fontset.c (fontset_find_font): Fix previous change.
2926 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
2928 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
2929 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
2932 2009-07-08 Kenichi Handa <handa@m17n.org>
2934 * fontset.c (fontset_find_font): Fix the logic of handling
2936 (font_for_char): Delete unused var.
2937 (generate_ascii_font_name): Delete it.
2939 * coding.h (JIS_TO_SJIS2): Fix the code range check.
2941 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
2942 (encode_coding_sjis): Fix the code range check.
2944 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
2946 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
2947 (Fexpand_file_name): Copy string data properly (Bug#3772).
2949 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
2951 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
2954 2009-07-07 Kenichi Handa <handa@m17n.org>
2956 * character.h (unibyte_has_multibyte_table): Delete extern.
2957 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
2959 * charset.c (Fset_charset_priority): Update charset_unibyte.
2960 (syms_of_charset): Initialize charset_unibyte.
2962 * character.c (unibyte_has_multibyte_table): Delete it.
2963 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
2965 (multibyte_char_to_unibyte_safe): Likewise.
2966 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
2968 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
2969 (x_produce_glyphs): Likewise.
2971 * .gdbinit (xcharset): Fix the treating $arg0.
2973 2009-07-04 Eli Zaretskii <eliz@gnu.org>
2975 Emulation of `getloadavg' on MS-Windows.
2976 * w32.c: Include float.h
2977 (g_b_init_get_native_system_info, g_b_init_get_system_times)
2978 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
2979 (get_native_system_info, get_system_times): New functions.
2980 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
2981 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
2982 (globals_of_w32): Initialize g_b_init_get_native_system_info,
2983 g_b_init_get_system_times, and num_of_processors.
2985 2009-07-03 Jason Rumney <jasonr@gnu.org>
2987 * w32term.c (w32_initialize): Use standard types.
2989 2009-07-03 Eli Zaretskii <eliz@gnu.org>
2991 * dired.c (Ffile_attributes): Decode user and group names by the
2992 locale's encoding. (Bug#3443)
2994 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
2996 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
2997 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
2999 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
3001 * term.c (init_tty): Remove spurious #ifdef.
3003 * m/mips.h: Mention this file is also used for netbsd.
3004 * m/pmax.h: Remove file.
3006 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
3008 * xterm.h (struct x_display_info): Add invisible_cursor.
3009 (struct x_output): Add current_cursor.
3011 * xterm.c (XTtoggle_invisible_pointer): New function.
3012 (x_define_frame_cursor): Don't define cursor if invisible or the
3013 same as before. Set current_cursor.
3014 (x_create_terminal): Set toggle_invisible_pointer_hook.
3016 * xfns.c (make_invisible_cursor): New function.
3017 (x_set_mouse_color): Call make_invisible_cursor.
3019 (x_window): Set current_cursor.
3021 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
3023 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
3024 inserting a character.
3025 (read_avail_input): Call frame_make_pointer_visible.
3027 * frame.c (Vmake_pointer_invisible): New variable.
3028 (frame_make_pointer_invisible, frame_make_pointer_visible):
3030 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
3032 * frame.h: Declare frame_make_pointer_invisible and
3033 frame_make_pointer_visible.
3034 (struct frame): Add pointer_invisible.
3036 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
3038 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
3039 frame isn't visible.
3040 (xg_frame_resized): If width/height is -1, get size of window
3043 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
3046 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
3047 here or call change_frame_size. Just call flush_and_sync.
3048 (flush_and_sync): Reintroduce.
3050 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
3052 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
3054 * xterm.c (x_handle_net_wm_state): Also look for sticky.
3055 (x_term_init): Initialize Xatom_net_wm_state_sticky.
3057 * frame.h: Declare Qsticky.
3059 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
3061 * nsfns.m (ns_frame_parm_handlers): Ditto.
3063 * frame.c: Declare Qsticky.
3064 (frame_parms): Add sticky.
3066 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
3068 * xterm.h: Declare x_set_sticky.
3070 * xterm.c (x_set_sticky): New function.
3072 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
3073 (xg_tool_bar_menu_proxy): Attach enter/leave events to
3074 xg_tool_bar_proxy_help_callback.
3076 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
3078 * frame.c: Qmaximized is new.
3079 (x_set_frame_parameters): Do not handle fullscreen specially.
3080 Only set width and height if explicitly set.
3081 (x_set_fullscreen): Handle Qmaximized.
3082 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
3083 (syms_of_frame): Initialize Qmaximized.
3085 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
3086 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3088 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
3089 for Expose event. Add call to x_check_fullscreen for MapNotify event.
3090 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3091 set gravity to NorthWestGravity when USE_GTK.
3092 (set_wm_state): New function.
3093 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3094 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
3095 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
3096 or the case when no window manager is running. That means remove calls
3097 to x_real_positions and x_fullscreen_adjust.
3099 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
3100 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
3102 (xg_height_changed): New function.
3103 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
3104 and gtk_window_set_policy. Set frame gravity after parsing the
3106 (xg_update_frame_menubar, free_frame_menubar)
3107 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
3108 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
3109 Remove calls to xg_frame_set_char_size.
3111 2009-07-01 Kenichi Handa <handa@m17n.org>
3113 * keyboard.c (decode_keyboard_code): New function.
3114 (tty_read_avail_input): Decode the input bytes if necessary.
3116 * coding.c (setup_coding_system):
3117 Initialize coding->carryover_bytes to 0.
3118 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
3121 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3123 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
3125 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
3127 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
3129 2009-06-30 Jason Rumney <jasonr@gnu.org>
3131 * w32term.c (w32_initialize): Use GetModuleHandle for library that
3133 Set user model ID if supported (bug#1849).
3135 2009-06-29 Jim Meyering <meyering@redhat.com>
3137 Remove useless if-before-xfree test.
3138 * nsfont.m (nsfont_close): Remove useless test.
3139 * term.c (delete_tty): Likewise.
3140 * w32.c (system_process_attributes): Likewise.
3141 * w32font.c (w32font_close): Likewise.
3142 * xfaces.c (x_free_gc): Likewise.
3143 * xselect.c (buffer): Likewise.
3145 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
3147 * process.c (send_process): Keep decoded string in a local
3148 variable and protect it from GC. (Bug#3521)
3150 2009-06-28 Eli Zaretskii <eliz@gnu.org>
3152 * term.c (create_tty_output) [MSDOS]: #ifdef away.
3153 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
3155 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
3157 * xdisp.c (start_display, handle_face_prop)
3158 (move_it_vertically_backward, cursor_row_fully_visible_p)
3159 (redisplay_window, try_window_id, produce_image_glyph):
3160 Delete some #ifdef-ed out code chunks that are now obsolete.
3162 * xterm.c (x_update_window_begin, x_new_focus_frame)
3163 (x_scroll_bar_handle_click, handle_one_xevent)
3164 (handle_one_xevent, XTread_socket, x_focus_on_frame)
3165 (x_make_frame_visible, x_make_frame_invisible)
3166 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
3167 code chunks that are now obsolete.
3169 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
3171 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
3172 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
3173 for hours, when optimzation is enabled.
3174 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
3175 (xd_read_message): Make them static.
3177 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
3179 * term.c (turn_on_face): Allow simultaneously bold and dim
3180 terminal faces (Bug#3530).
3182 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
3184 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
3186 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
3187 truncation glyphs (Bug#3686).
3189 2009-06-27 Glenn Morris <rgm@gnu.org>
3191 * m/pmax.h: Restore file, with only netbsd portions.
3193 2009-06-26 David Reitter <david.reitter@gmail.com>
3195 * nsterm.m (keydown): Avoid infinite loop.
3197 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
3199 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
3200 the arg FORCE_SYMBOL.
3202 2009-06-25 Kenichi Handa <handa@m17n.org>
3204 * fontset.c (fontset_find_font): When a usable rfont_def is found
3205 in a fallback font-group, make it the first element of the group.
3207 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
3209 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
3211 2009-06-24 Kenichi Handa <handa@m17n.org>
3213 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
3215 (fontset_font): Record the availability of a font for C both in
3216 the realized fontsets of the current one and the default one.
3218 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
3220 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
3221 conditional, it is always defined on AIX.
3223 2009-06-23 Miles Bader <miles@gnu.org>
3225 * window.c (Vrecenter_redisplay): New variable.
3226 (syms_of_window): Initialize it.
3227 (Qtty): New extern declaration.
3228 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
3230 2009-06-23 Jim Meyering <meyering@redhat.com>
3232 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
3233 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
3234 pointer dereferences are guaranteed to be valid.
3236 2009-06-23 Kenichi Handa <handa@m17n.org>
3238 * emacs.c (main): Call init_font ().
3240 * font.h (Vfont_log): Extern it.
3241 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
3243 * font.c (font_sort_entities, font_list_entities)
3244 (font_matching_entity, font_open_entity)
3245 (font_close_object): Change font_add_log to FONT_ADD_LOG.
3246 (Vfont_log): Delete static.
3247 (font_log_env_checked): Delete this variable.
3248 (font_add_log): Don't check font_log_env_checked.
3249 (font_deferred_log): Check Vfont_log.
3250 (init_font): New function.
3252 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
3254 * w32font.c: Change font_add_log to FONT_ADD_LOG.
3256 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
3258 * xfont.c: Change font_add_log to FONT_ADD_LOG.
3260 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
3261 (face_for_char): Don't call font_deferred_log here.
3262 (font_for_char): Likewise.
3264 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
3266 * w32term.c (x_draw_glyph_string): Use the glyph string's width
3267 rather than its background_width for drawing the overline and
3268 underline (Bug#489).
3270 * xterm.c (x_draw_glyph_string): Use the glyph string's width
3271 rather than its background_width for drawing the overline and
3272 underline (Bug#489).
3273 (xg_default_icon_file): New variable.
3274 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
3275 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
3277 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
3278 (load_overlay_strings): Remove externs.
3279 (fast_find_position): Function deleted.
3280 (mouse_face_from_buffer_pos): New function, based on
3281 fast_find_position. Correctly handle before-strings,
3282 display-strings, and after-strings (Bug#1220).
3283 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
3285 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
3287 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
3288 (move_it_in_display_line_to, move_it_in_display_line_to)
3289 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
3291 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
3295 2009-06-21 Jason Rumney <jasonr@gnu.org>
3297 * w32term.c (keyboard_codepage): New static variable.
3298 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
3299 (w32_read_socket) [WM_CHAR]: Use it to decode character
3301 (w32_initialize): Initialize it.
3302 (codepage_for_locale): New function.
3304 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
3306 * process.c (status_message): Pass Faset index argument as a lisp
3307 object, so as to work with USE_LISP_UNION_TYPE.
3309 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3311 * coding.c (Ffind_coding_systems_region_internal):
3312 Cache checked characters.
3314 2009-06-18 Kenichi Handa <handa@m17n.org>
3316 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
3318 2009-06-18 Andreas Schwab <aschwab@redhat.com>
3320 * xdisp.c (redisplay_internal): Check that the frame is still
3321 live after redisplay of its windows.
3322 (redisplay_windows): Check that the window is still live.
3324 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
3326 * coding.c (detect_coding_utf_16): Fix previous change.
3328 2009-06-16 Kenichi Handa <handa@m17n.org>
3330 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
3331 UTF-16 by checking the dispersion of Eth and Oth bytes.
3333 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
3335 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
3337 2009-06-15 Kenichi Handa <handa@m17n.org>
3339 * process.c (status_message): Fix previous change. Be sure to
3340 decode a localized string.
3342 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3344 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
3345 add comment explaining why.
3347 2009-06-14 Sidney Markowitz <sidney@sidney.com>
3349 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
3351 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
3353 * nsfont.m (ns_attribute_value): Remove.
3354 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
3355 (ns_has_attribute): Shrink the normal range.
3356 (ns_findfonts): Don't worry about requested spec in determining
3358 (ns_get_covering_families): Retain scriptToFamilies.
3360 2009-06-14 Seiji Zenitani <zenitani@mac.com>
3362 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
3364 2009-06-11 Kenichi Handa <handa@m17n.org>
3366 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3367 overhang for the static composition case.
3369 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3371 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3372 overhang for the automatic composition case.
3374 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
3377 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
3379 * xdisp.c (get_next_display_element): When handling wrap-prefix
3380 and line-prefix, treat \n as a control character (bug#3502).
3382 2009-06-10 Kenichi Handa <handa@m17n.org>
3384 * font.c (font_parse_family_registry): Fix for one-char foundry.
3385 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
3387 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
3389 * process.c (status_message): Fix handling of multibyte signal
3392 2009-06-09 Jim Meyering <meyering@redhat.com>
3394 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
3395 color name is missing.
3397 2009-06-09 Kenichi Handa <handa@m17n.org>
3399 * charset.c (Fmap_charset_chars): In docstring, state clearly that
3400 FROM-CODE and TO-CODE are codepoints of CHARSET.
3402 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3404 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
3406 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3408 Changes to support :script/:lang/:otf in NS font driver.
3409 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
3410 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
3411 indicate not part of font driver interface, and change callers.
3412 (ns_get_family): Remove pointless null check.
3413 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
3414 ns_spec_to_descriptor, ns_descriptor_to_entity.
3415 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
3416 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
3417 (ns_spec_to_descriptor, ns_descriptor_to_entity)
3418 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
3419 (ns_get_req_script, ns_accumulate_script_ranges)
3420 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
3422 (nsfont_list, nsfont_match): Use ns_findfonts.
3423 (nsfont_open): Use font descriptor instead of traits.
3424 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
3425 (dump_glyphstring): Rename to ns_dump_glyphstring.
3427 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
3429 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
3431 * fontset.c (fontset_from_font): Remove NS-specific code.
3433 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
3435 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
3438 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
3440 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
3442 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
3444 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
3446 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
3448 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
3449 account for the overflowing of newlines into the last glyph on the
3450 display line (Bug#3482).
3452 2009-06-05 David Reitter <david.reitter@gmail.com>
3454 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
3455 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
3456 Fns_selection_exists_p, Fns_selection_owner_p.
3458 2009-06-03 Jason Rumney <jasonr@gnu.org>
3460 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
3461 available. (Bug#3379)
3463 2009-05-29 Kenichi Handa <handa@m17n.org>
3465 * coding.c (get_translation_table):
3466 Check Venable_character_translation.
3468 2009-05-26 David Reitter <david.reitter@gmail.com>
3470 * nsterm.m (ns_raise_frame): Only raise frame if visible.
3471 (x_make_frame_visible): Move frame to front rather than calling
3473 (keyDown:): Do not swallow events that aren't re-sent if frame
3475 (drawRect:): Do not set visibility/iconified flags because
3476 drawRect may be called by NSView even if the frame is hidden.
3478 * nsfns.m (Fx_create_frame): Follow other ports in
3479 determining visibility; default to t. Ensure async_visible is set.
3481 2009-05-23 Eli Zaretskii <eliz@gnu.org>
3483 * dired.c (Ffile_attributes): Doc fix.
3485 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
3487 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
3489 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
3491 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
3492 and xfont_scratch_props.
3493 (syms_of_xfont): Do it here instead.
3494 (xfont_find_ccl_program): Delete, unused.
3495 (xfont_open): Delete unused var `i'.
3497 2009-05-21 Kenichi Handa <handa@m17n.org>
3499 * fontset.c (Qlatin): Don't make it static.
3501 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
3503 (xfont_scripts_cache, xfont_scratch_props): New variables.
3504 (Qlatin, Vscalable_fonts_allowed): Extern it.
3505 (xfont_list_pattern): Argument changed. Callers changed.
3506 Check Vscalable_fonts_allowed. Check the support of a script.
3507 (xfont_list): Don't reject a font spec with :script property.
3508 (xfont_has_char): Fix setting of encoding.
3509 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
3510 xfont_scratch_props.
3512 2009-05-19 Kenichi Handa <handa@m17n.org>
3514 * font.c (font_sort_entities): Rename from font_sort_entites.
3517 2009-05-18 Kenichi Handa <handa@m17n.org>
3519 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
3521 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
3523 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
3524 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
3526 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3528 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
3529 (x_delete_terminal): Dissociate resource database from display and
3530 then call XrmDestroyDatabase before closing display.
3532 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
3534 * nsterm.m (ns_read_socket): Remove unused variable.
3535 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
3536 whether selected frame is viable before raising it (based on patch
3537 by David Reitter), and improve commentary.
3538 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
3540 2009-05-15 Kenichi Handa <handa@m17n.org>
3542 * font.c (Ffont_spec): Check arguments.
3544 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
3546 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
3547 weight when testing attributes (Bug#3282).
3549 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3551 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
3552 what we expect to get in the next ConfigureNotify event.
3554 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
3555 before Xft one (Bug#1696).
3557 2009-05-07 David Reitter <david.reitter@gmail.com>
3559 * nsfns.m (Fx_display_planes): Compute bitplanes using
3560 NSBitsPerPixelFromDepth (Bug#3207).
3562 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
3564 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
3566 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
3568 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
3570 2009-05-07 David Reitter <david.reitter@gmail.com>
3572 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
3573 Respect mouse face background.
3575 2009-05-07 David Reitter <david.reitter@gmail.com>
3577 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
3578 Mouse movement/highlight: bracket drawing operations
3579 in ns_update_begin and ns_update_end.
3581 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3583 * nsfns.m (ns_get_screen): Rewrite.
3584 Don't presume selected-frame is of type `ns'.
3586 * font.c (font_update_drivers): Sanity fallback to avoid disabling
3589 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
3591 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3593 * keyboard.h (add_user_signal): Fix typo in extern.
3595 * lisp.h (add_user_signal): Remove extern.
3597 * unexelf.c (unexec): Consider a section to precede the .bss section
3598 if its addresses overlap that of .bss.
3599 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
3600 instead of dumping process.
3602 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3604 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
3606 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3608 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
3610 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3612 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
3615 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
3617 * process.c (read_process_output): Make sure the current buffer is
3620 * coding.c (record_conversion_result): Don't modify
3621 Vlast_code_conversion_error for successful result.
3622 (alloc_destination): Don't clobber conversion result. (Bug#1650)
3624 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
3626 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
3627 (load_charset_map): Remove unnecessary code.
3629 2009-04-30 David Reitter <david.reitter@gmail.com>
3631 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
3634 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
3636 * xfaces.c (face_at_buffer_position): New arg base_face_id.
3638 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
3639 face_at_buffer_position.
3640 (face_before_or_after_it_pos, get_next_display_element)
3641 (note_mouse_highlight): Update face_at_buffer_position call.
3643 * term.c (term_mouse_highlight):
3644 * msdos.c (IT_note_mouse_highlight):
3645 * fontset.c (Finternal_char_font):
3646 * font.c (font_at, font_range): Update face_at_buffer_position call.
3648 * dispextern.h (face_at_buffer_position): Update prototype.
3650 2009-04-30 Kenichi Handa <handa@m17n.org>
3652 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
3654 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
3656 * callproc.c (Fcall_process): Fix GC protection. Make sure
3657 current buffer is always restored.
3659 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3661 * atimer.c (init_atimer): Also clear stopped_atimers.
3663 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
3665 * process.c (create_process): Clean up merger residues of
3668 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
3670 * lread.c (Vread_circle): New variable.
3671 (read1): Disable recursive read if Vread_circle is nil.
3673 2009-04-29 Kenichi Handa <handa@m17n.org>
3675 * fontset.h (set_default_ascii_font): Delete extern.
3677 * fontset.c (set_default_ascii_font): Delete this unused function.
3679 * frame.c (x_set_font): When ARG is a font-object, check if the
3680 font-object matches with the ASCII font-spec of the frame's
3681 fontset. If not, create a new fontset for the frame. (Bug #3075)
3683 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
3685 * fns.c (Flocale_info): Protect vector from GC during decoding.
3687 * process.c (Fstart_process): Protect argv strings from GC during
3690 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
3692 * sysdep.c: Include <ctype.h>.
3694 2009-04-27 David Reitter <david.reitter@gmail.com>
3696 * nsfont.m (nsfont_open): Remove unused variable shrink.
3697 Remove commented-out code.
3699 2009-04-26 Johan Bockgård <bojohan@gnu.org>
3701 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
3703 2009-04-25 Jason Rumney <jasonr@gnu.org>
3705 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
3707 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3709 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
3710 Swap bytes in short integer if fringe bitmap width > 8.
3712 2009-04-23 Kenichi Handa <handa@m17n.org>
3714 * xfaces.c (Fx_list_fonts): If a font size is specified in
3715 PATTERN, set it in returned scalable fonts.
3717 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
3719 * keyboard.c (Fset_input_meta_mode): Doc fix.
3721 * dispnew.c (Fsend_string_to_terminal): Doc fix.
3723 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
3725 * coding.c (Fterminal_coding_system): Doc fix.
3727 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
3728 (Fx_display_pixel_height, Fx_display_planes)
3729 (Fx_display_color_cells, Fx_server_max_request_size)
3730 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
3731 (Fx_display_mm_height, Fx_display_mm_width)
3732 (Fx_display_backing_store, Fx_display_visual_class)
3733 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
3734 Doc fixes, replacing "terminal id" with "terminal object".
3735 (check_x_display_info): Handle terminal objects instead of
3738 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
3739 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
3740 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
3741 Doc fixes, replacing "terminal id" with "terminal object".
3743 2009-04-21 Kenichi Handa <handa@m17n.org>
3745 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
3746 (font_score): Check AVGWIDTH too.
3748 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
3750 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
3751 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
3753 2009-04-19 Jason Rumney <jasonr@gnu.org>
3755 The following changes fix Bug#3005 for wide glyphs on each platform,
3756 without reintroducing Bug#1258 for stretch glyphs.
3758 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
3759 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
3760 get_phys_cursor_geometry.
3762 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
3763 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
3764 using get_phys_cursor_geometry.
3766 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
3767 correctly calculated.
3769 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
3771 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
3772 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
3773 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
3776 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
3778 * font.c (font_put_frame_data): Use xfree instead of free.
3780 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
3782 * w32font.c (Qja, Qko): Remove declarations.
3783 (syms_of_w32font): Don't DEFSYM them.
3785 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
3787 * font.c (Qja, Qko): Move definitions here from ftfont.c.
3789 * font.h (Qja, Qko): Extern them.
3791 * ftfont.c (Qja, Qko): Remove declarations.
3793 * xfont.c (Qja, Qko): Remove declarations.
3795 2009-04-17 Kenichi Handa <handa@m17n.org>
3797 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
3798 string from a vector to handle Latin-1 characters correctly.
3800 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
3801 entity even if the cache hits.
3803 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
3805 * search.c (boyer_moore): Use zero as marker value for a possible
3806 match instead of depending on overflow behavior. (Bug#2844)
3808 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
3809 * lisp.h: Adjust prototypes.
3811 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
3813 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
3816 2009-04-16 Kenichi Handa <handa@m17n.org>
3818 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
3820 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
3823 * ftfont.c (Qja, Qko): Don't make them static.
3824 (enum ftfont_cache_for): New enum.
3825 (fc_charset_table): Undo the previous change.
3826 (ftfont_get_latin1_charset): Delete it.
3827 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
3828 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
3829 non-scarable font, try to get AVERAGE_WIDTH.
3830 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
3831 Change ft_face_cache from a list of a hash-table. Don't check
3832 `ja' and `ko' adstyle here.
3833 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
3834 FTFONT_CACHE_FOR_CHARET.
3835 (ftfont_get_charset): Undo the previous change.
3836 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
3837 (ftfont_close): Likewise.
3838 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
3840 * font.c (font_sort_entites): Change the meaning of the arg
3841 BEST-ONLY. Don't optimize for VEC of lenght 1.
3842 (font_select_entity): Just return the value of font_sort_entites.
3844 * xfaces.c (merge_face_vectors): Reflect font properties in
3845 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
3846 font_clear_prop if a face attribute doesn't change.
3848 * charset.h (charset_ksc5601): Extern it.
3850 * charset.c (charset_ksc5601): New variable.
3851 (Fdefine_charset_internal): Set charset_ksc5601.
3852 (init_charset_once): Initialize charset_ksc5601 to -1.
3854 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3856 * fileio.c (history_delete_duplicates): Remove unused declaration.
3858 * callint.c (history_delete_duplicates): New declaration.
3859 (Fcall_interactively): Remove command history duplicates when
3860 history_delete_duplicates is true.
3862 2009-04-14 Eli Zaretskii <eliz@gnu.org>
3864 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
3866 2009-04-14 Kenichi Handa <handa@m17n.org>
3868 * font.c (Ffont_info): Fix docstring. Fix the second element of
3869 the returned value (bug#2949).
3871 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
3873 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
3875 2009-04-14 Kenichi Handa <handa@m17n.org>
3877 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
3878 encoding charset is ascii_compatible.
3880 * charset.c (Fdefine_charset_internal): Make charset
3881 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
3882 code_offset is 0, and covers all ASCII characters.
3884 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3886 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
3887 (ns_string_to_pasteboard_internal):
3888 * nsmenu.m (process_dialog):
3889 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
3890 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
3891 * lisp.h (Fx_load_color_file): Declare.
3893 2009-04-13 Kenichi Handa <handa@m17n.org>
3895 * font.c (font_delete_unmatched): Preserve the order of list elements.
3896 (font_select_entity): Suppress the code to optimize for the same
3898 (font_load_for_lface): Get a font that supports at least ASCII
3901 * ftfont.c (Qja, Qko): New variables.
3902 (fc_charset_table): Delete uniquifier data for iso8859-1.
3903 (ftfont_get_latin1_charset): New function.
3904 (get_adstyle_property): New function.
3905 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
3907 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
3908 Delete iso-8859-1 range from the charset of fonts whose adstyle is
3910 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
3911 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
3912 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
3914 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
3915 (syms_of_ftfont): DEFSYM Qja and Qko.
3917 2009-04-09 Kenichi Handa <handa@m17n.org>
3919 * charset.c (map_charset_chars): For a charset of `superset'
3920 method, fix calculation of code range.
3922 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
3923 from the list of extra properties.
3924 (font_clear_prop): Be sure to delete `:name' font property.
3926 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3928 * dispnew.c (redraw_overlapping_rows): Fix detection of
3929 overlapping for topmost and bottommost rows.
3931 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
3933 2009-04-06 Jason Rumney <jasonr@gnu.org>
3935 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
3937 2009-04-06 Kenichi Handa <handa@m17n.org>
3939 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
3941 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
3943 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3945 * ftfont.c (ftfont_open): Fix checking of the return value of
3946 FT_Load_Char. Fix setting font->underline_thickness.
3948 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
3950 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
3951 (Fterminal_parameters, Fterminal_parameter)
3952 (Fset_terminal_parameter): In doc string, refer to terminal
3953 objects rather than terminal ids.
3955 2009-04-04 Eli Zaretskii <eliz@gnu.org>
3957 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
3958 ret_lim_data. (Bug#2867)
3960 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
3962 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
3963 so they don't get wider than the window, matching 2006-01-23
3964 change to the partner function in xdisp.c (Bug#2800).
3966 2009-04-03 Kenichi Handa <handa@m17n.org>
3968 * print.c (print_object): Make each lowest sub_char_table start a
3969 new line (Bug#2866).
3971 2009-04-02 Kenichi Handa <handa@m17n.org>
3973 * fontset.c (fontset_font): Record no-font when a fontset
3974 explicitly tells not to try another font-specs.
3976 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
3978 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
3980 2009-03-30 Kenichi Handa <handa@m17n.org>
3982 * fontset.c (fontset_from_font): Specify only registry in a
3983 font-spec for all characters supported by that registry.
3985 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
3986 even if HAVE_M17N_FLT is not defined.
3988 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
3990 * ftfont.c: Conditionalize prototyping and use of
3991 ftfont_variation_glyphs.
3993 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
3995 * frame.c (delete_frame): Work around compiler bug.
3997 * editfns.c (general_insert_function): Adjust to insdel.c changes.
3998 * insdel.c (prepare_to_modify_buffer, signal_before_change):
3999 Some more EMACS_INT.
4000 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
4002 * xdisp.c (dump_glyph): Fix typo.
4004 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
4005 (adjust_markers_gap_motion, adjust_markers_for_delete)
4006 (adjust_markers_for_insert, adjust_point)
4007 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
4008 (make_gap, copy_text, count_size_as_multibyte, insert)
4009 (insert_and_inherit, insert_before_markers)
4010 (insert_before_markers_and_inherit, insert_1)
4011 (count_combining_before, count_combining_after, insert_1_both)
4012 (insert_from_string, insert_from_string_before_markers)
4013 (insert_from_string_1, insert_from_gap, insert_from_buffer)
4014 (insert_from_buffer_1, adjust_after_replace)
4015 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
4016 (replace_range_2, del_range, del_range_1, del_range_byte)
4017 (del_range_both, del_range_2, modify_region)
4018 (prepare_to_modify_buffer, signal_before_change)
4019 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
4020 for buffer positions and sizes.
4021 * lisp.h: Adjust prototypes accordingly.
4023 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
4024 (non_regular_inserted, non_regular_nbytes, read_non_regular)
4025 (Finsert_file_contents): Use EMACS_INT for buffer positions.
4027 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
4029 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
4031 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
4032 lines and columns so we keep the same pixel height and width.
4034 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
4035 the property _NET_WM_STATE has changed.
4036 (x_handle_net_wm_state): New function to update frame parameter
4038 (x_term_init): Initialize atoms for _NET_WM_STATE.
4040 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
4042 2009-03-27 Kevin Ryde <user42@zip.com.au>
4044 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
4045 Gpm_GetEvent as an error that justifies closing the filedescriptor.
4046 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
4047 (Fgpm_mouse_stop): Pass that new parameter.
4048 * termhooks.h (close_gpm): Adjust prototype.
4050 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
4052 * lisp.h (Fx_focus_frame): Declare.
4054 * callint.c (Fcall_interactively): For '^' just delegate the work to
4055 handle-shift-selection.
4056 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
4058 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
4060 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
4062 * data.c (Qinteractive_form): New variable.
4063 (Finteractive_form): Use it.
4065 * eval.c (Fcommandp): Use Qinteractive_form.
4067 2009-03-24 Jason Rumney <jasonr@gnu.org>
4069 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
4070 Calculate total size precisely. Decode environment variables
4071 before substituting. (Bug#38)
4073 2009-03-24 Kenichi Handa <handa@m17n.org>
4075 * font.c (find_font_encoding): Return Qnil for unsupported
4076 encoding (Bug#2722).
4078 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
4080 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
4083 2009-03-22 Alan Mackenzie <acm@muc.de>
4085 * callint.c (Finteractive): Clarify the doc string - even
4086 promptless elements need \n separators.
4088 2009-03-22 Jason Rumney <jasonr@gnu.org>
4090 * w32term.c (syms_of_w32term): Doc fix for
4091 x-use-underline-position-properties.
4093 2009-03-21 Eli Zaretskii <eliz@gnu.org>
4095 * w32.c (getpwuid): Change argument type to unsigned.
4096 (struct w32_id): Change type of `rid' member to unsigned.
4097 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
4098 argument ID to unsigned. All callers changed.
4099 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
4101 2009-03-20 Eli Zaretskii <eliz@gnu.org>
4103 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
4104 negative, produce a float value.
4106 * dired.c (make_uid, make_gid): New functions.
4107 (Ffile_attributes): Use them to avoid negative UID and GID.
4109 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
4111 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
4112 (syms_of_keyboard) <command-hook-internal, input-method-function>:
4113 Fix typos in docstrings.
4115 2009-03-19 Kenichi Handa <handa@m17n.org>
4117 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
4118 changed, use font_load_for_lface to get a new font object.
4119 Call free_realized_fontset after handling ASCII font change.
4121 * frame.c (x_set_font): Handle the case that ARG is a cons.
4123 2009-03-19 Glenn Morris <rgm@gnu.org>
4125 * fileio.c (Fsubstitute_in_file_name): Doc fix.
4127 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
4129 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
4131 2009-03-19 Kenichi Handa <handa@m17n.org>
4133 * charset.c (load_charset_map_from_file): When a mapfile can't be
4134 loaded, signal an error.
4136 2009-03-18 Eli Zaretskii <eliz@gnu.org>
4138 * dired.c (Ffile_attributes): Make sure UID and GID are always
4139 positive, even if the value is too large for a positive EMACS_INT.
4142 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
4144 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4146 * xmenu.c (xdialog_show): Move Fredisplay call ...
4147 (Fx_popup_dialog): ... here.
4149 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
4151 * dired.c (file_name_completion): Disable the first optimization just
4152 installed, since it is not implemented correctly.
4154 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4156 * dired.c (file_name_completion): Check completion-ignored-extensions
4157 only if the entry can affect bestmatch.
4158 Stop the search early, as Ftry_completion already does.
4160 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
4162 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
4164 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
4166 * keyboard.c (parse_menu_item): Don't display remappings as menu
4167 equivalent bindings (Bug#788).
4169 2009-03-15 Jason Rumney <jasonr@gnu.org>
4171 * w32term.h (WM_EMACS_PAINT): New message.
4172 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
4173 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
4174 before passing to lisp thread. (Bug#950)
4176 2009-03-14 David Reitter <david.reitter@gmail.com>
4178 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
4179 variable as it was never reset.
4180 (ns_term_init): Remove initialization of Lisp-settable defaults
4181 and ns_expand_space.
4182 (-setPanelFromDefaultValues): Remove ns_expand_space.
4183 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
4184 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
4185 i.e. no additional spacing, similar to Carbon port.
4187 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
4188 * nsfns.m (ns-popup-prefs-panel): Remove.
4190 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
4192 * sound.c (alsa_configure): Remove call to deprecated
4193 snd_pcm_sw_params_set_xfer_align.
4195 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
4197 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
4198 after clicking in a detached tool bar.
4199 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
4201 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
4203 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
4204 int/Lisp_Object mixup).
4206 2009-03-13 Kenichi Handa <handa@m17n.org>
4208 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
4209 Handle NAME nil and t correctly. Callers changed.
4210 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
4211 (set_fontset_font): Change ARG to a vector. Handle range_list in
4213 (Fset_fontset_font): Fix the case that TARGET is both a script
4214 name and charset name. Adjust the arg to set_fontset_font for
4216 (fontset_from_font): Fix previous change.
4217 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
4218 entry. If FONTSET is the default fontset, don't set the extra
4219 slot of the returning char-table.
4221 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
4223 * nsfns.m (Fx_close_connection): Doc fix.
4224 (Fns_do_applescript): Reflow docstring.
4225 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
4226 (Fx_display_pixel_width, Fx_display_pixel_height)
4227 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
4228 Fix typos in docstrings.
4229 (Fns_set_alpha): Fix typos in error messages.
4231 2009-03-12 David Reitter <david.reitter@gmail.com>
4233 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
4234 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
4235 were used for such events.
4237 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
4238 (toggleToolbar, performDragOperation, runHelp): Use it.
4240 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
4241 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
4243 2009-03-11 Kenichi Handa <handa@m17n.org>
4245 * font.h (font_open_by_spec): Extern it.
4247 * font.c (font_open_by_spec): New function.
4248 (font_open_by_name): Use font_open_by_spec.
4250 * frame.c (x_set_font): When ARG is a font-object, don't alter the
4251 fontset of the frame.
4253 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
4254 modify the default font of frames that use this fontset.
4255 (num_auto_fontsets): New variable.
4256 (fontset_from_font): Use num_auto_fontsets to decide a fontset
4257 name. Be sure to set FONTSET_ASCII to the correct font name.
4258 (update_auto_fontset_alist): New function.
4260 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
4262 * makefile.w32-in: Update dependencies.
4264 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4266 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
4268 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4270 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
4272 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
4274 * lread.c (Feval_buffer): Doc fix.
4276 2009-03-09 Kenichi Handa <handa@m17n.org>
4278 * charset.c (Qfile_name_handler_alist): Extern it.
4279 (load_charset_map_from_file): Temporarily bind
4280 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
4282 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
4284 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
4285 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
4287 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4289 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
4290 (x_set_window_size): Change back to calculated method of setting
4291 toolbar height under Cocoa. (Bug#2546)
4292 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
4293 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
4295 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
4297 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
4298 accelerator in parens under GNUstep.
4300 2009-03-06 Kenichi Handa <handa@m17n.org>
4302 These changes are to detect incorrect composition sequence without
4303 looking ahead the source. (Bug#2370)
4305 * coding.h: Include "composite.h".
4306 (enum compisition_state): New enum.
4307 (struct compisition_status): New struct.
4308 (struct iso_2022_spec): New member cmp_status.
4309 (struct emacs_mule_spec): New struct.
4310 (struct coding_system): New members ctext_extended_segment_len and
4311 embedded_utf_8. Change the union member
4312 spec.emacs_mule_full_support to spec.emacs_mule.
4314 * coding.c (CODING_ISO_CMP_STATUS): New macro.
4315 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
4316 (MAX_ANNOTATION_LENGTH): Define to 5.
4317 (ADD_COMPOSITION_DATA): New arg nbytes.
4318 (emacs_mule_char): New arg cmp_status.
4319 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
4320 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
4321 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
4322 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
4323 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
4324 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
4325 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
4326 (EMACS_MULE_COMPOSITION_END): New macro.
4327 (emacs_mule_finish_composition): New function.
4328 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
4329 (decode_coding_emacs_mule): Avoid long looking ahead while
4330 handling composition.
4331 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
4332 (ENCODE_COMPOSITION_RULE): New macro.
4333 (finish_composition): New function.
4334 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
4335 (DECODE_COMPOSITION_START): New implementation.
4336 (DECODE_COMPOSITION_END): Likewise.
4337 (STORE_COMPOSITION_RULE): New macro.
4338 (decode_coding_iso_2022): Avoid long looking ahead while handling
4339 composition, CTEXT extended segment, and embedded UTF-8.
4340 (setup_coding_system): For a coding of type iso-2022, reset
4341 CODING_ISO_EXTSEGMENT_LEN (coding) and
4342 CODING_ISO_EMBEDDED_UTF_8 (coding).
4343 (get_translation): Delete arguments last_block, from_nchars,
4344 to_nchars. Callers changed.
4345 (produce_chars): Don't modify charbuf. Adjusted for the change of
4347 (produce_composition): Adjust for the new annotation sequence.
4348 (handle_composition_annotation): Likewise.
4349 (consume_chars): Adjust for the change of get_translation.
4351 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
4353 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
4355 2009-03-05 Kenichi Handa <handa@m17n.org>
4357 * font.c (font_select_entity): New function.
4358 (font_find_for_lface): Use font_select_entity to select a font.
4360 * fontset.c (fontset_find_font): If a font found without
4361 restricting to the characters C doesn't support C, try to find a
4362 font with C restriction.
4364 2009-03-04 Nikolaj Schumacher <me@nschum.de>
4366 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
4368 2009-03-04 Jason Rumney <jasonr@gnu.org>
4370 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4371 characters that have already been read. (Bug#2569)
4373 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
4374 Log an error message if check_image_size failed.
4375 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4376 (gs_load): Mention max-image-size in size error message. (Bug#2560)
4378 2009-03-02 Eli Zaretskii <eliz@gnu.org>
4380 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
4381 when decoding process output.
4383 2009-03-01 Richard M Stallman <rms@gnu.org>
4385 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
4387 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
4389 2009-02-28 Eli Zaretskii <eliz@gnu.org>
4391 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
4392 (decode_coding_emacs_mule, decode_coding_iso_2022)
4393 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4394 (decode_coding_raw_text, decode_coding_charset)
4395 (setup_coding_system, decode_eol, decode_coding, consume_chars):
4396 Honor inhibit-eol-conversion. (Bug #2186)
4398 2009-02-28 Jason Rumney <jasonr@gnu.org>
4400 * coding.c (detect_coding_charset): If not checking latin extra,
4401 fail on characters between 0x80 and 0xA0. (Bug#2354)
4403 2009-02-28 Eli Zaretskii <eliz@gnu.org>
4405 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
4406 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
4408 2009-02-27 Glenn Morris <rgm@gnu.org>
4410 * callint.c (Finteractive): Doc fix.
4412 2009-02-27 Kenichi Handa <handa@m17n.org>
4414 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
4416 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
4418 * font.c (font_style_to_value): Set value for unknown symbols to
4420 (weight_table, slant_table, width_table): Treat "unspecified" as
4423 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
4425 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
4427 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
4429 * lread.c (Fload): Stop checking Vloads_in_progress and signal
4430 error as soon as a recursive load is detected.
4432 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4434 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
4437 2009-02-24 Kenichi Handa <handa@m17n.org>
4439 * fontset.c (fontset_find_font): Fix the condition for checking
4442 2009-02-24 Glenn Morris <rgm@gnu.org>
4444 * xfaces.c (Finternal_set_font_selection_order): Remove leading
4445 whitespace that confuses documentation.
4447 2009-02-23 Miles Bader <miles@gnu.org>
4449 * process.c (Flist_system_processes, Fprocess_attributes)
4450 (syms_of_process): Rename `system-process-attributes' to
4451 `process-attributes'.
4453 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
4455 * coding.h (struct coding_system): Make safe_charsets a pointer to
4457 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
4459 (SAFE_CHARSET_P): Likewise.
4460 (setup_iso_safe_charsets): Properly setup safe_charsets.
4461 (Fdefine_coding_system_internal): Likewise.
4462 (setup_coding_system): Likewise. Remove unneeded casts.
4463 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
4464 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
4467 * insdel.c (del_range_2): Don't modify gap contents when called
4468 from decode_coding_object. (Bug#1809)
4470 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
4472 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
4474 (Ftype_of): Recognize font objects.
4476 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
4478 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
4481 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4483 * nsterm.m (x_make_frame_invisible): Unset async_visible,
4484 async_iconified. Based on a patch by Christian Lynbech
4485 <christian.lynbech@tieto.com>.
4486 (EmacsView-windowDidMiniaturize:): Unset async_visible.
4488 2009-02-20 Glenn Morris <rgm@gnu.org>
4490 * syntax.c (Fskip_chars_forward): Fix doc typo.
4492 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
4494 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
4496 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
4498 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
4500 2009-02-19 Kenichi Handa <handa@m17n.org>
4502 * coding.c (detect_coding): Preserve coding->mode.
4503 Don't overflow coding->carryover. (Bug#2370)
4505 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
4507 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
4509 2009-02-18 Kenichi Handa <handa@m17n.org>
4511 * font.c (font_check_otf_features): Fix handling of `nil' element.
4512 (Ffont_spec): Describe :lang and :otf in the docstring.
4514 2009-02-16 Andreas Schwab <schwab@suse.de>
4516 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
4519 2009-02-16 Kenichi Handa <handa@m17n.org>
4521 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
4524 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
4526 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
4528 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
4529 (handle_line_prefix): Suppress wrapping of wrap prefixes.
4531 2009-02-14 Eli Zaretskii <eliz@gnu.org>
4533 * msdos.c (MAX_SCREEN_BUF): New macro.
4534 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
4535 Encode the entire run of glyphs sharing the same face, instead of
4536 doing that one glyph at a time (fixes a bug with displaying
4537 double-size characters).
4539 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
4541 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
4543 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
4544 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
4545 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
4547 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
4548 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
4550 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
4552 * keyboard.c (adjust_point_for_property): Allow stopping between two
4555 2009-02-12 Jason Rumney <jasonr@gnu.org>
4557 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
4558 (add_font_entity_to_list): Call check_face_name even when family
4561 * w32term.c (x_display_pixel_height, x_display_pixel_width):
4562 Release DC when finished. Use NULL window to refer to desktop.
4563 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
4565 * w32font.c (add_font_entity_to_list): Fix check for substituted
4566 raster fonts. (Bug#2219)
4568 2009-02-12 Kenichi Handa <handa@m17n.org>
4570 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
4571 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
4572 (autocmp_chars): Use fast_looking_at. Don't compose more
4573 characters than MAX_COMPOSITION_COMPONENTS.
4574 (find_automatic_composition): While looking forward and backward,
4575 check static composition. Fix where to stop looking forward.
4576 (composition_adjust_point): Fix checking of static composition.
4577 (Fcomposition_get_gstring): Pay attention to
4578 MAX_COMPOSITION_COMPONENTS.
4580 * lisp.h (fast_looking_at): Extern it.
4582 * search.c (fast_looking_at): New function.
4584 * term.c (encode_terminal_code): Adjust for the change of
4585 <struct glyph>.u.cmp.to.
4586 (append_composite_glyph): Likewise.
4588 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
4589 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
4591 (append_composite_glyph): Adjust for the change of
4592 <strcut glyph>.u.cmp.to.
4594 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
4596 * casetab.c (init_casetab_once):
4597 * coding.c (ALLOC_CONVERSION_WORK_AREA):
4598 * font.c (font_update_lface):
4599 * fontset.c (Fnew_fontset):
4600 * ftfont.c (ftfont_drive_otf):
4601 * xfont.c (xfont_open):
4602 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
4604 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
4606 * fileio.c (Fwrite_region): !NILP -> CONSP.
4608 2009-02-10 Andreas Schwab <schwab@suse.de>
4610 * process.c (send_process): Properly relocate pointer into data
4611 when using encoded data. (Bug#2272)
4613 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
4615 * coding.c (detect_coding_charset): Fix previous change.
4617 2009-02-08 Jason Rumney <jasonr@gnu.org>
4619 * w32fns.c (w32_hide_hourglass): Handle case where frame
4620 disappeared while hourglass was displayed. (Bug #2193)
4622 2009-02-07 Andreas Schwab <schwab@suse.de>
4624 * unexelf.c (unexec): Fix error message.
4626 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
4628 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
4629 when modal window is active. (Bug #2152)
4630 (applicationShouldTerminate:): Remove now-unneeded while loop
4631 around NSRunAlertPanel.
4633 * nsmenu.m (popupSession): New file-global variable.
4634 (pop_down_menu): End the popupSession before closing dialog.
4635 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
4636 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
4637 don't query NSApp for events (just sleep instead).
4639 2009-02-07 Eli Zaretskii <eliz@gnu.org>
4641 * coding.c (syms_of_coding) <translation-table-for-input>:
4642 Modify doc string to discourage use for character code unification.
4644 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4646 * atimer.c (run_timers): Update pending_atimers.
4648 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
4650 * image.c (svg_load_image): Fix last change.
4652 * xfns.c (Fx_create_frame): Signal an error if no font is
4655 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
4657 * character.c (syms_of_character) <script-representative-chars>:
4658 Fix typo in docstring.
4660 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4662 * nsmenu.m (pop_down_menu): New function.
4663 (ns_popup_dialog): Call it on unwind.
4664 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
4665 call timer_check() (Bug#2154).
4666 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
4667 handling_signal is set.
4668 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
4670 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
4672 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
4674 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
4676 * keyboard.c (poll_for_input_1, handle_async_input):
4677 Set handling_signal under HAVE_NS.
4679 2009-02-04 Glenn Morris <rgm@gnu.org>
4681 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
4683 2009-02-04 Kenichi Handa <handa@m17n.org>
4685 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
4687 * charset.c (Fchar_charset): New optional arg restriction.
4689 * coding.h (coding_system_charset_list): Extern it.
4691 * coding.c (coding_system_charset_list): New function.
4693 * composite.c: Include coding.h and termhooks.h.
4694 (composition_gstring_p): Fix for the terminal case.
4695 (composition_gstring_width): Likewise.
4696 (fill_gstring_body): Likewise.
4697 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
4699 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
4700 is within a composition.
4701 (Fcomposition_get_gstring): Fix the terminal case.
4703 * term.c (encode_terminal_code): Fix handling of composition.
4704 (produce_composite_glyph): For static composition, get pixel_width
4705 from struct composition.
4707 2009-02-02 Andreas Schwab <schwab@suse.de>
4709 * unexelf.c (unexec): Handle unaligned bss offset.
4711 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4713 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
4714 XT,w32read_socket changes to ns_read_socket.
4716 * keyboard.c (handle_interrupt): Don't call
4717 quit_throw_to_read_char() under NS.
4719 * blockinput.h: Remove NS-specific code.
4721 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
4723 * dispnew.c (window_change_signal): Don't try to get the size of a
4724 suspended tty frame.
4725 * term.c (Fresume_tty): Resize if the size has changed while the
4728 * alloc.c (mark_stack): Properly conditionalize previous change.
4730 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
4732 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
4733 * w32term.c (w32_read_socket) [SYNC_INPUT]:
4734 Remove; this code is not used on Windows.
4736 2009-01-30 Eli Zaretskii <eliz@gnu.org>
4738 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
4739 EOLs that also has stray ^M characters.
4741 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
4743 * atimer.c (run_timers, alarm_signal_handler):
4744 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
4745 * w32inevt.c (w32_console_read_socket):
4746 * w32term.c (w32_read_socket):
4747 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
4749 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
4751 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
4752 Initialize it as a relative filename pattern.
4753 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
4754 (Fcall_process_region): Simplify temp file creation using
4755 temporary-file-directory.
4757 2009-01-29 Eli Zaretskii <eliz@gnu.org>
4759 * msdos.c: Rename pending_signals to msdos_pending_signals.
4760 (sig_suspender, sigprocmask): Adjust.
4762 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
4764 * keyboard.c (pending_signals): New var.
4765 (poll_for_input, input_available_signal, init_keyboard): Set it.
4766 (process_pending_signals): New function.
4768 * lisp.h (QUIT): Check pending_signals instead of
4769 interrupt_input_pending. Use process_pending_signals.
4771 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
4773 * process.c (wait_reading_process_output): Use process_pending_signals.
4775 * sysdep.c (emacs_write): Use process_pending_signals.
4777 * xterm.c (XTread_socket): Update pending_signals.
4779 * w32term.c (w32_read_socket): Update pending_signals.
4781 * w32inevt.c (w32_console_read_socket): Update pending_signals.
4783 2009-01-29 Kenichi Handa <handa@m17n.org>
4785 * xftfont.c (xftfont_has_char): New function.
4786 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
4788 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4790 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
4792 (ns_query_color): New declaration.
4794 * nsterm.m (ns_confirm_quit): New variable.
4795 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
4796 (EmacsApp-applicationShouldTerminate:): Use it.
4797 (EmacsPrefsController): Let user set it.
4798 (ns_query_color): New function.
4799 (ns_defined_color): Use it.
4800 (ns_initialize): Drop.
4801 (ns_term_init): Add two lines from ns_initialize(), and set
4802 input_interrupt_mode to nil.
4804 * image.c (svg_load_image): Don't right-shift background RGB when
4805 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
4807 2009-01-28 Kenichi Handa <handa@m17n.org>
4809 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
4810 (fontset_get_font_group): Remember that no font-group is specified
4813 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
4815 * fns.c (concat): Check for string overflow (bug#1787).
4817 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
4818 Quadruple undo limits (bug#1501).
4820 2009-01-27 Kenichi Handa <handa@m17n.org>
4822 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
4823 directly use GT_Get_Char_index.
4825 * xftfont.c (struct xftfont_info): New member `index'.
4827 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
4828 (Ffontset_font): Adjust for the change of fontset entry.
4830 2009-01-26 Kenichi Handa <handa@m17n.org>
4832 * fontset.c (fontset_find_font): Fix handling of non-cons return
4833 value of fontset_get_font_group.
4834 (fontset_font): Revert last change.
4836 2009-01-26 Jason Rumney <jasonr@gnu.org>
4838 * w32font.c (w32font_list_internal): Return quickly if registry is
4839 unknown. Simplify final return.
4840 (add_font_entity_to_list): Break complex logic down into more
4841 manageable chunks. Move unknown registry check to
4842 w32font_list_internal.
4844 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
4846 Changes to remove Feval calls from GUI under NS.
4848 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
4849 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
4850 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
4852 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
4853 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
4854 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
4855 instead of NON_ASCII_KEYSTROKE_EVENT.
4856 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
4857 (EmacsApp-applicationShouldTerminate:): Query user.
4858 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
4861 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
4863 * keyboard.c (kbd_buffer_get_event): Check for it.
4864 (keys_of_keyboard): Define lispy keys for
4865 ns-put/unput-working-text.
4867 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
4869 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
4871 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
4873 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
4874 setting current_buffer directly. (Bug#2044)
4876 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
4878 * fontset.c (fontset_font): If we know there is no font, don't do
4879 any work. (Bug#1952, bug#1990).
4881 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
4883 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4885 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
4886 (ns_no_defaults): New declaration.
4889 * nsterm.h (ns_no_defaults): New declaration.
4891 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
4893 * nsterm.m (ns_no_defaults): New variable.
4894 (ns_initialize): Don't read defaults when ns_no_defaults.
4895 (EmacsView-readSelectionFromPasteboard:)
4896 (writeSelectionToPasteboard:types:): New stubbed-out methods for
4897 NSServicesRequests protocol. (Bug#1435)
4898 (ns_dumpglyphs_stretch): New function.
4899 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
4900 of 2008-11-15 to other terms. (Bug#615)
4902 * nsimage.m (setPixmapData:): Set to ignore image DPI.
4904 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
4906 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
4909 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4916 * nsterm.m: Remove '23' comments that indicated code added during
4917 update from emacs-20 -> emacs-23.
4919 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4921 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
4922 ns_alternate_modifier. (Bug#1217)
4924 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
4925 Display all shortcuts, including those w/o super modifier.
4927 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
4929 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
4931 * fileio.c (Vwrite_region_post_annotation_function)
4932 (Vwrite_region_annotation_buffers): New vars.
4933 (build_annotations_unwind): Just reset
4934 Vwrite_region_annotation_buffers.
4935 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
4936 Call write-region-post-annotation-function.
4937 (build_annotations): Add to Vwrite_region_annotation_buffers if
4940 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4942 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
4944 * nsfns.m (ns_do_applescript):
4945 Conditionalize typeUTF16ExternalRepresentation on Tiger.
4947 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
4949 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
4951 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4953 * nsmenu.m (NSMENUPROFILE): Change #if style.
4955 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
4957 * nsterm.m (x_set_frame_alpha): Add prototype.
4958 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
4959 handle Ctrl-tab. (Bug#1841)
4960 (ns_get_color): Use unsigned long long for scanned hex string value.
4961 (ns_term_shutdown): Abort on non SIGTERM signals.
4962 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
4963 (EmacsPrefsController-setPanelFromDefaultValues): New function.
4964 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
4965 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
4966 (ns_defined_color): Fix settings of the XColor variable fields:
4967 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
4969 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
4971 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
4972 values in onTiger section.
4974 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
4976 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
4977 Check return value of font_spec_from_name.
4978 (Fx_list_fonts): Doc fix. (Bug#1951)
4980 * font.c (font_spec_from_name): Return Qnil if font name could not
4982 (font_parse_name): Treat a `?' character as part of an XLFD.
4984 * fns.c (Fsubstring): Doc fix.
4986 2009-01-19 Kenichi Handa <handa@m17n.org>
4988 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
4989 (ftfont_list): Likewise.
4991 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
4993 * dbusbind.c (Fdbus_register_signal):
4994 * process.c (conv_sockaddr_to_lisp):
4995 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
4997 * callproc.c (Fgetenv_internal): Doc fix.
4999 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
5001 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
5002 it is not even used.
5004 2009-01-16 Glenn Morris <rgm@gnu.org>
5006 * font.c (Ffont_variation_glyphs): Silence compiler.
5008 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
5010 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
5011 Reported by David Robinow <drobinow@gmail.com>.
5013 2009-01-15 Kenichi Handa <handa@m17n.org>
5015 * coding.c (detect_coding_system): Fix handling of null_byte_found.
5017 2009-01-14 Jason Rumney <jasonr@gnu.org>
5019 * frame.c (x_set_font): Always store a font to the font parameter,
5020 never a fontset. (Bug#1562)
5022 2009-01-14 Kenichi Handa <handa@m17n.org>
5024 * coding.c (TWO_MORE_BYTES): New macro.
5025 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
5027 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
5029 * font.c (font_clear_prop): If clearing the family, clear the font
5032 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
5034 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
5036 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
5037 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
5038 functions, use sizeof.
5040 2009-01-12 Martin Rudalics <rudalics@gmx.at>
5042 * keyboard.c (read_char): Fix case where last_nonmenu_event
5043 returned a bad value with submenus. (Bug#447)
5045 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
5047 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
5048 family, clear the font width index too.
5050 2009-01-11 Jason Rumney <jasonr@gnu.org>
5052 * keyboard.c (cmd_error_internal): Exit when errors occur before
5053 frame creation and not in daemon mode. (Bug#1836)
5055 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
5057 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
5058 of a display vector, backtrack.
5059 (try_window_reusing_current_matrix): Check glyph type before
5060 referencing charpos member.
5062 2009-01-10 Eli Zaretskii <eliz@gnu.org>
5066 * coding.c (inhibit_null_byte_detection): New variable.
5067 (detect_coding, detect_coding_system): Don't pay attention to null
5068 bytes if inhibit_null_byte_detection is non-zero.
5069 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
5070 <inhibit-iso-escape-detection>: Doc fix.
5072 2009-01-09 Jason Rumney <jasonr@gnu.org>
5074 * w32font.c (add_font_entity_to_list): Don't report unknown
5075 Windows charset as any unrecognized registry. (Bug#1548)
5076 Only report Unicode Plane 2 fonts as unicode-sip.
5078 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
5080 * xfaces.c (Fx_font_family_list): Delete function.
5081 Move compatibility version to faces.el.
5083 * font.c (Ffont_family_list): Return a list of strings, not symbols.
5085 2009-01-09 Martin Rudalics <rudalics@gmx.at>
5087 * frame.c (x_set_frame_parameters): Remember requested value for
5088 fullscreen before it's reset by the parameter handler.
5090 2009-01-09 Glenn Morris <rgm@gnu.org>
5092 * keyboard.c (last_command_char): For clarity, rename to...
5093 (last_command_event): ... and update all users.
5094 (last_input_char): For clarity, rename to...
5095 (last_input_event): ... and update all users.
5096 (last-command-char, last-input-char): Move to subr.el as aliases.
5097 * cmds.c, commands.h: Update for last_command_char rename.
5099 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
5101 * font.c (font_open_for_lface): Handle unspecified height attribute.
5103 2009-01-08 Jason Rumney <jasonr@gnu.org>
5105 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
5106 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
5107 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
5109 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5110 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
5112 2009-01-07 Kenichi Handa <handa@m17n.org>
5114 * fileio.c (Finsert_file_contents): In the case of replace,
5115 remember the coding system used for decoding in
5116 coding_system (Bug#1039).
5118 * coding.c (decode_coding_utf_8): Check byte_after_cr before
5119 breaking the loop. (Bug#870)
5120 (decode_coding_utf_16, decode_coding_emacs_mule)
5121 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5122 (decode_coding_charset): Likewise.
5124 2009-01-05 Martin Rudalics <rudalics@gmx.at>
5126 * frame.c (x_set_frame_parameters): Make sure height (width) get
5127 applied when fullwidth (fullheight) is set. (Bug#1522)
5129 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
5131 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
5132 (utc_base): Declare as ULONGLONG, not long double.
5133 (convert_time_raw): Delete.
5134 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
5135 (initialize_utc_base): New function.
5136 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
5137 (convert_from_time_t): Use initialize_utc_base; compute result with
5139 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
5141 2009-01-03 Eli Zaretskii <eliz@gnu.org>
5143 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
5144 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
5145 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
5146 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
5147 [!subprocesses]: Define.
5148 (syms_of_process) [!subprocesses]: Intern and staticpro them.
5149 (Flist_system_processes, Fsystem_process_attributes)
5150 [!subprocesses]: Call list_system_processes and
5151 system_process_attributes instead of returning Qnil.
5153 * dosfns.c (system_process_attributes, list_system_processes):
5156 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
5158 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
5159 Don't use the default (no-op) implementation.
5161 2009-01-03 Jason Rumney <jasonr@gnu.org>
5163 * keyboard.c (parse_modifiers_uncached): Wheel events are
5166 * w32term.c (x_query_colors, x_query_color): New functions.
5168 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
5169 (svg_load_image): Cast returned pointers from dynamically loaded
5170 functions. Eliminate W32 specific code.
5172 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
5174 * nsfns.m (x_set_foreground_color, x_set_background_color)
5175 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
5176 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
5177 x_ prefix instead of ns_. Update references.
5178 (syms_of_nsfns): Add a FIXME comment.
5180 * nsterm.m (x_set_cursor_type): New prototype.
5181 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
5183 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
5184 for Solaris instead of incorrectly providing Qutime and Qcutime.
5186 2009-01-02 Eli Zaretskii <eliz@gnu.org>
5188 * w32.c (process_times): Compute sum of utime and stime.
5189 (system_process_attributes): Add Qtime to the alist.
5191 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
5192 and add them to the alist.
5194 * process.c (top level) <Qtime, Qctime>: New variables.
5195 (syms_of_process): staticpro them.
5196 (Fsystem_process_attributes): Add their documentation to the doc
5199 * process.h: Declare Qtime and Qctime.
5201 2009-01-02 Jason Rumney <jasonr@gnu.org>
5203 * image.c (Qgobject): New symbol.
5204 (syms_of_image): Initialize it.
5205 (init_svg_functions): Load some functions from gobject library.
5207 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
5209 * frame.c (make_terminal_frame): Remove redundant code and useless
5212 2009-01-01 Andreas Schwab <schwab@suse.de>
5214 * process.c (conv_sockaddr_to_lisp): Add workaround for
5215 getsockname bug on BSD.
5217 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
5219 * xfns.c (x_create_tip_frame): Set border width of the X window.
5221 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
5223 2009-01-01 Jason Rumney <jasonr@gnu.org>
5225 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
5226 Don't block input, as per earlier xterm.c changes.
5228 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
5230 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
5231 (ns_appkit_version_int): New function.
5232 (x-server-version): Use ns_appkit_version_int and follow 21+
5233 convention of returning 3 integers.
5235 2008-12-30 Kenichi Handa <handa@m17n.org>
5237 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
5238 (CHAR_SURROGATE_PAIR_P): New macro.
5240 * font.h (struct font_driver): New member get_variation_glyphs.
5242 * font.c (font_range): Don't require a font for a variation selector.
5243 (Ffont_variation_glyphs): New function.
5244 (syms_of_font): Defsubr it.
5246 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
5247 ftfont_variation_glyphs.
5248 (setup_otf_gstring): New function.
5249 (ftfont_drive_otf): Use it.
5250 (ftfont_shape_by_flt): Handle variation selector.
5251 (ftfont_variation_glyphs): New function.
5253 2008-12-30 Martin Rudalics <rudalics@gmx.at>
5255 * frame.c (Vemacs_iconified): Remove.
5257 2008-12-30 Jason Rumney <jasonr@gnu.org>
5259 * frame.c (store_frame_param, x_get_arg): Enable newer code on
5260 WINDOWSNT too, as related changes have already been synced. (Bug#117)
5262 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
5264 * indent.c (Fvertical_motion): Don't advance iterator if we have
5265 reseated to the desired position.
5267 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
5268 checking for pos match.
5270 2008-12-30 Kenichi Handa <handa@m17n.org>
5272 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
5273 just get the low 8-bit of the code.
5275 * font.c (font_intern_prop): Validate str as multibyte.
5277 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5279 * dispextern.h (struct face): Move lface and hash from the middle
5282 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
5284 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5286 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
5287 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
5288 instead of intervals.h.
5290 2008-12-26 Andreas Schwab <schwab@suse.de>
5292 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
5295 2008-12-26 Martin Rudalics <rudalics@gmx.at>
5297 * textprop.c (Qminibuffer_prompt): New variable.
5298 (syms_of_textprop): Initialize it.
5299 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
5300 in minibuffer-prompt face. (Bug#1662)
5302 2008-12-25 Jason Rumney <jasonr@gnu.org>
5304 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
5306 2008-12-24 Jason Rumney <jasonr@gnu.org>
5308 * ralloc.c (r_alloc_reset_variable): New function.
5310 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
5311 record of what points where. (Bug#716)
5313 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
5315 * minibuf.c (read_minibuf): Follow the non-interactive case when
5316 running as a daemon, before detaching.
5318 2008-12-22 Andreas Schwab <schwab@suse.de>
5320 * buffer.c (init_buffer): Use realloc instead of xrealloc.
5321 * gtkutil.c (free_widget_value): Use xfree instead of free.
5323 2008-12-22 Martin Rudalics <rudalics@gmx.at>
5325 * frame.c (delete_frame): New function derived from
5326 Fdelete_frame to handle Qnoelisp value for FORCE argument.
5327 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
5328 (Fdelete_frame): Call delete_frame. Remove line from doc-string
5329 saying that FORCE non-nil doesn't run `delete-frame-functions'.
5330 * frame.h: Extern delete_frame.
5331 * window.c (window_loop):
5332 * terminal.c (delete_terminal):
5333 * xterm.c (x_connection_closed):
5334 * xfns.c (Fx_hide_tip):
5335 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
5337 2008-12-21 Jason Rumney <jasonr@gnu.org>
5339 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
5340 when character maps to .notdef character.
5342 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
5344 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
5346 2008-12-20 Jason Rumney <jasonr@gnu.org>
5348 * frame.c (Fmake_terminal_frame): Raise an error when called from
5349 a graphical frame on Windows. (Bug#1325)
5351 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
5353 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
5355 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
5357 * minibuf.c (Fread_buffer): Doc fix.
5359 2008-12-20 Jason Rumney <jasonr@gnu.org>
5361 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
5362 server name in UNC paths. (Bug#719)
5364 * coding.c (decode_coding): Clear chars_at_source flag when using
5367 2008-12-19 Daniel Engeler <engeler@gmail.com>
5369 * sysdep.c (serial_configure): Fix typo.
5371 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5373 * sysdep.c: Include alloca.h.
5374 (system_process_attributes): Add implementation for Solaris.
5376 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
5378 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5380 Reorganize implementation of Flist_system_processes and
5381 Fsystem_process_attributes. No functional changes.
5382 * process.c: Don't #include pwd.h, grp.h and limits.h.
5383 (Flist_system_processes): Just call list_system_processes.
5384 (Fsystem_process_attributes): Just call system_process_attributes.
5385 (procfs_list_system_processes, time_from_jiffies)
5386 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
5387 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
5389 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
5390 (list_system_processes): Rename from
5391 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
5392 Provide a do nothing implementation.
5393 (system_process_attributes): Rename from
5394 procfs_list_system_processes.
5395 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
5396 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
5398 * w32.c (list_system_processes): Rename from
5399 w32_list_system_processes.
5400 (system_process_attributes): Rename from
5401 w32_system_process_attributes.
5403 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
5405 * process.h (w32_list_system_processes)
5406 (w32_system_process_attributes): Remove.
5407 (list_system_processes, system_process_attributes):
5410 2008-12-19 Kenichi Handa <handa@m17n.org>
5412 * xfont.c (xfont_decode_coding_xlfd): New function.
5413 (xfont_encode_coding_xlfd): New function.
5414 (xfont_list_pattern): Decode XLFD by iso-8859-1.
5415 (xfont_list): Decode and encode XLFD by iso-8859-1.
5416 (xfont_match): Likewise.
5417 (xfont_list_family): Likewise.
5418 (xfont_open): Likewise.
5420 * ftfont.c (ftfont_open): Generate a multibyte string if given
5423 * xftfont.c (xftfont_open): Generate a multibyte string if given
5426 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
5428 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
5430 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
5431 clicked on a detached tool bar button.
5433 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
5435 * emacs.c (main): Print and error and exit when no data is read
5438 2008-12-17 Jason Rumney <jasonr@gnu.org>
5440 * w32font.c (w32font_has_char): Always return -1.
5442 2008-12-16 Kenichi Handa <handa@m17n.org>
5444 * font.c (font_open_entity): Fix previous change.
5446 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
5448 * process.c: Include <limits.h>.
5450 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
5452 * font.c (font_update_drivers): Fix mistake in reconstructing the
5455 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
5457 * font.c (font_clear_cache): Fix format of font cache data.
5459 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
5461 * xftfont.c (xftfont_open): Free Xft font pattern if
5462 XftFontOpenPattern fails.
5464 * xterm.c (x_free_frame_resources): Remove extraneous call to
5467 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
5469 * xterm.c (x_delete_display): Move xim_close_dpy call to
5471 (x_delete_terminal): Call xim_close_dpy.
5473 2008-12-13 Jason Rumney <jasonr@gnu.org>
5475 * w32font.c (intern_font_name): New function.
5476 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
5477 (w32font_open_internal, Fx_select_font): Decode font name.
5478 (fill_in_logfont, list_all_matching_fonts): Encode font name.
5480 * w32font.h (intern_font_name): Declare new function.
5482 * w32uniscribe.c (add_opentype_font_name_to_list):
5483 Use intern_font_name.
5485 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
5487 * frame.c (Fdelete_frame): Call free_font_driver_list.
5489 * font.c (free_font_driver_list): Implement missing function.
5491 * w32term.c (w32_term_init): Don't initialize the image cache
5492 here; it will be done in init_frame_faces.
5494 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
5495 (struct x_display_info): Remove unused member null_pixel. New
5496 member xim_callback_data.
5498 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
5499 (xim_initialize): Save pointer to callback function data.
5500 (xim_close_dpy): Free callback function data. Call XCloseIM,
5501 reverting 2008-11-04 change by David Smith.
5502 (x_term_init): Don't initialize the image cache here; it will be
5503 done in init_frame_faces. Remove ancient "null_pixel" cruft.
5504 (x_delete_display): Free x_dnd_atoms member.
5506 2008-12-13 Kenichi Handa <handa@m17n.org>
5508 * font.c (font_rescale_ratio): Moved from xfaces.c.
5509 Argument type changed. Handle a font-spec too.
5510 (font_score): Check Vface_font_rescale_alist.
5511 (font_open_entity): Likewise. (Bug#1547)
5513 * xfaces.c (font_rescale_ratio): Moved to font.c.
5515 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
5517 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
5519 2008-12-12 Jason Rumney <jasonr@gnu.org>
5521 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
5522 Vwindow_system_version to the real w32 major version.
5524 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
5526 * term.c (init_tty): Move setting the terminal name before the
5527 potential user: maybe_fatal.
5529 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
5531 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
5532 all callers changed. Call free_frame_faces to free the face cache.
5534 2008-12-11 Jason Rumney <jasonr@gnu.org>
5536 * w32font.c (fill_in_logfont): Don't assume symbol script means
5537 SYMBOL_CHARSET. (Bug#547)
5539 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
5540 size for surrogates. (Bug#1096, bug#872)
5542 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
5544 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
5546 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
5548 * process.c (Fsystem_process_attributes, syms_of_process):
5549 Fix typo in name of Ssystem_process_attributes.
5550 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
5552 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
5554 * syntax.c (Fmodify_syntax_entry): Doc fix.
5556 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
5558 * font.c (Ffont_spec): Move usage to end of docstring.
5560 2008-12-10 Jason Rumney <jasonr@gnu.org>
5562 * w32font.c (Qcham): New symbol.
5563 (font_supported_scripts): Add cham, and comments for other new
5564 scripts in bitfield from OpenType spec.
5565 (add_font_entity_to_list): Limit unicode-sip fonts to those that
5566 contain characters beyond the bmp.
5568 2008-12-10 Kenichi Handa <handa@m17n.org>
5570 * ftfont.c (fc_charset_table): Add "unicode-sip".
5571 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
5574 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
5576 * coding.c (QCdefault_char): Rename from QCdefalut_char.
5577 (Fcoding_system_put): Use QCdefault_char.
5578 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
5580 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
5582 * xftfont.c (syms_of_xftfont): Fix typo.
5584 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
5586 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
5588 * emacs.c (main): Close daemon_pipe on exec.
5590 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
5592 * termchar.h (struct tty): New members termcap_term_buffer and
5593 termcap_strings_buffer.
5595 * term.c (encode_terminal_code): Free any previous memory blocks
5596 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
5597 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
5598 All callers changed.
5599 (init_tty): Store termcap data and string buffers in new struct
5600 tty members termcap_term_buffer and termcap_strings_buffer.
5601 (delete_tty): Free them.
5602 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
5604 2008-12-07 Seiji Zenitani <zenitani@mac.com>
5606 * nsfns.m (ns_set_background_color): Remove code duplication.
5607 It was a substitute for face-transparency on OS X 10.3.
5609 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
5611 * coding.c (make_conversion_work_buffer): Disable buffer
5612 modification hooks in the work buffer.
5614 2008-12-05 Eli Zaretskii <eliz@gnu.org>
5616 * process.c (procfs_system_process_attributes): If `nread' has a
5617 negative value, assign zero to it.
5619 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
5621 * eval.c (Vdebug_on_error): Doc fix.
5623 2008-12-05 Kenichi Handa <handa@m17n.org>
5625 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
5626 second character is a combining character.
5628 2008-12-05 Eli Zaretskii <eliz@gnu.org>
5630 * process.c (procfs_system_process_attributes): Don't use cmd,
5631 cmdsize, and q without initializing them first.
5633 2008-12-04 Jason Rumney <jasonr@gnu.org>
5635 * w32font.c (w32font_draw): Initialize orig_clip before getting
5636 it, and delete it when finished.
5638 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
5640 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
5641 case when running as a daemon before detaching.
5643 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
5645 * w32.c (init_environment): Don't unload library shell32.dll.
5647 2008-12-03 Kenichi Handa <handa@m17n.org>
5649 * font.c (font_at): Set `multibyte' at first.
5651 * coding.c (decode_coding_charset): Check type of an element of
5653 (encode_coding_emacs_mule): Be sure to set `code'.
5655 * fontset.c (face_for_char): Handle invalid charset property correctly.
5656 (font_for_char): Likewise.
5658 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
5660 * font.c (Fopen_font): Compute pixel size correctly.
5661 (font_update_lface): Handle fonts with corrupted size specs,
5662 i.e. non-int and non-float.
5664 * ftfont.c (ftfont_match): Initialize entity variable.
5665 (ftfont_resolve_generic_family): Avoid using uninitialized var.
5666 (ftfont_list_family): Initialize list var earlier.
5668 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
5670 * xterm.c (x_draw_glyph_string): Fall back on
5671 underline_minimum_offset for underline position.
5673 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
5675 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
5677 * character.c (c_string_width): Specify the type for LEN.
5679 2008-12-03 Kenichi Handa <handa@m17n.org>
5681 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
5682 (decode_coding_utf_8): Likewise.
5683 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
5684 (produce_chars): Initialize consumed_chars to 0.
5686 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
5688 * keyboard.c (make_lispy_position): Only use PT if the selected
5691 2008-12-02 Andreas Schwab <schwab@suse.de>
5693 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
5695 * doprnt.c (doprnt1): Fix size of charbuf.
5697 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
5699 * keyboard.c (timer_check): Revert last change.
5701 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
5703 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
5705 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
5707 * makefile.w32-in: Update dependencies.
5708 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
5710 2008-12-01 Andreas Schwab <schwab@suse.de>
5712 * font.c (register_font_driver): Use xmalloc.
5713 (font_put_frame_data): Likewise.
5715 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
5717 * xfaces.c (realize_x_face): Make abort condition clearer.
5719 * gtkutil.c (update_frame_tool_bar): Initialize variable.
5721 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
5723 * keyboard.c (timer_check): After a timer runs, ensure that the
5724 selected window's buffer is current.
5726 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
5728 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
5729 It was accidentally restored by the Unicode merge.
5731 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
5733 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
5735 * w32proc.c: Include "coding.h".
5736 (Fw32_short_file_name): Encode filename passed to Windows API.
5737 (Fw32_long_file_name): Encode filename passed to Windows API and
5738 decode back the result. (Bug#1433)
5740 2008-11-29 Kenichi Handa <handa@m17n.org>
5742 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
5743 not before accessing it.
5745 * charset.c (Fdefine_charset_internal): After calculating
5746 min_char, max_char, and fastmap, copy the charset structure again.
5747 (encode_char): Fix the previous change.
5749 2008-11-28 Seiji Zenitani <zenitani@mac.com>
5751 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
5753 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
5755 * nsterm.m (x_set_frame_alpha): New function.
5757 2008-11-27 Eli Zaretskii <eliz@gnu.org>
5759 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
5761 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
5763 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
5764 pointer to check_face_name.
5766 2008-11-27 Kenichi Handa <handa@m17n.org>
5768 * category.h (SET_CATEGORY_SET): Call set_category_set.
5769 (set_category_set): Extern it.
5771 * category.c (hash_get_category_set): New function.
5772 (Fmodify_category_entry): Adjusted for the change of
5773 char_table_ref_and_range. Call hash_get_category_set to get a
5774 category set to store in the table.
5776 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
5779 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
5780 (DECODE_CHAR): Check if the decoder vector is ready.
5781 (ENCODE_CHAR): Check if the encoder char-table is ready.
5782 (maybe_unify_char): Extern it.
5784 * charset.c (Vchar_unified_charset_table): Delete it.
5785 (inhibit_load_charset_map): New variable.
5786 (temp_charset_work): New variable.
5787 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
5788 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
5790 (load_charset_map): Meaning of control_flag changed. If
5791 inhibit_load_charset_map is nonzero, setup a table in
5793 (load_charset): New argument control_flag.
5794 (map_charset_for_dump): New function.
5795 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
5796 map_charset_for_dump.
5797 (Fdefine_charset_internal): If the charset method is MAP, load
5798 mapping tables by calling load_charset.
5799 (Funify_charset): Don't load a mapping table but directly set
5801 (maybe_unify_char): New function.
5802 (decode_char): Don't handle the deleted method MAP_DEFERRED.
5803 Handle the case of inhibit_load_charset_map being nonzero.
5804 (encode_char): Don't handle the deleted method MAP_DEFERRED.
5805 Handle the case of inhibit_load_charset_map being nonzero.
5806 (Fclear_charset_maps): Just free temp_charset_work.
5807 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
5810 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
5811 change of char_table_ref_and_range.
5812 (char_table_ref_and_range): Change the meaning of argument FROM
5813 and TO. Now the caller must provide initial values for *FROM
5816 * fontset.c (fontset_add): Adjusted for the change of
5817 char_table_ref_and_range.
5818 (fontset_get_font_group): Likewise.
5819 (Ffontset_info): Likewise.
5821 * keymap.c (describe_vector): Adjusted for the change of
5822 char_table_ref_and_range. For char-table, put boundary between
5823 non-ASCII and 8-bit characters.
5825 * print.c (print_object): For bool-vector, delete unnecessary
5826 check of ASCII_BYTE_P.
5828 2008-11-26 Jason Rumney <jasonr@gnu.org>
5830 * w32font.c (w32font_open_internal): Don't include external
5831 leading in font height. (Bug#879)
5833 2008-11-26 Glenn Morris <rgm@gnu.org>
5835 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
5836 redefinition with ifdef. (Bug#1383)
5838 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5840 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
5842 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
5844 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
5845 New EmacsView methods.
5846 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
5847 Fixes bug #1048,1357,1414.
5849 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5852 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
5853 is not an indexed color.
5854 * nsterm.m (free_indexed_color): Add argument checking.
5855 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
5857 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
5859 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
5860 Document confirm-after-completion value for
5861 minibuffer-completion-confirm.
5863 2008-11-24 Jason Rumney <jasonr@gnu.org>
5865 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
5868 2008-11-23 Jason Rumney <jasonr@gnu.org>
5870 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
5871 restored before returning.
5873 * w32font.c (check_face_name): New function.
5874 (add_font_entity_to_list): Use it to filter out common substituted
5877 2008-11-22 Martin Rudalics <rudalics@gmx.at>
5879 * buffer.c (Fswitch_to_buffer): Reword and mention new option
5880 confirm-nonexistent-file-or-buffer in doc-string.
5882 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
5884 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
5885 Fix copy/paste typo. Add checks.
5887 2008-11-21 Kenichi Handa <handa@m17n.org>
5889 * coding.c (detect_coding_iso_2022): Reject invalid composition
5891 (DECODE_COMPOSITION_START): If the current source is the last
5892 block, and the current composition doesn't end, regard this
5893 sequence as invalid.
5894 (decode_coding_iso_2022): Handle invalid composition sequence.
5896 2008-11-20 Martin Rudalics <rudalics@gmx.at>
5898 * window.c (coordinates_in_window): Don't return
5899 ON_VERTICAL_BORDER for the rightmost position of a mode/header
5900 line when the window is not the rightmost one. (Bug#1372)
5902 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
5904 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
5906 2008-11-15 Eli Zaretskii <eliz@gnu.org>
5908 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
5909 and bright_bg if noninteractive is non-zero.
5911 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5913 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
5914 x_draw_glyph_string_background.
5916 * w32term.c (x_draw_glyph_string): Likewise.
5918 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
5920 * xterm.c (x_draw_glyph_string): Stop drawing the background of
5921 the next glyph string once past the overhang width.
5923 * nsterm.m (ns_draw_glyph_string): Likewise.
5925 * w32term.c (x_draw_glyph_string): Likewise.
5927 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
5929 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
5932 2008-11-14 Martin Rudalics <rudalics@gmx.at>
5934 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
5935 dedicated status of window before attempting to display another
5938 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
5940 * msdos.c (Fmsdos_long_file_names):
5941 (syms_of_msdos) <dos-unsupported-char-glyph>:
5942 * dosfns.c (Fint86): Fix typos in docstrings.
5944 2008-11-14 Eli Zaretskii <eliz@gnu.org>
5946 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
5948 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
5950 * puresize.h (BASE_PURESIZE): Increase to 1260000.
5952 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
5954 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
5956 * frame.h: Negative alpha means "don't touch".
5958 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
5960 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
5962 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
5966 * acldef.h: Remove files used only for systems no longer supported.
5968 * Makefile.in: Fix .o alphabetical ordering.
5969 (hftctl.o): Remove dependency, file removed.
5970 (keymap.o, print.o): Depend on charset.h.
5972 2008-11-10 Kenichi Handa <handa@m17n.org>
5974 * character.c (Fget_byte): Fix and make it faster for unibyte target.
5976 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
5978 * dired.c (file_name_completion): If completion_ignore_case is
5979 enabled, ignore case when checking completion-regexp-list.
5981 2008-11-08 Eli Zaretskii <eliz@gnu.org>
5983 * vm-limit.c (get_lim_data): Fix last change.
5985 2008-11-08 Kenichi Handa <handa@m17n.org>
5987 * character.c (Fget_byte): New function.
5988 (syms_of_character): Defsubr Fget_byte.
5990 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
5992 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
5993 cursor position is valid after scrolling.
5995 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
5997 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
5999 2008-11-06 Glenn Morris <rgm@gnu.org>
6001 * xterm.c (handle_one_xevent): Don't let popup menus cause
6002 mouse-autoselect-window related window switching. (Bug#1261)
6004 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
6006 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
6008 2008-11-04 Andreas Schwab <schwab@suse.de>
6010 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
6012 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
6014 * xfns.c (Fx_wm_set_size_hint): New function.
6016 2008-11-03 Martin Rudalics <rudalics@gmx.at>
6018 * textprop.c (Fprevious_single_char_property_change): Return 0
6019 when there's no change in a string. (Bug#1301)
6021 2008-11-02 Martin Rudalics <rudalics@gmx.at>
6023 * frame.c (do_switch_frame): New argument NORECORD passed to
6025 (Fselect_frame): New argument NORECORD passed to
6027 (Fset_frame_selected_window): New argument NORECORD passed to
6029 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
6030 in call of do_switch_frame.
6031 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
6032 Handle NORECORD argument in call of Fselect_frame.
6033 * lisp.h (do_switch_frame, Fselect_frame)
6034 (Fset_frame_selected_window): Adjust declarations.
6035 * window.c (select_frame_norecord): New function.
6036 (run_window_configuration_change_hook): Use it and call
6037 Fselect_frame with NORECORD set.
6038 (Fselect_window): Pass NORECORD to Fselect_frame.
6039 (Fset_window_configuration): Handle NORECORD argument in call of
6041 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
6042 Fset_frame_selected_window.
6043 * keyboard.c (command_loop_1): Handle NORECORD in call of
6044 Fselect_frame (currently ifdefd).
6046 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
6048 * emacs.c (USAGE2): Untabify.
6050 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
6052 * composite.c (fill_gstring_header): Fix copy/paste typo.
6054 2008-10-31 Martin Rudalics <rudalics@gmx.at>
6056 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
6057 (Fother_window): Rename argument and rewrite doc-string.
6058 (select_window_norecord): Fix return value. (Bug#1276)
6060 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
6062 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
6063 new frames overriding foreground for tooltips. Based on similar patch
6064 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
6066 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
6068 * emacs.c (Fdaemon_initialized): Initialize nfd.
6070 2008-10-29 Martin Rudalics <rudalics@gmx.at>
6072 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
6073 (Fwindow_text_height): Clarify doc-strings.
6074 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
6075 doc-string of window-scroll-functions.
6077 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
6079 * category.c (syms_of_category): Fix typo in docstring.
6081 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
6083 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
6084 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
6085 Fix typos in docstrings.
6087 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
6089 * emacs.c (daemon_pipe): Make non-static.
6090 (IS_DAEMON): Move definition ...
6091 * lisp.h (IS_DAEMON): ... here.
6092 (daemon_pipe): Declare.
6093 (is_daemon): Remove.
6094 * dispnew.c (init_display): Use IS_DAEMON.
6096 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
6098 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
6099 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
6101 * emacs.c (is_daemon): Remove.
6102 (main): Don't set is_daemon.
6103 (IS_DAEMON): New macro.
6104 (Fdaemonp, Fdaemon_initialized): Use it.
6105 (Fdaemon_initialized): Write a char into the pipe to make sure the
6107 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
6109 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
6111 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
6112 over-sized glyph, draw it with the default glyph width.
6114 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6115 glyph, draw it with the default glyph width.
6117 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6118 glyph, draw it with the default glyph width.
6120 * xdisp.c (try_scrolling): When computing the distance from the
6121 scroll margin to PT, try moving some distance past the window
6122 bottom before giving up.
6124 2008-10-27 Martin Rudalics <rudalics@gmx.at>
6126 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
6127 (Fset_window_buffer): Explain in doc-string that a window can be
6128 "strongly" dedicated to its buffer.
6130 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
6132 * emacs.c (daemon_name): New variable.
6133 (main): Deal with --daemon=SERVER_NAME.
6134 (Fdaemonp): Return a name if one was passed to --daemon.
6136 2008-10-26 Romain Francoise <romain@orebokech.com>
6138 * emacs.c (daemon_pipe): New variable.
6139 (main): Create a pipe before forking, make the parent exit only after
6140 the child has closed its end of the pipe. Move closing the
6142 (Fdaemon_initialized): ... here. New function.
6144 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
6146 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
6147 the previous unoptimized table.
6149 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
6150 the distinction between non-nil and non-t value of `dedicated'.
6152 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
6154 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
6155 read_char_minibuf_menu_text is large enough to hold the menu string.
6157 2008-10-25 Martin Rudalics <rudalics@gmx.at>
6159 * window.c (Fget_buffer_window, Fdelete_windows_on)
6160 (Freplace_buffer_in_windows): Make buffer argument optional and
6161 rename to buffer_or_name.
6163 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
6165 * xdisp.c (handle_single_display_spec, handle_display_prop):
6166 Undo 2005-05-16 change.
6167 (handle_stop): Pop iterator if it's loaded with an empty string.
6168 (get_overlay_strings_1): Don't save iterator if it's loaded with
6169 an empty string (bug#1201).
6171 2008-10-24 Kenichi Handa <handa@m17n.org>
6173 * ftfont.c (ftfont_otf_features): Fix previous change.
6174 (ftfont_otf_capability): Check FeatureList.FeatureCount before
6175 calling ftfont_otf_features.
6177 2008-10-24 Kenichi Handa <handa@m17n.org>
6179 * font.c (font_match_p): Fix for the case that a vector of
6180 characters is in script-representative-chars.
6182 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
6184 * dbusbind.c (xd_in_read_queued_messages): New variable.
6185 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
6186 (xd_read_queued_messages): Catch Qdbus_error from the macros.
6187 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
6190 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
6192 * s/sol2-10.h: New file.
6194 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
6196 * xdisp.c (fill_glyph_string): Fix typo in source (though the
6197 poor beast has survived 9+ years and the jump from xterm.c!).
6199 2008-10-23 Martin Rudalics <rudalics@gmx.at>
6201 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
6203 (Fbury_buffer): In doc-string say what happens to the buffer's window.
6205 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
6207 * character.c (syms_of_character) <script-representative-chars>:
6208 <unicode-category-table>: Doc fixes.
6210 2008-10-23 Noah Friedman <friedman@splode.com>
6212 * coding.c (make_conversion_work_buffer): Check that
6213 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
6216 2008-10-23 Kenichi Handa <handa@m17n.org>
6218 * font.c (font_add_log): Check the values of extra properties.
6220 2008-10-22 Martin Rudalics <rudalics@gmx.at>
6222 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6224 (Fset_window_parameter): Use NILP.
6225 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
6226 (Frecenter): Use "selected" instead of "current" window in doc-strings.
6228 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
6230 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
6232 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6234 * nsfns.m (ns_appkit_version): New function.
6235 (x-server-version): Use it.
6236 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
6237 (x-server-vendor): Don't check_ns().
6239 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
6241 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
6243 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
6244 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
6246 2008-10-22 Kenichi Handa <handa@m17n.org>
6248 * syntax.c (scan_words): Call word_boundary_p instead of comparing
6251 * category.c (word_boundary_p): Check scripts instead of charset.
6252 Handle nil value in word-separating-categories and
6253 word-combining-categories.
6254 (syms_of_category): Fix docstrings of word-separating-categories
6255 and word-combining-categories.
6257 2008-10-21 Eli Zaretskii <eliz@gnu.org>
6259 * coding.c (Fencode_coding_region, Fdecode_coding_region)
6260 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
6262 2008-10-21 Martin Rudalics <rudalics@gmx.at>
6264 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
6265 Rename arg "buffer" to "buffer_or_name".
6266 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
6268 (no_switch_window): Remove since the return value is not used.
6269 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
6270 Consider window as dedicated when Fwindow_dedicated_p returns a
6272 * lisp.h: Remove prototype for no_switch_window.
6274 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
6276 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
6277 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
6279 2008-10-21 Kenichi Handa <handa@m17n.org>
6281 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
6282 check Vlatin_extra_code_table.
6284 2008-10-20 Eli Zaretskii <eliz@gnu.org>
6286 * fileio.c (Fset_file_modes): Doc fix.
6288 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
6290 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
6293 2008-10-19 Martin Rudalics <rudalics@gmx.at>
6295 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6296 Mention kill-buffer in doc-string.
6297 (Fset_window_buffer): Reinsert tem check removed in last commit.
6298 (Fenlarge_window, Fshrink_window): Have argument names and
6299 doc-string follow Elisp manual more closely.
6301 2008-10-18 Eli Zaretskii <eliz@gnu.org>
6303 * fileio.c (Fset_file_modes): Doc fix.
6305 2008-10-18 Martin Rudalics <rudalics@gmx.at>
6307 * window.c (Fwindow_width, Fset_window_start)
6308 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
6309 (Fdelete_windows_on, Freplace_buffer_in_windows):
6310 Make doc-strings follow code and Elisp manual more closely.
6311 (Fwindow_dedicated_p): Make window argument optional.
6312 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
6313 (Fset_window_buffer): Respect any non-nil dedicated value for
6314 window. Rename "buffer" argument to "buffer_or_name".
6316 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
6318 * m/sh3.h: New file, machine description for SuperH.
6320 2008-10-17 Martin Rudalics <rudalics@gmx.at>
6322 * window.c (Fsplit_window): Rename arg horflag to horizontal.
6324 2008-10-17 Kenichi Handa <handa@m17n.org>
6326 * ftfont.c (ftfont_otf_features): Fix indexing
6327 gsub_gpos->FeatureList.Feature. Check the validity of indices.
6329 2008-10-16 Magnus Henoch <mange@freemail.hu>
6331 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
6332 (Fdbus_call_method_asynchronously): Ditto.
6333 This change makes C-h f display the argument list.
6335 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
6337 * fileio.c (Fexpand_file_name): Doc fix.
6339 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
6340 of :foreground and :background equivalent to unspecified (20.x
6343 2008-10-15 Eli Zaretskii <eliz@gnu.org>
6345 * buffer.c (syms_of_buffer): Doc fix.
6347 2008-10-14 Kenichi Handa <handa@m17n.org>
6349 * font.c (font_clear_prop): When clearing font width, clear the
6350 average width field too.
6352 2008-10-12 Andreas Schwab <schwab@suse.de>
6354 * ftfont.c (ftfont_shape_by_flt): Make static.
6355 * ftfont.h (ftfont_shape_by_flt): Don't declare.
6357 * font.c: Don't include <m17n-flt.h>.
6359 2008-10-10 Eli Zaretskii <eliz@gnu.org>
6361 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
6363 2008-10-09 Eli Zaretskii <eliz@gnu.org>
6365 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
6368 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
6370 * dispnew.c (update_text_area): Avoid looping due to large glyph
6371 overhangs (bug#1070).
6373 2008-10-09 Kenichi Handa <handa@m17n.org>
6375 * fontset.c (face_for_char): If face->fontset is negative, just
6378 * font.c (font_delete_unmatched): Fix previous change.
6379 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
6381 2008-10-09 Martin Rudalics <rudalics@gmx.at>
6383 * frame.c (Fraise_frame): On text-only terminals select frame in
6384 order to make it visible. (Bug#1061)
6386 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
6388 * fontset.c (fontset_find_font): Check frame validity.
6390 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
6392 * gtkutil.c (xg_display_open): Reset default display if none exists.
6393 (xg_display_close): Allow Emacs to close all displays (bug#985).
6395 2008-10-06 Andreas Schwab <schwab@suse.de>
6397 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
6399 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
6401 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
6403 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
6405 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
6406 during initialization.
6408 2008-10-04 Eli Zaretskii <eliz@gnu.org>
6410 * xdisp.c (redisplay_internal): If frame switched, redisplay the
6411 whole thing on MSDOS frames as well as on a TTY.
6413 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
6415 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
6418 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
6421 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
6423 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
6424 MSDOS frames as well.
6426 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6428 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
6430 * menu.c (find_and_return_menu_selection): Add cast.
6432 2008-10-03 Glenn Morris <rgm@gnu.org>
6434 * emacs.c (USAGE1): Add --daemon.
6436 2008-10-02 Eli Zaretskii <eliz@gnu.org>
6438 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
6439 100, so it's in percents as advertised.
6441 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6443 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
6444 (ns_output.current_cursor, ns_output.desired_cursor)
6445 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
6446 (FRAME_NEW_CURSOR_COLOR): Remove.
6448 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
6449 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
6450 enumeration (HOLLOW_BOX_CURSOR, etc.).
6452 * nsterm.m (ns_frame_rehighlight): Remove commented code.
6453 (draw_window_cursor): Simplify code.
6454 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
6455 Don't change cursor type. In latter, call rehighlight instead of doing
6457 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
6458 Use core Emacs cursor types.
6460 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
6462 2008-10-02 Martin Rudalics <rudalics@gmx.at>
6464 * process.c (Faccept_process_output): Fix doc-string.
6466 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
6468 * gmalloc.c (__sbrk): Also define for uClibc.
6470 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
6473 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6475 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
6477 (nsfont_open): Reenable the cache.
6479 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6481 * font.c (font_matching_entity): Reflect ATTRS in font selection.
6482 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
6484 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
6486 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
6487 a suspended terminal.
6489 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
6491 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
6493 2008-09-30 Eli Zaretskii <eliz@gnu.org>
6495 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
6497 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
6499 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
6500 in a continued line coincides with a line beginning.
6502 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6504 * nsfont.m (nsfont_trait_distance): Fix bug.
6505 (nsfont_list): Return a list rather than a vector (syncs with Handa
6506 changes of 2008-05-14).
6507 (nsfont_open): Improve logging.
6509 2008-09-29 Andreas Schwab <schwab@suse.de>
6511 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
6513 2008-09-28 Martin Rudalics <rudalics@gmx.at>
6515 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
6516 name as char-resolve-modifiers.
6517 Reported by: Markus Triska <markus.triska@gmx.at>
6519 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
6521 * dispnew.c (init_display): Return earlier when running as a daemon.
6523 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6525 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
6527 2008-09-27 Eli Zaretskii <eliz@gnu.org>
6529 * composite.c (Fcomposition_get_gstring)
6530 (Fcompose_region_internal, Fcompose_string_internal)
6531 (Ffind_composition_internal): Doc fix.
6532 (syms_of_composite) <compose-chars-after-function>: Doc fix.
6533 (syms_of_composite) <auto-composition-function>: Doc fix.
6534 (syms_of_composite) <composition-function-table>: Doc fix.
6536 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
6538 * search.c (wordify): New argument for lax word-ends.
6539 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
6541 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
6543 * lisp.h (is_daemon): Declare.
6544 * dispnew.c (init_display): Do not try to initialize the terminal
6545 when running as a daemon.
6547 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
6549 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
6550 x_display_pixel_height.
6552 2008-09-22 Martin Rudalics <rudalics@gmx.at>
6554 * undo.c (record_point): Don't call Fundo_boundary for first
6557 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
6559 * emacs.c (Fdaemonp): Doc fix.
6561 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
6563 * emacs.c (main): Place #ifdef in the proper place.
6565 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
6567 * emacs.c (standard_args): Add --daemon.
6568 (main): Disconnect from the terminal when --daemon is passed.
6569 (is_daemon): New variable.
6570 (Fdaemonp): New function.
6571 (syms_of_emacs): Defsubr it.
6573 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
6575 * xdisp.c (get_next_display_element): Handle string display
6576 correctly when checking for the end of a box run.
6578 2008-09-20 Glenn Morris <rgm@gnu.org>
6580 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
6581 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
6582 (Frename_file): Avoid copying to trash if a rename involves
6583 a delete. (Bug#964).
6585 2008-09-20 Eli Zaretskii <eliz@gnu.org>
6587 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
6588 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
6589 frames as well as termcap frames.
6590 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
6593 2008-09-19 Eli Zaretskii <eliz@gnu.org>
6595 * process.c (procfs_system_process_attributes): Fix cmdline in
6596 case /proc/PID/cmdline is empty.
6598 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
6599 x_display_pixel_height.
6601 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
6603 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
6605 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
6606 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
6608 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
6610 * dispextern.h (struct it): Move line_wrap away from the middle of
6611 bitfields. Move voffset in struct iterator_stack_entry after the
6612 bitfields. Move tab_width near after another short.
6614 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
6616 * frame.h (struct frame): Move alpha from the middle of bitfields.
6618 * window.h (struct window): Move frozen_window_start_p after the
6619 rest of the bitfields to reduce padding.
6621 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
6623 * xterm.h (x_display_info): Remove `height' and `width' members.
6625 * nsterm.h (ns_display_info): Remove `height' and `width' members.
6627 * w32term.h (w32_display_info): Remove `height', `width',
6628 `height_in', and `width_in' members.
6630 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6632 (x_calc_absolute_position): Use them.
6633 (x_term_init): Omit removed `height' and `width' members.
6635 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6637 (w32_read_socket, x_calc_absolute_position): Use them.
6638 (w32_initialize_display_info, w32_term_init): Omit removed members
6639 of w32_display_info.
6641 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
6643 (ns_initialize_display_info): Omit removed members of ns_display_info.
6645 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6647 (x_calc_absolute_position): Use them.
6648 (x_term_init): Omit removed `height' and `width' members.
6650 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
6652 * frame.c (x_fullscreen_adjust):
6653 * xmenu.c (menu_position_func): Use x_display_pixel_height and
6654 x_display_pixel_width.
6656 2008-09-18 Kenichi Handa <handa@m17n.org>
6658 * composite.c (fill_gstring_header): Don't check FROM and TO here.
6659 (composition_compute_stop_pos): Fix handling of static composition.
6660 (Fcomposition_get_gstring): Check FROM and TO at first.
6662 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6664 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
6667 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
6669 * indent.c (Fvertical_motion): Use position reported by iterator
6670 instead of PT for determining screen motion (bug#943).
6672 2008-09-17 Romain Francoise <romain@orebokech.com>
6674 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
6676 2008-09-17 Kenichi Handa <handa@m17n.org>
6678 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
6680 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
6683 2008-09-16 Kenichi Handa <handa@m17n.org>
6685 * coding.c (make_conversion_work_buffer): Avoid calling
6686 Fget_buffer_create if it is not necessary.
6688 2008-09-15 Martin Rudalics <rudalics@gmx.at>
6690 * window.c (Fselect_window): Don't update window_select_count and
6691 use_time when norecord is not nil.
6693 2008-09-14 Kenichi Handa <handa@m17n.org>
6695 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
6698 2008-09-12 Kenichi Handa <handa@m17n.org>
6700 * indent.c (scan_for_column): Don't handle automatic composition
6701 if the current buffer is not associated with a window.
6703 * composite.c (composition_reseat_it): If the current buffer is
6704 not associated with a window, ignore the automatic composition.
6705 (find_automatic_composition): Likewise.
6707 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6709 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
6710 (Fgpm_mouse_stop): Use it.
6711 * termhooks.h (close_gpm): Declare.
6712 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
6713 connection if Gpm_GetEvent fails.
6715 * window.c (set_window_buffer): Always preserve current-buffer.
6717 2008-09-12 Glenn Morris <rgm@gnu.org>
6719 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
6721 2008-09-11 Glenn Morris <rgm@gnu.org>
6723 * charset.c (charset-map-path): Doc fix.
6725 2008-09-10 Kenichi Handa <handa@m17n.org>
6727 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
6729 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
6730 compose a grapheme cluster with the preceding base glyph.
6732 * composite.c (composition_compute_stop_pos): Fix previous change.
6733 Reset cmp_it->id to -1 at first.
6735 2008-09-10 Glenn Morris <rgm@gnu.org>
6737 * Makefile.in (character.o, chartab.o): Fix config.h typo.
6739 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
6741 * keyboard.c (read_key_sequence): Reapply translation maps when
6742 switching keyboards.
6744 2008-09-09 Kenichi Handa <handa@m17n.org>
6746 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
6749 * composite.c (FORWARD_CHAR): Fix calculation
6750 of (POSITION).pos_byte.
6751 (composition_compute_stop_pos): Limit the search of composition to
6752 at most 500 characters ahead. If we reach the limit or find a
6753 newline, set cmp_it->ch to -2 and return 0.
6754 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
6756 2008-09-08 Kenichi Handa <handa@m17n.org>
6758 * indent.c (Fvertical_motion): Be sure to set
6759 it_overshoot_expected if it.cmp_it.id is non-negative.
6761 2008-09-07 Andreas Schwab <schwab@suse.de>
6763 * callproc.c (Fcall_process): Don't hold references to string data
6764 across garbage collection. Move initialisation of new_argv down
6765 to avoid compiler bug.
6767 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6769 * process.c (Fsystem_process_attributes): Doc fix.
6771 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
6773 * callproc.c (Fcall_process): Canonicalize current directory name.
6775 * xdisp.c (move_it_to): When moving by vpos, ensure that the
6776 iterator advances to the next line if the current line ends in a
6779 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
6781 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
6782 member to point to cmp_from.
6784 * xdisp.c: Doc fix for references to gidx data member.
6786 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
6788 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
6790 2008-09-07 Kenichi Handa <handa@m17n.org>
6792 * composite.c (FORWARD_CHAR): Check STOP after
6793 incrementing (POSITION).pos.
6795 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6797 * process.c (Fsystem_process_attributes): Doc fix.
6799 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
6801 * keyboard.c (Ftop_level): Doc fix.
6803 2008-09-06 Eli Zaretskii <eliz@gnu.org>
6805 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
6806 minibuffer, don't let lower part of menu invade the echo area.
6808 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
6809 "char *q" to access menu text and advance through it. Revert the
6810 change that displayed ">" instead of ASCII character 0x10.
6812 2008-09-05 Eli Zaretskii <eliz@gnu.org>
6814 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
6815 toggle boxes and radio buttons on MS-DOS as well.
6817 2008-09-05 Kenichi Handa <handa@m17n.org>
6819 * composite.c (autocmp_chars): Check lookback count.
6820 (composition_compute_stop_pos): Set cmp_it->lookback.
6821 (composition_reseat_it): Check lookback count.
6822 (struct position_record): New struct.
6823 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
6824 (find_automatic_composition): New function.
6825 (composition_adjust_point): Use find_automatic_composition.
6827 * dispextern.h (struct composition_it): New member lookback.
6829 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
6831 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
6832 if moving by a single line.
6834 2008-09-02 Andreas Schwab <schwab@suse.de>
6836 * xterm.c (x_delete_display): Fix merge error.
6838 * fileio.c (Fexpand_file_name): Remove unused variables.
6840 2008-09-02 Eli Zaretskii <eliz@gnu.org>
6842 * fileio.c (Fexpand_file_name): Copy argument `name' into local
6843 storage on all platforms, not just on DOS_NT.
6845 2008-09-02 Jason Rumney <jasonr@gnu.org>
6847 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
6848 Ensure mouse is not grabbed after menu is finished.
6850 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
6852 * xfaces.c (Finternal_set_alternative_font_family_alist)
6853 (Finternal_set_alternative_font_registry_alist): Properly copy
6854 entire alist structure.
6856 2008-09-01 Kenichi Handa <handa@m17n.org>
6858 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
6859 representative chars of the script is a vector.
6860 (ftfont_list): Handle the case where the representative chars of
6861 the script is a vector.
6863 * character.c (syms_of_character): Docstring of
6864 script-representative-chars fixed.
6866 2008-08-31 Eli Zaretskii <eliz@gnu.org>
6868 * msdos.c (BUILD_CHAR_GLYPH): New macro.
6869 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
6870 the menu. Allocate larger buffer for `text', to account for
6871 possible ^C characters.
6873 2008-08-31 Martin Rudalics <rudalics@gmx.at>
6875 * xdisp.c (prepare_menu_bars): Don't call
6876 Vwindow_size_change_functions with arg Qt.
6878 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
6880 * font.h (font_range):
6881 * fileio.c (report_file_error):
6882 * composite.c (composition_update_it): Yet another int/Lisp_Object
6885 2008-08-30 Glenn Morris <rgm@gnu.org>
6887 * data.c (Fmake_variable_frame_local): Doc fix.
6889 * frame.c (Fmodify_frame_parameters): Doc fix.
6891 2008-08-30 Eli Zaretskii <eliz@gnu.org>
6893 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
6894 needed by GetTokenInformation.
6895 (w32_system_process_attributes): Check return values of all system
6898 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
6899 only when the state changes.
6900 (IT_update_begin, IT_update_end): Add termscript trace.
6902 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
6903 clipboard is unavailable. Set dst to NULL if it doesn't point to
6905 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
6906 passing random values to xfree.
6908 * dispnew.c (init_display): Set `tty's association in frame's
6909 parameters alist to the name of the terminal device, if that is known.
6911 2008-08-29 Jason Rumney <jasonr@gnu.org>
6913 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
6915 2008-08-29 Eli Zaretskii <eliz@gnu.org>
6917 * composite.c (fill_gstring_body): Avoid compiler warnings.
6919 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
6920 LGLYPH_SET_CODE to avoid compiler warnings.
6922 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
6924 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
6926 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
6929 2008-08-29 Kenichi Handa <handa@m17n.org>
6931 * fileio.c (report_file_error): Don't downcase the first character
6932 of errstring if it is still unibyte.
6934 2008-08-29 Kenichi Handa <handa@m17n.org>
6936 These changes are to re-implement the automatic composition so
6937 that it doesn't use text properties.
6939 * Makefile.in (ftfont.o): Depend on composite.h.
6940 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
6942 * character.h (Vunicode_category_table): Extern it.
6944 * character.c (Vunicode_category_table): New variable.
6945 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
6947 * chartab.c (optimize_sub_char_table): Perform more greedy
6950 * composite.h (enum composition_method):
6951 Delete COMPOSITION_WITH_GLYPH_STRING.
6952 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
6953 (Vcomposition_function_table): Extern it.
6954 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
6955 (composition_gstring_put_cache, composition_gstring_from_id)
6956 (composition_gstring_p, composition_gstring_width)
6957 (composition_compute_stop_pos, composition_reseat_it)
6958 (composition_update_it, composition_adjust_point): Extern them.
6959 (Fcomposition_get_gstring): EXFUN it.
6961 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
6962 (Vcomposition_function_table)
6963 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
6964 (gstring_hash_table, gstring_work, gstring_work_headers):
6966 (gstring_lookup_cache, composition_gstring_put_cache)
6967 (composition_gstring_from_id, composition_gstring_p)
6968 (composition_gstring_width, fill_gstring_header)
6969 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
6970 (composition_reseat_it, composition_update_it)
6971 (composition_adjust_point, Fcomposition_get_gstring): New functions.
6972 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
6973 and gstring_work_headers. DEFVAR_LISP composition-function-table.
6974 Defsubr composition_get_gstring.
6976 * dispextern.h (struct glyph): New union u.cmp. Delete the member
6978 (struct glyph_string): Delete the member gidx. New members
6979 cmp_id, cmp_from, and cmp_to.
6980 (enum it_method): Delete GET_FROM_COMPOSITION.
6981 (struct composition_it): New struct.
6982 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
6983 Delete c, len, cmp_id, cmp_len in u.comp.
6985 * font.h (enum lgstring_indices): Delete it.
6986 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
6987 (enum lglyph_indices): Likewise.
6988 (font_range): Adjust extern.
6989 (font_fill_lglyph_metrics): Extern it.
6991 * font.c (QCf): New variable.
6992 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
6993 (font_prepare_composition): Delete this function.
6994 (font_range): Type and arguments changed.
6995 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
6996 (font_fill_lglyph_metrics): New function.
6997 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
6998 (syms_of_font): DEFSYM QCf. Delete defsubr for
6999 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
7000 Defsubr Sfont_shape_gstring.
7002 * fontset.h (font_for_char): Extern it.
7004 * fontset.c (font_for_char): New function.
7006 * ftfont.c: Include composite.h.
7007 (ftfont_resolve_generic_family): Add langset "en" to pattern.
7008 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7010 * indent.c: Include composite.h and dispextern.h.
7011 (check_composition): Delete this function.
7012 (scan_for_column): Handle composition by
7013 composition_compute_stop_pos, composition_reseat_it, and
7014 composition_update_it.
7015 (compute_motion): Likewise.
7016 (Fvertical_motion): Fix checking of composition.
7018 * keyboard.c (adjust_point_for_property): Check composition by
7019 composition_adjust_point.
7021 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
7022 struct glyph_string.
7024 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
7025 (append_composite_glyph): Adjust for the change of struct it and
7027 (produce_composite_glyph): Likewise.
7029 * w32term.c (x_draw_composite_glyph_string_foreground):
7030 Adjust for the change of struct glyph_string.
7031 (x_draw_glyph_string): Likewise.
7033 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
7034 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7036 * xdisp.c: Include font.h.
7037 (it_props): Delete the entry for Qauto_composed.
7038 (init_iterator): Initialize it->cmp_it.id to -1.
7039 (compute_stop_pos): Call composition_compute_stop_pos.
7040 (face_before_or_after_it_pos): Adjust for the change of struct it.
7041 (handle_auto_composed_prop): Delete it.
7042 (handle_composition_prop): Handle only static composition.
7043 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
7044 from xassert. Initialize it->cmp_it.stop_pos.
7045 (push_it): Adjust for the change of struct it.
7047 (get_next_element): Delete next_element_from_composition.
7048 (CHAR_COMPOSED_P): New macro.
7049 (get_next_display_element): For automatic composition, get a face
7050 from the font in the glyph-string.
7051 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
7052 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
7053 (next_element_from_string): Check if the character at the current
7054 position is composed by CHAR_COMPOSED_P.
7055 (next_element_from_buffer): Likewise.
7056 (next_element_from_composition): Adjust for the change of struct it.
7058 (dump_glyph): Adjust for the change of struct glyph.
7059 (fill_composite_glyph_string): Adjust for the change of struct
7060 it and struct glyph. Don't handle automatic composition here.
7061 (fill_gstring_glyph_string): New function.
7062 (x_get_glyph_overhangs): Handle automatic composition.
7063 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
7064 (BUILD_GSTRING_GLYPH_STRING): New macro.
7065 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
7066 automatic composition.
7067 (append_composite_glyph): Adjust for the change of struct it and
7069 (x_produce_glyphs): Adjust for the change of struct it.
7071 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
7072 the change of struct glyph_string.
7073 (x_draw_glyph_string): Likewise.
7075 2008-08-29 Glenn Morris <rgm@gnu.org>
7077 * buffer.c (word-wrap): Doc fix.
7078 * xdisp.c (truncate-partial-width-windows): Doc fix.
7079 Increase default to 50.
7081 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
7083 * xdisp.c (update_tool_bar_unwind): New function.
7084 (update_tool_bar): Temporarily set selected frame before building
7087 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
7089 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
7090 snprintf, respectively.
7091 (xd_append_arg): Convert strings with Fstring_make_unibyte.
7093 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
7095 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
7096 LDFLAGS to GNUstep CC invocation.
7098 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
7100 * indent.c (Fvertical_motion): Revert last change. Handle the
7101 general case where we are moving forward, and PT spans multiple
7104 * eval.c (find_handler_clause): Temporarily increase
7105 max-lisp-eval-depth while printing the backtrace buffer, to
7106 guarantee that help-mode code can run.
7108 2008-08-27 Eli Zaretskii <eliz@gnu.org>
7110 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
7112 (IT_set_frame_parameters): Don't swap foreground and background
7113 colors if `(reverse . t)' is present in the frame properties.
7114 (internal_terminal_init): Call init_frame_faces only for the
7117 2008-08-27 Andreas Schwab <schwab@suse.de>
7119 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
7121 2008-08-27 Andreas Schwab <schwab@suse.de>
7123 * search.c (search_buffer): Set char_base to zero only at the end.
7125 2008-08-27 Kenichi Handa <handa@m17n.org>
7127 * fileio.c (report_file_error): Fix handling of multibyte error string.
7129 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
7131 * xterm.c (x_term_init): Temporarily hide the partially
7132 initialized terminal while calling vendor-specific-keysyms.
7134 2008-08-26 Eli Zaretskii <eliz@gnu.org>
7136 * msdos.c (internal_terminal_init): Most initializations done only
7137 once, especially initial_screen_colors[] and termscript open.
7139 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
7141 * eval.c (Fcondition_case): Doc fix.
7143 * widgetprv.h (EmacsFramePart): Change font member to the new font
7146 * widget.c: Include character.h and font.h for XSETFONT.
7147 (setup_frame_gcs): Compute X font id from font struct, just once.
7149 2008-08-26 Eli Zaretskii <eliz@gnu.org>
7151 * term.c (get_named_tty): Fix last change.
7153 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
7155 * indent.c (Fvertical_motion): If moving forward starting from a
7156 multi-line string, move the iterator to the last line of that string.
7158 2008-08-25 Eli Zaretskii <eliz@gnu.org>
7160 * frame.c (do_switch_frame): Mark previously displayed frame as
7161 obscured for FRAME_MSDOS_P frames as well.
7163 2008-08-24 Eli Zaretskii <eliz@gnu.org>
7165 * frame.c (make_terminal_frame): Initialize f->terminal,
7166 f->terminal->reference_count, and scroll bars on MS-DOS as well.
7167 Set the top frame to newly created frame.
7168 (Fmake_terminal_frame): Reuse the_only_display_info.
7170 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
7171 estimating available memory.
7173 2008-08-23 David Reitter <david.reitter@gmail.com>
7175 * nsterm.m (ns_draw_window_cursor): Don't call
7176 NSDisableScreenUpdates and NSEnableScreenUpdates on
7177 non-NS_IMPL_COCOA systems.
7179 2008-08-23 Andreas Schwab <schwab@suse.de>
7181 * process.c (procfs_system_process_attributes): Fix use of
7182 uninitialized variables.
7184 2008-08-23 Eli Zaretskii <eliz@gnu.org>
7186 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
7188 * dispnew.c (init_display): Remove MS-DOS specific conditions for
7189 calling tty-set-up-initial-frame-faces.
7191 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
7192 Allow MSDOS frames along with X frames.
7194 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
7195 addition to output_termcap.
7197 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
7199 * termchar.h (FRAME_TTY): Support output_msdos_raw.
7200 (struct tty_display_info) [MSDOS]: Add fields related to mouse
7203 * process.c [!subprocesses]: Define QCname.
7204 (syms_of_process): Intern and staticpro it.
7206 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
7207 Adjust for changes in encoding/decoding routines.
7208 Use encode_coding_object and decode_coding_object instead of
7209 encode_coding and decode_coding.
7211 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
7213 * dosfns.c: Include frame.h before termhooks.h.
7214 (dos_cleanup): Use CURTTY ()->termscript instead of a global
7215 variable termscript.
7217 * s/msdos.h (USER_FULL_NAME): Define.
7218 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
7220 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
7221 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
7224 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
7225 SELECTED_FRAME as additional (1st) argument.
7226 (tty_read_avail_input): Handle output_msdos_raw in
7227 addition to output_termcap.
7229 * msdos.c: Include frame.h before termhooks.h.
7230 (mouse_on, mouse_off, mouse_moveto, mouse_init)
7231 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
7232 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
7233 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
7234 (IT_set_terminal_modes, IT_reset_terminal_modes)
7235 (IT_set_frame_parameters): Use tty->termscript instead of a global
7236 variable termscript.
7237 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
7238 global variable terminal_coding. Don't refer to
7239 Vnonascii_translation_table.
7240 (internal_terminal_init): Set Vwindow_system in current_kboard.
7241 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
7242 Announce date and time of session start, if termscript is open.
7243 Don't zero out the_only_display_info (it is done in
7244 term.c:init_tty). Open termscript only of not already open.
7245 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
7246 here instead of dos_ttraw. Don't initialize display if this is an
7247 initial tty. Don't set FRAME_FONT.
7248 (Vwindow_system_version): Bump to 23.
7249 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
7250 is available, set up mouse_position_hook.
7251 (dos_ttraw, IT_set_terminal_modes): If called with initial
7252 terminal, do nothing.
7253 (IT_set_frame_parameters): Handle the Qtty_type frame
7254 parameter by calling internal_terminal_init.
7255 (dos_set_window_size, show_mouse_face)
7256 (clear_mouse_face, IT_note_mode_line_highlight)
7257 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
7258 (dos_rawgetc): Use tty_display_info instead of x_display_info.
7259 (initialize_msdos_display): New function.
7260 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
7261 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
7262 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
7263 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
7264 Accept additional argument: a pointer to a frame. Update all callers.
7265 (request_sigio, unrequest_sigio): Don't define, now defined on
7267 (IT_write_glyphs): Rewrite to use encode_terminal_code.
7269 * term.c [MSDOS]: Include msdos.h.
7270 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
7271 conditional to DOS_NT. Allow only one call to this function in a
7272 session. Don't allocate a new struct tty_display_info; instead,
7273 reuse the_only_display_info. Call get_tty_size to get screen
7274 dimensions. Call init_baud_rate to set bad_rate.
7275 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
7276 (Fsuspend_tty) [MSDOS]: Don't close input and output.
7277 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
7278 (get_tty_terminal, get_named_tty, Ftty_type)
7279 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
7281 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
7282 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
7283 only when subprocesses are supported.
7285 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
7287 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
7290 * msdos.h: Remove definition of struct x_display_info and struct
7292 (FRAME_FONT): Use output_data.tty.
7293 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
7294 (struct x_display_info): Rename from display_info. Update all users in
7296 (struct x_output): Remove background_pixel and foreground_pixel.
7297 (the_only_display_info): Rename from the_only_x_display.
7298 (dos_ttraw): Update prototype.
7300 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
7301 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
7303 2008-08-23 Jason Rumney <jasonr@gnu.org>
7305 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
7306 (fn_TIFFSetDirectory): New library function used.
7307 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
7308 (tiff_load): Use :index to select among multiple images. Set count
7309 property when multiple images exist.
7310 (gif_format): Use :index, not :image.
7312 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
7314 * xdisp.c (try_scrolling): Check INT_MAX instead of
7315 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
7318 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
7320 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
7322 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
7324 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
7325 GNUstep library location.
7327 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
7329 * xfaces.c (x_update_menu_appearance): Check validity of menu font
7332 * puresize.h (BASE_PURESIZE): Increase to 1250000.
7334 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7336 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
7337 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
7338 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
7339 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
7340 (EmacsApp-cursor_blink_handler): Remove declaration.
7341 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
7342 match 01 Feb 2008 changes in xterm.c.
7343 (ns_read_socket): Add cast to avoid warning.
7344 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
7347 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
7349 * xselect.c (x_get_foreign_selection): Return nil if desired
7350 selection could not be obtained, instead of signalling an error.
7352 2008-08-20 David Reitter <david.reitter@gmail.com>
7354 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
7355 * nsterm.m: Remove ns-specific code for cursor blinking.
7356 (ns_draw_window_cursor): Clear cursor properly rather than
7357 redrawing the area. Respect width of bar cursors.
7358 These changes enable the use of generic blink-cursor-mode and
7359 generic cursor types in NS and support smooth cursor movements (do
7360 not blink off after command).
7361 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
7364 2008-08-19 Kenichi Handa <handa@m17n.org>
7366 * font.c (Vfont_log_deferred): New variable.
7367 (font_add_log): Check Vfont_log_deferred.
7368 (font_deferred_log): New function.
7370 * font.h (font_deferred_log): Extern it.
7372 * fontset.c (reorder_font_vector): Use encoding charset of fonts
7374 (face_for_char): Use deferred log.
7376 2008-08-18 Kenichi Handa <handa@m17n.org>
7378 * fontset.c (face_for_char): Add font log.
7380 * font.c (font_add_log): Add the font properties :script, :lang,
7381 and :otf in the log.
7383 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
7385 * xdisp.c: Remove dead code.
7386 (handle_invisible_prop, next_overlay_string): Defer call to
7388 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
7390 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
7392 * xfaces.c (lookup_derived_face): Properly handle possible zero
7393 return value of get_lface_attributes.
7394 (merge_faces): Don't tell lookup_derived_face to signal an error
7395 if face is not found.
7397 * dired.c (Fdirectory_files): Doc fix.
7399 * process.c (make_process): Initialize kill_without_query struct
7402 2008-08-15 Eli Zaretskii <eliz@gnu.org>
7404 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
7405 Alternative calculation of totphys for Visual Studio 6.
7407 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
7409 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
7410 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
7412 (stat): Only root directory passed to GetDriveType. Allow RAM
7413 disk as well as local fixed disk when w32-get-true-file-attributes
7415 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
7416 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
7417 (w32_cached_id, w32_add_to_cache): New functions.
7418 (get_name_and_id): Look account names in the cache before calling
7420 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
7421 New initialization flags.
7422 (globals_of_w32): Initialize them to zero.
7423 (w32_system_process_attributes): Use w32_cached_id and
7426 2008-08-14 Lawrence Mitchell <wence@gmx.li>
7428 * lread.c (Fread_char, Fread_char_exclusive): If no character
7429 event is read before timeout is reached, return nil, rather than
7430 converting to a number.
7432 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
7434 * fns.c (use_dialog_box): Doc fix.
7436 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
7439 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
7441 * frame.c (Qns_parse_geometry): New var.
7442 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
7444 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
7446 * xdisp.c (x_produce_glyphs): Handle the case when font has no
7447 space character in calculating tabs.
7449 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
7451 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
7453 2008-08-10 Glenn Morris <rgm@gnu.org>
7455 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
7456 silence gcc "limited range of data type" warnings in some
7457 make_fixnum_or_float calls.
7459 2008-08-09 Eli Zaretskii <eliz@gnu.org>
7461 * w32.c (w32_system_process_attributes): If the process does not
7464 * w32.c: Include thelp32.h, psapi.h and coding.h.
7465 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
7467 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
7468 (Process32Next_Proc): New typedefs.
7469 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
7470 (g_b_init_process32_next, g_b_init_open_thread_token)
7471 (g_b_init_impersonate_self, g_b_init_revert_to_self)
7472 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
7473 (g_b_init_get_process_working_set_size)
7474 (g_b_init_global_memory_status_ex): New static variables.
7475 (globals_of_w32): Initialize them.
7476 (create_toolhelp32_snapshot, process32_first, process32_next)
7477 (open_thread_token, impersonate_self, revert_to_self)
7478 (get_process_memory_info, get_process_working_set_size)
7479 (global_memory_status, global_memory_status_ex): New wrapper
7481 (w32_list_system_processes, w32_system_process_attributes)
7482 (enable_privilege, restore_privilege, ltime, process_times):
7484 (convert_time_raw): New function.
7485 (convert_time): Remove conversion of FILETIME into time in 100
7486 nsec units, call convert_time_raw instead.
7488 * process.h (w32_list_system_processes, w32_system_process_attributes):
7490 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
7491 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
7492 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
7493 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
7495 * process.c (Fsystem_process_attributes): Doc fix.
7497 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
7499 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
7500 a continued multi-char glyph; if so, advance to the actual glyph.
7502 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7504 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
7506 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
7508 * config.in: Regenerate.
7510 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
7512 * xdisp.c (redisplay_window): Revert last change.
7513 (try_window): Check bottom scroll margin too.
7515 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7517 * config.in: Regenerate.
7519 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
7520 -list-load-path-shadows'.
7521 (nsgui.h): Reduce number of things depending on it.
7523 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
7525 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
7526 instead of window-end which does the wrong thing at eob.
7527 (try_cursor_movement): Minor optimization.
7528 (redisplay_window): If scroll margin is defined, don't assume
7529 window doesn't need scrolling.
7531 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7533 * config.in: Regenerate.
7535 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
7536 (mostlyclean): Don't delete *.d under NS.
7538 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
7540 2008-08-06 Kenichi Handa <handa@m17n.org>
7542 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
7544 2008-08-06 Andreas Schwab <schwab@suse.de>
7546 * config.in: Regenerate.
7548 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
7550 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
7551 forcing a window start.
7553 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
7554 (auto_save_1): Update modtime when auto-save-list-file-name is on.
7556 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7558 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
7561 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
7563 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
7564 <scroll-down-aggressively, before-change-functions>:
7565 <after-change-functions>: Reflow docstrings.
7567 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7568 Ken Raeburn <raeburn@gnu.org>
7570 Dock menu customization, based on a patch by Ken Raeburn, plus some
7572 * nsmenu.m (dockMenu): New variable.
7573 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
7575 * nsterm.h (dockMenu): Declare.
7577 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
7578 (ns_term_init): Initialize dockMenu.
7579 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
7580 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
7583 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
7585 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
7587 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
7589 * config.in: Regenerate.
7591 2008-08-04 Seiji Zenitani <zenitani@mac.com>
7593 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
7595 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
7597 * nsterm.h (find_and_call_menu_selection): Fix prototype.
7599 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7601 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
7603 * keyboard.h: Comment an #endif.
7605 * lisp.h (have_menus_p): Adjust comment.
7607 * menu.c (find_and_return_menu_selection): Fix comparison with
7610 * nsmenu.m (popup_activated_flag): New variable.
7611 (popup_activated): New function.
7612 (menu-or-popup-active-p): New exported lisp definition.
7613 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
7615 (ns_popup_dialog): Set popup_activated_flag.
7617 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
7618 version for GNUstep (handled by conditional typedef in nsterm.m).
7619 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
7622 * process.c (init_process): Use DARWIN_OS, not DARWIN.
7624 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
7626 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
7628 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
7629 shortcircuit if popup_activated like GTK and X toolkit.
7631 * m/inter386.h: Change DARWIN to DARWIN_OS.
7633 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
7634 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
7635 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
7636 comment on NO_SOCK_SIGIO.
7638 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
7640 * nsterm.m (windowDidResize): Remove stopModal call.
7642 2008-08-03 Andreas Schwab <schwab@suse.de>
7644 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
7645 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
7647 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
7649 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
7650 Don't use uninitialized pointer variable when using getrlimit.
7652 2008-08-02 Jason Rumney <jasonr@gnu.org>
7654 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
7656 2008-08-02 Eli Zaretskii <eliz@gnu.org>
7658 * alloc.c (NSTATICS): Bump to 0x640.
7660 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
7662 * lisp.h: Add prototype for directory_files_internal.
7664 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
7666 (syms_of_process): Defsubr them. Add initializations for various
7667 Q* symbols used in procfs_system_process_attributes.
7668 (procfs_list_system_processes, procfs_system_process_attributes)
7669 [HAVE_PROCFS]: New functions.
7670 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
7671 (procfs_get_total_memory): New functions.
7673 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
7675 * xfaces.c (Fx_load_color_file): Fix previous change;
7676 it is #ifdef WINDOWSNT, not WINDOWS_NT.
7678 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
7680 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
7682 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7684 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
7686 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
7688 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
7690 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
7691 define NSApplicationDelegateReplySuccess.
7692 (EmacsView -converstationIdentifier): Use long instead of
7693 NSInteger for GNUstep, since it doesn't have NSInteger.
7695 * xmenu.c: Revert last change.
7697 * keyboard.h: Fix last change.
7699 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
7701 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
7704 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7706 Warning clearing and clean-up in NS port.
7707 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
7709 * nsgui.h (FACE_DEFAULT): Remove, unused.
7710 (XGCValues): Change colors to unsigned long.
7711 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
7713 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
7714 (ns_list_fonts): Remove, unused.
7715 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
7716 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
7717 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
7718 (nsfont_draw): Compare face colors to 0, not nil.
7719 * nsmenu.m (struct widget_value): Drop unneeded declaration.
7720 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
7721 (-addSubmenuWithTitle:): Use NSMenuItem class.
7722 (ns_popup_menu): Use NO, not NULL, for enabled setting.
7723 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
7724 (ns_clip_to_row): Make gc arg a BOOL.
7725 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
7726 ns_clip_to_row() call.
7727 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
7728 used). Cast FRAME_FONT assignments.
7729 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
7730 (ns_string_to_lispmod): Change arg to const char.
7731 (ns_term_init): Use NSMenuItem class.
7732 (EmacsApp -openFile:): Move to different section of file.
7733 (EmacsApp -application:openFiles:): Don't return a value, call
7734 -replyToOpenOrPrint:.
7735 (EmacsView -keyDown:): Fix up cast.
7736 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
7737 (EmacsView -menuDown:): Cast tag in call to
7738 find_and_call_menu_selection().
7739 (ns_list_fonts): Remove, unused.
7740 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
7741 (ns_fontname_to_xlfd): Make static.
7742 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
7743 Remove prototypes (now in keyboard.h).
7744 (next_menubar_widget_id): Remove, unused.
7745 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
7746 Remove prototypes (now in keyboard.h).
7747 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
7749 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
7751 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
7752 (floatfns.o): Depend on syssignal.h.
7753 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
7755 * systty.h: Fix previous change that removed BSD_TERMIOS.
7756 Add comments to #ifdefs.
7758 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7760 * w32fns.c (w32-load-color-file): Remove.
7761 (x-open-connection): Use renamed Fx_load_color_file.
7762 * xfaces.c (x-load-color-file): Add.
7763 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
7765 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
7767 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
7769 * dbusbind.c (Fdbus_call_method_asynchronously)
7770 (Fdbus_method_error_internal): New defuns.
7771 (xd_read_message): Handle also reply messages.
7772 (Vdbus_registered_functions_table): Extend docstring.
7774 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
7776 * keyboard.c (gobble_input): Fix previous change.
7778 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7809 * m/vax.h: Remove VMS support.
7815 * ioctl.h: Remove file.
7817 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7819 * s/ms-w32.h (MULTI_KBOARD): Remove.
7834 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
7835 * config.in: Regenerate.
7837 2008-07-30 Jason Rumney <jasonr@gnu.org>
7839 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
7841 * w32font.c (w32font_encode_char): Leave as unicode if in range.
7842 (w32font_open_internal): Get unicode version of textmetrics.
7843 Don't enable or disable glyph indices here.
7844 (w32font_open): Disable use of glyph indices.
7846 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
7848 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
7850 * minibuf.c (Vread_buffer_function): Doc fix.
7852 2008-07-30 John Paul Wallington <jpw@pobox.com>
7854 * minibuf.c (read_buffer_completion_ignore_case): New var.
7855 (Fread_buffer): Use it.
7857 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
7859 * systty.h (sensemode): Remove empty #if. Remove reference to
7860 BSD_TERMIOS, unused.
7862 * sysdep.c: Remove reference to DGUX.
7863 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
7865 * config.in: Regenerate.
7867 2008-07-30 Jason Rumney <jasonr@gnu.org>
7869 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
7871 2008-07-29 Jason Rumney <jasonr@gnu.org>
7873 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
7875 (uniscribe_encode_char): Always use uniscribe.
7876 Avoid using context if cache is populated.
7878 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
7880 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
7883 * gtkutil.c (menu_nav_ended): Remove.
7884 (create_menus): Remove signal connect for menu_nav_ended.
7886 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
7888 * xdisp.c (redisplay_window): Check return value of
7889 compute_window_start_on_continuation_line before forcing a window
7892 2008-07-28 Jason Rumney <jasonr@gnu.org>
7894 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
7896 * w32term.c (w32_enable_unicode_output, cleartype_active):
7897 Remove obsolete display options.
7898 (x_draw_glyph_string_background): Don't use old cleartype_active
7900 (w32_initialize): Remove cleartype_active initialization.
7901 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
7903 2008-07-28 Andreas Schwab <schwab@suse.de>
7905 * lisp.h (init_weak_hash_tables, syms_of_font)
7906 (xd_read_queued_messages, syms_of_dbusbind): Declare.
7907 (remove_hash_entry): Don't declare.
7908 * eval.c (maybe_call_debugger): Make static and move before use.
7909 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
7910 * xdisp.c: Include "gtkutil.h" if USE_GTK.
7911 * xterm.h (x_set_frame_alpha): Declare.
7913 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
7915 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
7916 (create_menus): Connect selection-done to menu_nav_ended.
7918 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7920 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
7921 Set Vx_resource_name to a fallback. Replace read of 'buffered'
7922 parameter with read of 'alpha' one.
7923 (Qns_frame_parameter): Remove.
7924 * nsselect.m (selection-coding-system)
7925 (next-selection-coding-system, Vselection_coding_system)
7926 (Vnext_selection_coding_system): Drop.
7928 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7930 * nsfns.m (do-applescript, do_applescript): Rename to
7931 ns-do-applescript, ns_do_applescript, and move within file.
7933 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
7935 Remove support for Mac Carbon.
7943 * mac.c: Remove file.
7974 * Makefile.in: Remove code for Carbon.
7976 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7978 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
7980 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7982 * macterm.h (kCGBitmapByteOrder32Host): New define for
7985 * image.c (mac_create_cg_image_from_image, image_load_image_io)
7986 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
7988 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
7989 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
7991 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
7993 * w32inevt.c: Include dispextern.h.
7995 2008-07-26 Andreas Schwab <schwab@suse.de>
7997 * print.c (print_object): Fix off-by-one in last change.
7999 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
8001 * term.c (syms_of_term): Don't initialize default_orig_pair,
8002 default_set_foreground and default_set_background on Windows.
8004 2008-07-25 Jason Rumney <jasonr@gnu.org>
8006 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
8007 ScriptItemize. Clean up return value checking. Remove unused
8009 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
8012 * w32font.c (w32font_has_char): Handle the case where we can't
8013 determine the script for a character.
8015 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
8017 * term.c (syms_of_term): Initialize default_orig_pair,
8018 default_set_foreground, and default_set_background.
8020 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
8022 (getloadavg): Callers changed.
8024 * image.c (svg_load_image): Fix last change.
8025 (svg_load_image): Use rsvg_handle_get_dimensions to check that
8026 image size is valid. Use g_object_unref instead of deprecated
8027 rsvg_handle_free to free rsvg handle.
8028 (x_from_xcolors): Don't initialize pixmap (silence compiler).
8030 2008-07-25 Jason Rumney <jasonr@gnu.org>
8032 * w32font.c (w32font_encode_char): Encode characters outside BMP as
8033 surrogates before looking up glyph index.
8034 (w32font_text_extents): Encode as surrogates if falling back to
8035 functions that need UTF-16 wide chars.
8037 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
8038 BMP as surrogates before looking up glyph index.
8040 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
8042 * image.c (svg_load_image): Check for failure in return value of
8043 rsvg_handle_get_pixbuf. Free rsvg handle when done.
8045 2008-07-25 Jason Rumney <jasonr@gnu.org>
8047 * w32font.c (Fx_select_font): Reverse sense of second arg.
8049 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
8051 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
8052 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
8054 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
8057 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
8059 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
8060 * m/alpha.h (TEXT_END):
8061 * m/ibmrs6000.h (TEXT_END):
8062 * m/macppc.h (TEXT_END):
8063 * s/darwin.h (TEXT_END):
8064 * s/msdos.h (TEXT_END): Remove, unused.
8065 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
8066 * s/cygwin.h: Remove comment.
8068 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
8069 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
8070 * m/intel386.h (DOT_GLOBAL_START):
8071 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
8072 (USG): Remove, file not used on USG platforms.
8074 * Makefile.in (HAVE_X11): Remove empty #else.
8076 2008-07-24 Andreas Schwab <schwab@suse.de>
8078 * fileio.c (Finsert_file_contents): Properly adjust undo list
8079 after format conversion.
8081 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
8083 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
8084 (menu_nav_ended): Remove.
8085 (create_menus): Remove signal connect for menu_nav_ended.
8086 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
8088 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
8090 2008-07-23 Jason Rumney <jasonr@gnu.org>
8092 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
8094 (w32font_open): Set font type to gdi.
8096 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
8098 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
8100 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
8101 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
8103 * unexec.c (ADDR_CORRECT): Define unconditionally.
8105 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
8107 * unexec.c: Remove code depending on !COFF and USG, the file is
8108 not used for such systems.
8110 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
8111 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
8112 (LD_SWITCH_SYSTEM_1): Remove, update users.
8114 * s/darwin.h (DATA_END):
8115 * m/intel386.h (DATA_END):
8116 * m/ibmrs6000.h (DATA_END):
8117 * m/alpha.h (DATA_END): Remove, unused.
8119 * config.in: Regenerate.
8120 * s/ms-w32.h (subprocesses): Define unconditionally.
8121 * s/template.h (subprocesses): Update comment.
8122 * s/vms.h (subprocesses):
8123 * s/usg5-4.h (subprocesses):
8124 * s/hpux10-20.h (subprocesses):
8125 * s/gnu-linux.h (subprocesses):
8126 * s/cygwin.h (subprocesses):
8127 * s/bsd-common.h (subprocesses):
8128 * s/aix4-2.h (subprocesses):
8129 * s/darwin.h (subprocesses): Do not define, defined by default now.
8131 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
8132 Remove all references.
8133 (temacs): Add GNUstep specific ld flags.
8135 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
8136 similarly to what X does.
8138 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8140 * nsfns.m (x-list-fonts): Remove.
8141 (syms_of_nsfns): Drop the x-list-fonts declaration.
8142 * nsterm.m: Get rid of remaining "//" comments.
8144 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
8146 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
8148 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
8149 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
8150 (Fns_own_selection_internal, Fx_disown_selection_internal)
8151 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
8153 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
8154 ... */' style of docstrings. Doc fixes.
8156 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8158 * terminfo.c (UP, BC, PC): Undo previous change.
8160 * nsfns.m: Rename ns prefixed functions/variables to the
8161 corresponding x versions. Update references.
8163 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
8165 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
8167 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8169 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
8170 Remove forwarding functions.
8171 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
8173 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
8175 (ns_frame_parm_handlers): Use the new names.
8176 (syms_of_nsfns): Move to the end of file.
8178 * nsterm.m (syms_of_nsterm): Move to the end of file.
8180 * dispnew.c (init_display): Remove code for X10.
8182 2008-07-22 Jason Rumney <jasonr@gnu.org>
8184 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
8187 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8189 * nsterm.m (syms_of_nsterm): Remove debugging println.
8191 2008-07-22 David Reitter <david.reitter@gmail.com>
8193 * nsfns.m (do_applescript, F_do_applescript): NS version of the
8194 Carbon implementation of the same functionality: execute arbitrary
8197 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8199 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
8200 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
8201 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8202 (Fx_display_mm_height, Fx_display_mm_width)
8203 (Fx_display_backing_store, Fx_display_visual_class)
8204 (Fx_display_save_under, Fx_open_connection)
8205 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
8206 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
8207 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8208 (Fx_display_pixel_width, Fx_display_pixel_height)
8209 (Fx_display_usable_bounds, Fx_display_planes)
8210 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
8211 ... */' style of docstrings.
8213 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
8215 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
8218 * m/iris4d.h (mips): Do not define.
8219 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
8221 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
8227 * nsterm.m: Rename ns prefixed functions/variables to the
8228 corresponding x versions. Update references.
8230 * m/ibms390x.h (NO_REMAP): Do not undefine.
8232 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
8234 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
8236 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
8237 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
8238 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
8239 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
8240 (Fns_display_mm_height, Fns_display_mm_width)
8241 (Fns_display_backing_store, Fns_display_visual_class)
8242 (Fns_display_save_under, Fns_open_connection)
8243 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
8244 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
8245 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8246 (Fns_display_pixel_width, Fns_display_pixel_height)
8247 (Fns_display_usable_bounds, Fx_display_planes)
8248 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
8250 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
8252 * print.c (print_object): Check print_depth before searching for
8255 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
8257 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
8260 2008-07-21 Kenichi Handa <handa@m17n.org>
8262 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
8264 2008-07-20 Andreas Schwab <schwab@suse.de>
8266 * syntax.c (find_start_pos, find_start_value)
8267 (find_start_value_byte, find_start_begv, find_defun_start)
8268 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
8270 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8272 * s/sol2-3.h: Insert contents of s/sol2.h.
8273 (LD_SWITCH_SYSTEM): Remove redundant definition.
8274 * s/sol2.h: Remove, unused.
8276 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8278 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
8280 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8282 * Makefile.in (ns_appdir): Fix typo in find command.
8284 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8286 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
8288 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
8289 added not supported anymore.
8291 * s/usg5-4-2.h (LIBS_SYSTEM):
8292 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
8294 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8295 * s/lynxos.h (GETPGRP_NO_ARG):
8296 * s/hpux10-20.h (NO_SIOCTL_H):
8297 * s/gnu.h (GETPGRP_NO_ARG):
8298 * s/gnu-linux.h (NO_SIOCTL_H):
8299 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8300 * s/cygwin.h (GETPGRP_NO_ARG):
8301 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
8302 (C_DEBUG_SWITCH): Remove duplicate definition.
8304 * m/ibms390.h: Remove boilerplate comments.
8306 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
8308 * process.c (HAVE_SERIAL): Consolidate ifdefs.
8309 (wait_reading_process_output): Remove code for SunOS, platform not
8310 supported anymore. Use SOLARIS2 instead of sun.
8312 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8314 * font.c (font_open_by_name): Under NS, default lface height to zero.
8315 (font_open_for_lface): Under NS, set size based on frame fontsize.
8316 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
8317 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
8319 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8321 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
8322 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
8323 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
8325 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
8326 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
8327 * Makefile.in (clean): Clear out build destination dir.
8329 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8331 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
8333 * lisp.h: Remove declaration of hash_remove.
8334 * nsgui.h: Remove redefinitions of hash_remove.
8335 * fns.c (hash_remove): Rename to hash_remove_from_table.
8337 2008-07-19 Seiji Zenitani <zenitani@mac.com>
8339 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
8340 strdup() the family UTF8String before modifying it.
8342 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8344 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
8345 NS_FACE_BACKGROUND with 0 instead of nil.
8346 * nsfont.m (nsfont_draw): Same.
8348 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
8350 * nsfns.m (ns_set_background_color): Fix crash.
8352 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
8354 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
8356 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
8358 * puresize.h (BASE_PURESIZE): Increase to 1240000.
8360 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8362 * gtkutil.c: Include <config.h> instead of "config.h".
8364 * lisp.h (Foverlay_buffer): Add EXFUN.
8366 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
8367 child process to complete child_setup. Undo 2005-09-21 change.
8369 * s/darwin.h: Mention setsid after vfork.
8371 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8373 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
8376 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
8377 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
8379 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
8381 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
8383 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
8384 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
8387 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
8388 Check if FACE_FROM_ID returns NULL.
8390 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
8392 * w32inevt.c (change_frame_size): Remove extern declaration.
8393 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
8396 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8398 * getloadavg.c: Revert last change (2008-07-15).
8400 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8402 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
8403 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
8406 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
8409 * s/sol2-4.h: Reorganize conditionals.
8411 * ecrt0.c: Remove code depending on m68000, not used anymore.
8413 * fns.c (hash_remove): Make static.
8414 * lisp.h (hash_remove): Don't prototype.
8418 * m/macppc.h: Remove boilerplate comments.
8420 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
8421 Solaris, which does not need them.
8423 * m/vax.h: Remove comments about unsupported systems.
8425 * s/darwin.h: Reorganize ifdefs.
8427 2008-07-17 Andreas Schwab <schwab@suse.de>
8429 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
8431 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
8433 Use SDATA. Follow coding convention of placing operators at
8434 beginning of next line rather than end of previous line, and placing
8435 spaces around infix operators.
8437 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
8438 in case it was defined already.
8439 USE @GNUSTEP_MAKEFILES@ rather than envvars.
8440 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
8442 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
8444 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
8445 (ns_defined_color, ns_color_to_lisp): Declare.
8446 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
8447 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
8448 it's accepted even with USE_LISP_UNION_TYPE.
8449 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
8450 (update_frame_tool_bar): Remove apparently obsolete tests for
8451 non-integerness of f->tool_bar_lines.
8452 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
8453 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
8454 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
8455 (nsfont_open): Don't confuse NULL for Qnil.
8456 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
8457 * menu.h (find_and_call_menu_selection):
8458 * menu.c (find_and_call_menu_selection): Use just int for vector size.
8459 (find_and_return_menu_selection): Always return something.
8460 * frame.h: Include dispextern.h for Display_Info.
8461 (display_x_get_resource): Declare.
8463 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
8465 * syntax.c: Remove stdio.h include accidentally introduced in
8467 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
8469 * keyboard.c (handle_async_input, input_available_signal): Remove
8470 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
8472 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8474 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
8475 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
8476 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
8479 * keymap.c: Remove all NS-specific code.
8480 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
8481 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
8482 where_is_preferred_modifier, return a different value depending on how
8483 preferred is the binding.
8484 (where_is_internal): Adjust accordingly.
8485 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
8486 Adjust to new preferred_sequence_p.
8487 (syms_of_keymap): Declare `where-is-preferred-modifier'.
8488 * keyboard.c (parse_solitary_modifier): Not static any more.
8489 * keyboard.h (parse_solitary_modifier): Declare.
8491 2008-07-16 Andreas Schwab <schwab@suse.de>
8493 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
8496 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
8498 * xdisp.c (move_it_in_display_line): Account for word wrap, so
8499 that we don't move off the line.
8501 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8503 * keyboard.c (Qsuper): Remove.
8504 (parse_menu_item): Don't call where_is_internal specially for NS.
8506 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8508 * s/gnu-linux.h: Remove boilerplate comments.
8510 * m/alpha.h (__ELF__): Consolidate conditions.
8512 * m/m68k.h (linux): Use GNU_LINUX instead.
8513 Remove boilerplate comments.
8515 * m/intel386.h: Undo refactoring from previous change.
8516 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
8517 too, remove dead code.
8518 (linux): Use GNU_LINUX instead.
8520 2008-07-16 Jason Rumney <jasonr@gnu.org>
8522 * w32gui.h: Repeat 26 June changes lost by last change.
8524 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8526 * systty.h: Remove code for Aix on 386, unsupported platform.
8528 * s/ms-w32.h: Remove boilerplate comments.
8529 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
8531 * s/gnu-linux.h (TERM): Remove support.
8532 (HAVE_SYSVIPC): Remove, unused.
8533 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
8536 * process.c: Remove support for IRIS, unused.
8537 Remove support for TERM, not relevant anymore.
8539 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
8540 used with the definition.
8542 * s/aix4-2.h (static): Do not undef.
8544 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
8546 (HAVE_SYSVIPC): Remove, unused.
8548 * m/hp800.h (CANNOT_DUMP): Do not undef.
8550 * m/alpha.h: Fix comment.
8552 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
8553 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
8554 used by this configuration.
8555 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
8556 * unexec.c: Remove code depending on HPUX and
8557 USG_SHARED_LIBRARIES, not used with this file. Remove code
8558 depending on IRIS, unused. Remove if 0-ed code.
8560 * s/template.h: Remove comments about static.
8562 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
8563 Remove if 0-ed code.
8564 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
8565 were the same as the default.
8566 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
8567 Remove boilerplate comments.
8568 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
8569 (HAVE_SYSVIPC): Remove, unused.
8570 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
8572 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8573 Remove boilerplate comments.
8574 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8575 Remove boilerplate comments.
8576 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8577 Remove boilerplate comments.
8578 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
8580 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
8581 USG systems which do not use DATA_SEG_BITS.
8582 Refactor code. Remove boilerplate comments.
8591 * s/msdos.h: Remove boilerplate comments.
8593 * m/iris4d.h: Remove boilerplate comments and code for systems that
8594 do not use this file.
8595 (IRIS_4D): Remove, unused.
8597 * m/mips.h: Remove boilerplate comments and code for systems that
8598 do not use this file.
8600 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
8601 * unexmips.c: Remove file, unused.
8603 * editfns.c (Fuser_full_name): Replace the only use of
8604 USER_FULL_NAME with its value.
8605 * config.in: Regenerate.
8607 2008-07-16 David Reitter <david.reitter@gmail.com>
8609 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
8610 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
8612 2008-07-16 Glenn Morris <rgm@gnu.org>
8614 * emacs.c (system-type): Doc fix.
8616 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
8618 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
8619 If the cache doesn't work, let's fix it, rather than work around it.
8621 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8623 * Makefile.in: Correct additions for nsfont.o in last commit.
8624 * nsfont.m: New file (forgot last commit).
8626 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8628 * callproc.c (set_initial_environment): Initialize
8629 Vprocess_environment under CANNOT_DUMP (fixes crash when
8630 batch-compiling for bootstrap).
8632 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8633 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8635 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
8636 fix crash due to different init order.
8638 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8640 Changes and additions for NeXTstep windowing system (Cocoa and
8644 * config.in: Support defines and build commands for NS port.
8645 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
8646 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
8647 * dispextern.h: Include nsgui.h and add needed typedefs under NS
8649 (struct face): Add synth_ital field.
8650 * dispnew.c: Include nsterm.h when compiling under NS windowing.
8651 (init_display): Initialize Vinitial_window_system to "ns" when so
8653 * emacs.c: Include GSConfig.h when compiling under GNUstep.
8654 (display_arg): Use under NS.
8655 (main): Under NS, allocate autorelease pool and handle command line
8656 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
8657 (standard_args): Add NS-specific args.
8658 (shut_down_emacs): Shut down NS terminal if compiled under NS.
8659 * font.c (DEFAULT_ENCODING): New variable.
8660 (font_find_for_lface): Use it.
8661 (syms_of_font): Load syms_of_nsfont under NS.
8662 * font.h: Declare nsfont_driver when compiled under NS.
8663 * fontset.c: When compiling under NS, include nsterm.h.
8664 (fontset_from_font): Autoconstruct fontset under NS.
8665 * frame.c (various): Under NS, include nsterm.h, add Qns window system
8666 symbol, document and use it.
8667 (do_switch_frame): When for_deletion under Cocoa, add
8669 (x_set_frame_parameters): Ensure font attribute changes are picked up.
8670 (x_get_arg): Allow "yes" and "no" as boolean values.
8671 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
8673 (focus-follows-mouse): Default to 0 under NS.
8674 * frame.h (enum output_method): Add output_ns.
8675 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
8676 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
8677 (FRAME_WINDOW_P): NS-specific definition.
8678 * fringe.c (max_used_fringe_bitmap): Make public.
8679 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
8680 (getloadavg): Use NeXT code under descendant OS's.
8681 * image.c (includes and header section, x_create_bitmap_from_data)
8682 (x_create_bitmap_from_file, free_bitmap_record, image_background)
8683 (image_background_transparent, x_clear_image_1)
8684 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
8685 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
8686 (x_to_xcolors, x_from_xcolors, x_disable_image)
8687 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
8688 other GUIs, including XPM support using code originally written for
8690 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
8692 (image_ascent): Use font metrics macros instead of direct struct field
8694 * keyboard.c (includes): Add nsterm.h when compiling under NS.
8695 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
8696 Also, handle NS as GTK for menu bar purposes.
8697 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
8698 toolkit where they differ.
8699 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
8700 use cachelist, still needed under NS.
8701 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
8702 (struct widget_value): Define it here for menu.c.
8703 * keymap.c (includes): Include modifier internals.
8704 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
8706 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
8707 support for preferring sequences using certain modifiers, specified by
8708 the FIRSTONLY argument.
8709 * lisp.h (hash_remove): Rename to avoid name clash when compiling
8710 under NS GNUstep implementation.
8711 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
8712 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
8713 * menu.c: Include nsterm.h under NS.
8714 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
8715 (free_menubar_widget_tree_value, update_submenu_strings)
8716 (find_and_call_menu_selection): Treat NS as X and NT.
8717 (find_and_return_menu_selection): New function, used for popup menus.
8724 * nsterm.m: New files.
8725 * process.c (wait_reading_process_output): Under NS, call ns_select()
8726 instead of plain select().
8727 * syntax.c (char_quoted): Under NS, avoid a crash when called near
8728 beginning of buffer.
8729 * sysselect.h (init_process): Rename when compiling under Cocoa to
8730 avoid name conflict.
8731 * termhooks.h (display_info): Add ns_display_info to union.
8732 * terminal.c (Fterminal_live_p): Add ns to terminal types.
8733 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
8735 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
8736 unexec() signature. (Note, this will dump, but the resulting file
8737 crashes; unexosx is used instead; keeping around for reference and
8738 possible aid in getting dump working under GNUstep.)
8739 * w32gui.h (button_type, widget_value): Remove definitions (now in
8741 * window.c: Include nsterm.h when compiling under NS.
8742 * xdisp.c (includes): Include nsterm.h when compiling under NS.
8743 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
8744 other GUI windowing systems.
8745 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
8747 (x_consider_frame_title): Under NS, set icon type and frame
8748 modified-state indicator; use ns_set_name_as_filename() when using
8750 (update_window_cursor): Make public when compiling under NS.
8751 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
8752 (hourglass_atimer, Vhourglass_delay
8753 * xfaces.c (header section, init_frame_faces, clear_font_table)
8754 (defined_color, unload_color, x_face_list_fonts)
8755 (prepare_face_for_display): Add NS support parallel to other GUIs.
8756 Emulate GCs like other non-X GUIs.
8757 (split_font_name): Don't lowercase font name under NS.
8758 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
8760 * s/darwin.h: Add support for compilation under NS.
8762 2008-07-15 Jason Rumney <jasonr@gnu.org>
8764 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
8765 (w32_show_hourglass): Rename from show_hourglass.
8766 (w32_hide_hourglass): Rename from hide_hourglass.
8767 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
8768 (Vhourglass_delay): Declare extern.
8769 (hourglass_started): Remove.
8771 * xdisp.c (Vhourglass_delay): Remove static.
8772 (hourglass_started, start_hourglass, cancel_hourglass):
8773 Don't include these versions on WINDOWSNT.
8775 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8777 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
8778 variables (formerly in xfns.c).
8779 (show_hourglass, hide_hourglass): New prototypes (same).
8780 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
8781 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
8783 (syms_of_xdisp): Declare/initialize display-hourglass,
8784 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
8785 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
8787 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8788 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8789 (start_hourglass, cancel_hourglass): Remove.
8790 (show_hourglass, hide_hourglass): Remove prototypes and static
8792 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
8793 hourglass_atimer, hourglass_shown_p declaration/initialization.
8794 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8795 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8796 (start_hourglass, cancel_hourglass): Remove.
8797 (show_hourglass, hide_hourglass): Remove prototypes and static
8799 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
8800 hourglass_atimer, hourglass_shown_p declaration/initialization.
8801 * w32fns.c (display_hourglass_p, Vhourglass_delay)
8802 (DEFAULT_HOURGLASS_DELAY): Remove.
8803 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
8804 hourglass_shown_p declaration/initialization.
8806 2008-07-14 Jason Rumney <jasonr@gnu.org>
8808 * w32fns.c (w32_get_arg): Remove wrapper function.
8809 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
8811 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
8813 2008-07-14 Kenichi Handa <handa@m17n.org>
8815 * xfont.c (xfont_open): Add workaround for X's bug.
8817 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8819 * fontset.c: Include <stdio.h> unconditionally.
8821 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
8823 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
8826 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
8828 * s/vms.h: Use __GNUC__ instead of _GNUC_.
8831 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
8833 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
8834 (SPECIAL_EMACS_INT):
8835 * m/ia64.h (SPECIAL_EMACS_INT):
8836 * m/amdx86-64.h (SPECIAL_EMACS_INT):
8837 * s/gnu.h (NLIST_STRUCT):
8838 * s/aix4-2.h (X11R5_INHIBIT_I18N):
8839 * s/gnu-linux.h (LINUX):
8840 * s/msdos.h (HAVE_FACES):
8841 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
8844 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
8847 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
8849 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
8850 always defined as int.
8852 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
8853 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
8854 * s/gnu-linux.h (HAVE_WAIT_HEADER):
8855 * s/freebsd.h (HAVE_WAIT_HEADER):
8856 * s/bsd-common.h (HAVE_UNION_WAIT):
8857 * s/aix4-2.h (HAVE_WAIT_HEADER):
8858 * m/mips.h (HAVE_UNION_WAIT):
8859 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
8860 (COFF, static): Do not define, they are undefined later in the file.
8862 * process.c (update_status): Don't use a union.
8864 (sigchld_handler): Use int instead of WAITTYPE.
8866 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
8868 * indent.c (Fvertical_motion): Restore hscroll before moving to
8871 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
8873 * lisp.h: Remove left over code.
8875 2008-07-11 Andreas Schwab <schwab@suse.de>
8877 * lisp.h: Fix logic in last change.
8880 * menu.c: Include it.
8881 * xmenu.c: Likewise.
8882 * Makefile.in: Update dependencies.
8884 2008-07-11 Kenichi Handa <handa@m17n.org>
8886 * fontset.c (fontset_from_font): Cancel the previous change.
8888 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
8893 * alloc.c: Replace all references of NO_UNION_TYPE with
8894 USE_LISP_UNION_TYPE.
8896 * m/xtensa.h (NO_UNION_TYPE):
8897 * m/vax.h (NO_UNION_TYPE):
8898 * m/template.h (NO_UNION_TYPE):
8899 * m/sparc.h (NO_UNION_TYPE):
8900 * m/mips.h (NO_UNION_TYPE):
8901 * m/macppc.h (NO_UNION_TYPE):
8902 * m/m68k.h (NO_UNION_TYPE):
8903 * m/iris4d.h (NO_UNION_TYPE):
8904 * m/intel386.h (NO_UNION_TYPE):
8905 * m/ibms390x.h (NO_UNION_TYPE):
8906 * m/ibms390.h (NO_UNION_TYPE):
8907 * m/ibmrs6000.h (NO_UNION_TYPE):
8908 * m/ia64.h (NO_UNION_TYPE):
8909 * m/hp800.h (NO_UNION_TYPE):
8910 * m/arm.h (NO_UNION_TYPE):
8911 * m/amdx86-64.h (NO_UNION_TYPE):
8912 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
8913 defining it the same.
8915 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
8917 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
8919 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
8936 * s/vms.h: Remove references to unused variables.
8938 2008-07-10 Andreas Schwab <schwab@suse.de>
8940 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
8941 pattern before matching the generic family.
8943 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
8950 * s/darwin.h: Remove dead code.
8963 * m/amdx86-64.h: Remove dead code and references to unused
8964 and compiler defined symbols.
8967 * unexelf.c: Remove references to desupported systems.
8969 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
8971 * m/powermac.h: Remove boilerplate comments.
8972 (NO_REMAP): Remove unused definition.
8974 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
8977 2008-07-10 Kenichi Handa <handa@m17n.org>
8979 * xfont.c (xfont_open): Log the reason of failure.
8981 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
8983 * fontset.c (fontset_get_font_group):
8984 * font.c (font_check_otf): Specify argument types.
8986 2008-07-09 Kenichi Handa <handa@m17n.org>
8988 * coding.c (detect_coding_utf_8): Set detect_info->found only when
8989 non-ASCII char is found.
8991 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
8992 (reorder_font_vector): Change the arg preferred_family to font.
8993 Prefer the spec matching with font.
8994 (fontset_get_font_group): New function.
8995 (fontset_find_font): Change the format of an element of a realized
8996 fontset. Use fontset_get_font_group.
8997 (fontset_font): Try the current fontset, the default fontset, the
8998 fallbacks of the current fontset, and the fallbacks of the default
8999 fontset in this order.
9000 (face_for_char): Delete the shortcut to use the current font.
9001 (fontset_from_font): Don't set fonts for Latin in the fontset.
9003 * font.h (font_make_object, font_match_p): Adjust prototypes.
9005 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
9007 * font.c (font_make_object): New arg entity and pixelsize.
9008 (font_check_otf_features, font_check_otf): New functions.
9009 (font_match_p): Check :lang, :script, and :otf properties.
9011 * xfont.c (xfont_open): Adjust it for the change of
9013 (xfont_text_extents): Fix initial setting of metrics.
9015 * ftfont.c (struct ftfont_info): New member index, delete member
9016 fc_charset_idx. Make the member order compatible with struct
9018 (fc_charset_table): Change charset names to registry names.
9019 (ftfont_pattern_entity): Delete the args registry and
9020 fc_charset_idx. Change the value of :font-entity property
9021 to (FONTNAME . INDEX). Always set :registry property to
9023 (struct ftfont_cache_data): New struct.
9024 (ftfont_lookup_cache): New arg for_face.
9025 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
9026 (ftfont_driver): Set the member otf_capability.
9027 (ftfont_get_charset): Adjust it for the change of
9029 (OTF_TAG_SYM): New macro.
9030 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
9031 for the change of fc_charset_table.
9032 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
9033 ftfont_pattern_entity. Add FC_INDEX to objset.
9034 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
9035 and ftfont_pattern_entity.
9036 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
9037 font_make_object, struct ftfont_info.
9038 (ftfont_has_char): Use ftfont_get_fc_charset.
9039 (ftfont_otf_features, ftfont_otf_capability): New functions.
9040 (ftfont_shape): Use ftfont_get_otf.
9041 (ftfont_text_extents): Fix initial setting of metrics.
9043 * xftfont.c (struct xftfont_info): New member ft_size. Make the
9044 member order compatible with struct ftfont_info.
9045 (xftfont_open): Add FC_CHARSET to the pattern. Set
9046 xftfont_info->ft_size. Don't unlock the face. Check BDF
9047 properties if appropriate.
9048 (xftfont_close): Unlock the face.
9049 (xftfont_anchor_point, xftfont_shape): Deleted.
9050 (syms_of_xftfont): Don't set members anchor_point and shape of
9053 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
9056 * w32font.c (w32font_open): Adjust it for the change of
9058 (w32font_open_internal): Don't set properties of font_object here.
9060 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
9062 * macfns.c (x_create_tip_frame):
9063 * w32fns.c (x_create_tip_frame):
9064 * xfns.c (x_create_tip_frame): Pass parameter argument to
9065 face-set-after-frame-default.
9067 * xfaces.c (Finternal_merge_in_global_face): Save merged
9068 attributes for the default face back into the face vector.
9070 2008-07-08 Andreas Schwab <schwab@suse.de>
9072 * fontset.h: Declare fontset_from_font. Don't declare
9073 new_fontset_from_font and fontset_from_font_name.
9074 * xterm.c: Include "fontset.h".
9075 * Makefile.in (xterm.o): Update dependencies.
9077 2008-07-08 Glenn Morris <rgm@gnu.org>
9079 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
9080 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
9082 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
9084 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
9085 (x_set_frame_parameters): Don't bind it.
9087 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
9089 * w32fns.c (map_w32_filename): Declare extern.
9091 2008-07-07 Jason Rumney <jasonr@gnu.org>
9093 * w32term.c (WS_EX_LAYERED): Define if not already.
9095 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
9097 * xfaces.c (set_font_frame_param): Don't try to set the font
9098 parameter if it is still unspecified in the lface.
9100 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
9102 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
9103 face if it didn't already exist.
9105 * xdisp.c (try_window_id): Give up if word-wrapping is on.
9107 2008-07-05 Andreas Schwab <schwab@suse.de>
9109 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
9111 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
9113 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
9115 (IT_DISPLAYING_WHITESPACE): New macro.
9116 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
9117 when word-wrapping. Simplify word-wrapping logic. Use correct
9118 pixel positions when saving copies of the iterator.
9119 (display_line): Use proper wrap point if the last character on a
9120 line was preceded by whitespace.
9122 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
9124 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
9126 2008-07-04 Kenichi Handa <handa@m17n.org>
9128 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
9130 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
9132 2008-07-02 Jason Rumney <jasonr@gnu.org>
9134 * xfns.c (syms_of_xfns): Only define x-select-font when both
9135 HAVE_FREETYPE and USE_GTK.
9137 * xdisp.c (next_element_from_display_vector): Move assignment out
9140 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
9142 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
9144 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
9145 (syms_of_fileio): Initialize and export them.
9146 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
9148 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
9149 (Fsystem_move_file_to_trash): New function.
9150 (syms_of_w32fns): Export it to lisp.
9152 2008-07-01 Jason Rumney <jasonr@gnu.org>
9154 * w32font.c (w32font_text_extents): Don't count overhang as part
9157 2008-06-30 Miles Bader <miles@gnu.org>
9159 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
9160 Add `avoid_cursor_p' field.
9162 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
9163 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
9164 (append_glyph, append_composite_glyph, produce_image_glyph)
9165 (append_stretch_glyph): Initialize avoid_cursor_p.
9166 (get_it_property): Rename from `get_line_height_property'.
9167 (x_produce_glyphs): Use get_it_property.
9168 (handle_line_prefix, push_display_prop): New functions.
9169 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
9170 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
9172 (syms_of_xdisp): Initialize them.
9174 2008-06-30 Kenichi Handa <handa@m17n.org>
9176 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
9177 XftDefaultSubstitute (they are called in XftFontMatch).
9178 (xftfont_open): Fix args to ftfont_font_format.
9180 * ftfont.c (fc_charset_table): New member lang.
9181 (ftfont_resolve_generic_family): New arg pattern.
9182 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
9183 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
9184 (ftfont_open): Fix args to ftfont_font_format.
9185 (ftfont_font_format): New arg filename.
9187 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
9189 * xfaces.c (Finternal_merge_in_global_face): If default face was
9190 modified, realize it again. Update the font face attribute.
9192 2008-06-29 Jason Rumney <jasonr@gnu.org>
9194 * w32term.c (x_set_frame_alpha): Fix logic.
9196 2008-06-29 Kenichi Handa <handa@m17n.org>
9198 * fontset.c (Finternal_char_font): Return font-object instead of
9201 * composite.c (get_composition_id): Fix the width calculation for TAB.
9203 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
9205 * indent.c (Fvertical_motion): Properly handle float column arg.
9207 2008-06-28 Jason Rumney <jasonr@gnu.org>
9209 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
9210 (pfnSetLayeredWindowAttributes): New function pointer.
9211 (w32_initialize): Initialize it when supported.
9212 (x_set_frame_alpha): New function.
9214 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
9215 (w32_frame_parm_handlers): Set alpha handler.
9217 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
9219 2008-06-27 Jason Rumney <jasonr@gnu.org>
9221 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
9222 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
9223 (w32_to_x_charset, x_to_w32_charset)
9224 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9225 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9226 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9227 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9228 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9229 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9230 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
9231 (Qw32_charset_unicode): Remove.
9232 (syms_of_w32fns): Update for above changes.
9234 * w32font.c (w32_to_x_charset, x_to_w32_charset)
9235 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9236 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9237 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9238 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9239 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9240 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9241 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
9242 (syms_of_w32font): Update for above changes.
9244 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
9246 * s/usg5-4.h: Fix previous change: keep the correct branch of a
9248 (USG_SHARED_LIBRARIES): Remove duplicate definition.
9250 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
9251 Eli Zaretskii <eliz@gnu.org>
9253 * makefile.w32-in (LOCAL_FLAGS):
9254 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
9256 * sysdep.c (_spawnlp, _getpid):
9257 Declare with explicit _cdecl instead of _CRTAPI1.
9259 * editfns.c (Fget_internal_run_time):
9260 Check for WINDOWSNT with #ifdef, not #if.
9262 2008-06-26 Jason Rumney <jasonr@gnu.org>
9264 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
9266 * w32term.c (x_draw_glyph_string_foreground)
9267 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
9268 Use FONT_HANDLE macro.
9269 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
9271 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9272 (uniscribe_encode_char): Use FONT_HANDLE macro.
9274 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
9275 (w32font_text_extents): Use precast w32_font.
9276 (w32font_close): Free cached metrics.
9277 (w32font_open_internal): Allocate space for name on stack.
9279 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
9281 * xdisp.c (extend_face_to_end_of_line): Fix last change.
9283 2008-06-26 Jason Rumney <jasonr@gnu.org>
9285 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
9286 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
9288 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
9290 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
9292 2008-06-26 Jason Rumney <jasonr@gnu.org>
9294 * w32bdf.c, w32bdf.h: Remove obsolete files.
9296 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
9298 * w32gui.h: Don't include w32bdf.h.
9299 (XCharStruct, enum w32_char_font_type, W32FontStruct):
9300 Remove obsolete font support.
9302 * w32font.h (struct w32font_info): Remove compat_w32_font.
9304 (FONT_COMPAT): Remove obsolete macro.
9306 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
9307 (w32font_encode_char, w32font_text_extents): Use new hfont member.
9308 (w32font_open_internal): Remove compat code. Set new hfont member.
9309 (Fx_select_font): Use new hfont member.
9311 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9312 (uniscribe_encode_char): Use new hfont member.
9314 * w32term.c (x_draw_glyph_string_foreground)
9315 (x_draw_composite_glyph_string_foreground): Use new hfont member.
9316 (x_draw_glyph_string): Use metrics in w32font_info.
9318 2008-06-26 Kenichi Handa <handa@m17n.org>
9320 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
9322 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
9350 * s/uxpv.h: Remove support for obsolete systems.
9351 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
9352 Remove, insert contents in s/hpux10-20.h.
9353 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
9354 Remove, insert contents in s/aix4-2.h.
9355 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
9356 * s/bsd4-3.h: Rename to ...
9357 * s/bsd-common.h: ... this.
9386 * s/template.h: Remove references to obsolete variables.
9388 * Makefile.in: Add dependencies for all unexec files.
9389 (admindir): Remove unused variable.
9390 (UNEXEC_SRC): Remove references.
9392 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
9394 * xfns.c (x_default_font_parameter): If Xft is available, first
9395 try Monospace-12 for the default font.
9397 2008-06-25 Jason Rumney <jasonr@gnu.org>
9399 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
9401 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
9403 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
9405 * buffer.c (syms_of_buffer): Remove default-word-wrap.
9407 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
9409 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
9410 <scroll-conservatively>: Fix typo in docstring.
9412 * xselect.c (Fx_send_client_event): Doc fix.
9414 2008-06-25 Kenichi Handa <handa@m17n.org>
9416 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
9418 * font.c (font_parse_fcname): Remove unused variables.
9419 (font_sort_entites): Delete the arg SPEC. Caller changed.
9420 Fix for the case of ! best_only.
9421 (font_delete_unmatched): Check DPI and AVGWIDTH too.
9423 * lisp.h (Fstring_to_unibyte): EXFUN it.
9425 * character.h (str_to_unibyte): Extern it.
9427 * character.c (str_to_unibyte): New function.
9429 * fns.c (Fstring_to_unibyte): New function.
9430 (syms_of_fns): Defsubr it.
9432 2008-06-24 Kenichi Handa <handa@m17n.org>
9434 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
9436 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
9438 2008-06-24 Andreas Schwab <schwab@suse.de>
9440 * Makefile.in (${lispsource}loaddefs.el): Rename from
9441 ../lisp/loaddefs.el.
9442 (bootstrap-clean): Do what distclean does but don't remove
9444 (distclean): Depend on bootstrap-clean and remove Makefile.
9446 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
9448 * buffer.h (struct buffer): New member word_wrap.
9450 * buffer.c (syms_of_buffer): New variables default-word-wrap and
9452 (init_buffer_once): Initialize them.
9454 * dispextern.h (struct it): Replace bool truncate_lines_p with a
9455 line_wrap enum possessing three possible values.
9457 * termopts.h: Replace truncate_partial_width_windows with
9458 Vtruncate_partial_width_windows.
9460 * dispnew.c (direct_output_for_insert): Avoid direct output when
9461 inserting a space with word wrap on.
9463 * indent.c (compute_motion): Obey integer values of
9464 truncate-partial-width-windows.
9466 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
9467 replacing truncate_partial_width_windows.
9468 (init_iterator): If Vtruncate_partial_width_windows is an integer,
9469 truncate only if the window width is below that integer.
9470 (start_display, resize_mini_window, produce_stretch_glyph)
9471 (display_string, move_it_in_display_line_to): Use line_wrap.
9472 (back_to_previous_visible_line_start, reseat_1): Reset
9473 string_from_display_prop_p.
9474 (display_line): Extend default face to end of line when wrapping.
9476 2008-06-24 Kim F. Storm <storm@cua.dk>
9478 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
9479 to wrap continued lines at word boundaries.
9481 2008-06-24 Jason Rumney <jasonr@gnu.org>
9483 * font.c (Ffont_face_attributes): Multiply pixel size before point
9484 conversion to avoid multiplying rounding error.
9486 2008-06-23 Jason Rumney <jasonr@gnu.org>
9488 * w32term.c (x_draw_glyph_string_background)
9489 (x_draw_glyph_string): Remove old bdf font code.
9491 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
9493 2008-06-22 Kenichi Handa <handa@m17n.org>
9495 * font.c (font_find_for_lface): Try the adstyle specified in
9496 the property of LFACE_FONT of LFACE (if any).
9498 2008-06-21 Seiji Zenitani <zenitani@mac.com>
9499 Ryo Yoshitake <ryo@shiftmode.net>
9501 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
9503 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
9505 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
9506 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
9507 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
9508 (witness-emacs): Remove.
9509 (lisp, shortlisp): Move loaddefs.el earlier.
9510 (mostlyclean): Forget about witness-emacs.
9512 2008-06-22 Glenn Morris <rgm@gnu.org>
9514 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
9515 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
9517 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9519 * Makefile.in (PRECOMP): Remove.
9520 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
9521 (witness-emacs): Run `compile-first'.
9522 (.el.elc): Use the new compile-onefile target.
9524 2008-06-21 Kenichi Handa <handa@m17n.org>
9526 * xftfont.c (xftfont_open): Handle QCembolden only when
9527 FC_EMBOLDEN is defined.
9529 2008-06-21 Andreas Schwab <schwab@suse.de>
9531 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
9532 (.el.elc): Likewise.
9534 2008-06-21 Miles Bader <miles@gnu.org>
9536 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
9537 build dir, not the lisp source dir.
9539 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9541 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
9542 (bootstrapclean): Remove.
9543 (.el.elc): New rule.
9545 (../lisp/subdirs.el): Remove.
9546 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
9547 (witness-emacs): New target.
9548 (mostlyclean): Remove witness-emacs as well.
9549 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
9550 Add witness-emacs dependency.
9552 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
9554 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
9555 defined by the font.
9557 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9559 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
9560 (bootstrap-clean): New target that keeps TAGS around.
9561 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
9562 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
9564 2008-06-20 Jason Rumney <jasonr@gnu.org>
9566 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
9567 Remove obsolete font code.
9569 * w32font.c (font_matches_spec): Use csb bitfield from font signature
9570 to determine language support.
9572 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9574 * sysdep.c (cfsetspeed): New fun extracted from the code.
9575 (cfmakeraw): Move before first use.
9577 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
9579 * sysdep.c (cfmakeraw): Provide fallback implementation.
9580 (serial_configure): Provide fallback implementation of cfsetspeed.
9582 2008-06-20 Kenichi Handa <handa@m17n.org>
9584 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
9587 * fontset.c (fontset_from_font): Copy font_spec before changing
9590 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
9592 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9594 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
9595 for explicit `font' parameters.
9597 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
9599 2008-06-19 Kenichi Handa <handa@m17n.org>
9601 * frame.c: Include <ctype.h>.
9602 (x_set_font_backend): Allow spacing characters in the X resource
9605 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
9607 * w32fns.c, xfns.c (Qfont_param): New var.
9608 (syms_of_w32fns): Initialize it.
9609 (x_default_font_parameter): Record explicit `font' into
9612 2008-06-18 Kenichi Handa <handa@m17n.org>
9614 * font.c (font_parse_xlfd): Fix previous change.
9615 (font_parse_fcname): Don't use :fc-unknown-spec.
9616 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
9617 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
9618 (font_add_log): Prepend the driver name to the resulting fonts.
9620 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
9621 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
9622 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
9624 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
9625 (QCembolden): New variables.
9626 (syms_of_xftfont): DEFSYM them.
9627 (xftfont_open): Call XftFontMatch. Don't trust the result of
9628 XftTextExtents8 if the pixel_size is less than 5.
9630 2008-06-18 Andreas Schwab <schwab@suse.de>
9632 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
9633 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
9635 2008-06-18 Jason Rumney <jasonr@gnu.org>
9637 * w32font.c (w32font_list, w32font_match): Add logging.
9639 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
9641 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
9643 * font.c (font_parse_fcname): Store divider characters for
9644 unknown-spec list. For known key symbols, intern using correct
9647 2008-06-17 Kenichi Handa <handa@m17n.org>
9649 * xfaces.c (realize_default_face): If the frame is not on window
9650 system, set the fontset of face to nil.
9652 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9654 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
9656 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
9658 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
9659 (build_font_name_from_vector): Delete externs.
9661 * xfaces.c (struct font_name): Don't declare.
9663 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
9665 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
9667 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
9669 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
9671 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
9673 * font.c (Ffont_spec): Fix usage in docstring.
9674 (Ffont_face_attributes): Doc fix.
9676 2008-06-16 Andreas Schwab <schwab@suse.de>
9678 * font.c (Ffont_face_attributes): Fix definition.
9680 2008-06-16 Jason Rumney <jasonr@gnu.org>
9682 * font.h (font_style_symbolic_from_value): Remove.
9684 * font.c (font_style_symbolic_from_value): Remove.
9685 (font_style_symbolic): Revert to pre 2008-06-13 version.
9687 * w32font.c (w32_to_fc_weight): New function.
9688 (w32font_full_name, logfont_to_fcname): Use it.
9690 2008-06-16 Kenichi Handa <handa@m17n.org>
9692 * font.c (font_check_object): Delete it.
9693 (font_clear_cache): Check if a font-object is alive.
9694 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
9696 (font_close_object): Don't check FONT_CLOSE_OBJECT.
9697 (font_at): Don't call font_check_object.
9698 (Ffont_get): Return a symbol for :weight, :slant, and :width.
9700 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
9702 * puresize.h (BASE_PURESIZE): Increase to 1230000.
9704 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
9706 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
9708 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
9710 * font.c (font_parse_fcname): Only one decimal point.
9711 (font_unparse_fcname): Handle data in family and foundry indices
9712 as symbols, not strings.
9713 (font_unparse_gtkname, Ffont_face_attributes): New functions.
9715 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
9717 * font.h (font_unparse_gtkname): Add prototype.
9719 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9721 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
9723 2008-06-15 Andreas Schwab <schwab@suse.de>
9725 * font.c (font_update_drivers): Fix crash when no drivers match.
9727 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
9729 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
9730 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
9732 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
9734 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
9736 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
9738 * process.c (Fserial_process_configure, Fprocess_send_eof):
9739 Use EQ to compare Lisp_Objects.
9741 2008-06-13 Jason Rumney <jasonr@gnu.org>
9743 * w32fns.c (Fw32_select_font): Remove old font API function.
9745 * w32font.c (logfont_to_fcname): New function.
9746 (Fx_select_font): New font dialog function compatible with
9747 GTK/fontconfig version.
9749 * font.c (font_style_symbolic_from_value): New function.
9750 (font_style_symbolic): Use it.
9752 * font.h (font_style_symbolic_from_value): Declare new function.
9754 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
9756 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
9757 <font-width-table>: Fix typos in docstrings.
9759 2008-06-13 Daniel Engeler <engeler@gmail.com>
9761 These changes add serial port access.
9762 * process.c: Add HAVE_SERIAL.
9763 (Fdelete_process, Fprocess_status, Fset_process_buffer)
9764 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
9765 (list_processes_1, select_wrapper, Fstop_process)
9766 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
9767 (status_notify): Modify to handle serial processes.
9768 [HAVE_SERIAL] (Fserial_process_configure)
9769 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
9771 * process.h (struct Lisp_Process): Add `type'.
9772 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
9774 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
9776 (serial_open, serial_configure): New functions.
9777 * w32.h: Add FILE_SERIAL.
9778 (struct _child_process): Add ovl_read, ovl_write.
9780 2008-06-13 Kenichi Handa <handa@m17n.org>
9782 * dispextern.h (enum lface_attribute_index): New member
9783 LFACE_FOUNDRY_INDEX.
9785 * font.c (font_score): Delete arg alternate_families. Check only
9786 weight, slant, width, and size. Ignore the difference of alias
9788 (font_sort_entites): Adjust for the above change. Reflect the
9789 order of font-driver to scores.
9790 (font_list_entities): Don't check alternate_familes here.
9791 (font_clear_prop): Handle foundry.
9792 (font_update_lface): Don't parse "foundry-family" form here.
9793 Handle FONT_FOUNDRY_INDEX.
9794 (font_find_for_lface): Likewise. Handle alternate families here.
9795 If registry is nil, try iso8859-1 and ascii-0.
9796 (font_open_for_lface): Pay attention to size in ENTITY.
9797 (font_open_by_name): Simplify by calling font_load_for_lface.
9798 (free_font_driver_list): Delete it.
9799 (font_update_drivers): Preserve the order of backends.
9800 (syms_of_font): Setting of sort_shift_bits adjusted for the change
9801 of font_score and font_sort_entites.
9802 (font_update_sort_order): Likewise.
9804 * xfaces.c (LFACE_FOUNDRY): New macro.
9805 (check_lface_attrs): Check foundry.
9806 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
9807 (merge_face_vectors): Check foundry.
9808 (merge_face_ref): Likewise.
9809 (Finternal_set_lisp_face_attribute): Likewise.
9810 (x_update_menu_appearance): Likewise.
9811 (Finternal_get_lisp_face_attribute): Likewise.
9812 (lface_hash): Likewise.
9813 (lface_same_font_attributes_p): Likewise.
9814 (x_supports_face_attributes_p): Likewise.
9815 (tty_supports_face_attributes_p): Likewise.
9816 (Finternal_set_alternative_font_family_alist): Intern strings.
9817 (Finternal_set_alternative_font_registry_alist): Downcase strings.
9818 (realize_default_face): Set LFACE_FOUNDRY (lface).
9820 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
9821 font-driver at first.
9823 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
9825 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9827 * lread.c (Fload): Use xfree, not free on saved_doc_string.
9829 2008-06-12 Jim Meyering <meyering@redhat.com>
9831 Make unexec_free handle NULL the same way free does.
9832 * unexmacosx.c (unexec_free): Ignore a NULL argument.
9834 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
9836 * character.h (CHAR_TO_BYTE_SAFE): New macro.
9837 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
9838 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
9839 (WEAK_ALIAS): Simplify.
9840 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
9841 when searching a unibyte buffer.
9843 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
9845 * xfns.c (Fx_select_font): Rename from x-font-dialog.
9847 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
9849 * w32font.c: Include ctype.h.
9851 2008-06-11 Jason Rumney <jasonr@gnu.org>
9853 * w32font.c (w32font_encode_char): Detect missing glyphs that are
9854 misreported as space.
9855 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
9856 as aliases for registry iso10646-1.
9858 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
9860 * buffer.c (clone_per_buffer_values): Skip `name'.
9862 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
9864 * font.c (font_parse_fcname): Fix last change; accept decimal
9865 points in font size.
9867 2008-06-10 Jason Rumney <jasonr@gnu.org>
9869 * w32uniscribe.c (add_opentype_font_name_to_list):
9870 Skip non unicode fonts.
9872 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
9874 * xfns.c (Fx_font_dialog): New function.
9876 * gtkutil.c (xg_dialog_response_cb): Rename from
9877 xg_file_response_callback.
9878 (pop_down_dialog): Rename from pop_down_file_dialog.
9879 (xg_get_file_name): Callers changed.
9880 (xg_get_font_name): New function.
9882 * gtkutil.h (xg_get_font_name): Insert prototype.
9884 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
9886 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
9887 x_underline_minimum_display_offset.
9888 (syms_of_xdisp): Declare it here rather than in xterm.c.
9889 * dispextern.h (underline_minimum_offset): Declare it.
9890 * w32term.c (x_draw_glyph_string): Use it.
9891 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
9892 (syms_of_xterm): Don't declare it any more.
9893 (x_draw_glyph_string): Adjust to the new name.
9895 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
9897 * xterm.c (x_underline_minimum_display_offset): New var.
9898 (x_draw_glyph_string): Use it.
9899 (syms_of_xterm): Declare it.
9901 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
9903 * font.c (font_parse_fcname): Accept GTK-style font names too.
9905 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
9907 * dired.c (file_name_completion): Don't return t if the match is exact
9908 but with different capitalization.
9909 * minibuf.c (Ftry_completion): Simplify.
9911 * window.c (Vwindow_point_insertion_type): New var.
9912 (set_window_buffer): Use it.
9913 (syms_of_window): Init and export it to Lisp.
9915 2008-06-10 Kenichi Handa <handa@m17n.org>
9917 * font.h (font_intern_prop): Prototype adjusted.
9919 * font.c (font_intern_prop): New arg force_symbol.
9920 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
9921 Adjust for the change of font_intern_prop.
9923 * ftfont.c (ftfont_pattern_entity):
9924 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
9926 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
9927 the change of font_intern_prop.
9929 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
9931 * w32menu.c (digest_single_submenu): Declare extern.
9933 2008-06-09 Jason Rumney <jasonr@gnu.org>
9935 * w32term.c (x_make_frame_visible): Use alternate restore flags.
9937 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
9938 (parse_single_submenu): Remove.
9939 (digest_single_submenu): Remove.
9940 (syms_of_w32menu): Don't initialise variables that have moved
9942 (set_frame_menubar): Sync with version in xmenu.c.
9943 (w32_menu_show): Sync with xmenu_show in xmenu.c.
9945 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
9948 2008-06-09 Jason Rumney <jasonr@gnu.org>
9950 Changes to w32 files related to the move of common menu code
9951 to menu.c on 2008-06-08 by Chong Yidong.
9953 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
9955 (single_keymap_panes, push_menu_item, push_menu_pane):
9956 Make globally visible.
9958 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
9959 (local_free, malloc_widget_value, free_widget_value)
9960 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
9961 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
9962 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
9963 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
9964 (menu_items, menu_items_allocated, menu_items_used)
9965 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
9966 (init_menu_items, finish_menu_items, discard_menu_items)
9967 (grow_menu_items, push_submenu_start, push_submenu_end)
9968 (push_left_right_boundary, push_menu_pane, push_menu_item)
9969 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
9970 (free_menubar_widget_tree_value, parse_single_submenu)
9971 (update_submenu_strings): Remove functions.
9972 (xmalloc_widget_value): Remove and declare extern.
9974 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
9977 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
9978 (local_heap, local_alloc, local_free, malloc_widget_value)
9979 (free_widget_value): Define here.
9981 2008-06-09 Kenichi Handa <handa@m17n.org>
9983 * font.h (Qascii_0): Extern it.
9985 * font.c (Qascii_0): New variable.
9986 (syms_of_font): DEFSYM it.
9987 (font_open_by_name): If the registry "iso8859-1" fails, try also
9990 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
9992 2008-06-08 Kenichi Handa <handa@m17n.org>
9994 * .gdbinit (xfont): New command.
9996 2008-06-08 Andreas Schwab <schwab@suse.de>
9998 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
9999 * Makefile.in (menu.o): Update dependencies.
10001 * Makefile.in (obj): Always add menu.o.
10002 * emacs.c (main): Always call syms_of_menu.
10003 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
10005 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
10007 * Makefile.in: Compile menu.c.
10009 * lisp.h: Declare syms_of_menu.
10011 * emacs.c (main): Call syms_of_menu.
10013 * keyboard.h: Relocate platform-independent menu definitions from
10016 * menu.c: New file. Relocate platform-independent menu
10017 definitions from xmenu.c. Suggested by Adrian Robert.
10019 * xmenu.c: Remove platform-independent menu definitions.
10020 (menu_items menu_items_inuse, menu_items_allocated)
10021 (menu_items_used, menu_items_n_panes)
10022 (menu_items_submenu_depth): Move to keyboard.h.
10023 (init_menu_items, finish_menu_items, unuse_menu_items)
10024 (discard_menu_items, restore_menu_items, save_menu_items)
10025 (grow_menu_items, push_submenu_start, push_submenu_end)
10026 (push_left_right_boundary, push_menu_pane, push_menu_item)
10027 (keymap_panes, single_keymap_panes, single_menu_item)
10028 (list_of_panes, list_of_items, find_and_call_menu_selection)
10029 (xmalloc_widget_value, free_menubar_widget_value_tree)
10030 (parse_single_submenu, digest_single_submenu)
10031 (update_submenu_strings): Move to menu.c.
10033 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
10035 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
10037 2008-06-06 Miles Bader <miles@gnu.org>
10039 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
10040 face, not frame default.
10042 2008-06-05 Martin Rudalics <rudalics@gmx.at>
10044 * window.c (pop_up_windows, pop_up_frames)
10045 (display_buffer_reuse_frames, Vpop_up_frame_function)
10046 (Vdisplay_buffer_function, Veven_window_heights)
10047 (Vspecial_display_buffer_names, Vspecial_display_regexps)
10048 (Vspecial_display_function, Vsame_window_buffer_names)
10049 (Vsame_window_regexps, split_height_threshold)
10050 (Vsplit_window_preferred_function): Move those vars to window.el.
10051 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
10052 (Fdisplay_buffer): Move those functions to window.el.
10053 (syms_of_window): Remove corresponding declarations.
10054 (display_buffer): New function.
10055 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
10056 * dispnew.c (Flast_nonminibuf_frame): New function.
10057 * buffer.c (Fpop_to_buffer): Move to window.el.
10059 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10061 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
10063 2008-06-05 Kenichi Handa <handa@m17n.org>
10065 * coding.c (detect_coding): Fix previous change.
10066 (detect_coding_system): Likewise.
10068 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10070 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
10072 * keymap.c (Vminibuffer_local_filename_must_match_map):
10073 Rename from Vminibuffer_local_must_match_filename_map.
10075 * minibuf.c (Fcompleting_read): Adjust accordingly.
10076 * commands.h: Rename declaration as well.
10078 2008-06-05 Kenichi Handa <handa@m17n.org>
10080 * font.c (Ffont_spec): Don't use font_parse_family_registry for
10082 (Ffont_put): Likewise.
10084 * fontset.c (fontset_find_font): Call font_open_for_lface with the
10087 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
10090 * xfaces.c (realize_x_face): If the font-related face attributes
10091 are the same as those of default face, realize a new fontset from
10093 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
10095 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10097 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
10098 (move_it_in_display_line): New wrapper.
10100 * window.c (window_scroll_pixel_based_preserve_x)
10101 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
10102 (window_scroll_pixel_based, window_scroll_line_based):
10103 Use them to preserve column positions.
10104 (syms_of_window): Initialize them.
10106 * indent.c (Fvertical_motion): Extend first arg to allow passing an
10107 (HPOS . VPOS) pair.
10109 * dispextern.h (move_it_in_display_line): Declare.
10111 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
10113 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
10114 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
10115 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
10117 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
10119 * window.c (Fset_window_parameter): Doc fix.
10120 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
10122 2008-06-04 Joakim Verona <joakim@verona.se>
10124 * window.h (struct window): Add new member window_parameters.
10126 * window.c (Fwindow_parameters, Fwindow_parameter)
10127 (Fset_window_parameter): New defuns.
10128 (syms_of_window): Defsubr the new defuns.
10129 (make_window): Initialize window_parameters to nil.
10131 2008-06-04 John Paul Wallington <jpw@pobox.com>
10133 * eval.c (Fdefmacro): Doc fix.
10135 2008-06-04 Kenichi Handa <handa@m17n.org>
10137 * coding.c (detect_coding): Fix handling of coding->head_ascii.
10138 Be sure to call setup_coding_system when we find a proper coding system.
10139 (detect_coding_system): Fix handling of coding->head_ascii.
10141 2008-06-03 Andreas Schwab <schwab@suse.de>
10143 * font.c (font_prop_validate_spacing): Fix last change.
10145 2008-06-03 Kenichi Handa <handa@m17n.org>
10147 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
10148 (font_parse_fcname): Fix handling of unknown key.
10150 * xfont.c (xfont_list): Try an alias.
10152 * charset.c (char_charset): Return NULL if the arg charset_list is
10153 specified and C doesn't belong to any of them.
10155 2008-06-02 Chip Coldwell <coldwell@redhat.com>
10157 * font.c (font_pixel_size): Don't take cdr of an integer.
10159 2008-06-02 Jim Meyering <meyering@redhat.com>
10161 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
10162 * alloc.c (xfree): Return right away for a NULL arg.
10163 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
10164 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
10165 * mac.c (create_apple_event_from_event_ref): Likewise.
10166 (create_apple_event_from_drag_ref, cfstring_create_normalized):
10168 * doprnt.c (doprnt1): Likewise.
10169 * frame.c (frame): Likewise.
10170 * keyboard.c (wipe_kboard): Likewise.
10171 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
10172 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
10173 * term.c (tty_default_color_capabilities, maybe_fatal)
10174 (delete_tty): Likewise.
10175 * w16select.c (string): Likewise.
10176 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
10177 * w32bdf.c (w32_free_bdf_font): Likewise.
10178 * w32fns.c (w32_unload_font): Likewise.
10179 * w32font.c (w32font_close): Likewise.
10180 * window.c (size_window): Likewise.
10181 * xselect.c (receive_incremental_selection): Likewise.
10182 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
10183 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
10184 * w32.c (stat): Likewise.
10186 Remove useless if-before-free tests.
10187 * editfns.c (Fset_time_zone_rule): Likewise.
10188 * lread.c (nosuffix): Likewise.
10189 * ralloc.c (get_bloc): Likewise.
10190 * regex.c (reg_free): Likewise.
10191 * xftfont.c (xftfont_open, xftfont_close): Likewise.
10192 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
10193 * xsmfns.c (smc_save_yourself_CB): Likewise.
10195 2008-06-02 Kenichi Handa <handa@m17n.org>
10197 * font.c (font_find_for_lface): Handle float font size.
10198 (font_open_for_lface): Likewise.
10200 * xfaces.c (x_supports_face_attributes_p): Check face->font before
10201 comparing the properties.
10203 2008-06-01 Jason Rumney <jasonr@gnu.org>
10205 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
10206 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
10207 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
10208 Don't add empty script list.
10209 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
10211 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
10213 * Makefile.in (dot, dotdot): Remove, update users.
10214 ".." has been used elsewhere in the file for a long time.
10215 (LIBXT_STATIC): Remove conditional based on unused variable.
10217 2008-06-01 Miles Bader <miles@gnu.org>
10219 * xfaces.c (Vface_remapping_alist): New variable.
10220 (syms_of_xfaces): Initialize it.
10221 (enum named_merge_point_kind): New type.
10222 (struct named_merge_point): Add `named_merge_point_kind' field.
10223 (push_named_merge_point): Make cycle detection respect different
10224 named-merge-point kinds.
10225 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
10226 Remove face-name alias resolution.
10227 (lface_from_face_name): New definition using
10228 `lface_from_face_name_no_resolve'.
10229 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
10230 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
10231 (get_lface_attributes): New definition that layers face-remapping on
10232 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
10233 (lookup_basic_face): New function.
10234 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
10235 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
10236 `get_lface_attributes'.
10237 (face_at_buffer_position): Use `lookup_basic_face' to lookup
10238 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
10239 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
10241 * xdisp.c (init_iterator): Pass base_face_id through
10242 `lookup_basic_face' when we actually use it as a face-id.
10243 (handle_single_display_prop): Use `lookup_basic_face' to lookup
10246 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
10247 lookup the initial face-id.
10249 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
10251 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
10253 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
10254 (Fremove_text_properties): Fix typos in docstrings.
10256 2008-05-31 Kenichi Handa <handa@m17n.org>
10258 * font.c (font_list_entities): Fix the car part of data to be
10259 stored in the cache.
10261 * ftfont.c (ftfont_font_format): Don't use strcasestr.
10263 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10265 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
10266 Add a `test' argument so another predicate than `equal' can be used.
10267 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
10268 (map_char_table): Remove unused vars `c' and `i'.
10269 * lisp.h (Foptimize_char_table): Adjust declaration.
10270 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
10272 2008-05-30 Kenichi Handa <handa@m17n.org>
10274 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
10275 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
10278 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10280 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
10281 (Fmake_variable_frame_local): Disallow mixing buffer-local and
10282 frame-local settings for the same variable.
10284 2008-05-30 Kenichi Handa <handa@m17n.org>
10286 * fontset.c (Ffont_info): Move to font.c.
10287 (syms_of_fontset): Delete defsubr of Sfont_info.
10289 * font.c (font_style_to_value, font_score): Delete casting of the
10290 args to xstcasecmp.
10291 (register_font_driver): Increment num_font_drivers only when
10292 registering the driver globally.
10293 (Ffont_info): Move from fontset.c. Handle a font object too.
10294 (syms_of_font): Defsubr Sfont_info.
10296 2008-05-29 Kenichi Handa <handa@m17n.org>
10298 * coding.h (enum define_coding_utf8_arg_index): New enum.
10299 (enum coding_attr_index): Change coding_attr_utf_16_bom to
10300 coding_attr_utf_bom.
10301 (enum utf_bom_type): Rename from utf_16_bom_type.
10302 (struct utf_16_spec): Adjust for the above change.
10303 (struct coding_system): Add utf_8_bom in `spec' union.
10305 * coding.c (CODING_UTF_8_BOM): New macro.
10306 (enum coding_category): Delete coding_category_utf_8, add
10307 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
10308 coding_category_utf_8_sig.
10309 (CATEGORY_MASK_UTF_8): Delete it.
10310 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
10311 (CATEGORY_MASK_UTF_8_SIG): New macros.
10312 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
10313 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
10314 CATEGORY_MASK_UTF_8_SIG.
10315 (CATEGORY_MASK_UTF_8): New macro.
10316 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
10317 (detect_coding_utf_8): Check BOM.
10318 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
10319 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
10320 (encode_coding_utf_16): Likewise.
10321 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
10322 (detect_coding, detect_coding_system): Handle utf-8-auto.
10323 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
10324 (syms_of_coding): Fix setting up of Vcoding_category_table.
10326 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
10328 * process.c (Faccept_process_output): If `millisec' is non-nil,
10329 `seconds' default to 0.
10330 (wait_reading_process_output): Also return non-nil if we read output
10331 from a non-running process.
10333 2008-05-29 Jason Rumney <jasonr@gnu.org>
10335 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
10336 `raster' specified.
10337 (add_font_entity_to_list): Allow non-opentype truetype fonts back
10338 in the uniscribe backend, but disallow any font that has no
10339 unicode subrange support.
10341 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
10343 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
10344 Fix typos in docstrings.
10346 2008-05-29 Kenichi Handa <handa@m17n.org>
10348 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
10349 (Fx_family_fonts): Set frame correctly.
10351 2008-05-28 Jason Rumney <jasonr@gnu.org>
10353 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
10355 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
10357 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
10358 calling build_annotations.
10360 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
10362 * coding.c (Fdecode_coding_region, Fencode_coding_region)
10363 (Fencode_coding_string):
10364 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
10365 <latin-extra-code-table>: Fix typos in docstrings.
10366 (syms_of_coding) <coding-system-alist>: Doc fix.
10367 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
10369 2008-05-28 Kenichi Handa <handa@m17n.org>
10371 * fontset.c (Ffont_info): Don't call font_close_object.
10373 * font.c (font_parse_family_registry): Use Ffont_put to validate
10374 foundry and family.
10375 (font_delete_unmatched): Don't check spacing.
10376 (font_list_entities): Add spacing to the spec to list fonts.
10378 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
10379 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
10381 * coding.c (encode_coding_raw_text): Fix previous change.
10382 (encode_coding_object): When the dst_object is a buffer and is
10383 different from src_object, move gap to PT.
10385 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
10387 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
10389 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10391 * coding.c (encode_coding_raw_text): Set coding->produced_char for
10392 all branches. Compute it differently.
10394 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
10396 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
10398 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
10399 into "else if () ... else ...".
10401 2008-05-27 Jason Rumney <jasonr@gnu.org>
10403 * w32font.c (w32font_open_internal): Determine if glyph indices
10404 are likely to work here.
10406 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
10408 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
10409 draw overlap glyphs with appropriate highlighting.
10411 2008-05-27 Kenichi Handa <handa@m17n.org>
10413 * xfont.c (xfont_open): Fix calculation of font->average_width.
10415 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10417 * casefiddle.c (casify_object): Try to guess better whether the
10418 argument is a byte or a char.
10420 2008-05-26 Andreas Schwab <schwab@suse.de>
10422 * xselect.c (x_reply_selection_request): Properly handle format == 32.
10423 Always send multiples of format size.
10425 * xterm.c (x_set_frame_alpha): Fix type mismatch.
10427 2008-05-26 Jason Rumney <jasonr@gnu.org>
10429 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
10430 (compute_metrics): Don't set failure if we just cleared the cache.
10431 (w32_weight_table): Remove unused variable.
10432 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
10433 backwards compatibility.
10435 2008-05-25 Kenichi Handa <handa@m17n.org>
10437 * w32term.c (x_draw_glyph_string):
10438 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
10440 * xfaces.c: Delete unused function prototypes.
10441 (xstrlwr, font_frame): Delete them.
10442 (clear_face_cache): Delete unused variable.
10444 * xftfont.c (xftfont_open): Delete unused variable.
10445 If underline_thickness is not 1, adjust underline_position.
10447 * ftxfont.c (ftxfont_open): Delete unused variable.
10449 * fontset.c (face_for_char): Optimize for the case of no charset
10452 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
10453 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
10454 (otf_open, font_otf_capability, generate_otf_features)
10455 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
10456 Comment out by surrounding "#if 0" and "#endif" for the moment.
10457 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
10458 (syms_of_font): Codes for accessing above commented out.
10460 2008-05-24 Eli Zaretskii <eliz@gnu.org>
10462 * w32proc.c: Include dispextern.h.
10464 * w32.c: Include dispextern.h.
10466 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
10468 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
10469 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
10470 Fix typos in docstrings.
10472 2008-05-23 Jason Rumney <jasonr@gnu.org>
10474 * xsmfns.c: Remove includes that are already included by config.h.
10476 2008-05-23 Kenichi Handa <handa@m17n.org>
10478 * charset.c (Qemacs, charset_emacs): New variables.
10479 (char_charset): Fix for non-Unicode characters.
10480 (syms_of_charset): Define charset_emacs.
10482 * w32term.c (x_draw_glyph_string): Be sure to update
10483 s->underline_thickness and s->underline_position. Be sure to draw
10484 underline within the current line area.
10486 * xterm.c (x_draw_glyph_string): Be sure to update
10487 s->underline_thickness and s->underline_position. Be sure to draw
10488 underline within the current line area.
10490 * fontset.c: Delete unused variables and add casting for char *
10491 throughout the file.
10492 (fontset_font): Try the fallback fonts of the current fontset
10493 before consulting the default fontset.
10495 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
10497 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
10499 2008-05-22 Jason Rumney <jasonr@gnu.org>
10501 * font.c: Don't include strings.h.
10503 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
10505 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
10506 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
10507 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
10508 to call xstrcasecmp.
10510 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
10512 * fontset.c (fs_query_fontset): Use xstrcasecmp.
10514 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
10516 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
10518 2008-05-22 Kenichi Handa <handa@m17n.org>
10520 * puresize.h (BASE_PURESIZE): Increase to 1220000.
10522 * font.c (font_prop_validate_style): Adjust for the format
10523 change of font_style_table.
10525 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
10528 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
10531 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
10533 * minibuf.c (keys_of_minibuf): Delete.
10534 * lisp.h (keys_of_minibuf): Delete.
10535 * emacs.c (main): Don't call keys_of_minibuf.
10537 2008-05-22 Kenichi Handa <handa@m17n.org>
10539 * ftfont.c (ftfont_resolve_generic_family): Rename from
10540 ftfont_list_generic_family. Return a single family for each
10542 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
10543 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
10545 (ftfont_match): Call font_add_log.
10547 * font.h (Ffont_xlfd_name): EXFUN adjusted.
10548 (FONT_DEBUG): Define it.
10549 (font_add_log): Extern it.
10550 (font_assert): Rename from xassert.
10552 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
10553 (xfont_list_family): Call font_add_log.
10554 (xfont_match): Likewise.
10555 (memq_no_quit): Delete.
10557 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
10558 call of Ffont_xlfd_name.
10560 * xfaces.c (struct table_entry, slant_table, weight_table)
10561 (swidth_table): Move to font.c.
10563 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
10564 xassert are changed to font_assert. Delete many unused variables.
10565 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
10567 (struct table_entry): Move from xfaces.c and modified.
10568 (weight_table, slant_table, width_table): Move from xfaces.c and
10569 contents adjusted for the change of struct table_entry.
10570 (font_style_to_value, font_style_symbolic): Adjust for the
10571 format change of font_style_table.
10572 (font_parse_family_registry): Don't overwrite existing foundry and
10573 family of font_spec.
10574 (font_score): Fix calculation of diff for sizes.
10575 (font_sort_entites): Call font_add_log.
10576 (font_delete_unmatched): Return a newly created list.
10577 (font_list_entities): Fix previous change. Call font_add_log.
10578 (font_matching_entity, font_open_entity, font_close_entity):
10580 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
10581 (Finternal_set_font_style_table): Delete.
10582 (BUILD_STYLE_TABLE): New macro.
10583 (build_style_table): New function.
10584 (Vfont_log, font_log_env_checked): New variables.
10585 (font_add_log): New function.
10586 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
10587 Declare Lisp variables "font-weight-table", "font-slant-table",
10588 "font-width-table", and "font-log". Initialize font_style_table.
10590 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
10592 * xterm.c (x_set_frame_alpha): Move declarations before statements.
10594 2008-05-21 Seiji Zenitani <zenitani@mac.com>
10595 Ryo Yoshitake <ryo@shiftmode.net>
10597 * frame.c (Qalpha): Add a new frame parameter `alpha'.
10598 (Vframe_alpha_lower_limit): New variable.
10599 (x_set_alpha): New function.
10601 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
10603 * xfns.c (x-create-frame, Qalpha):
10604 Initialize the frame parameter `alpha'.
10605 * xterm.c (OPAQUE, OPACITY): New.
10606 (x_set_frame_alpha): New function.
10607 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
10609 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
10610 * w32fns.c (w32_frame_parm_handlers): Likewise.
10612 2008-05-20 Jason Rumney <jasonr@gnu.org>
10614 * w32font.c (add_font_entity_to_list): Don't add non-opentype
10615 truetype fonts to opentype list.
10617 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
10619 * fontset.c (Ffontset_info): Doc fix.
10620 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
10621 <ignore-relative-composition>: Fix typos in docstrings.
10623 * font.c (syms-of-font) <font-encoding-alist>:
10624 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
10625 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
10626 (Ffont_otf_alternates): Doc fixes.
10628 2008-05-20 Kenichi Handa <handa@m17n.org>
10630 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
10631 font.h through out the file.
10632 (FONT_DRIVERS): Rename from FONTOBJ.
10633 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
10634 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
10636 * emacs.c (main): Call syms_of_font unconditionally.
10638 * font.h (find_font_encoding): Extern it.
10640 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
10642 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
10643 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
10644 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
10645 only when HAVE_WINDOW_SYSTEM is defined.
10646 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
10647 when HAVE_WINDOW_SYSTEM is defined.
10649 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
10650 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
10652 * xfaces.c: Include font.h unconditionally.
10653 (merge_face_ref, merge_face_vectors)
10654 (Finternal_set_lisp_face_attribute): Cancel the previous change.
10656 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
10658 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
10660 * eval.c (lisp_indirect_variable): New fun.
10661 (Fuser_variable_p): Use it.
10663 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
10665 * lisp.h (indirect_variable):
10666 * data.c (indirect_variable, let_shadows_buffer_binding_p):
10667 Use Lisp_Symbol pointers rather than Lisp_Object.
10669 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
10670 To this end, change calling-convention.
10672 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
10673 if some non-hidden buffers are selected by string&pred.
10675 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
10677 * process.c (wait_reading_process_output): Always check status
10678 when in batch mode.
10680 2008-05-19 Kenichi Handa <handa@m17n.org>
10682 * font.c (font_list_entities): Fix handling of cache.
10683 (font_matching_entity): Likewise.
10685 * ftfont.c (cs_iso8859_1): Delete.
10686 (ft_face_cache): New variable.
10687 (struct ftfont_info): New member fc_charset_idx.
10688 (ftfont_build_basic_charsets): Delete.
10689 (fc_charset_table): New variable.
10690 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
10691 . FC_CHARSET_IDX) as :font-entity property in the font entity.
10693 (ftfont_lookup_cache, ftfont_get_charset): New functions.
10694 (ftfont_spec_pattern): New argument fc_charset_idx.
10695 Check registry more rigidly. Change callers.
10696 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
10697 change of :font-entity property of the font.
10699 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
10700 property of the font.
10702 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
10704 * coding.c (Fcoding_system_p): Rename argument to match docstring.
10705 (Funencodable_char_position, Fcheck_coding_systems_region)
10706 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
10707 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
10708 (Ffind_operation_coding_system, Fset_coding_system_priority)
10709 (Fcoding_system_eol_type): Doc fixes.
10711 2008-05-17 Glenn Morris <rgm@gnu.org>
10713 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
10715 2008-05-16 Eli Zaretskii <eliz@gnu.org>
10717 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
10720 * frame.c (Fdelete_frame): Don't call font_update_drivers if
10721 HAVE_WINDOW_SYSTEM is not defined.
10723 * xfaces.c (merge_face_ref, merge_face_vectors)
10724 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
10725 HAVE_WINDOW_SYSTEM is defined.
10726 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
10728 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
10730 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
10732 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10734 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
10736 2008-05-15 Kenichi Handa <handa@m17n.org>
10738 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
10741 2008-05-15 Glenn Morris <rgm@gnu.org>
10743 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
10745 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
10747 * fns.c (init_fns): Don't initialize weak_hash_tables here.
10748 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
10750 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
10752 2008-05-15 Kenichi Handa <handa@m17n.org>
10754 * ftfont.c (ftfont_list): Downcase family name to check generic
10757 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
10758 font-spec for QCfont value.
10760 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
10761 buffer. Check the return value of it.
10763 2008-05-14 Jason Rumney <jasonr@gnu.org>
10765 * w32term.c (w32_get_glyph_overhangs): Remove.
10766 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
10768 2008-05-14 Kenichi Handa <handa@m17n.org>
10770 * font.c (font_prop_validate): Make nil a valid value.
10771 (font_clear_cache): Check if the cached vector of entities is nil
10774 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10776 * emacs.c (main_thread): Conditionalize on
10777 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10778 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
10780 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
10781 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
10782 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10784 2008-05-14 Kenichi Handa <handa@m17n.org>
10786 * coding.c (detect_coding_iso_2022): Ignore a coding category that
10787 has no corresponding coding system.
10789 2008-05-14 Jason Rumney <jasonr@gnu.org>
10791 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
10793 * w32font.h (w32font_open_internal): Update declaration.
10795 * w32font.c (w32font_open_internal): Change last argument from
10796 w32font_info struct to font object. Fill in font object from
10797 font_entity. Get Outline metrics if possible. Use them to
10798 calculate underline position and thickness. Use xlfd name as name
10799 property. Don't set codepage.
10800 (w32font_open): Pass font_object to w32font_open_internal. Don't
10801 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
10802 (w32font_draw): Use s->font.
10803 (clear_cached_metrics): Don't clear non-existent blocks.
10805 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
10806 font was not found.
10807 (x_draw_glyph_string): Use underline position and thickness from font.
10809 * w32uniscribe.c (uniscribe_open): Pass font_object to
10810 w32font_open_internal.
10812 2008-05-14 Kenichi Handa <handa@m17n.org>
10814 These changes are to delete all legacy font-handling codes, and
10815 make Emacs use only font-backends.
10817 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
10818 (frame.o, image.o, print.o): Depend on $(FONTSRC).
10820 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
10822 * charset.h (Vcharset_non_preferred_head)
10823 (Vcurrent_iso639_language): Extern them.
10825 * charset.c (Vcharset_non_preferred_head): New variable.
10826 (Vcurrent_iso639_language): New variable.
10827 (syms_of_charset): Declare it as a Lisp variable.
10828 (char_charset): Don't check non preferred charsets. As a last
10829 resort, return charset_unicode.
10830 (Fset_charset_priority): Update Vcharset_non_preferred_head.
10832 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
10833 conditionals. Don't check enable_font_backend. Delete all codes
10834 used only when USE_FONT_BACKEND is not defined.
10836 * dispextern.h (struct glyph_string): Change type of `font' to
10838 (struct glyph_string): New member underline_position and
10839 underline_thickness.
10840 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
10841 (struct face): Change type of `font' to `struct font *'. Remove
10842 members `font_name', `font_info_id'.
10843 (per_char_metric, encode_char): Delete externs.
10844 (calc_pixel_width_or_height): Adjust the prototype.
10846 * emacs.c (enable_font_backend): Delete extern.
10847 (main): Don't set enable_font_backend. Don't check the command
10848 line argument "-disable-font-backend".
10850 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
10851 (enum font_property_index): New members FONT_DPI_INDEX,
10852 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
10853 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
10854 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
10855 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
10856 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
10857 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
10858 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
10859 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
10860 (struct font_spec, struct font_entity): New structs.
10861 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
10862 (struct font): Many members from old "struct font_info" moved to
10863 here. Members font and entity deleted.
10864 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
10865 the new font-related objects.
10866 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
10867 (CHECK_FONT_GET_OBJECT): Likewise.
10868 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
10869 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
10870 (struct font_driver): New members case_sensitive anc check. Type
10871 of the member list and open changed.
10872 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
10873 (font_symbolic_width, font_find_object, font_get_spec)
10874 (font_set_lface_from_name): Delete extern.
10875 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
10877 * font.c: Include <strings.h>.
10878 (enable_font_backend): Delete it.
10879 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
10880 (CHECK_VALIDATE_FONT_SPEC): Delete it.
10881 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
10882 (null_string): Delete it.
10883 (null_vector): Make it static.
10884 (font_family_alist): Delete it.
10885 (Qnormal): Extern it.
10886 (QCextra, QClanguage): Delete it.
10887 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
10888 (font_make_spec, font_make_entity, font_make_object)
10889 (font_intern_prop): Renamed from intern_downcase. Don't downcase
10890 the string. Callers changed.
10891 (font_pixel_size): Adjusted for the format change of font-related
10893 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
10894 (font_style_to_value, font_style_symbolic): New function.
10895 (build_font_family_alist): Delete it.
10896 (font_registry_charsets): Use Fassoc_string instead of
10898 (font_prop_validate_symbol): Don't return null_string.
10899 (font_prop_validate_style): Adjusted for the change of
10900 style-related values in a font vector.
10901 (font_property_table): Delete entries for QClanguage and
10902 QCantialias, add entries for QCavgwidth.
10903 (get_font_prop_index): Delete the 2nd argument FROM.
10904 (font_prop_validate): Arguments changed.
10905 (font_put_extra): Adjusted for the change of font-related objects.
10906 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
10907 (font_parse_fcname, font_unparse_fcname)
10908 (font_prepare_composition): Likewise.
10909 (font_parse_family_registry): Renamed from font_merge_old_spec.
10910 (otf_open): Delete the 1st arg entity.
10911 (font_otf_capability): Adjusted for the above change.
10912 (font_score): New arg alternate_families. Adjusted for the change
10913 of font-related objects.
10914 (font_sort_entites): New arg best_only.
10915 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
10917 (font_match_p): Check alternate families.
10918 (font_find_object): Delete it.
10919 (font_check_object): New function.
10920 (font_clear_cache): Adjusted for the change of font-related objects.
10921 (font_delete_unmatched): New arg.
10922 (font_list_entities): Call font_driver->list with a spec that
10923 doesn't specify style-related properties.
10924 (font_matching_entity): Arguments changed. Caller changed.
10925 (font_open_entity): Adjusted for the change of font-related objects.
10926 (font_close_object, font_has_char, font_encode_char)
10927 (font_get_name, font_get_spec): Likewise.
10928 (font_spec_from_name, font_clear_prop, font_update_lface):
10930 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
10931 (font_prepare_for_face, font_done_for_face, font_open_by_name)
10932 (font_at): Adjusted for the change of font-related objects.
10933 (font_range): New function.
10934 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
10935 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
10936 (Fcopy_font_spec, Fmerge_font_spec): New function.
10937 (Ffont_family_list): Renamed from list-families.
10938 (Finternal_set_font_style_table): Arguments changed.
10939 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
10940 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
10941 change of font-related objects.
10942 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
10944 * fontset.h (struct font_info): Delete it. Most members go to
10946 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
10947 (enum FONT_SPEC_INDEX): Delete it.
10948 (font_info, list_fonts_func, load_font_func, query_font_func)
10949 (set_frame_fontset_func, find_ccl_program_func)
10950 (get_font_repertory_func, new_fontset_from_font_name): Delete
10952 (fontset_from_font_name): Extern it.
10953 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
10954 (FONT_INFO_FROM_FACE): Deleted.
10955 (face_for_font): Adjust prototype.
10957 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
10958 conditionals. Don't check enable_font_backend. Delete all codes
10959 used only when USE_FONT_BACKEND is not defined.
10960 (get_font_info_func, list_font_func, load_font_func)
10961 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
10962 (get_font_repertory_func): Delete them.
10963 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
10964 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
10965 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
10966 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
10967 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
10968 (fontset_compare_rfontdef): New function.
10969 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
10970 rfont-defs by qsort. Adjusted for the change of font-group vector.
10971 (load_font_get_repertory): Deleted.
10972 (fontset_find_font): Use new macros to ref/set elements of
10973 font-def and rfont-def.
10974 (fontset_font): Fix the timing of remembering that no font for C.
10975 (free_face_fontset): Do nothing if the face has no fontset.
10976 (face_suitable_for_char_p): Use new macros to ref/set elements of
10978 (face_for_char): Likewise. Call face_for_char with font_object.
10979 (fs_load_font): Delete. Delete #pragma surrounding it.
10980 (fs_query_fontset): Use strcasecmp instead of strcmp.
10981 (generate_ascii_font_name): Adjusted for the format change of
10983 (Fset_fontset_font): Likewise. Use new macros to set elements of
10985 (Fnew_fontset): Use font_unparse_xlfd to generate
10986 FONTSET_ASCII (fontset).
10987 (new_fontset_from_font_name): Deleted.
10988 (fontset_from_font): Renamed from new_fontset_from_font. Check if
10989 a fontset is already created for the font. FIx updating of
10990 Vfontset_alias_alist.
10991 (fontset_ascii_font): Deleted.
10992 (Ffont_info): Adjusted for the format change of font-spec.
10993 (Finternal_char_font): Likewise.
10994 (Ffontset_info): Likewise.
10995 (syms_of_fontset): Don't check load_font_func.
10997 * fns.c (internal_equal): Handle PREV_FONT.
10999 * frame.h: Delete USE_FONT_BACKEND conditional.
11001 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
11002 conditionals. Don't check enable_font_backend. Delete all codes
11003 used only when USE_FONT_BACKEND is not defined.
11004 (x_set_font): Call x_new_font, not x_new_fontset2.
11005 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
11006 already set for the frame.
11008 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
11009 a font-entity by font_make_entity. Use font_intern_prop instead
11010 of intern_downcase. Use FONT_SET_STYLE to set a style-related
11011 font property. If a font is scalable, set avgwidth property to 0.
11012 Set font-entity property by font_put_extra.
11013 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
11014 (ffont_driver): Adjusted for the change of struct font_driver.
11015 (ftfont_spec_pattern): New function.
11016 (ftfont_list): Return a list, not vector.
11017 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
11018 (ftfont_list_family): Don't downcase names.
11019 (ftfont_free_entity): Deleted.
11020 (ftfont_open): Return a font-object. Adjusted for the change of
11021 struct font. Get underline_thickness and underline_position from
11022 font property. Don't update dpyinfo->smallest_font_height and
11023 dpyinfo->smallest_char_width.
11024 (ftfont_close): Don't free `struct font'.
11025 (ftfont_has_char): Adjusted for the format change of font-entity.
11026 (ftfont_encode_char, ftfont_text_extents): Likewise.
11028 * ftxfont.c (ftxfont_list): Return a list, not vector.
11029 (ftxfont_open): Return a font-object. Adjusted for the change of
11030 struct font. Get underline_thickness and underline_position from
11031 font property. Don't update dpyinfo->smallest_font_height and
11032 dpyinfo->smallest_char_width.
11033 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
11034 (ftxfont_draw): Adjusted for the change of struct font.
11036 * image.c (image_ascent): Don't include "charset.h". Include
11037 "character.h" and "font.h".
11039 * lisp.h (enum pvec_type): New member PREV_FONT.
11040 (Fassoc_string): EXFUN it.
11042 * print.c: Include font.h.
11043 (print_object): Handle font-related objects.
11045 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
11046 conditionals. Don't check enable_font_backend. Delete all codes
11047 used only when USE_FONT_BACKEND is not defined.
11048 (handle_auto_composed_prop): Do nothing if it->f is not on a
11049 window system. Check how many following characters can be
11050 displayed by the same font.
11051 (calc_pixel_width_or_height): Type of the 4th arg is changed to
11053 (get_char_face_and_encoding): Assign the whole encoding task to
11054 the `encode-char' method of a font driver.
11055 (fill_composite_glyph_string): Adjusted for the change of `struct
11056 face' and `struct glyph_string'.
11057 (fill_glyph_string): Likewise.
11058 (get_per_char_metric): Arguments changed.
11059 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
11060 and `struct glyph_string'.
11061 (produce_stretch_glyph, calc_line_height_property)
11062 (x_produce_glyphs): Likewise.
11064 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
11065 conditionals. Don't check enable_font_backend. Delete all codes
11066 used only when USE_FONT_BACKEND is not defined. Use
11067 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
11068 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
11070 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
11072 (struct font_name): Deleted.
11073 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
11074 (compare_fonts_by_sort_order): New function.
11075 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
11076 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
11078 (Fx_family_fonts): Use font_list_entities, and sort fonts by
11079 compare_fonts_by_sort_order.
11080 (Fx_font_family_list): Call Ffont_family_list.
11081 (face_numeric_value, face_numeric_weight, face_numeric_slant)
11082 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
11083 (face_symbolic_slant, face_symbolic_swidth)
11084 (split_font_name_into_vector, build_font_name_from_vector)
11085 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
11086 (font_rescale_ratio, split_font_name, build_font_name)
11087 (free_font_names, sort_fonts, x_face_list_fonts)
11088 (face_font_available_p, sorted_font_list, cmp_font_names)
11089 (font_list_1, concat_font_list, font_list, remove_duplicates):
11091 (Fx_list_fonts): Use Ffont_list.
11092 (LFACE_AVGWIDTH): Deleted.
11093 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
11095 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
11096 (set_lface_from_font_name): Delete it.
11097 (set_lface_from_font): Renamed from
11098 set_lface_from_font_and_fontset. Caller changed. Don't set
11099 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
11101 (merge_face_vectors): Copy font-spec if necessary.
11102 Clear properties of the font-spec if necessary.
11103 (merge_face_ref): Clear properties of the font-spec if necessary.
11104 (Finternal_set_lisp_face_attribute): Likewise.
11105 (set_font_frame_param): Use font_load_for_lface to load a
11106 font-object, and call Fmodify_frame_parameters with it.
11107 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
11108 font name by Ffont_xlfd_name.
11109 (Finternal_lisp_face_attribute_values): Don't check QCweight,
11110 QCslant, and QCwidth.
11111 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
11112 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
11113 Compare fonts by EQ.
11114 (lookup_non_ascii_face): Deleted.
11115 (face_for_font): The 2nd argument changed.
11116 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
11117 Check atomic font properties by case insensitive.
11118 (realize_non_ascii_face): Set face->overstrike correctly.
11119 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
11120 (dump_realized_face): Get font name from
11121 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
11123 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
11124 conditionals. Don't check enable_font_backend. Delete all codes
11125 used only when USE_FONT_BACKEND is not defined.
11126 (xic_create_xfontset): Original code deleted and renamed from
11127 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
11128 (x_make_gc): Don't set GCFont in GCs.
11129 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
11131 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
11132 find_ccl_program_func, query_font_func, set_frame_fontset_func,
11133 get_font_repertory_func.
11135 * xfont.c: Include <stdlib.h> and "ccl.h".
11136 (struct xfont_info): New structure.
11137 (xfont_query_font): Deleted.
11138 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
11139 moved from xterm.c.
11140 (xfont_driver): Adjusted for the change of struct font_driver.
11141 (compare_font_names): New function.
11142 (xfont_list_pattern): Sort font names case insensitively. Make
11143 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
11144 (xfont_list): Return a list, not vector.
11145 (xfont_match): If the font doesn't have QCname property, generate
11146 a name from the other font properties.
11147 (xfont_open): Return a font-object. Adjusted for the change of
11148 struct font. Get underline_thickness and underline_position from
11149 font property. Don't update dpyinfo->smallest_font_height and
11150 dpyinfo->smallest_char_width.
11151 (xfont_close): Don't free struct font.
11152 (xfont_prepare_face): Adjusted for the change of struct font.
11153 (xfont_done_face): Deleted.
11154 (xfont_has_char): Adjusted for the change of struct font.
11155 (xfont_encode_char, xfont_draw): Likewise.
11156 (xfont_check): New function.
11158 * xftfont.c (xftfont_list): Adjusted for the change of `list'
11160 (xftfont_match): Adjusted for the format change of font-entity.
11161 (xftfont_open): Adjusted for the format change of font-entity and
11162 font-object. Adjusted for the change of struct font. Return a
11163 font-object. Don't update dpyinfo->smallest_font_height and
11164 dpyinfo->smallest_char_width.
11165 (xftfont_close): Block input while calling XftFontClose.
11166 (xftfont_prepare_face): Don't block input while calling
11167 xftfont_get_colors. Adjusted for the change of struct font.
11168 (xftfont_shape): Return value of error case fixed.
11170 * xrdb.c (x_load_resources): Don't setup a fontset resource.
11172 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
11174 (FONT_WIDTH): Return (f)->max_width.
11175 (struct x_display_info): Delete member `font'.
11176 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
11177 (x_find_ccl_program, x_get_font_repertory): Delete externs.
11178 (struct x_output): Change type of `font' to `struct font *'.
11180 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
11181 conditionals. Don't check enable_font_backend. Delete all codes
11182 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
11183 (x_per_char_metric, x_encode_char): Deleted.
11184 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
11185 (x_compute_glyph_string_overhangs): Adjusted for the change of
11187 (x_draw_glyph_string_foreground)
11188 (x_draw_composite_glyph_string_foreground): Likewise.
11189 (x_draw_glyph_string): Likewise. Use font->underline_position and
11190 font->underline_thickness.
11191 (x_new_font): Renamed from x_new_fontset2.
11192 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
11193 (x_check_font): Call `check' method of a font driver.
11194 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
11195 (x_query_font, x_get_font_repertory): Deleted.
11196 (x_find_ccl_program): Renamed and moved to xfont.c.
11197 (x_redisplay_interface): Adjusted for the change of `struct
11198 redisplay_interface'.
11200 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
11201 conditionals. Don't check enable_font_backend. Delete all codes
11202 used only when USE_FONT_BACKEND is not defined. Surround non-used
11203 code by "#ifdef OLD_FONT" and "endif".
11204 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
11206 * w32font.h (struct w32font_info): New member.
11207 (FONT_COMPAT): New macro.
11208 (w32font_open_internal): Prototype adjusted.
11210 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
11211 OLD_FONT" and "endif".
11213 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
11214 conditionals. Don't check enable_font_backend. Delete all codes
11215 used only when USE_FONT_BACKEND is not defined.
11216 (w32font_open): Return a font-object. Make a font-object by
11217 font_make_object. Adjusted for the change of struct w32font_info.
11218 (w32font_close): Don't free struct font. Adjusted for the change
11219 of struct w32font_info.
11220 (w32font_encode_char, w32font_text_extents, w32font_draw):
11221 Adjusted for the change of struct w32font_info.
11222 (w32font_draw): Likewise.
11223 (w32font_list_internal): Return a list, not vector.
11224 (w32font_open_internal): Change the 4th arg to font-object.
11225 Adjusted for the change of struct w32font_info and font-object format.
11226 (add_font_name_to_list): Don't downcase names.
11227 (w32_enumfont_pattern_entity): Make a font-entity by
11228 font_make_entity. Adjusted for the format change of font-entity.
11229 Use FONT_SET_STYLE to set a style-related font property. If a
11230 font is scalable, set avgwidth property to 0. Set font-entity
11231 property by font_put_extra.
11232 (font_matches_spec): Adjusted for the format change of font-entity.
11233 (w32_weight_table, w32_decode_weight): New variables.
11234 (w32_encode_weight): New function.
11235 (fill_in_logfont): Adjusted for the format change of font-spec.
11236 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
11238 (w32font_driver): Adjusted for the change of struct font_driver.
11240 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
11241 conditionals. Don't check enable_font_backend. Surround non-used
11242 code by "#ifdef OLD_FONT" and "endif".
11243 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
11244 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
11246 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
11247 conditionals. Don't check enable_font_backend. Delete all codes
11248 used only when USE_FONT_BACKEND is not defined. Surround non-used
11249 code by "#ifdef OLD_FONT" and "endif".
11251 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
11252 (uniscribe_open): Return value changed to font-object.
11253 Adjusted for the format change of font-object.
11254 (uniscribe_otf_capability): Adjusted for the change of struct font.
11255 (add_opentype_font_name_to_list): Don't downcase names.
11256 (uniscribe_font_driver): Adjusted for the change of struct
11259 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
11261 * dispnew.c (update_frame_1): Check if tty output is still valid
11262 before flushing it.
11264 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
11266 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
11269 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
11271 * dired.c (file_name_completion): Tweak the code so as to always do it
11272 in a single pass. Tighten the scope of some variables.
11274 * dired.c (Qdefault_directory): New var.
11275 (file_name_completion): Use it instead of Fexpand_file_name.
11276 (syms_of_dired): Initialize it.
11278 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
11280 * fileio.c (double_dollars): Remove dead code.
11282 2008-05-10 Eli Zaretskii <eliz@gnu.org>
11284 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
11285 Mention w32-get-true-file-attributes in doc string.
11287 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
11289 2008-05-09 Glenn Morris <rgm@gnu.org>
11291 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
11294 2008-05-09 Eli Zaretskii <eliz@gnu.org>
11296 Support for reporting owner and group of each file on MS-Windows:
11297 * dired.c (stat_uname, stat_gname): New functions, with special
11298 implementation for w32.
11299 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
11301 * w32.c: Rename the_passwd_* to dflt_passwd_*.
11302 (dflt_group_name): New static variable.
11303 (dflt_group): Rename from the_group.
11304 (init_user_info): Init dflt_group fields. Get user's group name
11305 from LookupAccountSid.
11306 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
11307 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
11308 New initialization states.
11309 (globals_of_w32): Initialize them to zero. Initialize the default
11310 group name to "None".
11311 (GetFileSecurity_Name): New global var, the name of the function
11312 to call for GetFileSecurity.
11313 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
11314 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
11315 (get_file_security, get_security_descriptor_owner)
11316 (get_security_descriptor_group, is_valid_sid)
11317 (get_file_security_desc, get_rid, get_name_and_id)
11318 (get_file_owner_and_group): New functions.
11319 (stat): Use get_file_security_desc and get_file_owner_and_group to
11320 report the owner and primary group of each file. Don't ignore the
11321 high 32 bits of file's size, now that st_size is 64-bit wide.
11322 Fix test when to get true file attributes.
11323 (init_user_info): Use get_rid instead of equivalent inline code.
11324 (fstat): Don't ignore the high 32 bits of file's size.
11326 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
11328 * image.c (png_load): Use correct bit-depth for setting background
11331 2008-05-08 Eli Zaretskii <eliz@gnu.org>
11333 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
11336 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
11338 * font.c (Ffont_match_p): Don't use `iff' in docstring.
11340 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
11342 * macfns.c (Fx_create_frame): Make a copy of frame parameters
11343 because the original parameters are in pure storage now.
11344 (mac_window): Remove unused params. Update callers.
11346 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
11348 * lread.c (substitute_object_recurse): Use lower-level primitives.
11349 Don't signal errors when traversing sub-char-tables.
11350 Don't loop over all the possible characters when traversing char-tables.
11352 * print.c (print_preprocess): Add sub-char-tables to the print-table,
11353 just like we do in print.c.
11355 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
11357 * minibuf.c (Ftry_completion): Remove code left over from when we used
11358 scmp instead of Fcompare_strings.
11360 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
11362 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
11364 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11366 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
11367 Create bitmap context in native byte order.
11369 * macterm.c (XDrawLine)
11370 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
11371 context in native byte order.
11373 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11375 * config.in: Regenerate.
11377 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
11378 New definitions for Image I/O support.
11379 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
11380 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
11381 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11382 (mac_data_provider_release_data, image_load_image_io)
11383 [USE_MAC_IMAGE_IO]: New functions.
11384 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
11385 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
11386 (init_image_func_pointer) [MAC_OSX]: Remove function.
11387 (image_load_quartz2d) [MAC_OSX]: Check availability of
11388 CGImageCreateWithPNGDataProvider at compile time.
11389 Use lowercase `false' for boolean constant.
11390 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
11391 Use image_load_image_io.
11392 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
11393 Don't check MyCGImageCreateWithPNGDataProvider.
11394 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
11395 Don't call init_image_func_pointer.
11397 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
11399 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
11400 Make variable non-static.
11401 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
11402 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11404 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
11405 (RED_FROM_ULONG): Mask off higher bits.
11406 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
11408 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
11409 Include AvailabilityMacros.h.
11410 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
11411 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
11413 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
11415 * chartab.c (Fset_char_table_range): If range is t, really set all
11416 chars to that value.
11418 2008-05-03 Eli Zaretskii <eliz@gnu.org>
11420 * dired.c (Ffile_attributes): Don't allow the device number become
11423 2008-05-02 Daiki Ueno <ueno@unixuser.org>
11425 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
11427 2008-05-02 Juri Linkov <juri@jurta.org>
11429 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
11430 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
11431 DEFAULT argument as a list of default values in docstrings.
11433 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
11435 * puresize.h (BASE_PURESIZE): Increase to 1210000.
11437 2008-05-01 Martin Rudalics <rudalics@gmx.at>
11439 * dispnew.c (change_frame_size_1): Preserve small windows when
11440 shrinking frames by calling set_window_height|width with third
11443 * window.h (struct window): Replace field too_small_ok by field
11444 resize_proportionally.
11446 * window.c (make_window): Initialize resize_proportionally.
11447 (enlarge_window): Temporarily set resize_proportionally to make
11448 sure that shrink_windows does scale the window proportionally.
11449 (shrink_windows): When window has resize_proportionally set try
11450 to shrink it proportionally by stealing from other windows.
11451 (struct saved_window, Fset_window_configuration)
11452 (compare_window_configurations): Handle resize_proportionally.
11453 (WINDOW_TOTAL_SIZE): New macro.
11454 (window_min_size, shrink_windows, size_window): Use it.
11455 (check_min_window_sizes): Remove. Invalid values of
11456 window-min-height|width are handled by window_min_size_2 now.
11457 (size_window, Fsplit_window, enlarge_window)
11458 (adjust_window_trailing_edge, grow_mini_window): Don't call
11459 check_min_window_sizes.
11460 (window_min_size_2, window_min_size_1, window_min_size):
11461 New argument safe_p for retrieving "safe" minimum sizes.
11462 (Fdisplay_buffer, Fsplit_window, enlarge_window)
11463 (adjust_window_trailing_edge, grow_mini_window):
11464 Adjust arguments of window_min_size... functions.
11465 (shrink_windows): Argument min_size removed. New argument
11466 safe_p allows shrinking windows to their safe minimum sizes.
11467 Calculate minimum size and decide whether a window shall be
11468 deleted for each window individually.
11469 (size_window): When nodelete_p equals 2, tell shrink_windows to
11470 delete windows only if their new minimum size is no more safe.
11471 (shrink_window_lowest_first): Call window_min_size_1 to make
11472 sure to preserve modeline of bottom-most window when resizing
11474 (Fset_window_configuration, Fcurrent_window_configuration)
11475 (compare_window_configurations): Do not handle
11476 window-min-height|width any more.
11477 (syms_of_window): Clarify window-min-height|width doc-strings.
11479 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
11481 * dired.c (file_name_completion): Fix up the encoding/decoding issue
11482 some more. Copy some of the code from Ftry_completions.
11483 Remove special case code that dates back to initial revision when the
11484 slash was only added when necessary and that can't trigger nowadays.
11486 2008-04-27 Kenichi Handa <handa@m17n.org>
11488 * font.c (font_prop_validate): Signal `error' instead of `font'.
11490 2008-04-29 Jason Rumney <jasonr@gnu.org>
11492 * w32fns.c (Fw32_battery_status): New defun.
11493 (syms_of_w32fns): Defsubr it.
11495 2008-04-28 Andreas Schwab <schwab@suse.de>
11497 * dired.c (file_name_completion): Fix another mixing of encoded
11500 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
11502 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
11504 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
11506 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
11508 2008-04-27 Andreas Schwab <schwab@suse.de>
11510 * dired.c (file_name_completion): Fix inappropriate mixing of
11511 encoded and decoded names.
11513 * xterm.c (XTread_socket): Fix use of uninitialized variable.
11515 * puresize.h (BASE_PURESIZE): Increase to 1200000.
11517 2008-04-26 Eli Zaretskii <eliz@gnu.org>
11519 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
11520 2008-03-31, it's not needed anymore with `struct stat' definition
11521 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
11522 for the same reasons.
11524 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
11526 * m/sparc.h: Additional redefinitions for GNU/Linux.
11528 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11530 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
11531 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
11532 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
11533 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
11534 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11535 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
11536 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11539 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
11540 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
11541 (mac_ax_number_of_characters): Add externs.
11542 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11543 [USE_MAC_TSM]: Likewise.
11544 (mac_handle_text_input_event) [MAC_OSX]:
11545 Handle kEventTextInputOffsetToPos for no active input area case.
11546 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11547 (mac_handle_document_access_event)
11548 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
11549 (install_application_handler) [MAC_OSX]: Register handlers for
11550 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11551 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11552 Register mac_handle_document_access_event.
11554 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
11555 Make functions non-static.
11557 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
11559 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
11560 (read_file_name_completion_ignore_case, insert_default_directory)
11561 (Qdefault_directory): Move to minibuffer.el.
11562 (Fread_file_name): Call the new `read-file-name' instead.
11564 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11566 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
11567 Make function non-static.
11568 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
11570 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11571 Move to mactoolbox.c.
11572 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
11574 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
11575 (mac_rect_make): New macro.
11577 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
11579 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11580 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
11581 (XSetBackground) [USE_CG_DRAWING]: Likewise.
11582 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
11584 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11585 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
11586 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
11587 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11588 instead of WindowRef in argument type.
11589 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
11590 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
11591 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
11592 instead of DISPLAY. All uses changed.
11593 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
11594 (x_calc_absolute_position): Simplify so as not to use
11595 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
11597 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11598 instead of WindowRef in argument type.
11599 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
11600 [TARGET_API_MAC_CARBON]: Remove externs.
11601 (create_apple_event, mac_event_parameters_to_lisp)
11602 [TARGET_API_MAC_CARBON]: Add externs.
11604 * mactoolbox.c (Vmac_ts_script_language_on_focus)
11605 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
11606 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
11608 (x_activate_menubar): Remove extern for saved_menu_event_location.
11609 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11612 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11614 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
11615 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
11617 2008-04-23 Jason Rumney <jasonr@gnu.org>
11619 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
11620 attributes only for local files.
11622 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
11625 2008-04-22 Juri Linkov <juri@jurta.org>
11627 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
11628 read-buffer-to-switch instead of using the letter "B".
11630 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
11632 * fileio.c (Qdefault_directory): New variable.
11633 (Fread_file_name): Use it to pass `dir' to the completion functions.
11635 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
11637 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
11639 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
11641 * keyboard.c (Vpre_help_message): Remove.
11642 (show_help_echo): Remove default C code.
11644 * dired.c (directory_files_internal, file_name_completion):
11645 Only call ENCODE_FILE if the string is indeed decoded.
11647 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11649 * Makefile.in (TOOLKIT_DEFINES): Remove.
11650 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
11652 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11654 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
11655 (mactoolbox.o): New target.
11657 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
11658 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
11660 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
11661 Use mac_set_frame_window_background instead of XSetWindowBackground.
11662 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
11663 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
11664 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
11665 instead of SetWindowTitleWithCFString.
11666 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
11667 Move function to mactoolbox.c.
11668 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
11669 Use mac_set_window_modified instead of SetWindowModified.
11670 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
11671 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
11672 (Fx_focus_frame): Use mac_front_non_floating_window instead of
11673 FrontNonFloatingWindow. Use mac_activate_window instead of
11674 ActivateWindow. Use mac_active_non_floating_window instead of
11675 ActiveNonFloatingWindow.
11676 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
11677 Use mac_show_hourglass and mac_hide_hourglass.
11678 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
11679 instead of GetGlobalMouse.
11680 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
11681 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
11682 Use mac_bring_window_to_front instead of BringToFront.
11683 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
11685 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
11686 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
11687 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
11690 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
11691 (XtPointer): Move typedef from macmenu.c.
11692 (enum button_type): Move enum from macmenu.c.
11693 (widget_value): Move typedef from macmenu.c.
11694 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
11695 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11696 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11697 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11698 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11699 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11700 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11701 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
11702 (Selection): Move typedef from macselect.c.
11703 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
11705 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
11706 (mac_is_window_collapsed, mac_bring_window_to_front)
11707 (mac_send_window_behind, mac_hide_window, mac_show_window)
11708 (mac_collapse_window, mac_front_non_floating_window)
11709 (mac_active_non_floating_window, mac_activate_window)
11710 (mac_move_window_structure, mac_move_window, mac_size_window)
11711 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
11713 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
11714 (enum mac_menu_kind): Move enum to mactoolbox.c.
11715 (min_menu_id): Move variable to mactoolbox.c.
11716 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
11717 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
11718 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
11719 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
11720 [TARGET_API_MAC_CARBON]: Likewise.
11721 (XtPointer): Move typedef to macgui.h.
11722 (enum button_type): Move enum to macgui.h.
11723 (widget_value): Move typedef to macgui.h.
11724 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11725 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11726 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11727 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11728 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11729 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11730 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
11731 (popup_activated_flag): Make variable non-static.
11732 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
11733 (add_menu_item, fill_menu, dispose_menus):
11734 Move functions to mactoolbox.c.
11735 (restore_show_help_function, menu_target_item_handler)
11736 (install_menu_target_item_handler, mac_handle_dialog_event)
11737 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
11738 [TARGET_API_MAC_CARBON]: Likewise.
11739 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
11740 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11741 (find_and_call_menu_selection, name_is_separator): Make function
11743 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
11745 (set_frame_menubar): Don't call install_menu_quit_handler.
11746 (menu_item_selection): New variable.
11747 (mac_menu_show): Use create_and_show_popup_menu.
11748 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
11749 selection but set variable menu_item_selection. All uses changed.
11750 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
11751 Call install_menu_quit_handler. Move to mactoolbox.c.
11753 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
11754 (Selection): Move typedef to macgui.h.
11755 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
11756 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
11757 Make variables non-static.
11758 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11759 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
11760 Make functions non-static.
11761 (Vmac_service_selection) [MAC_OSX]: Likewise.
11762 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
11763 (mac_valid_selection_target_p, mac_clear_selection)
11764 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11765 (mac_put_selection_value, mac_selection_has_target_p)
11766 (mac_get_selection_value, mac_get_selection_target_list)
11767 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
11768 Move functions to mactoolbox.c.
11769 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
11771 (copy_scrap_flavor_data, mac_handle_service_event)
11772 (install_service_handler) [MAC_OSX]: Likewise.
11773 (syms_of_macselect) <Vmac_dnd_known_types>:
11774 Use mac_dnd_default_known_types.
11776 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
11777 Move to mactoolbox.c.
11778 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
11779 (Fx_selection_owner_p): Add EXFUN.
11780 (install_window_handler, remove_window_handler, XSetWindowBackground):
11782 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
11783 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
11784 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
11785 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
11786 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
11787 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
11788 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
11789 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
11790 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
11791 (create_and_show_popup_menu, mac_get_selection_from_symbol)
11792 (mac_valid_selection_target_p, mac_clear_selection)
11793 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11794 (mac_put_selection_value, mac_selection_has_target_p)
11795 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
11796 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
11797 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
11798 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11799 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
11800 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11801 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
11802 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11803 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11805 * mactoolbox.c: New file.
11807 2008-04-18 Jason Rumney <jasonr@gnu.org>
11809 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
11811 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11813 * character.c (Fmultibyte_char_to_unibyte):
11814 Return latin1 chars unchanged.
11816 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
11817 relocated if it points to `name'.
11819 2008-04-17 Kenichi Handa <handa@m17n.org>
11821 * data.c (Faset): Allow setting a multibyte character in an
11822 ASCII-only unibyte string.
11824 * lisp.h (STRING_SET_MULTIBYTE): New macro.
11826 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
11828 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
11831 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
11833 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
11834 (Fchar_direction): Add usage in the docstring.
11836 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
11838 * keyboard.c (read_key_sequence): Remove always-true checks.
11840 2008-04-14 Jason Rumney <jasonr@gnu.org>
11842 * w32font.c (w32font_open_internal): Set max_bounds.descent in
11843 compatibility struct, for better underline positioning.
11845 2008-04-13 David Hansen <david.hansen@gmx.net>
11847 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
11850 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
11852 * m/hp800.h (XUINT, XSET): Remove.
11854 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
11856 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
11859 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
11861 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
11862 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
11864 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
11866 * keymap.h (map_keymap_canonical): Declare.
11867 * xmenu.c (single_keymap_panes): Use it.
11869 2008-04-11 Glenn Morris <rgm@gnu.org>
11871 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
11872 set the target's value to that of the alias.
11874 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
11876 * term.c (set_tty_color_mode): Left over typo.
11878 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
11880 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
11881 only after check for file name handler functions. Signal, when
11882 native functionality is not supported.
11883 (syms_of_fileio): Declare it unconditionally.
11885 2008-04-10 Jason Rumney <jasonr@gnu.org>
11887 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
11888 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
11890 * w32.c (logon_network_drive): Also logon to remote drives that
11891 are mapped to drive letters.
11893 2008-04-10 Glenn Morris <rgm@gnu.org>
11895 * xdisp.c (truncate-partial-width-windows): Doc fix.
11897 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
11899 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
11900 Move functions to minibuffer.el.
11901 (syms_of_fileio): Don't declare them.
11903 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
11905 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
11906 (syms_of_minibuf): Remove its initialization.
11908 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
11910 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
11912 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
11914 2008-04-09 Jason Rumney <jasonr@gnu.org>
11916 * makefile.w32-in (distclean): Delete makefile too.
11917 (maintainer-clean): New target.
11919 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
11921 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
11922 for new font backend and composite cases.
11924 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
11926 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
11927 Most of the code moved to run_timers.
11928 (do_pending_atimers): Call run_timers.
11929 (run_timers): New function.
11931 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
11934 * process.c (wait_reading_process_output): The same as above.
11936 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
11938 * minibuf.c (last_exact_completion): Remove variable.
11939 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
11940 (complete_and_exit_1, complete_and_exit_2)
11941 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
11942 (Fdisplay_completion_list, display_completion_list_1)
11943 (Fminibuffer_completion_help, Fself_insert_and_exit)
11944 (Fexit_minibuffer, Fminibuffer_message): Move functions to
11946 (syms_of_minibuf): Remove corresponding initializations.
11948 * keyboard.c (Qdeactivate_mark): New var.
11949 (command_loop_1): Use it to call `deactivate-mark'.
11950 (syms_of_keyboard): Initialize it.
11952 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
11954 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
11955 Don't call set_tty_color_mode.
11956 (store_frame_param): Reset previous_frame rather than call
11957 set_tty_color_mode.
11958 * term.c (set_tty_color_mode): Rewrite.
11959 * dispextern.h (set_tty_color_mode): New type.
11960 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
11962 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
11964 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
11965 for generic chars, which do not exist any more in emacs-unicode.
11967 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
11969 * coding.c (detect_coding_emacs_mule)
11970 (Ffind_operation_coding_system): Fix typo.
11972 2008-04-08 Jason Rumney <jasonr@gnu.org>
11974 * w32uniscribe.c (SNAME): Extract only symbol name.
11976 * w32font.h (struct w32_metric_cache): New struct.
11977 (w32font_info): Use it.
11978 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
11979 (CACHE_BLOCKSIZE): New constants.
11981 * w32font.c (Qja, Qko, Qzh): New symbols.
11982 (syms_of_w32font): Initialise them.
11983 (font_matches_spec): Use them to filter by language.
11984 (recompute_cached_metrics): Remove function.
11985 (compute_metrics, clear_cached_metrics): New functions.
11986 (w32font_encode_char): Use them to manage metric cache.
11987 (w32font_text_extents): Cache metrics for all glyphs on demand.
11988 Delay converting glyph indices to WORD until needed.
11989 (w32font_open_internal): Initialize metric cache to empty.
11990 (registry_to_w32_charset): Charset should always be a symbol.
11991 (fill_in_logfont, list_all_matching_fonts): Family should
11992 always be a symbol.
11994 2008-04-06 Jason Rumney <jasonr@gnu.org>
11996 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
11997 Give up if glyph indices not supported. Use uniscribe obtained
11998 ABC widths for individual metrics. Map glyph clusters back to
11999 characters using fClusterStart flag. Return number of glyphs
12000 produced, not chars processed.
12001 (uniscribe_shape): Map char at FROM to current glyph.
12003 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12005 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
12006 Use SetMenuItemHierarchicalMenu.
12008 2008-04-05 Jason Rumney <jasonr@gnu.org>
12010 * image.c (pbm_load): Allow color values up to 65535.
12011 Throw an error if max_color_idx is outside the supported range.
12012 Report an error when image size is invalid.
12013 Read two bytes at a time when raw images have max_color_idx above 255.
12015 2008-04-05 Eli Zaretskii <eliz@gnu.org>
12017 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12018 cFileName a file name that includes `?' characters, use the 8+3
12019 alias in cAlternateFileName instead.
12021 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
12023 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
12024 append "CCL: Quitted" when the CCL program is quitted.
12025 (setup_ccl_program): Initialize ccl->quit_silently to zero.
12027 * ccl.h (struct ccl_program): New member quit_silently.
12029 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
12031 * search.c (compile_pattern_1): Treat non-nil and non-string of
12032 search-spaces-regexp as nil.
12034 * minibuf.c (Fassoc_string): Tweak docstring.
12036 2008-04-05 Eli Zaretskii <eliz@gnu.org>
12038 * dired.c (Ffile_attributes): Support inode numbers wider than 32
12039 bits. Remove ugly WINDOWSNT-specific kludge introduced on
12040 2008-03-14 to force inode be positive.
12042 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
12043 _S_* ones, since we now use our own sys/stat.h.
12044 (stat, fstat): Don't mangle the inode number.
12045 (init_user_info): Don't restrict UID and GID to 0-60000 range.
12047 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
12049 * frame.h (struct frame): Give one more bit to `visible' since we use
12050 values larger than 1 to indicate obscured frames on ttys.
12052 * keymap.c (Qkeymap_canonicalize): New var.
12053 (Fmap_keymap_internal): New fun.
12054 (describe_map): Use keymap-canonicalize.
12056 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
12057 (Fundo_boundary): Set them.
12058 (syms_of_undo): Initialize them.
12059 (record_point): Use them instead of last_point_position*.
12060 (last_undo_buffer): Change type.
12062 2008-04-04 Jason Rumney <jasonr@gnu.org>
12064 * w32font.c (w32font_text_extents): Use font's ascent and descent.
12065 (recompute_cached_metrics): Don't set ascent and descent per char.
12067 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
12068 (uniscribe_check_otf): Add GC protection before consing.
12069 Rearrange loop for counting features.
12071 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
12073 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
12074 buffer with byte-size of source buffer.
12076 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
12078 * callint.c (Fcall_interactively): Handle temporary region even
12079 when shift-select-mode is off.
12081 2008-04-03 Jason Rumney <jasonr@gnu.org>
12083 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
12085 2008-04-03 Kenichi Handa <handa@m17n.org>
12087 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
12088 (CATEGORY_MASK_UTF_16): Likewise.
12089 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
12091 (detect_coding): Add null-byte detection for a binary file.
12092 (detect_coding_system): Likewise.
12094 2008-04-03 Jason Rumney <jasonr@gnu.org>
12096 * w32uniscribe.c: New file.
12098 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
12100 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
12102 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
12103 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
12104 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
12105 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
12106 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
12107 (Qphonetic): New symbols.
12108 (syms_of_w32font): Initialize them.
12109 (font_supported_scripts): Use them.
12110 (w32font_list_family): List all charsets.
12111 (w32font_text_extents, recompute_cached_metrics): Fix metric
12113 (w32_enumfont_pattern_entity): Make full_type a DWORD.
12114 Give opentype fonts their own format.
12115 (font_matches_spec): New arguments backend and logfont.
12116 Handle :otf spec for uniscribe backend.
12117 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
12118 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
12120 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
12122 (globals_of_w32fns): Initialize uniscribe font backend.
12124 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
12126 (w32uniscribe.$(O)): New file to build.
12127 (FONT_OBJ): Include w32uniscribe.$(O).
12128 (LIBS): Add uniscribe libraries.
12130 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
12132 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
12134 * callint.c (Vshift_select_mode): New var.
12135 (Finteractive): Document new ^ spec.
12136 (Fcall_interactively): Call handle-shift-selection if the ^ spec
12139 * keyboard.c (Vthis_command_keys_shift_translated): New var.
12140 (command_loop_1): Avoid running the direct display versions of
12141 forward-char and backward-char if shift-selection may occur.
12142 (read_key_sequence): Set Vthis_command_keys_shift_translated if
12143 shift-translation takes place.
12145 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
12146 avoid clobbering by define-minor-mode.
12148 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
12149 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
12151 * syntax.c (Fforward_word): Add ^ interactive spec.
12153 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
12154 (Fscroll_right): Add ^ interactive spec.
12156 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
12158 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
12160 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
12162 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
12164 2008-03-31 Juri Linkov <juri@jurta.org>
12166 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
12168 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
12170 * gtkutil.c (xg_set_geometry): Fix indentation.
12171 (xg_resize_outer_widget): Remove.
12172 (x_wm_size_hint_off): Fix indentation.
12173 (xg_frame_set_char_size): Call flush_and_sync after
12175 (x_wm_set_size_hint): Pass NULL as geometry window to
12176 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
12177 Add menu bar and tool bar height to base height.
12178 (xg_update_frame_menubar, free_frame_menubar)
12179 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
12180 (update_frame_tool_bar, free_frame_tool_bar):
12181 Change xg_resize_outer_widget to xg_frame_set_char_size.
12183 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
12185 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
12186 (Fdbus_call_method): New parameter TIMEOUT.
12187 (dbus-send-signal): Optimize UNGCPRO call.
12189 2008-03-29 Juri Linkov <juri@jurta.org>
12191 * window.c (Fdisplay_buffer): Move call to
12192 Vsplit_window_preferred_function out of conditions that check
12193 if window is eligible for vertical splitting.
12194 When Vsplit_window_preferred_function is non-nil, call it and use
12195 its non-nil return value as window. Otherwise, continue doing
12196 vertical splitting using Fsplit_window with arg horflag=nil.
12197 (syms_of_window) <Vsplit_window_preferred_function>: Change the
12198 default value from `split-window' to nil.
12200 2008-03-29 Juri Linkov <juri@jurta.org>
12202 * callint.c (Fcall_interactively): Revert 2008-03-16 change
12203 for interactive code letters 'b' and 'B'.
12205 2008-03-29 Eli Zaretskii <eliz@gnu.org>
12207 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
12210 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
12212 * keyboard.c (pending_funcalls): New var.
12213 (timer_check): Run it.
12214 (syms_of_keyboard): Initialize it.
12215 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
12216 (Vdelete_terminal_functions): New vars.
12217 (syms_of_terminal): Initialize them.
12218 (Fdelete_terminal): Run delete-terminal-functions.
12219 * xdisp.c (safe_eval): Rewrite.
12220 (safe_call2): New fun.
12221 * frame.c (Qdelete_frame_functions): New var.
12222 (syms_of_frame): Initialize it.
12223 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
12224 * lisp.h (safe_call2, pending_funcalls): Declare.
12226 2008-03-28 Andreas Schwab <schwab@suse.de>
12228 * indent.c (Fmove_to_column): Move declaration before statements.
12230 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
12232 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
12233 (struct frame): Use bit fields for boolean vars.
12235 * process.c (server_accept_connection): Simplify naming.
12236 (emacs_get_tty_pgrp): Use SDATA.
12238 * coding.c (decode_coding_object): Fix last change.
12240 2008-03-27 Jason Rumney <jasonr@gnu.org>
12242 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
12244 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
12246 * charset.c (Fdefine_charset_internal): Change the way of
12247 registering charsets in Vcharset_order_list.
12248 (syms_of_charset): Make the charset `eight-bit' supplementary.
12250 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
12252 * regex.c (EXTEND_BUFFER): Change order of pointer addition
12253 operations, to avoid having the difference between pointers
12256 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
12258 * indent.c (check_display_width): New fun.
12259 (scan_for_column): Use it.
12261 * data.c (syms_of_data): Mark most-positive-fixnum and
12262 most-negative-fixnum as constants.
12264 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
12266 * indent.c (scan_for_column): Extract from current_column_1.
12267 Merge with the same code from Fmove_to_column.
12268 (current_column_1, Fmove_to_column): Use it.
12270 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
12272 * keymap.c (map_keymap_internal): New fun.
12273 (map_keymap): Use it.
12274 (Fmap_keymap_internal): New fun.
12275 (Fmap_keymap): Remove left-out test from before make_save_value.
12277 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
12279 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
12282 * process.h (struct Lisp_Process): Remove filter_multibyte.
12283 * process.c (QCfilter_multibyte): Remove.
12284 (setup_process_coding_systems): Don't use filter_multibyte.
12285 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
12286 (read_process_output): Don't adjust multibyteness to filter_multibyte.
12287 (Fset_process_filter_multibyte): Change the coding-system to
12288 approximate the previous behavior.
12289 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
12292 * coding.c (decode_coding_object): When not decoding into a buffer,
12293 obey the coding system's preference of (uni|multi)byte.
12295 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
12297 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
12298 every char is changed and has a different byte-length.
12299 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
12300 Fix int -> EMACS_INT.
12302 2008-03-23 David Hansen <david.hansen@gmx.net>
12304 * dbusbind.c (xd_read_message): Remove extra copying of message
12305 strings. Check for NULL `interface' or `member'.
12307 2008-03-22 Eli Zaretskii <eliz@gnu.org>
12309 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12310 cFileName a file name that includes `?' characters, use the 8+3
12311 alias in cAlternateFileName instead.
12313 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
12315 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
12317 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12319 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
12320 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
12321 work on current_buffer only instead (that was already the case
12322 for some of the code anyway).
12323 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
12324 (temp_set_point, temp_set_point_both): Use EMACS_INT.
12325 (SET_PT, SET_PT_BOTH): Adjust.
12326 * intervals.h (set_point, temp_set_point, set_point_both)
12327 (temp_set_point_both): Remove redundant declarations.
12329 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12331 * fileio.c (Finsert_file_contents):
12332 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
12333 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
12334 when buffer != current_buffer anyway.
12336 2008-03-20 Andreas Schwab <schwab@suse.de>
12338 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
12341 2008-03-19 Jason Rumney <jasonr@gnu.org>
12343 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
12344 (syms_of_w32fns): Initialize them.
12345 (HOURGLASS_ID): New constant.
12346 (x_window_to_frame): Don't check hourglass_window.
12347 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
12348 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
12349 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
12350 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
12351 Only change the cursor if hourglass is not active.
12352 (Fx_create_frame): Initialize frame's current_cursor.
12353 (hourglass_atimer): Remove.
12354 (hourglass_started): New function.
12355 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
12356 (show_hourglass): Adapt to w32, changing argument to frame.
12358 * w32term.h (struct w32_output): Remove hourglass_window.
12359 Add current_cursor.
12361 * eval.c (call_debugger, Fsignal):
12362 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
12363 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
12364 (Fexecute_extended_command, cancel_hourglass_unwind):
12365 * minibuf.c (read_minibuf):
12366 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
12368 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
12370 * window.c (run_funs): New fun.
12371 (run_window_configuration_change_hook): Use it to run the buffer-local
12372 and the global part of the hook.
12374 * xdisp.c (format_mode_line_unwind_data): Add window argument.
12375 (unwind_format_mode_line): Restore selected window.
12376 (x_consider_frame_title, Fformat_mode_line): Set selected window.
12378 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
12380 * editfns.c (Fchar_equal): Check they are valid characters.
12382 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
12384 2008-03-17 Andreas Schwab <schwab@suse.de>
12386 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
12389 * lisp.h (Fbuffer_list): Declare.
12391 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
12393 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
12394 handlebox_widget is != 0.
12396 2008-03-16 Juri Linkov <juri@jurta.org>
12398 * callint.c (Fcall_interactively): For interactive code letters
12399 'b' and 'B' put the buffer list into the list of default "future"
12400 values of the minibuffer.
12402 2008-03-16 Andreas Schwab <schwab@suse.de>
12404 * keyboard.c (read_key_sequence): Fix downcasing of letters with
12407 * regex.c (re_match_2_internal): Correct matching of a charset
12408 against latin-1 characters.
12410 2008-03-16 Kenichi Handa <handa@m17n.org>
12412 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
12413 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
12414 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
12415 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
12416 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
12417 CHAR_STRING_ADVANCE.
12418 (produce_chars): Fix for the case that the source and the
12419 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
12420 instead of CHAR_STRING_ADVANCE.
12421 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
12422 STRING_CHAR_ADVANCE.
12424 2008-03-15 Andreas Schwab <schwab@suse.de>
12426 * regex.c (re_match_2_internal): Correct matching of eight bit
12427 characters in unibyte strings.
12429 2008-03-15 Martin Rudalics <rudalics@gmx.at>
12431 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
12432 at end of range when it coincides with the end of the buffer.
12434 2008-03-14 Eli Zaretskii <eliz@gnu.org>
12436 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
12438 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
12440 2008-03-14 Jason Rumney <jasonr@gnu.org>
12442 * editfns.c (initial_tz): New variable.
12443 (syms_of_editfns): Initialize it.
12444 (Fset_time_zone_rule): Set it when first called.
12445 Use it when TZSTRING is nil.
12447 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
12448 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
12449 (monitor_from_point_fn, get_monitor_info_fn): New globals.
12450 (globals_of_w32fns): Initialize them.
12451 (compute_tip_xy): Use them to position tooltips.
12453 2008-03-14 Glenn Morris <rgm@gnu.org>
12455 * emacs.c (main): Revert previous change.
12456 (standard_args): Revert -internal-script back to -scriptload,
12457 and remove the long-option form.
12459 2008-03-13 Glenn Morris <rgm@gnu.org>
12461 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
12462 Remove option -enable-font-backend.
12464 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
12466 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
12468 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
12470 * xterm.c (x_connection_closed): For GTK: If this is the last
12471 terminal just exit without closing the display.
12473 2008-03-11 Jason Rumney <jasonr@gnu.org>
12475 * w32font.c (w32font_full_name): Use floor to round.
12477 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
12479 * sound.c (alsa_configure): Declare vol at beginning of block.
12481 * fontset.c (Ffontset_info): Remove extra semicolon.
12483 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
12485 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
12486 size of resulting string.
12488 2008-03-10 Jason Rumney <jasonr@gnu.org>
12490 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
12492 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12494 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
12495 Don't pretend as if characters with display property haven't been
12496 consumed for string-replacing-string case.
12498 2008-03-08 Kim F. Storm <storm@cua.dk>
12500 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
12501 (get_next_display_element, next_element_from_string)
12502 (next_element_from_ellipsis, next_element_from_buffer): Use it.
12504 2008-03-08 Andreas Schwab <schwab@suse.de>
12506 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
12508 2008-03-06 Jason Rumney <jasonr@gnu.org>
12510 * w32font.c (w32_registry): Take font_type argument. Use ANSI
12511 when charset not specified. Only translate ANSI to unicode when
12512 font_type is truetype.
12513 (w32font_coverage_ok): New function.
12514 (add_font_entity_to_list): Use it to filter unsuitable fonts.
12516 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
12518 * lread.c (Fread_char): Resolve modifiers.
12519 (Fread_char_exclusive): Likewise.
12521 * character.c (char_resolve_modifier_mask): New function.
12522 (char_string): Use char_resolve_modifier_mask.
12523 (Fchar_resolve_modifiers): New function.
12524 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
12527 2008-03-04 Jason Rumney <jasonr@gnu.org>
12529 * makefile.w32-in: Always include w32font.c in the build.
12530 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
12532 2008-03-04 Andreas Schwab <schwab@suse.de>
12534 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
12535 (versionclean): Likewise.
12537 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
12539 * .cvsignore: Add oo.
12541 2008-03-03 Andreas Schwab <schwab@suse.de>
12543 * coding.c (decode_coding_object): Inhibit gap shrinking while
12546 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
12548 * w32term.c: Remove unused include "gnu.h".
12549 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
12551 * gnu.h: Rename to ...
12552 * emacs-icon.h: ... this.
12553 * xterm.c: Use emacs-icon.h instead of gnu.h.
12554 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
12556 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
12558 * w32font.c: Include math.h.
12560 2008-03-03 Jason Rumney <jasonr@gnu.org>
12562 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
12563 Compute options separately.
12564 (w32font_open_internal): Set glyph_idx before caching metrics.
12566 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
12567 Define if system headers don't.
12568 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
12569 (w32font_encode_char): Don't declare here.
12571 * w32font.c (Quniscribe, QCformat): New symbols.
12572 (syms_of_w32font): Define them.
12573 (w32font_has_char): Indicate uncertainty.
12574 (w32font_encode_char): Encode as glyph point. Make static.
12575 (recompute_cached_metrics): New function.
12576 (w32font_open_internal): Use it. Set font to use glyph points
12577 initially. Set format based on type of font.
12578 (w32font_text_extents, w32font_draw): Optionally use glyph points.
12579 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
12580 on it. Set format based on information available here.
12581 (add_font_entity_to_list): Identify backend based on opentype_only.
12583 2008-03-02 Andreas Schwab <schwab@suse.de>
12585 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
12587 * coding.c (decode_coding_big5, produce_chars):
12588 Fix typos in last change.
12590 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
12594 2008-03-02 Kenichi Handa <handa@m17n.org>
12596 * coding.c (decode_coding_utf_8): When eol-type of CODING is
12597 `dos', don't decode '\r' if that is the last in the source.
12598 (decode_coding_utf_16, decode_coding_emacs_mule)
12599 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12600 (decode_coding_raw_text, decode_coding_charset): Likewise.
12601 (produce_chars): Don't decode EOL here. Use EMACS_INT.
12603 2008-03-01 Jason Rumney <jasonr@gnu.org>
12605 * w32font.c (w32font_full_name): Report point size for scalable fonts.
12607 2008-03-01 Kim F. Storm <storm@cua.dk>
12609 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
12611 2008-03-01 Jason Rumney <jasonr@gnu.org>
12613 * w32font.c (w32font_full_name): New function.
12614 (w32font_open_internal): Use it.
12616 2008-03-01 Kim F. Storm <storm@cua.dk>
12618 * dispnew.c (line_draw_cost): Fix invalid glyph check.
12620 2008-03-01 Jason Rumney <jasonr@gnu.org>
12622 * font.c (font_unparse_fcname): Increase len when style is a symbol.
12624 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
12626 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
12627 xg_frame_resized when the event is for the edit widget.
12629 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
12631 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
12633 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
12634 operations on widgets here. Just set frame size if needed.
12635 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
12636 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
12637 (x_wm_set_size_hint): Set size hints on the edit widget only, not
12639 (xg_create_tool_bar): Move attachment of the tool bar to
12640 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
12641 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
12643 2008-03-01 Jason Rumney <jasonr@gnu.org>
12645 * w32fns.c (w32_msg_pump): Disable debug code.
12647 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12649 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
12651 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
12653 * xdisp.c (next_overlay_string): Don't set
12654 overlay_strings_at_end_processed_p if we're currently reading from
12657 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
12659 * xdisp.c (get_overlay_strings_1): Fix typo.
12661 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
12663 * xdisp.c (get_overlay_strings_1): Add missing argument type.
12665 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
12667 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
12669 * xdisp.c (display_mode_element): Cancel the previous change.
12670 (decode_mode_spec): Likewise.
12671 (handle_auto_composed_prop): Don't make composition if it->string
12674 2008-02-27 Kim F. Storm <storm@cua.dk>
12676 * lisp.h (GLYPH): Change type from int to struct with separate char
12677 and face_id members.
12678 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
12679 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
12680 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
12681 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
12682 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
12683 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
12684 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
12685 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
12686 handle new Lisp glyph code encoding, either an integer or a cons.
12688 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
12689 (GLYPH_ALIAS): Delete.
12690 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
12691 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
12692 (GLYPH_FROM_CHAR): Replace macro by ...
12693 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
12695 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
12696 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
12697 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
12698 (GLYPH_INVALID_P): New macro.
12699 (spec_glyph_lookup_face): Update prototype.
12701 * dispnew.c (line_draw_cost): Adapt to new glyph type.
12702 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
12703 new glyph code encoding.
12704 (spec_glyph_lookup_face): No return value; update passed glyph instead.
12705 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
12707 * xdisp.c (get_next_display_element, next_element_from_display_vector):
12708 Adapt to new glyph type and new glyph code encoding.
12710 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
12712 * indent.c (current_column, current_column_1, Fmove_to_column)
12713 (compute_motion): Adapt to new glyph code encoding.
12715 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
12717 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
12719 * process.c (wait_reading_process_output): Check for window
12720 changes caused by timers.
12721 Suggested by Johan Bockgård.
12723 2008-02-27 Glenn Morris <rgm@gnu.org>
12725 * emacs.c (USAGE1): Add `--disable-font-backend'.
12727 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
12729 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
12730 is made to the buffer.
12732 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
12734 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
12735 (face_at_string_position):
12736 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
12737 (face_at_string_position):
12738 * xdisp.c (display_string, next_overlay_change):
12739 * buffer.h (overlays_at):
12740 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
12743 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
12745 * editfns.c (Fformat): Doc fix.
12747 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
12749 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
12750 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
12751 (Ffont_otf_alternates, Fquery_font): Doc fixes.
12753 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12755 * buffer.c (Fbuffer_swap_text): New function.
12756 (syms_of_buffer): Defsubr it.
12758 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
12760 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
12762 2008-02-25 Jason Rumney <jasonr@gnu.org>
12764 * w32font.c (w32font_draw): Draw one character at a time when padding.
12766 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12768 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
12769 Handle a nil arg. Use run_window_configuration_change_hook.
12770 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
12771 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
12772 Use run_window_configuration_change_hook.
12774 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12776 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
12779 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12781 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
12782 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
12783 if the glyph in the font is zero pixel with.
12785 * dispextern.h (struct glyph_string): New member padding_p.
12787 * w32font.c (w32font_draw): Pay attention to s->padding_p.
12789 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
12791 * xfont.c (xfont_draw): Pay attention to s->padding_p.
12793 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
12795 * font.c: If the font driver doesn't have `shape' function, return Qnil.
12797 2008-02-25 Jason Rumney <jasonr@gnu.org>
12799 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
12801 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
12803 Allow fine-grained image-cache flushing.
12804 * dispextern.h (struct image): Add `dependencies' field.
12805 (clear_image_caches): Change arg to Lisp_Object.
12806 * image.c (make_image): Initialize `dependencies' field.
12807 (clear_image_cache): Change arg to allow fine-grained flushing.
12808 Perform the flush even if image-cache-eviction-delay is nil.
12809 (clear_image_caches): Change arg to Lisp_Object.
12810 (Fclear_image_cache): Expand meaning of the argument.
12811 (mark_image): Mark `dependencies' field.
12812 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
12813 (lface_hash): Use XHASH rather than XFASTINT.
12814 (face_at_buffer_position): Fix int -> EMACS_INT position.
12815 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
12816 (select_frame_for_redisplay): Remove code duplication.
12817 (redisplay_internal): Adapt arg to call to clear_image_caches.
12819 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
12824 * s/vms5-5.h: Remove, unused.
12830 * m/mips4.h: Remove files for obsolete systems.
12843 * s/usg5-3.h: Remove references to obsolete variables.
12845 * s/irix5-0.h: Remove, move all the contents ...
12846 * s/irix6-5.h: ... here. Simplify.
12847 * config.in: Regenerate.
12849 2008-02-24 Jason Rumney <jasonr@gnu.org>
12851 * w32term.c (x_draw_glyph_string_background): Clear the background
12852 manually when cleartype is in use.
12853 (x_draw_glyph_string_foreground): Draw text transparently when
12854 cleartype is in use.
12856 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
12857 a font into it unless we have to.
12859 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12861 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
12862 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
12864 2008-02-18 Jason Rumney <jasonr@gnu.org>
12866 * w32fns.c (Fw32_shell_execute): Encode parameters.
12868 2008-02-09 Eli Zaretskii <eliz@gnu.org>
12870 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
12872 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
12874 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
12876 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
12878 * xterm.c (x_set_offset): Don't change the gravity if
12879 CHANGE_GRAVITY is -1.
12881 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
12883 * fileio.c (auto_save_error_occurred): New var.
12884 (auto_save_error): Set it.
12885 (Fdo_auto_save): Don't overwrite the error message if an auto-save
12888 2008-02-23 Eli Zaretskii <eliz@gnu.org>
12890 * w32.c (globals_of_w32): Add initializations for
12891 g_b_init_get_sid_sub_authority and
12892 g_b_init_get_sid_sub_authority_count.
12894 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
12896 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
12897 (font_parse_xlfd): Use them for sanity check.
12898 (Finternal_set_font_style_table): Make sure the table is bijective.
12900 Consolidate the image_cache to the terminal struct.
12901 * termhooks.h (P_): Remove redundant def.
12902 (struct terminal): New field `image_cache'.
12903 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
12904 of FRAME_X_IMAGE_CACHE.
12905 * xterm.h (struct x_display_info): Remove image_cache field.
12906 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12907 * w32term.h (struct w32_display_info): Remove image_cache field.
12908 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12909 * macterm.h (struct mac_display_info): Remove image_cache field.
12910 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12911 * xterm.c (x_term_init):
12912 * w32term.c (w32_term_init):
12913 * macterm.c (mac_term_init): Set the image_cache in the terminal.
12914 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
12915 Remove declarations.
12916 (clear_image_caches, mark_image_cache): New declarations.
12917 * xfaces.c (clear_face_cache):
12918 * xdisp.c (redisplay_internal): Use clear_image_caches.
12919 * image.c (clear_image_cache): Don't check that a frame is on
12920 a window-system before checking if it shares the same cache.
12921 (clear_image_caches): New function.
12922 (Fclear_image_cache): Use it.
12923 (mark_image): Move from allo.c.
12924 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
12925 * alloc.c (mark_image, mark_image_cache): Move to image.c.
12926 (mark_object): Don't call mark_image_cache for frames.
12927 (mark_terminals): Call mark_image_cache.
12929 * lisp.h (Fdelete_terminal): Declare.
12931 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
12932 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
12933 wrong_type_argument.
12935 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
12937 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
12938 malayalam.el, and tamil.el. Add sinhala.el.
12940 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
12942 * xterm.c (x_connection_closed): Consolidate identical tests.
12943 (x_delete_terminal): Don't crash if called via x_connection_closed.
12945 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
12947 * xdisp.c (decode_mode_spec): New arg string.
12948 (display_mode_element): Adjust for the above change.
12950 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12952 * callint.c (Fcall_interactively): Use AREF.
12954 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
12956 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
12958 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
12960 * xfns.c (Fx_show_tip): Set string to " " if empty.
12962 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
12964 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
12967 2008-02-17 Kenichi Handa <handa@m17n.org>
12969 * ftfont.c (ftfont_shape): Return Lispy number.
12971 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
12973 (Finternal_set_font_selection_order): Call font_update_sort_order
12974 only when enable_font_backend is set.
12975 (realize_x_face): Set face->font_info to that of default face only
12976 when enable_font_backend is set.
12978 * xdisp.c (handle_composition_prop): Set it->c to the fist
12979 character of the composed region.
12980 (fill_composite_glyph_string): Set base_face->font_info to
12981 s->font_info. Get a face for ascii from base_face->ascii_face.
12982 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
12983 with a face already decided.
12984 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
12986 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
12987 call font_prepare_composition unconditionally.
12989 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
12991 * xterm.h (struct x_display_info): New member font.
12993 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
12994 (x_set_mouse_face_gc, x_new_font): Likewise.
12995 (x_term_init): Setup display_info->font.
12996 (x_delete_terminal): Free display_info->font.
12998 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
13000 * ftxfont.c (ftxfont_default_fid): Delete it.
13001 (ftxfont_open): Set xfont->fid to 0.
13002 (ftxfont_end_for_frame): Clear data specific to the frame and the
13005 * xftfont.c (xftfont_default_fid): Delete it.
13006 (xftfont_open): Set xfont->fid to 0.
13008 * fontset.c (FONTSET_OBJLIST): New macro.
13009 (fontset_find_font): Update font-object list of the fontset.
13010 (free_realized_fontset): New function.
13011 (free_face_fontset): Call free_realized_fontset.
13012 (Ffont_info): Call font_close_object only when enable_font_backend
13015 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
13016 [HAVE_NTGUI]: Include w32term.h.
13017 [MAC_OS]: Include macterm.ch.
13018 (font_otf_ValueRecord): Use make_number.
13019 (font_finish_cache): Fix handling of reference count.
13020 (font_clear_cache): Update num_fonts.
13021 (font_open_entity): Update smallest_char_width and
13022 smallest_font_height of the frame.
13023 (font_close_object): Update num_fonts.
13024 (Fclear_font_cache): Fix finding the target cache data.
13026 2008-02-16 Glenn Morris <rgm@gnu.org>
13028 * fontset.c (Finternal_char_font): Fix compilation warning.
13030 2008-02-16 Eli Zaretskii <eliz@gnu.org>
13032 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
13033 instead of char arrays. Enlarge the size of array passed to
13034 get_token_information.
13036 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
13039 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
13041 * .gdbinit: Don't set `args', it breaks gdb --args.
13043 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
13045 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
13046 within a narrowed buffer.
13048 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
13050 * coding.c (decode_coding_object, encode_coding_object):
13051 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
13053 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
13055 * coding.c (coding_set_destination): Use BEG_BYTE rather than
13057 (detect_coding_system):
13058 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
13059 (string_char_to_byte, string_byte_to_char, insert_from_gap):
13060 * insdel.c (insert_from_gap):
13061 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
13062 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
13063 (string_to_multibyte):
13064 * character.c (chars_in_text, multibyte_chars_in_text):
13065 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
13067 * character.h (FETCH_STRING_CHAR_ADVANCE)
13068 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
13069 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
13070 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
13072 * casefiddle.c (casify_region): Only call after-change and composition
13073 functions on the part of the region that was changed.
13075 * keyboard.c (read_avail_input):
13076 * frame.c (Fdelete_frame): Call Fdelete_terminal.
13078 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13080 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
13081 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
13083 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
13085 * w32menu.c (push_submenu_start, push_submenu_end)
13086 (push_left_right_boundary, push_menu_pane, push_menu_item):
13087 * keyboard.c (read_key_sequence): Don't pass args with side effects
13088 to AREF, it fails when compiling with -DENABLE_CHECKING.
13090 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
13092 * Makefile.in (${lispsource}international/charprop.el):
13093 Delete this target.
13095 * search.c (boyer_moore): Fix incorrect synching of the trunk and
13098 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13100 * terminal.c (Fdelete_terminal): Clean up the `force' path.
13102 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13104 * frame.c (Qnoelisp): New symbol.
13105 (syms_of_frame): Initialize it.
13106 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
13107 harmless Elisp code, from a strong `force' from x_connection_closed.
13108 * frame.h (Qnoelisp): Declare.
13109 * xterm.c (x_connection_closed): Pass `noelisp'.
13111 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
13112 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
13113 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
13114 rather than `int' for the type of `type'.
13116 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
13118 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
13120 * Makefile.in (GNUC): Remove support for gcc-1.x.
13122 2008-02-10 Richard Stallman <rms@gnu.org>
13124 * lisp.h (ASET): Use AREF, not ASLOT.
13126 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13128 * lisp.h (ASET): Check bounds.
13130 2008-02-10 Glenn Morris <rgm@gnu.org>
13132 * buffer.c (mode-name): Doc fix.
13134 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13151 * xterm.c: Remove code that deals with obsolete variables.
13153 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
13155 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
13156 nothing else needs it anymore.
13158 2008-02-09 Eli Zaretskii <eliz@gnu.org>
13160 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
13161 instead of unibyte_char_to_multibyte.
13163 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13165 * s/gnu-linux.h: Remove commented out code.
13167 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
13169 * Makefile.in: Update what RMS says about using autoconf.
13170 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
13171 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
13172 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
13173 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
13175 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
13177 * keymap.c (Fkey_description): Move side effect outside of macro call.
13179 * xfaces.c (Finternal_make_lisp_face):
13180 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
13182 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
13183 (syms_of_fontset): Use ASET.
13185 * fns.c (concat): Move side effect outside of macro call.
13186 (hash_clear): Use ASET.
13188 2008-02-08 Richard Stallman <rms@gnu.org>
13190 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
13191 If FORCE, and frame has a surrogate minibuffer for another frame,
13192 delete the other frame first.
13194 2008-02-07 Timo Savola <timo.savola@iki.fi>
13196 * xterm.c (x_detect_focus_change): Handle embed client message.
13197 (handle_one_xevent): Ditto.
13198 (handle_one_xevent): If embedded and we get a button press/release,
13200 (xembed_set_info, xembed_send_message): New functions.
13201 (x_make_frame_visible): Call xembed_set_info if embedded.
13202 (x_make_frame_invisible): Call xembed_set_info if embedded.
13203 (x_term_init): Initialize Xatom_XEMBED.
13204 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
13205 (x_iconify_frame): Ditto.
13207 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
13208 (enum xembed_info, enum xembed_message, enum xembed_focus)
13209 (enum xembed_modifier, enum xembed_accelerator): New.
13210 (xembed_set_info, xembed_send_message): Declare.
13211 (FRAME_X_EMBEDDED_P): New.
13213 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
13216 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
13217 window ID of a frame.
13218 (x_window): Reparent frame if embedded.
13219 (Fx_create_frame): Don't set border width if embedded.
13221 * emacs.c (USAGE3): Add --parent-id.
13222 (standard_args): Ditto.
13224 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
13226 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
13228 2008-02-07 Jim Meyering <meyering@redhat.com>
13230 Use "do...while (0)", not "if (1)...else" in macro definitions.
13231 The latter provokes a warning from gcc about the empty else, when
13232 followed by ";". Also, without that trailing semicolon, it would
13233 silently swallow up any following statement.
13234 * syntax.h (SETUP_SYNTAX_TABLE)
13235 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
13236 * buffer.h (DECODE_POSITION): Likewise.
13237 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
13238 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
13239 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
13240 (FETCH_CHAR_ADVANCE): Likewise.
13241 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
13243 2008-02-07 Jim Meyering <meyering@redhat.com>
13245 * lread.c [lint]: Don't include <sys/inode.h>.
13247 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
13249 * xselect.c (x_handle_dnd_message):
13250 * xmenu.c (digest_single_submenu, xmenu_show):
13251 * xdisp.c (with_echo_area_buffer_unwind_data)
13252 (format_mode_line_unwind_data, unwind_format_mode_line)
13253 (display_menu_bar):
13254 * eval.c (Ffetch_bytecode):
13255 * doc.c (store_function_docstring):
13256 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
13257 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
13258 * buffer.c (add_overlay_mod_hooklist): Use ASET.
13260 2008-02-07 Kenichi Handa <handa@m17n.org>
13262 * ftxfont.c (ftxfont_open): Don't set
13263 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
13265 * ftfont.c (ftfont_open): Fix previous change.
13267 2008-02-06 Jason Rumney <jasonr@gnu.org>
13269 * w32font.c (w32font_text_extents): Fill in lbearing metric.
13270 Use cached metrics for ASCII characters.
13271 (w32font_open_internal): Don't set font's owning_frame.
13272 Cache metrics for ASCII characters.
13274 * w32font.h (struct w32font_info): Add ascii_metrics.
13275 Remove owning_frame.
13277 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
13279 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
13282 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
13284 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
13286 * charset.c (syms_of_charset): Set QCtest and Qeq.
13288 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
13290 * process.c (Fstart_process):
13291 * callproc.c (Fcall_process): Handle the case where
13292 Funhandled_file_name_directory returns nil.
13294 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
13295 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
13296 * font.c (check_gstring): Use them and AREF to access the vector before
13297 we know it's really a gstring.
13298 (Ffont_shape_text): Fix typo.
13299 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
13301 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
13304 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
13306 2008-02-05 Jason Rumney <jasonr@gnu.org>
13308 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
13309 Set smallest_font_height and smallest_char_width in display info.
13311 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
13313 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
13315 2008-02-05 Miles Bader <miles@gnu.org>
13317 * xfaces.c (get_lface_attributes, merge_named_face)
13318 (lookup_named_face, lookup_derived_face, realize_named_face):
13319 Revert 2008-02-01 change by cyd@stupidchicken.com.
13321 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
13323 * fontset.c (Ffontset_info): Handle the case of inhibitting the
13325 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
13327 2008-02-04 Jason Rumney <jasonr@gnu.org>
13329 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
13331 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
13333 2008-02-03 Jason Rumney <jasonr@gnu.org>
13335 * makefile.w32-in (OBJ1): Include font.o here.
13336 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
13338 2008-02-02 Jason Rumney <jasonr@gnu.org>
13340 * makefile.w32-in (temacs): Bump EMHEAP to 21.
13342 2008-02-01 Jason Rumney <jasonr@gnu.org>
13344 * s/cygwin.h: Define VIRT_ADDR_VARIES.
13346 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
13348 2008-02-01 Andreas Schwab <schwab@suse.de>
13350 * Makefile.in (shortlisp, lisp): Update for rename of
13351 ../lisp/language/myanmar.el.
13353 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
13355 * xfaces.c (get_lface_attributes): Delete function.
13356 (merge_named_face, lookup_named_face, lookup_derived_face)
13357 (realize_named_face): Call lface_from_face_name directly, and use
13358 the fact that merge_face_vectors does not alter its FROM argument.
13360 2008-02-01 Jason Rumney <jasonr@gnu.org>
13362 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
13363 input in the default locale. Handle non-Unicode multibyte input.
13365 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13367 * fontset.c (reorder_font_vector): Exclude nil elements from the
13368 font group. Don't try multiple fonts.
13369 (fontset_font): Adjust for the above change.
13370 (Finternal_char_font): Return nil if the found font doesn't
13371 contain the character ch.
13373 * Makefile.in (lisp, shortlisp): Add cham.el.
13375 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13377 * font.h (FONTP): Make it return 1 also for a font-object.
13379 * .gdbinit (xfontset): New function.
13381 * font.c (font_find_for_lface): Check if the character C is
13382 supported or not only for the first font.
13384 * fontset.c (reorder_font_vector): Fix typo.
13385 (fontset_find_font): Don't add a font-spec specifying a script.
13386 Use 0 (not Qt) for the indication of empty font-group. Change the
13387 format of RFONT-DEF. Return Qt if no font in the font-group
13388 support the character.
13389 (fontset_font): Adjust for the above change. If no font was
13390 found the character, remember that.
13391 (face_for_char): Adjust for the change of RFONT-DEF.
13392 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
13393 no font for the target.
13394 (Finternal_char_font): Adjust for the change of RFONT-DEF.
13396 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13398 * font.c (font_load_for_face): Handle the case that the font in
13399 face->lface is a string.
13401 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13403 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
13405 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13407 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
13408 Fix previous change. If the frame is not on a window system,
13411 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13413 * coding.c (decode_coding_object, encode_coding_object): Adjust
13414 marker positions after conversion.
13416 * lisp.h (struct Lisp_Marker): New member need_adjustment.
13418 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13420 * font.c (font_find_for_lface): Fix the handling of the return
13421 value of font_has_char.
13422 (Ffont_shape_text): Fix previous change.
13424 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
13425 (fontset_ref_and_range): Delete it.
13426 (fontset_find_font): Call char_table_ref_and_range instead of
13427 FONTSET_REF_AND_RANGE.
13428 (make_fontset): Don't setup font groups of Latin here.
13429 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
13430 (new_fontset_from_font): Make the specified font the default for
13431 all Latin characters.
13433 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13435 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
13436 is on a window system before accessing the fontset of the frame.
13438 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13440 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
13442 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
13443 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
13445 * font.c (Ffont_shape_text): If the font driver doesn't have a
13446 shaper function, make zero-width glyphs to have at least one-pixel
13447 width. Fix setting of `to' field of glyphs.
13449 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13451 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
13454 * font.h (struct font_driver): Improve docstring of member `shape'.
13456 2008-02-01 Kenichi Handa <handa@m17n.org>
13458 * composite.c (syms_of_composite): Fix docstring of
13459 auto-composition-function.
13461 * font.h (LGLYPH_SIZE): New macro.
13463 * font.c (Ffont_fill_gstring): Stop filling when a character not
13464 supported by the font is found.
13465 (Ffont_shape_text): When a shape callback function returns nil,
13466 try at most two more times with larger gstring.
13467 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
13469 * xdisp.c (handle_auto_composed_prop): Change the argument to
13470 auto-composition-function.
13472 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
13473 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
13474 Lispy glyph and store it in the lgstring.
13476 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
13478 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
13480 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13482 * font.c (Ffont_shape_text): Avoid unnecessary composition.
13484 * fontset.c (Vfont_encoding_charset_alist): New variable.
13485 (syms_of_fontset): DEFVAR it.
13486 (reorder_font_vector, fontset_find_font): Optimize for the case of
13487 no need of reordering.
13488 (face_for_char): Map the charset property by
13489 Vfont_encoding_charset_alist.
13491 2008-02-01 Jason Rumney <jasonr@gnu.org>
13493 * w32font.c (logfonts_match): Don't check adstyle here.
13494 (font_matches_spec): Check here against physical font instead.
13495 (add_font_entity_to_list): Avoid some substitutions.
13497 * font.c (font_parse_fcname): Default weight and slant to normal.
13498 (font_score): Prefer normal fonts if weight or slant unspecified.
13499 (font_score) [WINDOWSNT]: Scale weight difference down to closer
13500 match freetype scores.
13502 2008-02-01 Jason Rumney <jasonr@gnu.org>
13504 * w32font.c (w32font_text_extents): Don't use the frame stored in the
13505 font, as it may have been deleted.
13506 (w32_enumfont_pattern_entity): Map generic family to adstyle using
13507 most common hyphenless variation.
13508 (logfonts_match): Check generic family.
13509 (font_matches_spec): Don't check generic family here.
13510 (fill_in_logfont): Set generic family based on adstyle.
13512 * w32font.h (w32font_get_cache): Update declaration.
13514 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13516 * ftfont.c (ftfont_get_cache): Adjust the argument type.
13518 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
13519 If none of the new drivers are available, call font_update_drivers
13520 with the old drivers.
13522 * w32font.c (w32font_get_cache): Adjust the argument type.
13524 * xfont.c (xfont_get_cache): Adjust the argument type.
13526 * font.h (struct font_driver): Change argument type of get_cache.
13528 * xftfont.c (xftfont_start_for_frame): Delete prototype.
13530 * font.c (Ffont_get): Fix arguments to Fassoc.
13531 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
13532 (font_clear_cache): New function.
13533 (font_list_entities, font_matching_entity): Use font_get_cache.
13534 (font_update_drivers): Call font_clear_cache when finishing a driver.
13536 * fontset.c (fontset_find_font): Fix previous change.
13538 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13540 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
13541 dpyinfo->font_table.
13542 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
13543 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
13545 * font.c (font_at): Handle the case that the arg C is negative.
13546 Handle the unibyte case.
13547 (Ffont_at): Call font_at with the arg C -1.
13549 * xdisp.c (handle_auto_composed_prop): Don't get a character at
13550 the position here, and call font_at with the arg C -1.
13551 Don't check the range of the existing composition at the point.
13553 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13555 * fontset.c (fontset_add): New args charset_id and family.
13557 (load_font_get_repertory, fontset_find_font): Assume that
13558 font_spec is always a font-spec object.
13559 (Fset_fontset_font): Always store a font-spec object in a fontset.
13561 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
13562 instead of get_property_and_range.
13564 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13566 * xftfont.c (struct xftfont_info): Delete the member ft_face.
13567 (xftfont_open): Don't keep locking face.
13568 (xftfont_close): Don't unlock face.
13569 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
13571 * fontset.c (fontset_find_font): Don't prefer a font of
13572 supplementary charset.
13574 2008-02-01 Kenichi Handa <handa@m17n.org>
13576 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
13577 script, langsys_tag to langsys, new member script.
13578 (OTF_TAG_STR): Terminate by '\0'.
13579 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
13580 listing to the script specified in that property. Fix arg to
13581 OTF_check_features.
13583 2008-02-01 Jason Rumney <jasonr@gnu.org>
13585 * w32font.h: New file.
13587 * w32font.c: Include it.
13588 (struct w32font_info): Add owning_frame field. Move to w32font.h.
13589 (w32font_open): Set owning_frame.
13590 (w32font_text_extents): Use owning_frame.
13591 (struct font_callback_data): Add opentype_only field.
13592 (add_font_entity_to_list): Use it to filter fonts.
13593 Don't check against full name.
13594 (w32font_list_internal): New function.
13595 (w32font_list): Use it.
13596 (w32font_match_internal): New function.
13597 (w32font_match): Use it.
13598 (w32font_open_internal): New function.
13599 (w32font_open): Use it.
13600 (w32font_get_cache, w32font_close, w32font_has_char)
13601 (w32font_encode_char, w32font_text_extents, w32font_draw):
13604 * makefile.w32-in (w32font.o): Depend on w32font.h.
13606 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13608 * charset.c (Fdefine_charset_internal): Record a supplementary
13609 charset at the tail of Vcharset_order_list.
13611 * font.c (Ffont_shape_text): Fix the return value.
13613 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
13615 * xdisp.c (handle_auto_composed_prop): Fix previous change.
13617 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13619 * ftfont.c (struct OpenTypeSpec): New struct.
13620 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
13621 (ftfont_get_open_type_spec): New function.
13622 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
13624 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
13626 2008-02-01 Jason Rumney <jasonr@gnu.org>
13628 * w32font.c (add_font_entity_to_list): Compare only the beginning
13631 2008-02-01 Kenichi Handa <handa@m17n.org>
13633 * xdisp.c (handle_auto_composed_prop): Simplify the code.
13634 Never return HANDLED_RECOMPUTE_PROPS.
13636 2008-02-01 Kenichi Handa <handa@m17n.org>
13638 * font.c (font_gstring_produce): Delete it.
13640 * composite.h (COMPOSITION_METHOD):
13641 Handle COMPOSITION_WITH_GLYPH_STRING.
13643 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13645 * xfont.c (Qx): Delete.
13646 (syms_of_xfont): Don't initialize Qx.
13648 * composite.h (enum composition_method):
13649 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
13651 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13653 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
13654 (choose_face_font): Accept new form of font-spec.
13656 * frame.h (font_driver_list): Declare it unconditionally.
13657 (struct frame): Define members font_driver_list and font_data_list
13660 * fontset.c: Include "font.h" unconditionally.
13661 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
13662 (Fset_fontset_font): Accept a font-spec object.
13664 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
13665 PIXEL_SIZE part a wild card.
13667 * dispextern.h (struct glyph_string): Define members clip and
13668 num_clips unconditionally.
13669 (struct face): Define members font_info and extra unconditionally.
13671 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
13672 ftfont_info only when HAVE_LIBOTF is defined.
13674 2008-02-01 Andreas Schwab <schwab@suse.de>
13676 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
13679 2008-02-01 Jason Rumney <jasonr@gnu.org>
13681 * w32font.c (w32font_driver): Add new fields.
13683 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13685 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
13686 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
13687 (LIBES): Add @M17N_FLT_CFLAGS@.
13689 * composite.c (compose_text): Don't treat the new style
13690 composition specially.
13692 * emacs.c (main): Call syms_of_font unconditionally.
13694 * font.h (FONT_ENTITY_NOT_LOADABLE)
13695 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
13696 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
13697 (struct font_driver): New member shape.
13698 (font_registry_charsets): Extern it.
13699 (font_find_for_lface, font_prepare_composition): Adjust prototype.
13700 (font_otf_capability, font_drive_otf): Delete their externs.
13702 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
13703 (font_charset_alist, font_registry_charsets): Move from xfont.c
13705 (font_prop_validate_otf): New function.
13706 (font_property_table): Register it for QCotf.
13707 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
13708 (font_drive_otf): Delete.
13709 (font_prepare_composition): New arg F. Adjust for the change of
13711 (font_find_for_lface): New arg C.
13712 (font_load_for_face): Adjust for the change of font_find_for_lface.
13713 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
13715 (Ffont_shape_text): New function.
13716 (Fopen_font): If the font size is not given, use 12-pixel.
13717 (Ffont_at): New arg STRING.
13718 (syms_of_font): Initalize font_charset_alist.
13719 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
13722 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
13723 fonts of the same font-spec. Change the format of RFONT-DEF.
13724 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
13725 Adjust for the change of RFONT-DEF.
13726 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
13728 * ftfont.h: New file.
13730 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
13731 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13732 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13733 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
13734 font_otf_capability and font_drive_otf, set ftfont_shape.
13735 (ftfont_list): Adjust for the change of :otf property value.
13736 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
13737 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
13738 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
13739 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13740 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
13741 (otf_gstring, gstring, m17n_flt_initialized): New variables.
13743 * w32term.c (x_draw_composite_glyph_string_foreground):
13744 Adjust for the change of lispy gstring.
13746 * xdisp.c (handle_composition_prop): Adjust for the change of
13747 lispy gstring. Call a function for auto-composition with the
13748 third arg it->window.
13749 (fill_composite_glyph_string): Adjust for the change of lispy string.
13750 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
13752 * xfaces.c (set_font_frame_param): Adjust for the change of
13753 font_find_for_lface.
13755 * xfont.c (x_font_charset_alist): Move to font.c and rename.
13756 (xfont_registry_charsets): Likewise. Change caller.
13757 (syms_of_xfont): Don't handle x_font_charset_alist.
13759 * xftfont.c: Include "ftfont.h".
13760 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13761 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13762 (xftfont_close) [HAVE_LIBOTF]: Close otf.
13763 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13764 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
13765 Set xftfont_driver.shape to xftfont_shape.
13767 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13768 the change of lispy gstring.
13770 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13772 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
13774 2008-02-01 Jason Rumney <jasonr@gnu.org>
13776 * w32font.c (w32font_draw): Fill background manually.
13778 2008-02-01 Jason Rumney <jasonr@gnu.org>
13780 * font.c (Qfontp): Remove unused symbol.
13781 (QCantialias): New symbol.
13782 (syms_of_font): Define it.
13783 (font_property_table): Set a validator for QCantialias.
13785 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
13786 Define if not already.
13787 (QCfamily): Share with xfaces.c.
13788 (Qstandard, Qsubpixel, Qnatural): New symbols.
13789 (syms_of_w32font): Define them. Don't define QCfamily here.
13790 (w32_antialias_type, lispy_antialias_type): New functions.
13791 (w32_enumfont_pattern_entity): New arg requested_font.
13792 Set antialias parameter if non-default was requested.
13793 (fill_in_logfont): Fill in lfQuality if :antialias specified.
13795 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13797 * lread.c (read1): Undo the previous change.
13799 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
13801 * frame.c (Fdelete_frame): Call font_update_drivers only when
13802 USE_FONT_BACKEND is defined.
13804 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13806 * font.h (struct font_bitmap): New member bits_per_pixel.
13807 (struct font_driver): New members start_for_frame and end_for_frame.
13808 (struct font_data_list): New struct.
13809 (font_put_frame_data, font_get_frame_data): Extern them.
13811 * frame.h (struct frame): New member font_data_list.
13813 * font.c (font_update_drivers): Call driver->start_for_frame and
13814 driver->end_for_frame at proper timings.
13815 (font_put_frame_data, font_get_frame_data): New functions.
13816 (Ffont_spec): Add usage in the docstring.
13818 * frame.c (make_frame): Initialize f->font_data_list to NULL.
13819 (Fdelete_frame): Call font_update_drivers.
13821 * xftfont.c (struct xftface_info): Delete the member xft_draw.
13822 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
13823 (xftfont_get_xft_draw): New function.
13824 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
13825 (xftfont_end_for_frame): New function.
13826 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
13828 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
13829 Change argument. Cache GCs in the per-frame data.
13830 (struct ftxfont_frame_data): New struct.
13831 (ftxfont_draw_bitmap): New arg gc_fore and flush.
13832 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
13833 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
13834 (ftxfont_end_for_frame): New function.
13835 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
13837 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
13839 2008-02-01 Kenichi Handa <handa@m17n.org>
13841 * xselect.c (Vselection_coding_system)
13842 (Vnext_selection_coding_system): Delete them.
13843 (syms_of_xselect): Don't declare selection-coding-system and
13844 next-selection-coding-system. They are declared in select.el.
13846 2008-02-01 Jason Rumney <jasonr@gnu.org>
13848 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
13850 * w32fns.c: Include imm.h.
13851 (get_composition_string_fn, get_ime_context_fn): New optional
13853 (globals_of_w32fns): Load them from imm32.dll.
13854 (ignore_ime_char): New flag.
13855 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
13856 WM_IME_ENDCOMPOSITION messages.
13858 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
13859 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
13861 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13863 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
13864 (READCHAR_REPORT_MULTIBYTE): New macro.
13865 (readchar): New 2nd arg MULTIBYTE.
13866 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
13867 Make symbol's name multibyte according to the multibyteness of the
13870 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13872 * xfaces.c (face_for_overlay_string): Call lookup_face with
13873 correct arguments (fix of synching with the trunk).
13875 2008-02-01 Kenichi Handa <handa@m17n.org>
13877 * font.c (font_prop_validate_symbol, font_prop_validate_style)
13878 (font_prop_validate_non_neg, font_prop_validate_spacing):
13879 Delete argument prop_index.
13880 (font_property_table): Change arguments to validater. Change Callers.
13881 (font_lispy_object): Delete.
13882 (font_at): Use font_find_object instead fo font_lispy_object.
13884 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13886 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
13889 2008-02-01 Jason Rumney <jasonr@gnu.org>
13891 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
13892 (font_matches_spec): Remove debug output.
13893 (add_font_entity_to_list): Avoid using substituted fonts.
13895 2008-02-01 Jason Rumney <jasonr@gnu.org>
13897 * doc.c (Fsnarf_documentation):
13898 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
13900 2008-02-01 Miles Bader <miles@gnu.org>
13902 * dispextern.h (struct glyph_row): Only define "clip" field if
13903 HAVE_WINDOW_SYSTEM is defined.
13905 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
13907 Fix up multi-tty merge.
13909 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
13912 * xfaces.c (free_realized_face, clear_face_gcs):
13913 Include font_done_for_face in the input_blocked section, just in case.
13915 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
13916 (get_char_face_and_encoding): Undo last change and remove the *other*
13917 duplicate definition (i.e. keep the one that's better scoped and that
13918 includes code for the font-backend).
13920 * terminal.c (create_terminal): Default keyboard_coding to
13921 `no-conversion' and terminal_coding to `undecided'.
13923 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
13925 * fontset.c (free_realized_fontsets): Check that the table entry does
13926 contain a fontset before trying to compare it to `base'.
13928 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
13929 syms_of_charset, and syms_of_coding earlier because init_window_once
13930 now needs Vcoding_system_hash_table to be setup.
13932 * coding.h (default_buffer_file_coding): Remove.
13934 * coding.c (default_buffer_file_coding): Remove.
13935 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
13936 than ->symbol, and use the terminal-local coding system.
13937 (syms_of_coding): Don't setup the coding-systems that are not
13939 (Fdefine_coding_system_internal): Use XCAR/XCDR.
13941 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
13942 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
13944 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
13945 in chartab.c and were re-added here by mistake.
13946 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
13948 * doc.c (Fsnarf_documentation):
13949 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
13952 * ChangeLog.10: Add mistakenly removed entry.
13954 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
13956 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
13958 2008-02-01 Miles Bader <miles@gnu.org>
13960 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
13961 Add extra args to FACE_FOR_CHAR.
13963 2008-02-01 Kenichi Handa <handa@m17n.org>
13965 * keymap.c (where_is_internal_1): If key is a cons, store the copy
13968 * chartab.c (map_sub_char_table, map_char_table): If the range
13969 contains just one character, call the function with that character
13970 even if the depth is not 3.
13972 2008-02-01 Jason Rumney <jasonr@gnu.org>
13974 * w32font.c (w32font_text_extents): Calculate metrics for the
13977 2008-02-01 Jason Rumney <jasonr@gnu.org>
13979 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
13981 2008-02-01 Jason Rumney <jasonr@gnu.org>
13983 * w32term.c (x_set_glyph_string_clipping): Use
13984 get_glyph_string_clip_rects.
13985 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
13986 Adjust for the change of struct glyph_string.
13988 * w32font.c (w32font_draw): Do clipping here.
13990 2008-02-01 Kenichi Handa <handa@m17n.org>
13992 * xftfont.c (xftfont_draw): Adjust for the change of struct
13995 * xterm.c (x_set_glyph_string_clipping): Use
13996 get_glyph_string_clip_rects.
13997 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
13998 Adjust for the change of struct glyph_string.
14000 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
14001 the resulting clip(s}.
14002 (expose_overlaps): Add arg r. Change callers. Set it to
14003 row->clip temporarily.
14004 (expose_window): Redraw rows overlapping the exposed area.
14006 * dispextern.h (struct glyph_row): New member clip.
14007 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
14008 clip_height, new member clip, and num_clips.
14010 2008-02-01 Kenichi Handa <handa@m17n.org>
14012 * data.c (Fchar_or_string_p): Fix docstring.
14014 2008-02-01 Kenichi Handa <handa@m17n.org>
14016 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
14017 create a temporary XftDraw object.
14019 2008-02-01 Kenichi Handa <handa@m17n.org>
14021 * font.c (Ffontp): Fix docstring.
14023 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
14024 strong evidence of ISO-2022.
14026 2008-02-01 Kenichi Handa <handa@m17n.org>
14028 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
14029 SYNTAX_ENTRY_FOLLOW_PARENT.
14031 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14033 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
14035 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
14036 Update to the new type of weak_hash_tables and next_weak.
14038 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
14039 a plain C pointer to Lisp_Hash_Table.
14041 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
14042 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
14043 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
14044 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
14045 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
14046 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
14047 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
14048 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
14049 (GC_EQ): Remove since they've been identical to their non-GC_
14050 alter-egos ever since the markbit was eradicated.
14069 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
14071 2008-02-01 Kenichi Handa <handa@m17n.org>
14073 * chartab.c (map_sub_char_table): Make it work for the top-level
14074 char-table. Fix handling of parent char-table.
14075 (map_char_table): Adjust for the above change.
14077 2008-02-01 Jason Rumney <jasonr@gnu.org>
14079 * w32font.c (Qgdi): Rename from Qw32.
14081 2008-02-01 Jason Rumney <jasonr@gnu.org>
14083 * w32bdf.c (get_quoted_string): Make function static.
14085 2008-02-01 Kenichi Handa <handa@m17n.org>
14087 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
14088 bigger ascent and descent than those of the font, use them as
14089 font's ascent and descent.
14091 2008-02-01 Kenichi Handa <handa@m17n.org>
14093 * Makefile.in (${lispsource}international/charprop.el): Move this
14094 target within "#ifdef HAVE_UNIDATA" and "#endif".
14096 2008-02-01 Kenichi Handa <handa@m17n.org>
14098 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
14099 (shortlisp): Add ../lisp/language/tai-viet.el.
14101 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
14103 * Makefile.in (${lispsource}international/charprop.el): Depend on
14106 2008-02-01 Jason Rumney <jasonr@gnu.org>
14108 * w32font.c (w32font_close): Delete the GDI font object.
14110 * w32menu.c: Include character.h.
14112 * w32proc.c: Likewise.
14114 * w32select.c: Likewise.
14116 * makefile.w32-in (w32proc.o): Depend on character.h.
14118 2008-02-01 Jason Rumney <jasonr@gnu.org>
14120 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
14122 * w32menu.c (syms_of_w32menu): Likewise.
14124 * w32proc.c (syms_of_ntproc): Likewise.
14126 * w32select.c (syms_of_w32select): Likewise.
14128 * w32term.c (syms_of_w32term): Likewise.
14130 2008-02-01 Jason Rumney <jasonr@gnu.org>
14132 * w32font.c (w32font_draw): Delete brush after using it.
14134 2008-02-01 Jason Rumney <jasonr@gnu.org>
14136 * w32font.c (w32font_open): Don't set font_idx.
14137 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
14139 (w32font_draw): Fill background explicitly.
14141 2008-02-01 Jason Rumney <jasonr@gnu.org>
14143 * w32term.c (w32_initialize): Don't call w32font_initialize.
14145 * w32font.c (w32font_info): Remove subranges.
14146 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
14147 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
14148 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
14149 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
14150 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
14151 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
14152 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
14153 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
14154 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
14155 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
14157 (font_callback_data): New struct.
14158 (w32font_list, w32font_match): Use it.
14159 (w32font_open): Don't populate subranges.
14160 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
14161 (w32font_encode_char): Always return unicode code-point as-is.
14162 (w32font_text_extents): Supply a transformation matrix to
14163 GetGlyphOutline. Never look up by glyph index. Avoid looping
14164 twice. Use unicode version of GetTexExtentPoint32 instead of
14165 glyph index version.
14166 (set_fonts_frame): Remove.
14167 (w32_enumfont_pattern_entity): Add frame parameter, use it to
14168 set frame parameter. Use backward compatible fake foundries.
14169 Save generic family in extra slot under QCfamily. Make width slot
14170 constant. Save QCspacing value. Save list of scripts instead of
14172 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
14173 (add_font_entity_to_list): Use font_callback_data struct. Filter
14175 (add_one_font_entity_to_list): Use font_callback_data struct.
14176 (w32_registry): Default to iso10646_1.
14177 (fill_in_logfont): Use dpi from extra slot. Don't bother with
14178 string font registries. Don't fill in font name if it is a generic
14179 family name, fill family instead. Use spacing, family and script
14180 extra info to fill pitch, family and charset fields.
14181 (list_all_matching_fonts): Use font_callback_data struct.
14182 (unicode_range_for_char): Remove.
14183 (font_supported_scripts): New function.
14184 (w32font_initialize): Remove.
14185 (syms_of_w32font): Update which symbols are defined.
14187 2008-02-01 Jason Rumney <jasonr@gnu.org>
14189 * font.c (font_pixel_size): Reverse assq_no_quit args.
14191 * w32term.h (FONT_WIDTH): Report max width, not average.
14192 (FONT_MAX_WIDTH): Remove.
14193 (FONT_AVG_WIDTH): New macro.
14195 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
14196 redefinition of FONT_WIDTH.
14198 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
14199 (w32_cache_char_metrics): Use FONT_WIDTH.
14201 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
14203 2008-02-01 Jason Rumney <jasonr@gnu.org>
14205 * w32font.c (w32font_open): Make lfHeight negative.
14207 * w32fns.c (x_default_font_parameter): Use new style font name.
14208 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
14210 2008-02-01 Jason Rumney <jasonr@gnu.org>
14212 * w32font.c (QCsubranges): New symbol.
14213 (w32font_open, w32font_has_char): Get subranges from subproperty
14215 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
14216 (syms_of_w32font): Define :subranges symbol.
14218 * font.c (font_put_extra): Expose externally.
14220 * font.h (font_put_extra): Move declaration from font.c.
14222 * font.c (Ffont_get): Use font driver to determine otf capability.
14223 (adjust_anchor): Check if driver defines anchor_point before using.
14225 * w32font.c (w32font_open): Handle size, height and pixel_size better.
14226 (w32font_draw): Use options.
14227 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
14228 Fix detection of truetype fonts.
14229 (registry_to_w32_charset): Handle charsets other than iso8859-1
14230 expressed as lisp symbols.
14231 (w32_registry): Express charset as lisp symbol.
14232 (fill_in_logfont): Reverse pixel and point height logic.
14233 Don't set width here. Set quality to default.
14235 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
14236 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
14238 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14239 Remove redundant loop and allocation.
14241 * makefile.w32-in (font.o, w32font.o): New objects.
14242 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
14243 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
14245 * xdisp.c (fill_composite_glyph_string): Make the first arg to
14246 STORE_XCHARB a valid l-value.
14248 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
14249 calculations for non-Truetype fonts.
14250 (x_draw_glyph_string): Sync with xterm.c.
14251 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14252 Remove redundant code.
14253 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
14255 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
14256 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
14258 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
14259 (x_to_w32_charset, w32_to_x_charset): Expose externally.
14261 * w32font.c: New file for w32 font backend.
14263 2008-02-01 Kenichi Handa <handa@m17n.org>
14265 * term.c: Don't include "buffer.h" twice.
14267 2008-02-01 Kenichi Handa <handa@m17n.org>
14269 * character.c (Funibyte_string): New function.
14270 (syms_of_character): Defsubr it.
14272 2008-02-01 Jason Rumney <jasonr@gnu.org>
14274 * w32term.c [USE_FONT_BACKEND]:
14275 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
14276 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
14277 (x_draw_glyph_string, x_draw_glyph_string_foreground)
14278 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
14279 (x_free_frame_resources): Sync with xterm.c.
14281 2008-02-01 Andreas Schwab <schwab@suse.de>
14283 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
14286 2008-02-01 Kenichi Handa <handa@m17n.org>
14288 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
14290 2008-02-01 Kenichi Handa <handa@m17n.org>
14292 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
14293 font_otf_gpos, add font_drive_otf.
14295 * fontset.c (fontset_find_font): Pay attention to font size
14296 specified for a font.
14297 (reorder_font_vector): Check contents of font_def.
14299 * font.c (struct otf_list): Delete it.
14300 (otf_list): Make it a lisp variable.
14301 (otf_open): Use lispy otf_list.
14302 (generate_otf_features): Rename from parse_gsub_gpos_spec.
14303 (check_otf_features): New function.
14304 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14306 (font_drive_otf): New function merging font_otf_gsub and
14308 (font_open_for_lface): New arg spec. Change argument order.
14309 (font_load_for_face): Adjust for the change of font_open_for_lface.
14310 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
14312 (syms_of_font): Staticpro otf_list. Delete defsubr of
14313 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
14315 * xfaces.c (set_font_frame_param): Adjust for the change of
14316 font_open_for_lface.
14318 * font.h (font_open_for_lface): Adjust prototype.
14319 (struct font_driver): Delete members otf_gsub and otf_gpos, add
14321 (font_otf_gsub, font_otf_gpos): Delete externs.
14322 (font_drive_otf): Extern it.
14324 2008-02-01 Kenichi Handa <handa@m17n.org>
14326 * font.c (font_at): If the window W is not on a window system,
14329 * coding.c (produce_chars, encode_coding): Don't call
14330 insert_from_gap if no characters to produce.
14332 2008-02-01 Kenichi Handa <handa@m17n.org>
14334 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
14337 * xfaces.c (face_for_font): Check also face->font==font->font.font.
14339 2008-02-01 Miles Bader <miles@gnu.org>
14341 * emacs.c (main): Change default value of `enable_font_backend' to 1.
14342 Parse "--disable-font-backend" option.
14343 (standard_args): Add "--disable-font-backend" option.
14345 2008-02-01 Kenichi Handa <handa@m17n.org>
14347 * fontset.c (fontset_find_font): New function.
14348 (fontset_font): Use fontset_find_font.
14349 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
14350 Register the specified font for all Latin characters.
14351 (new_fontset_from_font): Register the specified font for all Latin
14353 (dump_fontset): For a realized fontset, include the base fontset
14354 name in the returned vector.
14356 2008-02-01 Kenichi Handa <handa@m17n.org>
14358 * character.h (CHAR_STRING): Cast C to unsigned on calling
14361 * character.c (char_string): Type of arg C changed to unsigned.
14362 Signal an error if C is an invalid character code.
14364 * editfns.c (general_insert_function, Fchar_to_string):
14365 Use CHARACTERP, not INTEGERP.
14367 2008-02-01 Kenichi Handa <handa@m17n.org>
14369 * character.h (MIN_MULTIBYTE_LEADING_CODE)
14370 (MAX_MULTIBYTE_LEADING_CODE): New macros.
14372 * regex.c (analyse_first): Fix for multibyte characters in "case
14373 charset:" and "case categoryspec:".
14375 2008-02-01 Andreas Schwab <schwab@suse.de>
14377 * Makefile.in (LIBES): Move standard libraries to the end.
14379 2008-02-01 Kenichi Handa <handa@m17n.org>
14381 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
14382 nonzero, don't shrink the buffer nextb.
14384 * buffer.h (struct buffer_text): New member inhibit_shrinking.
14386 * coding.c (coding_alloc_by_making_gap): New arg offset.
14387 (alloc_destination): Call coding_alloc_by_making_gap with the arg
14389 (decode_coding_iso_2022): Update coding->safe_charsets.
14390 (decode_coding_gap): Temporarily set
14391 current_buffer->text->inhibit_shrinking to 1.
14393 2008-02-01 Kenichi Handa <handa@m17n.org>
14395 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
14396 indexing into elements of s->cmp and s->char2b.
14398 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
14400 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
14402 2008-02-01 Kenichi Handa <handa@m17n.org>
14404 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
14405 target_multibyte instead of multibyte.
14406 (re_match_2_internal): Call bcmp_translate with target_multibyte.
14407 (bcmp_translate): Change the argument name from multibyte to
14410 2008-02-01 Kenichi Handa <handa@m17n.org>
14412 These changes are to compile a regexp into a pattern that can be
14413 used both for multibyte and unibyte targets.
14415 * Makefile.in (search.o): Depend on charset.h.
14417 * character.c (multibyte_char_to_unibyte_safe): New function.
14419 * search.c: Include "charset.h".
14420 (compile_pattern_1): Delete argument multibyte. Don't set
14421 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
14422 (compile_pattern): Don't compare cp->buf.target_multibyte.
14423 Compare cp->buf.charset_unibyte.
14424 (compile_pattern): Set cp->buf.target_multibyte.
14426 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
14428 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
14430 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
14431 multibyte. Change callers.
14432 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
14433 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
14434 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
14435 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
14436 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
14437 (regex_compile): Make the compiled pattern usable both for
14438 multibyte and unibyte targets.
14439 (analyse_first): Make the fastmap usable both for multibyte and
14441 (TRANSLATE_VIA_MULTIBYTE): Delete.
14442 (re_match_2_internal): Pay attention to the case that the
14443 multibyteness of bufp and target may be different.
14445 2008-02-01 Kenichi Handa <handa@m17n.org>
14447 * xdisp.c (x_produce_glyphs): When a font is not found, make the
14448 empty box occupy at least one column width.
14450 2008-02-01 Miles Bader <miles@gnu.org>
14452 * Makefile.in: Remove redundant HAVE_XFT clause.
14454 2008-02-01 Kenichi Handa <handa@m17n.org>
14456 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
14458 2008-02-01 Kenichi Handa <handa@m17n.org>
14460 * fontset.c (Finternal_char_font): Fix for the case of POSITION
14463 2008-02-01 Kenichi Handa <handa@m17n.org>
14465 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
14467 2008-02-01 Kenichi Handa <handa@m17n.org>
14469 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
14471 2008-02-01 Kenichi Handa <handa@m17n.org>
14473 * search.c (simple_search): Fix previous change.
14475 2008-02-01 Kenichi Handa <handa@m17n.org>
14477 * xftfont.c (ftfont_font_format): Extern declaration.
14479 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
14481 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
14482 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
14484 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
14485 (ftfont_font_format): Fix previous change.
14487 * font.h (Ffont_xlfd_name): EXFUN it.
14489 * font.c (font_parse_xlfd): Fix the array size of `f'.
14490 (register_font_driver): Use EQ to compare driver->type.
14492 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
14493 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
14494 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
14496 2008-02-01 Kenichi Handa <handa@m17n.org>
14498 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
14499 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
14501 2008-02-01 Kenichi Handa <handa@m17n.org>
14503 * xfont.c (xfont_open): Set font->format.
14505 * xftfont.c (xftfont_open): Set font->format.
14507 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
14508 (ftfont_list): Include FC_FONTFORMAT in FcObject.
14509 (ftfont_open): Set font->format.
14510 (ftfont_font_format): New function.
14512 * font.h (struct font): New member format.
14514 * font.c (Qopentype): New variable.
14515 (syms_of_font): Defsym it.
14516 (Fquery_font): Change the format of the last element of the return
14519 2008-02-01 Kenichi Handa <handa@m17n.org>
14521 * xfns.c (xic_create_xfontset): Try the default fontset name as a
14524 2008-02-01 Kenichi Handa <handa@m17n.org>
14526 * coding.c (detect_coding_charset): Fix detection of multi-byte
14529 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
14531 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
14533 2008-02-01 Kenichi Handa <handa@m17n.org>
14535 * xdisp.c (get_next_display_element): Set it->face_id for the
14536 first component of a composition.
14537 (x_produce_glyphs): Check if the font is changed or not for composition.
14539 2008-02-01 Kenichi Handa <handa@m17n.org>
14541 * fontset.c (Qlatin): New variable.
14542 (syms_of_fontset): Define it as a lisp symbol.
14543 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
14545 2008-02-01 Kenichi Handa <handa@m17n.org>
14547 * font.c (font_unparse_fcname): Pay attention to the case that
14548 some of font property is a null string.
14550 2008-02-01 Kenichi Handa <handa@m17n.org>
14552 * term.c: Include "composite.h".
14553 (encode_terminal_code): Output all components of composition.
14554 Check the size of encode_terminal_src.
14555 (produce_glyphs): For composition, call produce_composite_glyph.
14556 (append_composite_glyph, produce_composite_glyph): New functions.
14558 * xdisp.c (x_produce_glyphs): In handling composition, if a font
14559 is not found, get font_info from the current ascii face.
14561 2008-02-01 Kenichi Handa <handa@m17n.org>
14563 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
14564 buffer-file-name to Qnil before calling insert_from_buffer.
14566 * font.c (font_unparse_fcname): Pay attention to the case that
14567 foundry is a null string.
14569 2008-02-01 Kenichi Handa <handa@m17n.org>
14571 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
14573 * font.c (Qunicode_sip): New variable.
14574 (syms_of_font): Declare it as a Lisp symbol.
14576 * font.h (Qunicode_sip): Extern it.
14578 2008-02-01 Kenichi Handa <handa@m17n.org>
14580 * composite.c (get_composition_id): Pay attention to TAB component.
14582 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
14583 TAB. Adjust for the change of s->char2b which always points to
14584 the first element of allocated memory.
14586 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
14588 * xdisp.c (handle_composition_prop): Set it->c to the first
14590 (fill_composite_glyph_string): Change argument.
14591 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
14592 (x_produce_glyphs): Fix handling of left/right padding.
14594 2008-02-01 Kenichi Handa <handa@m17n.org>
14596 * coding.c (detect_coding_system): Fix for handling off
14597 inhibit_iso_escape_detection. Fix for the case that no coding
14598 system is defined for a specific coding category.
14600 2008-02-01 Kenichi Handa <handa@m17n.org>
14602 * font.c (font_matching_entity): Delete unused local var.
14604 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
14607 * fileio.c (Finsert_file_contents): On recovering a file, assume
14609 (choose_write_coding_system): On auto-saving a file, force
14612 * coding.c (setup_coding_system): Fix setting of
14613 coding->common_flags based on eol_type.
14614 (coding_inherit_eol_type): If PARENT is not nil, be sure to
14617 2008-02-01 Kenichi Handa <handa@m17n.org>
14619 * alloc.c (NSTATICS): Increas to 0x600.
14621 2008-02-01 Kenichi Handa <handa@m17n.org>
14623 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
14624 (ftfont_list): Don't check :name property.
14625 (ftfont_match): New function.
14626 (ftfont_pattern_entity): If the pattern doesn't contain
14627 FC_SPACING, don't assume FC_MONO.
14629 * font.h (struct font_driver): New member `match'.
14630 (font_update_drivers): Adjust prototype.
14632 * font.c (font_parse_fcname, font_parse_name): Don't change :name
14634 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
14635 them unconditionally.
14636 (font_matching_entity): New function.
14637 (font_open_by_name): Try font_matching_entity if exact match is
14639 (font_update_drivers): Delete the arg FONT. Return a list of
14640 actually used backends. Don't free faces, font caches here.
14641 Don't store data in frame parameters. Don't call x_set_font.
14642 (Ffont_spec): Store :name property as is.
14643 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
14644 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
14645 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
14646 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
14647 Call font->driver->otf_gsub instead of font_otf_gsub.
14649 * frame.c (x_set_font_backend): Do more works that were done in
14650 font_update_drivers before.
14652 * xfont.c (xfont_match): New function.
14653 (xfont_driver): Set xfont_driver.match to xfont_match.
14654 (xfont_draw): Set font in GC if necessary.
14656 * ftxfont.c (ftxfont_match): New function.
14657 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
14659 * xftfont.c (xftfont_match): New function.
14660 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
14662 2008-02-01 Kenichi Handa <handa@m17n.org>
14664 * font.h (struct font): New member scalable.
14665 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
14666 (font_otf_gsub): Adjust prototype.
14668 * font.c (font_otf_capability): Fix handling of the default langsys.
14669 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
14670 Check the contents of SPEC.
14671 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
14672 (check_gstring): New function.
14673 (REPLACEMENT_CHARACTER): New macro.
14674 (font_otf_gsub): New arg alternate_subst. Be sure to set all
14675 glyph codes of GSTRING.
14676 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
14677 (font_prepare_composition): Set cmp->glyph_len.
14678 (font_open_entity): Set font->scalable.
14679 (Ffont_get): Handle :otf property.
14680 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
14682 (Fquery_font): Use font->font.full_name.
14683 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
14684 Sfont_otf_alternates.
14686 * ftfont.c (ftfont_open): Set font->font.full_name and
14687 font->font.name properly. Fix calculation of font->font.height
14688 and font->min_width.
14690 * ftxfont.c (ftxfont_create_gcs): New function.
14691 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
14692 (ftxfont_draw_backgrond): Fix filling region.
14693 (ftxfont_default_fid): New function.
14694 (ftxfont_open): Set xfont->fid to the return value of
14695 ftxfont_default_fid.
14696 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
14697 (ftxfont_done_face): Free only GCs that are created by
14698 ftxfont_create_gcs.
14699 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
14701 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
14702 Clip to src->width, etc (not src->clip_XXX).
14704 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
14705 FontBackend frame parameter.
14707 2008-02-01 Kenichi Handa <handa@m17n.org>
14709 * font.h (struct font_driver_list): New member `on'.
14710 (Fclear_font_cache): EXFUN it.
14711 (font_update_drivers): Extern it.
14713 * font.c (font_unparse_fcname): Fix typo (swidth->width).
14714 (font_list_entities): Check driver_list->on.
14715 (register_font_driver): Initalize `on' member to 0.
14716 (font_update_drivers): New function.
14717 (Fclear_font_cache): Check driver_list->on.
14719 * frame.h (Qfont_backend): Extern it.
14720 (x_set_font_backend): Extern it.
14722 * frame.c (Qfont_backend): New variable.
14723 (frame_parms): New element for font-backend.
14724 (x_set_font_backend): New function.
14726 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
14727 FontBackend frame parameter.
14728 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
14729 x_set_font_backend.
14731 * xfont.c (xfont_list): Don't try listing by :name property if the
14732 name is not for XLFD.
14734 2008-02-01 Kenichi Handa <handa@m17n.org>
14736 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
14737 (LGLYPH_SET_TO): New macros.
14738 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
14739 element of G is vector or not.
14740 (font_at): Extern it.
14742 * font.c: Include window.h.
14743 (font_lispy_object): New function.
14744 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
14745 end of valid glyph.
14746 (font_close_object): Fix getting (struct font *).
14747 (font_at): New function.
14748 (Ffont_get): If FONT is a font-object, get entity from it.
14749 (Ffont_make_gstring): Initialize elements of glyphs with nil.
14750 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
14752 (Ffont_at): New function.
14753 (syms_of_font): Defsubr Sfont_at.
14755 * xdisp.c (it_props): Move the entry for Qauto_composed to just
14756 before the entry for Qcomposition.
14757 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
14758 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
14759 the font in gstring.
14760 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
14761 LGLYPH_FORM (g) to detect the end of valid glyph.
14762 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
14763 we are composing with gstring.
14765 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
14766 Check if adjustment is vector or not.
14768 * Makefile.in (font.o): Make it depends on window.h.
14770 2008-02-01 Kenichi Handa <handa@m17n.org>
14772 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
14773 adjustment is vector or not.
14775 2008-02-01 Miles Bader <miles@gnu.org>
14777 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
14779 2008-02-01 Kenichi Handa <handa@m17n.org>
14781 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
14782 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
14783 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
14785 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
14786 (DEVICE_DELTA): Fix typo.
14787 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
14790 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14791 the change of LGLYPH format.
14793 2008-02-01 Kenichi Handa <handa@m17n.org>
14795 * ftfont.c (ftfont_list): Fix typo.
14796 (ftfont_build_basic_charsets): Don't include letters with diacritics.
14798 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14800 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
14802 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
14803 xftface_info is non-NULL.
14805 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14807 * ftfont.c (ftfont_list): Move misplaced #endif.
14809 2008-02-01 Kenichi Handa <handa@m17n.org>
14811 * ftfont.c (ftfont_list): Pay attention to the case that
14812 FC_CAPABILITY is not defined.
14814 2008-02-01 Kenichi Handa <handa@m17n.org>
14816 * xftfont.c (xftfont_open): Set charset related members to -1.
14818 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
14820 (ftfont_open): Set charset related members to -1.
14822 * fontset.c (Votf_script_alist): New variable.
14823 (syms_of_fontset): Initialize it.
14824 (fontset_font): Delete unused variable.
14826 * fontset.h (Votf_script_alist): Extern it.
14828 * font.c (font_find_for_lface): Optimize code.
14830 * font.h (font_close_object, font_merge_old_spec): Extern them.
14832 2008-02-01 Kenichi Handa <handa@m17n.org>
14834 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
14835 (syms_of_font): Initialize them.
14836 (font_pixel_size): Allow float value in dpi.
14837 (font_prop_validate_type): Delete.
14838 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
14840 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
14841 (font_prop_validate_extra): Delete.
14842 (font_prop_validate_spacing): New function.
14843 (font_property_table): Add elements for all known properties.
14844 (get_font_prop_index): Rename from check_font_prop_name. New
14845 argument FROM. Change caller.
14846 (font_prop_validate): Validate all known properties.
14847 (font_put_extra): Delete argument force. Change caller.
14848 (font_expand_wildcards): Make it static. Fix the way of shrinking
14849 the possible range.
14850 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
14851 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
14853 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
14854 (font_parse_fcname): Delete argument merge. Fix parsing of point
14855 size. Don't validate properties values here. Change caller.
14856 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
14857 (font_open_by_name): Delete unused variable.
14858 (Ffont_spec): Likewise. Validate property values.
14859 (Ffont_match_p): New function.
14861 * font.h (QCscalable): Extern it.
14862 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
14864 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
14866 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
14867 (xfont_list_pattern): New function.
14868 (xfont_list): Use xfont_list_pattern.
14870 2008-02-01 Kenichi Handa <handa@m17n.org>
14872 * font.h (Flist_fonts): EXFUN it.
14874 2008-02-01 Jason Rumney <jasonr@gnu.org>
14876 * w32term.c (w32_initialize): Add back smoothing_type and
14877 smoothing_enabled definitions.
14879 2008-02-01 Kenichi Handa <handa@m17n.org>
14881 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
14882 s->face->font on determining underline position.
14884 2008-02-01 Kenichi Handa <handa@m17n.org>
14886 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
14887 (font_has_char): Accept font-object too.
14888 (font_find_for_lface): Try at first with a size specified in face.
14890 2008-02-01 Kenichi Handa <handa@m17n.org>
14892 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
14895 2008-02-01 Kenichi Handa <handa@m17n.org>
14897 * font.h (QCspacing, QCdpi): Extern them.
14898 (enum font_spacing): New enum.
14899 (FONT_PIXEL_SIZE_QUANTUM): New macro.
14901 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
14902 (QCspacing, QCdpi): New variables.
14903 (syms_of_font): Initialize them.
14904 (font_pixel_size): New function.
14905 (font_put_extra): New function.
14906 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
14908 (font_parse_fcname): Handle enumerated values (e.g. bold).
14909 Fix handling font size. Add QCname property that contains only
14910 unknown properties.
14911 (font_score): Change argument. Change caller. Pay attention to
14912 FONT_PIXEL_SIZE_QUANTUM.
14913 (font_sort_entites, font_list_entities, font_find_for_lface)
14914 (font_open_for_lface, font_open_by_name): Fix handling of font size.
14915 (Ffont_spec): Add QCname property that contains only unknown properties.
14917 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
14918 include weight in listing pattern, instead check weight of each
14919 listed font. Don't include scalable in pattern. Pay attention to
14920 FONT_PIXEL_SIZE_QUANTUM.
14922 2008-02-01 Kenichi Handa <handa@m17n.org>
14924 * font.c (font_parse_fcname): Fix parsing of point-size.
14925 (font_unparse_fcname): Produce symbolic names for style properties.
14926 (font_list_entities): Handle float size correctly.
14927 (font_open_by_name): Prefer `normal' property values if the name
14928 doesn't specify them.
14930 * fontset.c (Finternal_char_font): Use font_get_name, not
14933 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
14934 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
14935 pattern. Don't force scalable.
14937 * xftfont.c (xftfont_open): For generating a name, start from
14940 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14942 * frame.h (x_new_fontset2): Fix prototype.
14944 2008-02-01 Kenichi Handa <handa@m17n.org>
14946 * font.h (struct font_driver): Delete member parse_name.
14947 (font_match_p, font_get_spec, font_parse_fcname)
14948 (font_unparse_fcname): Extern them.
14949 (font_get_name): Adjust prototype.
14951 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
14952 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
14953 (font_expand_wildcards): Fix handling ENCODING field. Avoid
14954 unnecessary checks for weight, slant, and swidth.
14955 (font_parse_fcname): New function.
14956 (font_unparse_fcname): New function.
14957 (font_parse_name): New function.
14958 (font_match_p): New function.
14959 (font_get_name): Change return value to Lisp string.
14960 (font_get_spec): New function.
14961 (Qunspecified, Qignore_defface): Don't extern them.
14962 (font_find_for_lface): Assume that LFACE is fully specified.
14963 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
14964 object, use it for FACE.
14965 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
14966 driver->parse_name.
14967 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
14969 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
14972 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
14973 argument F. Don't call Fnew_fontset. Instead, directly call
14976 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
14978 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
14981 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
14982 (Qsans__serif): New variables.
14983 (ftfont_generic_family_list): New variable.
14984 (syms_of_ftfont): Initialize the above variables.
14985 (ftfont_pattern_entity): Delete argument NAME.
14986 (ftfont_list_generic_family): New function.
14987 (ftfont_parse_name): Delete this function.
14988 (ftfont_list): Try generic family only when FcFontList found no font.
14989 (ftfont_list_family): Fix args to FcObjectSetBuild.
14991 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
14992 object in attrs[LFACE_FONT_INDEX].
14993 (set_lface_from_font_name): Cancel all changes for font-backend.
14994 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
14996 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
14997 font object in QCfont attribute.
14998 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
14999 (realize_default_face) [USE_FONT_BACKEND]: Call
15000 set_lface_from_font_and_fontset.
15002 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
15003 "fixed", and signal error here if no suitable font was found.
15005 * xfont.c (xfont_parse_name): Delete this function.
15007 * xftfont.c (xftfont_open): Change coding style of error
15008 handling. Generate fontconfig's fontname pattern.
15010 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
15011 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
15013 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
15014 Both args FONTSET and FONT_OBJECT must be existing ones.
15016 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15018 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
15020 2008-02-01 Kenichi Handa <handa@m17n.org>
15022 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
15024 * font.h (struct font): Fix typo.
15026 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
15028 (enum xlfd_field_mask): New enum.
15029 (intern_font_field): Changed argument. Change caller. If digits
15030 are followed by non-digits, return a symbol.
15031 (font_expand_wildcards): New function.
15032 (font_parse_xlfd): Fix wildcard handling.
15033 (Ffont_spec): If :name is specified, reflect the info in the other
15036 * ftfont.c (ftfont_pattern_entity): Fix typo.
15037 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
15040 2008-02-01 Kenichi Handa <handa@m17n.org>
15042 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
15044 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
15045 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
15046 registry doesn't specify encoding part.
15047 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
15048 (font_open_by_name): At first try parsing the name.
15049 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
15052 * fontset.c (reorder_font_vector): Pay attention to the case that
15053 the 3rd element of font_def is nil.
15054 (fontset_font): For the default fontset, append one more fontset
15055 elements for a script-based font specification. Don't add script
15056 attribute on finding a font.
15057 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
15059 (fontset_ascii_font): If a font can't be opened, return nil.
15061 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
15062 (ftfont_pattern_entity): New function.
15063 (ftfont_get_cache): Assume that freetype_font_cache is already
15065 (ftfont_list): Handle the case that a file is specified in font
15066 name. Use ftfont_pattern_entity to generate entities.
15067 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
15068 (syms_of_ftfont): Initialize freetype_font_cache.
15070 * xftfont.c (xftfont_open): Make the font name fontconfig's
15071 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
15072 (xftfont_close): Free font->font.name if not NULL.
15074 * xfont.c (xfont_list): If script is specified for a font, return
15076 (xfont_list_family): Declare argument type.
15078 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
15079 name, set LFACE_FONT (lface) to nil.
15081 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
15084 2008-02-01 Kenichi Handa <handa@m17n.org>
15086 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
15087 (standard_args): Add "-enable-font-backend".
15089 2008-02-01 Kenichi Handa <handa@m17n.org>
15091 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
15092 (struct xftdraw_list, xftdraw_list): Delete them.
15093 (register_xftdraw, check_xftdraw): Delete them.
15094 (xftfont_prepare_face): Don't call register_xftdraw.
15095 (xftfont_done_face): Don't call check_xftdraw.
15096 (xftfont_draw): Get background color only when with_background is
15099 * xfont.c (xfont_encode_char): Fix calculation of char2b.
15101 2008-02-01 Kenichi Handa <handa@m17n.org>
15103 These changes are for the new font handling codes.
15105 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
15106 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
15107 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
15108 (FONTSRC, FONTOBJ): New variables.
15109 (obj): Add $(FONTOBJ).
15110 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
15111 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
15113 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
15114 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
15116 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
15118 * character.h (Vscript_representative_chars): Extern it.
15120 * character.c (Vscript_representative_chars): New variable.
15121 (syms_of_character): Declare it as a Lisp variable.
15123 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
15124 enable_font_backend is nonzero, accept the composition method
15125 COMPOSITION_WITH_GLYPH_STRING.
15127 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
15128 enumeration COMPOSITION_WITH_GLYPH_STRING.
15130 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
15131 members clip_x, clip_y, clip_width, and clip_height.
15132 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
15134 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
15135 --enable-font-backend. Call syms_of_font.
15137 * fns.c (assoc_no_quit): New function.
15139 * fontset.h (FONT_INFO_FROM_FACE): New macro.
15140 (face_for_font, new_fontset_from_font)
15141 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
15143 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
15144 (fontset_font, fontset_ascii, face_for_char)
15145 (make_fontset_for_ascii_face, Ffont_info)
15146 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
15147 is nonzero, use font-backend mechanism.
15148 (find_font_encoding): Make it non-static.
15149 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
15152 * frame.h (struct frame): New members resx and resy.
15153 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
15154 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
15156 * frame.c [USE_FONT_BACKEND]: Include "font.h".
15157 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
15159 * lisp.h (assoc_no_quit): Extern it.
15161 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
15162 Through out the file, use FONT_INFO_FROM_FACE instead of
15163 FONT_INFO_FROM_ID, use get_per_char_metric instead of
15164 rif->per_char_metric.
15165 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
15166 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
15167 (get_glyph_face_and_encoding, fill_composite_glyph_string)
15168 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15169 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
15170 nonzero, use font-backend mechanism.
15171 (get_per_char_metric): New function.
15173 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
15174 (set_lface_from_font_name)
15175 (set_font_frame_param, free_realized_face)
15176 (prepare_face_for_display, clear_face_gcs)
15177 (Finternal_set_font_selection_order, realize_x_face)
15178 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
15179 font-backend mechanism.
15180 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
15181 (load_face_font) [USE_FONT_BACKEND]: Abort.
15182 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
15183 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
15185 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
15186 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
15187 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
15188 nonzero, register all available font drivers. Call
15189 x_default_font_parameter for deciding a font.
15190 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
15192 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
15193 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
15194 (x_set_glyph_string_clipping_exactly)
15195 (x_compute_glyph_string_overhangs)
15196 (x_draw_glyph_string_foreground)
15197 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
15198 (x_free_frame_resources) [USE_FONT_BACKEND]: If
15199 enable_font_backend is nonzero, use font-backend mechanism.
15200 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
15202 2008-02-01 Kenichi Handa <handa@m17n.org>
15204 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
15206 (syms_of_coding): Initialize system_eol_type.
15208 * process.c (Fset_process_coding_system): Inherit system's eol
15209 format if necessary.
15211 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15213 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
15215 2008-02-01 Kenichi Handa <handa@m17n.org>
15217 * coding.c (decode_eol): Pay attention to buffer relocation in
15219 (decode_coding): Call decode_eol before restoring undo_list.
15221 2008-02-01 Kenichi Handa <handa@m17n.org>
15223 * charset.c (Fdefine_charset_internal): Fix setting of
15226 2008-02-01 Kenichi Handa <handa@m17n.org>
15228 * keyboard.c (read_char): Check if C is a character or not before
15229 looking up Vkeyboard_translate_table.
15231 2008-02-01 Kenichi Handa <handa@m17n.org>
15233 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
15234 condition to terminate the loop.
15236 2008-02-01 Kenichi Handa <handa@m17n.org>
15238 * coding.c (produce_composition): Compare charbuf[i] instead of
15240 (Fterminal_coding_system): Use EQ to compare Lisp objects.
15242 2008-02-01 Kenichi Handa <handa@m17n.org>
15244 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
15245 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
15246 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
15248 (emacs_mule_char): Handle old style (Emacs 20) component character
15250 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
15251 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
15253 (decode_coding_emacs_mule): Handle invalid bytes correctly.
15255 2008-02-01 Kenichi Handa <handa@m17n.org>
15257 * coding.c (encode_coding_ccl): Allocate destination dynamically
15260 2008-02-01 Kenichi Handa <handa@m17n.org>
15262 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
15263 the loop. When quitted, show a proper error message.
15265 2008-02-01 Kenichi Handa <handa@m17n.org>
15267 * xterm.c (x_set_glyph_string_clipping_exactly): Set
15268 src->clip_head and src->clip_tail temporarily instead of src->hl.
15270 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
15271 character sequence.
15272 (Fccl_execute_on_string): Use ASET, not XSET.
15274 2008-02-01 Kenichi Handa <handa@m17n.org>
15276 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
15278 2008-02-01 Kenichi Handa <handa@m17n.org>
15280 * coding.c (decode_coding): Fix the condition of terminating the
15283 2008-02-01 Kenichi Handa <handa@m17n.org>
15285 * data.c (Faset): On setting a character bigger than 255 in a
15286 unibyte string, signal an error instead of make the string multibyte.
15288 2008-02-01 Kenichi Handa <handa@m17n.org>
15290 * charset.c (map_charset_chars): Fix for ascii-compatible charset
15291 made by a mapping table.
15293 2008-02-01 Kenichi Handa <handa@m17n.org>
15295 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
15297 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
15298 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
15300 * xterm.c (x_draw_composite_glyph_string_foreground): Check
15301 s->face is NULL or not.
15303 2008-02-01 Kenichi Handa <handa@m17n.org>
15305 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
15306 (x_draw_glyph_string): Fix drawing of right_overhang and
15307 left_overhang around/on cursor.
15309 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
15311 2008-02-01 Kenichi Handa <handa@m17n.org>
15313 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
15315 2008-02-01 Kenichi Handa <handa@m17n.org>
15317 * coding.c (Fdefine_coding_system_internal)
15318 (Fdefine_coding_system_alias): Avoid a duplicated element in
15319 Vcoding_system_alist.
15321 2008-02-01 Kenichi Handa <handa@m17n.org>
15323 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
15325 * coding.c (Qcoding_system_define_form): New variable.
15326 (syms_of_coding): Intern and staticpro it.
15327 (Fcoding_system_p): Check Qcoding_system_define_form.
15328 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
15330 * coding.h (CODING_SYSTEM_P): If ID is not available, call
15332 (CHECK_CODING_SYSTEM): If ID is not available, call
15333 Fcheck_coding_system.
15334 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
15335 Try also Fcheck_coding_system.
15337 2008-02-01 Kenichi Handa <handa@m17n.org>
15339 * coding.c (code_conversion_restore): GCPRO arg.
15341 2008-02-01 Kenichi Handa <handa@m17n.org>
15343 * character.c (lisp_string_width): Check multibyteness of STRING.
15345 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15347 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
15348 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
15349 (decode_mac_font_name): Use decode_coding_c_string instead of
15351 (x_load_font): Initialize fontp->fontset to -1. Set
15352 fontp->encoding_type.
15354 2008-02-01 Kenichi Handa <handa@m17n.org>
15356 * search.c (search_buffer): Give up BM search on case-fold-search
15357 if one of a target character has a case-equivalence of different
15358 byte length even if that target charcter is an ASCII.
15359 (simple_search): Fix calculation of byte length of matched text.
15360 (boyer_moore): Fix handling of case-equivalent multibyte characters.
15362 2008-02-01 Kenichi Handa <handa@m17n.org>
15364 * coding.c (decode_coding): Fix handling of invalid bytes.
15366 2008-02-01 Kenichi Handa <handa@m17n.org>
15368 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
15369 Unicode characters.
15371 2008-02-01 Kenichi Handa <handa@m17n.org>
15373 * coding.c (encode_coding_object): If a pre-write-conversion
15374 function makes a new buffer, kill it.
15376 2008-02-01 Kenichi Handa <handa@m17n.org>
15378 * coding.c (QCascii_compatible_p): New variable.
15379 (syms_of_coding): Initialize it.
15380 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
15381 calling string_char.
15382 (record_conversion_result): Add `default:' case.
15383 (coding_charset_list): Delete unused variable `coding_type'.
15384 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
15385 property in the plist of the coding system.
15386 (Fcoding_system_put): Check QCascii_compatible_p.
15388 2008-02-01 Miles Bader <miles@gnu.org>
15390 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
15391 removed calculation of frame `f', as it's now used.
15393 2008-02-01 Kenichi Handa <handa@m17n.org>
15395 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
15396 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
15397 (UNIDATA): New variable.
15398 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
15399 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
15400 $(RUN_TEMACS) unconditionally.
15402 2008-02-01 Kenichi Handa <handa@m17n.org>
15404 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
15405 (admindir): New variable.
15406 ($(lispsource)international/charprop.el): New target.
15408 2008-02-01 Miles Bader <miles@gnu.org>
15410 * character.c (chars-in-region): Remove obsolete function.
15411 (syms_of_character): Remove its initialization.
15413 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
15415 * w32select.c (validate_coding_system)
15416 (setup_windows_coding_system): New functions.
15417 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
15418 setup_windows_coding_system.
15419 (setup_config, Fw32_get_clipboard_data): Use
15420 validate_coding_system.
15421 (Fx_selection_exists): Move call to setup_config to a place
15422 where signals are allowed.
15424 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
15425 (Fcheck_coding_system): Add declarations.
15427 2008-02-01 Kenichi Handa <handa@m17n.org>
15429 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
15431 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15433 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
15434 string as the second argument for x_new_fontset.
15436 2008-02-01 Kenichi Handa <handa@m17n.org>
15438 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
15439 (encode_coding_object): Use safe_call instead of call2.
15441 2008-02-01 Kenichi Handa <handa@m17n.org>
15443 * fontset.c (Fset_fontset_font): Check family element of a given vector.
15445 * Makefile.in (lisp): Include charprop.el.
15447 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15449 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
15450 Not sure if it's unnecessary.
15452 2008-02-01 Steven Tamm <steventamm@mac.com>
15454 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
15455 some possibly unnecessary fontset checking code that crashed
15456 when creating a new frame.
15458 2008-02-01 Kenichi Handa <handa@m17n.org>
15460 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
15463 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
15465 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
15467 2008-02-01 Kenichi Handa <handa@m17n.org>
15469 * coding.c: Cancel the change done in HEAD on 2008-02-01.
15470 (coding_charset_list): New function.
15472 * coding.h (coding_charset_list): Extern it.
15474 2008-02-01 Kenichi Handa <handa@m17n.org>
15476 * fontset.c (Fset_fontset_font): Call find_font_encoding with
15477 concatenation of family and registry.
15479 2008-02-01 Kenichi Handa <handa@m17n.org>
15481 * character.h (BYTE8_STRING): Fix typo.
15483 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
15484 string to multibyte (sync to HEAD).
15486 * casefiddle.c (casify_region): Handle changes in byte-length
15487 using replace_range_2 (sync to HEAD).
15489 2008-02-01 Andreas Schwab <schwab@suse.de>
15491 * chartab.c (map_char_table): GCPRO table and arg.
15493 2008-02-01 Kenichi Handa <handa@m17n.org>
15495 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
15498 2008-02-01 Kenichi Handa <handa@m17n.org>
15500 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
15501 instead of fast_c_string_match_ignore_case.
15502 (find_font_encoding): Change argument to Lisp_Object. Use
15503 fast_string_match_ignore_case instead of
15504 fast_c_string_match_ignore_case. Change caller.
15506 2008-02-01 Kenichi Handa <handa@m17n.org>
15508 * xdisp.c (get_next_display_element): In unibyte case, decide to
15509 display in octal form by checking a character by
15510 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
15512 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
15514 * character.c (unibyte_has_multibyte_table): New variable.
15516 * character.h (unibyte_has_multibyte_table): Extern it.
15517 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
15519 2008-02-01 Kenichi Handa <handa@m17n.org>
15521 * coding.c (encode_coding_iso_2022): Fix handling of charset
15524 2008-02-01 Kenichi Handa <handa@m17n.org>
15526 * coding.c (setup_coding_system): If coding_system is nil, use
15528 (Fterminal_coding_system): Return nil if terminal coding system is
15530 (syms_of_coding): Define coding-system `undecided' here. Setup
15531 terminal_coding as `undecided'.
15533 2008-02-01 Kenichi Handa <handa@m17n.org>
15535 * xdisp.c (message_dolog, set_message_1): Call
15536 unibyte_char_to_multibyte with arg type int.
15538 * lread.c (read1): Fix reading of a char-table.
15540 * print.c (print_object): Include sub char-table in circularities
15543 2008-02-01 Kenichi Handa <handa@m17n.org>
15545 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
15546 Append the found sequences in car of ARGS instead of prepending.
15548 2008-02-01 Kenichi Handa <handa@m17n.org>
15550 * fileio.c (report_file_error): Make a unibyte string from
15551 strerror (errorno).
15552 (Fsubstitute_in_file_name): Fix the arg to
15553 unibyte_char_to_multibyte. It is evaluated twice.
15555 2008-02-01 Kenichi Handa <handa@m17n.org>
15557 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
15559 2008-02-01 Kenichi Handa <handa@m17n.org>
15561 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
15563 (detect_coding, detect_coding_system): Optimization for ISO-2022
15564 when no 8-bit data is found.
15566 2008-02-01 Jason Rumney <jasonr@gnu.org>
15568 * w32fns.c (x_to_w32_font): Update to use new coding struct.
15570 2008-02-01 Kenichi Handa <handa@m17n.org>
15572 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
15575 2008-02-01 Steven Tamm <steventamm@mac.com>
15577 * macterm.c (mac_encode_char): Add charset argument and update
15578 to use encoding_type.
15579 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
15580 switch to pure fontset.
15581 (decode_mac_font_name): Temporarily remove decoding.
15582 (x_font_name_to_mac_font_name): Temporarily remove encoding.
15583 (x_load_font): Temporarily remove encoding.
15585 2008-02-01 Kenichi Handa <handa@m17n.org>
15587 * xfaces.c (Fface_font): If frame is not on a window system,
15588 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
15589 refer to face->font.
15590 (split_font_name_into_vector, build_font_name_from_vector)
15591 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
15592 when HAVE_WINDOW_SYSTEM is defined.
15594 2008-02-01 Kenichi Handa <handa@m17n.org>
15596 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
15597 (x_produce_glyphs): Fix setting of members of cmp in case
15598 cmp->glyph_len is zero.
15600 * fontset.c (Fset_fontset_font): Fix docstring.
15601 (Ffontset_info): Make it backward compatible. New arg ALL.
15603 2008-02-01 Kim F. Storm <storm@cua.dk>
15605 * process.c (read_process_output): Grow decoding_buf when needed;
15606 this could cause a crash in allocate_string and compact_small_strings.
15608 2008-02-01 Kenichi Handa <handa@m17n.org>
15610 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
15612 2008-02-01 Kenichi Handa <handa@m17n.org>
15614 * coding.c (setup_coding_system): Set coding->common_flags
15615 correctly for raw-text.
15616 (consume_chars): On encoding unibyte text by raw-text, don't check
15618 (encode_coding): On encoding by raw-text, never use translation tables.
15620 * fileio.c (e_write): Short cut for the case of no encoding.
15622 2008-02-01 Kenichi Handa <handa@m17n.org>
15624 * coding.c (detect_coding, detect_coding_system): Delete unused
15627 2008-02-01 Kenichi Handa <handa@m17n.org>
15629 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
15630 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
15632 2008-02-01 Kenichi Handa <handa@m17n.org>
15634 * coding.c (Ffind_coding_systems_region_internal): Include
15635 raw-text and no-conversion in the result.
15637 2008-02-01 Kenichi Handa <handa@m17n.org>
15639 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
15640 (load_font_get_repertory): Delete unnecessary check of ENCODING of
15642 (font_def_arg, add_arg, from_arg, to_arg): New args.
15643 (set_fontset_font): Change argument.
15644 (Fset_fontset_font): Fix for the case that TARGET is a script
15645 name and charset name.
15646 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
15648 2008-02-01 Kenichi Handa <handa@m17n.org>
15650 * fontset.c (fontset_font): Rename from fontset_face. Change return
15652 (face_suitable_for_char_p, face_for_char): Adjust for the change
15654 (make_fontset_for_ascii_face): Fix setting of the fontset element
15656 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
15657 to get a font name.
15658 (Ffontset_info): Adjust for the change of fontset_font.
15660 * coding.c (emacs_mule_char): Check invalid code more rigidly.
15662 * character.h (LEADING_CODE_LATIN_1_MIN)
15663 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
15665 2008-02-01 Kenichi Handa <handa@m17n.org>
15667 * editfns.c (check_translation): New function.
15668 (Ftranslate_region_internal): Handle M:N mapping.
15670 2008-02-01 Kenichi Handa <handa@m17n.org>
15672 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
15674 2008-02-01 Kenichi Handa <handa@m17n.org>
15676 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
15678 (decode_coding_iso_2022): Fix handling of invalid designation.
15680 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
15681 after calling code_conversion_save.
15683 2008-02-01 Kenichi Handa <handa@m17n.org>
15685 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
15687 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
15689 * fontset.c: Include "intervals.h".
15690 (fontset_face): Fix comparing of Lisp_Objects.
15691 (free_face_fontset, new_fontset_from_font_name): Fix
15692 Lisp_Object/int mixup.
15694 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
15696 * coding.c: Add many prototypes for static functions.
15697 (get_translation_table): Allow max_lookup to be NULL.
15698 (decode_coding, Ffind_coding_systems_region_internal)
15699 (Funencodable_char_position, Fcheck_coding_systems_region): Call
15700 get_translation_table with max_lookup NULL.
15702 2008-02-01 Kenichi Handa <handa@m17n.org>
15704 * coding.c (get_translation_table): Declare it as Lisp_Object.
15705 (LOOKUP_TRANSLATION_TABLE): New macro.
15706 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
15707 instead of CHAR_TABLE_REF.
15709 2008-02-01 Kenichi Handa <handa@m17n.org>
15711 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
15712 annotation data format.
15713 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
15714 Change arguments FROM and TO to single argument NCHARS. Change caller.
15715 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
15716 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15717 (decode_coding_ccl, decode_coding_charset): Pay attention to
15718 coding->charbuf_used.
15719 (get_translation): New function.
15720 (produce_chars): New arguments translation_table and last_block.
15721 Translate characters here. Return number of carryover chars.
15723 (produce_composition): New argument pos. Change caller.
15724 Adjust for the change of annotation data format.
15725 (produce_charset, produce_annotation): Likewise.
15726 (decode_coding, encode_coding): Don't call translate_chars.
15727 (consume_chars): New arg translation_table. Change caller.
15728 (translate_chars): Delete.
15729 (syms_of_coding): Make translation-table's number of extra slots 2.
15731 2008-02-01 Kenichi Handa <handa@m17n.org>
15733 * search.c (simple_search): Fix setting this_pos_byte in backward
15736 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
15738 (detect_coding_ccl): Fix setting of the variable valids.
15740 2008-02-01 Kenichi Handa <handa@m17n.org>
15742 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
15744 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
15746 * editfns.c (Ftranslate_region_internal): Rename from
15747 Ftranslate_region. Accept a char-table in TABLE.
15748 (syms_of_editfns): Defsubr Stranslate_region_internal.
15750 * xfaces.c (set_lface_from_font_name): If a font is specified for
15751 a frame, generate a fontset from the font.
15752 (build_scalable_font_name): If the scalable font is requested for
15753 a specific size, don't change that size.
15754 (try_font_list): Try a scalable font also in the case that a
15755 pattern string is specified.
15757 2008-02-01 Kenichi Handa <handa@m17n.org>
15759 * xfaces.c (Fface_font): New optional arg CHARACTER.
15761 2008-02-01 Kenichi Handa <handa@m17n.org>
15763 * charset.h (CHARSET_OFFSET): New macro.
15765 2008-02-01 Kenichi Handa <handa@m17n.org>
15767 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
15769 * fontset.c (fontset_face): Handle the case that repertory is a
15771 (find_font_encoding): Return nil for unknown encoding.
15772 (Fset_fontset_font): Ignore a font of unknown encoding.
15774 2008-02-01 Kenichi Handa <handa@m17n.org>
15776 * keymap.c (describe_vector): Handle default value of a char table.
15778 * fontset.c (fontset_face): Handle fallback fonts correctly.
15779 (Ffontset_info): Return infomation about fallback fonts.
15781 2008-02-01 Kenichi Handa <handa@m17n.org>
15783 * fontset.c (FONTSET_DEFAULT): New macro.
15784 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
15785 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
15786 the case that it is nil.
15787 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
15788 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
15790 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
15791 subset or superset.
15793 2008-02-01 Kenichi Handa <handa@m17n.org>
15795 * emacs.c (main): Call init_charset after syms_of_XXX.
15797 * charset.c (Vcharset_map_directory): Delete.
15798 (Vcharset_map_path): New variable.
15799 (load_charset_map_from_file): Use Vcharset_map_path instead.
15800 (init_charset): Initialize Vcharset_map_path.
15801 (syms_of_charset): Delete declaration of "charset-map-directory",
15802 add declaration of "charset-map-path".
15804 2008-02-01 Kenichi Handa <handa@m17n.org>
15806 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
15809 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
15811 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
15812 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
15814 2008-02-01 Kenichi Handa <handa@m17n.org>
15816 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
15818 * coding.c (QCmnemonic, QCdefalut_char)
15819 (QCdecode_translation_table, QCencode_translation_table)
15820 (QCpost_read_conversion, QCpre_write_conversion): New variables.
15821 (get_translation_table): Return a list of translation tables if
15823 (decode_coding): Call get_translation_table with ENCODEP 0.
15824 (char_encodable_p): If translation_table is non-nil, always call
15826 (Fdefine_coding_system_internal): Accept list of translation
15827 tables as :encode-translation-table and :decode-translation-table.
15828 (Fcoding_system_put): New function.
15829 (syms_of_coding): Declare new symbols. Defsubr
15830 Scoding_system_put.
15831 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
15832 typically JISX0212.
15834 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
15835 when the charset is superset type.
15837 * character.c (translate_char): Accept list of translation tables.
15839 2008-02-01 Kenichi Handa <handa@m17n.org>
15841 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
15842 (CODING_ATTR_TRANS_TBL): New macro.
15844 * coding.c (get_translation_table): New function.
15845 (translate_chars): Fix the bug of skipping annotation data.
15846 (decode_coding, encode_coding): Utilize get_translation_table.
15847 (char_encodable_p, Funencodable_char_position): Translate char if
15849 (Ffind_coding_systems_region_internal)
15850 (Fcheck_coding_systems_region): Setup translation table for encode
15851 in a coding system attribute vector in advance.
15852 (Fdefine_coding_system_internal): Allow a symbol as translation
15853 table. For shift-jis type coding system, allow 4th charset.
15855 2008-02-01 Kenichi Handa <handa@m17n.org>
15857 * coding.c (decode_coding_sjis): Check the first byte rigidly.
15859 * xdisp.c (get_next_display_element): Pass -1 as POS to
15860 FACE_FOR_CHAR if displaying a C-string.
15862 2008-02-01 Kenichi Handa <handa@m17n.org>
15864 * composite.c (get_composition_id): Handle xoff and yoff in a
15867 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
15868 (struct composition): New member lbearing and rbearing.
15870 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
15871 (x_get_glyph_overhangs): Handle a composition glyph.
15872 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
15874 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
15877 2008-02-01 Kenichi Handa <handa@m17n.org>
15879 * print.c: Include charset.h.
15880 (Vprint_charset_text_property): New variable.
15881 (Qdefault): Extern it.
15882 (PRINT_STRING_NON_CHARSET_FOUND)
15883 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
15884 (print_check_string_result): New variable.
15885 (print_check_string_charset_prop): New function.
15886 (print_prune_charset_plist): New variable.
15887 (print_prune_string_charset): New function.
15888 (print_object): Call print_prune_string_charset if
15889 Vprint_charset_text_property is not t.
15890 (print_interval): Print nothing if interval->plist is nil.
15891 (syms_of_print): Declare Vprint_charset_text_property as a lisp
15892 variable. Init and staticpro print_prune_charset_plist.
15894 2008-02-01 Kenichi Handa <handa@m17n.org>
15896 * fontset.c (new_fontset_from_font_name): Use the specified font
15897 for all characters in the new fontset.
15899 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
15902 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
15903 OBJECT args for composition too.
15905 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
15908 2008-02-01 Kenichi Handa <handa@m17n.org>
15910 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
15912 * fontset.c (reorder_font_vector): Adjust for the change of
15914 (fontset_face): New arg id. Change caller.
15915 (face_for_char): New args pos and object.
15916 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
15917 (fs_query_fontset): Check NAME by Fassoc too.
15918 (Fset_fontset_font): Allow non-XLFD font name.
15919 (Ffontset_info): Adjust for the change of FONT_DEF format.
15921 * fontset.h (face_for_char): Adjust prototype.
15923 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
15924 (append_space, extend_face_to_end_of_line)
15925 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15926 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
15928 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
15929 POS and OBJECT args.
15931 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
15932 POS and OBJECT args.
15934 2008-02-01 Jason Rumney <jasonr@gnu.org>
15936 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
15937 of GlobalAlloc'ed memory.
15939 2008-02-01 Kenichi Handa <handa@m17n.org>
15941 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
15943 * charset.h (charset_table_used): Delete extern.
15945 * charset.c (charset_table_used): Make it static.
15946 (map_charset_chars): Fix args to c_function with.
15948 * chartab.c (map_sub_char_table_for_charset): Fix args to
15951 * coding.h (enum coding_result_code): Delete
15952 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
15954 * coding.c (Qinsufficient_source, Qinconsistent_eol)
15955 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
15956 (Vlast_code_conversion_error): New variables.
15957 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
15958 (ONE_MORE_BYTE): Record error if any instead of signaling an
15959 error. If non-ASCII multibyte char is found, return the negative
15960 value of the code. All callers changed to check it.
15961 (ONE_MORE_BYTE_NO_CHECK): Likewise.
15962 (record_conversion_result): New function. Change all codes setting
15963 coding->result to call this function.
15964 (detect_coding_utf_8, decode_coding_utf_8)
15965 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
15966 Don't use the local variable incomplete.
15967 (emacs_mule_char): Change the second arg to `const'.
15968 (decode_coding): Fix of flushing out unprocessed data.
15969 (make_conversion_work_buffer): Fix making of a work buffer.
15970 (decode_coding_object): Return coding->dst_object.
15972 * fontset.c (set_fontset_font): Fix args.
15974 * lisp.h (CHARACTERBITS): Define as 22.
15976 * process.c (send_process): Be sure to set coding->src_multibyte.
15978 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
15980 2008-02-01 Kenichi Handa <handa@m17n.org>
15982 * xdisp.c (handle_auto_composed_prop): Give limit to
15983 Fnext_single_char_property_change.
15985 2008-02-01 Kenichi Handa <handa@m17n.org>
15987 * composite.c (syms_of_composite): Don't make the composition hash
15990 * fontset.c (Fset_fontset_font): Fix docstring.
15992 * lisp.h (detect_coding_system): Adjust prototype.
15994 * fileio.c (kill_workbuf_unwind): Delete this function.
15995 (Finsert_file_contents): Adjust the call of detect_coding_system.
15996 Get conversion_buffer by code_conversion_save. Use the macro
15997 CODING_MAY_REQUIRE_DECODING. After decoding, update
16000 * coding.h (make_conversion_work_buffer): Delete extern.
16001 (code_conversion_save): Extern it.
16003 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
16004 (CODING_GET_INFO): Delete argument eol_type. Change callers.
16005 (decode_coding_utf_8): Don't do eol converion.
16006 (detect_coding_utf_16): Check coding->src_chars, not
16007 coding->src_bytes. Add heuristics for those that have no signature.
16008 (decode_coding_emacs_mule, decode_coding_iso_2022)
16009 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16010 Don't do eol converion.
16011 (adjust_coding_eol_type): Return a new coding system.
16012 (detect_coding): Don't detect eol. Fix for utf-16 detection.
16013 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
16015 (decode_coding): Pay attention to undo_list. Do eol conversion for
16016 all types of coding-systems (if necessary).
16017 (Vcode_conversion_work_buf_list): Delete it.
16018 (Vcode_conversion_reused_workbuf): Rename from
16019 Vcode_conversion_reused_work_buf.
16020 (Vcode_conversion_workbuf_name): New variable.
16021 (reused_workbuf_in_use): New variable.
16022 (make_conversion_work_buffer): Delete the arg DEPTH.
16023 (code_conversion_restore): Change argument to cons.
16024 (code_conversion_save): Delete the argument BUFFER. Change callers.
16025 (detect_coding_system): New argument src_chars. Change callers.
16026 Fix for utf-16 detection.
16027 (init_coding_once): Don't use ISO_carriage_return.
16028 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
16029 reused_workbuf_in_use.
16031 2008-02-01 Kenichi Handa <handa@m17n.org>
16033 * keymap.c (store_in_keymap): Pay attention to the case that idx
16034 is a cons specifying a character range.
16036 2008-02-01 Kenichi Handa <handa@m17n.org>
16038 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
16039 HANDLED_RECOMPUTE_PROPS.
16041 * coding.c (Fdefine_coding_system_internal): Fix checking of
16042 ascii compatibility.
16044 2008-02-01 Kenichi Handa <handa@m17n.org>
16046 * charset.c (find_charsets_in_text): Delete unused locale variable.
16047 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
16049 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
16050 Resync charset_list to Vemacs_mule_charset_list.
16052 * keymap.c (store_in_keymap): Pay attention to the case that idx
16053 is a cons specifying a character range.
16055 2008-02-01 Kenichi Handa <handa@m17n.org>
16057 * composite.c (update_compositions): Bind inhibit-read-only, etc
16058 to t before calling remove-list-of-text-properties.
16060 * print.c (print_object): Always print ASCII chars as is.
16062 2008-02-01 Kenichi Handa <handa@m17n.org>
16064 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
16066 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
16069 2008-02-01 Kenichi Handa <handa@m17n.org>
16071 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
16073 2008-02-01 Kenichi Handa <handa@m17n.org>
16075 * xfaces.c (set_lface_from_font_name): Fix for the case that
16076 FONTNAME is not fontset name.
16078 2008-02-01 Kenichi Handa <handa@m17n.org>
16080 * fns.c (base64_encode_1): Fix previous change.
16082 2008-02-01 Kenichi Handa <handa@m17n.org>
16084 * fontset.c (set_fontset_font): New function.
16085 (Fset_fontset_font): If a font is specified for a charset, use
16086 map_charset_chars to store the font spec in a fontset.
16088 2008-02-01 Kenichi Handa <handa@m17n.org>
16090 * fontset.c (fontset_face): Create a fallback fontset on demand.
16091 (make_fontset): Don't create a fallback fontset here.
16092 (free_face_fontset): Free a fallback fontset (if any) too.
16093 (n_auto_fontsets): Delete this variable.
16094 (auto_fontset_alist): New variable.
16095 (new_fontset_from_font_name): Check auto_fontset_alist.
16096 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
16097 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
16098 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
16099 Defsubr Sfontset_list_all.
16101 2008-02-01 Kenichi Handa <handa@m17n.org>
16103 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
16105 2008-02-01 Kenichi Handa <handa@m17n.org>
16107 * fontset.c (Fnew_fontset): Check NAME more rigidly.
16109 2008-02-01 Kenichi Handa <handa@m17n.org>
16111 * editfns.c (Fgoto_char): Fix docstring.
16113 2008-02-01 Kenichi Handa <handa@m17n.org>
16115 * insdel.c (insert_from_gap): Adjust intervals correctly.
16117 2008-02-01 Jason Rumney <jasonr@gnu.org>
16119 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
16120 (pfnGetFontUnicodeRanges): New dynamically loaded function.
16121 (w32_initialize): Try to load it.
16122 (x_get_font_repertory): Use it if available.
16123 (w32_encode_char): Add shortcut for unicode output.
16125 * w32fns.c (w32_load_system_font): Default charset to -1.
16126 (x_to_w32_charset): Match all fonts for unicode.
16127 (w32_to_x_charset): New parameter matching. Don't return partial
16128 or wildcard charsets.
16129 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
16130 (w32_codepage_for_font): Return CP_UNICODE for unicode.
16131 (w32_to_x_font): Match charset to real charset.
16132 (enum_font_cb2): Always list unicode versions.
16134 * makefile.w32-in (temacs): Increase EMHEAP.
16136 2008-02-01 Jason Rumney <jasonr@gnu.org>
16138 * w32term.c (w32_encode_char): New charset parameter.
16139 font_info.encoding becomes encoding_type.
16140 (x_get_font_repertory): New function. Warning: stub only!
16141 (x_new_font): Return quickly if font already set.
16142 (x_new_fontset): fontsetname parameter is Lisp_Object.
16143 Use new fs_query_fontset. Try new_fontset_from_font_name.
16144 Use fontset_name for return value.
16146 * w32term.h: Declare x_get_font_repertory.
16148 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
16149 place of find_charset_in_text. Use encode_coding_object in place
16151 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
16154 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
16156 (w32_load_system_font): Initialize charset as unicode.
16157 font_info.encoding becomes encoding_type.
16158 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
16159 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
16160 (syms_of_w32fns): Set get_font_repertory_func.
16162 * w32console.c: Include character.h. Use terminal_encode_buffer
16164 (write_glyphs): Use new version of encode_terminal_code. Use
16165 encode_coding_object in place of encode_coding.
16167 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
16168 encoding becomes encoding_type.
16170 * term.c (terminal_encode_buffer): Make externally visible.
16172 * makefile.w32-in: Add character.h dependancies.
16173 (character.o, chartab.o): New targets.
16175 2008-02-01 Kenichi Handa <handa@m17n.org>
16177 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
16178 CODING_ID_EOL_TYPE.
16180 2008-02-01 Andreas Schwab <schwab@suse.de>
16182 * coding.c (produce_chars): Revert last change.
16184 2008-02-01 Kenichi Handa <handa@m17n.org>
16186 * charset.h (charset_unicode): Extern it.
16188 * charset.c (string_xstring_p): Check by (C >= 0x100).
16189 (find_charsets_in_text): Change format of the arc CHARSETS. New
16191 (Ffind_charset_region, Ffind_charset_string): Adjust for the
16192 change of find_charsets_in_text.
16193 (Fsplit_char): Fix doc. Never return unknown.
16195 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
16197 * coding.c (Fdefine_coding_system_alias): Update
16198 Vcoding_system_list.
16200 * fontset.c (load_font_get_repertory): Pay attention to the case
16201 that ENCODING of a font is specified by a char-table.
16203 * xterm.c (x_get_font_repertory): Handle the case that the
16204 encoding of font is other than Unicode.
16206 2008-02-01 Kenichi Handa <handa@m17n.org>
16208 * term.c (encode_terminal_code): Don't handle glyph-table. Check
16209 if a character is encodable by the terminal coding system. If
16210 not, produces proper number of `?'s. Update
16211 terminal_encode_buffer and terminal_encode_buf_size if necessary.
16212 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
16214 2008-02-01 Kenichi Handa <handa@m17n.org>
16216 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
16218 (encode_terminal_code): Change argument. Encode multiple
16219 characters at once. Store the result of encoding in
16220 terminal_encode_buffer.
16221 (write_glyphs, insert_glyphs): Adjust for the change of
16222 encode_terminal_code.
16223 (term_init): Initialize terminal_encode_buffer and
16224 terminal_encode_buf_size.
16226 * coding.c (consume_chars): If coding->src_object is nil, don't
16229 2008-02-01 Kenichi Handa <handa@m17n.org>
16231 * character.c (char_string): Use ASCII_CHAR_P instead of
16232 SINGLE_BYTE_CHAR_P.
16234 2008-02-01 Kenichi Handa <handa@m17n.org>
16236 * xdisp.c (handle_auto_composed_prop): Check if the last
16237 characters of auto-composed region is newly composed with the
16238 following characters.
16239 (handle_composition_prop): Fix checking of point being inside
16242 2008-02-01 Kenichi Handa <handa@m17n.org>
16244 * fns.c (concat): Don't change multibyteness of the result by
16245 concatenating an 8-bit character.
16247 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
16248 multibyteness of the result when newelt is an 8-bit character.
16250 2008-02-01 Dave Love <fx@gnu.org>
16252 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
16255 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
16257 * xfaces.c (face_numeric_value): Declare dim size_t.
16258 (Finternal_lisp_face_equal_p): Remove unused f.
16260 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
16261 (MATRIX_ROW): Remove unused vars.
16262 (draw_glyphs, x_insert_glyphs, fast_find_position)
16263 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
16266 * regex.c (regex_compile): Remove unused var.
16268 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16270 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
16271 (Faccessible_keymaps, where_is_internal): Remove unused vars.
16273 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
16275 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
16277 * fileio.c (Fwrite_region): Remove unused var.
16279 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
16280 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
16282 * composite.c (Fremove_list_of_text_properties): Declare.
16284 * coding.c (inhibit_pre_post_conversion): Remove (unused).
16285 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
16286 (coding_inherit_eol_type): Remove unused attrs.
16287 (detect_coding): Cast arg of detect_eol.
16289 * charset.c (syms_of_charset): Remove unused var p.
16290 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
16293 * casetab.c (set_case_table): Remove unused var.
16295 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
16298 2008-02-01 Dave Love <fx@gnu.org>
16300 * xterm.c (x_bitmap_mask): Declare.
16302 2008-02-01 Dave Love <fx@gnu.org>
16304 * xterm.c (x_term_init): Fix type error.
16306 * lisp.h: Add Funibyte_char_to_multibyte.
16308 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
16309 (Fset_coding_system_priority): Doc fix.
16311 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
16313 * indent.c (check_composition): Make start and end EMACS_INT.
16315 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
16317 * xdisp.c (handle_composition_prop, check_point_in_composition):
16318 Make buffer positions EMACS_INT.
16320 * composite.c (find_composition, run_composition_function)
16321 (update_compositions, Ffind_composition_internal): Make buffer
16322 positions EMACS_INT.
16324 * composite.h (find_composition, update_compositions): Make
16325 position args EMACS_INT.
16327 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
16329 * intervals.c (get_property_and_range):
16330 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
16332 * unexalpha.c: Don't include varargs.h.
16334 2008-02-01 Dave Love <fx@gnu.org>
16336 * coding.h (ENCODE_UTF_8): New.
16338 * Makefile.in (gtkutil.o): Depend on coding.h.
16340 * coding.c (Fset_coding_system_priority): Doc fix.
16342 2008-02-01 Kenichi Handa <handa@m17n.org>
16344 * fileio.c (Finsert_file_contents): Call setup_coding_system in
16345 the case of auto saving.
16347 2008-02-01 Andreas Schwab <schwab@suse.de>
16349 * chartab.c (map_char_table, map_char_table_for_charset): Protect
16352 2008-02-01 Kenichi Handa <handa@m17n.org>
16354 * coding.c (decode_coding_sjis): Check bytes more rigidly.
16356 2008-02-01 Kenichi Handa <handa@m17n.org>
16358 * fileio.c (choose_write_coding_system): Return a decided coding system.
16359 (Fwrite_region): Set Vlast_coding_system_used to the return value
16360 of choose_write_coding_system.
16362 2008-02-01 Kenichi Handa <handa@m17n.org>
16364 * charset.c (Fset_charset_priority): Pay attention to duplicated
16367 * coding.c (QCcategory): New variable.
16368 (syms_of_coding): Defsym it. Set all elements of
16369 Vcoding_category_table and their symbol values.
16370 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
16371 coding-category-XXX, and coding-category-list.
16372 (Fdefine_coding_system_internal): Add category in the plist.
16374 2008-02-01 Kenichi Handa <handa@m17n.org>
16376 * callproc.c (Fcall_process): Handle carryover correctly.
16378 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
16379 (raw_text_coding_system): Check NILP (coding_system).
16380 (coding_inherit_eol_type): Check NILP (coding_system) and
16382 (consume_chars): Fix for the case of raw-text.
16384 * process.c (read_process_output): Handle carryover correctly.
16386 2008-02-01 Dave Love <fx@gnu.org>
16388 * regex.c (re_search_2): Fix last change.
16390 2008-02-01 Kenichi Handa <handa@m17n.org>
16392 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
16393 target_multibyte. Even in a unibyte case, return a converted
16395 (GET_CHAR_AFTER): New macro.
16396 (PATFETCH): Translate via multibyte char.
16397 (HANDLE_UNIBYTE_RANGE): Delete this macro.
16398 (SETUP_MULTIBYTE_RANGE): New macro.
16399 (regex_compile): Setup compiled code so that its multibyteness
16400 matches that of a target. Fix the handling of "[X-YZ]" using
16401 SETUP_MULTIBYTE_RANGE.
16402 (analyse_first) <charset>: For filling fastmap for all multibyte
16403 characters, don't check by BASE_LEADING_CODE_P.
16404 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
16405 the same as RE_MULTIBYTE_P (bufp) now.
16406 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
16407 (TARGET_CHAR_AND_LENGTH): Delete this macro.
16408 (TRANSLATE_VIA_MULTIBYTE): New macro.
16409 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
16410 It is the same as RE_MULTIBYTE_P (bufp) now.
16411 <exactn>: Translate via multibyte.
16412 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
16414 <charset, charset_not>: Fetch a character by
16415 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
16416 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
16417 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
16418 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
16420 (bcmp_translate): Likewise.
16422 * search.c (compile_pattern): Check the member target_multibyte,
16423 not the member multibyte of buf.
16425 * lread.c (read1): While reading a string, set force_singlebyte
16426 and force_multibyte correctly.
16428 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
16429 up of unibyte_to_multibyte_table.
16431 2008-02-01 Kenichi Handa <handa@m17n.org>
16433 * coding.c (setup_coding_system): If coding has
16434 post-read-conversion or pre-write-conversion, set
16435 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
16437 (decode_coding_gap): Run post-read-conversion if any.
16439 * fileio.c (Finsert_file_contents): Even if we read into a
16440 unibyte buffer, check if we must decode the result or not.
16442 2008-02-01 Kenichi Handa <handa@m17n.org>
16444 * coding.c (make_conversion_work_buffer): Change the work buffer
16445 name to the same one as that of Emacs 21.
16447 2008-02-01 Kenichi Handa <handa@m17n.org>
16449 * coding.h (make_conversion_work_buffer): Adjust prototype.
16450 (code_conversion_restore): Don't extern it.
16452 * coding.c (detected_mask): Delete unused variable.
16453 (decode_coding_iso_2022): Pay attention to the byte sequence of
16454 CTEXT extended segment, and retain those bytes as is.
16455 (decode_coding_ccl): Delete unused variable `valids'.
16456 (setup_coding_system): Delete unused variable `category'.
16457 (consume_chars): Delete unused variable `category'. Make it work
16458 for non-multibyte case.
16459 (make_conversion_work_buffer): Change argument.
16460 (saved_coding): Delete unused variable.
16461 (code_conversion_restore): Don't check saved_coding->destination.
16462 (code_conversion_save): New function.
16463 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
16464 instead of record_unwind_protect.
16465 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
16466 (detect_coding_system): Delete unused variable `mask'.
16467 (Fdefine_coding_system_internal): Delete unused variable id.
16469 * fileio.c (kill_workbuf_unwind): New function.
16470 (Finsert_file_contents): On replacing, call
16471 make_conversion_work_buffer with correct args, and call
16472 record_unwind_protect with the first arg kill_workbuf_unwind.
16474 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
16476 2008-02-01 Kenichi Handa <handa@m17n.org>
16478 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
16479 (fontset_add): Fix for the case that TO is less than TO1.
16480 (Ffontset_info): Don't use fallback fontset on checking the
16482 (dump_fontset): New function for debugging.
16484 * coding.c (Fdefine_coding_system_internal): Fix for the case that
16485 coding_type is Qcharset.
16487 2008-02-01 Kenichi Handa <handa@m17n.org>
16489 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
16490 (map_char_table): Don't inherit the value from the parent on
16491 initializing VAL. Adjust for the above change.
16493 2008-02-01 Kenichi Handa <handa@m17n.org>
16495 * coding.c (Qsignature, Qendian): Delete these variables.
16496 (syms_of_coding): Don't initialize them.
16497 (CATEGORY_MASK_UTF_16_AUTO): New macro.
16498 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
16499 detect_info->found.
16500 (decode_coding_utf_16): Don't detect BOM here.
16501 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
16502 is NOT utf_16_without_bom.
16503 (setup_coding_system): For a coding system of type utf-16, check
16504 if the attribute :endian is Qbig or not (not nil or not), and set
16505 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
16506 (detect_coding): If coding type is utf-16 and BOM detection is
16507 required, detect it.
16508 (Fdefine_coding_system_internal): For a coding system of type
16509 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
16511 2008-02-01 Kenichi Handa <handa@m17n.org>
16513 * coding.c (coding_set_source): Fix for the case that the current
16514 buffer is different from coding->src_object.
16515 (decode_coding_object): Don't use the conversion work buffer if
16516 DST_OBJECT is a buffer.
16518 2008-02-01 Dave Love <fx@gnu.org>
16520 * lread.c (read_emacs_mule_char) [len==2]: Index
16521 emacs_mule_charset correctly.
16523 2008-02-01 Dave Love <fx@gnu.org>
16525 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
16526 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
16527 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
16528 treated specially.)
16529 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
16530 (detected_mask): Remove Big5 bits.
16532 2008-02-01 Kenichi Handa <handa@m17n.org>
16534 The following changes are to make the font rescaling facility
16535 compatible with Emacs 21.
16537 * xfaces.c (Vface_font_rescale_alist): Rename from
16538 Vface_resizing_fonts.
16539 (struct font_name): Rename member resizing_ratio to rescale_ratio.
16540 (font_rescale_ratio): Rename from font_resizing_ratio.
16541 (split_font_name): Set font->rescale_ratio.
16542 (better_font_p): Pay attention to font->rescale_ratio.
16543 (build_scalable_font_name): Likewise. Change RESX, and RESY
16545 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
16547 2008-02-01 Kenichi Handa <handa@m17n.org>
16549 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
16550 (Qutf_16_le): Remove these variables.
16551 (syms_of_coding): Don't DEFSYM them.
16552 (decode_coding_utf_16): Fix handling of BOM.
16553 (encode_coding_utf_16): Fix handling of BOM.
16555 2008-02-01 Kenichi Handa <handa@m17n.org>
16557 * fileio.c (Finsert_file_contents): On replacing, before decoding
16558 the file into the work buffer, set point of the work buffer to the end.
16560 2008-02-01 Dave Love <fx@gnu.org>
16562 * coding.c (Fcheck_coding_systems_region): Fix type errors.
16564 2008-02-01 Dave Love <fx@gnu.org>
16566 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16569 2008-02-01 Kenichi Handa <handa@m17n.org>
16571 * xdisp.c (SKIP_GLYPHS): New macro.
16572 (set_cursor_from_row): Pay attention to string display properties.
16574 * category.c (copy_category_entry): Fix for the case that RANGE
16577 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
16579 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
16581 2008-02-01 Kenichi Handa <handa@m17n.org>
16583 * charset.c (Fcharset_id_internal): New function.
16584 (syms_of_charset): Defsubr it.
16586 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
16587 with the last arg charset_list acquired from coding.
16588 (Fdefine_coding_system_internal): For ccl-based coding system, fix
16589 the attribute coding_attr_ccl_valids.
16591 * coding.h (enum define_coding_ccl_arg_index): Set the first
16592 member coding_arg_ccl_decoder to coding_arg_max.
16594 * ccl.h (ccl_driver): Adjust prototype.
16596 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
16597 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
16598 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
16599 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
16602 2008-02-01 Kenichi Handa <handa@m17n.org>
16604 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
16607 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
16609 2008-02-01 Dave Love <fx@gnu.org>
16611 * composite.c (syms_of_composite): Make composition_hash_table weak.
16613 2008-02-01 Kenichi Handa <handa@m17n.org>
16615 * dispextern.h (check_face_attributes, generate_ascii_font_name)
16616 (font_name_registry): Don't extern them.
16617 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
16619 * fontset.h (Qfontset): Don't extern it.
16620 (new_fontset_from_font_name): Extern it.
16622 * fontset.c: Give 8 extra slots to fontset objects.
16623 (Qfontset_info): New variable.
16624 (syms_of_fontset): Defsym it.
16625 (FONTSET_FALLBACK): New macro.
16626 (fontset_face): Try also the default fontset.
16627 (make_fontset): Realize a fallback fontset from the default fontset.
16628 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
16629 using split_font_name_into_vector and build_font_name_from_vector.
16630 (Fset_fontset_font): Access the elements of font_spec by enum
16631 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
16632 name by using split_font_name_into_vector.
16633 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
16634 generate a proper font name from the fontset name. Update
16635 Vfontset_alias_alist.
16636 (n_auto_fontsets): New variable.
16637 (new_fontset_from_font_name): New function.
16638 (Ffont_info): Store the information about fonts generated from the
16639 default fontset in the first extra slot of the returned char-table.
16641 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
16642 (font_name_registry): Delete function.
16643 (split_font_name_into_vector): New function.
16644 (build_font_name_from_vector): New function.
16645 (font_list): The argument REGISTRY is now a list of registry names.
16646 (choose_face_font): If we are choosing an ASCII font, and ATTRS
16647 specifies an explicit font name, return the name as is. Make a
16648 list of registy names.
16650 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
16652 (Fx_create_frame): Don't call x_new_fontset here. Just use
16653 x_list_fonts to check the existence of fonts.
16655 * xterm.h (x_new_fontset): Adjust prototype.
16657 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
16658 string. Use new_fontset_from_font_name to create a fontset from a
16661 2008-02-01 Kenichi Handa <handa@m17n.org>
16663 * syntax.c (Vfind_word_boundary_function_table): New name for
16664 Vnext_word_boundary_function_table.
16665 (find-word-boundary-function-table): New name for
16666 next-word-boundary-function-table.
16668 2008-02-01 Dave Love <fx@gnu.org>
16670 * Makefile.in: Fix some dependencies.
16672 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
16673 set it to nil before returning.
16675 * composite.c (update_compositions): Fix type error.
16677 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
16679 2008-02-01 Kenichi Handa <handa@m17n.org>
16681 * xterm.c (x_new_font): Optimize for the case that the font is
16682 already set for the frame.
16684 2008-02-01 Kenichi Handa <handa@m17n.org>
16686 * chartab.c (char_table_ascii): Check if the char table contents
16687 is sub-char-table or not.
16688 (char_table_set, char_table_set_range): Fix argument to
16691 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
16692 (detect_coding_utf_8, detect_coding_utf_16)
16693 (detect_coding_emacs_mule, detect_coding_iso_2022)
16694 (detect_coding_sjis, detect_coding_big5)
16695 (detect_coding_ccl, detect_coding_charset): Change argument MASK
16696 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
16697 sequence is valid in this coding system. Change callers.
16698 (MAX_ANNOTATION_LENGTH): New macro.
16699 (ADD_ANNOTATION_DATA): New macro.
16700 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
16701 ADD_ANNOTATION_DATA. Change the format of annotation data.
16702 (ADD_CHARSET_DATA): New macro.
16703 (emacs_mule_char): New argument ID. Change callers.
16704 (decode_coding_emacs_mule, decode_coding_iso_2022)
16705 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16706 Produce charset annotation data in coding->charbuf.
16707 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
16708 to charset annotation data in coding->charbuf.
16709 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
16710 coding->common_flags if the coding system is iso-2022 based and
16712 (produce_composition): Adjust for the new annotation data format.
16713 (produce_charset): New function.
16714 (produce_annotation): Handle charset annotation.
16715 (handle_composition_annotation, handle_charset_annotation): New
16717 (consume_chars): Handle charset annotation. Utilize the above two
16719 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
16720 buffer, get the deleted text as a string and set
16721 coding->src_object to that string.
16722 (detect_coding, detect_coding_system): Use the new struct
16723 coding_detection_info.
16725 * coding.h (struct coding_detection_info): New structure.
16726 (struct coding_system): Adjust prototype of the member `detector'.
16727 (CODING_ANNOTATE_CHARSET_MASK): New macro.
16729 2008-02-01 Kenichi Handa <handa@m17n.org>
16731 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
16733 2008-02-01 Dave Love <fx@gnu.org>
16735 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
16736 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
16737 to new local and nullify apropos_accumulate before returning.
16738 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
16740 2008-02-01 Kenichi Handa <handa@m17n.org>
16742 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
16745 2008-02-01 Dave Love <fx@gnu.org>
16747 * fns.c (Flanginfo): Call synchronize_system_time_locale.
16749 2008-02-01 Kenichi Handa <handa@m17n.org>
16751 The following changes are to make character composition happen
16752 automatically on displaying.
16754 * Makefile.in (lisp, shortlisp): Add composite.elc.
16756 * composite.h (Qauto_composed, Vauto_composition_function)
16757 (Qauto_composition_function): Extern them.
16759 * composite.c (Vcomposition_function_table)
16760 (Qcomposition_function_table): Delete variables.
16761 (Qauto_composed, Vauto_composition_function)
16762 (Qauto_composition_function): New variables.
16763 (run_composition_function): Don't call
16764 compose-chars-after-function.
16765 (update_compositions): Clear `auto-composed' text property.
16766 (compose_chars_in_text): Delete this function.
16767 (syms_of_composite): Staticpro Qauto_composed and
16768 Qauto_composition_function. Declare Vauto_composition_function as
16771 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
16773 * xdisp.c (it_props): Add an entry for Qauto_composed.
16774 (handle_auto_composed_prop): New function.
16776 * xselect.c (selection_data_to_lisp_data): Don't call
16777 compose_chars_in_text.
16779 2008-02-01 Dave Love <fx@gnu.org>
16781 * keyboard.c (read_char): Modify checking around use of
16782 Vkeyboard_translate_table.
16784 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16787 2008-02-01 Kenichi Handa <handa@m17n.org>
16789 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
16790 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16791 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
16792 the case that the last byte is '\r' correctly.
16793 (decode_coding): Flush out the unprocessed data correctly.
16794 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
16796 2008-02-01 Dave Love <fx@gnu.org>
16798 * xterm.c (XTread_socket): Fix changes for defined keysyms.
16799 Add XK_ISO... case.
16800 (xaw_scroll_callback): Revert last change.
16802 2008-02-01 Kenichi Handa <handa@m17n.org>
16804 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
16806 2008-02-01 Kenichi Handa <handa@m17n.org>
16808 * xfaces.c (Vface_resizing_fonts): New variable.
16809 (struct font_name): New member `resizing_ratio'.
16810 (font_resizing_ratio): New function.
16811 (split_font_name): Set font->resizing_ratio.
16812 (better_font_p): Pay attention to font->resizing_ratio.
16813 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
16814 RESX, and RESY fields.
16815 (try_alternative_families): Try scalable fonts if
16816 Vscalable_fonts_allowed is not Qt.
16817 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
16819 2008-02-01 Dave Love <fx@gnu.org>
16821 * xterm.c (xaw_scroll_callback): Cast correctly.
16823 2008-02-01 Dave Love <fx@gnu.org>
16825 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
16826 (lispy_kana_keys): Comment out.
16827 (make_lispy_event) [XK_kana_A]: Comment out.
16829 * xterm.c (xaw_scroll_callback): Cast call_data.
16830 (XTread_socket): Deal with ASCII keysyms.
16831 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
16833 2008-02-01 Dave Love <fx@gnu.org>
16835 * xterm.c (Vx_keysym_table): New.
16836 (syms_of_xterm): Initialize it.
16837 (XTread_socket): Use it.
16838 From head: Eliminate incorrect optimization that tried to avoid
16839 decoding the output of X*LookupString.
16840 (x_get_font_repertory): Delete charset declaration.
16842 2008-02-01 Kenichi Handa <handa@m17n.org>
16844 * coding.c (detect_coding_charset): If only ASCII bytes are found,
16846 (Fdefine_coding_system_internal): Setup
16847 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
16849 2008-02-01 Dave Love <fx@gnu.org>
16851 * coding.c (Fcheck_coding_system): Doc fix.
16853 * editfns.c (Finsert_byte): Return a proper value.
16855 2008-02-01 Kenichi Handa <handa@m17n.org>
16857 * coding.c (decode_coding): Fix args to translate_chars. Pay
16858 attention to Vstandard_translation_table_for_decode.
16859 (encode_coding): Fix args to translate_chars. Pay attention to
16860 Vstandard_translation_table_for_encode.
16862 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
16863 SINGLE_BYTE_CHAR_P.
16865 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
16866 not by SINGLE_BYTE_CHAR_P.
16868 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
16869 SINGLE_BYTE_CHAR_P.
16871 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
16872 SINGLE_BYTE_CHAR_P.
16874 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
16875 by SINGLE_BYTE_CHAR_P.
16877 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
16878 SINGLE_BYTE_CHAR_P.
16880 2008-02-01 Dave Love <fx@gnu.org>
16882 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
16884 2008-02-01 Dave Love <fx@gnu.org>
16886 * fns.c (Flanginfo): Fix typo.
16888 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
16890 2008-02-01 Kenichi Handa <handa@m17n.org>
16892 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
16893 (detect_coding_emacs_mule, detect_coding_iso_2022)
16894 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
16895 incomplete byte sequence. Don't update *mask when correctly detected.
16896 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
16897 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
16898 (detect_coding, detect_coding_system): Adjust for the changes above.
16900 2008-02-01 Kenichi Handa <handa@m17n.org>
16902 * character.c (char_string): Rename from
16903 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
16904 (string_char): Rename from string_char.
16906 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
16907 if C is greater than MAX_3_BYTE_CHAR.
16908 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
16909 string_char instead of string_char_with_unification.
16911 2008-02-01 Dave Love <fx@gnu.org>
16913 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
16915 2008-02-01 Kenichi Handa <handa@m17n.org>
16917 * keymap.c (push_key_description): Pay attention to force_multibyte.
16919 * regex.c (re_search_2): Fix for the case of unibyte buffer.
16921 2008-02-01 Dave Love <fx@gnu.org>
16923 * charset.c (define_charset_internal): Rename `supprementary'.
16925 * Makefile.in (lisp, shortlisp): Remove latin-N.
16927 2008-02-01 Dave Love <fx@gnu.org>
16929 * xfns.c (x_window, x_window): Use use_xim.
16931 * xterm.c (use_xim): Initialize.
16932 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
16933 (x_term_init): Maybe set use_xim.
16935 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
16937 2008-02-01 Kenichi Handa <handa@m17n.org>
16939 * search.c (search_buffer): Fix case-fold-search of multibyte
16941 (boyer_moore): Rename the last argument to char_high_bits.
16943 2008-02-01 Kenichi Handa <handa@m17n.org>
16945 * xdisp.c (display_string): Fix for the case of zero width glyph.
16947 * xfns.c (x_set_font): Change the error message of the case that
16948 x_new_fontset returns Qt.
16950 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
16951 (Finternal_set_lisp_face_attribute): Use signal_error for the
16952 error of invalid fontset.
16954 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
16955 fontset, return Qt.
16957 2008-02-01 Dave Love <fx@gnu.org>
16959 * unexelf.c (unexec): Make .got handling not SGI-specific.
16961 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
16963 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
16965 * keyboard.c (read_key_sequence): Fix type error.
16967 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
16970 * fontset.c (fontset_add): Return Lisp_Object.
16972 2008-02-01 Dave Love <fx@gnu.org>
16974 * charset.h (charset_ordered_list_tick): Declare extern.
16976 2008-02-01 Kenichi Handa <handa@m17n.org>
16978 The following changes (and some of 2008-02-01 changes of mine) are
16979 for handling syntax, category, and case conversion for unibyte
16980 characters by converting them to multibyte on the fly. With these
16981 changes, we don't have to setup syntax and case tables for unibyte
16982 characters in each language environment.
16984 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
16985 multibyte if necessary.
16987 * bytecode.c (Fbyte_code): Likewise.
16989 * character.h (LEADING_CODE_LATIN_1_MIN)
16990 (LEADING_CODE_LATIN_1_MAX): New macros.
16991 (unibyte_to_multibyte_table): Extern it.
16992 (unibyte_char_to_multibyte): New macro.
16993 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
16994 (CHAR_LEADING_CODE): New macro.
16995 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
16997 * character.c (unibyte_to_multibyte_table): New variable.
16998 (unibyte_char_to_multibyte): Move to character.h and define as macro.
16999 (multibyte_char_to_unibyte): If C is an eight-bit character,
17000 convert it to the corresponding byte value.
17002 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
17003 not 1, signals an error. Update the elements of
17004 unibyte_to_multibyte_table.
17005 (init_charset_once): Initialize unibyte_to_multibyte_table.
17006 (syms_of_charset): Define the charset `iso-8859-1'.
17008 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
17009 as is without converting it to unibyte. In a unibyte buffer,
17010 convert C to multibyte before checking the syntax.
17012 * lisp.h (unibyte_char_to_multibyte): Delete extern.
17014 * minibuf.c (Fminibuffer_complete_word): Use the macro
17015 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
17017 * regex.h (struct re_pattern_buffer): New member target_multibyte.
17019 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
17020 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
17021 that is zero, convert an eight-bit char to multibyte.
17022 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
17024 (PATFETCH): Convert an eight-bit char to multibyte.
17025 (HANDLE_UNIBYTE_RANGE): New macro.
17026 (regex_compile): Setup the compiled pattern for multibyte chars
17027 even if the given regex string is unibyte. Use PATFETCH_RAW
17028 instead of PATFETCH in many places. To handle `charset'
17029 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
17030 only for ASCII chars.
17031 (analyse_first) <exactn>: Simplify because the compiled pattern
17033 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
17034 <charset>: Use CHAR_LEADING_CODE to get leading codes.
17035 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
17036 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
17037 multibyte always 1.
17038 (re_search_2): In emacs, set the locale variable multibyte to 1,
17039 otherwise to 0. New local variable target_multibyte. Check it
17040 to decide the multibyteness of STR1 and STR2. If
17041 target_multibyte is zero, convert unibyte chars to multibyte
17042 before translating and checking fastmap.
17043 (TARGET_CHAR_AND_LENGTH): New macro.
17044 (re_match_2_internal): In emacs, set the locale variable multibyte
17045 to 1, otherwise to 0. New local variable target_multibyte. Check
17046 it to decide the multibyteness of STR1 and STR2. Use
17047 TARGET_CHAR_AND_LENGTH to fetch a character from D.
17048 <charset, charset_not>: If multibyte is nonzero, check fastmap
17049 only for ASCII chars. Call bcmp_translate with
17050 target_multibyte, not with multibyte.
17051 <begline>: Declare the local variable C as `unsigned'.
17052 (bcmp_translate): Change the last arg name to target_multibyte.
17054 * search.c (compile_pattern_1): Don't adjust the multibyteness of
17055 the regexp pattern and the matching target. Set cp->buf.multibyte
17056 to the multibyteness of the regexp pattern. Set
17057 cp->but.target_multibyte to the multibyteness of the matching target.
17058 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
17059 FETCH_STRING_CHAR_ADVANCE.
17060 (Freplace_match): Convert unibyte chars to multibyte.
17062 * syntax.c (char_quoted, back_comment, scan_words)
17063 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
17064 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
17065 unibyte chars to multibyte.
17066 (skip_chars): Delete the arg syntaxp, and move the code for
17067 handling syntaxes to skip_syntaxes. Change callers.
17068 Fix the case that the multibyteness of STRING and the current
17069 buffer doesn't match.
17070 (skip_syntaxes): New function.
17071 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
17072 SINGLE_BYTE_CHAR_P.
17074 2008-02-01 Kenichi Handa <handa@m17n.org>
17076 * xfaces.c (QCfontset): New variable.
17077 (LFACE_FONTSET): New macro.
17078 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
17079 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
17080 (Finternal_set_lisp_face_attribute)
17081 (Finternal_get_lisp_face_attribute): Handle QCfontset.
17082 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
17083 check also LFACE_FONTSET_INDEX.
17084 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
17085 attrs[LFACE_FONT_INDEX].
17086 (syms_of_xfaces): Intern and staticpro QCfontset.
17088 * dispextern.h (enum lface_attribute_index): New member
17089 LFACE_FONTSET_INDEX.
17091 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
17093 2008-02-01 Kenichi Handa <handa@m17n.org>
17095 * coding.c (coding_set_destination): Fix coding->destination for
17096 the case converting a region.
17097 (encode_coding_utf_8): Encode eight-bit chars as single byte.
17098 (encode_coding_object): Fix coding->dst_pos and
17099 coding->dst_pos_byte for the case converting a region.
17101 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
17103 * character.h (BYTE8_STRING): New macro.
17105 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
17107 2008-02-01 Kenichi Handa <handa@m17n.org>
17109 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
17110 characters by octal form.
17112 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
17114 * buffer.h (_fetch_multibyte_char_len): Delete extern.
17115 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
17116 _fetch_multibyte_char_len.
17117 (FETCH_CHAR_AS_MULTIBYTE): New macro.
17119 * casetab.c (set_canon, set_identity, shuffle): Simplify.
17121 * casefiddle.c (casify_object): Simplify. Handle the case that
17122 the case conversion change the byte length.
17123 (casify_region): Likewise.
17125 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
17127 * character.c (_fetch_multibyte_char_len): Delete this variable.
17128 (syms_of_character): Setup Vprintable_chars.
17130 * editfns.c (Fchar_equal): Fix for the unibyte case.
17131 (Finsert_byte): New function.
17132 (syms_of_editfns): Defsubr it.
17134 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
17135 of direct code 0x3ffff.
17137 * search.c (Freplace_match): Fix for the unibyte case.
17139 2008-02-01 Kenichi Handa <handa@m17n.org>
17141 * lread.c (safe_to_load_p): Fix the logic.
17143 * syntax.c (scan_words): Don't treat characters belonging to
17144 different scripts as constituting a word.
17146 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17148 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
17150 * emacs.c (main): In the case of --unibyte, instead of aborting on
17151 finding non-empty buffer, make it unibyte.
17153 2008-02-01 Kenichi Handa <handa@m17n.org>
17155 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
17156 to create a fontset.
17158 2008-02-01 Dave Love <fx@gnu.org>
17160 * character.c (Funibyte_char_to_multibyte): Doc fix.
17162 * xfns.c [HAVE_STDLIB_H]: Fix last change.
17164 2008-02-01 Kenichi Handa <handa@m17n.org>
17166 * fontset.c (fontset_add): Make the type `int'.
17167 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
17169 * character.c (unibyte_char_to_multibyte)
17170 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
17171 charset_unibyte, not charset_primary.
17173 * charset.h (charset_unibyte): Extern it instead of charset_primary.
17175 * charset.c (charset_unibyte): Rename from charset_primary.
17176 (Funibyte_charset): Rename from Fprimary_charset.
17177 (Fset_unibyte_charset): Rename from Fset_primary_charset.
17178 (syms_of_charset): Adjust for the above changes.
17180 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17181 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17182 it->multibyte_p is zero.
17184 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
17187 2008-02-01 Kenichi Handa <handa@m17n.org>
17189 * coding.c (Fdefine_coding_system_internal): Fix category setting
17190 for a coding system of type iso-2022.
17192 2008-02-01 Kenichi Handa <handa@m17n.org>
17194 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
17196 2008-02-01 Kenichi Handa <handa@m17n.org>
17198 * syntax.c (Vnext_word_boundary_function_table): New variable.
17199 (next-word-boundary-function-table): Declare it as a Lisp variable
17201 (scan_words): Call functions in Vnext_word_boundary_function_table
17204 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
17206 * fontset.c (fs_load_font): If fontp->charset is not negative,
17207 return fontp without setting its members.
17209 2008-02-01 Dave Love <fx@gnu.org>
17211 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
17213 * m/sparc.h (HAVE_ALLOCA): Delete.
17215 * s/irix6-5.h: Don't include strings.h.
17216 (bcopy, bzero, bcmp): Don't undef.
17218 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
17220 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
17221 (TIOCSIGSEND): Don't test IRIX6.
17222 (bcopy, bzero, bcmp): Define conditionally.
17224 2008-02-01 Kenichi Handa <handa@m17n.org>
17226 * buffer.c (Qas, Qmake, Qto): New variables.
17227 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
17228 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
17230 * callproc.c (Fcall_process): Don't call insert_1_both directly if
17231 we are inserting a process output into a multibyte buffer.
17233 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
17234 multibyte_char_to_unibyte.
17236 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
17237 by the primary charset, make it eight-bit char.
17238 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
17240 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
17241 (charset_8_bit__control, charset_8_bit_graphic)
17242 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
17243 (define_charset_internal): New function.
17244 (syms_of_charset): Call define_charset_internal for pre-defined
17247 * charset.h (charset_8_bit): Extern it.
17249 * coding.c (make_conversion_work_buffer): Adjust for the change
17250 of Fset_buffer_multibyte.
17251 (encode_coding_raw_text): Increment p0 in the loop.
17253 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
17255 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
17256 for the change of Fset_buffer_multibyte.
17258 * fns.c (Fstring_to_multibyte): New function.
17259 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
17261 2008-02-01 Dave Love <fx@gnu.org>
17263 * xfns.c (x_put_x_image): Declare args.
17265 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
17266 (try_font_list): Declare an arg.
17268 * xdisp.c (message2_nolog, set_message): Declare an arg.
17270 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
17272 * syntax.c (scan_sexps_forward): Declare an arg.
17274 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
17277 * lisp.h (Fnew_fontset): Declare.
17279 * keymap.c (push_key_description): Call CHARACTERP correctly.
17281 * fontset.c (fontset_add): Declare args. Call make_number correctly.
17282 (face_for_char): Delete unused vars.
17283 (Fset_fontset_font): Doc fix. Delete unused vars.
17285 * doc.c (Fsubstitute_command_keys): Delete unused vars.
17287 * composite.c (update_compositions): Declare arg.
17289 * cm.c (calccost, cmgoto): Declare args.
17291 * charset.c: Remove `emacs' conditional. Doc fixes.
17292 (map_char_table_for_charset): Declare.
17294 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
17296 * ccl.c: Remove `emacs' conditional.
17298 2008-02-01 Kenichi Handa <handa@m17n.org>
17300 The following changes are to allow specifying multiple font
17301 patterns for a character range (specified by script or charset).
17303 * Makefile.in (abbrev.o): Depend on syntax.h.
17304 (xfaces.o): Depend on charset.h.
17306 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
17307 SINGLE_BYTE_CHAR_P.
17309 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
17311 * character.h (Vchar_script_table): Extern it.
17313 * character.c (Vscript_alist): Delete.
17314 (Vchar_script_table, Qchar_script_table): New variable.
17315 (syms_of_character): Declare Vchar_script_table as a lisp variable
17318 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
17319 have property char-table-extra-slots, make no extra slot.
17321 * dispextern.h (struct face): Delete member `charset'.
17322 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
17323 SINGLE_BYTE_CHAR_P.
17324 (choose_face_font, lookup_non_ascii_face, font_name_registry):
17326 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
17327 (generate_ascii_font_name): Rename from generate_ascii_font.
17329 * fontset.h (get_font_repertory_func): New prototype.
17330 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
17331 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
17333 * fontset.c (Qprepend, Qappend): New variables.
17334 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
17335 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
17336 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
17337 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
17338 (fontset_ref_and_range, fontset_add, reorder_font_vector)
17339 (load_font_get_repertory): New functions.
17340 (fontset_set): Delete.
17341 (fontset_face): New arg FACE. Return face ID, not face.
17342 Complete re-write to handle new fontset structure. Change caller.
17343 (free_face_fontset): Use ASET istead of AREF (X) = Y.
17344 (face_for_char): Don't call lookup_face.
17345 (make_fontset_for_ascii_face): New arg FACE.
17346 (fs_load_font): New arg CHARSET_ID. Don't check
17347 Vfont_encoding_alist here.
17348 (find_font_encoding): New function.
17349 (list_fontsets): Use STRINGP, not ! NILP.
17350 (accumulate_script_ranges): New function.
17351 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
17352 re-written to handle new fontset structure.
17353 (Ffontset_font): Return a copy of element.
17354 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
17355 docstring of font-encoding-alist.
17357 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
17358 (Fset_fotset_font): Fix arguments to 5.
17360 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
17362 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
17363 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17364 (highlight_trailing_whitespace): Adjust for the change of
17367 * xfaces.c: Include charset.h.
17368 (load_face_font): Delete argument C. Change caller.
17369 (generate_ascii_font_name): Rename from generate_ascii_font.
17370 (font_name_registry): New function.
17371 (cache_face): Store ascii faces before non-ascii faces in buckets.
17372 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
17373 Lookup only ascii faces.
17374 (lookup_non_ascii_face): New function.
17375 (lookup_named_face): Delete argument C. Change caller.
17376 (lookup_derived_face): Delete argument C. Change caller.
17377 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
17378 a string, just call font_list with it.
17379 (choose_face_font): Delete arguments FACE and C. New arg
17380 FONT_SPEC. Change caller.
17381 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
17383 (realize_non_ascii_face): New function.
17384 (realize_x_face): Call load_face_font here.
17385 (realize_tty_face): Delete argument C. Change caller.
17386 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
17388 (dump_realized_face): Don't print charset of FACE.
17390 * xfns.c (x_set_font): Always call x_new_fontset and
17391 store_frame_parameter.
17392 (Fx_create_frame): Call x_new_fontset, not x_new_font.
17393 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
17395 * xterm.h (x_get_font_repertory): Extern it.
17397 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17398 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17399 it->multibyte_p is zero.
17400 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17401 (x_new_fontset): If FONTSETNAME doesn't match any existing
17402 fontsets, create a new one.
17403 (x_get_font_repertory): New function.
17405 2008-02-01 Kenichi Handa <handa@m17n.org>
17407 * coding.c (Ffind_coding_systems_region_internal): Detect an
17408 ASCII only string correctly.
17410 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
17413 2008-02-01 Kenichi Handa <handa@m17n.org>
17415 * lread.c: Include "coding.h".
17416 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
17417 (load_each_byte, unread_char): New variables.
17418 (readchar_backlog): Delete.
17419 (readchar): Return a character unless load_each_byte is nonzero.
17420 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
17421 cons. If unread_char is not -1, simply return it.
17422 (unreadchar): Handle the case that readcharfun is
17423 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
17424 (read_multibyte): Delete.
17425 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
17426 (read_emacs_mule_char): New functions.
17427 (Fload): Even if the file doesn't have the extension ".elc", if
17428 safe_to_load_p returns a positive version number, assume that the
17429 file contains bytecompiled code. If the version is less than 22,
17430 load the file while decoding multibyte sequences by emacs-mule.
17431 (readevalloop): Don't use readchar_backlog.
17432 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
17433 (Fread_from_string): Pay attention to the case that STREAM is a cons.
17434 (read_escape): Delete the arg BYTEREP.
17435 (read1): Set load_each_byte to 1 temporarily while handling
17436 #@NUMBER. Don't call read_multibyte.
17437 (read_vector): Call Fread with a cons. If readcharfun is
17438 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
17439 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
17440 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
17441 and Qload_force_doc_strings.
17443 2008-02-01 Kenichi Handa <handa@m17n.org>
17445 * xdisp.c (face_before_or_after_it_pos): Call
17446 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
17448 2008-02-01 Kenichi Handa <handa@m17n.org>
17450 * character.h (TRAILING_CODE_P): New macro.
17451 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
17452 (string_char_with_unification): Fix prototype.
17453 (Vscript_alist): Extern it.
17455 * character.c (Vscript_alist): New variable.
17456 (string_char_with_unification, str_as_unibyte)
17457 (string_escape_byte8): Add `const' to local variables.
17458 (syms_of_character): Declare script-alist as a Lisp variable.
17460 * charset.h (Vcharset_ordered_list): Extern it.
17461 (charset_ordered_list_tick): Extern it.
17462 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
17463 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
17464 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
17465 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
17466 (Funify_charset): Adjust for the change of Funify_charset.
17468 * charset.c (charset_ordered_list_tick): New variable.
17469 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
17470 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
17471 deunify intead of unify a charset.
17472 (string_xstring_p): Add `const' to local variables.
17473 (find_charsets_in_text): Add `const' to arguments and local variables.
17474 (encode_char): Adjust for the change of Funify_charset. Fix
17475 detecting of invalid code.
17476 (Fset_charset_priority): Increment charset_ordered_list_tick.
17477 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
17480 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
17481 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
17482 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
17483 (decode_coding_ccl, consume_chars)
17484 (Ffind_coding_systems_region_internal)
17485 (Fcheck_coding_systems_region): Add `const' to local variables.
17487 * print.c (print_object): Use octal form for printing the
17488 contents of a bool vector.
17490 2008-02-01 Dave Love <fx@gnu.org>
17492 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
17493 <version == 20>: Refuse to load.
17495 2008-02-01 Dave Love <fx@gnu.org>
17497 * fns.c: Move coding.h.
17498 (Qcodeset, Qdays, Qmonths): New.
17499 (concat): Use CHARACTERP instead of INTEGERP.
17500 (Flocale_codeset): Delete.
17501 (Flanginfo): New function.
17502 (syms_of_fns): Change accordingly.
17504 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
17506 2008-02-01 Dave Love <fx@gnu.org>
17508 * casetab.c (init_casetab_once, init_casetab_once): Fix
17509 CHAR_TABLE_SET call.
17511 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
17513 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
17515 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
17516 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
17517 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
17519 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
17521 * coding.c (ENCODE_DESIGNATION, decode_eol)
17522 (make_conversion_work_buffer, code_conversion_restore)
17523 (Fdefine_coding_system_internal): Convert Lisp types.
17524 (code_conversion_restore): Use EQ, not ==.
17525 (Fencode_coding_string): Fix code_convert_string call.
17527 * coding.h (code_convert_region): Fix prototype.
17529 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
17531 * fontset.c (fontset_ref, fontset_set, fs_load_font)
17532 (Ffontset_info): Convert Lisp types.
17534 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
17536 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
17538 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
17540 * chartab.c: Include "...h", not <...h> in some cases.
17542 * callproc.c (Fcall_process): Remove unused variables.
17544 2008-02-01 Dave Love <fx@gnu.org>
17546 * coding.c (Fset_coding_system_priority): Allow null arg list.
17548 2008-02-01 Dave Love <fx@gnu.org>
17550 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
17551 (Fself_insert_and_exit): Use CHARACTERP.
17553 * callproc.c (Fcall_process): Remove unused vars.
17555 * xterm.c (XTread_socket): Add extra dead keysyms.
17557 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
17559 * dispextern.h: Remove prototypes for redraw_frame,
17560 redraw_garbaged_frames.
17562 * cmds.c (Fself_insert_command): Use CHARACTERP.
17564 * chartab.c (make_sub_char_table): Remove unused var.
17565 (Fset_char_table_default, Fmap_char_table): Doc fix.
17567 * keymap.c (access_keymap): Remove generic char code.
17568 (push_key_description): Use CHARACTERP.
17570 2008-02-01 Dave Love <fx@gnu.org>
17572 * charset.c: Doc fixes.
17573 (Funify_charset): Extra checking.
17575 2008-02-01 Dave Love <fx@gnu.org>
17577 * lread.c: Remove some unused variables.
17578 (safe_to_load_p): If safe, return the magic number version byte.
17579 (Fload): Maybe use load-with-code-conversion.
17581 2008-02-01 Kenichi Handa <handa@m17n.org>
17583 * category.c (Fmodify_category_entry): Don't modify the contents
17584 of category_set for characters out of the range. Avoid
17585 unnecessary modification.
17587 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
17588 Vchar_unify_table. The default value of the table is now nil.
17590 * character.c (syms_of_character): Setup Vchar_width_table for
17591 eight-bit-control and raw-byte chars.
17593 * charset.h (enum define_charset_arg_index): Delete
17594 charset_arg_parents and add charset_arg_subset and
17595 charset_arg_superset.
17596 (enum charset_attr_index): Delete charset_parents and add
17597 charset_subset and charset_superset.
17598 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
17599 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
17600 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
17601 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
17602 (CHARSET_SUPERSET): New macros.
17603 (charset_work): Extern it.
17604 (ENCODE_CHAR): Use charset_work.
17605 (CHAR_CHARSET_P): Adjust for the change of encoder format.
17606 (map_charset_chars): Extern it.
17608 * charset.c (load_charset_map): Set the default value of encoder
17609 and deunifier char-tables to nil.
17610 (map_charset_chars): Change argument. Change callers. Use
17611 map_char_table_for_charset instead of map_char_table.
17612 (Fmap_charset_chars): New optional args from_code and to_code.
17613 (Fdefine_charset_internal): Adjust for the change of
17614 `define-charset' (:parents -> :subset or :superset).
17615 (charset_work): New variable.
17616 (encode_char, syms_of_charset): Adjust for the change of
17617 Fdefine_charset_internal.
17618 (Ffind_charset_string): Setup the vector `charsets' correctly.
17620 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
17621 the previous change.
17622 (char_table_ref_and_range): Adjust for the above change.
17623 (map_sub_char_table_for_charset): New function.
17624 (map_char_table_for_charset): New function.
17626 * keymap.c (describe_vector): Handle a char-table directly here.
17627 (describe_char_table): Delete.
17629 * lisp.h (map_charset_chars): Delete.
17631 2008-02-01 Dave Love <fx@gnu.org>
17633 * fns.c (count_combining): Comment out (unused).
17634 (Flocale_codeset): New.
17635 (syms_of_fns): Defsubr it.
17637 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
17640 2008-02-01 Dave Love <fx@gnu.org>
17642 * Makefile.in (chartab.o): Depend on charset.h.
17644 2008-02-01 Kenichi Handa <handa@m17n.org>
17646 * character.c (syms_of_character): Set the default value of
17647 Vprintable_chars to Qnil.
17649 2008-02-01 Dave Love <fx@gnu.org>
17651 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
17653 2008-02-01 Kenichi Handa <handa@m17n.org>
17655 * charset.c (load_charset_map): Handle the case that from < to
17658 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
17659 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
17660 Pay attention to raw-8-bit chars.
17662 2008-02-01 Kenichi Handa <handa@m17n.org>
17664 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
17665 It is not bytecompiled now.
17667 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
17668 (charset_jisx0208): New variables.
17669 (Fdefine_charset_internal): Setup them if appropriate.
17670 (init_charset_once): Initialize them to -1.
17672 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
17673 (charset_jisx0208): Extern them.
17675 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
17676 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
17677 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
17678 (setup_iso_safe_charsets): Fix arguments to Fassq.
17679 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
17680 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
17681 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
17682 (encode_coding_iso_2022): Change the 1st arg to
17683 ENCODE_ISO_CHARACTER to a variable.
17685 2008-02-01 Kenichi Handa <handa@m17n.org>
17687 * charset.h (enum define_charset_arg_index): New enums
17688 charset_arg_min_code and charset_arg_max_code.
17689 (struct charset): New member char_index_offset.
17691 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
17692 Take charset->char_index_offset into account.
17693 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
17694 args[charset_arg_max_code]. Setup charset.char_index_offset.
17695 (syms_of_charset): Fix args to Fdefine_charset_internal.
17697 2008-02-01 Dave Love <fx@gnu.org>
17699 * coding.c (decode_coding_utf_8): Reject overlong sequences.
17701 2008-02-01 Dave Love <fx@gnu.org>
17703 * coding.c: Doc fixes.
17704 (Fcoding_system_aliases): Fix return value.
17705 (Qmac): Remove (duplicated) definition.
17707 2008-02-01 Dave Love <fx@gnu.org>
17709 * charset.c (Fcharset_priority_list, Fset_charset_priority):
17712 * character.c (Fstring): Doc fix.
17714 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
17716 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
17717 (font-encoding-alist): Doc fix.
17719 2008-02-01 Dave Love <fx@gnu.org>
17721 * term.c (costs_set): Declare static, non-initialized for pcc.
17722 (encode_terminal_code): Remove unused var.
17724 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
17727 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
17729 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
17730 (suffixes): Move out of make_subsidiaries for K&R.
17732 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
17734 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
17736 2008-02-01 Dave Love <fx@gnu.org>
17738 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
17740 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
17742 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
17744 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
17746 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
17748 2008-02-01 Kenichi Handa <handa@m17n.org>
17750 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
17751 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
17753 2008-02-01 Kenichi Handa <handa@m17n.org>
17755 * coding.c (decode_coding_charset): Adjust for the change of
17756 Fdefine_coding_system_internal.
17757 (Fdefine_coding_system_internal): For a coding system of
17758 `charset' type, store a list of charset IDs in
17759 `charset_attr_charset_valids' element of coding attributes.
17761 2008-02-01 Kenichi Handa <handa@m17n.org>
17763 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
17764 (emacs_mule_char): New arg src. Delete arg `composition'. Change
17765 caller. Handle 2-byte and 3-byte charsets correctly.
17766 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
17767 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
17768 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
17769 (DECODE_EMACS_MULE_21_COMPOSITION): Call
17770 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
17772 (decode_coding_emacs_mule): Handle composition correctly. Rewind
17773 `src' and `consumed_chars' correctly before calling emacs_mule_char.
17774 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
17775 and alt&rule composition.
17776 (decode_coding_iso_2022): Handle composition correctly.
17777 (init_coding_once): Setup emacs_mule_bytes for private charsets.
17779 * charset.c (Fdefine_charset_internal): Fix bug for the case of
17780 re-defining a charset. If the charset has :emacs-mule-id, setup
17782 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
17784 2008-02-01 Kenichi Handa <handa@m17n.org>
17786 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
17787 (encode_coding_big5, encode_coding_charset): If coding requires safe
17788 encoding, produce a character specified by
17789 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
17791 2008-02-01 Dave Love <fx@gnu.org>
17793 * xterm.c (XSetIMValues): Declare.
17795 * process.c: Conditionally include sys/wait.h, pty.h.
17797 * print.c (print_object): Fix print format for 64-bit systems.
17799 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
17801 * buffer.c (emacs_strerror): Declare.
17803 * fontset.c (Fclear_face_cache): Declare.
17804 (accumulate_font_info): Comment-out (unused).
17805 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
17808 * character.h (string_escape_byte8): Declare.
17810 * charset.c (load_charset_map, load_charset_map_from_file): Remove
17812 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
17813 (Fmap_charset_chars): Doc fix.
17815 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
17816 (Fset_coding_system_priority, Fset_coding_system_priority)
17817 (Fdefine_coding_system_internal): Doc fix.
17819 2008-02-01 Dave Love <fx@gnu.org>
17821 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
17823 2008-02-01 Kenichi Handa <handa@m17n.org>
17825 * character.c (string_escape_byte8): Make multibyte string with
17828 * charset.c (Fmake_char): Delete unnecessary code.
17830 2008-02-01 Kenichi Handa <handa@m17n.org>
17832 * xfns.c (x_encode_text): Allocate coding.destination here, and
17833 call encode_coding_object with dst_object Qnil.
17835 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
17836 multibyte form correctly.
17838 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
17839 against Vfont_encoding_alist.
17841 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
17842 handling of charset list.
17843 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
17844 (decode_coding_object): Move point to coding->dst_pos before
17845 calling post-read-conversion function.
17846 (encode_coding_object): Give correct arguments to
17847 pre-write-conversion. Ignore the return value of
17848 pre-write-conversion function. Pay attention to the case that
17849 pre-write-conversion changes the current buffer. If dst_object is
17850 Qt, even if coding->src_bytes is zero, allocate at least one byte
17851 to coding->destination.
17853 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
17855 * charset.c (Fmake_char): Make it more backward compatible.
17856 (Fmap_charset_chars): Fix docstring.
17858 2008-02-01 Dave Love <fx@gnu.org>
17860 * coding.c: Doc fixes.
17861 (Fdefine_coding_system_alias): Use names, not symbols, in
17862 coding-system-alist.
17864 2008-02-01 Kenichi Handa <handa@m17n.org>
17866 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
17867 of calling free_realized_face.
17869 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
17871 * charset.c (read_hex): Don't treat SPC as a comment starter.
17872 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
17873 (Fdecode_char): Fix typo.
17875 2008-02-01 Kenichi Handa <handa@m17n.org>
17877 * charset.h (struct charset): New member `code_space_mask'.
17879 * coding.c (coding_set_source): Delete the local variable beg_byte.
17880 (encode_coding_charset, Fdefine_coding_system_internal):
17881 Delete the local variable charset.
17882 (Fdefine_coding_system_internal): Setup
17883 attrs[coding_attr_charset_valids] correctly.
17885 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
17886 member to check if CODE is valid or not.
17887 (Fdefine_charset_internal): Initialize `code_space_mask' member.
17888 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
17889 is within the range of charset->min_code and carset->max_code.
17891 2008-02-01 Dave Love <fx@gnu.org>
17893 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
17895 * dispextern.h (generate_ascii_font): Fix return type.
17897 * xfaces.c (generate_ascii_font): Fix arg declaration.
17899 * coding.c (coding_inherit_eol_type)
17900 (Fset_terminal_coding_system_internal)
17901 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
17903 2008-02-01 Kenichi Handa <handa@m17n.org>
17905 * coding.c (decode_coding_charset, encode_coding_charset): Handle
17906 multiple charsets correctly.
17908 2008-02-01 Kenichi Handa <handa@m17n.org>
17910 * search.c (boyer_moore): Fix handling of multibyte character
17913 * xdisp.c (display_mode_element): When the variable `elt' is
17914 changed, update `this' and `lisp_string'.
17916 2008-02-01 Kenichi Handa <handa@m17n.org>
17918 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
17920 * callproc.c (Fcall_process): Be sure to give the current buffer
17921 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
17923 * charset.c (struct charset_map_entries): New struct.
17924 (load_charset_map): Rename from parse_charset_map. New args
17925 entries and n_entries. Change caller.
17926 (load_charset_map_from_file): Rename from load_charset_map.
17927 Change caller. New arg control_flag. Call load_charset_map at
17929 (load_charset_map_from_vector): New function.
17930 (Fdefine_charset_internal): Setup charset.compact_codes_p.
17931 (encode_char): If the charset is compact, change a character index
17934 * coding.c (coding_alloc_by_making_gap): Check the case that the
17935 source and destination are the same correctly.
17936 (decode_coding_raw_text): Set coding->consumed_char and
17937 coding->consumed to 0.
17938 (produce_chars): If coding->chars_at_source is nonzero, update
17939 coding->consumed_char and coding->consumed before calling
17941 (Fdefine_coding_system_alias): Register ALIAS in
17942 Vcoding_system_alist.
17943 (syms_of_coding): Define `no-conversion' coding system at the tail.
17945 * fileio.c (Finsert_file_contents): Set coding_system instead of
17946 val. If the current buffer is multibyte, always call
17949 * xfaces.c (try_font_list): Give higher priority to fontset's
17950 family than face's family.
17952 2008-02-01 Kenichi Handa <handa@m17n.org>
17954 * callproc.c (Fcall_process): Be sure to give the current buffer
17955 to decode_coding_c_string.
17957 * xfaces.c (try_font_list): Give a family specified in a fontset
17958 higher priority than a family specified in a face.
17960 2008-02-01 Kenichi Handa <handa@m17n.org>
17962 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
17963 Fix arguments to insert_from_buffer.
17965 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
17967 2008-02-01 Kenichi Handa <handa@m17n.org>
17969 * coding.c (produce_chars): Set the variable `multibytep' correctly.
17970 (decode_coding_gap): Set coding->dst_multibyte correctly.
17972 2008-02-01 Kenichi Handa <handa@m17n.org>
17974 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
17975 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
17976 (encode_coding_utf_16): Substitute coding->default_char for
17977 non-Unicode characters.
17978 (decode_coding): Don't call record_insert here.
17979 (setup_coding_system): Initialize `surrogate' of
17980 coding->spec.utf_16 to 0.
17981 (EMIT_ONE_BYTE): Fix for multibyte case.
17983 * insdel.c (insert_from_gap): Call record_insert.
17985 2008-02-01 Kenichi Handa <handa@m17n.org>
17987 * casefiddle.c (casify_region): Fix multibyte case.
17989 * character.c (c_string_width): Add return type `int'.
17990 (char_string_with_unification): Delete arg ADVANCED.
17992 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
17993 (CHAR_STRING): Adjust for the change of char_string_with_unification.
17994 (CHAR_STRING_ADVANCE): Make it do-while statement.
17996 * chartab.c (sub_char_table_set_range): Optimize for the case
17997 DEPTH == 3. Add workaround code for a GCC optimization bug.
17999 * charset.c (parse_charset_map): Remove an unused variable.
18001 * coding.c: Delete unused variables.
18003 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
18004 earlier. If inserted is zero and the coding system doesn't
18005 require flushing, don't call decode_coding_gap.
18007 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
18009 2008-02-01 Kenichi Handa <handa@m17n.org>
18011 The following changes are for using Unicode as an internal
18012 character model, and use UTF-8 format for buffer/string
18015 * .gdbinit (xchartable): Adjust for the change of char table structure.
18016 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
18018 * Makefile.in (obj): Add character.o and chartab.o.
18019 (lisp, shortlisp): Remove utf-8.elc.
18020 (*.o): For many files, change dependency on charset.h to
18021 character.h, and add dependency on character.h.
18022 (character.o, chartab.o): New targets.
18024 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
18025 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
18026 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
18029 * dired.c, filelock.c: Include "character.h".
18031 * alloc.c: Include "character.h" instead of "charset.h".
18032 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
18033 (syms_of_alloc): Remove defsubr for Smake_char_table.
18035 * buffer.c: Include "character.h" instead of "charset.h", don't
18036 include "coding.h".
18037 (Fset_buffer_multibyte): Adjust for UTF-8.
18039 * buffer.h: EXFUN Fbuffer_live_p.
18041 * callproc.c: Include "character.h" instead of "charset.h".
18042 (Fcall_process): Big change for the new code-conversion APIs.
18044 * casetab.c: Include "character.h" instead of "charset.h".
18045 (set_canon, set_identity, shuffle): Adjust for the new
18046 map_char_table spec.
18047 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
18048 accessing the char table structure.
18050 * chartab.c: New file that implements char table.
18052 * category.c: Include "character.h".
18053 (copy_category_entry): New function.
18054 (copy_category_table): Call map_char_table and copy_category_entry.
18055 (Fmake_category_table): Initialize all top-level slots.
18056 (char_category_set): New function.
18057 (modify_lower_category_set): Delete.
18058 (Fmodify_category_entry): Call char_table_ref_and_range.
18060 * category.h (CATEGORY_SET): Just call char_category_set.
18062 * ccl.c: Include "character.h".
18063 (Qccl, Qcclp): New variables.
18064 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
18065 it's less than 256.
18066 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
18067 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
18069 (ccl_driver): Change types of argument, adjust code accordingly.
18070 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
18072 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
18074 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
18075 New members src_multibyte, dst_multibyte, consumed, and produced.
18076 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
18077 (CODING_SPEC_CCL_PROGRAM): New macro.
18078 (ccl_driver): Update prototype.
18079 (Qccl, Qcclp, Fccl_program_p): Extern them.
18080 (CHECK_CCL_PROGRAM): New macro.
18082 * character.c, character.h, chartab.c: New files.
18084 * charset.c: Mostly re-written. Move character and multibyte sequence
18085 handling codes to character.c.
18087 * charset.h: Mostly re-written. Move character and multibyte sequence
18088 handling codes to character.h.
18090 * coding.c, coding.h: Mostly re-written.
18092 * composite.c: Include "character.h" instead of "charset.h".
18093 (CHAR_WIDTH): Move to character.h.
18094 (HASH_KEY, HASH_VALUE): Delete.
18096 * composite.h (enum composition_method): Change order of enumeration
18099 * data.c: Include "character.h" instead of "charset.h".
18100 (Faref): Call CHAR_TABLE_REF for a char table.
18101 (Faset): Call CHAR_TABLE_SET for a char table.
18103 * dispextern.h (free_realized_face, check_face_attribytes)
18104 (generate_ascii_font): Extern them.
18105 (free_realized_multibyte_face): Delete extern.
18107 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
18110 * editfns.c: Include "character.h" instead of "charset.h".
18111 (Fchar_to_string): Always call CHAR_STRING.
18113 * emacs.c (main): Call init_charset_once, init_charset,
18114 syms_of_chartab, and syms_of_character.
18116 * fileio.c: Include "character.h" instead of "charset.h".
18117 (Finsert_file_contents): Big change for the new code-conversion API.
18118 (choose_write_coding_system, Fwrite_region): Likewise.
18119 (build_annotations_2): Delete.
18120 (e_write): Big change for the new code-conversion API.
18122 * fns.c: Include "character.h" instead of "charset.h".
18123 (copy_sub_char_table): Move to chartab.c.
18124 (Fcopy_sequence): Call copy_char_table for a char table.
18125 (concat): Delete codes calling count_multibyte.
18126 (string_char_to_byte, string_byte_to_char): Adjust for the new
18128 (internal_equal): Adjust for the change of char table structure.
18129 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
18130 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
18131 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
18132 (char_table_translate, optimize_sub_char_table)
18133 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
18135 (char_table_ref_and_index): Delete.
18136 (HASH_KEY, HASH_VALUE): Move to lisp.h.
18137 (Fmd5): Call preferred_coding_system instead of accessing
18138 Vcoding_category_list. Adjust for the new code-conversion API.
18139 (syms_of_fns): Move defsubr for char table related functions to
18142 * fontset.c: Mostly re-written.
18144 * fontset.h (struct font_info): Change type of the member encoding_type.
18145 (enum FONT_SPEC_INDEX): New enum.
18146 (fontset_font_pattern, fs_load_font): Update prototype.
18147 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
18149 * indent.c: Include "character.h" instead of "charset.h".
18150 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
18152 * insdel.c: Include "character.h" instead of "charset.h".
18153 (copy_text): Don't refer to Vnonascii_translation_table.
18154 (insert_from_gap): New function.
18156 * keyboard.c: Include "character.h" instead of "charset.h".
18157 (command_loop_1): Never call direct_output_forward_char before
18158 a non-ASCII character.
18159 (read_char): If Vkeyboard_translate_table is a char table, always
18160 translate a character.
18162 * keymap.c: Include "character.h".
18163 (store_in_keymap): Handle the case that IDX is a cons.
18164 (Fdefine_key): Handle the case that KEY is a cons and the car part
18165 is also a cons (range).
18166 (push_key_description): Adjust for the new character code.
18167 (describe_vector): Call describe_char_table for a char table.
18168 (describe_char_table): New function.
18170 * keymap.h (describe_char_table): Extern it.
18172 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
18173 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
18174 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
18175 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
18177 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
18179 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
18180 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
18181 (CHARTAB_SIZE_BITS_3): New macros.
18182 (chartab_size): Extern it.
18183 (struct Lisp_Char_Table): Re-design.
18184 (struct Lisp_Sub_Char_Table): New structure.
18185 (HASH_KEY, HASH_VALUE): Move from fns.c.
18186 (CHARACTERBITS): Define as 22.
18187 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
18188 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
18189 (GC_SUB_CHAR_TABLE_P): New macro.
18190 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
18191 (code_convert_string_norecord): Deleted extern.
18192 (init_character_once, syms_of_character, init_charset)
18193 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
18195 * lread.c: Include "character.h".
18196 (read_multibyte): New arg NBYTES.
18197 (read_escape): Change the meaning of returned *BYTEREP.
18198 (to_multibyte): Delete.
18199 (read1): Adjust the handling of char table and string.
18201 * print.c: Include "character.h" instead of "charset.h".
18202 (print_string): Convert 8-bit raw bytes to octal form by
18203 string_escape_byte8.
18204 (print_object): Adjust for the new multibyte form. Print 8-bit
18205 raw bytes always in octal form. Handle sub char table correctly.
18207 * process.c: Include "character.h" instead of "charset.h".
18208 (read_process_output, send_process): Adjust for the new
18209 code-conversion API.
18211 * puresize.h (BASE_PURESIZE): Increase.
18213 * regex.c: Include "character.h" instead of "charset.h".
18214 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
18215 (regex_compile): Accept a range whose starting and ending
18216 character have different leading bytes.
18217 (analyse_first): Adjust for the above change.
18219 * search.c: Include "character.h" instead of "charset.h".
18220 (search_buffer, boyer_moore): Adjust for the new multibyte form.
18221 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
18223 * syntax.c: Include "character.h" instead of "charset.h".
18224 (syntax_parent_lookup): Delete.
18225 (Fmodify_syntax_entry): Accept a cons as CHAR.
18226 (skip_chars): Adjust for the new multibyte form.
18227 (init_syntax_once): Call char_table_set_range instead of directly
18228 accessing the structure of a char table.
18230 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
18231 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
18232 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
18233 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
18235 * term.c: Include "buffer.h" and "character.h".
18236 (encode_terminal_code, write_glyphs): Adjust for the new
18237 code-conversion API.
18238 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
18240 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
18242 * xdisp.c: Include "character.h".
18243 (get_next_display_element): Adjust for the new multibyte form.
18244 (disp_char_vector): Adjust for the new char table structure.
18245 (decode_mode_spec_coding): Adjust for the new structure of
18247 (decode_mode_spec): Adjust for the new code-conversion API.
18249 * xfaces.c: Include "character.h" instead of "charset.h".
18250 (load_face_font): Adjust for the change of choose_face_font and
18252 (generate_ascii_font): New function.
18253 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
18254 (set_font_frame_param): Adjust for the change of choose_face_font.
18255 (free_realized_face): Make it public.
18256 (free_realized_faces_for_fontset): Rename from
18257 free_realized_multibyte_face. Free also faces realized for ASCII.
18258 (choose_face_font): Change arguments. Adjust for the change of
18259 fontset_font_pattern and FS_LOAD_FONT.
18261 * xfns.c: Include "character.h".
18262 (x_encode_text): Adjust for the new code-conversion API.
18264 * xselect.c: Don't include "charset.h".
18265 (selection_data_to_lisp_data): Adjust for the new code conversion API.
18267 * xterm.c: Include "character.h".
18268 (x_encode_char): New argument CHARSET. Change caller.
18269 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
18270 Call ENCODE_CHAR instead of SPLIT_CHAR.
18271 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
18272 CHAR_WIDTH instead of CHARSET_WIDTH.
18273 (XTread_socket): Adjust for the new code-conversion API.
18274 (x_new_font): Adjust for the change of FS_LOAD_FONT.
18275 (x_load_font): Adjust for the change of struct font.
18277 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18279 * xfaces.c (face_at_buffer_position): Remove unused vars.
18281 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18283 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
18284 Fix overflow checking.
18286 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18288 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
18289 Cancel previous change.
18291 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18293 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
18294 ccl->eight_bit_control. Fix check for buffer overflow.
18295 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
18296 (ccl_driver): Initialize extra_bytes to 0.
18298 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18300 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
18301 return it ORed with ctrl_modifier.
18303 2008-01-29 Miles Bader <miles@gnu.org>
18305 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
18307 2008-01-28 Jason Rumney <jasonr@gnu.org>
18309 * w32.c (stat): Don't double check for networked drive.
18311 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
18313 * window.c (run_window_configuration_change_hook): New function.
18314 Code extracted from set_window_buffer. Set the selected frame.
18315 (set_window_buffer): Use it.
18316 * window.h (run_window_configuration_change_hook): Declare.
18317 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
18319 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
18321 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
18323 * Makefile.in: Remove references to unused macros.
18325 2008-01-26 Eli Zaretskii <eliz@gnu.org>
18327 * w32.c (g_b_init_get_sid_sub_authority)
18328 (g_b_init_get_sid_sub_authority_count): New static variables.
18329 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
18330 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
18331 (init_user_info): Use them to retrieve uid and gid.
18332 Use 500/513, the Windows defaults, as Administrator's uid/gid.
18333 (fstat): Use pw_uid and pw_gid from the_passwd structure for
18334 st_uid and st_gid of the file.
18336 2008-01-26 Jason Rumney <jasonr@gnu.org>
18338 * w32.c (logon_network_drive): New function.
18341 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
18343 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
18344 invisible text covered with an ellipsis.
18346 2008-01-25 Richard Stallman <rms@gnu.org>
18348 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
18349 jump back to beginning. Move some other initializations after that.
18350 (Qwindow_text_change_functions, Vwindow_text_change_functions):
18352 (syms_of_xdisp): Init them.
18354 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
18356 * buffer.c (reset_buffer_local_variables):
18357 Implement `permanent-local-hook'.
18358 (Qpermanent_local_hook): New variable.
18359 (syms_of_buffer): Init and staticpro it.
18361 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
18363 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
18365 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
18367 * fns.c (Fclrhash): Return TABLE.
18369 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18371 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
18372 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
18373 is set even without positional changes.
18374 (x_scroll_bar_clear): Set bar->redraw_needed_p.
18376 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
18378 2008-01-23 Jason Rumney <jasonr@gnu.org>
18380 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
18382 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
18383 the unicode range available in MULE by locale-coding-system.
18384 Improve dbcs lead byte detection. Set event timestamp and modifiers
18387 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18389 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
18390 [MAC_OSX] (init_mac_osx_environment): Initialize it.
18391 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
18392 when used on child processes.
18394 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
18396 * dbusbind.c (Fdbus_method_return_internal): Rename from
18397 Fdbus_method_return.
18398 (Fdbus_unregister_object): Move to dbus.el.
18399 (Fdbus_call_method, Fdbus_method_return_internal)
18400 (Fdbus_send_signal): Improve debug messages.
18402 2008-01-20 Martin Rudalics <rudalics@gmx.at>
18404 * undo.c (undo_inhibit_record_point): New variable.
18405 (syms_of_undo): Initialize it.
18406 (record_point): Don't record point when undo_inhibit_record_point
18409 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
18411 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
18413 * xdisp.c (Qauto_hscroll_mode): New var.
18414 (syms_of_xdisp): Initialize it.
18415 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
18417 (hscroll_windows): Don't check automatic_hscrolling_p here.
18419 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
18420 vscroll if we're setting window-buffer to the value it already has.
18422 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
18424 * m/intel386.h: Remove references to XENIX.
18426 2008-01-17 Andreas Schwab <schwab@suse.de>
18428 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
18429 instead of HAVE_X86_64_LIB64_DIR.
18430 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
18432 2008-01-17 Glenn Morris <rgm@gnu.org>
18434 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
18435 to HAVE_X86_64_LIB64_DIR.
18437 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
18444 * s/hpux9shxr4.h: Remove files for systems no longer supported.
18446 * sysdep.c: Remove code containing references to symbols defined
18447 by unsupported systems.
18449 2008-01-16 Glenn Morris <rgm@gnu.org>
18451 * coding.c (select-safe-coding-system-function): Doc fix.
18453 2008-01-15 Glenn Morris <rgm@gnu.org>
18455 * config.in: Revert 2008-01-13 change: this is a generated file.
18457 2008-01-13 Tom Tromey <tromey@redhat.com>
18459 * lisp.h: Fix typo.
18461 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18467 * s/ptx4.h: Remove files for systems no longer supported.
18469 * callproc.c (Fcall_process): Fix previous change.
18471 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18473 * unexsunos4.c: Remove file, system not supported anymore.
18493 * alloc.c: Remove code containing references to symbols defined by
18494 unsupported systems.
18496 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
18498 * coding.c (detect_coding_mask): Fix previous change.
18500 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
18502 * coding.c (detect_coding_iso2022): New arg
18503 latin_extra_code_state. Allow Latin extra codes only
18504 when *latin_extra_code_state is nonzero.
18505 (detect_coding_mask): If there is a NULL byte, detect the encoding
18506 as UTF-16 or binary. If Latin extra codes exist, detect the
18507 encoding as ISO-2022 only when there's no other proper encoding is
18510 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18512 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
18515 2008-01-08 Richard Stallman <rms@gnu.org>
18517 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
18519 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
18521 * keyboard.c (parse_menu_item): Don't enclose key bindings on
18522 menu bar in parentheses.
18524 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
18528 * m/alliant-2800.h:
18536 * m/aviion-intel.h:
18631 * unexsni.c: Remove files for systems no longer supported.
18633 * m/intel386.h: Remove references to unsupported systems.
18635 * w32.c (get_emacs_configuration): Remove reference to i860.
18637 * sysdep.c: Remove dead code.
18639 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
18642 * m/masscomp.h: Remove files. Platform is obsolete.
18644 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
18646 * dbusbind.c (Fdbus_method_return): New function.
18647 (xd_read_message): Add the serial number to the event.
18648 (Fdbus_register_method): Activate the function.
18650 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
18652 * keyboard.c (read_key_sequence): Fix typo.
18654 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
18656 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
18657 (xd_signature, xd_append_arg): Handle element type detection for
18659 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
18660 SDATA () calls; this must be solved more general.
18661 (Fdbus_register_signal): Use SBYTES instead of strlen.
18663 2008-01-03 Magnus Henoch <magnus@zemdatav>
18665 * dbusbind.c (xd_append_arg): Use unsigned char instead of
18666 unsigned int for byte values (necessary for big-endian platform).
18667 (Fdbus_call_method): Handle the case of no returned arguments.
18669 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
18671 * dbusbind.c (xd_read_message): Use non-static input_event struct.
18673 2007-12-31 Magnus Henoch <mange@freemail.hu>
18675 * dbusbind.c (xd_signature): Signature of variant is just "v".
18677 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
18679 * dbusbind.c: Fix several errors and compiler warnings.
18680 Reported by Tom Tromey <tromey@redhat.com>.
18681 (XD_ERROR, XD_DEBUG_MESSAGE)
18682 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
18683 (xd_append_arg): Part for basic D-Bus types rewritten.
18684 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
18685 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
18687 (xd_read_message): Return Qnil. Don't signal an error; it is not
18688 useful during event reading.
18689 (Fdbus_register_signal): Signal an error if the check for
18691 (Fdbus_register_method): New function. The implementation is not
18692 complete, the call of the function signals an error therefore.
18693 (Fdbus_unregister_object): New function, renamed from
18694 Fdbus_unregister_signal. The initial check signals an error, if
18695 the object is not well formed.
18697 2007-12-30 Richard Stallman <rms@gnu.org>
18699 * textprop.c (get_char_property_and_overlay):
18700 Signal error if POSITION is out of range in a buffer.
18702 2007-12-29 Martin Rudalics <rudalics@gmx.at>
18704 * w32fns.c (Fx_create_frame): Make copy of frame parameters
18705 because the original parameters are in pure storage now.
18707 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18709 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
18711 2007-12-22 Eli Zaretskii <eliz@gnu.org>
18713 * callint.c (syms_of_callint) <command-history>: Add reference to
18714 history-length in the doc string.
18716 2007-12-17 Jason Rumney <jasonr@gnu.org>
18718 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
18719 before passing as wParam.
18721 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
18723 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
18724 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
18725 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
18726 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
18728 (Fdbus_call_method): Fix docstring.
18730 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
18732 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
18734 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
18735 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
18737 (xd_signature): New function.
18738 (xd_append_arg): Compute also signatures. Major rewrite.
18739 (xd_retrieve_arg): Make debug messages friendly.
18740 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
18741 Check for signatures of arguments.
18743 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
18745 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
18746 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
18747 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
18748 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
18749 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
18750 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
18751 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
18752 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
18753 (xd_retrieve_value): Remove. Functionality included in ...
18754 (xd_append_arg): New function.
18755 (Fdbus_call_method, Fdbus_send_signal): Apply it.
18757 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
18759 * dbusbind.c (top): Include <stdio.h>.
18760 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
18761 dbus_message_new_method_call and dbus_message_new_signal.
18762 (Fdbus_register_signal): Rename unique_name to uname.
18763 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
18764 non-existing unique name. Fix typos in matching rule. Return an
18765 object which is useful in Fdbus_unregister_signal.
18766 (Fdbus_unregister_signal): Reimplementation, in order to remove
18767 only the corresponding entry.
18768 (Vdbus_registered_functions_table): Change the order of entries.
18769 Apply these changes in xd_read_message and Fdbus_register_signal.
18771 2007-12-16 Andreas Schwab <schwab@suse.de>
18773 * fileio.c (Finsert_file_contents): Fix overflow check to not
18774 depend on undefined integer overflow.
18776 2007-12-14 Jason Rumney <jasonr@gnu.org>
18778 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
18779 for characters above 127.
18781 2007-12-13 Jason Rumney <jasonr@gnu.org>
18783 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
18784 before dereferencing array.
18785 (lookup_vk_code): Remove zero comparison.
18787 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
18789 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
18790 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
18791 Use `unsigned int' instead of `uint'.
18792 (xd_read_message, Fdbus_register_signal): Split expressions into
18793 multiple lines before operators "&&" and "||", according to the
18794 GNU Coding Standards.
18796 2007-12-14 Eli Zaretskii <eliz@gnu.org>
18798 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
18800 2007-12-12 Juri Linkov <juri@jurta.org>
18802 * buffer.c (Frename_buffer): In interactive spec replace
18803 `read-buffer' with `read-string' that uses `buffer-name-history'
18804 as history, and the current buffer's name as default.
18806 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
18808 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
18809 manipulating the backtrace manually.
18810 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
18811 (struct backtrace, backtrace_list): Remove.
18812 (command_loop_1): Remove dead var `no_direct'.
18814 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
18815 preserve non-built-in buffer-local variables.
18816 (Fkill_all_local_variables): Don't re-create&re-set permanent
18817 buffer-local variables.
18819 2007-12-09 Juri Linkov <juri@jurta.org>
18821 * buffer.c (Frename_buffer): Change interactive spec from "s" to
18822 Lisp code that uses `read-buffer' with current buffer as default.
18824 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
18826 * dbusbind.c (xd_read_message): Generate an event for every
18827 registered handler. There might be several handlers registered
18828 for the same signal.
18829 (Fdbus_register_signal): Don't overwrite a registration for the
18830 same signal. Add a new registration if handlers are different.
18831 (Vdbus_registered_functions_table): Rework doc string.
18833 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
18835 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
18836 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
18837 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
18838 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
18839 Unify argument lists.
18840 (xd_read_message, Fdbus_register_signal): Reorder and extend event
18841 arguments and hash table keys. Use unique name for service.
18842 (Fdbus_unregister_signal): Remove checks.
18843 (Vdbus_registered_functions_table): Fix doc string.
18845 2007-12-05 Magnus Henoch <mange@freemail.hu>
18847 * process.c (make_process): Initialize pty_flag to 0.
18849 2007-12-05 Jason Rumney <jasonr@gnu.org>
18851 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
18854 2007-12-05 Richard Stallman <rms@gnu.org>
18856 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
18858 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18860 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
18862 (mac_try_close_socket) [MAC_OSX]: New function.
18863 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
18864 Update cfsockets_for_select. Replace invalid CFRunLoop source.
18866 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
18867 Use mac_try_close_socket.
18869 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18871 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
18873 (copy_dysymtab): Compute relocation base here.
18874 (rebase_reloc_address) [__ppc64__]: New function.
18875 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
18878 2007-12-05 Jason Rumney <jasonr@gnu.org>
18880 * w32proc.c (sys_spawnve): Quote args with wildcards.
18882 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18884 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
18886 (unrelocate) [_LP64]: Set relocation base to address of data segment.
18888 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
18890 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
18891 Move check for Vdbus_registered_functions_table to
18892 xd_read_queued_messages.
18893 (xd_read_queued_messages): Protect xd_read_message calls by
18894 internal_condition_case_1.
18896 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
18898 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
18899 Qdbus_system_bus and Qdbus_session_bus, respectively.
18900 (Vdbus_intern_symbols): Remove.
18901 (Vdbus_registered_functions_table): New hash table.
18902 (XD_SYMBOL_INTERN_SYMBOL): Remove.
18903 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
18904 Rewrite in order to manage registered functions by hash table
18905 Vdbus_registered_functions_table.
18907 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
18909 * xterm.c: Update URL to Window Manager Specification in comment.
18911 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
18913 * config.in (HAVE_DBUS): Add.
18915 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
18916 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
18917 (obj): Add $(DBUS_OBJ).
18918 (LIBES): Add $(DBUS_LIBS).
18919 (dbusbind.o): New target.
18921 * dbusbind.c: New file.
18923 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
18925 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
18926 (Qdbus_event): New Lisp symbol.
18927 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
18928 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
18929 (keys_of_keyboard): Define dbus-event.
18931 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
18933 2007-12-01 Richard Stallman <rms@gnu.org>
18935 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
18937 2007-11-30 Jason Rumney <jasonr@gnu.org>
18939 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
18940 (w32con_reset_terminal_modes): Clear screen buffer.
18941 (w32_face_attributes): Don't use color indexes that are out of range.
18942 Only reverse the default colors.
18944 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
18947 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
18949 2007-11-29 Jason Rumney <jasonr@gnu.org>
18951 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
18952 (w32_face_attributes): Use Vtty_defined_color_alist to determine
18953 if the terminal colors are initialized.
18954 (unspecified_fg, unspecified_bg): Remove unused declarations.
18956 2007-11-29 Andreas Schwab <schwab@suse.de>
18958 * keyboard.c (apply_modifiers): Fix typo.
18960 2007-11-29 Richard Stallman <rms@gnu.org>
18962 * keymap.c (Fcurrent_local_map): Doc fix.
18964 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
18966 * s/gnu-kfreebsd.h: New file.
18968 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
18970 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
18971 Don't cast redundantly.
18973 * keyboard.c (KEY_TO_CHAR): New macro.
18974 (parse_modifiers, apply_modifiers): Accept integer arguments.
18975 (read_key_sequence): Use them to unify the "shift->unshift" mapping
18976 for chars and symbol keys.
18977 After doing such remapping, apply function-key-map again.
18979 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
18981 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
18984 2007-11-26 Andreas Schwab <schwab@suse.de>
18986 * process.c (list_processes_1): Fix indentation level of the
18989 2007-11-23 Andreas Schwab <schwab@suse.de>
18991 * editfns.c (Fformat): Handle %c specially since it requires the
18992 argument to be of type int.
18994 2007-11-23 Markus Triska <markus.triska@gmx.at>
18996 * emacs.c (main): Call init_editfns before init_process, since
18997 init_process sets Vprocess_connection_type depending on OS release.
18999 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
19001 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
19002 (find_symbol_value): Use do_symval_forwarding.
19004 * data.c (set_internal): Set the value in the `cons-cell' (for
19005 Buffer_Local_values) not only for frame-local variables.
19007 2007-11-22 Andreas Schwab <schwab@suse.de>
19009 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
19011 * keymap.c (Fsingle_key_description): Likewise.
19012 * print.c (print_object): Likewise.
19014 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
19016 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
19017 file for image is nil.
19019 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
19021 * term.c: Include stdarg.h.
19022 (fatal): Implement using varargs.
19023 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
19025 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19027 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
19028 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
19029 Update call to buffer_slot_type_mismatch.
19030 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
19031 (buffer_slot_type_mismatch): Update.
19032 * buffer.c (buffer_local_types): Remove.
19033 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
19034 (defvar_per_buffer): Set the type in the buffer_objfwd.
19036 2007-11-21 Jason Rumney <jasonr@gnu.org>
19038 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
19039 CreateFileMapping returns NULL on failure.
19041 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19043 * search.c (Fset_match_data): Remove the `evaporate' feature.
19044 (unwind_set_match_data): Don't use the `evaporate' feature.
19046 2007-11-21 Jason Rumney <jasonr@gnu.org>
19048 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
19050 * w32console.c (w32con_write_glyphs): Remove unused variables.
19052 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
19054 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
19056 * s/darwin.h (MULTI_KBOARD): Remove.
19058 * macfns.c (x_create_tip_frame, Fx_create_frame)
19059 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
19061 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
19063 * buffer.c (Fbuffer_local_value): Remove redundant test.
19064 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
19065 than in `current-buffer' to match the comment.
19066 Do the swap using swap_in_global_binding.
19068 * data.c (store_symval_forwarding, set_internal):
19069 * eval.c (specbind): Remove dead code.
19071 * coding.c (detect_coding, Fupdate_coding_systems_internal):
19072 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
19073 Since we do not want to see internal Lisp_*fwd objects here.
19075 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
19077 * sysdep.c (init_system_name): Use getaddrinfo if available.
19079 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
19080 (x_scroll_bar_note_movement): start, end, with, height in struct
19081 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
19083 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
19085 * puresize.h (BASE_PURESIZE): Increase to 1190000.
19087 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
19089 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
19090 This undoes Richard's change of 14-Oct-2002.
19092 * alloc.c (allocate_other_vector):
19093 * lisp.h (allocate_other_vector): Remove.
19095 * window.c (struct save_window_data): Move non-lisp data to the end
19096 and make it `int' rather than Lisp_Object.
19097 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
19098 Done wrap/unwrap integer values.
19099 (Fset_window_configuration, compare_window_configurations):
19100 Update use of fields to their new types.
19102 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
19103 Turn integer fields into `int'. Merge x_window_low and x_window_high.
19104 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
19105 (SET_SCROLL_BAR_X_WINDOW): Remove.
19106 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
19107 Access the new x_window field directly.
19108 * xterm.c (x_scroll_bar_create): Use a pseudovector.
19109 Don't wrap/unwrap integers into Lisp_Objects.
19110 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
19111 (x_scroll_bar_report_motion):
19112 Don't wrap/unwrap integers into Lisp_Objects.
19113 (x_term_init): Use SDATA.
19114 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
19115 (x_scroll_bar_set_handle, x_scroll_bar_remove)
19116 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
19117 (x_scroll_bar_report_motion, x_scroll_bar_clear):
19118 * xfns.c (x_set_background_color):
19119 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
19120 Access the new x_window field directly.
19122 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
19123 (allocate_pseudovector): Make non-static.
19125 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
19126 (allocate_pseudovector): Declare.
19127 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
19129 2007-11-15 Andreas Schwab <schwab@suse.de>
19131 * editfns.c (Fformat): Correctly format EMACS_INT values.
19132 Also take precision into account when formatting an integer.
19134 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
19136 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
19138 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
19139 (syms_of_keyboard): Defsubr it.
19141 * data.c (swap_in_global_binding): Fix longstanding bug where
19142 store_symval_forwarding was not called with the right second argument,
19143 thus causing objfwd-ing from being dropped.
19145 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
19147 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
19148 (Fx_display_pixel_height, Fx_display_planes)
19149 (Fx_display_color_cells, Fx_server_max_request_size)
19150 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19151 (Fx_display_visual_class, Fx_display_save_under):
19152 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
19153 (Fx_display_pixel_height, Fx_display_planes)
19154 (Fx_display_color_cells, Fx_server_max_request_size)
19155 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
19156 (Fx_display_mm_height, Fx_display_mm_width)
19157 (Fx_display_backing_store, Fx_display_visual_class)
19158 (Fw32_select_font, Fx_display_save_under):
19159 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
19160 (Fx_display_pixel_height, Fx_display_planes)
19161 (Fx_display_color_cells, Fx_server_max_request_size)
19162 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19163 (Fx_display_save_under): Fix typos in docstrings.
19165 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
19167 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
19168 corresponding to deleted entries; they are an implementation detail.
19169 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
19171 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
19172 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
19173 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
19174 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
19175 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
19176 (Fw32_define_rgb_color, Fw32_load_color_file)
19177 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
19178 Fix typos in docstrings.
19179 (Fx_server_version): Reflow docstring.
19180 (Fw32_shell_execute): Doc fixes.
19182 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
19184 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
19185 if w32_parse_hot_key returned nil.
19187 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
19189 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
19191 2007-11-09 Jason Rumney <jasonr@gnu.org>
19193 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
19195 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
19197 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
19198 Remove W32_SCROLL_BAR_CLICK_EVENT.
19200 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
19201 Add MULTIMEDIA_KEY_EVENT.
19203 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
19204 (lispy_multimedia_keys) [WINDOWSNT]: New array.
19205 (make_lispy_event) [WINDOWSNT]: Use it to translate
19206 MULTIMEDIA_KEY_EVENT.
19208 * w32term.h (WM_APPCOMMAND): Define if not already.
19209 (GET_APPCOMMAND_LPARAM): Likewise.
19211 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
19214 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
19215 (syms_of_w32fns): Export and initialize it.
19216 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
19218 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
19220 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
19223 * xdisp.c (handle_face_prop): Fix last change.
19225 2007-11-09 Richard Stallman <rms@gnu.org>
19227 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
19228 not just for after-strings and before-strings.
19229 Call face_for_overlay_string and pass the overlay to it.
19230 (handle_display_prop): Determine whether property came from an overlay.
19231 Pass OVERLAY arg to handle_single_display_spec.
19232 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
19233 (load_overlay_strings): Fill in it->string_overlays.
19234 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
19236 * xfaces.c (face_for_overlay_string): Function renamed from
19237 face_at_buffer_position_no_overlays, and add arg OVERLAY.
19239 * dispextern.h (struct it): New elt string_overlays.
19240 New elt from_overlay, also in stack.
19241 Rearrange a few elements.
19242 (face_for_overlay_string): Decl renamed from
19243 face_at_buffer_position_no_overlays, and add argument.
19245 2007-11-09 Richard Stallman <rms@gnu.org>
19247 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
19248 to get the base face for an overlay string.
19250 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
19252 * xfaces.c (face_at_buffer_position_no_overlays): New function.
19254 * xdisp.c (handle_stop): Move some code out of loop.
19256 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19258 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
19259 Fix conversion from Lisp object to ATSUFontID.
19261 2007-11-09 Jason Rumney <jasonr@gnu.org>
19263 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
19265 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19267 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
19268 Don't assume regions are aligned to page boundary.
19269 (print_load_command_name): Add LC_UUID if defined.
19271 2007-11-09 Richard Stallman <rms@gnu.org>
19273 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
19275 2007-11-07 Jason Rumney <jasonr@gnu.org>
19277 * s/windows95.h: Remove.
19279 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
19281 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
19282 abort with a message on unhandled store_type values.
19284 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
19286 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
19287 Remove HAVE_X11R5 and HAVE_X11R4.
19289 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19291 * Makefile.in: Remove references to sunfns.c and sunfns.o.
19293 2007-11-01 Johan Bockgård <bojohan@gnu.org>
19295 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
19296 Don't set s->stippled_p here, since it has already been set by
19297 x_set_glyph_string_gc from x_draw_glyph_string.
19299 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19301 * sunfns.c: Remove file.
19305 * m/sparc.h: Remove Sun windows code.
19307 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
19309 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
19310 (init_keyboard): Set current_kboard's window-system to nil.
19311 (tty_read_avail_input): Typo.
19312 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
19314 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
19321 * Makefile.in: Remove all mentions of X10.
19323 * dispnew.c (syms_of_display): Don't mention version 10.
19325 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
19327 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
19328 ($(BLD)/abbrev.$(O)): Remove.
19330 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
19332 Rewrite abbrev.c in Elisp.
19333 * image.c (Qcount): Don't declare as extern.
19334 (syms_of_image): Initialize and staticpro `Qcount'.
19335 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
19336 * emacs.c (main): Don't call syms_of_abbrev.
19337 * Makefile.in (obj): Remove abbrev.o.
19338 (abbrev.o): Remove.
19339 * abbrev.c: Remove.
19341 2007-10-26 Martin Rudalics <rudalics@gmx.at>
19343 * window.c (window_min_size_2): Don't count header-line.
19345 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
19347 * frame.h (struct frame): Move all bit fields after the first bit
19348 field to take advantage of the available space. Group all the
19349 chars together to reduce wasted space due to padding.
19351 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
19353 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
19355 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
19356 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
19357 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
19358 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
19359 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
19360 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
19361 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
19362 (last_marked, mark_object_loop_halt): Make static.
19364 * frame.c (syms_of_frame) <delete-frame-functions>:
19365 Fix typo in docstring.
19367 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
19369 * w32.c (init_environment): Fix tiny memory leak.
19370 (w32_get_resource): Remove unused variable `ok'.
19372 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
19374 Make `window-system' into a keyboard-local variable (rather than
19375 frame-local as done originally by multi-tty).
19377 * keyboard.h (struct kboard): Add Vwindow_system.
19378 * keyboard.c (init_kboard): Set a default for Vwindow_system.
19379 (mark_kboards): Mark Vwindow_system.
19381 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
19382 (init_display): Don't set the obsolete `window-system' frame-param.
19384 * xterm.c (x_term_init):
19385 * w32term.c (w32_create_terminal):
19386 * term.c (init_tty): Set Vwindow_system.
19387 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
19388 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
19390 * xfns.c (Fx_create_frame, x_create_tip_frame):
19391 * w32fns.c (Fx_create_frame, x_create_tip_frame):
19392 * macfns.c (Fx_create_frame):
19393 Don't set the obsolete `window-system' frame-param.
19395 * frame.h (Qwindow_system): Remove.
19396 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
19397 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
19399 2007-10-24 Richard Stallman <rms@gnu.org>
19401 * frame.c (x_figure_window_size): For fullscreen case,
19402 set USPosition | PPosition without clobbering rest of window_prompting.
19404 * keyboard.c (Fcurrent_idle_time): Doc fix.
19406 * print.c (Fwith_output_to_temp_buffer): Doc fix.
19408 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
19410 * process.c (unwind_request_sigio): Only define if __ultrix__.
19412 * callproc.c (child_setup): Remove spurious *.
19414 * lisp.h (Fget_text_property): Declare.
19415 (have_menus_p): Declare it here rather than in sys-dep header files.
19416 * macterm.h (have_menus_p):
19417 * msdos.h (have_menus_p):
19418 * xterm.h (have_menus_p): Remove.
19420 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
19421 (Fmake_variable_frame_local): Just check the variable's const-ness
19422 rather than checking nil or t.
19424 2007-10-22 Jason Rumney <jasonr@gnu.org>
19426 * w32fns.c: Include math.h.
19427 (w32_abort): Declaration moved to nt/config.nt.
19429 * s/ms-w32.h (HAVE_STDLIB_H): Define.
19430 (abort): Redefinition moved to nt/config.nt.
19432 * m/windowsnt.h: Remove.
19434 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
19436 * emacs.c (Fdump_emacs): Fix typo in message.
19437 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
19438 <installation-directory>: Reflow docstring.
19440 2007-10-22 Juri Linkov <juri@jurta.org>
19442 * minibuf.c: Allow minibuffer default to be a list of default values.
19443 With empty input use the first element of this list as returned default.
19445 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
19446 (read_minibuf): If defalt is cons, set histstring to its car.
19447 (Fread_string): If default_value is cons, set val to its car.
19448 (Fread_buffer): If def is cons, use its car.
19449 (Fcompleting_read): If defalt is cons, set val to its car.
19451 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
19453 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
19455 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
19457 * doc.c (Fdocumentation): Check for advice in all cases.
19459 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
19461 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
19463 2007-10-19 Richard Stallman <rms@gnu.org>
19465 * doc.c (Fdocumentation): Check for and handle an advised function.
19467 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
19469 * process.c (Fset_process_filter): Doc fix.
19471 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
19473 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
19474 which caused key-translation-map to applied repeatedly (thus breaking
19477 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19479 * xselect.c (x_own_selection, x_handle_selection_clear)
19480 (x_clear_frame_selections):
19481 * w32menu.c (list_of_panes, list_of_items):
19482 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
19483 * textprop.c (validate_plist, interval_has_all_properties)
19484 (interval_has_some_properties, interval_has_some_properties_list)
19485 (add_properties, text_property_list):
19486 * process.c (Fget_buffer_process, list_processes_1, status_notify):
19487 * minibuf.c (Fassoc_string):
19488 * macselect.c (x_own_selection, x_clear_frame_selections)
19489 (Fx_disown_selection_internal):
19490 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
19491 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
19493 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
19495 * process.c: Link to libs for calling res_init() if available.
19496 (Fmake_network_process): Call res_init() before getaddrinfo or
19497 gethostbyname, if possible.
19499 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19501 * lread.c (read1): Set pvectype for char_tables.
19503 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
19504 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
19506 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
19508 * alloc.c (free_misc): Use XMISCTYPE.
19509 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
19511 2007-10-17 Glenn Morris <rgm@gnu.org>
19513 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
19514 (syms_of_minibuf): Add Qcompletion_ignore_case.
19515 * dired.c (Qcompletion_ignore_case): Change to external.
19516 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
19517 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
19518 (Fread_file_name): Use it rather than intern'ing.
19520 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
19521 (Fread_coding_system): Ignore case of user input.
19523 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19525 * xdisp.c (handle_display_prop): Ignore display specs after
19526 replacing one when string text is being replaced.
19527 (handle_single_display_spec): Pretend as if characters with display
19528 property haven't been consumed only when buffer text is being replaced.
19530 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
19532 * xfns.c (Fx_create_frame, Fx_display_list):
19533 * window.c (window_fixed_size_p, enlarge_window)
19534 (shrink_window_lowest_first):
19535 * macterm.c (init_font_name_table):
19536 * macfns.c (Fx_create_frame, Fx_display_list):
19537 * lread.c (close_load_descs):
19538 * keyboard.c (read_char_x_menu_prompt):
19539 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
19540 * coding.c (code_convert_region_unwind): Test the type of an object
19541 rather than just !NILP before extracting data from it.
19543 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
19545 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
19546 (XMISCANY): New macro.
19547 (XMISCTYPE): Use it.
19548 (struct Lisp_Misc_Any): New type.
19549 (union Lisp_Misc): Use it.
19550 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
19551 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
19552 (find_symbol_value, set_internal, default_value, Fset_default)
19553 (Fmake_variable_buffer_local, Fmake_local_variable)
19554 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
19555 (Flocal_variable_if_set_p, Fvariable_binding_locus):
19556 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
19557 * alloc.c (allocate_buffer): Set the size and tag.
19558 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
19560 (die): Follow the GNU convention for error messages.
19561 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
19562 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
19564 (set_buffer_internal_1):
19565 * frame.c (store_frame_param):
19566 * eval.c (specbind):
19567 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
19569 * doc.c (Fsnarf_documentation): Simplify.
19571 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
19573 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
19574 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
19576 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
19578 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
19580 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
19582 * eval.c (do_autoload): Don't save autoloads.
19584 * data.c (Ffset): Save autoload of the function being set.
19586 2007-10-07 John Paul Wallington <jpw@pobox.com>
19588 * xfns.c (x_create_tip_frame): Set the `display-type' frame
19589 parameter before setting up faces.
19591 2007-10-13 Eli Zaretskii <eliz@gnu.org>
19593 * ccl.c (Fregister_code_conversion_map):
19594 * keyboard.c (append_tool_bar_item): Reformat last change.
19596 * lisp.h (eabs): Rename from `abs'. All callers changed.
19598 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
19600 * buffer.c (add_overlay_mod_hooklist):
19601 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
19602 * fontset.c (make_fontset):
19603 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
19604 (append_tool_bar_item):
19605 * macmenu.c (grow_menu_items):
19606 * w32menu.c (grow_menu_items):
19607 * xmenu.c (grow_menu_items): Use larger_vector.
19609 2007-10-13 Eli Zaretskii <eliz@gnu.org>
19611 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
19612 selected frame'' on MSDOS).
19614 2007-10-12 Martin Rudalics <rudalics@gmx.at>
19616 * frame.c (Qexplicit_name): New variable.
19617 (x_report_frame_params): Report it in parameter alist.
19618 (syms_of_frame): Intern and staticpro it.
19620 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
19622 * macfns.c (x_create_tip_frame): Set terminal for frame.
19624 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
19626 * frame.c (Qenvironment): Remove.
19627 (syms_of_frame) <Qenvironment>: Don't initialize.
19628 (Fdelete_frame): Don't treat the `environment' param specially.
19629 * frame.h (Qenvironment): Don't declare.
19630 * callproc.c (set_initial_environment): Don't set unused frame param.
19632 * frame.c (Fframe_with_environment): Remove.
19633 (syms_of_frame) <Sframe_with_environment>: Don't declare.
19635 * lisp.h (Fframe_with_environment): Don't declare.
19637 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
19639 * indent.c (indent_tabs_mode, last_known_column)
19640 (last_known_column_modified): Make static.
19641 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
19643 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
19645 * puresize.h (BASE_PURESIZE): Increase to 1170000.
19647 2007-10-09 Jason Rumney <jasonr@gnu.org>
19649 * w32term.c (x_set_window_size): Disable code that attempts to tell
19650 Lisp code about a size change before it actually happens.
19652 2007-10-09 Richard Stallman <rms@gnu.org>
19654 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
19655 return HANDLED_RETURN.
19657 2007-10-08 Martin Rudalics <rudalics@gmx.at>
19659 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
19660 when there's an unread command event.
19662 * frame.c (focus_follows_mouse): Move here from frame.el to allow
19663 window autoselection act appropriately when leaving selected frame.
19664 (syms_of_frame): Initialize focus_follows_mouse.
19665 * frame.h (focus_follows_mouse): Extern it.
19666 * macterm.c (XTread_socket): When focus_follows_mouse is nil
19667 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
19668 * msdos.c (dos_rawgetc): Likewise.
19669 * w32term.c (w32_read_socket): Likewise.
19670 * xterm.c (handle_one_xevent): Likewise.
19671 * xdisp.c (syms_of_xdisp): In doc-string of
19672 mouse-autoselect-window mention focus-follows-mouse.
19674 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19676 * macterm.c (mac_load_query_font): Fix missing return value.
19677 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
19680 2007-10-08 Richard Stallman <rms@gnu.org>
19682 * xdisp.c (get_window_cursor_type): Implement documented behavior
19683 for cursor-in-non-selected-windows = t.
19685 2007-10-08 Jason Rumney <jasonr@gnu.org>
19687 * w32.c (w32_get_resource): Always close registry keys.
19689 2007-10-08 Jason Rumney <jasonr@gnu.org>
19691 * makefile.w32-in (LIBS): Add COMCTL32.
19693 * w32fns.c (globals_of_w32fns): Init common controls.
19695 2007-10-08 Richard Stallman <rms@gnu.org>
19697 * image.c (our_memory_buffer): Rename from omfib_buffer.
19699 2007-10-08 Richard Stallman <rms@gnu.org>
19701 * buffer.c (Foverlays_at): Doc fix.
19703 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
19705 * fns.c (Fplist_put): Preserve uneven tail data.
19707 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
19709 * termhooks.h (enum event_kind): Remove trailing comma.
19711 * frame.h (enum): Remove trailing comma.
19713 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
19715 * w32proc.c (delete_child): Don't terminate threads of zombies.
19717 2007-10-08 Martin Rudalics <rudalics@gmx.at>
19719 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
19721 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
19722 last-repeatable-command.
19723 (init_kboard): Initialize Vlast_repeatable_command.
19724 (command_loop_1): Set it to real_this_command unless that was
19725 bound to an input event.
19726 (mark_kboards): Mark it.
19728 2007-10-08 Richard Stallman <rms@gnu.org>
19730 * eval.c (condition-case): Doc fix.
19732 2007-10-08 Masatake YAMATO <jet@gyve.org>
19734 * xfaces.c (tty_supports_face_attributes_p): Fix code
19735 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
19736 was copied and not edited.
19738 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
19740 Add new `input-decode-map' keymap and use it for terminal
19742 * keyboard.h (struct kboard): Add Vinput_decode_map.
19743 Remove Vlocal_key_translation_map.
19744 * keyboard.c (read_key_sequence): Add support for input-decode-map.
19745 (init_kboard): Init input-decode-map.
19746 Replace local-key-translation-map back with key-translation-map.
19747 (syms_of_keyboard): Declare input-decode-map.
19748 Remove local-key-translation-map. Update docstrings.
19749 (mark_kboards): Mark Vinput_decode_map.
19750 Don't mark Vlocal_key_translation_map.
19751 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
19752 Replace local-key-translation-map back with key-translation-map.
19753 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
19754 Bind in input-decode-map rather than function-key-map.
19756 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
19757 This was made redundant by the previous introduction of XSETPVECTYPE.
19759 2007-10-09 Richard Stallman <rms@gnu.org>
19761 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
19763 2007-09-29 Richard Stallman <rms@gnu.org>
19765 * eval.c (internal_condition_case_2, internal_condition_case_1)
19766 (internal_condition_case): Reenable abort if x_catching_errors ()
19767 to see if that really happens and why.
19769 2007-10-06 Andreas Schwab <schwab@suse.de>
19771 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
19773 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
19775 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
19777 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
19779 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
19781 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
19783 * window.h (struct window):
19784 * window.c (struct save_window_data, struct saved_window):
19785 * termhooks.h (struct terminal):
19786 * process.h (struct Lisp_Process):
19787 * frame.h (struct frame):
19788 * buffer.h (struct buffer):
19789 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
19790 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
19791 The size field of (pseudo)vectors is now unsigned.
19792 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
19794 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
19795 Turn `count' into an integer.
19797 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
19798 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
19799 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
19800 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
19801 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
19803 * alloc.c (allocate_pseudovector): New fun.
19804 (ALLOCATE_PSEUDOVECTOR): New macro.
19805 (allocate_window, allocate_terminal, allocate_frame)
19806 (allocate_process): Use it.
19807 (mark_vectorlike): New function.
19808 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
19809 (mark_terminals): Use it.
19810 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
19811 (Fmake_byte_code): Use XSETPVECTYPE.
19813 * frame.c (Fframe_parameters): Minor simplification.
19815 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
19817 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
19819 * buffer.c (Fget_buffer_create, init_buffer_once):
19820 * lread.c (defsubr):
19821 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
19823 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
19824 defined differently in the m/*.h files.
19825 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
19826 (XSETPVECTYPE): New macro.
19827 (XSETPSEUDOVECTOR): Use it.
19829 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
19830 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
19832 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
19833 * lread.c (defvar_per_buffer):
19834 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
19836 * window.c (candidate_window_p): Only consider as visible frames that
19837 are on the same terminal.
19839 * m/ibms390x.h (MARKBIT): Remove unused macro.
19841 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
19843 * lread.c (Fload): Fix typo in docstring.
19845 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
19847 * floatfns.c (Fexpt): Manually check for overflows, so that a power
19848 of a non-zero value can't yield zero.
19850 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
19852 * term.c (term_clear_mouse_face, term_mouse_highlight)
19853 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
19855 * print.c (safe_debug_print): Use XHASH.
19857 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
19858 Lisp elements such as tags.
19859 (XHASH): New macro.
19861 (SREF, SSET, STRING_COPYIN): Use SDATA.
19862 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
19864 * alloc.c (mark_terminal): Remove left-over declaration.
19865 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
19866 (allocate_vectorlike): Remove type argument. Adjust callers.
19867 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
19868 Only handle the one remaining MEM_TYPE_VECTORLIKE.
19870 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
19871 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
19872 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
19873 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
19874 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
19877 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
19878 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
19879 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
19881 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
19883 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
19886 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
19888 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
19890 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
19892 * term.c (mouse_face_window): Rename from Qmouse_face_window.
19894 (handle_one_term_event): Use Gpm_DrawPointer.
19895 (Fgpm_mouse_start): Rename from Fterm_open_connection.
19896 Signal errors instead of returning nil. Always return nil.
19897 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
19898 Make it a noop if gpm-mouse was not activated.
19899 (syms_of_term): Update names.
19901 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
19903 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
19904 (init_sys_modes): Check that gpm_tty is the current tty.
19906 * alloc.c (allocate_terminal): Set the vector size to only count the
19907 lisp fields. Initialize those to nil.
19908 (mark_object): Don't treat terminals specially.
19909 (mark_terminal): Remove.
19910 (mark_terminals): Use mark_object instead.
19912 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
19913 the GC to the beginning.
19916 * indent.c: Use EMACS_INT for ints coming from Elisp data.
19918 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
19920 2007-09-25 Jason Rumney <jasonr@gnu.org>
19922 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
19924 * w32console.c (create_w32cons_output): Remove.
19926 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
19928 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
19929 (reset_sys_modes): Use reset_terminal_modes_hook.
19931 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
19933 * eval.c (do_autoload): Don't output any message.
19935 2007-09-24 Juri Linkov <juri@jurta.org>
19937 * emacs.c (standard_args): Change priority of "--no-splash"
19938 from 40 to 3. Add "--no-desktop" with the same priority.
19940 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
19942 * alloc.c (gc_sweep): Check cons cell mark bits word by word
19943 and optimize the case where they are all 1.
19945 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
19947 * lisp.h (abs): Define if not defined.
19948 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
19949 Don't define `abs', since it's defined in lisp.h.
19951 2007-09-22 Eli Zaretskii <eliz@gnu.org>
19953 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
19954 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
19955 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
19956 (init_tty): Use DEV_TTY instead of "/dev/tty".
19957 [WINDOWSNT]: No need to protect from NAME arg being null.
19959 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
19961 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
19964 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
19966 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
19967 (gpm_tty): Change its type.
19968 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
19969 (gpm_tty): Change its type and initialize it.
19970 (Fterm_open_connection): Check the frame is indeed a tty.
19971 Use the new gpm_tty.
19972 (Fterm_close_connection): Use the new gpm_tty.
19973 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
19974 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
19976 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
19978 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
19979 underline_color, to draw strike-through.
19981 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
19983 * lisp.h (allocate_terminal): Declare.
19985 * window.c (candidate_window_p): Consider frames that are being placed
19986 by the user as somewhere between visible and iconified.
19987 (window_loop): Prefer windows on the current frame.
19988 (Fselect_window): Move the use of select-frame to the beginning so we
19989 can just delegate all the work (it'll call us back anyway).
19991 * frame.c (Qdisplay_environment_variable):
19992 * frame.h (Qdisplay_environment_variable): Delete.
19994 * .gdbinit (xbacktrace): Print the arg's address rather than the value
19995 of the first arg, since that value may be a union.
19997 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
19998 parameter rather than Qdisplay_environment_variable. If all else
19999 fails, look for DISPLAY in initial-environment.
20001 2007-09-21 Glenn Morris <rgm@gnu.org>
20003 * Makefile.in (emacstool): Remove target.
20004 (lisp, shortlisp): Remove termdev.elc.
20006 2007-09-21 Markus Triska <markus.triska@gmx.at>
20008 * xterm.c (x_delete_display): Compile session management conditionally.
20010 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
20012 * callproc.c (getenv_internal_1): New function.
20013 (getenv_internal): Use it.
20014 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
20016 * terminal.c (get_terminal): Don't accept ints to represent terminals.
20017 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
20018 (Fset_terminal_parameter): Work with dead terminals as well.
20019 (Fmodify_terminal_parameters): Remove.
20021 * terminal.c (get_terminal): Handle terminals.
20022 Make sure the terminal returned is live.
20023 (create_terminal): Use allocate_terminal.
20024 (mark_terminals): Move to alloc.c.
20025 (delete_terminal): Use terminal->name as liveness status.
20026 NULL out fields after freeing their contents.
20027 Don't deallocate the object.
20028 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
20029 rather than an int.
20030 (Fterminal_live_p): Accept non-integer arguments.
20031 (Fterminal_list): Return terminal objects rather than an ints.
20033 * alloc.c (enum mem_type): New member for `terminal' objects.
20034 (allocate_terminal): New function.
20035 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
20037 (mark_terminal): New fun.
20038 (mark_terminals): Move from terminal.c.
20040 * term.c (get_tty_terminal): Don't treat output_initial specially.
20041 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
20042 (delete_tty): Use terminal->name as liveness status.
20044 * termhooks.h (struct terminal): Make it into a pseudovector.
20045 Remove `deleted' replaced by checking `name's nullness.
20047 * print.c (print_object): Handle terminals.
20049 * lisp.h (enum pvec_type): New `terminal' pseudovector.
20050 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
20052 * frame.c (make_terminal_frame):
20053 * keyboard.c (tty_read_avail_input):
20054 * w32term.c (x_delete_terminal):
20055 * xfns.c (Fx_create_frame, x_create_tip_frame):
20056 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
20058 2007-09-20 Glenn Morris <rgm@gnu.org>
20060 * process.c (Fmake_network_process): Doc fix.
20062 2007-09-19 Jason Rumney <jasonr@gnu.org>
20064 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
20066 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
20068 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
20069 Fix a C warning regarding variable constness.
20071 * xterm.c (handle_one_xevent): Fix a C warning.
20073 2007-09-18 Jason Rumney <jasonr@gnu.org>
20075 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
20077 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
20079 * gtkutil.c (gdpy_def): New variable.
20080 (xg_initialize): Initialize gdpy_def.
20081 (xg_display_close): If no other display exists, set gdpy_def to a
20084 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
20086 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
20087 when we have no file name for the icon.
20088 (xg_tool_bar_expose_callback): Remove.
20089 (xg_create_tool_bar): Don't connect expose signal to
20090 xg_tool_bar_expose_callback.
20091 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
20093 2007-09-16 Andreas Schwab <schwab@suse.de>
20095 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
20096 values instead of zapping them.
20098 2007-09-14 Glenn Morris <rgm@gnu.org>
20100 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
20101 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
20102 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
20103 scope and rename to omfib_buffer for clarity.
20104 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
20106 2007-09-14 Kenichi Handa <handa@m17n.org>
20108 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
20110 2007-09-13 Jason Rumney <jasonr@gnu.org>
20112 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
20114 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
20116 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
20117 (mac_term_init): Call here instead, passing rif.
20119 2007-09-13 Glenn Morris <rgm@gnu.org>
20121 * s/hpux.h: No longer define `static' as nothing.
20123 2007-09-13 Johan Bockgård <bojohan@gnu.org>
20125 * callint.c (Fcall_interactively): Remove unused var `fun'.
20127 2007-09-12 Romain Francoise <romain@orebokech.com>
20129 * window.c (prefer_window_split_horizontally, display_buffer):
20130 Revert 2007-09-08 change.
20132 2007-09-12 Glenn Morris <rgm@gnu.org>
20134 * alloca.c: Remove file.
20135 * Makefile.in (alloca): Do not undef.
20136 (allocaobj, alloca.o): Remove.
20137 (otherobj): Remove allocaobj.
20138 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
20139 * regex.c (C_ALLOCA): Remove all references and code that was only
20140 used when this was defined.
20141 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
20142 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
20143 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
20145 * Makefile.in (SOURCES, unlock, relock): Delete.
20147 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
20148 (menu_grab_callback): All uses changed.
20150 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
20151 (x_reply_selection_request): All uses changed.
20153 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
20155 * lread.c (load_warn_old_style_backquotes): Change message to look
20156 better when it appears in the middle of byte-compiler messages.
20158 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
20160 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
20162 * xterm.c (x_create_terminal): Add comment.
20164 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
20166 2007-09-10 Richard Stallman <rms@gnu.org>
20168 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
20170 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
20172 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
20173 (DEFUN): Document `intspec', use it instead of `prompt'.
20175 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
20177 * data.c (Finteractive_form): If the interactive specification starts
20178 with a `(', use it as a Lisp form.
20180 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
20181 name and file modes.
20183 * callint.c (Fcall_interactively): Comment fixes.
20185 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
20187 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
20188 and compiled functions.
20190 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
20192 * window.c (prefer_window_split_horizontally): New variable.
20193 (display_buffer): Consider splitting window horizontally depending
20194 on prefer_window_split_horizontally.
20196 2007-09-08 Eli Zaretskii <eliz@gnu.org>
20198 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
20200 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20202 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
20204 * frame.c (x_set_frame_parameters): Check number is positive before
20207 * window.c (freeze_window_start): Don't presume selected_window holds
20209 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
20211 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
20213 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
20215 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20217 * window.c (Vsplit_window_preferred_function): New var.
20218 (Fdisplay_buffer): Use it.
20219 (syms_of_window): Export, and initialize it.
20221 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
20223 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
20225 2007-09-06 Glenn Morris <rgm@gnu.org>
20227 * gtkutil.c (menu_grab_callback) <cnt>:
20228 * xselect.c (x_reply_selection_request) <cnt>: Move static
20229 variable to file scope.
20231 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
20233 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
20234 consistent values of selected_frame and selected_window.
20236 2007-09-04 Jason Rumney <jasonr@gnu.org>
20238 * w32console.c (initialize_w32_display): Zero unused hooks.
20240 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20242 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
20243 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
20245 2007-09-04 Jason Rumney <jasonr@gnu.org>
20247 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
20248 in w32console.c. Set up input. Remove XXX comments that have been
20249 confirmed as correct.
20251 * s/ms-w32.h (MULTI_KBOARD): Define.
20253 * w32console.c (one_and_only_w32cons): Remove.
20254 (initialize_w32_display): Take terminal argument.
20256 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
20257 initialize_w32_display.
20258 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
20260 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
20262 * keyboard.c (discard_mouse_events): Discard it.
20263 (make_lispy_event): Translate it to a lisp event.
20264 (lispy_wheel_names): Add wheel-left and right events.
20265 (syms_of_keyboard): Enlarge wheel_syms.
20267 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
20268 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
20270 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
20272 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
20273 from WM_MOUSEHWHEEL.
20274 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
20276 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
20279 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
20280 keyboard for the terminal.
20282 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20284 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
20285 (Vresume_tty_hook): Rename from Vresume_tty_functions.
20286 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
20287 and resume-tty-function to resume-tty-hook.
20288 (Fsuspend_tty, Fresume_tty): Use new names.
20290 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
20292 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
20293 if it starts with "n:".
20295 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
20297 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
20299 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
20302 * frame.c (Qterm_environment_variable): Remove.
20303 (syms_of_frame): Don't init and staticpro it.
20305 * callproc.c (getenv_internal): Remove special case for $TERM.
20307 * callproc.c (Vinitial_environment): New variable.
20308 (set_initial_environment): Initialize it.
20309 (syms_of_callproc): Declare it.
20310 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
20311 TERM under which a process runs is never related to the TERM in which
20314 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20316 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
20317 * s/darwin.h: ... do it here.
20319 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
20321 * lisp.h (set_initial_environment): Rename from set_global_environment.
20323 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
20324 removed by mistake on the multi-tty branch.
20326 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
20327 (Fmodify_frame_parameters): Return a value.
20329 * image.c (png_load): Comment-out var only used in commented-out code.
20331 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
20332 before passing it to mark_object.
20334 * xfaces.c (internal_resolve_face_name): Return a value.
20335 (internal_resolve_face_name, resolve_face_name_error): Comment out.
20337 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
20338 (x_icon): Comment-out var only used in commented-out code.
20340 2007-08-29 Romain Francoise <romain@orebokech.com>
20342 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
20343 QUIT hasn't been provided.
20345 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20347 * callproc.c (child_setup, getenv_internal): Use the
20348 display-environment-variable and term-environment-variable frame params.
20349 (set_initial_environment): Initialise Vprocess_environment.
20351 * config.in: Disable multi-keyboard support on a mac.
20353 * frame.c (Qterm_environment_variable)
20354 (Qdisplay_environment_variable): New variables.
20355 (syms_of_frame): Intern and staticpro them.
20356 (Fmake_terminal_frame): Disable output method test.
20358 * frame.h: Declare them here.
20360 * macfns.c (x_set_mouse_color): Get rif from the frame.
20361 (x_set_tool_bar_lines): Don't use updating_frame.
20362 (mac_window): Add 2 new parameters for consistency with other systems.
20363 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
20364 frame parameters following what is done in X11 and w32. Don't use
20365 FRAME_MAC_DISPLAY_INFO.
20366 (Fx_open_connection, start_hourglass): Remove window-system check.
20367 (x_create_tip_frame): Get the keyboard from the terminal.
20369 * macmenu.c: Reorder includes.
20370 (Fx_popup_menu): Use terminal specific mouse_position_hook.
20372 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
20373 terminal parameter.
20374 (x_clear_frame): Add a frame parameter.
20375 (note_mouse_movement): Get rif from the frame.
20376 (mac_term_init): Initialize the terminal.
20377 (mac_initialize): Make static and move terminal initialization ...
20378 (mac_create_terminal): ... to this new function.
20380 * macterm.h (struct mac_display_info): Add terminal.
20381 (mac_initialize): Delete declaration.
20383 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
20385 * sysdep.c: Comment out text after #endif.
20387 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
20388 is defined. Better initialize ttys in windows. Use terminal
20389 specific mouse_position_hook.
20391 * termhooks.h (union display_info): Add mac_display_info.
20393 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
20394 Set the default minibuffer frame, window_system and the rest of the
20395 frame parameters following what is done in X11.
20397 * w32term.c (w32_initialize): Make static.
20399 * xselect.c (x_handle_selection_clear): Only access
20400 terminal->kboard when MULTI_KBOARD is defined.
20402 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
20403 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
20405 2007-08-29 Jason Rumney <jasonr@gnu.org>
20407 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
20408 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
20410 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
20411 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
20413 * keyboard.c (restore_kboard_configuration): Only define when
20414 MULTI_KBOARD defined.
20416 * makefile.w32-in: Update dependancies from Makefile.in.
20417 (OBJ1): Add terminal.$(O)
20419 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
20420 Don't define function body.
20421 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
20423 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
20425 * w32.c (request_sigio, unrequest_sigio): Remove.
20427 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
20428 (w32con_clear_frame, w32con_clear_end_of_line)
20429 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
20430 (w32con_delete_glyphs, w32con_set_terminal_window)
20431 (scroll_line, w32_sys_ring_bell): Add frame arg.
20432 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
20434 (PICK_FRAME): Remove.
20435 (w32con_write_glyphs): Use frame specific terminal coding.
20436 (one_and_only_w32cons): New global variable.
20437 (initialize_w32_display): Use it for storing hooks.
20438 (create_w32cons_output): New function.
20440 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
20443 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
20445 (x_set_tool_bar_lines): Don't use updating_frame.
20446 (Fx_create_frame): Set terminal and ref count.
20447 (Fx_open_connection): Remove window-system check.
20449 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
20451 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
20452 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
20453 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
20455 (x_delete_terminal, w32_create_terminal): New functions.
20456 (w32_term_init): Create a terminal.
20457 (w32_initialize): Move terminal specific initialization to
20458 w32_create_terminal.
20460 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
20461 (w32_clear_rect, w32_clear_area): Use background from frame.
20462 (w32_display_info): Add terminal.
20463 (w32_sys_ring_bell, x_delete_display): Declare here.
20465 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
20467 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
20469 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
20471 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
20472 Fix get_named_tty calls for the controlling tty.
20474 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
20476 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
20478 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
20480 * term.c (tty_insert_glyphs): Add missing first parameter.
20482 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
20484 * buffer.c (Fbuffer_list, Fbury_buffer):
20485 Take frame->buried_buffer_list into account.
20487 * cm.c (current_tty): New variable, for cmputc().
20489 (cmcheckmagic): Add tty parameter, look up terminal streams there.
20490 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
20491 (cmgoto): Add tty parameter. Pass it on to calccost().
20492 Use emacs_tputs() instead of tputs().
20494 * cm.h (emacs_tputs): New macro to set current_tty, and then call
20496 (current_tty): New variable, for cmputc().
20497 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
20499 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
20500 (internal_condition_case, internal_condition_case_1)
20501 (internal_condition_case_2): Don't abort when x_catching_errors.
20503 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
20504 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
20505 prevent crashes caused by bogus longjmps in read_char.
20507 * keymap.h (Fset_keymap_parent): Add EXFUN.
20509 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
20510 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20511 Remove redundant definition.
20513 * macfns.c (x_set_mouse_color, x_make_gc):
20514 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20516 * w32term.c (x_free_frame_resources):
20517 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20518 (w32_initialize): Use the accessor macros for terminal characteristics.
20520 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
20521 Use the accessor macros for terminal characteristics.
20522 * msdos.c (internal_terminal_init): Use the accessor macros for
20523 terminal characteristics.
20524 (ScreenVisualBell, internal_terminal_init):
20525 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20527 * termopts.h (no_redraw_on_reenter): Declare.
20529 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
20530 (mark_terminals, mark_ttys): Declare.
20531 (Fgarbage_collect): Call them.
20532 (mark_object): Mark buried_buffer_list.
20534 * prefix-args.c: Include stdlib.h for exit.
20536 * syssignal.h: Add comment.
20538 * indent.c: Include stdio.h.
20540 * window.h (Vinitial_window_system): Declare.
20541 (Vwindow_system): Delete declaration.
20543 * fontset.c (Finternal_char_font): Use FRAME_RIF.
20545 * image.c (lookup_image): Don't initialize `c' until the xasserts
20548 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
20549 FRAME_FOREGROUND_PIXEL.
20551 * print.c (print_preprocess): Don't lose print_depth levels while
20554 * widget.c (update_from_various_frame_slots):
20555 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20557 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
20559 (window_internal_height): Remove bogus make_number call.
20560 (init_window_once): Call make_terminal_frame with two zero parameters.
20562 * fileio.c (Fread_file_name): Update comment.
20564 * callint.c (Fcall_interactively):
20565 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
20566 Make sure it is correctly unwound.
20568 * xsmfns.c (x_session_close): New function.
20570 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
20571 Delete declarations.
20573 * xterm.h: Remove declaration for x_fully_uncatch_errors.
20574 (x_output): Remove background_pixel and foreground_pixel fields.
20575 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
20576 (x_delete_device, x_session_close): Declare.
20578 * lread.c: Include setjmp.h. Update declaration of `read_char'.
20579 (read_filtered_event): Call `read_char' with a local
20580 `wrong_kboard_jmpbuf'.
20582 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
20583 Don't call single_kboard_state. Use FRAME_RIF.
20585 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
20588 * lisp.h (set_process_environment): Rename to `set_global_environment'.
20589 (Fframe_with_environment, Fset_input_meta_mode)
20590 (Fset_quit_char): EXFUN.
20591 (x_create_device, tty_output, terminal, tty_display_info): Declare.
20592 (init_sys_modes, reset_sys_modes): Update prototypes.
20593 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
20595 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
20596 Vlocal_key_translation_map, and Vkeyboard_translate_table.
20597 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
20598 Delete declarations.
20599 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
20600 (temporarily_switch_to_single_kboard, tty_read_avail_input):
20603 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
20604 already does that during init_display(). Call syms_of_keymap
20605 before syms_of_keyboard. Call `syms_of_terminal'.
20606 Call set_initial_environment, not set_process_environment.
20607 (shut_down_emacs): Call reset_all_sys_modes() instead of
20610 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
20611 (internal_resolve_face_name, resolve_face_name_error): New functions.
20612 (resolve_face_name): Protect against loops and errors thrown by Fget.
20613 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
20614 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
20616 * scroll.c: Replace CURTTY() with local variables throughout the
20617 file (where applicable).
20618 (calculate_scrolling, calculate_direct_scrolling)
20619 (scrolling_1, scroll_cost): Use the accessor macros for terminal
20622 * keymap.c (Vfunction_key_map): Remove.
20623 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
20624 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
20625 (Vkey_translation_map): Remove.
20626 (syms_of_keymap): Remove DEFVAR for key-translation-map.
20627 (Fdescribe_buffer_bindings)
20628 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
20629 Update for terminal-local key-translation-map.
20631 * Makefile.in (callproc.o): Update dependencies.
20632 (lisp, shortlisp): Add termdev.elc.
20633 (obj): Add terminal.o.
20634 (terminal.o): Add dependencies.
20635 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
20636 (data.o, fns.o): Add termhooks.h dependency.
20637 (SOME_MACHINE_LISP): Add dnd.elc.
20638 (minibuf.o): Fix typo.
20639 Update dependencies.
20641 * data.c (do_symval_forwarding, store_symval_forwarding)
20642 (find_symbol_value): Use the selected frame's keyboard, not
20645 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
20648 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
20650 (syms_of_xmenu): Update defsubr.
20651 (mouse_position_for_popup, Fx_popup_menu)
20652 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
20653 (set_frame_menubar, free_frame_menubar)
20654 (create_and_show_popup_menu, xmenu_show)
20655 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
20658 * xselect.c (x_own_selection): Abort if not an X frame.
20659 (some_frame_on_display): Check if it is an X frame.
20660 (x_handle_selection_clear): Deal with MULTI_KBOARD.
20662 * coding.c: Include frame.h and termhooks.h.
20663 (terminal_coding, keyboard_coding): Delete.
20664 (Fset_terminal_coding_system_internal)
20665 (Fset_keyboard_coding_system_internal)
20666 (Fkeyboard_coding_system)
20667 (Fterminal_coding_system): Add a terminal parameter.
20668 Get terminal_coding from the terminal.
20669 (init_coding_once): Don't call setup_coding_system here.
20671 * dispextern.h (set_scroll_region, turn_off_insert)
20672 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
20673 (tty_clear_end_of_line, tty_setup_colors)
20674 (delete_tty, updating_frame)
20675 (produce_special_glyphs, produce_glyphs, write_glyphs)
20676 (insert_glyphs): Remove.
20677 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
20678 (tty_turn_off_highlight, get_tty_size): Add declaration.
20679 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
20681 * frame.h (enum output_method): Add output_initial.
20682 (struct x_output): Delete.
20683 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20684 Access foreground_pixel and background_pixel directly from the frame.
20685 (tty_display): Delete.
20686 (struct frame): Add buried_buffer_list, foreground_pixel,
20687 background_pixel and terminal. Delete kboard.
20688 (union output_data): Add tty.
20689 (FRAME_KBOARD): Get the kboard from the terminal.
20690 (FRAME_INITIAL_P): New macro.
20691 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
20692 (Qterm_environment_variable, Qdisplay_environment_variable)
20693 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
20696 * termchar.h (tty_output, tty_display_info): New structures.
20697 (tty_list): Declare.
20698 (FRAME_TTY, CURTTY): New macros.
20699 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
20700 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
20701 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
20702 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
20704 * callproc.c: Include frame.h and termhooks.h, for terminal
20706 (add_env): New function.
20707 (child_setup): Use it.
20708 (child_setup, getenv_internal): Handle the new Vprocess_environment.
20709 (getenv_internal): Fix get_terminal_param call.
20710 (Fgetenv_internal, egetenv): Update doc.
20711 (syms_of_callproc): Initialize Vprocess_environment to nil.
20712 Register and initialize them. Remove obsolete defvars. Update doc
20714 (child_setup): Handle Vlocal_environment_variables.
20715 (getenv_internal): Add terminal parameter.
20716 Handle Vlocal_environment_variables.
20717 (Fgetenv_internal): Add terminal parameter.
20718 (child_setup, getenv_internal, Fgetenv_internal): Store the local
20719 environment in a frame (not terminal) parameter. Update doc strings.
20720 (set_initial_environment): Rename from set_global_environment.
20721 Store Emacs environment in initial frame parameter.
20723 * xdisp.c (redisplay_internal): Update references to
20724 `previous_terminal_frame'.
20725 (display_mode_line, Fformat_mode_line): Replace calls to
20726 `push_frame_kboard' with `push_kboard'.
20727 (get_glyph_string_clip_rects): Add extra parentheses and
20728 braces to prevent compiler warnings.
20729 (calc_pixel_width_or_height): Add xassert to check that the
20730 frame is alive. Don't call `lookup_image' on a termcap frame.
20731 (message2_nolog, message3_nolog, redisplay_internal)
20732 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
20733 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
20734 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
20735 (Fx_display_pixel_width, Fx_display_pixel_height)
20736 (Fx_display_planes, Fx_display_color_cells)
20737 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
20738 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
20739 (Fx_display_backing_store, Fx_display_visual_class)
20740 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
20741 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
20743 * xfns.c (x_set_foreground_color x_set_background_color)
20744 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
20745 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20746 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
20747 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
20748 terminal that is being deleted.
20749 (Fx_create_frame): Use `store_frame_param' to set `window-system'
20750 frame parameter, and make sure it overrides any user-supplied setting.
20751 (Fx_close_connection, Fx_synchronize): Unify argument names with
20752 the rest of the DEFUNs.
20754 * dispnew.c (Fsend_string_to_terminal): Update call to
20755 `get_tty_terminal'.
20756 (Fredraw_frame, Fsend_string_to_terminal)
20757 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
20758 FRAME_TERMCAP_P and FRAME_TTY.
20759 (window_change_signal): Don't believe width/height values that are
20761 (Vinitial_window_system): Rename from Vwindow_system.
20762 (termscript, Wcm, rif): Delete.
20764 * termhooks.h (struct terminal): New struct containing the
20765 previously global text display hooks and new members NAME,
20766 DELETED and PARAM_ALIST.
20767 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
20768 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
20769 (FRAME_RIF): New macros.
20770 (get_terminal_param, get_device): New declarations.
20771 (termscript): Delete declaration.
20773 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
20774 (XTflash, x_free_frame_resources, x_scroll_bar_create)
20775 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
20776 FRAME_FOREGROUND_PIXEL.
20777 (x_fully_uncatch_errors): Disable definition.
20778 (x_scroll_bar_expose): Fix reference to foreground pixel.
20779 (XTread_socket): Disable loop on all X displays.
20780 (x_delete_terminal): Don't set terminal->deleted and let
20781 delete_terminal delete the frames on the terminal.
20782 (x_delete_display): Doc update to reflect changes in
20784 (x_display_info) <terminal>: Move member earlier in the struct.
20785 (deleting_tty): Remove old variable.
20786 (Fsuspend_tty): Call clear_tty_hooks.
20787 (Fresume_tty, init_tty): Call set_tty_hooks.
20788 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
20789 errors on X frames.
20790 (x_catch_errors_unwind): Abort if x_error_message is NULL.
20791 (handle_one_xevent): Initialize `f' to NULL.
20792 (x_delete_terminal, x_create_terminal): New functions.
20793 (XTset_terminal_modes, XTreset_terminal_modes)
20794 (XTread_socket, x_connection_closed, x_term_init)
20795 (x_term_init, x_delete_display): Add terminal parameter.
20796 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
20799 * frame.c: Include termchar.h.
20800 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
20801 (Qwindow_system, Qenvironment, Qterm_environment_variable)
20802 (Qdisplay_environment_variable): New vars.
20803 (Fframep): Deal with output_initial.
20804 (Fframe-live-p): Doc fix.
20805 (Fwindow-system): New function.
20806 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
20807 (make_terminal_frame): Don't create frames on a terminal that is
20808 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20809 (store_frame_param): Check for found_for_frame before calling XFRAME.
20810 (Fmake_terminal_frame): Handle NULL tty names correctly.
20811 (syms_of_frame): Enhance doc string of `default-frame-alist'.
20812 (Fdelete_frame): Remove unused variable `count'. Don't allow other
20813 frames to refer to a deleted frame in their 'environment parameter.
20814 (Fframe_with_environment): New function.
20815 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
20816 (get_future_frame_param): New function.
20817 (Fmake_terminal_frame): Use it.
20818 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
20820 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
20821 * sysdep.c (reset_sys_modes): Update for renames.
20823 * keyboard.c (tty_read_avail_input): New function.
20824 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
20825 (syms_of_keyboard): Defsubr them.
20826 (Fset_input_meta_mode, Fset_quit_char): New functions.
20827 (Fset_input_mode): Split to above functions.
20828 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
20829 parameter. Use it in call to `read_char'.
20830 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
20831 Set wrong_kboard_jmpbuf correctly in recursive calls.
20832 Use current_kboard to access Vkeyboard_translate_table.
20833 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
20834 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
20835 Update longjmp invocations. Remember the original current_kboard,
20836 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
20837 changes it. Comment out unnecessary calls to
20838 `record_single_kboard_state' and `any_kboard_state'.
20839 Update recursive calls.
20840 (wrong_kboard_jmpbuf): Remove global variable.
20841 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
20842 Handle deleted interrupted_kboards correctly; that is a legal
20843 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
20844 and read_char calls. Abort if interrupted_kboard died in read_char.
20845 (any_kboard_state, single_kboard_state)
20846 (push_frame_kboard): Remove function.
20847 (pop_kboard): Switch out of single_kboard mode if the kboard has
20848 been deleted. Remove unused variable. Help debugging by not
20849 changing current_kboard unnecessarily. Set current_kboard to the
20850 kboard of the selected frame when the stored kboard object has
20851 been deleted before pop_kboard.
20852 (temporarily_switch_to_single_kboard): Change first parameter to a
20853 frame pointer. Throw an error when caller wants to change kboards
20854 while in single_kboard mode. Don't push_kboard if we weren't in
20855 single kboard state. Don't pop_kboard if we popped into any
20857 (restore_kboard_configuration): Abort if pop_kboard changed the
20858 kboard in single_kboard mode. Call pop_kboard only after setting
20859 up single_kboard mode.
20860 (Frecursive_edit): Switch to single_kboard mode only in nested
20862 (cmd_error, command_loop, command_loop_1, timer_check):
20863 Comment out unnecessary call to `any_kboard_state' and
20864 `record_single_kboard_state'.
20865 (delete_kboard): Exit single_kboard mode if we have just deleted
20866 that kboard. Use FRAME_KBOARD.
20867 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
20868 `fatal_error_signal'.
20869 (record_single_kboard_state): Don't push_kboard if we weren't in
20870 single kboard state. Don't pop_kboard if we popped into any
20872 (push_frame_kboard): Rename to push_kboard.
20873 (kbd_buffer_get_event): Use FRAME_TERMINAL.
20874 (read_avail_input): Read input from all terminals.
20875 (mark_kboards): Also mark Vkeyboard_translate_table.
20876 (kbd_buffer_store_event_hold): Simplify condition.
20877 (read_key_sequence): Reinitialize fkey and keytran at each replay.
20878 (Vkeyboard_translate_table): Move to struct kboard.
20879 (init_kboard): Initialize Vkeyboard_translate_table.
20880 (syms_of_keyboard): Use DEFVAR_KBOARD to define
20881 Vkeyboard_translate_table. Update doc strings. Update docs of
20882 local-function-key-map and function-key-map.
20884 * terminal.c: New file.
20886 * term.c: Include errno.h.
20887 (Vring_bell_function, device_list, initial_device)
20888 (next_device_id, ring_bell, update_begin, update_end)
20889 (set_terminal_window, cursor_to, raw_cursor_to)
20890 (clear_to_end, clear_frame, clear_end_of_line)
20891 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
20892 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
20893 (syms_of_term): Move their initialization to terminal.c.
20894 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
20895 (Ftty_display_color_cells)
20896 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
20897 (clear_tty_hooks, set_tty_hooks)
20898 (init_tty, maybe_fatal): New functions.
20899 (Ftty_type): Return nil if terminal is not on a tty instead of
20900 throwing an error. Doc update.
20901 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
20902 Doc update. Initialize new subrs and variables.
20903 (delete_tty): Use terminal->deleted.
20904 (tty_set_terminal_modes): Rename from set_terminal_modes.
20905 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
20906 (set_scroll_region): Rename to `tty_set_scroll_region'.
20907 (turn_on_insert): Rename to `tty_turn_on_insert'.
20908 (turn_off_insert): Rename to `tty_turn_off_insert'.
20909 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
20910 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
20911 (toggle_highligh): Rename to `tty_toggle_highlight'.
20912 (background_highlight): Rename to `tty_background_highlight'.
20913 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
20914 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
20915 (tty_set_scroll_region, tty_background_highlight)
20916 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
20917 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
20918 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
20919 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
20920 Add static modifier.
20921 (tty_reset_terminal_modes, tty_set_terminal_window)
20922 (tty_set_scroll_region, tty_background_highlight)
20923 (tty_highlight_if_desired, tty_cursor_to)
20924 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
20925 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
20926 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
20929 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
20931 * keyboard.c: Qrtl is new.
20932 (parse_tool_bar_item): Handle :rtl keyword.
20933 (syms_of_keyboard): Intern :rtl keyword.
20935 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
20937 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
20938 so no Lisp code is executed.
20939 (file_for_image, find_rtl_image): New functions.
20940 (xg_get_image_for_pixmap): Use file_for_image.
20941 (update_frame_tool_bar): If direction is RTL, use RTL image if
20942 defined. Use Gtk stock images if defined.
20944 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20946 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
20947 for nonexistent or zero-width glyph in composition glyph.
20949 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
20951 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
20953 * xdisp.c (Finvisible_p): New function.
20954 (syms_of_xdisp): defsubr it.
20956 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
20958 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
20961 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20963 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
20965 2007-08-24 Martin Rudalics <rudalics@gmx.at>
20967 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
20968 whether decoding has modified buffer contents.
20970 2007-08-24 Jason Rumney <jasonr@gnu.org>
20972 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
20973 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
20974 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
20975 (init_svg_functions) [HAVE_NTGUI]: New function.
20976 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
20977 (svg_load_image): Use them.
20978 (svg_load_image) [HAVE_NTGUI]: Implement background.
20980 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20982 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
20983 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
20984 (LIBX): Remove @RSVG_LIBS@.
20985 (LIBES): Add $(RSVG_LIBS).
20987 * image.c (svg_load_image): Blend with specified background if exists.
20988 Use IMAGE_BACKGROUND. Add Mac OS Support.
20990 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
20991 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
20993 [MAC_OSX] (socket_callback): Do nothing.
20994 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
20996 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
20998 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
21000 2007-08-22 Glenn Morris <rgm@gnu.org>
21002 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
21004 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
21006 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
21008 * image.c: Add support for SVG images. Some additional comments
21009 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
21010 (svg_image_p): New function to test for SVG image.
21011 (svg_load): New function to load SVG image.
21012 (svg_load_image): New function, helper for svg_load.
21013 (Qsvg): New Lisp_object.
21014 (svg_keyword_index): New enum.
21015 (svg_format): New static `image_keyword' struct.
21016 (svg_type): New static `image_type' struct.
21017 (librsvg/rsvg.h): Include it.
21019 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
21021 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
21023 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
21025 * lread.c (Qold_style_backquotes): New var.
21026 (syms_of_lread): Init and staticpro it.
21027 (load_warn_old_style_backquotes): New fun.
21028 (Fload): Use them to warn about old style backquotes.
21029 (end_of_file_error, Fload): Remove unused vars.
21031 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
21033 * lread.c (Vold_style_backquotes): New var.
21034 (syms_of_lread): Init and export it to Elisp.
21035 (read1): Set it when we find an old-style (back)quote.
21037 2007-08-22 Jason Rumney <jasonr@gnu.org>
21039 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
21041 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
21043 * puresize.h (BASE_PURESIZE): Increase to 1140000.
21045 2007-08-19 Richard Stallman <rms@gnu.org>
21047 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
21049 2007-08-19 Andreas Schwab <schwab@suse.de>
21051 * alloc.c (pure): Round PURESIZE up.
21053 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
21055 * xterm.c (handle_one_xevent): Remove check that mouse click is in
21058 2007-08-16 Richard Stallman <rms@gnu.org>
21060 * eval.c (Fcommandp): Add parens to clarify.
21062 * minibuf.c (Fall_completions): Use enum for type of table.
21064 * emacs.c (USAGE2): Improve text.
21066 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
21068 * term.c (tty_default_color_capabilities): Declare static
21069 variables in file scope, to avoid HPUX compiler problem.
21071 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
21073 * gtkutil.c (update_frame_tool_bar): Use -1 as index
21074 to gtk_toolbar_insert.
21076 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
21078 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
21080 * insdel.c (reset_var_on_error): New fun.
21081 (signal_before_change, signal_after_change):
21082 Use it to reset (after|before)-change-functions to nil in case of error.
21083 Bind inhibit-modification-hooks to t.
21084 Don't bind (after|before)-change-functions to nil while they run.
21086 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21088 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
21089 filling pixmap with stippled background.
21091 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21093 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
21094 Don't use invisible frame as parent window for repositioning.
21096 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
21098 * print.c (new_backquote_output): Rename from old_backquote_output.
21099 (print): Inverse its logic (according to its name) so as to match the
21100 behavior of new_backquote_flag in lread.c.
21102 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21104 * gmalloc.c (posix_memalign): New function.
21106 * macterm.c (frame_highlight, frame_unhighlight): Don't call
21107 ActivateControl/DeactivateControl here.
21108 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
21109 frame-notice-user-settings is non-nil.
21110 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
21111 for kEventParamFMFontStyle.
21112 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
21113 mac_pass_command_to_system and mac_pass_control_to_system here.
21114 (XTread_socket): Call ActivateControl/DeactivateControl here.
21115 (XTread_socket) [TARGET_API_MAC_CARBON]:
21116 Check mac_pass_command_to_system and mac_pass_control_to_system here.
21117 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
21118 for window repositioning.
21120 2007-08-08 Glenn Morris <rgm@gnu.org>
21122 * Replace `iff' in doc-strings and comments.
21124 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
21126 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
21128 2007-08-07 Martin Rudalics <rudalics@gmx.at>
21130 * fileio.c (Finsert_file_contents): Run format-decode and
21131 after_insert_file_functions on entire buffer when REPLACE is
21132 non-nil and inhibit modification_hooks and point_motion_hooks.
21133 For consistency, run after_insert_file_functions iff something
21134 got inserted. Move signal_after_change and update_compositions
21135 after code running after_insert_file_functions. Make sure that
21136 undo_list doesn't record intermediate steps of the decoding process.
21138 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21141 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
21142 Call malloc_enable_thread on interactive startup.
21144 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
21145 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
21146 [USE_PTHREAD]: Conditionalize with it.
21147 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
21148 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
21151 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
21153 * xdisp.c (redisplay_window): When restoring original buffer
21154 position, make sure it is still valid.
21156 * image.c (png_load): Ignore png-supplied background color.
21158 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21160 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
21161 Use kCFAbsoluteTimeIntervalSince1970.
21163 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
21165 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
21166 event loop should be quit.
21167 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
21168 Quit dialog event loop if quit_dialog_event_loop is set.
21170 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
21171 (Selection): New typedef. Use instead of ScrapRef.
21172 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
21173 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
21174 (mac_clear_selection): Rename from clear_scrap.
21175 (get_flavor_type_from_symbol): New argument SEL and subsume function of
21176 scrap_has_target_type. All uses changed.
21177 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
21178 (mac_selection_has_target_p): New functions.
21179 (mac_put_selection_value): Rename from put_scrap_string.
21180 (mac_get_selection_value): Rename from get_scrap_string.
21181 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
21182 (put_scrap_private_timestamp, scrap_has_target_type)
21183 (get_scrap_private_timestamp): Remove functions.
21184 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
21185 (x_own_selection, x_get_local_selection):
21186 Use mac_valid_selection_value_p.
21187 (x_own_selection): Don't use put_scrap_private_timestamp.
21188 Record OWNERSHIP-INFO into Vselection_alist instead.
21189 (x_get_local_selection): Don't check type if request is local.
21190 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
21191 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
21193 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
21195 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
21196 add comment explaining why.
21198 2007-08-03 Richard Stallman <rms@gnu.org>
21200 * fileio.c (Fvisited_file_modtime): Use make_time.
21202 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
21204 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
21207 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
21209 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
21211 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
21213 * puresize.h (BASE_PURESIZE): Increase to 1130000.
21215 2007-07-30 Richard Stallman <rms@gnu.org>
21217 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
21219 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
21221 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
21223 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
21225 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
21226 remote default-directory.
21228 * buffer.c (mode-line-format): Update doc string.
21230 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21232 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
21234 (x_scroll_bar_create): Set bar->fringe_extended_p.
21235 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
21236 on frame edge. Check fringe background extension. Don't clear
21237 extended fringe background area.
21239 * w32term.h (struct scroll_bar): New member fringe_extended_p.
21240 (w32_fill_area): Enclose multiple statements with do ... while (0).
21242 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
21243 Extend fringe background to scroll bar gap.
21244 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
21245 Set bar->fringe_extended_p.
21246 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21247 Put leftmost/rightmost scroll bars on frame edge. Check fringe
21248 background extension. Don't clear extended fringe background area.
21250 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21251 New member fringe_extended_p.
21253 2007-07-25 Glenn Morris <rgm@gnu.org>
21255 * Relicense all FSF files to GPLv3 or later.
21257 * COPYING: Switch to GPLv3.
21259 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
21261 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
21263 * data.c (Finteractive_form): Check for the presence of an
21264 `interactive-form' symbol property more thoroughly.
21266 * data.c (Finteractive_form): Use an `interactive-form' property if
21267 present, analogous to the function-documentation property.
21269 2007-07-24 Jason Rumney <jasonr@gnu.org>
21271 * w32fns.c (x_real_positions): Get real position from OS instead of
21274 2007-07-23 Jason Rumney <jasonr@gnu.org>
21276 * filelock.c (current_lock_owner): Allow for @ sign in username.
21278 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
21280 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
21281 remote default-directory.
21283 * buffer.c (mode-line-format): Describe above case in doc string.
21285 2007-07-20 Eli Zaretskii <eliz@gnu.org>
21287 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
21288 Define if not defined.
21290 2007-07-18 Jason Rumney <jasonr@gnu.org>
21292 * w32proc.c (w32_executable_type): Handle 64 bit executables.
21294 2007-07-18 Richard Stallman <rms@gnu.org>
21296 * data.c (Fsetq_default): Doc fix.
21298 * eval.c (Fsetq): Doc fix.
21300 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
21302 * coding.c (Ffind_operation_coding_system):
21303 * eval.c (For, Fand): Doc fixes.
21304 Reported by Johan Bockgård.
21306 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
21308 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
21310 * xterm.h: Declare x_ewmh_activate_frame.
21312 * xterm.c (x_ewmh_activate_frame): New function.
21313 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
21315 2007-07-17 Martin Rudalics <rudalics@gmx.at>
21317 * window.c (Fdisplay_buffer): If largest or LRU window is the
21318 only window, split it even if it is not eligible for splitting.
21319 This restores the original behavior broken by the 2007-07-15
21322 2007-07-17 Glenn Morris <rgm@gnu.org>
21324 * abbrev.c (abbrev_check_chars): New function.
21325 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
21326 Call abbrev_check_chars to check abbrev characters are word
21327 constituents. Doc fix.
21329 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
21331 * process.c (Fstart_process, Fmake_network_process)
21332 (read_process_output): Fix up last changes.
21334 2007-07-16 Eli Zaretskii <eliz@gnu.org>
21336 * makefile.w32-in (clean): Don't delete *~.
21338 2007-07-16 Andreas Schwab <schwab@suse.de>
21340 * window.c (Fdisplay_buffer): Use NILP.
21341 (Fset_window_scroll_bars): Likewise.
21343 2007-07-15 Martin Rudalics <rudalics@gmx.at>
21345 * window.c (window_min_size_2): New function.
21346 (window_min_size_1, size_window, Fdisplay_buffer)
21347 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
21348 windows without mode- or header-lines when window-min-height is
21350 (size_window): Reset nodelete_p after testing it, following an
21351 earlier note by Kim F. Storm.
21352 (display_buffer): Do not set split_height_threshold to twice the
21353 value of window_min_height to avoid changing the value of a
21354 customizable variable. Rather explicitly check whether the
21355 height of the window that shall be splitted is at least as large
21356 as split_height_threshold.
21357 (Fwindow_full_width_p): New defun.
21358 (syms_of_window): Defsubr it.
21360 * window.h: Add EXFUN for Fwindow_full_width_p.
21362 2007-07-14 Jason Rumney <jasonr@gnu.org>
21364 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
21366 2007-07-14 Richard Stallman <rms@gnu.org>
21368 * eval.c (maybe_call_debugger): New function.
21369 (find_handler_clause): Use maybe_call_debugger.
21370 Call it when the handler says `debug'.
21371 Eliminate DEBUGGER_VALUE_PTR.
21372 (Fsignal): Eliminate debugger_value.
21373 (Qdebug): New variable.
21374 (syms_of_eval): Initialize it.
21376 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
21379 * keyboard.c (Ftrack_mouse):
21380 * print.c (Fwith_output_to_temp_buffer):
21381 * window.c (Fsave_window_excursion): Doc fix.
21383 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
21385 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
21387 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
21389 * process.h (struct Lisp_Process): Turn slots infd, outfd,
21390 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
21391 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
21392 read_output_delay, and read_output_skip from Lisp_Objects to ints.
21393 Remove unused encoding_carryover.
21394 * process.c: Adjust all functions accordingly.
21396 2007-07-12 Richard Stallman <rms@gnu.org>
21398 * term.c: Include unistd.h only if HAVE_UNISTD_H.
21400 2007-07-11 Jason Rumney <jasonr@gnu.org>
21402 * makefile.w32-in (LIBS): Include OLE32.
21404 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
21405 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
21407 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
21409 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
21410 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
21411 from a Lisp_Object into a bare pointer.
21412 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
21413 Adjust the code correspondingly.
21415 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
21417 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
21418 (term_show_mouse_face): Remove unused var `j'.
21419 (handle_one_term_event): Remove unused vars `i' and `j'.
21420 Don't cast return value of ttyname since it's not necessary.
21422 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
21424 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
21425 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
21427 * fns.c (map_char_table): Use an array of int for `indices' rather than
21428 an array of Lisp_Objects (which are only ever integers anyway).
21429 (Fmap_char_table): Update caller.
21430 * lisp.h: Update prototype.
21431 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
21432 * fontset.c (Ffontset_info):
21433 * casetab.c (set_case_table): Update callers.
21435 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
21437 * keymap.c (struct accessible_keymaps_data)
21438 (struct where_is_internal_data): New structures.
21439 (accessible_keymaps_1, where_is_internal_1): Use them to change
21440 interface to adhere to the one used by map_keymap.
21441 (Faccessible_keymaps, where_is_internal): Use map_keymap.
21442 (accessible_keymaps_char_table, where_is_internal_2): Remove.
21444 * keymap.h (map_keymap_function_t): More informative prototype.
21446 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
21448 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
21449 (looking_at_1): Don't change search_regs and last_thing_searched
21450 if `inhibit-changing-match-data' is non-nil.
21451 (string_match_1, search_buffer, set_search_regs): Likewise.
21452 (syms_of_search): Add Lisp level definition for
21453 `inhibit-changing-match-data' and set it to nil.
21454 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
21455 start and end of the match, instead of using values in search_regs.
21457 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
21459 * minibuf.c (Fcompleting_read): New value `confirm-only'
21460 for `require-match'.
21462 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
21464 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
21465 part of the 2007-06-27 change to syms_of_fileio.
21467 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21469 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
21470 Check WINDOWP before using XWINDOW. Consolidate return statements.
21472 2007-06-27 Richard Stallman <rms@gnu.org>
21474 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
21476 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
21478 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
21480 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21482 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
21483 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
21484 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
21485 (_free_internal, memalign): Use them.
21486 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
21487 Initialize to PTHREAD_MUTEX_INITIALIZER.
21488 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
21489 (morecore_nolock): Rename from morecore. All uses changed.
21490 Use only nolock versions of internal allocation functions.
21491 (_malloc_internal_nolock, _realloc_internal_nolock)
21492 (_free_internal_nolock): New functions created from
21493 _malloc_internal, _realloc_internal, and _free_internal.
21494 (_malloc_internal, _realloc_internal, _free_internal): Use them.
21495 Copy hook value to automatic variable before its use.
21496 (memalign): Copy hook value to automatic variable before its use.
21498 2007-06-26 Kenichi Handa <handa@m17n.org>
21500 * coding.c (Ffind_operation_coding_system): Docstring improved.
21501 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
21503 2007-06-25 David Kastrup <dak@gnu.org>
21505 * keymap.c (Fcurrent_active_maps): Add `position' argument.
21506 (Fwhere_is_internal): Adjust call to `current-active-maps' to
21507 cater for additional parameter.
21509 * keymap.h: Adjust number of parameters to `current-active-maps'.
21511 * doc.c (Fsubstitute_command_keys): Adjust call of
21512 `current-active-maps'.
21514 2007-06-25 David Kastrup <dak@gnu.org>
21516 * callint.c (Fcall_interactively): Make the parsing of interactive
21517 specs somewhat more readable.
21519 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21521 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
21522 to scroll bar gap also when bitmap fills fringe. Draw only foreground
21523 if extended background has already been filled.
21525 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21527 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
21528 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
21530 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
21531 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
21532 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
21533 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
21534 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
21535 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
21536 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
21537 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
21538 Run timers during dialog popup.
21539 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
21541 2007-06-21 Jason Rumney <jasonr@gnu.org>
21543 * image.c (convert_mono_to_color_image): Swap fore and background.
21545 2007-06-20 Jason Rumney <jasonr@gnu.org>
21547 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
21548 (w32_free_bdf_font): Unmap memory not handle.
21550 2007-06-20 Sam Steingold <sds@gnu.org>
21552 * gmalloc.c (__morecore): Fix the declaration to comply with the
21555 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
21557 * w32term.c (w32_delete_display): Remove leftover declaration.
21558 (w32_define_cursor, w32_initialize): Make static.
21560 * w32.c (_wsa_errlist): Fix typo in error message.
21561 (init_environment): Ignore any environment variable from the
21562 registry having a null value.
21564 2007-06-20 Glenn Morris <rgm@gnu.org>
21566 * Makefile.in (LIBGIF): Default to -lgif.
21568 2007-06-17 Jason Rumney <jasonr@gnu.org>
21570 * w32menu.c (add_menu_item): Don't use multibyte string functions on
21573 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
21575 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
21576 Fix typo in docstring.
21578 2007-06-16 Eli Zaretskii <eliz@gnu.org>
21580 * w32menu.c (add_menu_item): Escape `&' characters in menu items
21581 and their keybindings.
21583 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
21585 * composite.c (update_compositions): Fix last fix.
21587 2007-06-14 Jason Rumney <jasonr@gnu.org>
21589 * w32.c (get_process_times_fn): New function pointer.
21590 (globals_of_w32): Intialize it if present in kernel32.dll.
21591 (w32_get_internal_run_time): New function.
21593 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
21595 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
21597 * composite.c (update_compositions): Check the validness of
21600 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21602 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
21603 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
21605 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
21606 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
21608 * macgui.h (USE_MAC_TOOLBAR): New define.
21610 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21611 Return immediately unless popup is activated.
21613 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
21614 background to scroll bar gap.
21615 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
21616 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
21617 scroll bars on frame edge. Check fringe background extension.
21618 Don't clear extended fringe background area.
21619 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
21620 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
21621 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
21622 [USE_MAC_TOOLBAR]: New macros.
21623 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
21624 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
21625 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
21626 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
21627 [USE_MAC_TOOLBAR]: New functions.
21628 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
21629 manually if previous repositioning has failed.
21630 (mac_handle_keyboard_event): Use precomputed event kind.
21631 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
21632 as tool bar item click. Handle mouse movement over tool bar items.
21634 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
21635 toolbar_win_gravity.
21636 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
21637 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
21640 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
21641 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
21643 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
21645 * image.c (search_image_cache): Remove unused variable.
21647 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
21649 * xfns.c, xmenu.c: Link to xaw3d if available.
21651 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21653 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
21654 frame_foreground and frame_background.
21656 * image.c (lookup_image): Save frame foreground and background colors.
21657 (search_image_cache): Check if saved and current frame colors match.
21659 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
21661 * regex.c (regex_compile): Remove the `regnum' counter.
21662 Use bufp->re_nsub instead. Add support for \(?N:RE\).
21664 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
21666 * term.c: Include intervals.h to declare Fget_text_property.
21668 2007-06-10 Jason Rumney <jasonr@gnu.org>
21670 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
21672 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
21674 * callint.c (Fcall_interactively):
21675 * editfns.c (Fdelete_and_extract_region):
21676 * fileio.c (Fread_file_name):
21677 * fns.c (Fmapconcat):
21678 * keyboard.c (cmd_error_internal):
21679 * keymap.c (Fkey_description):
21681 * minibuf.c (read_minibuf):
21682 * search.c (wordify):
21683 * sunfns.c (sel_read):
21684 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
21685 * xfns.c (x_default_scroll_bar_color_parameter):
21686 * xmenu.c (menu_help_callback):
21687 * xselect.c (Fx_get_atom_name):
21688 * xterm.c (x_term_init): Use empty_unibyte_string.
21690 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
21692 * alloc.c (init_strings): Initialize canonical empty strings.
21693 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
21694 canonical empty string when the requested size is 0.
21696 * emacs.c (empty_unibyte_string): Rename from empty_string.
21697 (empty_multibyte_string): New canonical empty string.
21698 (syms_of_emacs): Don't initialize empty_string.
21700 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
21701 string, if appropriate.
21702 (empty_unibyte_string, empty_multibyte_string): New externs.
21703 (empty_string): Remove extern.
21705 * lread.c (syms_of_lread): Use empty_unibyte_string.
21707 2007-06-07 Jason Rumney <jasonr@gnu.org>
21709 * s/ms-w32.h: Don't define HAVE_TZNAME.
21711 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
21713 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21715 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
21717 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
21718 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
21720 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21721 Don't call next handler.
21722 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
21723 Remove argument. Install handler to application.
21724 (set_frame_menubar): Don't change deep_p.
21725 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
21726 FRAME_OUTER_TO_INNER_DIFF_Y.
21727 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
21728 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
21729 [HAVE_DIALOGS]: New macros.
21730 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
21732 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
21734 * macselect.c [MAC_OSX] (install_service_handler): Rename from
21735 init_service_handler. All callers changed. Return OSStatus value.
21737 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
21738 All callers changed so as not to call SetPortWindowPort.
21739 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
21740 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
21741 mac_draw_string_common.
21742 (mac_draw_image_string_qd): Likewise.
21743 (mac_draw_string_common): Use them. Add INLINE.
21744 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
21745 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
21747 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
21748 and FRAME_OUTER_TO_INNER_DIFF_Y.
21749 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
21750 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
21751 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
21752 repositioning window to mac_handle_window_event.
21753 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
21754 saving window location to mac_handle_window_event
21755 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
21756 (install_menu_target_item_handler): Remove argument in extern.
21757 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
21758 Also accept command events.
21759 (do_keystroke): New function created from XTread_socket.
21760 (init_command_handler): Remove functions.
21761 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
21762 and save window location by kEventWindowShowing and kEventWindowHiding
21763 handlers here. Don't call next handler for window state change and
21765 (mac_handle_application_event, mac_handle_keyboard_event)
21766 [TARGET_API_MAC_CARBON]: New functions.
21767 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
21768 kEventWindowShowing and kEventWindowHiding events. Move installation
21769 of mouse, font, text input and menu target item handlers to
21770 install_application_handler.
21771 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
21772 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21774 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21776 (XTread_socket) [TARGET_API_MAC_CARBON]:
21777 Consolidate SendEventToEventTarget calls.
21778 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
21779 Move application activation handler to mac_handle_application_event.
21780 Move keyboard handler to mac_handle_keyboard_event.
21781 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
21782 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
21783 init_command_handler. Call install_application_handler.
21785 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
21786 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
21788 2007-06-07 Glenn Morris <rgm@gnu.org>
21790 * emacs.c (main): Use `emacs-copyright' in --version output.
21792 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
21794 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
21796 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21798 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
21800 * macgui.h: Replace WindowPtr with WindowRef.
21802 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21803 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21804 Replace ControlHandle with ControlRef.
21805 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
21807 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21808 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21809 Replace ControlHandle with ControlRef.
21810 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
21811 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
21813 * macterm.h (struct scroll_bar): Rename member control_handle_low
21814 and control_handle_high to control_ref_low and control_ref_high.
21816 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
21817 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
21818 respectively. All uses changed.
21819 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
21820 (install_window_handler, remove_window_handler): Replace WindowPtr
21821 with WindowRef in externs.
21823 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
21825 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
21827 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
21829 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
21831 * frame.c (Fmouse_position, Fmouse_pixel_position):
21832 Condition on HAVE_GPM too.
21834 * term.c (term_mouse_highlight): Remove unused variables.
21835 (Fterm_open_connection): Set gpm_zerobased to 1.
21836 (term_mouse_movement, term_mouse_click, handle_one_term_event):
21837 Use zero based co-ordinates.
21838 (handle_one_term_event): Report a drag as mouse movement too.
21840 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
21842 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
21844 * image.c (search_image_cache): New function. Require background
21845 color match if background color is unspecified in the image spec.
21846 (uncache_image, lookup_image): Use it.
21848 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
21850 * window.c (Fshrink_window): Reflow docstring.
21852 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
21854 * Version 22.1 released.
21856 2007-06-01 Richard Stallman <rms@gnu.org>
21858 * xfns.c (x_encode_text): Add GCPRO.
21860 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21862 * xfns.c (x_set_name_internal): Save encoded name before
21863 x_encode_text in case string data is relocated.
21865 2007-05-31 Richard Stallman <rms@gnu.org>
21867 * buffer.c (syms_of_buffer): Doc fix.
21869 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
21871 * sysdep.c (init_sys_modes): Add rather than replace with
21874 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
21877 * termhooks.h (term_mouse_moveto): New extern.
21879 * term.c (mouse_face_window): Rename...
21880 (Qmouse_face_window): ...to this.
21881 (term_show_mouse_face, term_clear_mouse_face)
21882 (term_mouse_highlight): Use Qmouse_face_window.
21883 (term_mouse_moveto): New function.
21884 (term_mouse_position): Make it work.
21885 (syms_of_term): Uncomment assignment to mouse_position_hook.
21886 Staticpro Qmouse_face_window.
21888 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21890 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
21891 around current_column call.
21893 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
21895 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
21896 * xdisp.c (next_element_from_buffer):
21897 * window.c (delete_window):
21898 * term.c (term_mouse_highlight):
21899 * msdos.c (getdefdir):
21900 * macterm.c (mac_create_bitmap_from_bitmap_data)
21901 (init_font_name_table):
21903 * data.c (Fmake_local_variable):
21904 * ccl.c (ccl_driver): Likewise.
21906 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21908 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
21909 Call mac_wakeup_from_rne on window size change.
21911 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
21913 * image.c (uncache_image): Fix typo.
21915 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
21917 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
21919 2007-05-22 Richard Stallman <rms@gnu.org>
21921 * xterm.c (x_connection_closed): Remove NO_RETURN.
21923 2007-05-22 Martin Rudalics <rudalics@gmx.at>
21925 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
21927 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
21929 * image.c (uncache_image): New function.
21930 (Fimage_refresh): New function.
21932 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
21934 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
21936 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
21938 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
21939 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
21941 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
21943 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
21944 conditional on [HAVE_GPM_H].
21946 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
21948 * syntax.c (skip_chars): Update syntax-table only after we checked that
21949 the new location is valid.
21951 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21953 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
21954 mac_get_window_bounds.
21956 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
21958 * Makefile.in (LIBGPM): Allow it to be set from configure.
21959 If set then link Emacs with it.
21961 * config.in: Regenerate.
21963 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
21966 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
21968 (handle_one_term_event, term_gpm): New externs.
21970 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
21971 and allow it to be interrupted by SIGIO.
21973 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
21974 (wait_reading_process_output): Wait on gpm_fd too.
21975 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
21976 (add_gpm_wait_descriptor_called_flag): New variable.
21977 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
21979 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
21980 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
21981 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
21982 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
21983 (make_lispy_event): Add case GPM_CLICK_EVENT.
21984 (read_avail_input): Handle mouse input.
21986 * term.c (write_glyphs_with_face): New function.
21987 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
21988 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
21989 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
21990 (mouse_face_face_id, term_gpm, pos_x, pos_y)
21991 (last_mouse_x, last_mouse_y): New variables.
21992 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
21993 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
21994 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
21995 (Fterm_close_connection): New functions.
21996 (term_init): Initialise mouse_face_window.
21998 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
22000 * xdisp.c (redisplay_window): If first window line is a
22001 continuation line, recompute the new window start instead of
22004 2007-05-18 Glenn Morris <rgm@gnu.org>
22006 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
22007 Suggested by Alfred M. Szmidt <ams@gnu.org>.
22009 2007-05-17 Glenn Morris <rgm@gnu.org>
22011 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
22013 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22015 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
22016 dead key repeat and up events.
22018 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
22020 * image.c (pbm_load): Check image size for monochrome pbm.
22022 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
22024 * xterm.c (XTread_socket): Revert last change.
22026 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
22028 * image.c (pbm_load): Correctly check image size for greyscale pbm.
22030 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
22032 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22034 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
22037 2007-05-07 Andreas Schwab <schwab@suse.de>
22039 * keymap.c (Flookup_key): Fix typo in last change.
22041 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22043 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
22044 mapping for unibyte strings.
22046 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22048 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
22049 (Fx_popup_dialog) [MAC_OSX]: Likewise.
22051 2007-04-29 Richard Stallman <rms@gnu.org>
22053 * insdel.c (replace_range): For undo, record insertion first.
22055 2007-04-29 Andreas Schwab <schwab@suse.de>
22057 * lisp.h (VECSIZE): Use OFFSETOF.
22059 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22061 * xdisp.c (try_window_reusing_current_matrix): Fix number of
22064 2007-04-28 Richard Stallman <rms@gnu.org>
22066 * lread.c (read_escape): In a string, \s is always space.
22068 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
22070 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
22072 * gtkutil.c (xg_update_menubar, create_menus): Create empty
22073 submenu for menu bar items.
22075 See ChangeLog.10 for earlier changes.
22077 ;; Local Variables:
22079 ;; add-log-time-zone-rule: t
22082 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
22084 This file is part of GNU Emacs.
22086 GNU Emacs is free software: you can redistribute it and/or modify
22087 it under the terms of the GNU General Public License as published by
22088 the Free Software Foundation, either version 3 of the License, or
22089 (at your option) any later version.
22091 GNU Emacs is distributed in the hope that it will be useful,
22092 but WITHOUT ANY WARRANTY; without even the implied warranty of
22093 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22094 GNU General Public License for more details.
22096 You should have received a copy of the GNU General Public License
22097 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
22099 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40